:root {
    --primary-gold: #FFD700;
    --secondary-gold: #FFA500;
    --dark-blue: #0a0e27;
    --medium-blue: #1a1f3a;
    --light-blue: #2a3f5f;
    --accent-cyan: #00d4ff;
    --accent-purple: #9f7aea;
    --text-primary: #ffffff;
    --text-secondary: #cbd5e0;
    --glass-bg: rgba(255, 255, 255, 0.1);
    --glass-border: rgba(255, 255, 255, 0.2);
    --egyptian-bronze: #CD7F32;
    --royal-blue: #1a237e;
    --papyrus: #f5e6c8;
    --navbar-height: 72px;
    --navbar-height-mobile: 64px;
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
}

html {
    scroll-behavior: smooth;
}

body {
    background: linear-gradient(135deg, var(--dark-blue) 0%, var(--medium-blue) 50%, var(--light-blue) 100%);
    color: var(--text-primary);
    min-height: 100vh;
    line-height: 1.6;
    overflow-x: hidden;
}

/* Fixed Background */
.physics-bg {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: -2;
    overflow: hidden;
}

.physics-bg::before {
    content: '';
    position: absolute;
    top: -50%;
    left: -50%;
    width: 200%;
    height: 200%;
    background: 
        radial-gradient(circle at 30% 40%, rgba(255, 215, 0, 0.15) 0%, transparent 40%),
        radial-gradient(circle at 70% 60%, rgba(205, 127, 50, 0.12) 0%, transparent 45%),
        radial-gradient(circle at 50% 20%, rgba(0, 212, 255, 0.08) 0%, transparent 35%),
        radial-gradient(circle at 80% 80%, rgba(159, 122, 234, 0.1) 0%, transparent 40%);
    animation: gradientOrbs 25s ease-in-out infinite;
    will-change: transform;
}

@keyframes gradientOrbs {
    0%, 100% { transform: translate(0, 0) rotate(0deg); }
    25% { transform: translate(5%, -5%) rotate(90deg); }
    50% { transform: translate(-3%, 3%) rotate(180deg); }
    75% { transform: translate(3%, -3%) rotate(270deg); }
}

.physics-bg::after {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background-image: 
        url('data:image/svg+xml,<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 1000 800"><defs><pattern id="egyptPattern" patternUnits="userSpaceOnUse" width="200" height="200"><g opacity="0.4"><polygon points="40,160 100,100 160,160" fill="none" stroke="%23FFD700" stroke-width="2"/><polygon points="60,140 100,110 140,140" fill="none" stroke="%23CD7F32" stroke-width="1.5"/><circle cx="100" cy="50" r="20" fill="none" stroke="%23FFD700" stroke-width="1.8"/><circle cx="100" cy="50" r="8" fill="none" stroke="%23CD7F32" stroke-width="1.5"/><circle cx="170" cy="50" r="15" fill="none" stroke="%23CD7F32" stroke-width="1.5"/><ellipse cx="170" cy="50" rx="10" ry="5" fill="none" stroke="%23FFD700" stroke-width="1"/><rect x="40" y="70" width="10" height="50" fill="none" stroke="%23CD7F32" stroke-width="1.5"/><rect x="150" y="70" width="10" height="50" fill="none" stroke="%23CD7F32" stroke-width="1.5"/><circle cx="50" cy="50" r="12" fill="none" stroke="%23FFD700" stroke-width="1.5"/><circle cx="50" cy="50" r="4" fill="%23FFD700"/><path d="M130 130 Q145 110 160 130 L160 150 Q145 160 130 150 Z" fill="none" stroke="%23CD7F32" stroke-width="1.2"/><line x1="30" y1="180" x2="170" y2="180" stroke="%23FFD700" stroke-width="1"/><line x1="30" y1="185" x2="170" y2="185" stroke="%23CD7F32" stroke-width="1"/><line x1="30" y1="190" x2="170" y2="190" stroke="%23FFD700" stroke-width="1"/><circle cx="30" cy="30" r="4" fill="none" stroke="%23FFD700" stroke-width="1"/><line x1="25" y1="30" x2="35" y2="30" stroke="%23FFD700" stroke-width="1"/><line x1="30" y1="25" x2="30" y2="35" stroke="%23FFD700" stroke-width="1"/><path d="M25 80 Q30 70 35 80 Q40 90 45 80" fill="none" stroke="%2300d4ff" stroke-width="1"/></g></pattern></defs><rect width="1000" height="800" fill="url(%23egyptPattern)"/></svg>');
    background-size: 1000px 800px;
    opacity: 0.12;
    animation: patternDrift 120s linear infinite;
}

@keyframes patternDrift {
    from { background-position: 0 0; }
    to { background-position: 1000px 800px; }
}

/* Fixed Particles */
.particles-container {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    pointer-events: none;
    z-index: -1;
}

.particle {
    position: absolute;
    background: var(--primary-gold);
    border-radius: 50%;
    opacity: 0;
    box-shadow: 0 0 10px rgba(255, 215, 0, 0.8);
    animation: particleRise 25s ease-in-out infinite;
    will-change: transform, opacity;
}

@keyframes particleRise {
    0% {
        transform: translateY(100vh) translateX(0) rotate(0deg) scale(0);
        opacity: 0;
    }
    5% {
        opacity: 0.8;
    }
    50% {
        transform: translateY(50vh) translateX(50px) rotate(180deg) scale(1.5);
        opacity: 0.6;
    }
    95% {
        opacity: 0.3;
    }
    100% {
        transform: translateY(-10vh) translateX(-50px) rotate(360deg) scale(0.5);
        opacity: 0;
    }
}

