/* Header Styles */
header {
    background: linear-gradient(135deg, var(--primary-color), var(--secondary-color));
    color: white;
    position: sticky;
    top: 0;
    z-index: 1000;
    box-shadow: 0 4px 20px rgba(0, 168, 232, 0.3);
    height: var(--header-height);
    backdrop-filter: blur(10px);
    transition: all 0.3s ease;
}

header::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(90deg, transparent, rgba(255,255,255,0.1), transparent);
    animation: shimmer 3s infinite;
}

@keyframes shimmer {
    0%, 100% { transform: translateX(-100%); }
    50% { transform: translateX(100%); }
}

.header-container {
    display: flex;
    align-items: center;
    justify-content: space-between;
    height: 100%;
    padding: 0 30px;
    max-width: 1400px;
    margin: 0 auto;
    position: relative;
    z-index: 1;
}

/* Logo */
.logo {
    display: flex;
    align-items: center;
    text-decoration: none;
    color: white;
    font-size: 28px;
    font-weight: bold;
    gap: 12px;
    transition: all 0.3s ease;
    text-shadow: 0 2px 10px rgba(0, 0, 0, 0.2);
}

.logo:hover {
    transform: scale(1.05);
}

.logo-icon {
    font-size: 36px;
    animation: pulse 2s ease-in-out infinite;
    filter: drop-shadow(0 0 10px rgba(255, 255, 255, 0.5));
}

@keyframes pulse {
    0%, 100% { transform: scale(1); }
    50% { transform: scale(1.1); }
}

.logo-text {
    font-family: 'Arial Black', sans-serif;
    letter-spacing: 1px;
    background: linear-gradient(45deg, #ffffff, #90e0ef);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

/* Desktop Navigation */
.nav-desktop {
    display: flex;
    align-items: center;
    gap: 30px;
}

.nav-links {
    display: flex;
    gap: 25px;
    list-style: none;
}

.nav-links a {
    color: white;
    text-decoration: none;
    font-weight: 600;
    font-size: 16px;
    display: flex;
    align-items: center;
    gap: 8px;
    transition: all 0.3s ease;
    padding: 10px 16px;
    position: relative;
    border-radius: 8px;
}

.nav-links a::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(255, 255, 255, 0.1);
    border-radius: 8px;
    opacity: 0;
    transition: opacity 0.3s ease;
}

.nav-links a::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 50%;
    transform: translateX(-50%);
    width: 0;
    height: 3px;
    background: linear-gradient(90deg, #90e0ef, white);
    border-radius: 2px;
    transition: width 0.3s ease;
}

.nav-links a:hover::before {
    opacity: 1;
}

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

.nav-links a:hover {
    transform: translateY(-2px);
    text-shadow: 0 2px 8px rgba(255, 255, 255, 0.3);
}

.nav-icon {
    font-size: 18px;
}

/* Search Box Desktop */
.search-box {
    position: relative;
}

.search-input {
    padding: 12px 45px 12px 20px;
    border: 2px solid rgba(255, 255, 255, 0.3);
    border-radius: 30px;
    width: 260px;
    font-size: 14px;
    outline: none;
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    background: rgba(255, 255, 255, 0.95);
    color: var(--text-color);
}

.search-input::placeholder {
    color: #999;
}

.search-input:focus {
    width: 320px;
    box-shadow: 0 8px 20px rgba(0, 0, 0, 0.2);
    border-color: rgba(255, 255, 255, 0.8);
    background: white;
}

.search-btn {
    position: absolute;
    right: 8px;
    top: 50%;
    transform: translateY(-50%);
    background: linear-gradient(135deg, var(--primary-color), var(--secondary-color));
    border: none;
    color: white;
    font-size: 16px;
    cursor: pointer;
    width: 36px;
    height: 36px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.3s ease;
}

.search-btn:hover {
    transform: translateY(-50%) scale(1.1);
    box-shadow: 0 4px 12px rgba(0, 168, 232, 0.4);
}

/* Mobile Menu Button */
.mobile-menu-btn,
.mobile-search-btn {
    display: none;
    background: rgba(255, 255, 255, 0.2);
    border: none;
    color: white;
    cursor: pointer;
    padding: 10px;
    border-radius: 12px;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    backdrop-filter: blur(5px);
    width: 44px;
    height: 44px;
    flex-shrink: 0;
    position: relative;
    overflow: hidden;
}

.mobile-menu-btn::before,
.mobile-search-btn::before {
    content: '';
    position: absolute;
    top: 50%;
    left: 50%;
    width: 0;
    height: 0;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.2);
    transform: translate(-50%, -50%);
    transition: width 0.4s, height 0.4s;
}

