/* ============================================================
   CLEAN GLASSMORPHISM HEADER - RESPONSIVE DESIGN
   ============================================================ */

/* Header Container - Sticky with Glassmorphism */
.header {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    z-index: 1000;
    background: rgba(255, 255, 255, 0.7);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    border-bottom: 1px solid rgba(255, 255, 255, 0.3);
    border-radius: 0;
    padding: 0;
    transition: all 0.3s ease-in-out;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.05);
}

.header.scrolled {
    background: rgba(255, 255, 255, 0.8);
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.1);
}

/* Navbar Container */
.navbar {
    display: flex;
    align-items: center;
    justify-content: space-between;
    max-width: 1200px;
    margin: 0 auto;
    padding: 0.75rem 1.5rem;
    width: 100%;
}

/* Logo Section */
.nav-logo {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    flex-shrink: 0;
    z-index: 1001;
}

.logo {
    width: 50px;
    height: 50px;
    border-radius: 12px;
    object-fit: cover;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
    transition: all 0.3s ease;
    border: 1px solid rgba(255, 255, 255, 0.5);
}

.logo:hover {
    transform: scale(1.05);
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
}

.logo-text {
    font-family: 'Poppins', sans-serif;
    font-size: 1.1rem;
    font-weight: 700;
    color: #333;
    letter-spacing: 0.3px;
    display: none;
}

/* Navigation Menu - Desktop */
.nav-menu {
    display: flex;
    list-style: none;
    gap: 0.5rem;
    align-items: center;
    margin: 0;
    padding: 0;
    flex: 1;
    justify-content: center;
}

.nav-item {
    position: relative;
}

/* Navigation Links - Desktop */
.nav-link {
    font-weight: 600;
    font-size: 0.95rem;
    color: #333;
    padding: 0.6rem 1.2rem;
    border-radius: 8px;
    transition: all 0.3s ease;
    position: relative;
    overflow: hidden;
    background: transparent;
    border: none;
    text-decoration: none;
    cursor: pointer;
    display: inline-block;
}

.nav-link::after {
    content: '';
    position: absolute;
    bottom: -2px;
    left: 50%;
    width: 0;
    height: 2px;
    background: linear-gradient(90deg, #e74c3c, #ff6b9d);
    transition: all 0.3s ease;
    transform: translateX(-50%);
}

.nav-link:hover {
    color: #e74c3c;
    background: rgba(231, 76, 60, 0.08);
}

.nav-link:hover::after {
    width: 80%;
}

.nav-link.active {
    color: #e74c3c;
}

.nav-link.active::after {
    width: 80%;
}

/* Mobile Menu Toggle Button */
.nav-toggle {
    display: none;
    flex-direction: column;
    cursor: pointer;
    gap: 5px;
    background: transparent;
    border: none;
    padding: 0.5rem;
    z-index: 1001;
    position: relative;
}

.bar {
    width: 28px;
    height: 3px;
    background: #333;
    border-radius: 2px;
    transition: all 0.4s cubic-bezier(0.68, -0.6, 0.32, 1.6);
}

.nav-toggle.active .bar:nth-child(1) {
    transform: translateY(8px) rotate(45deg);
}

.nav-toggle.active .bar:nth-child(2) {
    opacity: 0;
    transform: translateX(20px);
}

.nav-toggle.active .bar:nth-child(3) {
    transform: translateY(-8px) rotate(-45deg);
}

/* ============================================================
   FULL-SCREEN MOBILE MENU
   ============================================================ */

/* Mobile Menu Overlay */
.mobile-menu-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.5);
    backdrop-filter: blur(8px);
    -webkit-backdrop-filter: blur(8px);
    z-index: 999;
    opacity: 0;
    visibility: hidden;
    transition: all 0.3s ease;
    pointer-events: none;
}

.mobile-menu-overlay.active {
    opacity: 1;
    visibility: visible;
    pointer-events: auto;
}

