:root {
    --theme-color-1: #4a90e2;
}

/* Reset and base styles */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html {
    overflow-x: hidden;
}

body {
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Oxygen, Ubuntu, Cantarell, sans-serif;
    line-height: 1.6;
    color: #333;
    margin: 0;
    padding: 0;
    /* New gradient background */
    background: linear-gradient(to bottom, 
        #4a90e2 0%,
        #357abd 15%,
        #2d6aa3 30%,
        #245a8a 45%,
        #1e4a70 60%,
        #1a3d5c 75%,
        #e8e8e8 90%,
        #ffffff 100%
    );
    min-height: 100vh;
    overflow-x: hidden;
    padding-top: 80px; /* Account for fixed header */
     /* With an image background */
    background-image: url('images/back.jpeg');
    background-size: cover;        /* Covers entire viewport */
    background-position: top;   /* Centers the image */
    background-repeat: no-repeat;  /* Prevents tiling */
    background-attachment: fixed;  /* Optional: keeps background fixed while scrolling */
    overscroll-behavior: none;
}

/* Header Section - Made transparent */
.site-header {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    background: rgba(255, 255, 255, 0.1);
    backdrop-filter: blur(20px);
    border-bottom: 1px solid rgba(255, 255, 255, 0.2);
    z-index: 1000;
    transition: all 0.3s ease;
    box-shadow: 0 4px 20px rgba(255, 255, 255, 0.1);
}

.site-header.scrolled {
    background: rgba(255, 255, 255, 0.15);
    backdrop-filter: blur(30px);
    box-shadow: 0 8px 30px rgba(255, 255, 255, 0.2);
}

.header-container {
    max-width: 1600px;
    margin: 0 auto;
    padding: 0 clamp(1rem, 3vw, 2rem);
    display: flex;
    align-items: center;
    justify-content: space-between;
    height: 80px;
}

/* Logo Section */
.logo {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    color: white;
    text-decoration: none;
    font-weight: 800;
    font-size: 1.6rem;
    font-family: 'League Spartan', sans-serif;
    transition: all 0.3s ease;
}

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

.logo-icon {
   width: 60px;
    height: 60px;
    display: flex;
    align-items: center;
    justify-content: center;
    position: relative;
}

/* Atom Structure */
.atom {
    position: relative;
    width: 55px;
    height: 55px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.nucleus {
    width: 8px;
    height: 8px;
    background: #ffffff;
    border-radius: 50%;
    position: absolute;
    box-shadow: 0 0 12px rgba(255, 255, 255, 0.8);
    z-index: 10;
    animation: nucleusPulse 2s ease-in-out infinite alternate;
}

.orbit {
    position: absolute;
    border: 2px solid rgba(255, 255, 255, 0.5);
    border-radius: 50%;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
}

.orbit-1 {
    width: 50px;
    height: 22px;
    transform: translate(-50%, -50%) rotate(0deg);
}

.orbit-2 {
    width: 50px;
    height: 22px;
    transform: translate(-50%, -50%) rotate(60deg);
}

.orbit-3 {
    width: 50px;
    height: 22px;
    transform: translate(-50%, -50%) rotate(120deg);
}

.electron {
    width: 5px;
    height: 5px;
    background: #4fc3f7;
    border-radius: 50%;
    position: absolute;
    box-shadow: 0 0 10px rgba(79, 195, 247, 0.8);
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
}

.electron-1 {
    animation: electronOrbit1 3s linear infinite;
}

.electron-2 {
    animation: electronOrbit2 4s linear infinite;
}

.electron-3 {
    animation: electronOrbit3 5s linear infinite;
}
/* Electron trail effects */
.electron::before {
    content: '';
    position: absolute;
    width: 10px;
    height: 10px;
    background: radial-gradient(circle, rgba(79, 195, 247, 0.3) 0%, transparent 70%);
    border-radius: 50%;
    top: -2.5px;
    left: -2.5px;
    animation: electronTrail 1.5s ease-in-out infinite alternate;
}
/* Fixed electron orbit animations - each follows its elliptical path */
@keyframes electronOrbit1 {
    0% { 
        transform: translate(-50%, -50%) translateX(22px) translateY(0px);
    }
    25% { 
        transform: translate(-50%, -50%) translateX(0px) translateY(-8px);
    }
    50% { 
        transform: translate(-50%, -50%) translateX(-22px) translateY(0px);
    }
    75% { 
        transform: translate(-50%, -50%) translateX(0px) translateY(8px);
    }
    100% { 
        transform: translate(-50%, -50%) translateX(22px) translateY(0px);
    }
}

@keyframes electronOrbit2 {
    0% { 
        transform: translate(-50%, -50%) rotate(60deg) translateX(22px) translateY(0px) rotate(-60deg);
    }
    25% { 
        transform: translate(-50%, -50%) rotate(60deg) translateX(0px) translateY(-8px) rotate(-60deg);
    }
    50% { 
        transform: translate(-50%, -50%) rotate(60deg) translateX(-22px) translateY(0px) rotate(-60deg);
    }
    75% { 
        transform: translate(-50%, -50%) rotate(60deg) translateX(0px) translateY(8px) rotate(-60deg);
    }
    100% { 
        transform: translate(-50%, -50%) rotate(60deg) translateX(22px) translateY(0px) rotate(-60deg);
    }
}

@keyframes electronOrbit3 {
    0% { 
        transform: translate(-50%, -50%) rotate(120deg) translateX(22px) translateY(0px) rotate(-120deg);
    }
    25% { 
        transform: translate(-50%, -50%) rotate(120deg) translateX(0px) translateY(-8px) rotate(-120deg);
    }
    50% { 
        transform: translate(-50%, -50%) rotate(120deg) translateX(-22px) translateY(0px) rotate(-120deg);
    }
    75% { 
        transform: translate(-50%, -50%) rotate(120deg) translateX(0px) translateY(8px) rotate(-120deg);
    }
    100% { 
        transform: translate(-50%, -50%) rotate(120deg) translateX(22px) translateY(0px) rotate(-120deg);
    }
}
@keyframes nucleusPulse {
    0% { 
        transform: scale(1);
        box-shadow: 0 0 8px rgba(255, 255, 255, 0.8);
    }
    100% { 
        transform: scale(1.2);
        box-shadow: 0 0 12px rgba(255, 255, 255, 1);
    }
}

@keyframes electronTrail {
    0% { 
        opacity: 0.2;
        transform: scale(0.8);
    }
    100% { 
        opacity: 0.5;
        transform: scale(1.2);
    }
}

@keyframes logoGlow {
    0% { 
        filter: brightness(1);
    }
    100% { 
        filter: brightness(1.1);
    }
}
.logo-text {
    display: flex;
    flex-direction: column;
    line-height: 1.2;
}

.logo-main {
    font-size: 1em;
    font-weight: 800;
}

.logo-tagline {
    font-size: 0.65em;
    opacity: 0.9;
    font-weight: 400;
    letter-spacing: 0.5px;
}

/* Navigation */
.main-nav {
    display: flex;
    align-items: center;
    gap: clamp(1.5rem, 4vw, 3rem);
}

.nav-links {
    display: flex;
    align-items: center;
    gap: clamp(1.5rem, 4vw, 2.5rem);
    list-style: none;
    margin: 0;
    padding: 0;
}

.nav-links li {
    position: relative;
}

.nav-links a {
    color: white;
    text-decoration: none;
    font-weight: 600;
    font-size: clamp(0.9rem, 2.5vw, 1rem);
    padding: 0.5rem 0;
    transition: all 0.3s ease;
    position: relative;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.nav-links a::before {
    content: '';
    position: absolute;
    bottom: -2px;
    left: 0;
    width: 0;
    height: 2px;
    background: linear-gradient(90deg, rgba(255, 255, 255, 0.8), rgba(255, 255, 255, 0.4));
    transition: width 0.3s ease;
}

.nav-links a:hover::before,
.nav-links a.active::before {
    width: 100%;
}

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

.nav-links a.active {
    color: white;
    text-shadow: 0 2px 8px rgba(255, 255, 255, 0.4);
}

/* Auth Buttons */
.auth-buttons {
    display: flex;
    align-items: center;
    gap: 1rem;
    margin-left: 1rem;
}

.auth-btn {
    padding: 0.6rem 1.5rem;
    border-radius: 8px;
    text-decoration: none;
    font-weight: 600;
    font-size: 0.9rem;
    transition: all 0.3s ease;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    border: 2px solid transparent;
}

.login-btn {
    color: white;
    background: transparent;
    border-color: rgba(255, 255, 255, 0.3);
}

.login-btn:hover {
    background: rgba(255, 255, 255, 0.1);
    border-color: rgba(255, 255, 255, 0.5);
    transform: translateY(-1px);
    box-shadow: 0 4px 15px rgba(255, 255, 255, 0.2);
}

.signup-btn {
    color: #4a90e2;
    background: white;
    border-color: white;
}

.signup-btn:hover {
    background: rgba(255, 255, 255, 0.9);
    transform: translateY(-1px);
    box-shadow: 0 4px 15px rgba(255, 255, 255, 0.3);
}

/* Search Button */
.search-btn {
    background: rgba(255, 255, 255, 0.15);
    border: 1px solid rgba(255, 255, 255, 0.2);
    border-radius: 12px;
    width: 45px;
    height: 45px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    cursor: pointer;
    transition: all 0.3s ease;
    font-size: 1.1rem;
}

.search-btn:hover {
    background: rgba(255, 255, 255, 0.25);
    border-color: rgba(255, 255, 255, 0.4);
    transform: scale(1.05);
    box-shadow: 0 4px 15px rgba(255, 255, 255, 0.2);
}

/* Mobile Menu Toggle */
.mobile-menu-toggle {
    display: none;
    background: none;
    border: none;
    color: white;
    font-size: 1.5rem;
    cursor: pointer;
    padding: 0.5rem;
    border-radius: 8px;
    transition: all 0.3s ease;
}

.mobile-menu-toggle:hover {
    background: rgba(255, 255, 255, 0.1);
}

/* Mobile Navigation */
@media (max-width: 768px) {
    .header-container {
        padding: 0 1rem;
        height: 70px;
    }
    
    body {
        padding-top: 70px;
    }
    
    .logo {
        font-size: 1.3rem;
    }
    
    .logo-icon {
        width: 50px;
        height: 50px;
    }
    
    .atom {
        width: 45px;
        height: 45px;
    }
    
    .nucleus {
        width: 7px;
        height: 7px;
    }
    
   .orbit-1,
   .orbit-2,
   .orbit-3 {
        width: 42px;
        height: 16px;
    }
    
    .electron {
        width: 4px;
        height: 4px;
    }
    /* Adjust mobile orbit animations */
    @keyframes electronOrbit1 {
        0% { 
            transform: translate(-50%, -50%) translateX(21px) translateY(0px);
        }
        25% { 
            transform: translate(-50%, -50%) translateX(0px) translateY(-8px);
        }
        50% { 
            transform: translate(-50%, -50%) translateX(-21px) translateY(0px);
        }
        75% { 
            transform: translate(-50%, -50%) translateX(0px) translateY(8px);
        }
        100% { 
            transform: translate(-50%, -50%) translateX(21px) translateY(0px);
        }
    }

    @keyframes electronOrbit2 {
        0% { 
            transform: translate(-50%, -50%) rotate(60deg) translateX(21px) translateY(0px) rotate(-60deg);
        }
        25% { 
            transform: translate(-50%, -50%) rotate(60deg) translateX(0px) translateY(-8px) rotate(-60deg);
        }
        50% { 
            transform: translate(-50%, -50%) rotate(60deg) translateX(-21px) translateY(0px) rotate(-60deg);
        }
        75% { 
            transform: translate(-50%, -50%) rotate(60deg) translateX(0px) translateY(8px) rotate(-60deg);
        }
        100% { 
            transform: translate(-50%, -50%) rotate(60deg) translateX(21px) translateY(0px) rotate(-60deg);
        }
    }

    @keyframes electronOrbit3 {
        0% { 
            transform: translate(-50%, -50%) rotate(120deg) translateX(21px) translateY(0px) rotate(-120deg);
        }
        25% { 
            transform: translate(-50%, -50%) rotate(120deg) translateX(0px) translateY(-8px) rotate(-120deg);
        }
        50% { 
            transform: translate(-50%, -50%) rotate(120deg) translateX(-21px) translateY(0px) rotate(-120deg);
        }
        75% { 
            transform: translate(-50%, -50%) rotate(120deg) translateX(0px) translateY(8px) rotate(-120deg);
        }
        100% { 
            transform: translate(-50%, -50%) rotate(120deg) translateX(21px) translateY(0px) rotate(-120deg);
        }
    }
    .mobile-menu-toggle {
        display: block;
    }
    
    .main-nav {
        position: fixed;
        top: 70px;
        left: 0;
        width: 100%;
        background: #012051;
        backdrop-filter: blur(30px);
        border-top: 1px solid rgba(255, 255, 255, 0.2);
        transform: translateY(-100%);
        opacity: 0;
        visibility: hidden;
        transition: all 0.3s ease;
        box-shadow: 0 8px 30px rgba(255, 255, 255, 0.1);
        flex-direction: column;
        padding: 2rem 1rem;
        gap: 2rem;
    }
    
    .main-nav.active {
        transform: translateY(0);
        opacity: 1;
        visibility: visible;
    }
    
    .nav-links {
        flex-direction: column;
        gap: 1.5rem;
        width: 100%;
    }
    
    .nav-links a {
        font-size: 1.1rem;
        padding: 1rem 0;
        width: 100%;
        text-align: center;
        border-bottom: 1px solid rgba(255, 255, 255, 0.1);
    }
    
    .auth-buttons {
        margin-left: 0;
        width: 100%;
        justify-content: center;
        gap: 1rem;
    }
    
    .auth-btn {
        padding: 0.8rem 2rem;
        flex: 1;
        max-width: 120px;
        text-align: center;
    }
    
    .search-btn {
        margin-top: 1rem;
        width: 100%;
        height: 50px;
        border-radius: 15px;
    }
}

/* Remove all cosmic background elements */
.cosmic-bg,
.deep-space-layer,
.nebula-layer-1,
.nebula-layer-2,
.nebula-layer-3,
.stars-layer-deep,
.stars-layer-mid,
.stars-layer-near,
.perspective-grid,
.quantum-field-3d,
.particles-bg {
    display: none;
}

/* Hero Section - Full Screen */
.hero-section {
    min-height: 60vh;
    background: transparent;
    display: flex;
    align-items: center;
    position: relative;
    overflow: hidden;
    width: 100%;
    max-width: 100vw;
}

.hero-container {
    max-width: 1700px;
    margin: 0 auto;
    padding: clamp(2rem, 5vw, 4rem);
    display: grid;
    grid-template-columns: 2fr 3fr;
    gap: clamp(3rem, 5vw, 4rem);
    align-items: center;
    position: relative;
    z-index: 1;
    width: 100%;
    overflow-x: hidden;
}

/* Hero Content - Left Side */
.hero-content {
    color: white;
    overflow-x: hidden;
    width: 100%;
    padding-left: 1rem; /* Adjust value as needed */

    padding-right: 1rem; /* Adjust value as needed */
}

.hero-title {
    font-family: 'Arial', sans-serif;
    font-size: clamp(1.6rem, 4.0vw, 3.2rem);
    font-weight: 900;
    line-height: 1.1;
    margin-bottom: 1.5rem;
    text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.3);
    word-wrap: break-word;
}

.hero-title .highlight-blue {
    color: #ffffff;
    text-shadow: 0 0 20px rgba(255, 255, 255, 0.5);
}

.hero-title .highlight-white {
    color: white;
    font-size: clamp(1.6rem, 4.0vw, 3.2rem);
}

/* Hero Search Bar */
.hero-search-container {
    margin-bottom: 2rem;
    position: relative;
    width: 100%;
    overflow: hidden;
}

.hero-search-bar {
    width: 100%;
    padding: clamp(1rem, 3vw, 1.2rem) clamp(1.5rem, 4vw, 2rem);
    padding-right: clamp(3.5rem, 6vw, 4rem);
    font-size: clamp(1rem, 2.5vw, 1.1rem);
    border: 2px solid rgba(255, 255, 255, 0.3);
    border-radius: 30px;
    background: rgba(255, 255, 255, 0.15);
    background: white;
    backdrop-filter: blur(20px);
    color: black;
    outline: none;
    transition: all 0.3s ease;
    font-family: inherit;
    box-sizing: border-box;
}

.hero-search-bar::placeholder {
    color: black;
    font-style: italic;
}

.hero-search-bar:focus {
    border-color: rgba(255, 255, 255, 0.6);
    background: rgba(255, 255, 255, 0.2);
    box-shadow: 0 0 0 3px rgba(255, 255, 255, 0.1);
    transform: translateY(-2px);
}

.hero-search-btn {
    position: absolute;
    right: 8px;
    top: 50%;
    transform: translateY(-50%);
    width: clamp(2.5rem, 5vw, 3rem);
    height: clamp(2.5rem, 5vw, 3rem);
    background: rgba(255, 255, 255, 0.2);
    border: 1px solid rgba(255, 255, 255, 0.3);
    border-radius: 30px;
    color: white;
    font-size: clamp(1rem, 2.5vw, 1.2rem);
    cursor: pointer;
    transition: all 0.3s ease;
    display: flex;
    align-items: center;
    justify-content: center;
}

.hero-search-btn:hover {
    background: rgba(255, 255, 255, 0.3);
    border-color: rgba(255, 255, 255, 0.5);
    transform: translateY(-50%) scale(1.05);
    box-shadow: 0 4px 15px rgba(255, 255, 255, 0.2);
}

.hero-subtitle {
    font-size: clamp(1.1rem, 3vw, 1.4rem);
    margin-bottom: 2rem;
    color: rgba(255, 255, 255, 0.9);
    line-height: 1.6;
    word-wrap: break-word;
}

.hero-subtitle .highlight {
    color: #ffffff;
    font-weight: 600;
    text-shadow: 0 0 10px rgba(255, 255, 255, 0.3);
}

.hero-btn {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    padding: clamp(1rem, 3vw, 1.2rem) clamp(2rem, 5vw, 2.5rem);
    background: linear-gradient(145deg, rgba(255, 255, 255, 0.2), rgba(255, 255, 255, 0.1));
    color: white;
    text-decoration: none;
    border-radius: 15px;
    font-weight: 700;
    font-size: clamp(0.9rem, 2.5vw, 1rem);
    transition: all 0.4s ease;
    border: 2px solid rgba(255, 255, 255, 0.3);
    cursor: pointer;
    text-transform: uppercase;
    letter-spacing: 1px;
    position: relative;
    overflow: hidden;
    box-shadow: 
        0 8px 25px rgba(255, 255, 255, 0.2),
        inset 0 1px 0 rgba(255, 255, 255, 0.3);
    backdrop-filter: blur(10px);
}

.hero-btn::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, 
        transparent 0%, 
        rgba(255, 255, 255, 0.1) 20%,
        rgba(255, 255, 255, 0.3) 50%,
        rgba(255, 255, 255, 0.1) 80%,
        transparent 100%);
    animation: scanBeam 4s linear infinite;
    border-radius: 15px;
}