/* Navigation */
.navbar {
    position: fixed;
    top: 0;
    width: 100%;
    background: rgba(10, 14, 39, 0.95);
    backdrop-filter: blur(15px);
    border-bottom: 1px solid var(--glass-border);
    z-index: 1000;
    padding: 1rem;
    transition: all 0.3s ease;
}

.navbar.scrolled {
    padding: 0.7rem 1rem;
    background: rgba(10, 14, 39, 0.98);
}

.nav-container {
    max-width: 1200px;
    margin: 0 auto;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.logo {
    display: flex;
    align-items: center;
    gap: 0.8rem;
    font-size: 1.2rem;
    font-weight: 700;
    color: var(--primary-gold);
}

.pyramid-nav-logo {
    width: 40px;
    height: 40px;
    position: relative;
    animation: logoGlow 3s ease-in-out infinite alternate;
}

.pyramid-main {
    width: 32px;
    height: 28px;
    background: linear-gradient(135deg, var(--primary-gold), var(--secondary-gold));
    clip-path: polygon(50% 0%, 0% 100%, 100% 100%);
    position: absolute;
    bottom: 0;
    left: 4px;
    box-shadow: 0 0 12px rgba(255, 215, 0, 0.6);
}

.pyramid-small-left {
    width: 18px;
    height: 15px;
    background: linear-gradient(135deg, var(--egyptian-bronze), var(--secondary-gold));
    clip-path: polygon(50% 0%, 0% 100%, 100% 100%);
    position: absolute;
    bottom: 0;
    left: -2px;
    opacity: 0.8;
}

.pyramid-small-right {
    width: 14px;
    height: 12px;
    background: linear-gradient(135deg, var(--egyptian-bronze), var(--secondary-gold));
    clip-path: polygon(50% 0%, 0% 100%, 100% 100%);
    position: absolute;
    bottom: 0;
    right: 0;
    opacity: 0.7;
}

@keyframes logoGlow {
    from { filter: drop-shadow(0 0 8px rgba(255, 215, 0, 0.5)); }
    to { filter: drop-shadow(0 0 16px rgba(255, 215, 0, 1)); }
}

.language-toggle {
    display: flex;
    gap: 0.5rem;
    margin-right: 1rem;
}

.lang-btn {
    background: transparent;
    border: 1px solid var(--primary-gold);
    color: var(--text-secondary);
    padding: 0.3rem 0.8rem;
    border-radius: 20px;
    cursor: pointer;
    font-size: 0.9rem;
    font-weight: 600;
    transition: all 0.3s ease;
}

.lang-btn.active {
    background: var(--primary-gold);
    color: var(--dark-blue);
}

.lang-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 5px 10px rgba(255, 215, 0, 0.3);
}

.menu-toggle {
    display: none;
    background: none;
    border: none;
    color: var(--primary-gold);
    font-size: 1.5rem;
    cursor: pointer;
    padding: 0.5rem;
    transition: transform 0.3s ease;
}

.menu-toggle:hover {
    transform: scale(1.1);
}

.nav-links {
    display: flex;
    list-style: none;
    gap: 1.5rem;
}

.nav-link {
    color: var(--text-secondary);
    text-decoration: none;
    padding: 0.5rem 1rem;
    border-radius: 8px;
    transition: all 0.3s ease;
    cursor: pointer;
    font-weight: 500;
    position: relative;
    overflow: hidden;
}

.nav-link::before {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 0;
    height: 2px;
    background: var(--primary-gold);
    transition: width 0.3s ease;
}

.nav-link:hover,
.nav-link.active {
    color: var(--primary-gold);
}

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

@media (max-width: 1024px) {
    .nav-links {
        gap: 1rem;
    }
    
    .nav-link {
        padding: 0.5rem 0.8rem;
        font-size: 0.95rem;
    }
}

@media (max-width: 768px) {
    .menu-toggle { 
        display: block; 
    }
    .nav-links {
        position: fixed;
        top: var(--navbar-height-mobile);
        left: 0;
        right: 0;
        background: rgba(10, 14, 39, 0.98);
        flex-direction: column;
        padding: 2rem;
        transform: translateY(-100%);
        opacity: 0;
        visibility: hidden;
        transition: all 0.3s ease;
    }
    .nav-links.active {
        transform: translateY(0);
        opacity: 1;
        visibility: visible;
    }
}

.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 8rem 2rem 3rem;
    position: relative;
    z-index: 1;
    width: 100%;
}

@media (max-width: 768px) {
    .container {
        padding: calc(var(--navbar-height-mobile) + 3.5rem) 1.5rem 2rem;
    }
}

@media (max-width: 480px) {
    .container {
        padding: calc(var(--navbar-height-mobile) + 3rem) 1rem 1.5rem;
    }
}

.page {
    display: none;
    animation: fadeIn 0.5s ease;
    position: relative;
}

.page.active { 
    display: block; 
}

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

/* Hero Section */
.hero {
    text-align: center;
    padding: 3rem 0 4rem;
    position: relative;
}

@media (max-width: 768px) {
    .hero {
        padding: 2rem 0 3rem;
    }
}

/* ── Hero Pyramids + Clock ── */
.hero-pyramids {
    width: 336px;
    height: 273px;
    margin: 0 auto 2.5rem;
    position: relative;
    animation: pyramidFloat 4s ease-in-out infinite;
    flex-shrink: 0;
}

@media (max-width: 768px) {
    .hero-pyramids {
        width: 280px;
        height: 227px;
        margin-bottom: 2rem;
    }
}