.mobile-menu-btn:hover::before,
.mobile-search-btn:hover::before {
    width: 100%;
    height: 100%;
}

.mobile-menu-btn:hover,
.mobile-search-btn:hover {
    background: rgba(255, 255, 255, 0.35);
    transform: scale(1.08);
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
}

.mobile-menu-btn:active,
.mobile-search-btn:active {
    transform: scale(0.92);
}

/* SVG Menu Icon */
.menu-icon {
    width: 24px;
    height: 24px;
    display: block;
    position: relative;
    z-index: 1;
}

.menu-line {
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    transform-origin: center;
}

/* Menu icon animation on hover */
.mobile-menu-btn:hover .menu-line-1 {
    transform: translateX(2px);
}

.mobile-menu-btn:hover .menu-line-2 {
    transform: scaleX(0.85);
}

.mobile-menu-btn:hover .menu-line-3 {
    transform: translateX(-2px);
}

/* Active state - transform to X */
.mobile-menu-btn.active .menu-line-1 {
    transform: translateY(6px) rotate(45deg);
}

.mobile-menu-btn.active .menu-line-2 {
    opacity: 0;
    transform: scaleX(0);
}

.mobile-menu-btn.active .menu-line-3 {
    transform: translateY(-6px) rotate(-45deg);
}

.mobile-search-btn .search-icon {
    font-size: 20px;
    display: block;
}

/* Mobile Navigation Fullscreen */
.nav-mobile {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100vh;
    max-width: 100vw;
    background: linear-gradient(135deg, #0096c7 0%, #0077b6 50%, #023e8a 100%);
    z-index: 2000;
    overflow-y: auto;
    overflow-x: hidden;
    backdrop-filter: blur(10px);
}

.nav-mobile.active {
    display: flex;
    flex-direction: column;
    animation: fadeIn 0.3s ease;
}

@keyframes fadeIn {
    from {
        opacity: 0;
    }
    to {
        opacity: 1;
    }
}

.nav-mobile-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 20px 25px;
    border-bottom: 1px solid rgba(255, 255, 255, 0.2);
    flex-shrink: 0;
}

.nav-mobile-title {
    color: white;
    font-size: 24px;
    font-weight: 700;
    margin: 0;
}

.nav-mobile-close {
    background: rgba(255, 255, 255, 0.2);
    border: none;
    color: white;
    cursor: pointer;
    width: 44px;
    height: 44px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    position: relative;
    transition: all 0.3s ease;
}

.nav-mobile-close:hover {
    background: rgba(255, 255, 255, 0.3);
    transform: rotate(90deg);
}

.nav-mobile-close .close-line {
    position: absolute;
    width: 24px;
    height: 3px;
    background: white;
    border-radius: 2px;
}

.nav-mobile-close .close-line:first-child {
    transform: rotate(45deg);
}

.nav-mobile-close .close-line:last-child {
    transform: rotate(-45deg);
}

.nav-mobile-links {
    list-style: none;
    padding: 30px 25px;
    flex: 1;
    margin: 0;
    overflow-x: hidden;
}

.nav-mobile-links li {
    margin-bottom: 8px;
}

