/* styles.css */
/* Zambia Spelling Bee - Premium UI, Awwwards-Level Design */
/* Complete Styling with Unforgettable Graphics, Glassmorphism, Kinetic Motion */

:root {
    --gold: #FFD700;
    --gold-dark: #E6BE00;
    --gold-glow: rgba(255, 215, 0, 0.4);
    --white: #FFFFFF;
    --black: #000000;
    --black-soft: #111111;
    --gray-light: #F5F5F5;
    --gray-mid: #E0E0E0;
    --shadow-sm: 0 10px 30px rgba(0,0,0,0.08);
    --shadow-md: 0 20px 40px rgba(0,0,0,0.12);
    --shadow-lg: 0 30px 60px rgba(0,0,0,0.15);
    --shadow-gold: 0 20px 40px rgba(255, 215, 0, 0.2);
    --transition-smooth: all 0.4s cubic-bezier(0.2, 0.9, 0.4, 1.1);
    --transition-bounce: all 0.5s cubic-bezier(0.34, 1.2, 0.64, 1);
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
    overflow-x: hidden;
}

body {
    font-family: 'Inter', sans-serif;
    background-color: var(--white);
    color: var(--black);
    line-height: 1.5;
    overflow-x: hidden;
}

/* Scroll Progress Bar - Animated Gradient */
.progress-bar {
    position: fixed;
    top: 0;
    left: 0;
    width: 0%;
    height: 4px;
    background: linear-gradient(90deg, var(--gold), #FFA500, var(--gold-dark), var(--gold));
    background-size: 300% 100%;
    animation: gradientShift 2s ease infinite;
    z-index: 10000;
    transition: width 0.1s ease-out;
    box-shadow: 0 0 12px rgba(255, 215, 0, 0.8);
}

@keyframes gradientShift {
    0% { background-position: 0% 50%; }
    50% { background-position: 100% 50%; }
    100% { background-position: 0% 50%; }
}

/* Sticky Navigation - Glassmorphism Evolution */
.navbar {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    z-index: 1000;
    padding: 1.2rem 2rem;
    transition: all 0.4s cubic-bezier(0.2, 0.9, 0.4, 1.1);
    background: transparent;
}

.navbar.scrolled {
    background: rgba(255, 255, 255, 0.98);
    backdrop-filter: blur(20px);
    box-shadow: var(--shadow-md);
    padding: 0.8rem 2rem;
    border-bottom: 1px solid rgba(255, 215, 0, 0.3);
}

.nav-container {
    max-width: 1400px;
    margin: 0 auto;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.logo {
    font-size: 1.35rem;
    font-weight: 800;
    letter-spacing: -0.02em;
    color: var(--white);
    transition: all 0.3s;
    position: relative;
}

.logo::after {
    content: '';
    position: absolute;
    bottom: -4px;
    left: 0;
    width: 0;
    height: 2px;
    background: var(--gold);
    transition: width 0.3s ease;
}

.logo:hover::after {
    width: 100%;
}

.navbar.scrolled .logo {
    color: var(--black);
}

.logo-bold {
    font-weight: 900;
    color: var(--gold);
    text-shadow: 0 0 8px rgba(255, 215, 0, 0.5);
}

.nav-links {
    display: flex;
    gap: 2.5rem;
    align-items: center;
}

.nav-link {
    text-decoration: none;
    font-weight: 600;
    color: var(--white);
    transition: 0.3s;
    font-size: 0.95rem;
    position: relative;
}

.nav-link::after {
    content: '';
    position: absolute;
    bottom: -5px;
    left: 0;
    width: 0;
    height: 2px;
    background: var(--gold);
    transition: width 0.3s ease;
}

.nav-link:hover::after {
    width: 100%;
}

.nav-link:hover {
    color: var(--gold);
}

.navbar.scrolled .nav-link {
    color: var(--black);
}

.btn-register-nav {
    background: linear-gradient(135deg, var(--gold), var(--gold-dark));
    color: var(--black);
    padding: 0.7rem 1.8rem;
    border-radius: 40px;
    text-decoration: none;
    font-weight: 800;
    font-size: 0.9rem;
    transition: all 0.3s;
    box-shadow: 0 4px 12px rgba(0,0,0,0.15);
    position: relative;
    overflow: hidden;
}

.btn-register-nav::before {
    content: '';
    position: absolute;
    top: 50%;
    left: 50%;
    width: 0;
    height: 0;
    border-radius: 50%;
    background: rgba(255,255,255,0.4);
    transform: translate(-50%, -50%);
    transition: width 0.6s, height 0.6s;
}

.btn-register-nav:hover::before {
    width: 300px;
    height: 300px;
}

.btn-register-nav:hover {
    transform: translateY(-2px);
    box-shadow: 0 12px 28px rgba(255, 215, 0, 0.4);
}

.hamburger {
    display: none;
    flex-direction: column;
    cursor: pointer;
    gap: 5px;
    color: #000;
}

.bar {
    width: 28px;
    height: 2.5px;
    background: #000;
    transition: 0.3s;
}

/* Hero Carousel - Cinematic Experience */
.hero-carousel {
    position: relative;
    height: 100vh;
    width: 100%;
    overflow: hidden;
}

.carousel-container {
    position: relative;
    width: 100%;
    height: 100%;
}

.carousel-slides {
    position: relative;
    width: 100%;
    height: 100%;
}

.carousel-slide {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    opacity: 0;
    visibility: hidden;
    transition: opacity 1.2s cubic-bezier(0.2, 0.9, 0.4, 1.1), visibility 1.2s;
}

.carousel-slide.active {
    opacity: 1;
    visibility: visible;
    z-index: 2;
}

.slide-bg {
    position: absolute;
    width: 100%;
    height: 100%;
    background-size: cover;
    background-position: center;
    transform: scale(1);
    transition: transform 10s ease-out;
}

.carousel-slide.active .slide-bg {
    transform: scale(1.08);
}

.slide-overlay {
    position: absolute;
    width: 100%;
    height: 100%;
    background: linear-gradient(135deg, rgba(0,0,0,0.7) 0%, rgba(0,0,0,0.3) 100%);
    z-index: 1;
}

.slide-content {
    position: absolute;
    bottom: 22%;
    left: 8%;
    max-width: 680px;
    z-index: 3;
    color: white;
    animation: fadeUp 0.9s ease-out;
}

@keyframes fadeUp {
    from {
        opacity: 0;
        transform: translateY(40px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.slide-content h1 {
    font-size: 4.2rem;
    font-weight: 900;
    line-height: 1.2;
    margin-bottom: 1.2rem;
    letter-spacing: -0.02em;
    text-shadow: 0 4px 20px rgba(0,0,0,0.3);
}

.gold-text {
    color: var(--gold);
    text-shadow: 0 0 15px rgba(255, 215, 0, 0.5);
    position: relative;
    display: inline-block;
}

.gold-text::before {
    content: '';
    position: absolute;
    bottom: 5px;
    left: 0;
    width: 100%;
    height: 8px;
    background: rgba(255, 215, 0, 0.3);
    z-index: -1;
}

.slide-content p {
    font-size: 1.2rem;
    margin-bottom: 2rem;
    opacity: 0.95;
    line-height: 1.6;
}

.slide-buttons {
    display: flex;
    gap: 1.2rem;
}

.btn-primary, .btn-secondary {
    padding: 1rem 2.2rem;
    text-decoration: none;
    font-weight: 700;
    border-radius: 50px;
    transition: all 0.3s;
    display: inline-block;
    font-size: 1rem;
}

.btn-primary {
    background: linear-gradient(135deg, var(--gold), var(--gold-dark));
    color: var(--black);
    box-shadow: 0 8px 20px rgba(0,0,0,0.25);
    position: relative;
    overflow: hidden;
}

.btn-primary::after {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255,255,255,0.4), transparent);
    transition: left 0.5s;
}

.btn-primary:hover::after {
    left: 100%;
}

.btn-primary:hover {
    transform: translateY(-3px);
    box-shadow: 0 15px 30px rgba(255, 215, 0, 0.4);
}

.btn-secondary {
    background: rgba(255,255,255,0.15);
    backdrop-filter: blur(10px);
    border: 1.5px solid white;
    color: white;
}

.btn-secondary:hover {
    background: white;
    color: black;
    transform: translateY(-3px);
    box-shadow: 0 10px 25px rgba(0,0,0,0.2);
}

.carousel-arrow {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    background: rgba(0,0,0,0.4);
    backdrop-filter: blur(12px);
    border: none;
    width: 52px;
    height: 52px;
    border-radius: 60px;
    color: white;
    font-size: 1.5rem;
    cursor: pointer;
    z-index: 10;
    transition: all 0.3s;
}

.carousel-arrow:hover {
    background: var(--gold);
    color: black;
    transform: translateY(-50%) scale(1.1);
}

.prev { left: 2rem; }
.next { right: 2rem; }

.carousel-dots {
    position: absolute;
    bottom: 2rem;
    left: 50%;
    transform: translateX(-50%);
    display: flex;
    gap: 1rem;
    z-index: 10;
}

.dot {
    width: 10px;
    height: 10px;
    border-radius: 50%;
    background: rgba(255,255,255,0.5);
    cursor: pointer;
    transition: all 0.3s;
}

.dot.active {
    background: var(--gold);
    width: 30px;
    border-radius: 8px;
    box-shadow: 0 0 12px var(--gold);
}

/* Container & Section Styles */
.container {
    max-width: 1280px;
    margin: 0 auto;
    padding: 0 2rem;
}

section {
    padding: 110px 0;
    position: relative;
}

.section-tag {
    display: inline-block;
    background: linear-gradient(135deg, rgba(255,215,0,0.15), rgba(255,215,0,0.05));
    color: var(--gold-dark);
    font-weight: 700;
    font-size: 0.8rem;
    letter-spacing: 1.5px;
    padding: 0.4rem 1.2rem;
    border-radius: 40px;
    margin-bottom: 1.2rem;
    backdrop-filter: blur(4px);
}

h2 {
    font-size: 3rem;
    font-weight: 800;
    letter-spacing: -0.02em;
    margin-bottom: 1.2rem;
    background: linear-gradient(135deg, var(--black), #333);
    -webkit-background-clip: text;
    background-clip: text;
    color: transparent;
}

/* Intro Split Layout - Dynamic Hover */
.split-layout {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 4.5rem;
    align-items: center;
}

.split-image img {
    width: 100%;
    border-radius: 32px;
    box-shadow: var(--shadow-lg);
    transition: all 0.5s;
    filter: grayscale(10%);
}

.split-image img:hover {
    transform: scale(1.02) rotate(1deg);
    filter: grayscale(0%);
    box-shadow: var(--shadow-gold);
}

.split-text p {
    color: #2c2c2c;
    margin-bottom: 1.2rem;
    font-size: 1.05rem;
    line-height: 1.7;
}

.company-badge {
    display: flex;
    gap: 1.5rem;
    margin: 1.5rem 0;
    flex-wrap: wrap;
}

.company-badge span {
    background: #f8f9fa;
    padding: 0.5rem 1rem;
    border-radius: 40px;
    font-size: 0.85rem;
    font-weight: 600;
    color: var(--gold-dark);
    border-left: 3px solid var(--gold);
}

.btn-outline {
    display: inline-block;
    margin-top: 0.5rem;
    padding: 0.9rem 2.2rem;
    border: 2px solid var(--gold);
    border-radius: 40px;
    text-decoration: none;
    font-weight: 700;
    color: var(--black);
    transition: all 0.3s;
    position: relative;
    overflow: hidden;
    z-index: 1;
}

.btn-outline::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 0%;
    height: 100%;
    background: var(--gold);
    transition: width 0.4s;
    z-index: -1;
}

.btn-outline:hover::before {
    width: 100%;
}

.btn-outline:hover {
    color: var(--black);
    border-color: var(--gold);
}

/* Why Join Cards - Unforgettable Glow & Hover */
.cards-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(270px, 1fr));
    gap: 2rem;
    margin-top: 2.5rem;
}

.card {
    background: white;
    padding: 2.2rem;
    border-radius: 32px;
    box-shadow: var(--shadow-sm);
    transition: all 0.4s cubic-bezier(0.2, 0.9, 0.4, 1.2);
    border: 1px solid rgba(0,0,0,0.05);
    position: relative;
    overflow: hidden;
}

.card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 4px;
    background: linear-gradient(90deg, var(--gold), transparent);
    transform: scaleX(0);
    transition: transform 0.4s;
}