/* Clock sits BEHIND all pyramids */
.pyramid-clock {
    position: absolute;
    width: 161px;
    height: 161px;
    top: 53px;
    left: 50%;
    transform: translateX(-50%);
    background: radial-gradient(circle, rgba(0, 0, 0, 0.80), rgba(10, 18, 35, 0.65));
    border-radius: 50%;
    border: 3px solid rgba(255, 215, 0, 0.85);
    box-shadow:
        0 0 32px rgba(255, 215, 0, 0.6),
        inset 0 0 20px rgba(0, 0, 0, 0.9);
    z-index: 1;
    animation: clockSpin 25s linear infinite;
}

@media (max-width: 768px) {
    .pyramid-clock {
        width: 133px;
        height: 133px;
        top: 42px;
    }
}

@keyframes clockSpin {
    from { transform: translateX(-50%) rotate(0deg); }
    to   { transform: translateX(-50%) rotate(360deg); }
}

/* Clock hands wrapper */
.clock-hands {
    position: absolute;
    inset: 0;
    border-radius: 50%;
}

/* Markers wrapper – static, never rotates */
.clock-markers {
    position: absolute;
    inset: 0;
    border-radius: 50%;
}

.clock-center {
    position: absolute;
    width: 9px;
    height: 9px;
    background: var(--primary-gold);
    border-radius: 50%;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    box-shadow: 0 0 10px var(--primary-gold);
    z-index: 4;
}

.clock-hour,
.clock-minute,
.clock-second {
    position: absolute;
    bottom: 50%;
    left: 50%;
    transform-origin: bottom center;
    background: var(--primary-gold);
    border-radius: 2px;
}

.clock-hour {
    width: 4px;
    height: 39px;
    margin-left: -2px;
    opacity: 0.9;
    box-shadow: 0 0 5px rgba(255, 215, 0, 0.6);
    animation: handSpin 18s linear infinite;
}

.clock-minute {
    width: 3px;
    height: 53px;
    margin-left: -1.5px;
    opacity: 0.9;
    box-shadow: 0 0 5px rgba(255, 215, 0, 0.6);
    animation: handSpin 12s linear infinite;
}

.clock-second {
    width: 2px;
    height: 60px;
    margin-left: -1px;
    background: var(--accent-cyan);
    box-shadow: 0 0 8px rgba(0, 212, 255, 0.8);
    animation: handSpin 7s linear infinite;
}

@keyframes handSpin {
    from { transform: translateX(-50%) rotate(0deg); }
    to   { transform: translateX(-50%) rotate(360deg); }
}

.clock-marker {
    position: absolute;
    width: 3px;
    height: 7px;
    background: rgba(255, 215, 0, 0.65);
    top: 5px;
    left: 50%;
    margin-left: -1.5px;
    transform-origin: center 73px;
}

@media (max-width: 768px) {
    .clock-marker { transform-origin: center 61px; }
    .clock-hour   { height: 31px; }
    .clock-minute { height: 42px; }
    .clock-second { height: 48px; }
}

/* Main (big) pyramid – in FRONT of clock */
.hero-pyramid-main {
    width: 182px;
    height: 157px;
    background: linear-gradient(135deg, var(--primary-gold), var(--secondary-gold));
    clip-path: polygon(50% 0%, 0% 100%, 100% 100%);
    position: absolute;
    bottom: 0;
    left: 50%;
    transform: translateX(-50%);
    box-shadow: 0 0 36px rgba(255, 215, 0, 0.6);
    z-index: 3;
}

@media (max-width: 768px) {
    .hero-pyramid-main {
        width: 151px;
        height: 130px;
    }
}

/* Left small pyramid – tight to main, in FRONT */
.hero-pyramid-left {
    width: 101px;
    height: 87px;
    background: linear-gradient(135deg, var(--egyptian-bronze), var(--secondary-gold));
    clip-path: polygon(50% 0%, 0% 100%, 100% 100%);
    position: absolute;
    bottom: 0;
    left: 31px;
    opacity: 0.88;
    z-index: 2;
}

@media (max-width: 768px) {
    .hero-pyramid-left {
        width: 84px;
        height: 71px;
        left: 22px;
    }
}

/* Right small pyramid – tight to main, in FRONT */
.hero-pyramid-right {
    width: 87px;
    height: 74px;
    background: linear-gradient(135deg, var(--egyptian-bronze), var(--secondary-gold));
    clip-path: polygon(50% 0%, 0% 100%, 100% 100%);
    position: absolute;
    bottom: 0;
    right: 31px;
    opacity: 0.78;
    z-index: 2;
}

@media (max-width: 768px) {
    .hero-pyramid-right {
        width: 70px;
        height: 60px;
        right: 22px;
    }
}

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

.hero-title {
    font-size: 2.8rem;
    font-weight: 900;
    background: linear-gradient(135deg, var(--primary-gold), var(--accent-cyan));
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    margin-bottom: 1.5rem;
    line-height: 1.2;
}

@media (min-width: 1024px) {
    .hero-title { 
        font-size: 3.8rem; 
        margin-bottom: 2rem;
    }
}

@media (max-width: 768px) {
    .hero-title {
        font-size: 2.2rem;
        margin-bottom: 1rem;
    }
}

.hero-subtitle {
    font-size: 1.4rem;
    color: var(--text-secondary);
    margin-bottom: 2rem;
    font-style: italic;
}

@media (max-width: 768px) {
    .hero-subtitle {
        font-size: 1.2rem;
        margin-bottom: 1.5rem;
    }
}

.hero-description {
    font-size: 1.2rem;
    color: var(--text-secondary);
    max-width: 700px;
    margin: 0 auto 3rem;
    line-height: 1.7;
}

@media (max-width: 768px) {
    .hero-description {
        font-size: 1.1rem;
        margin-bottom: 2rem;
        line-height: 1.6;
    }
}