.nav-mobile-links a {
    color: white;
    text-decoration: none;
    font-size: 20px;
    font-weight: 600;
    display: flex;
    align-items: center;
    gap: 20px;
    padding: 18px 20px;
    border-radius: 15px;
    background: rgba(255, 255, 255, 0.1);
    transition: all 0.3s ease;
    border: 2px solid transparent;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.nav-mobile-links a:hover,
.nav-mobile-links a:active {
    background: rgba(255, 255, 255, 0.25);
    border-color: rgba(255, 255, 255, 0.4);
}

.mobile-nav-icon {
    font-size: 28px;
    filter: drop-shadow(0 2px 4px rgba(0, 0, 0, 0.2));
}

.mobile-nav-text {
    flex: 1;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.nav-mobile-footer {
    padding: 25px;
    border-top: 1px solid rgba(255, 255, 255, 0.2);
    text-align: center;
    flex-shrink: 0;
}

.nav-mobile-footer p {
    color: rgba(255, 255, 255, 0.8);
    margin: 0;
    font-size: 14px;
}

/* Mobile Search Fullscreen */
.search-mobile {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100vh;
    max-width: 100vw;
    background: linear-gradient(135deg, #0096c7 0%, #0077b6 50%, #023e8a 100%);
    z-index: 2000;
    overflow-x: hidden;
    overflow-y: auto;
    backdrop-filter: blur(10px);
}

.search-mobile.active {
    display: flex;
    flex-direction: column;
    animation: fadeIn 0.3s ease;
}

.search-mobile-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 20px 25px;
    border-bottom: 1px solid rgba(255, 255, 255, 0.2);
    flex-shrink: 0;
}

.search-mobile-title {
    color: white;
    font-size: 24px;
    font-weight: 700;
    margin: 0;
}

.search-mobile-close {
    background: rgba(255, 255, 255, 0.2);
    border: none;
    color: white;
    cursor: pointer;
    width: 44px;
    height: 44px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    position: relative;
    transition: all 0.3s ease;
}

.search-mobile-close:hover {
    background: rgba(255, 255, 255, 0.3);
    transform: rotate(90deg);
}

.search-mobile-close .close-line {
    position: absolute;
    width: 24px;
    height: 3px;
    background: white;
    border-radius: 2px;
}

.search-mobile-close .close-line:first-child {
    transform: rotate(45deg);
}

.search-mobile-close .close-line:last-child {
    transform: rotate(-45deg);
}

.search-mobile-content {
    flex: 1;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    padding: 25px;
    overflow-x: hidden;
}

.search-mobile-box {
    position: relative;
    width: 100%;
    max-width: 500px;
    box-sizing: border-box;
}

.search-mobile-input {
    width: 100%;
    padding: 20px 60px 20px 25px;
    border: none;
    border-radius: 50px;
    font-size: 18px;
    outline: none;
    background: white;
    color: var(--text-color);
    box-shadow: 0 10px 40px rgba(0, 0, 0, 0.2);
    transition: all 0.3s ease;
    box-sizing: border-box;
}

.search-mobile-input:focus {
    box-shadow: 0 15px 50px rgba(0, 0, 0, 0.3);
}

.search-mobile-input::placeholder {
    color: #999;
}

.search-mobile-btn {
    position: absolute;
    right: 8px;
    top: 50%;
    transform: translateY(-50%);
    background: linear-gradient(135deg, var(--primary-color), var(--secondary-color));
    border: none;
    color: white;
    cursor: pointer;
    width: 48px;
    height: 48px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.3s ease;
}

.search-mobile-btn:hover {
    transform: translateY(-50%) scale(1.1);
    box-shadow: 0 4px 15px rgba(0, 168, 232, 0.5);
}

.search-mobile-btn .search-icon {
    font-size: 22px;
}

.search-mobile-hint {
    color: rgba(255, 255, 255, 0.9);
    margin-top: 20px;
    font-size: 16px;
    text-align: center;
}

/* Responsive */
@media (max-width: 768px) {
    header {
        height: 60px;
    }

    .header-container {
        padding: 0 15px;
        justify-content: space-between;
    }

    /* Hide desktop navigation and search */
    .nav-desktop,
    .search-box {
        display: none;
    }

    /* Show mobile buttons */
    .mobile-menu-btn,
    .mobile-search-btn {
        display: flex;
        align-items: center;
        justify-content: center;
    }

    /* Center logo on mobile */
    .logo {
        position: absolute;
        left: 50%;
        transform: translateX(-50%);
        font-size: 20px;
    }

    .logo-icon {
        font-size: 26px;
    }

    .logo-text {
        font-size: 20px;
    }
}

@media (max-width: 480px) {
    .logo {
        font-size: 18px;
    }

    .logo-icon {
        font-size: 24px;
    }

    .logo-text {
        font-size: 18px;
    }

    .nav-mobile-header {
        padding: 15px 20px;
    }

    .nav-mobile-title {
        font-size: 20px;
    }

    .nav-mobile-links {
        padding: 20px 15px;
    }

    .nav-mobile-links a {
        font-size: 18px;
        padding: 16px 18px;
        gap: 15px;
    }

    .mobile-nav-icon {
        font-size: 24px;
    }

    .search-mobile-header {
        padding: 15px 20px;
    }

    .search-mobile-title {
        font-size: 20px;
    }

    .search-mobile-content {
        padding: 20px 15px;
    }

    .search-mobile-input {
        font-size: 16px;
        padding: 18px 55px 18px 20px;
    }
}