@keyframes scanBeam {
    0% { left: -100%; }
    100% { left: 100%; }
}

.hero-btn:hover {
    transform: translateY(-3px) scale(1.05);
    background: linear-gradient(145deg, rgba(255, 255, 255, 0.3), rgba(255, 255, 255, 0.2));
    border-color: rgba(255, 255, 255, 0.5);
    box-shadow: 
        0 20px 50px rgba(255, 255, 255, 0.3),
        inset 0 2px 0 rgba(255, 255, 255, 0.4);
}

.hero-btn:active {
    transform: translateY(0px) scale(0.98);
    box-shadow: 
        0 8px 20px rgba(255, 255, 255, 0.2),
        inset 0 1px 0 rgba(255, 255, 255, 0.2);
}

.hero-btn:hover::before {
    left: 100%;
}

.hero-btn .icon {
    font-size: 1.2em;
}

/* Hero Media - Right Side (Simulator) - COMPLETELY TRANSPARENT */
.hero-media {
    position: relative;
    width: 100%;
    aspect-ratio: 16/12.2;
    max-height: 1000px;
    border-radius: 20px;
    overflow: hidden;
    background: transparent !important;
    /* Hide any scrollbars */
    scrollbar-width: none; /* Firefox */
    -ms-overflow-style: none; /* Internet Explorer 10+ */
     padding-right: 2rem; /* Adjust value as needed */
}

.hero-media::-webkit-scrollbar {
    display: none; /* WebKit browsers */
}

/* Simulator container styles - COMPLETELY TRANSPARENT */
.simulator-container {
    width: 100%;
    height: 100%;
    position: relative;
    border-radius: 20px;
    overflow: hidden;
    background: transparent !important;
    backdrop-filter: none !important;
    border: none !important;
    box-shadow: none !important;
    /* Hide scrollbars */
    scrollbar-width: none;
    -ms-overflow-style: none;
}

.simulator-container::-webkit-scrollbar {
    display: none;
}

.simulator-placeholder {
    width: 100%;
    height: 100%;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    background: transparent !important;
    color: white !important;
    position: relative;
    transition: all 0.3s ease;
}

/* Remove any background patterns */
.simulator-placeholder::before {
    display: none !important;
}

.placeholder-content {
    text-align: center;
    z-index: 1;
    position: relative;
}

.placeholder-icon {
    font-size: clamp(3rem, 8vw, 4rem);
    margin-bottom: 1rem;
    animation: float 3s ease-in-out infinite;
    color: white;
}

@keyframes float {
    0%, 100% { transform: translateY(0px); }
    50% { transform: translateY(-10px); }
}

.placeholder-title {
    font-size: clamp(1.2rem, 4vw, 1.5rem);
    font-weight: 600;
    margin-bottom: 0.5rem;
    color: white !important;
}

.placeholder-subtitle {
    font-size: clamp(0.9rem, 2.5vw, 1rem);
    opacity: 0.9;
    margin-bottom: 1.5rem;
    color: rgba(255, 255, 255, 0.9) !important;
}

.placeholder-dots {
    display: flex;
    gap: 0.5rem;
    justify-content: center;
    align-items: center;
}

.placeholder-dots span {
    width: 8px;
    height: 8px;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.7) !important;
    animation: pulse 1.5s ease-in-out infinite;
}

.placeholder-dots span:nth-child(1) { animation-delay: 0s; }
.placeholder-dots span:nth-child(2) { animation-delay: 0.2s; }
.placeholder-dots span:nth-child(3) { animation-delay: 0.4s; }

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

.simulator-iframe {
    width: 100%;
    height: 100%;
    border: none;
    opacity: 0;
    transition: opacity 0.5s ease;
    background: transparent !important;
    border-radius: 0px;
    /* Remove scrollbars from iframe */
    scrolling: no;
    overflow: hidden;
}

.simulator-iframe.loaded {
    opacity: 1;
}