.cta-button {
    background: linear-gradient(135deg, var(--primary-gold), var(--secondary-gold));
    color: var(--dark-blue);
    border: none;
    padding: 1.2rem 2.5rem;
    font-size: 1.1rem;
    font-weight: 700;
    border-radius: 50px;
    cursor: pointer;
    transition: all 0.3s ease;
    text-transform: uppercase;
    position: relative;
    overflow: hidden;
    letter-spacing: 0.5px;
}

.cta-button::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255,255,255,0.3), transparent);
    transition: left 0.5s ease;
}

.cta-button:hover {
    transform: translateY(-3px);
    box-shadow: 0 10px 30px rgba(255, 215, 0, 0.4);
}

.cta-button:hover::before {
    left: 100%;
}

@media (max-width: 768px) {
    .cta-button {
        padding: 1rem 2rem;
        font-size: 1rem;
    }
}

/* Cards */
.glass-card {
    background: var(--glass-bg);
    backdrop-filter: blur(15px);
    border: 1px solid var(--glass-border);
    border-radius: 20px;
    padding: 2.5rem;
    margin-bottom: 2.5rem;
    transition: all 0.3s ease;
    position: relative;
    overflow: hidden;
}

.glass-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 1px;
    background: linear-gradient(90deg, transparent, var(--primary-gold), transparent);
}

.glass-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.2);
}

@media (max-width: 768px) {
    .glass-card {
        padding: 1.8rem;
        margin-bottom: 2rem;
    }
}

@media (max-width: 480px) {
    .glass-card {
        padding: 1.5rem;
        margin-bottom: 1.5rem;
    }
}

.card-title {
    font-size: 2rem;
    font-weight: 700;
    color: var(--primary-gold);
    margin-bottom: 1.5rem;
    display: flex;
    align-items: center;
    gap: 0.8rem;
}

@media (max-width: 768px) {
    .card-title {
        font-size: 1.6rem;
        margin-bottom: 1.2rem;
    }
}

.card-content {
    color: var(--text-secondary);
    line-height: 1.7;
    font-size: 1.1rem;
}

.card-content p {
    margin-bottom: 1.2rem;
}

.card-content p:last-child {
    margin-bottom: 0;
}

.card-content ul, .card-content ol {
    margin-left: 1.5rem;
    margin-bottom: 1.2rem;
}

.card-content li {
    margin-bottom: 0.5rem;
}

@media (max-width: 768px) {
    .card-content {
        font-size: 1rem;
        line-height: 1.6;
    }
}

.features {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 2.5rem;
    margin: 4rem 0;
}

@media (max-width: 1024px) {
    .features {
        gap: 2rem;
    }
}

@media (max-width: 768px) {
    .features {
        grid-template-columns: 1fr;
        gap: 1.5rem;
        margin: 3rem 0;
    }
}

.feature-card {
    background: var(--glass-bg);
    padding: 2.5rem 2rem;
    border-radius: 15px;
    text-align: center;
    border: 1px solid var(--glass-border);
    transition: all 0.3s ease;
    position: relative;
    overflow: hidden;
}

.feature-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 3px;
    background: linear-gradient(90deg, var(--primary-gold), var(--accent-cyan));
    transform: scaleX(0);
    transition: transform 0.3s ease;
}

.feature-card:hover {
    transform: translateY(-5px);
}

.feature-card:hover::before {
    transform: scaleX(1);
}

@media (max-width: 768px) {
    .feature-card {
        padding: 2rem 1.5rem;
    }
}

.feature-icon {
    font-size: 3.5rem;
    margin-bottom: 1.5rem;
    color: var(--primary-gold);
}

@media (max-width: 768px) {
    .feature-icon {
        font-size: 3rem;
        margin-bottom: 1rem;
    }
}

.feature-title {
    color: var(--primary-gold);
    font-size: 1.5rem;
    font-weight: 700;
    margin-bottom: 1rem;
}

@media (max-width: 768px) {
    .feature-title {
        font-size: 1.3rem;
        margin-bottom: 0.8rem;
    }
}

.feature-description {
    color: var(--text-secondary);
    font-size: 1rem;
    line-height: 1.6;
}

/* Forms */
.form-group {
    margin-bottom: 2rem;
    position: relative;
}

@media (max-width: 768px) {
    .form-group {
        margin-bottom: 1.5rem;
    }
}

.form-label {
    display: block;
    color: var(--primary-gold);
    font-weight: 600;
    margin-bottom: 0.8rem;
    transition: all 0.3s ease;
    font-size: 1.1rem;
}

.form-input,
.form-select,
.form-textarea {
    width: 100%;
    padding: 1rem 1.2rem;
    background: rgba(255, 255, 255, 0.1);
    border: 1px solid var(--glass-border);
    border-radius: 10px;
    color: var(--text-primary);
    font-size: 1rem;
    transition: all 0.3s ease;
}

.form-input:focus,
.form-select:focus,
.form-textarea:focus {
    outline: none;
    border-color: var(--primary-gold);
    box-shadow: 0 0 0 3px rgba(255, 215, 0, 0.2);
    transform: translateY(-2px);
}

@media (max-width: 768px) {
    .form-input,
    .form-select,
    .form-textarea {
        padding: 0.9rem 1rem;
    }
}

.form-textarea {
    min-height: 150px;
    resize: vertical;
    line-height: 1.5;
}

.submit-btn {
    background: linear-gradient(135deg, var(--accent-cyan), var(--accent-purple));
    color: white;
    border: none;
    padding: 1.2rem 2.5rem;
    border-radius: 50px;
    font-weight: 700;
    cursor: pointer;
    font-size: 1.1rem;
    width: 100%;
    text-transform: uppercase;
    transition: all 0.3s ease;
    position: relative;
    overflow: hidden;
    letter-spacing: 0.5px;
}

