/* ============================================
   MODERN HEADER STYLES
   ============================================ */

/* Space Particles Background */
.space-particles {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100vh;
    pointer-events: none;
    z-index: 0;
    overflow: hidden;
}

.space-particles::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: radial-gradient(2px 2px at 20% 30%, white, transparent),
                radial-gradient(2px 2px at 60% 70%, white, transparent),
                radial-gradient(1px 1px at 50% 50%, white, transparent),
                radial-gradient(1px 1px at 80% 10%, white, transparent),
                radial-gradient(2px 2px at 90% 60%, white, transparent),
                radial-gradient(1px 1px at 33% 50%, white, transparent),
                radial-gradient(1px 1px at 77% 80%, white, transparent);
    background-size: 200% 200%;
    opacity: 0.3;
    animation: twinkleStars 5s ease-in-out infinite;
}

@keyframes twinkleStars {
    0%, 100% { opacity: 0.3; }
    50% { opacity: 0.6; }
}

/* Modern Header */
.modern-header {
    position: sticky;
    top: 0;
    z-index: 1000;
    background: linear-gradient(135deg, rgba(0, 0, 0, 0.95) 0%, rgba(26, 26, 26, 0.98) 100%);
    backdrop-filter: blur(10px);
    box-shadow: 0 4px 30px rgba(0, 0, 0, 0.3);
    border-bottom: 2px solid var(--mimoza-gold);
    transition: transform 0.3s ease;
}

.modern-header.scrolled {
    box-shadow: 0 2px 20px rgba(0, 0, 0, 0.5);
}

/* Top Bar */
.header-topbar {
    background: linear-gradient(90deg, var(--black) 0%, var(--black-light) 100%);
    border-bottom: 1px solid rgba(255, 215, 0, 0.2);
    padding: 6px 0;
}

.topbar-content {
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
    gap: 15px;
}

.analytics-stats {
    display: flex;
    gap: 25px;
    flex-wrap: wrap;
}

.stat-item {
    display: flex;
    align-items: center;
    gap: 6px;
    font-size: 13px;
    color: var(--gray-light);
}

.stat-icon {
    font-size: 16px;
}

.stat-label {
    color: var(--gray);
}

.stat-value {
    color: var(--mimoza-gold);
    font-weight: 700;
    font-size: 15px;
}