/* Mobile specific fixes */
@media (max-width: 768px) {
    .hero-container {
        grid-template-columns: 1fr;
        gap: 2rem;
        text-align: center;
        max-width: 100%;
        padding: clamp(1rem, 4vw, 2rem);
        overflow-x: hidden; /* Prevent horizontal scroll */
    }
    
    .hero-content {
        order: 1;
        width: 100%;
        max-width: 100%;
        overflow-x: hidden;
    }
    
    .hero-media {
        order: 2;
        aspect-ratio: 4/3;
        max-height: 400px;
        width: 100%;
        max-width: 100%;
        /* Ensure no overflow */
        overflow: hidden;
        margin: 0 auto;
    }
    
    .simulator-container {
        width: 100%;
        height: 100%;
        overflow: hidden;
        position: relative;
    }
    
    .simulator-iframe {
        width: 100%;
        height: 100%;
        max-width: 100%;
        max-height: 100%;
        /* Force no scrollbars */
        overflow: hidden;
        scrolling: no;
    }
    
    /* Hide any overflow from placeholder */
    .simulator-placeholder {
        width: 100%;
        height: 100%;
        overflow: hidden;
        position: relative;
    }
    
    .loading-overlay {
        width: 100%;
        height: 100%;
        overflow: hidden;
        position: absolute;
    }
}

/* Extra small mobile devices */
@media (max-width: 480px) {
    .hero-media {
        aspect-ratio: 1/1; /* Square aspect ratio for very small screens */
        max-height: 300px;
    }
    
    .hero-container {
        padding: clamp(1rem, 3vw, 2rem);
        overflow-x: hidden;
    }
}

.loading-overlay {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: transparent !important;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    z-index: 10;
    transition: opacity 0.3s ease;
    backdrop-filter: none !important;
}

.loading-overlay.hidden {
    opacity: 0;
    pointer-events: none;
}

.loading-spinner {
    width: 40px;
    height: 40px;
    border: 4px solid rgba(255, 255, 255, 0.2) !important;
    border-top: 4px solid white !important;
    border-radius: 50%;
    animation: spin 1s linear infinite;
    margin-bottom: 1rem;
}

@keyframes spin {
    0% { transform: rotate(0deg); }
    100% { transform: rotate(360deg); }
}

.loading-text {
    color: white !important;
    font-weight: 600;
    font-size: 1rem;
}

/* Error state styling - transparent */
.simulator-error {
    background: transparent !important;
    color: white !important;
}

/* Force transparent background on any child elements */
.simulator-container *,
.simulator-placeholder *,
.loading-overlay * {
    background-color: transparent !important;
}

/* Our Simulators Section */
.simulators-section {
    padding: clamp(1rem, 2vw, 1.5rem) 0;
    background: white;
    position: relative;
    left: 50%;
    right: 50%;
    margin-left: -50vw;
    margin-right: -50vw;
    width: 100vw;
}

.simulators-container {
    max-width: 1600px;
    margin: 0 auto;
    padding: 0 clamp(1rem, 3vw, 2rem);
}

.simulators-header-grid {
    display: grid;
    grid-template-columns: 1fr;
    gap: clamp(2rem, 4vw, 3rem);
    align-items: center;
    text-align: center;
}

.simulators-text-content {
    text-align: center;
    padding: 0;
    margin-bottom: 1rem;
}

.simulators-title {
    font-size: clamp(2rem, 4vw, 2.8rem);
    font-weight: 700;
    color: #333;
    margin-bottom: 1rem;
    line-height: 1.2;
}

.simulators-subtitle {
    font-size: clamp(1rem, 2vw, 1.2rem);
    color: #666;
    margin: 0;
    line-height: 1.4;
}

.simulators-cards-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: clamp(1rem, 2vw, 1.5rem);
    width: 100%;
}

.simulator-card {
    background: white;
    border-radius: 5px;
    overflow: hidden;
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.1);
    transition: all 0.3s ease;
    border: 1px solid rgba(0, 0, 0, 0.05);
    min-width: 0; /* Prevents overflow */
}

.simulator-card:hover {
    transform: translateY(-8px);
    box-shadow: 0 16px 48px rgba(0, 0, 0, 0.15);
}

/* Responsive breakpoints for simulator cards */
@media (max-width: 1200px) {
    .simulators-cards-grid {
        grid-template-columns: repeat(3, 1fr);
        gap: 1.5rem;
    }
}

@media (max-width: 900px) {
    .simulators-cards-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 1.5rem;
    }
    
    .simulators-section {
        padding: clamp(2rem, 4vw, 3rem) 0;
    }
    
    .carousel-container {
        height: 140px;
    }
    
    .slide-icon {
        font-size: 3.5rem;
    }
}

@media (max-width: 600px) {
    .simulators-cards-grid {
        grid-template-columns: 1fr;
        gap: 1.5rem;
        max-width: 400px;
        margin: 0 auto;
    }
    
    .simulators-header-grid {
        gap: 1.5rem;
    }
    
    .simulators-container {
        padding: 0 clamp(1rem, 4vw, 1.5rem);
    }
    
    .simulator-card {
        max-width: 100%;
    }
    
    .carousel-container {
        height: 160px;
    }
    
    .slide-icon {
        font-size: 4rem;
    }
    
    .simulator-btn {
        padding: 1rem;
        font-size: 1rem;
    }
}

@media (max-width: 480px) {
    .simulators-title {
        font-size: clamp(1.8rem, 6vw, 2.2rem);
    }
    
    .simulators-subtitle {
        font-size: clamp(0.9rem, 3vw, 1rem);
    }
    
    .simulators-cards-grid {
        gap: 1.2rem;
        max-width: 350px;
    }
    
    .carousel-container {
        height: 150px;
    }
    
    .slide-icon {
        font-size: 3.5rem;
    }
    
    .simulator-btn {
        padding: 0.8rem;
        font-size: 0.9rem;
    }
}

/* Carousel Styles */
.carousel-container {
    position: relative;
    width: 100%;
    height: 160px;
    overflow: hidden;
    border-bottom: 1px solid rgba(0, 0, 0, 0.05);
    background: linear-gradient(135deg, #f8f9ff 0%, #e8f0ff 100%);
}

.carousel-track {
    position: relative;
    width: 100%;
    height: 100%;
}

.carousel-slide {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 0;
    transform: translateX(50px);
    transition: all 0.5s ease;
}

.carousel-slide.active {
    opacity: 1;
    transform: translateX(0);
}

.slide-content {
    text-align: center;
    padding: 0.8rem;
}

.slide-icon {
    font-size: 4.5rem;
    margin-bottom: 0.8rem;
    display: block;
}

.slide-content h4 {
    font-size: 1.1rem;
    font-weight: 600;
    color: #333;
    margin-bottom: 0.4rem;
}

.slide-content p {
    font-size: 0.85rem;
    color: #666;
    margin: 0;
}

.carousel-nav {
    position: absolute;
    top: 50%;
    width: 100%;
    display: flex;
    justify-content: space-between;
    transform: translateY(-50%);
    padding: 0 10px;
    pointer-events: none;
}

.carousel-btn {
    background: rgba(255, 255, 255, 0.9);
    border: none;
    width: 35px;
    height: 35px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    font-size: 18px;
    color: #333;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
    transition: all 0.3s ease;
    pointer-events: all;
}

.carousel-btn:hover {
    background: white;
    transform: scale(1.1);
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.2);
}

.carousel-dots {
    position: absolute;
    bottom: 15px;
    left: 50%;
    transform: translateX(-50%);
    display: flex;
    gap: 8px;
}

.dot {
    width: 8px;
    height: 8px;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.5);
    cursor: pointer;
    transition: all 0.3s ease;
}

.dot.active {
    background: white;
    transform: scale(1.2);
}

.dot:hover {
    background: rgba(255, 255, 255, 0.8);
}

.simulator-image-placeholder {
    width: 100%;
    height: 220px;
    background: linear-gradient(135deg, #f5f7fa 0%, #c3cfe2 100%);
    display: flex;
    align-items: center;
    justify-content: center;
    border-bottom: 1px solid rgba(0, 0, 0, 0.05);
    position: relative;
    overflow: hidden;
}

.simulator-image-placeholder::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: repeating-linear-gradient(
        45deg,
        rgba(255, 255, 255, 0.1),
        rgba(255, 255, 255, 0.1) 10px,
        transparent 10px,
        transparent 20px
    );
}

.placeholder-text {
    color: #666;
    font-size: 1rem;
    font-weight: 500;
    text-align: center;
    z-index: 1;
    position: relative;
    padding: 1rem;
}

.simulator-btn {
    width: 100%;
    padding: clamp(0.8rem, 2vw, 1rem);
    background: linear-gradient(45deg, #012051, #357abd);
    color: white;
    border: none;
    font-size: clamp(0.9rem, 2vw, 1rem);
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
    text-transform: capitalize;
}

.simulator-btn:hover {
    background: linear-gradient(45deg, #357abd, #2d6aa3);
    transform: translateY(-2px);
}

/* Container for main content - Now with white background */
.main-container {
    background: white;
    min-height: 100vh;
    margin-top: 0;
    overflow-x: hidden;
}

.container {
    max-width: none;
    margin: 0 auto;
    padding: clamp(2rem, 5vw, 4rem);
    overflow-x: hidden;
}

/* What's Trending Section - Fixed for clipping issues */
.trending-section {
    padding: clamp(4rem, 8vw, 6rem) 0;
    background: #f8f9fa;
    position: relative;
    left: 50%;
    right: 50%;
    margin-left: -50vw;
    margin-right: -50vw;
    width: 100vw;
    overflow: visible; /* Changed from hidden to visible */
}

.trending-container {
    max-width: 1600px;
    margin: 0 auto;
    padding: 0 clamp(1.5rem, 4vw, 3rem); /* Increased minimum padding */
    overflow: visible; /* Ensure container doesn't clip content */
}

.trending-title {
    font-size: clamp(2.5rem, 5vw, 3.5rem);
    font-weight: 700;
    color: #333;
    margin-bottom: clamp(3rem, 6vw, 4rem);
    text-align: center;
    line-height: 1.2;
}

.trending-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: clamp(1.5rem, 3vw, 2.5rem); /* Adjusted gap */
    margin-bottom: 2rem;
    padding: 0; /* Remove any padding that might cause clipping */
}

.trending-card {
    background: white;
    border-radius: 12px;
    overflow: hidden;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.08);
    transition: all 0.3s ease;
    border: 1px solid rgba(0, 0, 0, 0.06);
    display: flex;
    flex-direction: column;
    min-width: 0; /* Prevents overflow */
    width: 100%; /* Ensure full width usage */
    height: auto;
}

.trending-card:hover {
    transform: translateY(-8px);
    box-shadow: 0 12px 40px rgba(0, 0, 0, 0.12);
    border-color: rgba(0, 0, 0, 0.1);
}

/* Image wrapper with padding - now clickable */
.trending-image-wrapper {
    padding: clamp(0.75rem, 1.5vw, 1rem); /* Adjusted padding */
    background: white;
    display: block;
    text-decoration: none;
    transition: all 0.3s ease;
    cursor: pointer;
}

.trending-image-wrapper:hover {
    transform: translateY(-2px);
}

.trending-image-wrapper:active {
    transform: translateY(0px);
}

.trending-image-container {
    width: 100%;
    height: 200px; /* Fixed height for consistency */
    position: relative;
    overflow: hidden;
    background: #f8f9fa;
    border-radius: 8px;
    border: 1px solid rgba(0, 0, 0, 0.06);
}

.trending-image {
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: center;
    display: block;
    transition: transform 0.3s ease;
    border-radius: 8px;
}

/* Hover effect for images */
.trending-card:hover .trending-image {
    transform: scale(1.02);
}

/* Content area */
.trending-content {
    padding: clamp(1rem, 2vw, 1.5rem); /* Increased padding */
    flex: 1;
    display: flex;
    flex-direction: column;
    gap: 1.0rem;
}