.submit-btn::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255,255,255,0.2), transparent);
    transition: left 0.5s ease;
}

.submit-btn:hover {
    transform: translateY(-3px);
    box-shadow: 0 10px 20px rgba(0, 212, 255, 0.3);
}

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

@media (max-width: 768px) {
    .submit-btn {
        padding: 1rem 2rem;
        font-size: 1rem;
    }
}

/* Timeline */
.timeline-item {
    background: rgba(255, 215, 0, 0.05);
    padding: 2rem;
    border-radius: 15px;
    border-left: 4px solid var(--primary-gold);
    margin-bottom: 2rem;
    transition: all 0.3s ease;
    position: relative;
    overflow: hidden;
}

@media (max-width: 768px) {
    .timeline-item {
        padding: 1.5rem;
        margin-bottom: 1.5rem;
    }
}

.timeline-item::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255,215,0,0.1), transparent);
    transform: translateX(-100%);
    transition: transform 0.5s ease;
}

.timeline-item:hover::before {
    transform: translateX(100%);
}

.timeline-item:hover {
    transform: translateX(5px);
}

.timeline-date {
    color: var(--primary-gold);
    font-weight: 700;
    font-size: 1.3rem;
    margin-bottom: 0.8rem;
}

@media (max-width: 768px) {
    .timeline-date {
        font-size: 1.1rem;
    }
}

.timeline-item p {
    color: var(--text-secondary);
    font-size: 1.1rem;
    line-height: 1.6;
}

@media (max-width: 768px) {
    .timeline-item p {
        font-size: 1rem;
    }
}

/* Physics Domains */
.physics-domains {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 2rem;
    margin: 2.5rem 0;
}

@media (max-width: 1024px) {
    .physics-domains {
        gap: 1.8rem;
    }
}

@media (max-width: 768px) {
    .physics-domains {
        grid-template-columns: 1fr;
        gap: 1.5rem;
        margin: 2rem 0;
    }
}

.domain-card {
    background: rgba(255, 215, 0, 0.05);
    padding: 2rem 1.8rem;
    border-radius: 15px;
    border: 1px solid rgba(255, 215, 0, 0.2);
    transition: all 0.3s ease;
    position: relative;
    overflow: hidden;
}

.domain-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 3px;
    background: var(--primary-gold);
    transform: scaleX(0);
    transition: transform 0.3s ease;
}

.domain-card:hover {
    transform: translateY(-5px);
    border-color: var(--primary-gold);
}

.domain-card:hover::before {
    transform: scaleX(1);
}

@media (max-width: 768px) {
    .domain-card {
        padding: 1.8rem 1.5rem;
    }
}

.domain-name {
    color: var(--primary-gold);
    font-weight: 700;
    font-size: 1.4rem;
    margin-bottom: 0.8rem;
}

@media (max-width: 768px) {
    .domain-name {
        font-size: 1.2rem;
    }
}

.domain-description {
    color: var(--text-secondary);
    font-size: 1rem;
    line-height: 1.6;
}

/* Target Audience */
.target-audience {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 2rem;
    margin: 2.5rem 0;
}

@media (max-width: 1024px) {
    .target-audience {
        gap: 1.8rem;
    }
}

@media (max-width: 768px) {
    .target-audience {
        grid-template-columns: 1fr;
        gap: 1.5rem;
        margin: 2rem 0;
    }
}

.audience-item {
    background: rgba(0, 212, 255, 0.05);
    padding: 2rem 1.8rem;
    border-radius: 15px;
    border: 1px solid rgba(0, 212, 255, 0.2);
    transition: all 0.3s ease;
}

.audience-item:hover {
    transform: translateY(-5px);
}

@media (max-width: 768px) {
    .audience-item {
        padding: 1.8rem 1.5rem;
    }
}

.audience-item h4 {
    color: var(--accent-cyan);
    font-weight: 700;
    margin-bottom: 0.8rem;
    font-size: 1.4rem;
}

@media (max-width: 768px) {
    .audience-item h4 {
        font-size: 1.2rem;
    }
}

.audience-item p {
    color: var(--text-secondary);
    font-size: 1rem;
    line-height: 1.6;
}

/* Mission Section */
.mission-text {
    font-size: 1.2rem;
    color: var(--primary-gold);
    text-align: center;
    padding: 2rem;
    background: rgba(255, 215, 0, 0.05);
    border-radius: 15px;
    border: 1px solid rgba(255, 215, 0, 0.3);
    margin-top: 2rem;
}

/* Partners Section */
.partners-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(340px, 1fr));
    gap: 2rem;
    margin: 2rem 0;
}

.partner-card {
    background: rgba(255, 255, 255, 0.05);
    padding: 2rem;
    border-radius: 15px;
    text-align: center;
    border: 1px solid var(--primary-gold);
    transition: all 0.3s ease;
    display: flex;
    flex-direction: column;
    align-items: center;
}

.partner-card img {
    width: 320px !important;
    min-width: 320px !important;
    max-width: 320px !important;
    height: 160px !important;
    min-height: 160px !important;
    max-height: 160px !important;
    object-fit: contain !important;
    flex-shrink: 0 !important;
    flex-grow: 0 !important;
    display: block !important;
    margin: 0 auto 1rem auto !important;
}

.partner-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 30px rgba(255, 215, 0, 0.2);
}

.partner-card h4 {
    color: var(--primary-gold);
    font-size: 1.5rem;
    margin-bottom: 1rem;
}

.partner-card p {
    color: var(--text-secondary);
}

/* Meet Us Section */
.team-info {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 2rem;
    margin: 2rem 0;
}

.team-member {
    background: rgba(255, 215, 0, 0.05);
    padding: 2rem;
    border-radius: 15px;
    text-align: center;
    border: 1px solid var(--primary-gold);
}

