/* ============================================
   TV REPAIR PRO - HEADER STYLES (UPDATED - ALWAYS VISIBLE)
   File: header-style.css
   ============================================ */

/* Reset & Base Styles */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Oxygen, Ubuntu, Cantarell, sans-serif;
    line-height: 1.6;
    padding-top: 78px;
}

/* ============================================
   HEADER STYLES - ALWAYS VISIBLE
   ============================================ */
.main-header {
    background-color: #000;
    position: fixed;
    width: 100%;
    top: 0;
    left: 0;
    z-index: 1000;
    box-shadow: 0 2px 15px rgba(0, 0, 0, 0.5);
    transition: box-shadow 0.3s ease;
}

.main-header.scrolled {
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.6);
}

.container {
    max-width: 1400px;
    margin: 0 auto;
    padding: 0 20px;
}

.header-content {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 15px 0;
    gap: 20px;
}

/* ============================================
   LOGO STYLES
   ============================================ */
.logo {
    display: flex;
    align-items: center;
    gap: 12px;
    font-size: 24px;
    font-weight: 700;
    color: #FFD700;
    cursor: pointer;
    transition: transform 0.3s ease;
    text-decoration: none;
    user-select: none;
}

.logo:hover {
    transform: scale(1.05);
}

.logo svg {
    flex-shrink: 0;
}

.logo span {
    letter-spacing: 1px;
}

/* ============================================
   NAVIGATION MENU
   ============================================ */
.nav-menu {
    flex: 1;
    display: flex;
    justify-content: center;
}

.nav-links {
    display: flex;
    list-style: none;
    gap: 40px;
    align-items: center;
}

.nav-link {
    color: #fff;
    text-decoration: none;
    font-size: 16px;
    font-weight: 500;
    padding: 8px 0;
    position: relative;
    transition: color 0.3s ease;
    white-space: nowrap;
}

.nav-link::after {
    content: '';
    position: absolute;
    bottom: -2px;
    left: 0;
    width: 0;
    height: 2px;
    background-color: #FFD700;
    transition: width 0.3s ease;
}

.nav-link:hover,
.nav-link.active {
    color: #FFD700;
}

.nav-link:hover::after,
.nav-link.active::after {
    width: 100%;
}

/* ============================================
   ACTION BUTTONS
   ============================================ */
.header-actions {
    display: flex;
    align-items: center;
    gap: 15px;
}

/* Icon Buttons (WhatsApp & Call) */
.btn-icon {
    width: 48px;
    height: 48px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.3s ease;
    text-decoration: none;
    position: relative;
    overflow: hidden;
}

.btn-icon::before {
    content: '';
    position: absolute;
    width: 100%;
    height: 100%;
    background: rgba(255, 255, 255, 0.1);
    border-radius: 50%;
    transform: scale(0);
    transition: transform 0.3s ease;
}

.btn-icon:hover::before {
    transform: scale(1);
}

.btn-whatsapp {
    background-color: #25D366;
    color: #fff;
}

.btn-whatsapp:hover {
    background-color: #20BD5B;
    transform: scale(1.1) rotate(5deg);
    box-shadow: 0 5px 20px rgba(37, 211, 102, 0.4);
}

.btn-call {
    background-color: #FFD700;
    color: #000;
}

.btn-call:hover {
    background-color: #FFC700;
    transform: scale(1.1) rotate(-5deg);
    box-shadow: 0 5px 20px rgba(255, 215, 0, 0.4);
}

/* Book Now Button */
.btn-book {
    background-color: #FFD700;
    color: #000;
    padding: 12px 28px;
    border-radius: 30px;
    text-decoration: none;
    font-weight: 700;
    font-size: 15px;
    display: flex;
    align-items: center;
    gap: 10px;
    transition: all 0.3s ease;
    box-shadow: 0 2px 10px rgba(255, 215, 0, 0.3);
}

.btn-book:hover {
    background-color: #FFC700;
    transform: translateY(-3px);
    box-shadow: 0 8px 25px rgba(255, 215, 0, 0.5);
}