.trending-content h3 {
    font-size: clamp(1.1rem, 2.5vw, 1.3rem);
    font-weight: 600;
    color: #333;
    margin: 0;
    line-height: 1.3;
    min-height: 2.6em; /* Increased for better title display */
    display: -webkit-box;
    -webkit-line-clamp: 2; /* Allow 2 lines for title */
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.trending-content p {
    font-size: clamp(0.9rem, 2vw, 1rem);
    color: #666;
    line-height: 1.6;
    margin: 0;
    flex: 1;
    display: -webkit-box;
    -webkit-line-clamp: 3;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.trending-btn {
    padding: 0.75rem 1.5rem;
    background: white;
    color: #555;
    border: 1.5px solid #e0e0e0;
    border-radius: 6px;
    font-size: 0.9rem;
    font-weight: 500;
    cursor: pointer;
    transition: all 0.3s ease;
    align-self: flex-start;
    text-transform: none;
    letter-spacing: normal;
    font-family: inherit;
    margin-top: auto;
    text-decoration: none;
    display: inline-block;
    text-align: center;
    white-space: nowrap; /* Prevent button text wrapping */
}

.trending-btn:hover {
    background: #4a90e2;
    color: white;
    border-color: #4a90e2;
    transform: translateY(-1px);
    box-shadow: 0 4px 12px rgba(74, 144, 226, 0.25);
}

/* Responsive Design with better spacing */
@media (max-width: 1200px) {
    .trending-grid {
        grid-template-columns: repeat(3, 1fr);
        gap: 1.5rem;
    }
    
    .trending-container {
        padding: 0 2rem; /* Increased padding for medium screens */
    }
}

@media (max-width: 900px) {
    .trending-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 1.5rem;
    }
    
    .trending-container {
        padding: 0 1.5rem;
    }
    
    .trending-image-container {
        height: 180px;
    }
    
    .trending-content {
        padding: 1.25rem;
    }
}

@media (max-width: 600px) {
    .trending-grid {
        grid-template-columns: 1fr;
        gap: 1.5rem;
        max-width: 100%; /* Ensure single column doesn't get too wide */
        margin: 0 auto;
    }
    
    .trending-container {
        padding: 0 1rem; /* Reduced padding for mobile */
    }
    
    .trending-image-wrapper {
        padding: 1rem;
    }
    
    .trending-image-container {
        height: 200px;
    }
    
    .trending-content {
        padding: 1.25rem;
    }
    
    .trending-content h3 {
        min-height: auto; /* Reset min-height on mobile */
        -webkit-line-clamp: 3; /* Allow more lines on mobile */
    }
    
    .trending-content p {
        -webkit-line-clamp: 4;
    }
}

@media (max-width: 480px) {
    .trending-container {
        padding: 0 0.75rem; /* Minimal padding for very small screens */
    }
    
    .trending-grid {
        gap: 1rem;
    }
    
    .trending-image-wrapper {
        padding: 0.75rem;
    }
    
    .trending-content {
        padding: 1rem;
    }
}

/* Fix for very wide screens */
@media (min-width: 1600px) {
    .trending-container {
        max-width: 1800px;
        padding: 0 4rem; /* More padding for very wide screens */
    }
    
    .trending-grid {
        gap: 3rem;
    }
    
    .trending-image-container {
        height: 220px;
    }
}

/* Ensure no clipping on any screen size */
.trending-section * {
    box-sizing: border-box;
}

/* Loading states and fallbacks */
.trending-image {
    background: linear-gradient(135deg, #f8f9fa 0%, #e9ecef 100%);
}

/* Shimmer effect while loading */
.trending-image-container::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(
        90deg,
        transparent 0%,
        rgba(255, 255, 255, 0.6) 50%,
        transparent 100%
    );
    animation: shimmer 2s infinite;
    z-index: 1;
    pointer-events: none;
}

@keyframes shimmer {
    0% { left: -100%; }
    100% { left: 100%; }
}

/* Hide shimmer after interaction */
.trending-card:hover .trending-image-container::before {
    animation: none;
    opacity: 0;
}

/* Ensure images are above shimmer */
.trending-image {
    position: relative;
    z-index: 2;
}

/* Stats Section - Enhanced Responsive Design */
.stats-wrapper {
    background: #1e3a5f;
    position: relative;
    overflow: hidden;
    left: 50%;
    right: 50%;
    margin-left: -50vw;
    margin-right: -50vw;
    width: 100vw;
}

.stats {
    background: #1e3a5f;
    padding: clamp(2rem, 5vw, 3rem);
    backdrop-filter: none;
    border: none;
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 2rem;
    margin-bottom: 0;
    border-radius: 0;
    max-width: 1400px;
    margin: 0 auto;
}

.stat-number {
    font-family: 'Orbitron', monospace;
    font-size: clamp(2rem, 5vw, 2.5rem);
    font-weight: 900;
    display: block;
    margin-bottom: 0.8rem;
    color: white;
    animation: numberGlow 2s ease-in-out infinite alternate;
}

@keyframes numberGlow {
    from { filter: brightness(1); }
    to { filter: brightness(1.2) drop-shadow(0 0 8px rgba(255, 255, 255, 0.5)); }
}

.stat-label {
    opacity: 0.9;
    font-size: clamp(0.9rem, 2vw, 1rem);
    font-weight: 500;
    color: rgba(255, 255, 255, 0.9);
}

/* Explore Science Section - Enhanced Responsive Design */
.explore-science-section {
    background: #1e3a5f;
    padding: clamp(3rem, 6vw, 5rem) 0;
    color: white;
    position: relative;
    left: 50%;
    right: 50%;
    margin-left: -50vw;
    margin-right: -50vw;
    width: 100vw;
    overflow-x: hidden;
}

.explore-container {
    max-width: 1400px;
    margin: 0 auto;
    padding: 0 clamp(1rem, 3vw, 2rem);
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: clamp(3rem, 6vw, 5rem);
    align-items: center;
    overflow-x: hidden;
}

.explore-content {
    z-index: 2;
    position: relative;
    overflow-x: hidden;
}

.explore-title {
    font-size: clamp(2rem, 4vw, 2.5rem);
    font-weight: 700;
    margin-bottom: 1.5rem;
    line-height: 1.2;
    color: white;
    word-wrap: break-word;
}

.explore-description {
    font-size: clamp(1rem, 2.5vw, 1.1rem);
    line-height: 1.6;
    margin-bottom: 1.5rem;
    color: rgba(255, 255, 255, 0.9);
    word-wrap: break-word;
}

.explore-note {
    font-size: clamp(0.9rem, 2vw, 1rem);
    color: rgba(255, 255, 255, 0.8);
    font-style: italic;
    margin-top: 2rem;
    word-wrap: break-word;
}

.explore-visual {
    position: relative;
    height: 400px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: transparent;
    overflow: hidden;
}

.explore-image-container {
    width: 100%;
    height: 100%;
    position: relative;
    border-radius: 20px;
    overflow: hidden;
    border: 2px solid rgba(255, 255, 255, 0.2);
    backdrop-filter: blur(10px);
    background: linear-gradient(135deg, rgba(255, 255, 255, 0.1) 0%, rgba(255, 255, 255, 0.05) 100%);
    background: transparent;
}

.explore-image {
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: center;
    border-radius: 18px;
    transition: all 0.3s ease;
    opacity: 0;
    transform: scale(1.1);
}

.explore-image.loaded {
    opacity: 1;
    transform: scale(1);
}

.explore-image-container:hover .explore-image {
    transform: scale(1.05);
}

/* Loading state */
.explore-image-loading {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 40px;
    height: 40px;
    border: 4px solid rgba(255, 255, 255, 0.2);
    border-top: 4px solid white;
    border-radius: 50%;
    animation: spin 1s linear infinite;
    z-index: 3;
    opacity: 1;
    transition: opacity 0.3s ease;
}

.explore-image-container.loaded .explore-image-loading {
    opacity: 0;
}

/* Placeholder styling (shown when image is loading or fails) */
.explore-image-placeholder {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    background: linear-gradient(135deg, rgba(255, 255, 255, 0.1) 0%, rgba(255, 255, 255, 0.05) 100%);
    z-index: 1;
    transition: opacity 0.3s ease;
}

.explore-image-container.loaded .explore-image-placeholder {
    opacity: 0;
    pointer-events: none;
}

.explore-image-placeholder::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: repeating-linear-gradient(
        45deg,
        rgba(255, 255, 255, 0.1),
        rgba(255, 255, 255, 0.1) 12px,
        transparent 12px,
        transparent 24px
    );
}

.explore-image-placeholder .placeholder-text {
    color: rgba(255, 255, 255, 0.8);
    font-size: clamp(1rem, 2.5vw, 1.2rem);
    font-weight: 500;
    text-align: center;
    z-index: 1;
    position: relative;
    padding: 2rem;
}

/* Error state */
.explore-image-container.error .explore-image-placeholder .placeholder-text {
    color: #ff6b6b;
}

.explore-image-container.error .explore-image-placeholder .placeholder-text::before {
    content: '⚠️ ';
    margin-right: 0.5rem;
}

/* Enhanced Responsive Breakpoints */

/* Large tablets and landscape phones (1024px and down) */
@media (max-width: 1024px) {
    .explore-container {
        gap: clamp(2rem, 4vw, 3rem);
    }
    
    .explore-visual {
        height: 350px;
    }
}

/* Portrait tablets and large phones (768px and down) */
@media (max-width: 768px) {
    .explore-container {
        grid-template-columns: 1fr; /* Stack vertically */
        gap: 2.5rem;
        text-align: center;
        padding: 0 clamp(1rem, 4vw, 2rem);
    }
    
    /* Content comes first on mobile */
    .explore-content {
        order: 1;
        text-align: center;
        max-width: 100%;
    }
    
    /* Visual comes second */
    .explore-visual {
        order: 2;
        height: 300px;
        width: 100%;
        max-width: 500px; /* Limit width on smaller screens */
        margin: 0 auto;
    }
    
    .explore-title {
        font-size: clamp(1.8rem, 5vw, 2.2rem);
        margin-bottom: 1.2rem;
    }
    
    .explore-description {
        font-size: clamp(0.95rem, 3vw, 1.05rem);
        margin-bottom: 1.2rem;
    }
    
    .explore-note {
        font-size: clamp(0.85rem, 2.5vw, 0.95rem);
        margin-top: 1.5rem;
    }
}

/* Small phones and portrait orientation (600px and down) */
@media (max-width: 600px) {
    .explore-science-section {
        padding: clamp(2rem, 5vw, 3rem) 0;
    }
    
    .explore-container {
        gap: 2rem;
        padding: 0 clamp(1rem, 4vw, 1.5rem);
    }
    
    .explore-visual {
        height: 250px;
        max-width: 400px;
    }
    
    .explore-title {
        font-size: clamp(1.6rem, 6vw, 2rem);
        line-height: 1.1;
    }
    
    .explore-description {
        font-size: clamp(0.9rem, 3.5vw, 1rem);
        line-height: 1.5;
    }
}

/* Very small phones (480px and down) */
@media (max-width: 480px) {
    .explore-container {
        gap: 1.5rem;
        padding: 0 1rem;
    }
    
    .explore-visual {
        height: 220px;
        max-width: 350px;
    }
    
    .explore-image-container {
        border-radius: 15px;
    }
    
    .explore-image {
        border-radius: 13px;
    }
    
    .explore-title {
        font-size: clamp(1.4rem, 7vw, 1.8rem);
        margin-bottom: 1rem;
    }
    
    .explore-description {
        font-size: clamp(0.85rem, 4vw, 0.95rem);
        margin-bottom: 1rem;
    }
    
    .explore-note {
        font-size: clamp(0.8rem, 3vw, 0.9rem);
        margin-top: 1rem;
    }
}