/* Mobile Menu Container */
.mobile-menu {
    position: fixed;
    top: 0;
    right: -100%;
    width: 100%;
    height: 100vh;
    background: linear-gradient(135deg, #0f1419 0%, #1a1f2e 100%);
    backdrop-filter: blur(15px);
    -webkit-backdrop-filter: blur(15px);
    z-index: 1050;
    transition: all 0.4s cubic-bezier(0.77, 0, 0.175, 1);
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    padding: 2rem;
    overflow-y: auto;
}

.mobile-menu.active {
    right: 0;
}

/* Mobile Menu Close Button */
.mobile-menu-close {
    position: absolute;
    top: 1.5rem;
    right: 1.5rem;
    width: 40px;
    height: 40px;
    background: rgba(255, 107, 157, 0.2);
    border: 2px solid rgba(255, 107, 157, 0.4);
    border-radius: 50%;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.5rem;
    color: #ff6b9d;
    transition: all 0.3s ease;
    z-index: 1051;
}

.mobile-menu-close:hover {
    background: rgba(255, 107, 157, 0.3);
    border-color: rgba(255, 107, 157, 0.6);
    transform: rotate(90deg);
}

/* Mobile Menu Items */
.mobile-menu-items {
    display: flex;
    flex-direction: column;
    gap: 1.5rem;
    width: 100%;
    max-width: 300px;
    text-align: center;
}

.mobile-menu-item {
    list-style: none;
}

.mobile-menu-link {
    font-weight: 600;
    font-size: 1.3rem;
    color: #ffffff;
    padding: 1rem 1.5rem;
    border-radius: 12px;
    transition: all 0.3s ease;
    text-decoration: none;
    display: block;
    background: rgba(255, 107, 157, 0.1);
    border: 2px solid rgba(255, 107, 157, 0.3);
}

.mobile-menu-link:hover,
.mobile-menu-link.active {
    background: linear-gradient(135deg, rgba(255, 107, 157, 0.2), rgba(52, 152, 219, 0.2));
    border-color: rgba(255, 107, 157, 0.6);
    color: #ff6b9d;
    transform: translateY(-2px);
    box-shadow: 0 8px 20px rgba(255, 107, 157, 0.2);
}

/* ============================================================
   RESPONSIVE DESIGN
   ============================================================ */

/* Tablet (768px and below) */
@media (max-width: 768px) {
    .navbar {
        padding: 0.75rem 1rem;
    }

    .nav-menu {
        display: none;
    }

    .nav-toggle {
        display: flex;
    }

    .logo {
        width: 45px;
        height: 45px;
    }

    .mobile-menu-items {
        max-width: 100%;
    }

    .mobile-menu-link {
        font-size: 1.2rem;
        padding: 1.2rem 1.5rem;
    }
}

/* Mobile (480px and below) */
@media (max-width: 480px) {
    .header {
        padding: 0;
    }

    .navbar {
        padding: 0.6rem 1rem;
    }

    .logo {
        width: 42px;
        height: 42px;
    }

    .nav-link {
        font-size: 0.9rem;
        padding: 0.5rem 0.8rem;
    }

    .bar {
        width: 26px;
        height: 2.5px;
    }

    .mobile-menu-close {
        width: 36px;
        height: 36px;
        font-size: 1.3rem;
    }

    .mobile-menu {
        padding: 1.5rem;
    }

    .mobile-menu-items {
        gap: 1.2rem;
    }

    .mobile-menu-link {
        font-size: 1.1rem;
        padding: 1rem 1.2rem;
    }
}

/* Desktop (1024px and above) */
@media (min-width: 1024px) {
    .nav-menu {
        display: flex !important;
    }

    .nav-toggle {
        display: none !important;
    }

    .mobile-menu-overlay {
        display: none !important;
    }

    .mobile-menu {
        display: none !important;
    }
}

/* ============================================================
   BODY PADDING ADJUSTMENT
   ============================================================ */

body {
    padding-top: 70px;
}

@media (max-width: 768px) {
    body {
        padding-top: 65px;
    }
}

@media (max-width: 480px) {
    body {
        padding-top: 60px;
    }
}

/* Prevent scroll when mobile menu is open */
body.menu-open {
    overflow: hidden;
}

/* ============================================================
   ACCESSIBILITY
   ============================================================ */

.nav-link:focus,
.nav-toggle:focus,
.mobile-menu-close:focus {
    outline: 2px solid #e74c3c;
    outline-offset: 2px;
}

@media (prefers-reduced-motion: reduce) {
    .header,
    .nav-link,
    .logo,
    .mobile-menu,
    .mobile-menu-overlay {
        transition: none !important;
    }
}

/* ============================================================
   SMOOTH TRANSITIONS
   ============================================================ */

.header,
.nav-link,
.logo,
.mobile-menu,
.mobile-menu-overlay {
    transition: all 0.3s ease-in-out;
}