.btn-book svg {
    flex-shrink: 0;
}

/* ============================================
   MOBILE TOGGLE BUTTON
   ============================================ */
.mobile-toggle {
    display: none;
    flex-direction: column;
    justify-content: center;
    gap: 6px;
    background: none;
    border: none;
    cursor: pointer;
    padding: 8px;
    width: 40px;
    height: 40px;
    position: relative;
    z-index: 1001;
}

.mobile-toggle span {
    width: 100%;
    height: 3px;
    background-color: #FFD700;
    transition: all 0.3s ease;
    border-radius: 3px;
}

.mobile-toggle.active span:nth-child(1) {
    transform: rotate(45deg) translate(9px, 9px);
}

.mobile-toggle.active span:nth-child(2) {
    opacity: 0;
    transform: translateX(-20px);
}

.mobile-toggle.active span:nth-child(3) {
    transform: rotate(-45deg) translate(9px, -9px);
}

/* ============================================
   FLOATING ACTION BUTTONS (Bottom Right)
   ============================================ */
.floating-buttons {
    position: fixed;
    right: 25px;
    bottom: 25px;
    display: flex;
    flex-direction: column;
    gap: 15px;
    z-index: 999;
}

.float-btn {
    width: 60px;
    height: 60px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    text-decoration: none;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.3);
    transition: all 0.3s cubic-bezier(0.68, -0.55, 0.265, 1.55);
    position: relative;
    cursor: pointer;
    animation: fadeInUp 0.6s ease-out;
}

.float-btn:hover {
    transform: scale(1.15) translateY(-5px);
    box-shadow: 0 8px 30px rgba(0, 0, 0, 0.4);
}

.float-btn:active {
    transform: scale(1.05);
}