/* Orientation-specific breakpoints */

/* Portrait orientation for tablets */
@media (orientation: portrait) and (max-width: 1024px) {
    .explore-container {
        grid-template-columns: 1fr;
        gap: 2rem;
        text-align: center;
    }
    
    .explore-content {
        order: 1;
    }
    
    .explore-visual {
        order: 2;
        height: 280px;
        max-width: 450px;
        margin: 0 auto;
    }
}

/* Landscape orientation for phones */
@media (orientation: landscape) and (max-height: 500px) {
    .explore-science-section {
        padding: clamp(1.5rem, 3vw, 2rem) 0;
    }
    
    .explore-container {
        grid-template-columns: 1fr 1fr; /* Keep side by side in landscape */
        gap: 2rem;
        align-items: center;
    }
    
    .explore-visual {
        height: 200px;
    }
    
    .explore-title {
        font-size: clamp(1.3rem, 4vw, 1.6rem);
        margin-bottom: 0.8rem;
    }
    
    .explore-description {
        font-size: clamp(0.8rem, 2.5vw, 0.9rem);
        margin-bottom: 0.8rem;
    }
    
    .explore-note {
        font-size: clamp(0.75rem, 2vw, 0.85rem);
        margin-top: 1rem;
    }
}

/* High DPI displays adjustments */
@media (-webkit-min-device-pixel-ratio: 2), (min-resolution: 192dpi) {
    .explore-image-container {
        border-width: 1px; /* Thinner borders on high DPI */
    }
}

/* Accessibility - Reduced motion */
@media (prefers-reduced-motion: reduce) {
    .explore-image,
    .explore-image-container {
        transition: none;
    }
    
    .explore-image-container:hover .explore-image {
        transform: none;
    }
}

/* Device Styles */
.device {
    position: absolute;
    background: #2a2a2a;
    border-radius: 8px;
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.3);
    transition: all 0.3s ease;
}

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

.laptop {
    width: 200px;
    height: 120px;
    top: 20%;
    left: 20%;
    border-radius: 8px 8px 2px 2px;
}

.tablet {
    width: 120px;
    height: 160px;
    top: 10%;
    right: 25%;
    border-radius: 12px;
}

.phone {
    width: 80px;
    height: 140px;
    bottom: 20%;
    right: 10%;
    border-radius: 16px;
}

.screen {
    width: calc(100% - 16px);
    height: calc(100% - 16px);
    margin: 8px;
    background: #1a1a1a;
    border-radius: 4px;
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: hidden;
}

.simulator-preview {
    width: 100%;
    height: 100%;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    display: flex;
    align-items: center;
    justify-content: center;
    position: relative;
}

.simulator-preview::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: repeating-linear-gradient(
        45deg,
        rgba(255, 255, 255, 0.1),
        rgba(255, 255, 255, 0.1) 4px,
        transparent 4px,
        transparent 8px
    );
}

.preview-content {
    color: white;
    font-size: 0.7rem;
    font-weight: 500;
    text-align: center;
    z-index: 1;
    position: relative;
}

/* Projector */
.projector {
    position: absolute;
    bottom: 10%;
    left: 10%;
}

.projector-body {
    width: 80px;
    height: 40px;
    background: #333;
    border-radius: 8px;
    position: relative;
    box-shadow: 0 4px 16px rgba(0, 0, 0, 0.3);
}

.projector-body::before {
    content: '';
    position: absolute;
    right: -8px;
    top: 50%;
    transform: translateY(-50%);
    width: 16px;
    height: 16px;
    background: #555;
    border-radius: 50%;
}

.projector-stand {
    width: 4px;
    height: 60px;
    background: #444;
    margin: 0 auto;
    position: relative;
}

.projector-stand::after {
    content: '';
    position: absolute;
    bottom: -8px;
    left: 50%;
    transform: translateX(-50%);
    width: 40px;
    height: 8px;
    background: #333;
    border-radius: 4px;
}

.projection-beam {
    position: absolute;
    top: -20px;
    right: -8px;
    width: 0;
    height: 0;
    border-left: 60px solid rgba(255, 255, 255, 0.1);
    border-top: 20px solid transparent;
    border-bottom: 20px solid transparent;
    opacity: 0.6;
}

/* Stats Cards Section */
.stats-cards-wrapper {
    background: linear-gradient(135deg, #4a5568 0%, #2d3748 100%);
    position: relative;
    overflow: hidden;
    left: 50%;
    right: 50%;
    margin-left: -50vw;
    margin-right: -50vw;
    width: 100vw;
    border-radius: 0;
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.2);
}

.stats-cards-container {
    padding: clamp(3rem, 6vw, 5rem) clamp(2rem, 4vw, 3rem);
    max-width: 1400px;
    margin: 0 auto;
    background: transparent;

}

.stats-cards-title {
    text-align: center;
    color: white;
    font-size: clamp(2rem, 4vw, 3rem);
    font-weight: 700;
    margin-bottom: clamp(2rem, 4vw, 3rem);
    text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.3);
}

.stats-cards-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: clamp(1.5rem, 3vw, 2.5rem);
}

.stat-card {
    background: rgba(255, 255, 255, 0.1);
    backdrop-filter: blur(20px);
    border: 1px solid rgba(255, 255, 255, 0.2);
    border-radius: 20px;
    padding: clamp(1rem, 4vw, 2.5rem);
    text-align: center;
    transition: all 0.4s ease;
    position: relative;
    overflow: hidden;
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.1);
    cursor: pointer;
}

.stat-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, 
        transparent 0%, 
        rgba(255, 255, 255, 0.1) 20%,
        rgba(255, 255, 255, 0.2) 50%,
        rgba(255, 255, 255, 0.1) 80%,
        transparent 100%);
    transition: left 0.6s ease;
}

.stat-card:hover {
    transform: translateY(-10px) scale(1.02);
    background: rgba(255, 255, 255, 0.15);
    border-color: rgba(255, 255, 255, 0.3);
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.2);
}

.stat-card:hover::before {
    left: 100%;
}

.stat-icon {
    font-size: clamp(3rem, 6vw, 4rem);
    margin-bottom: 1.5rem;
    display: block;
    filter: drop-shadow(0 4px 8px rgba(0, 0, 0, 0.3));
    animation: iconFloat 3s ease-in-out infinite;
}

@keyframes iconFloat {
    0%, 100% { transform: translateY(0px); }
    50% { transform: translateY(-8px); }
}

.stat-number {
    font-family: 'Orbitron', monospace;
    font-size: clamp(2.5rem, 5vw, 3.5rem);
    font-weight: 900;
    display: block;
    margin-bottom: 1rem;
    color: white;
    animation: numberGlow 2s ease-in-out infinite alternate;
    text-shadow: 0 0 20px rgba(255, 255, 255, 0.5);
}

@keyframes numberGlow {
    from { 
        filter: brightness(1);
        text-shadow: 0 0 20px rgba(255, 255, 255, 0.5);
    }
    to { 
        filter: brightness(1.2);
        text-shadow: 0 0 30px rgba(255, 255, 255, 0.8), 0 0 40px rgba(74, 144, 226, 0.4);
    }
}

.stat-label {
    font-size: clamp(1rem, 2.5vw, 1.2rem);
    font-weight: 600;
    color: rgba(255, 255, 255, 0.95);
    margin-bottom: 0.8rem;
    text-transform: uppercase;
    letter-spacing: 1px;
}

.stat-description {
    font-size: clamp(0.9rem, 2vw, 1rem);
    color: rgba(255, 255, 255, 0.8);
    line-height: 1.5;
    font-style: italic;
}

/* Individual card color themes */
.stat-card.simulations {
    background: linear-gradient(135deg, rgba(79, 172, 254, 0.2), rgba(0, 242, 195, 0.1));
    border-color: rgba(79, 172, 254, 0.3);
}

.stat-card.simulations:hover {
    background: linear-gradient(135deg, rgba(79, 172, 254, 0.3), rgba(0, 242, 195, 0.15));
    box-shadow: 0 20px 60px rgba(79, 172, 254, 0.3);
}

.stat-card.students {
    background: linear-gradient(135deg, rgba(255, 107, 107, 0.2), rgba(255, 142, 83, 0.1));
    border-color: rgba(255, 107, 107, 0.3);
}

.stat-card.students:hover {
    background: linear-gradient(135deg, rgba(255, 107, 107, 0.3), rgba(255, 142, 83, 0.15));
    box-shadow: 0 20px 60px rgba(255, 107, 107, 0.3);
}

.stat-card.schools {
    background: linear-gradient(135deg, rgba(123, 97, 255, 0.2), rgba(168, 85, 247, 0.1));
    border-color: rgba(123, 97, 255, 0.3);
}

.stat-card.schools:hover {
    background: linear-gradient(135deg, rgba(123, 97, 255, 0.3), rgba(168, 85, 247, 0.15));
    box-shadow: 0 20px 60px rgba(123, 97, 255, 0.3);
}

.stat-card.countries {
    background: linear-gradient(135deg, rgba(34, 197, 94, 0.2), rgba(16, 185, 129, 0.1));
    border-color: rgba(34, 197, 94, 0.3);
}

.stat-card.countries:hover {
    background: linear-gradient(135deg, rgba(34, 197, 94, 0.3), rgba(16, 185, 129, 0.15));
    box-shadow: 0 20px 60px rgba(34, 197, 94, 0.3);
}

/* Responsive Design */
@media (max-width: 768px) {
    .stats-cards-grid {
        grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
        gap: 1.5rem;
    }
    
    .stat-card {
        padding: 1.8rem;
    }
    
    .stat-icon {
        font-size: 2.5rem;
        margin-bottom: 1rem;
    }
    
    .stat-number {
        font-size: 2rem;
    }
}

@media (max-width: 480px) {
    .stats-cards-grid {
        grid-template-columns: 1fr;
        gap: 1rem;
    }
    
    .stats-cards-container {
        padding: 2rem 1rem;
    }
}

/* Animation for cards appearing */
.stat-card {
    opacity: 0;
    transform: translateY(30px);
    animation: cardAppear 0.6s ease forwards;
}

.stat-card:nth-child(1) { animation-delay: 0.1s; }
.stat-card:nth-child(2) { animation-delay: 0.2s; }
.stat-card:nth-child(3) { animation-delay: 0.3s; }
.stat-card:nth-child(4) { animation-delay: 0.4s; }

@keyframes cardAppear {
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* Background decorative elements */
.stats-cards-wrapper::before {
    content: '';
    position: absolute;
    top: -50%;
    left: -50%;
    width: 200%;
    height: 200%;
    background: radial-gradient(circle, rgba(255, 255, 255, 0.05) 1px, transparent 1px);
    background-size: 50px 50px;
    opacity: 0.5;
    animation: backgroundMove 20s linear infinite;
}

@keyframes backgroundMove {
    0% { transform: translate(0, 0) rotate(0deg); }
    100% { transform: translate(-50px, -50px) rotate(360deg); }
}

/* Reviews Section Styles */
.reviews-section {
    padding: clamp(3rem, 6vw, 5rem) 0;
    background: #f8f9fa;
    position: relative;
    left: 50%;
    right: 50%;
    margin-left: -50vw;
    margin-right: -50vw;
    width: 100vw;
}

.reviews-container {
    max-width: 1400px;
    margin: 0 auto;
    padding: 0 clamp(1rem, 3vw, 2rem);
}

.reviews-header {
    text-align: center;
    margin-bottom: clamp(3rem, 5vw, 4rem);
}

.reviews-badge {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    background: white;
    padding: 0.75rem 1.5rem;
    border-radius: 50px;
    box-shadow: 0 4px 20px rgba(66, 133, 244, 0.1);
    margin-bottom: 1.5rem;
    font-weight: 600;
    color: #4285f4;
    border: 1px solid rgba(66, 133, 244, 0.2);
}

.reviews-title {
    font-size: clamp(2rem, 4vw, 3rem);
    font-weight: 700;
    color: #333;
    margin: 0;
    line-height: 1.2;
}

.reviews-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(350px, 1fr));
    gap: clamp(1.5rem, 3vw, 2rem);
    margin-bottom: 3rem;
}