.card:hover::before {
    transform: scaleX(1);
}

.card:hover {
    transform: translateY(-15px);
    box-shadow: 0 30px 50px -20px rgba(255, 215, 0, 0.4);
    border-color: rgba(255, 215, 0, 0.3);
}

.card i {
    font-size: 2.8rem;
    color: var(--gold);
    margin-bottom: 1.2rem;
    transition: transform 0.3s;
}

.card:hover i {
    transform: scale(1.1) rotate(5deg);
}

.card h3 {
    font-size: 1.5rem;
    margin-bottom: 0.8rem;
    font-weight: 700;
}

/* Services Section - Additional Graphic Grid */
.services-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
    gap: 2rem;
    margin-top: 2.5rem;
}

.service-card {
    background: linear-gradient(145deg, #ffffff, #fefefe);
    padding: 2rem;
    border-radius: 28px;
    transition: all 0.4s;
    box-shadow: 0 5px 20px rgba(0,0,0,0.05);
    border: 1px solid rgba(255,215,0,0.2);
}

.service-card:hover {
    transform: translateY(-8px);
    box-shadow: 0 20px 35px -12px rgba(0,0,0,0.15);
    border-color: var(--gold);
}

.service-icon {
    width: 70px;
    height: 70px;
    background: linear-gradient(135deg, rgba(255,215,0,0.2), rgba(255,215,0,0.05));
    border-radius: 20px;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 1.2rem;
}

.service-icon i {
    font-size: 2rem;
    color: var(--gold-dark);
}

/* Timeline - Animated Steps */
.timeline {
    display: flex;
    justify-content: space-between;
    flex-wrap: wrap;
    gap: 1.8rem;
    margin-top: 3rem;
}

.timeline-step {
    flex: 1;
    text-align: center;
    background: white;
    padding: 2rem 1.2rem;
    border-radius: 32px;
    position: relative;
    box-shadow: var(--shadow-sm);
    transition: all 0.4s;
}

.timeline-step:hover {
    transform: scale(1.02);
    box-shadow: var(--shadow-md);
}

.step-icon {
    width: 80px;
    height: 80px;
    background: linear-gradient(135deg, var(--gold), var(--gold-dark));
    border-radius: 60px;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 1.2rem;
    font-size: 2.2rem;
    color: black;
    transition: all 0.3s;
}

.timeline-step:hover .step-icon {
    transform: rotateY(180deg);
    background: var(--black);
    color: var(--gold);
}

.step-connector {
    position: absolute;
    top: 3.2rem;
    right: -30%;
    width: 60%;
    height: 2px;
    background: linear-gradient(90deg, var(--gold), transparent);
}

/* Parallax - Cinematic Depth */
.parallax-break {
    position: relative;
    height: 70vh;
    overflow: hidden;
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;
}

.parallax-bg {
    position: absolute;
    top: -20%;
    left: 0;
    width: 100%;
    height: 140%;
    background-image: url('https://images.unsplash.com/photo-1523050854058-8df90110c9f1?w=1600&h=900&fit=crop');
    background-size: cover;
    background-position: center;
    will-change: transform;
    z-index: 0;
}

.parallax-content {
    position: relative;
    z-index: 2;
    background: rgba(0,0,0,0.65);
    backdrop-filter: blur(8px);
    padding: 3rem;
    border-radius: 48px;
    max-width: 850px;
    margin: 0 2rem;
    animation: floatGlow 3s infinite alternate;
}

@keyframes floatGlow {
    0% { box-shadow: 0 10px 30px rgba(0,0,0,0.3); transform: translateY(0);}
    100% { box-shadow: 0 25px 50px rgba(255,215,0,0.3); transform: translateY(-8px);}
}

.parallax-content h2 {
    color: white;
    font-size: 2rem;
    font-style: italic;
    font-weight: 600;
}

/* High Impact CTA - Pulse & Glow */
.high-impact-cta {
    background: linear-gradient(135deg, var(--gold), #FFB347, var(--gold-dark));
    text-align: center;
    padding: 90px 20px;
    position: relative;
    overflow: hidden;
}

.high-impact-cta::before {
    content: '';
    position: absolute;
    top: -50%;
    left: -50%;
    width: 200%;
    height: 200%;
    background: radial-gradient(circle, rgba(255,255,255,0.2) 0%, transparent 70%);
    animation: rotateBg 20s linear infinite;
}

@keyframes rotateBg {
    from { transform: rotate(0deg);}
    to { transform: rotate(360deg);}
}

.cta-container h2 {
    color: var(--black);
    font-size: 3.2rem;
    background: none;
    -webkit-background-clip: unset;
    color: #1a1a1a;
}

.btn-pulse {
    background: black;
    color: white;
    padding: 1.1rem 2.8rem;
    border-radius: 60px;
    text-decoration: none;
    font-weight: 800;
    transition: 0.3s;
    animation: pulseGlow 2s infinite;
    display: inline-block;
}

@keyframes pulseGlow {
    0% { box-shadow: 0 0 0 0 rgba(0,0,0,0.5); transform: scale(1);}
    70% { box-shadow: 0 0 0 15px rgba(0,0,0,0); transform: scale(1.02);}
    100% { box-shadow: 0 0 0 0 rgba(0,0,0,0); transform: scale(1);}
}

.btn-pulse:hover {
    background: #222;
    transform: scale(1.05);
}

/* Contact & Partnership Cards */
.contact-wrapper {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 3.5rem;
}

.partnership-options {
    background: #faf9ff;
    padding: 1.5rem;
    border-radius: 28px;
    margin: 1.5rem 0;
}

.partner-item {
    padding: 0.7rem 0;
    border-bottom: 1px dashed rgba(0,0,0,0.05);
}

.contact-form-card {
    background: white;
    padding: 2.2rem;
    border-radius: 36px;
    box-shadow: var(--shadow-md);
    transition: transform 0.3s;
}

.contact-form-card:hover {
    transform: translateY(-5px);
}

.input-group input, .input-group textarea {
    width: 100%;
    padding: 1rem;
    border: 1.5px solid #eee;
    border-radius: 24px;
    transition: all 0.3s;
}

.input-group input:focus, .input-group textarea:focus {
    border-color: var(--gold);
    outline: none;
    box-shadow: 0 0 0 4px rgba(255,215,0,0.2);
    transform: scale(1.01);
}

.btn-submit {
    background: var(--black);
    color: white;
    border: none;
    padding: 1rem;
    border-radius: 40px;
    font-weight: 700;
    transition: 0.3s;
}

.btn-submit:hover {
    background: var(--gold);
    color: black;
    transform: translateY(-2px);
}

/* Footer - Elegant */
.footer {
    background: #0a0a0a;
    color: #ccc;
    padding: 3rem 0 1.5rem;
}

.footer-inner {
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
    gap: 1.5rem;
}

.footer-links a, .footer-social a {
    color: white;
    margin: 0 0.8rem;
    transition: 0.3s;
}

.footer-social a:hover {
    color: var(--gold);
    transform: translateY(-3px);
    display: inline-block;
}

/* Scroll-triggered animation class */
.fade-up {
    opacity: 0;
    transform: translateY(45px);
    transition: opacity 0.9s ease, transform 0.9s ease;
}

.fade-up.visible {
    opacity: 1;
    transform: translateY(0);
}

/* Responsive Design */
@media (max-width: 1024px) {
    .slide-content h1 { font-size: 3rem; }
    h2 { font-size: 2.4rem; }
    .split-layout { gap: 2rem; }
}

@media (max-width: 768px) {
    .nav-links { display: none; }
    .nav-cta { display: none; }
    .hamburger { display: flex; }
    .nav-links.active {
        display: flex;
        flex-direction: column;
        position: absolute;
        top: 70px;
        left: 0;
        width: 100%;
        background: rgba(255,255,255,0.98);
        backdrop-filter: blur(20px);
        padding: 2rem;
        gap: 1.5rem;
        box-shadow: var(--shadow-md);
    }
    .nav-link { color: black !important; }
    .split-layout { grid-template-columns: 1fr; }
    .contact-wrapper { grid-template-columns: 1fr; }
    .timeline { flex-direction: column; }
    .step-connector { display: none; }
    .slide-content { bottom: 15%; left: 5%; right: 5%;}
    .slide-content h1 { font-size: 2rem; }
    .carousel-arrow { width: 40px; height: 40px; }
}