.team-member h4 {
    color: var(--primary-gold);
    font-size: 1.3rem;
    margin-bottom: 0.5rem;
}

.team-member p {
    color: var(--text-secondary);
}

.team-supervisor {
    font-size: 1.2rem;
    color: var(--accent-cyan);
    margin: 1rem 0;
    padding: 1rem;
    background: rgba(0, 212, 255, 0.05);
    border-radius: 10px;
}

/* Coming Soon */
.coming-soon {
    text-align: center;
    padding: 4rem 3rem;
    background: rgba(255, 215, 0, 0.05);
    border-radius: 15px;
    border: 2px dashed rgba(255, 215, 0, 0.3);
    transition: all 0.3s ease;
}

.coming-soon:hover {
    transform: scale(1.02);
}

@media (max-width: 768px) {
    .coming-soon {
        padding: 3rem 2rem;
    }
}

.coming-soon h3 {
    color: var(--primary-gold);
    font-size: 2rem;
    margin-bottom: 1.5rem;
}

@media (max-width: 768px) {
    .coming-soon h3 {
        font-size: 1.6rem;
        margin-bottom: 1rem;
    }
}

.coming-soon p {
    color: var(--text-secondary);
    font-size: 1.2rem;
    line-height: 1.6;
}

@media (max-width: 768px) {
    .coming-soon p {
        font-size: 1.1rem;
    }
}

/* Empty Section */
.empty-section {
    text-align: center;
    padding: 4rem 3rem;
    background: rgba(255, 215, 0, 0.05);
    border-radius: 15px;
    border: 2px dashed rgba(255, 215, 0, 0.3);
    transition: all 0.3s ease;
}

.empty-section:hover {
    transform: scale(1.02);
}

@media (max-width: 768px) {
    .empty-section {
        padding: 3rem 2rem;
    }
}

.empty-section h3 {
    color: var(--primary-gold);
    font-size: 2rem;
    margin-bottom: 1.5rem;
}

@media (max-width: 768px) {
    .empty-section h3 {
        font-size: 1.6rem;
        margin-bottom: 1rem;
    }
}

.empty-section p {
    color: var(--text-secondary);
    font-size: 1.2rem;
    line-height: 1.6;
}

@media (max-width: 768px) {
    .empty-section p {
        font-size: 1.1rem;
    }
}

/* Contact Grid */
.contact-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 2rem;
    margin: 2.5rem 0;
}

@media (max-width: 768px) {
    .contact-grid {
        grid-template-columns: 1fr;
        gap: 1.5rem;
        margin: 2rem 0;
    }
}

.contact-info {
    background: var(--glass-bg);
    padding: 2rem;
    border-radius: 15px;
    border: 1px solid var(--glass-border);
    transition: all 0.3s ease;
}

.contact-info:hover {
    transform: translateY(-5px);
}

@media (max-width: 768px) {
    .contact-info {
        padding: 1.8rem 1.5rem;
    }
}

.contact-info h3 {
    color: var(--primary-gold);
    margin-bottom: 1.2rem;
    font-size: 1.4rem;
}

@media (max-width: 768px) {
    .contact-info h3 {
        font-size: 1.2rem;
        margin-bottom: 1rem;
    }
}

.contact-info p {
    color: var(--text-secondary);
    margin-bottom: 0.8rem;
    font-size: 1rem;
    line-height: 1.6;
}

/* FAQ */
.faq-item {
    background: rgba(255, 215, 0, 0.05);
    padding: 2rem;
    border-radius: 15px;
    border: 1px solid rgba(255, 215, 0, 0.2);
    margin-bottom: 1.5rem;
    cursor: pointer;
    transition: all 0.3s ease;
    position: relative;
    overflow: hidden;
}

@media (max-width: 768px) {
    .faq-item {
        padding: 1.5rem;
        margin-bottom: 1rem;
    }
}

.faq-item::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 4px;
    height: 100%;
    background: var(--primary-gold);
    transform: scaleY(0);
    transition: transform 0.3s ease;
}

.faq-item:hover {
    background: rgba(255, 215, 0, 0.08);
    transform: translateX(5px);
}

.faq-item:hover::before {
    transform: scaleY(1);
}

.faq-question {
    color: var(--primary-gold);
    font-weight: 700;
    font-size: 1.3rem;
    margin-bottom: 0.8rem;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

@media (max-width: 768px) {
    .faq-question {
        font-size: 1.1rem;
        margin-bottom: 0.6rem;
    }
}

.faq-answer {
    color: var(--text-secondary);
    max-height: 0;
    overflow: hidden;
    transition: max-height 0.5s ease;
    font-size: 1.1rem;
    line-height: 1.6;
}

@media (max-width: 768px) {
    .faq-answer {
        font-size: 1rem;
    }
}

.faq-item.active .faq-answer {
    max-height: 500px;
}

.faq-toggle {
    font-size: 1.3rem;
    transition: transform 0.3s ease;
}

.faq-item.active .faq-toggle {
    transform: rotate(180deg);
}

/* Footer */
.footer {
    text-align: center;
    padding: 3rem 2rem;
    margin-top: 4rem;
    border-top: 1px solid var(--glass-border);
    color: var(--text-secondary);
    position: relative;
}

.footer::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 1px;
    background: linear-gradient(90deg, transparent, var(--primary-gold), transparent);
}

@media (max-width: 768px) {
    .footer {
        padding: 2rem 1.5rem;
        margin-top: 3rem;
    }
}

.footer p {
    margin-bottom: 0.5rem;
    font-size: 1rem;
    line-height: 1.6;
}

.footer p:last-child {
    margin-bottom: 0;
}

/* Loading animation for better perceived performance */
.loading {
    opacity: 0;
    transition: opacity 0.3s ease;
}