/* WhatsApp Button */
.whatsapp-btn {
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 6px 16px;
    background: linear-gradient(135deg, #25d366 0%, #128c7e 100%);
    color: white;
    border-radius: 20px;
    text-decoration: none;
    font-size: 13px;
    font-weight: 600;
    transition: all 0.3s ease;
    box-shadow: 0 2px 10px rgba(37, 211, 102, 0.3);
}

.whatsapp-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 15px rgba(37, 211, 102, 0.5);
    background: linear-gradient(135deg, #128c7e 0%, #075e54 100%);
}

.whatsapp-icon {
    animation: pulse 2s infinite;
}

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

/* Main Header */
.header-main {
    padding: 10px 0;
}

.header-content {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 20px;
}

/* Rocket Logo */
.rocket-logo {
    text-decoration: none;
    display: block;
    transition: transform 0.3s ease;
}

.rocket-logo:hover {
    transform: translateY(-3px);
}

.logo-wrapper {
    display: flex;
    align-items: center;
    gap: 15px;
}

.rocket-container {
    position: relative;
    width: 40px;
    height: 40px;
}

.rocket-icon {
    filter: drop-shadow(0 0 10px rgba(255, 215, 0, 0.5));
    animation: floatRocket 3s ease-in-out infinite;
}

@keyframes floatRocket {
    0%, 100% { transform: translateY(0) rotate(0deg); }
    50% { transform: translateY(-5px) rotate(-2deg); }
}

/* Rocket Fire Animation */
.rocket-fire {
    animation: fireFlicker 0.2s ease-in-out infinite alternate;
    transform-origin: center top;
}

.fire-1 { animation-delay: 0s; }
.fire-2 { animation-delay: 0.1s; }
.fire-3 { animation-delay: 0.05s; }

@keyframes fireFlicker {
    0% { opacity: 0.8; transform: scaleY(1); }
    100% { opacity: 1; transform: scaleY(1.2); }
}

/* Stars Twinkle */
.star {
    animation: starTwinkle 2s ease-in-out infinite;
}

.star-1 { animation-delay: 0s; }
.star-2 { animation-delay: 0.5s; }
.star-3 { animation-delay: 1s; }
.star-4 { animation-delay: 1.5s; }

@keyframes starTwinkle {
    0%, 100% { opacity: 0.3; transform: scale(1); }
    50% { opacity: 1; transform: scale(1.5); }
}

/* Rocket Trail */
.rocket-trail {
    position: absolute;
    bottom: -5px;
    left: 50%;
    transform: translateX(-50%);
    width: 2px;
    height: 20px;
    background: linear-gradient(to bottom, var(--mimoza-gold), transparent);
    opacity: 0.6;
    animation: trail 1s ease-in-out infinite;
}

@keyframes trail {
    0% { height: 20px; opacity: 0.6; }
    100% { height: 0; opacity: 0; }
}

/* Logo Text */
.logo-text {
    display: flex;
    flex-direction: column;
    gap: 2px;
}

.site-title {
    font-size: 20px;
    font-weight: 800;
    background: linear-gradient(135deg, var(--mimoza-gold) 0%, var(--mimoza-yellow) 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    letter-spacing: -0.5px;
}

.site-tagline {
    font-size: 11px;
    color: var(--gray-light);
    font-weight: 500;
    letter-spacing: 0.5px;
}

/* Navigation */
.modern-nav .nav-menu {
    display: flex;
    align-items: center;
    gap: 5px;
    list-style: none;
    margin: 0;
    padding: 0;
}

.modern-nav .menu-item > a {
    display: flex;
    align-items: center;
    gap: 6px;
    padding: 10px 16px;
    color: var(--gray-light);
    text-decoration: none;
    font-weight: 500;
    font-size: 14px;
    border-radius: 8px;
    transition: all 0.3s ease;
    position: relative;
}

.modern-nav .menu-item > a:hover {
    color: var(--mimoza-gold);
    background: rgba(255, 215, 0, 0.1);
    transform: translateY(-2px);
}

.menu-icon-emoji {
    font-size: 16px;
    filter: grayscale(0.5);
    transition: all 0.3s ease;
}

.modern-nav .menu-item > a:hover .menu-icon-emoji {
    filter: grayscale(0);
    transform: scale(1.2);
}

.dropdown-arrow {
    font-size: 10px;
    transition: transform 0.3s ease;
}

.menu-item-has-mega:hover .dropdown-arrow {
    transform: rotate(180deg);
}

/* Mega Menu */
.mega-menu {
    position: absolute;
    top: 100%;
    left: 0;
    width: 900px;
    background: rgba(26, 26, 26, 0.98);
    backdrop-filter: blur(20px);
    border: 1px solid rgba(255, 215, 0, 0.2);
    border-radius: 12px;
    box-shadow: 0 10px 40px rgba(0, 0, 0, 0.5);
    opacity: 0;
    visibility: hidden;
    transform: translateY(10px);
    transition: all 0.3s ease;
    z-index: 1000;
    margin-top: 10px;
}

.mega-menu-small {
    width: 600px;
}

.menu-item-has-mega:hover .mega-menu {
    opacity: 1;
    visibility: visible;
    transform: translateY(0);
}

.mega-menu-inner {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 30px;
    padding: 30px;
}

.mega-column h3 {
    color: var(--mimoza-gold);
    font-size: 14px;
    font-weight: 700;
    margin-bottom: 15px;
    padding-bottom: 10px;
    border-bottom: 1px solid rgba(255, 215, 0, 0.2);
}

.mega-column ul {
    list-style: none;
    padding: 0;
    margin: 0;
}

.mega-column ul li {
    margin-bottom: 8px;
}

.mega-column ul li a {
    color: var(--gray-light);
    text-decoration: none;
    font-size: 13px;
    display: block;
    padding: 6px 10px;
    border-radius: 6px;
    transition: all 0.2s ease;
}

.mega-column ul li a:hover {
    color: var(--mimoza-gold);
    background: rgba(255, 215, 0, 0.1);
    transform: translateX(5px);
}

/* Button */
.btn-primary {
    background: linear-gradient(135deg, var(--mimoza-gold) 0%, var(--mimoza-dark) 100%);
    color: var(--black) !important;
    padding: 10px 24px !important;
    border-radius: 20px;
    font-weight: 700;
    box-shadow: 0 4px 15px rgba(255, 215, 0, 0.3);
    transition: all 0.3s ease;
}

.btn-primary:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(255, 215, 0, 0.5);
    background: linear-gradient(135deg, var(--mimoza-yellow) 0%, var(--mimoza-gold) 100%);
}

/* Mobile Toggle */
.modern-toggle {
    display: none;
    background: transparent;
    border: none;
    cursor: pointer;
    flex-direction: column;
    align-items: center;
    gap: 5px;
    padding: 5px 10px;
    z-index: 1001;
}

.modern-toggle .menu-icon {
    display: flex;
    flex-direction: column;
    gap: 4px;
}

.modern-toggle .menu-icon span {
    width: 25px;
    height: 2px;
    background: var(--mimoza-gold);
    border-radius: 2px;
    transition: all 0.3s ease;
}

.modern-toggle .menu-text {
    font-size: 10px;
    color: var(--mimoza-gold);
    font-weight: 600;
}

/* Hamburger active state */
.modern-toggle.active .menu-icon span:nth-child(1) {
    transform: rotate(45deg) translate(5px, 5px);
}

.modern-toggle.active .menu-icon span:nth-child(2) {
    opacity: 0;
}

.modern-toggle.active .menu-icon span:nth-child(3) {
    transform: rotate(-45deg) translate(7px, -6px);
}

/* Scroll Progress Bar */
.scroll-progress-bar {
    position: absolute;
    bottom: 0;
    left: 0;
    height: 3px;
    background: linear-gradient(90deg, var(--mimoza-gold) 0%, var(--mimoza-yellow) 100%);
    width: 0%;
    transition: width 0.1s ease;
    box-shadow: 0 0 10px rgba(255, 215, 0, 0.5);
}

/* Counter Animation */
@keyframes countUp {
    from { opacity: 0; transform: translateY(10px); }
    to { opacity: 1; transform: translateY(0); }
}

.stat-value {
    animation: countUp 0.5s ease forwards;
}

/* Responsive Design */
@media (max-width: 1024px) {
    .modern-nav {
        position: fixed;
        top: 0;
        left: -100%;
        width: 100%;
        height: 100vh;
        background: rgba(0, 0, 0, 0.98);
        backdrop-filter: blur(10px);
        z-index: 1000;
        transition: left 0.3s ease;
        overflow-y: auto;
        padding: 80px 0 40px;
    }
    
    .modern-nav.active {
        left: 0;
    }
    
    .modern-nav .nav-menu {
        flex-direction: column;
        align-items: stretch;
        gap: 0;
        padding: 0 20px;
    }
    
    .modern-nav .menu-item {
        border-bottom: 1px solid rgba(255, 215, 0, 0.1);
    }
    
    .modern-nav .menu-item > a {
        padding: 15px 20px;
        justify-content: flex-start;
    }
    
    .modern-toggle {
        display: flex;
    }
    
    .mega-menu {
        position: static !important;
        width: 100% !important;
        margin-top: 0 !important;
        border-radius: 0 !important;
        opacity: 1 !important;
        visibility: visible !important;
        transform: none !important;
        display: none;
        border: none;
        border-top: 1px solid rgba(255, 215, 0, 0.1);
    }
    
    .menu-item-has-mega.open .mega-menu {
        display: block;
    }
    
    .mega-menu-inner {
        grid-template-columns: 1fr;
        gap: 20px;
        padding: 20px;
    }
    
    /* Hide top bar on very small screens */
    .analytics-stats {
        display: none;
    }
    
    .header-topbar {
        padding: 8px 0;
    }
}

@media (max-width: 768px) {
    .header-topbar {
        padding: 8px 0;
    }
    
    .topbar-content {
        flex-direction: column;
        gap: 8px;
    }
    
    .analytics-stats {
        display: none;
    }
    
    .stat-item {
        gap: 4px;
        font-size: 11px;
    }
    
    .site-title {
        font-size: 18px;
    }
    
    .site-tagline {
        font-size: 9px;
    }
    
    .rocket-container {
        width: 35px;
        height: 35px;
    }
    
    .rocket-icon {
        width: 35px;
        height: 35px;
    }
    
    .header-main {
        padding: 8px 0;
    }
    
    .whatsapp-btn {
        font-size: 12px;
        padding: 6px 12px;
    }
}

@media (max-width: 480px) {
    .header-topbar {
        padding: 6px 0;
    }
    
    .topbar-content {
        padding: 0 10px;
    }
    
    .analytics-stats {
        display: none;
    }
    
    .stat-item {
        justify-content: center;
        font-size: 10px;
    }
    
    .whatsapp-btn {
        width: 100%;
        justify-content: center;
        font-size: 11px;
    }
    
    .site-title {
        font-size: 16px;
    }
    
    .site-tagline {
        font-size: 8px;
    }
    
    .rocket-container {
        width: 30px;
        height: 30px;
    }
    
    .rocket-icon {
        width: 30px;
        height: 30px;
    }
    
    .logo-wrapper {
        gap: 10px;
    }
    
    .header-main {
        padding: 6px 0;
    }
    
    .modern-toggle {
        padding: 5px 8px;
    }
    
    .modern-toggle .menu-icon span {
        width: 22px;
    }
}

/* Loading Animation for Stats */
.stat-value[data-count] {
    display: inline-block;
    font-variant-numeric: tabular-nums;
}

/* Glassmorphism Effects */
.modern-header::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(135deg, 
        rgba(255, 215, 0, 0.05) 0%, 
        transparent 50%, 
        rgba(255, 215, 0, 0.05) 100%);
    pointer-events: none;
}

/* Hover Effects Enhancement */
.modern-nav .menu-item {
    position: relative;
}

.modern-nav .menu-item::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 50%;
    transform: translateX(-50%) scaleX(0);
    width: 80%;
    height: 2px;
    background: var(--mimoza-gold);
    transition: transform 0.3s ease;
}

.modern-nav .menu-item:hover::after {
    transform: translateX(-50%) scaleX(1);
}

/* Smooth Scrolling Enhancement */
html {
    scroll-behavior: smooth;
}

/* Focus Styles for Accessibility */
.modern-nav .menu-item a:focus,
.whatsapp-btn:focus,
.btn-primary:focus {
    outline: 2px solid var(--mimoza-gold);
    outline-offset: 2px;
}