.review-card {
    background: white;
    border-radius: 20px;
    padding: clamp(1.5rem, 4vw, 2rem);
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.08);
    transition: all 0.3s ease;
    border: 1px solid rgba(0, 0, 0, 0.05);
    position: relative;
    overflow: hidden;
}

.review-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 4px;
    background: linear-gradient(90deg, #4285f4, #34a853, #fbbc05, #ea4335);
}

.review-card:hover {
    transform: translateY(-8px);
    box-shadow: 0 16px 48px rgba(0, 0, 0, 0.12);
}

.review-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 1rem;
}

.stars {
    display: flex;
    gap: 2px;
}

.star {
    font-size: 1.2rem;
    color: #ddd;
    transition: color 0.3s ease;
}

.star.filled {
    color: #ffc107;
    text-shadow: 0 0 4px rgba(255, 193, 7, 0.3);
}

.star.half {
    background: linear-gradient(90deg, #ffc107 50%, #ddd 50%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.google-icon {
    opacity: 0.7;
}

.review-title {
    font-size: clamp(1.1rem, 3vw, 1.3rem);
    font-weight: 600;
    color: #4285f4;
    margin-bottom: 1rem;
    line-height: 1.3;
}

.review-text-container {
    margin-bottom: 1.5rem;
}

.review-text {
    font-size: clamp(0.9rem, 2.5vw, 1rem);
    color: #555;
    line-height: 1.6;
    margin-bottom: 0.75rem;
    font-style: italic;
    position: relative;
    transition: all 0.3s ease;
}

.review-text::before {
    content: '"';
    font-size: 3rem;
    color: rgba(66, 133, 244, 0.2);
    position: absolute;
    top: -1rem;
    left: -0.5rem;
    font-family: serif;
    line-height: 1;
}

.review-preview {
    display: inline;
}

.review-full {
    display: none;
}

.review-full.visible {
    display: inline;
}

.review-preview.hidden {
    display: none;
}

/* Read More Button Styles */
.read-more-btn {
    background: none;
    border: none;
    color: #4285f4;
    font-size: 0.9rem;
    font-weight: 600;
    cursor: pointer;
    display: inline-flex;
    align-items: center;
    gap: 0.25rem;
    padding: 0.25rem 0;
    transition: all 0.3s ease;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    font-family: inherit;
}

.read-more-btn:hover {
    color: #2563eb;
    transform: translateX(2px);
}

.read-more-btn:active {
    transform: translateX(0) scale(0.95);
}

.read-more-icon {
    transition: transform 0.3s ease;
    opacity: 0.7;
}

.read-more-btn.expanded .read-more-icon {
    transform: rotate(180deg);
}

.read-more-btn:hover .read-more-icon {
    opacity: 1;
}

.reviewer-info {
    display: flex;
    align-items: center;
    gap: 1rem;
}

.reviewer-avatar {
    width: 50px;
    height: 50px;
    border-radius: 50%;
    overflow: hidden;
    flex-shrink: 0;
}

.avatar-placeholder {
    width: 100%;
    height: 100%;
    background: linear-gradient(135deg, #4285f4, #34a853);
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    font-weight: 600;
    font-size: 1.1rem;
}

.reviewer-details {
    flex: 1;
}

.reviewer-name {
    font-weight: 600;
    color: #333;
    font-size: 1rem;
    margin-bottom: 0.2rem;
}

.reviewer-role {
    color: #666;
    font-size: 0.9rem;
    margin-bottom: 0.2rem;
}

.review-date {
    color: #999;
    font-size: 0.8rem;
}

.reviews-footer {
    text-align: center;
}

.view-more-btn {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    padding: 1rem 2rem;
    background: white;
    color: #4285f4;
    text-decoration: none;
    border-radius: 50px;
    font-weight: 600;
    border: 2px solid #4285f4;
    transition: all 0.3s ease;
    box-shadow: 0 4px 20px rgba(66, 133, 244, 0.2);
}

.view-more-btn:hover {
    background: #4285f4;
    color: white;
    transform: translateY(-2px);
    box-shadow: 0 8px 30px rgba(66, 133, 244, 0.3);
}

/* Mobile Responsive */
@media (max-width: 768px) {
    .reviews-grid {
        grid-template-columns: 1fr;
        gap: 1.5rem;
    }
    
    .review-card {
        padding: 1.5rem;
    }
    
    .reviewer-info {
        gap: 0.75rem;
    }
    
    .reviewer-avatar {
        width: 40px;
        height: 40px;
    }
    
    .avatar-placeholder {
        font-size: 0.9rem;
    }
    
    .read-more-btn {
        font-size: 0.85rem;
        margin-top: 0.5rem;
    }
    
    .review-text {
        font-size: 0.9rem;
    }
}

@media (max-width: 480px) {
    .reviews-section {
        padding: 2rem 0;
    }
    
    .reviews-header {
        margin-bottom: 2rem;
    }
    
    .review-card {
        padding: 1.2rem;
    }
    
    .view-more-btn {
        padding: 0.8rem 1.5rem;
        font-size: 0.9rem;
    }
}

/* Main content grid */
.content-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: clamp(1rem, 3vw, 2rem);
    margin-bottom: 2rem;
}

/* Cards - Updated for white background */
.card {
    background: rgba(74, 144, 226, 0.05);
    border-radius: 15px;
    padding: clamp(1.5rem, 4vw, 2rem);
    box-shadow: 0 8px 32px rgba(74, 144, 226, 0.1);
    backdrop-filter: blur(10px);
    border: 1px solid rgba(74, 144, 226, 0.1);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    color: #333;
}

.card:hover {
    transform: translateY(-5px);
    box-shadow: 0 12px 40px rgba(74, 144, 226, 0.2);
    border-color: rgba(74, 144, 226, 0.3);
}

.card h2 {
    font-size: clamp(1.3rem, 4vw, 1.5rem);
    margin-bottom: 1rem;
    color: #333;
}

.card p {
    font-size: clamp(0.9rem, 2.5vw, 1rem);
    margin-bottom: 1rem;
    color: #666;
}

/* Interactive button */
.btn {
    display: inline-block;
    padding: clamp(0.7rem, 2vw, 1rem) clamp(1.5rem, 4vw, 2rem);
    background: linear-gradient(45deg, var(--theme-color-1), #357abd);
    color: white;
    text-decoration: none;
    border-radius: 50px;
    font-weight: 600;
    font-size: clamp(0.9rem, 2.5vw, 1rem);
    transition: all 0.3s ease;
    border: none;
    cursor: pointer;
}

.btn:hover {
    transform: scale(1.05);
    box-shadow: 0 5px 20px rgba(74, 144, 226, 0.4);
}

/* Interactive demo section - Updated for white background */
.demo-section {
    background: rgba(74, 144, 226, 0.05);
    backdrop-filter: blur(10px);
    border-radius: 15px;
    padding: clamp(1.5rem, 4vw, 2rem);
    margin-bottom: 2rem;
    border: 1px solid rgba(74, 144, 226, 0.1);
}

.demo-section h3 {
    color: #333;
    font-size: clamp(1.2rem, 3vw, 1.5rem);
    margin-bottom: 1rem;
}

/* Device info display - Updated for white background */
.device-info {
    background: rgba(74, 144, 226, 0.1);
    padding: 1rem;
    border-radius: 10px;
    margin: 1rem 0;
    font-family: 'Courier New', monospace;
    font-size: clamp(0.8rem, 2vw, 0.9rem);
    color: #333;
}

/* Footer - New Design */
footer {
    margin-top: 0;
    position: relative;
    left: 50%;
    right: 50%;
    margin-left: -50vw;
    margin-right: -50vw;
    width: 100vw;
}

/* Simulator Ideas Section */
.simulator-ideas-section {
    background: #1e3a5f;
    padding: clamp(2rem, 4vw, 3rem) 0;
}

.ideas-container {
    max-width: 1400px;
    margin: 0 auto;
    padding: 0 clamp(1rem, 3vw, 2rem);
    display: grid;
    grid-template-columns: 1fr 2fr;
    gap: clamp(2rem, 4vw, 3rem);
    align-items: top;
}

.ideas-content {
    color: white;
}

.ideas-title {
    font-size: clamp(1.5rem, 3vw, 2rem);
    font-weight: 700;
    margin-bottom: 1rem;
    color: white;
}

.ideas-subtitle {
    font-size: clamp(0.9rem, 2vw, 1rem);
    color: white;
    opacity: 0.9;
    line-height: 1.5;
}

.ideas-form-container {
    display: flex;
    flex-direction: column;
    gap: 1rem;
}

.ideas-input {
    padding: 2.5rem;
    border: none;
    border-radius: 25px;
    font-size: 1rem;
    outline: none;
    font-family: inherit;
}

.ideas-email {
    padding: 1rem;
    border: none;
    border-radius: 25px;
    font-size: 1rem;
    outline: none;
    font-family: inherit;
}

.ideas-input::placeholder,
.ideas-email::placeholder {
    color: #999;
}

.ideas-submit-btn {
    padding: 1rem 2rem;
    background: #333;
    color: white;
    border: none;
    border-radius: 25px;
    font-size: 1rem;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
    align-self: flex-start;
}

.ideas-submit-btn:hover {
    background: #222;
    transform: translateY(-2px);
}

/* Contact Section */
.contact-section {
    background: #132741;
    padding: clamp(2rem, 4vw, 3rem) 0;
    overflow-x: hidden;
}

.contact-container {
    max-width: 1400px;
    margin: 0 auto;
    padding: 0 clamp(1rem, 3vw, 2rem);
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 2rem; /* Add gap for better spacing */
    flex-wrap: wrap; /* Allow wrapping on smaller screens */
}

.contact-title {
    font-size: clamp(1.3rem, 2.5vw, 1.8rem);
    font-weight: 700;
    color: white;
    margin: 0;
    flex-shrink: 0; /* Prevent title from shrinking too much */
}

.social-links {
    display: flex;
    gap: 1rem;
    flex-wrap: wrap; /* Allow social links to wrap if needed */
    justify-content: center; /* Center on mobile */
}


.social-link {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 45px;
    height: 45px;
    background: rgba(255, 255, 255, 0.1);
    border-radius: 10px;
    font-size: 1rem;
    font-weight: bold;
    text-decoration: none;
    color: white;
    transition: all 0.3s ease;
    border: 1px solid rgba(255, 255, 255, 0.2);
    flex-shrink: 0; /* Prevent icons from shrinking */
}

.social-link svg {
    width: 20px;
    height: 20px;
    fill: white;
    transition: all 0.3s ease;
}

.social-link:hover {
    background: rgba(255, 255, 255, 0.2);
    transform: translateY(-2px);
}

.social-link.mail {
    background: #6b7280;
}

.social-link.mail:hover {
    background: #4b5563;
}

.social-link.facebook {
    background: #3b82f6;
}

.social-link.facebook:hover {
    background: #2563eb;
}

.social-link.twitter {
    background: #6b7280;
}

.social-link.twitter:hover {
    background: #374151;
}

.social-link.youtube {
    background: #ef4444;
}

.social-link.youtube:hover {
    background: #dc2626;
}

.social-link.linkedin {
    background: #3b82f6;
}

.social-link.linkedin:hover {
    background: #2563eb;
}

/* Tablet Responsive */
@media (max-width: 1024px) {
    .contact-container {
        gap: 1.5rem;
    }
    
    .contact-title {
        font-size: clamp(1.2rem, 3vw, 1.6rem);
    }
    
    .social-links {
        gap: 0.8rem;
    }
    
    .social-link {
        width: 42px;
        height: 42px;
    }
    
    .social-link svg {
        width: 18px;
        height: 18px;
    }
}

/* Mobile Responsive - Stack Vertically */
@media (max-width: 768px) {
    .contact-container {
        flex-direction: column; /* Stack vertically */
        gap: 1.5rem;
        text-align: center;
        align-items: center; /* Center align all content */
        justify-content: center;
    }
    
    .contact-title {
        order: 1; /* Title comes first */
        margin-bottom: 0;
        text-align: center;
    }
    
    .social-links {
        order: 2; /* Social links come second */
        justify-content: center;
        gap: 1rem;
    }
    
    .social-link {
        width: 45px;
        height: 45px;
    }
    
    .social-link svg {
        width: 20px;
        height: 20px;
    }
}

/* Small Mobile Responsive */
@media (max-width: 600px) {
    .contact-section {
        padding: clamp(1.5rem, 3vw, 2rem) 0;
    }
    
    .contact-container {
        padding: 0 1rem;
        gap: 1.2rem;
    }
    
    .contact-title {
        font-size: clamp(1.1rem, 4vw, 1.4rem);
    }
    
    .social-links {
        gap: 0.8rem;
        flex-wrap: wrap; /* Allow wrapping on very small screens */
        max-width: 300px; /* Limit width to prevent spreading too wide */
    }
    
    .social-link {
        width: 42px;
        height: 42px;
    }
    
    .social-link svg {
        width: 18px;
        height: 18px;
    }
}

/* Very Small Mobile */
@media (max-width: 480px) {
    .contact-container {
        padding: 0 0.75rem;
        gap: 1rem;
    }
    
    .contact-title {
        font-size: clamp(1rem, 5vw, 1.3rem);
    }
    
    .social-links {
        gap: 0.6rem;
        max-width: 280px;
    }
    
    .social-link {
        width: 40px;
        height: 40px;
    }
    
    .social-link svg {
        width: 16px;
        height: 16px;
    }
}

/* Extra Small Screens */
@media (max-width: 360px) {
    .social-links {
        gap: 0.5rem;
        max-width: 250px;
    }
    
    .social-link {
        width: 38px;
        height: 38px;
    }
    
    .social-link svg {
        width: 15px;
        height: 15px;
    }
}

/* Landscape Mobile Fix */
@media (orientation: landscape) and (max-height: 500px) {
    .contact-section {
        padding: clamp(1rem, 2vw, 1.5rem) 0;
    }
    
    .contact-container {
        flex-direction: row; /* Keep horizontal in landscape */
        gap: 1rem;
    }
    
    .social-links {
        gap: 0.5rem;
    }
    
    .social-link {
        width: 35px;
        height: 35px;
    }
}
/* Fixed Scroll to Top Button */
.scroll-to-top-fixed {
    position: fixed;
    bottom: 30px;
    right: 30px;
    display: flex;
    align-items: center;
    justify-content: center;
    width: 50px;
    height: 50px;
    background: linear-gradient(45deg, #4a90e2, #357abd);
    border-radius: 50%;
    cursor: pointer;
    transition: all 0.3s ease;
    font-size: 1.4rem;
    font-weight: bold;
    color: white;
    border: 2px solid rgba(255, 255, 255, 0.3);
    box-shadow: 0 4px 20px rgba(74, 144, 226, 0.3);
    z-index: 1000;
    opacity: 0;
    visibility: hidden;
    transform: translateY(20px);
}

.scroll-to-top-fixed.visible {
    opacity: 1;
    visibility: visible;
    transform: translateY(0);
}

.scroll-to-top-fixed:hover {
    background: linear-gradient(45deg, #357abd, #2d6aa3);
    transform: translateY(-3px) scale(1.05);
    box-shadow: 0 8px 30px rgba(74, 144, 226, 0.4);
    border-color: rgba(255, 255, 255, 0.5);
}

/* Image Container */
.trending-image-container {
    width: 100%;
    height: 200px;
    position: relative;
    overflow: hidden;
    background: #f0f0f0;
}

.trending-image {
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: center;
    transition: all 0.3s ease;
    display: block;
}

.trending-card:hover .trending-image {
    transform: scale(1.05);
}

/* Image loading and error states */
.trending-image-container::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(135deg, #e3f2fd 0%, #bbdefb 100%);
    z-index: 1;
    opacity: 1;
    transition: opacity 0.3s ease;
}

.trending-image-container.loaded::before {
    opacity: 0;
}

.image-placeholder {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    color: #1976d2;
    font-size: 0.9rem;
    font-weight: 500;
    text-align: center;
    z-index: 2;
    opacity: 1;
    transition: opacity 0.3s ease;
    padding: 1rem;
}

.trending-image-container.loaded .image-placeholder {
    opacity: 0;
}

/* Loading spinner for images */
.image-loading {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 30px;
    height: 30px;
    border: 3px solid #f3f3f3;
    border-top: 3px solid #1976d2;
    border-radius: 50%;
    animation: spin 1s linear infinite;
    z-index: 3;
}

/* Mobile Responsive for Footer */
@media (max-width: 768px) {
    .ideas-container {
        grid-template-columns: 1fr;
        gap: 1.5rem;
        text-align: center;
    }
    
    .contact-container {
        flex-direction: column;
        gap: 1.5rem;
        text-align: center;
    }
    
    .social-links {
        justify-content: center;
    }
    
    .scroll-to-top-fixed {
        bottom: 20px;
        right: 20px;
        width: 45px;
        height: 45px;
        font-size: 1.2rem;
    }
    
    .laptop {
        width: 150px;
        height: 90px;
        top: 15%;
        left: 15%;
    }
    
    .tablet {
        width: 90px;
        height: 120px;
        top: 5%;
        right: 20%;
    }
    
    .phone {
        width: 60px;
        height: 105px;
        bottom: 15%;
        right: 5%;
    }
    
    .projector {
        bottom: 5%;
        left: 5%;
    }
    
    .projector-body {
        width: 60px;
        height: 30px;
    }
    
    .projector-stand {
        height: 45px;
    }
    
    .preview-content {
        font-size: 0.6rem;
    }
}

/* Additional responsive breakpoints */
@media (max-width: 480px) {
    .ideas-container {
        padding: 0 1rem;
    }
    
    .contact-container {
        padding: 0 1rem;
    }
    
    .ideas-input,
    .ideas-email {
        padding: 0.8rem;
        font-size: 0.9rem;
    }
    
    .ideas-submit-btn {
        padding: 0.8rem 1.5rem;
        font-size: 0.9rem;
    }
    
    .social-link {
        width: 40px;
        height: 40px;
    }
    
    .social-link svg {
        width: 18px;
        height: 18px;
    }
}

/* Media queries for fine-tuning */
@media (max-width: 768px) {
    .hero-container {
        grid-template-columns: 1fr;
        gap: 2rem;
        text-align: center;
        max-width: 100%;
        overflow-x: hidden;
    }
    
    .hero-content {
        order: 1;
    }
    
    .hero-media {
        order: 2;
        aspect-ratio: 4/3;
        max-height: 400px;
    }
    
    .content-grid {
        grid-template-columns: 1fr;
    }
    
    .stats {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (min-width: 769px) {
    .content-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (min-width: 1024px) {
    .content-grid {
        grid-template-columns: repeat(3, 1fr);
    }
    
    .stats {
        grid-template-columns: repeat(4, 1fr);
    }
}

/* Animations */
@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(30px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.fade-in {
    animation: fadeInUp 0.6s ease forwards;
}

/* Alternative for very wide screens */
@media (min-width: 1600px) {
    .trending-container {
        max-width: 1800px;
    }
    
    .trending-grid {
        gap: 3rem;
    }
    
    .trending-image-container {
        height: 220px;
    }
}

/* Additional overflow fixes for mobile */
@media (max-width: 768px) {
    html, body {
        overflow-x: hidden;
        max-width: 100vw;
    }
    
    * {
        max-width: 100%;
    }
    
    /* Fix any remaining full-width sections */
    .simulators-section,
    .trending-section,
    .stats-wrapper,
    .explore-science-section,
    .stats-cards-wrapper,
    .reviews-section,
    footer {
        position: relative;
        left: 0;
        right: 0;
        margin-left: 0;
        margin-right: 0;
        width: 100%;
        max-width: 100vw;
        overflow-x: hidden;
    }
    
    .simulators-container,
    .trending-container,
    .reviews-container,
    .stats-cards-container,
    .explore-container,
    .ideas-container,
    .contact-container {
        max-width: 100%;
        padding-left: 1rem;
        padding-right: 1rem;
        overflow-x: hidden;
    }
}
}

.social-link.mail:hover {
    background: #4b5563;
}

.social-link.facebook {
    background: #3b82f6;
}

.social-link.facebook:hover {
    background: #2563eb;
}
/* Updated CSS for Full Cover Images in Simulator Cards */

/* Carousel Styles - Full Cover Images */
.carousel-container {
    position: relative;
    width: 100%;
    height: 200px;
    overflow: hidden;
    border-bottom: 1px solid rgba(0, 0, 0, 0.05);
    background: linear-gradient(135deg, #f8f9ff 0%, #e8f0ff 100%);
}

.carousel-track {
    position: relative;
    width: 100%;
    height: 100%;
}

.carousel-slide {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    opacity: 0;
    transform: translateX(50px);
    transition: all 0.5s ease;
}

.carousel-slide.active {
    opacity: 1;
    transform: translateX(0);
}

.slide-content {
    position: relative;
    width: 100%;
    height: 100%;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    overflow: hidden;
}

/* Full Cover Image Link and Image Styles */
.slide-image-link {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    display: block;
    overflow: hidden;
    transition: all 0.3s ease;
    z-index: 1;
}

.slide-image-link:hover {
    transform: scale(1.02);
}

.slide-image {
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: center;
    transition: all 0.3s ease;
    background: linear-gradient(135deg, #f0f0f0 0%, #e0e0e0 100%);
}

.slide-image-link:hover .slide-image {
    transform: scale(1.05);
    filter: brightness(1.1);
}

/* Text Overlay Styles */
.slide-content h4,
.slide-content p {
    position: absolute;
    z-index: 10;
    color: white;
    text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.7);
    margin: 0;
    text-align: center;
    width: 100%;
    padding: 0 1rem;
    box-sizing: border-box;
}

.slide-content h4 {
    bottom: 35px;
    font-size: 1rem;
    font-weight: 700;
    letter-spacing: 0.5px;
    text-transform: uppercase;
}

.slide-content p {
    bottom: 15px;
    font-size: 0.8rem;
    font-weight: 500;
    opacity: 0.95;
    line-height: 1.2;
}

/* Dark overlay for better text readability */
.slide-content::before {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    height: 60px;
    background: linear-gradient(
        to top,
        rgba(0, 0, 0, 0.7) 0%,
        rgba(0, 0, 0, 0.4) 50%,
        transparent 100%
    );
    z-index: 5;
    pointer-events: none;
}

/* Alternative: Full dark overlay (uncomment if you prefer) */
/*
.slide-content::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(0, 0, 0, 0.3);
    z-index: 5;
    pointer-events: none;
    transition: all 0.3s ease;
}

.slide-image-link:hover + .slide-content::before {
    background: rgba(0, 0, 0, 0.2);
}
*/

/* Navigation Buttons - Enhanced visibility */
.carousel-nav {
    position: absolute;
    top: 50%;
    width: 100%;
    display: flex;
    justify-content: space-between;
    transform: translateY(-50%);
    padding: 0 10px;
    pointer-events: none;
    z-index: 15;
}

.carousel-btn {
    background: rgba(255, 255, 255, 0.9);
    border: none;
    width: 35px;
    height: 35px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    font-size: 18px;
    color: #333;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.2);
    transition: all 0.3s ease;
    pointer-events: all;
    backdrop-filter: blur(10px);
}

.carousel-btn:hover {
    background: white;
    transform: scale(1.1);
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.3);
}

/* Carousel Dots - Enhanced visibility */
.carousel-dots {
    position: absolute;
    bottom: 8px;
    left: 50%;
    transform: translateX(-50%);
    display: flex;
    gap: 8px;
    z-index: 15;
}

.dot {
    width: 8px;
    height: 8px;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.6);
    cursor: pointer;
    transition: all 0.3s ease;
    border: 1px solid rgba(255, 255, 255, 0.8);
}

.dot.active {
    background: white;
    transform: scale(1.3);
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.3);
}

.dot:hover {
    background: rgba(255, 255, 255, 0.9);
    transform: scale(1.1);
}

/* Simulator Button */
.simulator-btn {
    width: 100%;
    padding: clamp(0.8rem, 2vw, 1rem);
    background: #012051;
    color: white;
    border: none;
    font-size: clamp(1.2rem, 2vw, 1.5rem);
    font-weight: 800;
    cursor: pointer;
    transition: all 0.3s ease;
    text-transform: capitalize;
    text-decoration: none;
    display: block;
    text-align: center;
    border-radius: 0 0 5px 5px;
}

.simulator-btn:hover {
    background: linear-gradient(45deg, #357abd, #2d6aa3);
    transform: translateY(-2px);
    color: white;
    text-decoration: none;
}

/* Fallback for broken images */
.slide-image:not([src]), 
.slide-image[src=""],
.slide-image[src*="placeholder"] {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    position: relative;
}

.slide-image:not([src])::after, 
.slide-image[src=""]::after {
    content: '🔬';
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    font-size: 3rem;
    z-index: 2;
    text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.3);
}

/* Loading state for images */
.slide-image:not([complete]) {
    background: linear-gradient(
        90deg,
        #f0f0f0 25%,
        #e0e0e0 50%,
        #f0f0f0 75%
    );
    background-size: 200% 100%;
    animation: shimmer 2s infinite;
}

@keyframes shimmer {
    0% { background-position: -200% 0; }
    100% { background-position: 200% 0; }
}

/* Responsive Design for Mobile */
@media (max-width: 900px) {
    .carousel-container {
        height: 140px;
    }
    
    .slide-content h4 {
        bottom: 28px;
        font-size: 0.9rem;
    }
    
    .slide-content p {
        bottom: 12px;
        font-size: 0.75rem;
    }
    
    .slide-content::before {
        height: 50px;
    }
    
    .carousel-btn {
        width: 30px;
        height: 30px;
        font-size: 16px;
    }
    
    .dot {
        width: 6px;
        height: 6px;
    }
}

@media (max-width: 600px) {
    .carousel-container {
        height: 160px;
    }
    
    .slide-content h4 {
        bottom: 32px;
        font-size: 0.95rem;
    }
    
    .slide-content p {
        bottom: 15px;
        font-size: 0.78rem;
    }
    
    .slide-content::before {
        height: 55px;
    }
}

@media (max-width: 480px) {
    .carousel-container {
        height: 150px;
    }
    
    .slide-content h4 {
        bottom: 30px;
        font-size: 0.85rem;
    }
    
    .slide-content p {
        bottom: 13px;
        font-size: 0.72rem;
    }
    
    .slide-content::before {
        height: 50px;
    }
    
    .carousel-btn {
        width: 28px;
        height: 28px;
        font-size: 14px;
    }
    
    .dot {
        width: 5px;
        height: 5px;
    }
}

/* Hover effects for the entire card */
.simulator-card:hover .slide-image {
    transform: scale(1.03);
}

.simulator-card:hover .slide-content::before {
    background: linear-gradient(
        to top,
        rgba(0, 0, 0, 0.5) 0%,
        rgba(0, 0, 0, 0.2) 50%,
        transparent 100%
    );
}

/* Accessibility improvements */
@media (prefers-reduced-motion: reduce) {
    .slide-image,
    .carousel-slide,
    .carousel-btn,
    .dot {
        transition: none;
    }
    
    .slide-image-link:hover .slide-image {
        transform: none;
    }
}


/* Dynamic Header Text Color CSS - Text Only Changes */

/* Keep original header background (transparent) */
.site-header {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    background: rgba(255, 255, 255, 0.1);
    backdrop-filter: blur(20px);
    border-bottom: 1px solid rgba(255, 255, 255, 0.2);
    z-index: 1000;
    transition: all 0.3s ease;
    box-shadow: 0 4px 20px rgba(255, 255, 255, 0.1);
}

.site-header.scrolled {
    background: rgba(255, 255, 255, 0.15);
    backdrop-filter: blur(30px);
    box-shadow: 0 8px 30px rgba(255, 255, 255, 0.2);
}

/* Light text for dark backgrounds (default) */
.site-header.light-text,
.site-header {
    /* Background stays the same - only text colors change */
}

.site-header.light-text .logo,
.site-header .logo {
    color: white;
}

.site-header.light-text .nav-links a,
.site-header .nav-links a {
    color: white;
}

.site-header.light-text .nav-links a::before,
.site-header .nav-links a::before {
    background: linear-gradient(90deg, rgba(255, 255, 255, 0.8), rgba(255, 255, 255, 0.4));
}

.site-header.light-text .nav-links a:hover,
.site-header .nav-links a:hover {
    color: rgba(255, 255, 255, 0.9);
    text-shadow: 0 2px 8px rgba(255, 255, 255, 0.3);
}

.site-header.light-text .nav-links a.active,
.site-header .nav-links a.active {
    color: white;
    text-shadow: 0 2px 8px rgba(255, 255, 255, 0.4);
}

.site-header.light-text .login-btn,
.site-header .login-btn {
    color: white;
    border-color: rgba(255, 255, 255, 0.3);
    /* Keep transparent background */
    background: transparent;
}

.site-header.light-text .login-btn:hover,
.site-header .login-btn:hover {
    background: rgba(255, 255, 255, 0.1);
    border-color: rgba(255, 255, 255, 0.5);
    box-shadow: 0 4px 15px rgba(255, 255, 255, 0.2);
}

.site-header.light-text .signup-btn,
.site-header .signup-btn {
    color: #4a90e2;
    background: white;
    border-color: white;
}

.site-header.light-text .mobile-menu-toggle,
.site-header .mobile-menu-toggle {
    color: white;
}

.site-header.light-text .mobile-menu-toggle:hover,
.site-header .mobile-menu-toggle:hover {
    background: rgba(255, 255, 255, 0.1);
}

/* Dark text for light backgrounds - BACKGROUND STAYS THE SAME */
.site-header.dark-text {
    /* Keep the same transparent background */
    background: rgba(255, 255, 255, 0.1);
    backdrop-filter: blur(20px);
    border-bottom: 1px solid rgba(255, 255, 255, 0.2);
    box-shadow: 0 4px 20px rgba(255, 255, 255, 0.1);
}

.site-header.dark-text.scrolled {
    /* Keep the same scrolled background */
    background: rgba(255, 255, 255, 0.15);
    backdrop-filter: blur(30px);
    box-shadow: 0 8px 30px rgba(255, 255, 255, 0.2);
}

.site-header.dark-text .logo {
    color: #333;
}

.site-header.dark-text .logo-icon {
    /* Keep the same logo icon styling */
    background: linear-gradient(145deg, rgba(255, 255, 255, 0.2), rgba(255, 255, 255, 0.05));
    border: 1px solid rgba(255, 255, 255, 0.2);
}

.site-header.dark-text .nav-links a {
    color: #333;
}

.site-header.dark-text .nav-links a::before {
    background: linear-gradient(90deg, rgba(51, 51, 51, 0.8), rgba(51, 51, 51, 0.4));
}

.site-header.dark-text .nav-links a:hover {
    color: #4a90e2;
    text-shadow: 0 2px 8px rgba(74, 144, 226, 0.3);
}

.site-header.dark-text .nav-links a.active {
    color: #4a90e2;
    text-shadow: 0 2px 8px rgba(74, 144, 226, 0.4);
}

.site-header.dark-text .login-btn {
    color: #333;
    border-color: rgba(51, 51, 51, 0.3);
    /* Keep transparent background */
    background: transparent;
}

.site-header.dark-text .login-btn:hover {
    background: rgba(51, 51, 51, 0.1);
    border-color: rgba(51, 51, 51, 0.5);
    color: #333;
    box-shadow: 0 4px 15px rgba(51, 51, 51, 0.2);
}

.site-header.dark-text .signup-btn {
    color: white;
    background: #4a90e2;
    border-color: #4a90e2;
}

.site-header.dark-text .signup-btn:hover {
    background: #357abd;
    border-color: #357abd;
}

.site-header.dark-text .mobile-menu-toggle {
    color: #333;
}

.site-header.dark-text .mobile-menu-toggle:hover {
    background: rgba(51, 51, 51, 0.1);
}

/* Smooth transitions for text color changes only */
.site-header .logo,
.site-header .nav-links a,
.site-header .login-btn,
.site-header .signup-btn,
.site-header .mobile-menu-toggle {
    transition: color 0.3s ease, text-shadow 0.3s ease, border-color 0.3s ease;
}




.site-header.dark-text .nav-links a {
    /* Mobile nav links with dark text */
    color: #333;
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
}

/* Ensure atom/logo icon colors work with both themes */
.site-header.dark-text .nucleus {
    background: #4a90e2;
    box-shadow: 0 0 8px rgba(74, 144, 226, 0.8);
}

.site-header.dark-text .electron {
    background: #4a90e2;
    box-shadow: 0 0 4px rgba(74, 144, 226, 0.8);
}

.site-header.dark-text .orbit {
    border: 1px solid rgba(74, 144, 226, 0.6);
}

/* High contrast mode support */
@media (prefers-contrast: high) {
    .site-header.dark-text .nav-links a {
        color: #000;
    }
    
    .site-header.dark-text .logo {
        color: #000;
    }
    
    .site-header.dark-text .login-btn {
        color: #000;
        border-color: #000;
    }
}

/* Reduced motion support */
@media (prefers-reduced-motion: reduce) {
    .site-header .logo,
    .site-header .nav-links a,
    .site-header .login-btn,
    .site-header .signup-btn,
    .site-header .mobile-menu-toggle {
        transition: none;
    }
}

/* Debug styles for testing (remove in production) */
.site-header.debug-light::after {
    content: 'LIGHT TEXT';
    position: absolute;
    top: 100%;
    right: 0;
    background: rgba(0, 0, 0, 0.8);
    color: white;
    padding: 2px 6px;
    font-size: 10px;
    z-index: 9999;
    border-radius: 2px;
}

.site-header.debug-dark::after {
    content: 'DARK TEXT';
    position: absolute;
    top: 100%;
    right: 0;
    background: rgba(255, 255, 255, 0.9);
    color: black;
    padding: 2px 6px;
    font-size: 10px;
    z-index: 9999;
    border-radius: 2px;
}

.form-message {
    margin-top: 1rem;
    text-align: center;
}

.message {
    padding: 1rem;
    border-radius: 8px;
    font-weight: 600;
    animation: fadeInUp 0.3s ease;
}

.message.success {
    background: linear-gradient(135deg, #d4edda, #c3e6cb);
    color: #155724;
    border: 1px solid #c3e6cb;
}

.message.error {
    background: linear-gradient(135deg, #f8d7da, #f5c6cb);
    color: #721c24;
    border: 1px solid #f5c6cb;
}

@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(10px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}