.loaded {
    opacity: 1;
}

/* Custom spacing for large screens */
@media (min-width: 1400px) {
    .container {
        max-width: 1300px;
    }
    
    .hero-title {
        font-size: 4rem;
    }
    
    .features {
        gap: 3rem;
    }
    
    .physics-domains {
        gap: 2.5rem;
    }
}

@media (min-width: 1600px) {
    .container {
        max-width: 1400px;
    }
}
/* =========================================================
   DESIGN FIX PATCH
   ========================================================= */

/* ── Navbar: prevent links from wrapping / overflowing on medium screens ── */
.nav-container {
    gap: 1rem;
    flex-wrap: nowrap;
}

.nav-links {
    flex-wrap: nowrap;
    overflow: visible;
}

@media (max-width: 1100px) {
    .nav-link {
        font-size: 0.85rem;
        padding: 0.4rem 0.6rem;
    }
}

/* ── Prevent horizontal scrollbar globally ── */
html, body {
    overflow-x: hidden;
    max-width: 100%;
}

/* ── Registration form: replace inline margin-top with proper spacing ── */
#registration-form .form-group input + input,
#registration-form .form-group input + select {
    margin-top: 0.75rem;
}

/* Override the inline style="margin-top:10px" with something more harmonious */
#registration-form input[style] {
    margin-top: 0.75rem !important;
}

/* ── Inline error banner (injected by JS) ── */
.inline-error-banner {
    background: rgba(255, 107, 107, 0.12);
    border: 1.5px solid #ff6b6b;
    color: #ff6b6b;
    border-radius: 10px;
    padding: 0.9rem 1.2rem;
    margin-bottom: 1.2rem;
    font-weight: 600;
    font-size: 0.95rem;
    display: flex;
    align-items: flex-start;
    gap: 0.6rem;
    line-height: 1.5;
    animation: fadeSlideIn 0.3s ease;
}

.inline-error-banner strong {
    font-weight: 700;
}

@keyframes fadeSlideIn {
    from { opacity: 0; transform: translateY(-6px); }
    to   { opacity: 1; transform: translateY(0); }
}

/* ── Glass card on register page: limit max-width for readability ── */
#register .glass-card {
    max-width: 780px;
    margin-left: auto;
    margin-right: auto;
}

/* ── Submit button: disabled state ── */
.submit-btn:disabled {
    opacity: 0.65;
    cursor: not-allowed;
    transform: none !important;
    box-shadow: none !important;
}

/* ── Container top padding: account for tall navbar ── */
@media (max-width: 1100px) and (min-width: 769px) {
    .container {
        padding-top: 6.5rem;
    }
}

/* ── Fix overflow on very small screens ── */
@media (max-width: 380px) {
    .logo-text {
        font-size: 1rem;
    }
    .card-title {
        font-size: 1.5rem;
    }
    .form-label {
        font-size: 1rem;
    }
}

/* ── Improve footer spacing ── */
.footer {
    padding: 2.5rem 2rem;
}

/* ── Consistent form-group gap on register page ── */
#registration-form .form-group {
    margin-bottom: 1.8rem;
}

/* ── Make inputs inside a form-group stack with consistent gap ── */
#registration-form .form-group .form-input {
    display: block;
    width: 100%;
}

/* ── Add visual separation between member sections ── */
#registration-form .form-group:not(:first-child) {
    padding-top: 0.5rem;
    border-top: 1px solid rgba(255,255,255,0.07);
}

/* =========================================================
   OPTIONAL MEMBER SECTIONS (Register page)
   ========================================================= */

.member-section {
    border: 1px solid var(--glass-border);
    border-radius: 14px;
    padding: 0;
    overflow: hidden;
    background: rgba(255,255,255,0.04);
    transition: border-color 0.3s ease;
}

.member-section:hover {
    border-color: rgba(255,215,0,0.35);
}

/* Required leader header */
.member-header.required-member {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 1rem 1.4rem 0.6rem;
}

.member-header-left {
    display: flex;
    align-items: center;
    gap: 0.7rem;
}

.member-badge {
    width: 28px;
    height: 28px;
    border-radius: 50%;
    background: var(--primary-gold);
    color: var(--dark-blue);
    font-weight: 700;
    font-size: 0.9rem;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
}

.member-badge.optional-badge {
    background: rgba(255,215,0,0.2);
    color: var(--primary-gold);
    border: 1.5px solid var(--primary-gold);
}

.required-tag {
    font-size: 0.75rem;
    font-weight: 700;
    color: var(--accent-cyan);
    text-transform: uppercase;
    letter-spacing: 0.5px;
    background: rgba(0,212,255,0.12);
    border: 1px solid rgba(0,212,255,0.3);
    border-radius: 20px;
    padding: 0.2rem 0.7rem;
}

.optional-tag {
    font-size: 0.78rem;
    font-weight: 600;
    color: var(--text-secondary);
    letter-spacing: 0.3px;
}

/* Member fields container */
.member-fields {
    padding: 0 1.4rem 1.2rem;
    display: flex;
    flex-direction: column;
    gap: 0.75rem;
}

/* Collapsible optional sections */
.member-fields.collapsible {
    max-height: 0;
    overflow: hidden;
    padding: 0 1.4rem;
    transition: max-height 0.4s ease, padding 0.3s ease;
}

.member-fields.collapsible.open {
    max-height: 400px;
    padding: 0 1.4rem 1.2rem;
}

/* Toggle button */
.member-toggle {
    width: 100%;
    background: none;
    border: none;
    cursor: pointer;
    padding: 1rem 1.4rem;
    display: flex;
    align-items: center;
    justify-content: space-between;
    color: var(--text-primary);
    transition: background 0.2s ease;
}