/* WhatsApp Floating Button */
.float-whatsapp {
    background: linear-gradient(135deg, #25D366 0%, #20BD5B 100%);
    color: #fff;
    animation-delay: 0.2s;
}

.float-whatsapp:hover {
    background: linear-gradient(135deg, #20BD5B 0%, #1DA851 100%);
    box-shadow: 0 8px 30px rgba(37, 211, 102, 0.5);
}

/* Pulse animation for WhatsApp */
.float-whatsapp::before {
    content: '';
    position: absolute;
    width: 100%;
    height: 100%;
    border-radius: 50%;
    background: rgba(37, 211, 102, 0.5);
    animation: pulse 2s infinite;
}

/* Call Floating Button */
.float-call {
    background: linear-gradient(135deg, #FFD700 0%, #FFC700 100%);
    color: #000;
    animation-delay: 0.4s;
}

.float-call:hover {
    background: linear-gradient(135deg, #FFC700 0%, #FFB700 100%);
    box-shadow: 0 8px 30px rgba(255, 215, 0, 0.5);
}

/* Ring animation for Call button */
.float-call::after {
    content: '';
    position: absolute;
    width: 100%;
    height: 100%;
    border-radius: 50%;
    border: 2px solid #FFD700;
    animation: ring 1.5s infinite;
}

/* Tooltip on hover */
.float-tooltip {
    position: absolute;
    right: 75px;
    background: #000;
    color: #FFD700;
    padding: 8px 15px;
    border-radius: 8px;
    font-size: 14px;
    font-weight: 600;
    white-space: nowrap;
    opacity: 0;
    visibility: hidden;
    transform: translateX(10px);
    transition: all 0.3s ease;
    pointer-events: none;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.3);
}

.float-tooltip::after {
    content: '';
    position: absolute;
    right: -8px;
    top: 50%;
    transform: translateY(-50%);
    border: 8px solid transparent;
    border-left-color: #000;
}

.float-btn:hover .float-tooltip {
    opacity: 1;
    visibility: visible;
    transform: translateX(0);
}

/* Animations */
@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(30px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

@keyframes pulse {
    0% {
        transform: scale(1);
        opacity: 1;
    }
    50% {
        transform: scale(1.3);
        opacity: 0;
    }
    100% {
        transform: scale(1.5);
        opacity: 0;
    }
}

@keyframes ring {
    0% {
        transform: scale(1);
        opacity: 1;
    }
    50% {
        transform: scale(1.2);
        opacity: 0.5;
    }
    100% {
        transform: scale(1.4);
        opacity: 0;
    }
}

/* ============================================
   RESPONSIVE DESIGN
   ============================================ */

/* Tablet Portrait (768px - 991px) */
@media (max-width: 991px) {
    .nav-links {
        gap: 25px;
    }
    
    .nav-link {
        font-size: 14px;
    }
    
    .btn-book span {
        display: none;
    }
    
    .btn-book {
        width: 48px;
        height: 48px;
        padding: 0;
        justify-content: center;
        border-radius: 50%;
    }
}

/* Mobile Landscape & Large Mobile (576px - 767px) */
@media (max-width: 767px) {
    body {
        padding-top: 70px;
    }

    .mobile-toggle {
        display: flex;
    }

    .header-content {
        padding: 12px 0;
    }

    .nav-menu {
        position: fixed;
        top: 0;
        left: -100%;
        width: 280px;
        height: 100vh;
        background-color: #000;
        padding: 80px 30px 30px;
        transition: left 0.4s cubic-bezier(0.68, -0.55, 0.265, 1.55);
        box-shadow: 2px 0 20px rgba(0, 0, 0, 0.5);
        overflow-y: auto;
        z-index: 999;
    }

    .nav-menu.active {
        left: 0;
    }

    /* Overlay when menu is open */
    .nav-menu.active::before {
        content: '';
        position: fixed;
        top: 0;
        left: 280px;
        width: calc(100vw - 280px);
        height: 100vh;
        background: rgba(0, 0, 0, 0.7);
        z-index: -1;
    }

    .nav-links {
        flex-direction: column;
        gap: 0;
        align-items: flex-start;
    }

    .nav-link {
        padding: 18px 0;
        border-bottom: 1px solid #222;
        width: 100%;
        font-size: 16px;
    }

    .nav-link::after {
        display: none;
    }

    .nav-link.active {
        color: #FFD700;
        padding-left: 10px;
        border-left: 3px solid #FFD700;
    }

    .logo {
        font-size: 20px;
    }

    .logo svg {
        width: 30px;
        height: 30px;
    }

    .btn-icon {
        width: 44px;
        height: 44px;
    }

    .btn-icon svg {
        width: 20px;
        height: 20px;
    }

    /* Floating buttons adjustments */
    .floating-buttons {
        right: 20px;
        bottom: 20px;
        gap: 12px;
    }

    .float-btn {
        width: 55px;
        height: 55px;
    }

    .float-btn svg {
        width: 24px;
        height: 24px;
    }

    .float-tooltip {
        right: 70px;
        font-size: 13px;
        padding: 6px 12px;
    }
}

/* Small Mobile (320px - 575px) */
@media (max-width: 575px) {
    .container {
        padding: 0 15px;
    }

    .header-actions {
        gap: 10px;
    }

    .btn-icon {
        width: 40px;
        height: 40px;
    }

    .btn-icon svg {
        width: 18px;
        height: 18px;
    }

    .btn-book {
        width: 40px;
        height: 40px;
    }

    .btn-book svg {
        width: 16px;
        height: 16px;
    }

    .logo {
        font-size: 18px;
    }

    .logo svg {
        width: 28px;
        height: 28px;
    }

    .floating-buttons {
        right: 15px;
        bottom: 15px;
        gap: 10px;
    }

    .float-btn {
        width: 50px;
        height: 50px;
    }

    .float-btn svg {
        width: 22px;
        height: 22px;
    }

    .float-tooltip {
        display: none;
    }
}

/* Smooth scrolling */
html {
    scroll-behavior: smooth;
}

/* Reduced motion for accessibility */
@media (prefers-reduced-motion: reduce) {
    *,
    *::before,
    *::after {
        animation-duration: 0.01ms !important;
        animation-iteration-count: 1 !important;
        transition-duration: 0.01ms !important;
    }
}