.member-toggle:hover {
    background: rgba(255,215,0,0.05);
}

.toggle-right {
    display: flex;
    align-items: center;
    gap: 0.8rem;
}

.toggle-icon {
    font-size: 1.3rem;
    color: var(--primary-gold);
    font-weight: 300;
    line-height: 1;
    transition: transform 0.3s ease;
    display: inline-block;
}

.member-toggle[aria-expanded="true"] .toggle-icon {
    transform: rotate(0deg);
}

/* Remove bottom margin from label inside toggle */
.form-label.mb-0,
.member-toggle .form-label {
    margin-bottom: 0;
}

/* Inputs inside member-fields already have gap from flex */
.member-fields .form-input {
    margin-top: 0 !important;
}

@media (max-width: 480px) {
    .member-header.required-member,
    .member-toggle {
        padding: 0.9rem 1rem;
    }
    .member-fields {
        padding: 0 1rem 1rem;
    }
    .member-fields.collapsible {
        padding: 0 1rem;
    }
    .member-fields.collapsible.open {
        padding: 0 1rem 1rem;
    }
    .optional-tag {
        display: none;
    }
}


/* =========================================================
   MOBILE RESPONSIVE FIXES
   ========================================================= */

/* ── General text scaling on small screens ── */
@media (max-width: 480px) {
    .hero-title {
        font-size: 1.7rem;
        line-height: 1.2;
    }
    .hero-subtitle {
        font-size: 1rem;
        margin-bottom: 1rem;
    }
    .hero-description {
        font-size: 0.95rem;
        margin-bottom: 1.5rem;
        padding: 0 0.5rem;
    }
    .cta-button {
        padding: 0.85rem 1.6rem;
        font-size: 0.9rem;
    }
}

/* ── Partners grid: 1 column on mobile ── */
@media (max-width: 768px) {
    .partners-grid {
        grid-template-columns: 1fr;
        gap: 1.5rem;
    }
    .partner-card img {
        width: 100% !important;
        min-width: unset !important;
        max-width: 280px !important;
        height: 130px !important;
        min-height: unset !important;
        max-height: 130px !important;
    }
    .partner-card {
        padding: 1.5rem 1.2rem;
    }
    .partner-card h4 {
        font-size: 1.2rem;
    }
}

/* ── Team grid: 1 column on mobile ── */
@media (max-width: 600px) {
    .team-info {
        grid-template-columns: 1fr;
        gap: 1.2rem;
    }
    .team-member {
        padding: 1.5rem 1.2rem;
    }
    .team-member h4 {
        font-size: 1.1rem;
    }
    .team-supervisor {
        font-size: 1rem;
        padding: 0.8rem;
    }
}

/* ── FAQ items on mobile ── */
@media (max-width: 480px) {
    .faq-question {
        font-size: 1rem;
    }
    .faq-item {
        padding: 1.2rem 1rem;
    }
}

/* ── Card titles on small screens ── */
@media (max-width: 480px) {
    .card-title {
        font-size: 1.3rem;
        gap: 0.5rem;
    }
    .card-content {
        font-size: 0.95rem;
    }
    .domain-name {
        font-size: 1.1rem;
    }
    .audience-item h4 {
        font-size: 1.1rem;
    }
}

/* ── Navigation: logo text truncation on very small screens ── */
@media (max-width: 360px) {
    .logo {
        font-size: 0.9rem;
        gap: 0.5rem;
    }
    .logo-text {
        font-size: 0.85rem;
    }
    .lang-btn {
        padding: 0.25rem 0.55rem;
        font-size: 0.8rem;
    }
}

/* ── Timeline on mobile ── */
@media (max-width: 480px) {
    .timeline-date {
        font-size: 1rem;
    }
    .timeline-item p {
        font-size: 0.95rem;
    }
    .timeline-item {
        padding: 1.2rem 1rem;
    }
}

/* ── Feature cards min-width fix ── */
@media (max-width: 480px) {
    .features {
        grid-template-columns: 1fr;
        margin: 2rem 0;
    }
    .feature-card {
        padding: 1.5rem 1.2rem;
    }
    .feature-icon {
        font-size: 2.5rem;
        margin-bottom: 0.8rem;
    }
    .feature-title {
        font-size: 1.1rem;
    }
}

/* ── Physics domains on mobile ── */
@media (max-width: 480px) {
    .physics-domains {
        grid-template-columns: 1fr;
    }
    .domain-card {
        padding: 1.4rem 1.2rem;
    }
}

/* ── Coming soon / empty section on mobile ── */
@media (max-width: 480px) {
    .coming-soon,
    .empty-section {
        padding: 2rem 1.2rem;
    }
    .coming-soon h3,
    .empty-section h3 {
        font-size: 1.3rem;
    }
    .coming-soon p,
    .empty-section p {
        font-size: 0.95rem;
    }
}

/* ── Glass card padding on very small screens ── */
@media (max-width: 360px) {
    .glass-card {
        padding: 1.2rem 1rem;
        border-radius: 14px;
    }
}

/* ── Contact grid on mobile ── */
@media (max-width: 480px) {
    .contact-grid {
        grid-template-columns: 1fr;
        gap: 1rem;
    }
    .contact-info {
        padding: 1.3rem 1rem;
    }
    .contact-info h3 {
        font-size: 1.1rem;
    }
}

/* ── Register form on mobile ── */
@media (max-width: 480px) {
    #register .glass-card {
        padding: 1.2rem 1rem;
    }
    .member-section {
        border-radius: 10px;
    }
    .submit-btn {
        font-size: 0.95rem;
        padding: 0.9rem 1.5rem;
    }
    .form-label {
        font-size: 0.95rem;
    }
}
