/* =============================================
   BOTSWANA STEM NETWORK — styles.css (Redesigned)
   ============================================= */

/* GOOGLE FONTS */
@import url('https://fonts.googleapis.com/css2?family=Space+Grotesk:wght@300;400;500;600;700&family=Syne:wght@700;800&display=swap');

/* CSS VARIABLES */
:root {
    --primary: #0a1628;
    --accent: #00c8ff;
    --accent-2: #00ff9d;
    --surface: #0f2040;
    --surface-2: #152b52;
    --text: #e8f0fe;
    --text-muted: #8da4c8;
    --white: #ffffff;
    --card-bg: rgba(15, 32, 64, 0.85);
    --border: rgba(0, 200, 255, 0.15);
    --glow: 0 0 30px rgba(0, 200, 255, 0.2);
    --transition: all 0.35s cubic-bezier(0.4, 0, 0.2, 1);
    --radius: 16px;
    --radius-sm: 10px;
}

/* RESET & BASE */
*, *::before, *::after { margin: 0; padding: 0; box-sizing: border-box; }
html { scroll-behavior: smooth; }

body {
    font-family: 'Space Grotesk', sans-serif;
    background: var(--primary);
    color: var(--text);
    line-height: 1.65;
    overflow-x: hidden;
}

ul { list-style: none; }
a { text-decoration: none; color: inherit; }
img { max-width: 100%; display: block; }

.container {
    max-width: 1140px;
    margin: 0 auto;
    padding: 0 24px;
}

.section { padding: 100px 0; }

/* PARTICLE CANVAS */
#particle-canvas {
    position: fixed;
    top: 0; left: 0;
    width: 100%; height: 100%;
    z-index: 0;
    pointer-events: none;
    opacity: 0.6;
}

/* ========================= TYPOGRAPHY ========================= */
.section-label {
    display: inline-block;
    font-size: 0.78rem;
    font-weight: 600;
    letter-spacing: 0.18em;
    text-transform: uppercase;
    color: var(--accent);
    background: rgba(0, 200, 255, 0.1);
    border: 1px solid rgba(0, 200, 255, 0.25);
    padding: 5px 14px;
    border-radius: 50px;
    margin-bottom: 16px;
}

.section-title {
    font-family: 'Syne', sans-serif;
    font-size: clamp(2rem, 4vw, 3rem);
    font-weight: 800;
    line-height: 1.15;
    margin-bottom: 48px;
    color: var(--white);
}

.section-title .accent { color: var(--accent); }

/* ========================= NAVBAR ========================= */
.navbar {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 20px 5%;
    position: fixed;
    width: 100%;
    top: 0;
    z-index: 1000;
    transition: var(--transition);
    background: transparent;
}

.navbar.scrolled {
    background: rgba(10, 22, 40, 0.95);
    backdrop-filter: blur(16px);
    padding: 14px 5%;
    border-bottom: 1px solid var(--border);
    box-shadow: 0 4px 30px rgba(0,0,0,0.3);
}

.logo {
    display: flex;
    align-items: center;
    gap: 10px;
    font-size: 1.25rem;
    font-weight: 600;
    color: var(--white);
}

.logo strong { color: var(--accent); }

.logo-icon {
    font-size: 1.6rem;
    color: var(--accent);
    line-height: 1;
    filter: drop-shadow(0 0 8px var(--accent));
}

.nav-links {
    display: flex;
    align-items: center;
    gap: 36px;
}

.nav-links a {
    font-size: 0.9rem;
    font-weight: 500;
    color: var(--text-muted);
    transition: color 0.25s;
}

.nav-links a:hover { color: var(--white); }

.nav-cta {
    background: var(--accent) !important;
    color: var(--primary) !important;
    padding: 9px 20px !important;
    border-radius: 50px;
    font-weight: 700 !important;
    font-size: 0.85rem !important;
    transition: var(--transition) !important;
}

.nav-cta:hover {
    background: var(--white) !important;
    box-shadow: 0 0 20px rgba(0,200,255,0.4);
}

.hamburger {
    display: none;
    flex-direction: column;
    gap: 5px;
    cursor: pointer;
    padding: 4px;
}

.hamburger span {
    display: block;
    width: 24px;
    height: 2px;
    background: var(--white);
    border-radius: 2px;
    transition: var(--transition);
}

.hamburger.active span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
.hamburger.active span:nth-child(2) { opacity: 0; }
.hamburger.active span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }

/* ========================= BUTTONS ========================= */
.btn {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 13px 28px;
    border-radius: 50px;
    font-family: 'Space Grotesk', sans-serif;
    font-weight: 600;
    font-size: 0.95rem;
    cursor: pointer;
    transition: var(--transition);
    border: none;
}

.btn-primary {
    background: var(--accent);
    color: var(--primary);
    box-shadow: 0 0 24px rgba(0, 200, 255, 0.35);
}
.btn-primary:hover {
    background: var(--white);
    box-shadow: 0 0 36px rgba(0, 200, 255, 0.5);
    transform: translateY(-2px);
}

.btn-outline {
    background: transparent;
    color: var(--white);
    border: 1.5px solid rgba(255,255,255,0.35);
}
.btn-outline:hover {
    border-color: var(--accent);
    color: var(--accent);
    transform: translateY(-2px);
}

.btn-white {
    background: var(--white);
    color: var(--primary);
    font-weight: 700;
}
.btn-white:hover { transform: translateY(-2px); box-shadow: 0 8px 30px rgba(0,0,0,0.25); }

.btn-outline-white {
    background: transparent;
    color: var(--white);
    border: 1.5px solid rgba(255,255,255,0.5);
}
.btn-outline-white:hover { border-color: var(--white); background: rgba(255,255,255,0.08); }

.btn-sm { padding: 9px 20px; font-size: 0.85rem; }

/* ========================= HERO ========================= */
.hero {
    min-height: 100vh;
    display: grid;
    grid-template-columns: 1fr 1fr;
    align-items: center;
    padding: 120px 5% 80px;
    gap: 60px;
    position: relative;
    overflow: hidden;
    background:
        radial-gradient(ellipse 70% 60% at 10% 50%, rgba(0,80,160,0.35) 0%, transparent 70%),
        radial-gradient(ellipse 50% 40% at 90% 20%, rgba(0,200,255,0.12) 0%, transparent 60%),
        var(--primary);
}

.hero-bg-shapes {
    position: absolute;
    inset: 0;
    pointer-events: none;
    overflow: hidden;
}

.shape {
    position: absolute;
    border-radius: 50%;
    filter: blur(70px);
    opacity: 0.18;
}

.shape-1 {
    width: 600px; height: 600px;
    background: radial-gradient(circle, #0050a0, transparent);
    top: -200px; left: -100px;
}
.shape-2 {
    width: 400px; height: 400px;
    background: radial-gradient(circle, #00c8ff, transparent);
    bottom: -100px; right: 30%;
    opacity: 0.12;
}
.shape-3 {
    width: 300px; height: 300px;
    background: radial-gradient(circle, #00ff9d, transparent);
    top: 40%; right: 10%;
    opacity: 0.1;
}

.hero-content { position: relative; z-index: 2; }

.hero-badge {
    display: inline-block;
    background: rgba(0, 200, 255, 0.08);
    border: 1px solid rgba(0, 200, 255, 0.3);
    color: var(--accent);
    font-size: 0.8rem;
    font-weight: 600;
    padding: 7px 16px;
    border-radius: 50px;
    margin-bottom: 24px;
    letter-spacing: 0.05em;
}

.hero-content h1 {
    font-family: 'Syne', sans-serif;
    font-size: clamp(2.4rem, 5vw, 3.8rem);
    font-weight: 800;
    line-height: 1.1;
    color: var(--white);
    margin-bottom: 20px;
}

.hero-content h1 .highlight {
    color: var(--accent);
    text-shadow: 0 0 40px rgba(0,200,255,0.4);
}

.hero-content > p {
    font-size: 1.1rem;
    color: var(--text-muted);
    max-width: 480px;
    margin-bottom: 36px;
}

.hero-buttons { display: flex; gap: 14px; flex-wrap: wrap; margin-bottom: 50px; }

.hero-stats {
    display: flex;
    align-items: center;
    gap: 24px;
}

.stat { display: flex; flex-direction: column; }
.stat strong { font-family: 'Syne', sans-serif; font-size: 1.6rem; color: var(--white); }
.stat span { font-size: 0.8rem; color: var(--text-muted); }

.stat-divider {
    width: 1px;
    height: 36px;
    background: var(--border);
}

.hero-image-panel {
    position: relative;
    z-index: 2;
    display: flex;
    justify-content: center;
    align-items: center;
}

.hero-img-wrap {
    position: relative;
    width: 100%;
    max-width: 500px;
}

.hero-img-wrap img {
    width: 100%;
    height: 480px;
    object-fit: cover;
    border-radius: 24px;
    border: 1px solid var(--border);
    box-shadow: 0 40px 80px rgba(0,0,0,0.5), var(--glow);
}

.img-badge {
    position: absolute;
    background: rgba(10, 22, 40, 0.9);
    backdrop-filter: blur(10px);
    border: 1px solid var(--border);
    color: var(--white);
    font-size: 0.8rem;
    font-weight: 600;
    padding: 8px 16px;
    border-radius: 50px;
}

.img-badge-1 { top: 20px; left: -16px; }
.img-badge-2 { bottom: 30px; right: -16px; }

/* ========================= ABOUT ========================= */
.about-section {
    position: relative;
    z-index: 1;
    background:
        linear-gradient(180deg, var(--primary) 0%, var(--surface) 100%);
}

.about-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 64px;
    align-items: center;
}

.about-lead {
    font-size: 1.1rem;
    color: var(--text-muted);
    margin-bottom: 36px;
    line-height: 1.75;
}

.mission-vision { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; }

.mv-card {
    background: var(--card-bg);
    border: 1px solid var(--border);
    border-radius: var(--radius);
    padding: 24px;
    transition: var(--transition);
    opacity: 0; transform: translateY(20px);
}
.mv-card.visible { opacity: 1; transform: translateY(0); }
.mv-card:hover { border-color: var(--accent); box-shadow: var(--glow); }
.mv-icon { font-size: 1.8rem; margin-bottom: 12px; }
.mv-card h3 { font-size: 1rem; font-weight: 700; color: var(--white); margin-bottom: 8px; }
.mv-card p { font-size: 0.88rem; color: var(--text-muted); line-height: 1.6; }

.about-visual { position: relative; }

.about-img-grid {
    position: relative;
    height: 480px;
}

.about-img {
    object-fit: cover;
    border-radius: var(--radius);
    border: 1px solid var(--border);
    opacity: 0; transform: scale(0.97);
    transition: var(--transition);
}
.about-img.visible { opacity: 1; transform: scale(1); }

.about-img-main {
    position: absolute;
    top: 0; left: 0;
    width: 68%;
    height: 340px;
    box-shadow: 0 20px 60px rgba(0,0,0,0.4);
}

.about-img-sm {
    position: absolute;
    bottom: 0; right: 0;
    width: 55%;
    height: 220px;
    transition-delay: 0.15s;
}

.about-img-accent {
    position: absolute;
    bottom: 60px; left: 0;
    background: var(--accent);
    color: var(--primary);
    border-radius: var(--radius-sm);
    padding: 16px 20px;
    text-align: center;
    box-shadow: 0 0 30px rgba(0,200,255,0.3);
}
.about-img-accent span { display: block; font-size: 0.7rem; font-weight: 600; text-transform: uppercase; letter-spacing: 0.1em; }
.about-img-accent strong { display: block; font-family: 'Syne', sans-serif; font-size: 2rem; font-weight: 800; }

/* ========================= SERVICES ========================= */
.services-section {
    position: relative;
    z-index: 1;
    background: var(--surface);
}

.services-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 24px;
}

.service-card {
    background: var(--card-bg);
    border: 1px solid var(--border);
    border-radius: var(--radius);
    padding: 36px 30px;
    position: relative;
    overflow: hidden;
    cursor: pointer;
    transition: var(--transition);
    opacity: 0; transform: translateY(24px);
}
.service-card.visible { opacity: 1; transform: translateY(0); }
.service-card:nth-child(2) { transition-delay: 0.1s; }
.service-card:nth-child(3) { transition-delay: 0.2s; }

.service-card::before {
    content: '';
    position: absolute;
    top: 0; left: 0; right: 0;
    height: 3px;
    background: linear-gradient(90deg, var(--accent), var(--accent-2));
    transform: scaleX(0);
    transform-origin: left;
    transition: transform 0.4s ease;
}
.service-card:hover::before { transform: scaleX(1); }
.service-card:hover {
    border-color: rgba(0,200,255,0.4);
    box-shadow: var(--glow);
    transform: translateY(-6px);
}

.service-card.featured {
    background: linear-gradient(135deg, rgba(0,80,160,0.4), rgba(0,200,255,0.08));
    border-color: rgba(0,200,255,0.35);
}

.service-number {
    font-family: 'Syne', sans-serif;
    font-size: 3rem;
    font-weight: 800;
    color: rgba(0,200,255,0.08);
    position: absolute;
    top: 12px; right: 20px;
    line-height: 1;
}
.service-icon { font-size: 2.4rem; margin-bottom: 20px; }
.service-card h3 { font-size: 1.2rem; font-weight: 700; color: var(--white); margin-bottom: 12px; }
.service-card p { font-size: 0.9rem; color: var(--text-muted); line-height: 1.65; }
.service-arrow {
    margin-top: 24px;
    color: var(--accent);
    font-size: 1.3rem;
    transition: transform 0.25s;
    display: inline-block;
}
.service-card:hover .service-arrow { transform: translateX(6px); }

/* ========================= EVENTS ========================= */
.events-section {
    position: relative;
    z-index: 1;
    background: linear-gradient(180deg, var(--surface) 0%, var(--primary) 100%);
}

.events-grid {
    display: grid;
    grid-template-columns: 1.4fr 1fr 1fr;
    gap: 24px;
    align-items: start;
}

.event-card {
    background: var(--card-bg);
    border: 1px solid var(--border);
    border-radius: var(--radius);
    overflow: hidden;
    transition: var(--transition);
    opacity: 0; transform: translateY(24px);
}
.event-card.visible { opacity: 1; transform: translateY(0); }
.event-card:nth-child(2) { transition-delay: 0.1s; }
.event-card:nth-child(3) { transition-delay: 0.2s; }
.event-card:hover { border-color: rgba(0,200,255,0.4); box-shadow: var(--glow); transform: translateY(-4px); }

.event-img-wrap { position: relative; overflow: hidden; }
.event-featured .event-img-wrap img { height: 260px; }
.event-card:not(.event-featured) .event-img-wrap img { height: 160px; }

.event-img-wrap img {
    width: 100%;
    object-fit: cover;
    transition: transform 0.5s ease;
}
.event-card:hover .event-img-wrap img { transform: scale(1.05); }

.event-tag {
    position: absolute;
    top: 12px; left: 12px;
    background: rgba(10, 22, 40, 0.85);
    backdrop-filter: blur(6px);
    border: 1px solid var(--border);
    color: var(--white);
    font-size: 0.75rem;
    font-weight: 600;
    padding: 5px 12px;
    border-radius: 50px;
}

.event-body { padding: 24px; }

.event-meta {
    display: flex;
    align-items: flex-start;
    gap: 16px;
    margin-bottom: 16px;
}

.event-date-block {
    background: var(--accent);
    color: var(--primary);
    border-radius: 10px;
    padding: 8px 12px;
    text-align: center;
    min-width: 52px;
    flex-shrink: 0;
}
.event-month { display: block; font-size: 0.65rem; font-weight: 700; text-transform: uppercase; letter-spacing: 0.1em; }
.event-day { display: block; font-family: 'Syne', sans-serif; font-size: 1.5rem; font-weight: 800; line-height: 1.1; }

.event-detail { flex: 1; }
.event-location, .event-time { font-size: 0.78rem; color: var(--text-muted); margin-bottom: 4px; }

.event-body h3 { font-size: 1.05rem; font-weight: 700; color: var(--white); margin-bottom: 10px; }
.event-body p { font-size: 0.88rem; color: var(--text-muted); margin-bottom: 20px; line-height: 1.6; }

/* ========================= TEAM ========================= */
.team-section {
    position: relative;
    z-index: 1;
    background: var(--surface);
}

.team-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 24px;
}

.team-card {
    background: var(--card-bg);
    border: 1px solid var(--border);
    border-radius: var(--radius);
    overflow: hidden;
    transition: var(--transition);
    opacity: 0; transform: translateY(24px);
}
.team-card.visible { opacity: 1; transform: translateY(0); }
.team-card:nth-child(2) { transition-delay: 0.1s; }
.team-card:nth-child(3) { transition-delay: 0.2s; }
.team-card:nth-child(4) { transition-delay: 0.3s; }
.team-card:hover { border-color: rgba(0,200,255,0.4); box-shadow: var(--glow); transform: translateY(-6px); }

.team-img-wrap {
    position: relative;
    overflow: hidden;
    height: 220px;
}

.team-img-wrap img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.5s ease;
    filter: saturate(0.7);
}
.team-card:hover .team-img-wrap img { transform: scale(1.06); filter: saturate(1); }

.team-overlay {
    position: absolute;
    inset: 0;
    background: linear-gradient(to top, rgba(0,100,200,0.7), transparent);
    opacity: 0;
    display: flex;
    align-items: flex-end;
    justify-content: center;
    padding-bottom: 16px;
    transition: opacity 0.35s;
}
.team-card:hover .team-overlay { opacity: 1; }

.team-socials { display: flex; gap: 10px; }
.team-socials a {
    width: 34px; height: 34px;
    border-radius: 50%;
    background: rgba(255,255,255,0.15);
    backdrop-filter: blur(6px);
    border: 1px solid rgba(255,255,255,0.3);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 0.75rem;
    font-weight: 700;
    color: var(--white);
    transition: background 0.25s;
}
.team-socials a:hover { background: var(--accent); color: var(--primary); }

.team-info { padding: 20px; }
.team-info h4 { font-size: 1rem; font-weight: 700; color: var(--white); margin-bottom: 4px; }
.team-info p { font-size: 0.82rem; color: var(--text-muted); margin-bottom: 12px; }

.team-tag {
    display: inline-block;
    font-size: 0.72rem;
    font-weight: 600;
    color: var(--accent);
    background: rgba(0, 200, 255, 0.08);
    border: 1px solid rgba(0, 200, 255, 0.2);
    padding: 3px 10px;
    border-radius: 50px;
}

/* ========================= CTA SECTION ========================= */
.cta-section {
    position: relative;
    z-index: 1;
    background: linear-gradient(135deg, #003080 0%, #001a4d 100%);
    padding: 100px 0;
    overflow: hidden;
    text-align: center;
}

.cta-bg-pattern {
    position: absolute;
    inset: 0;
    background-image:
        radial-gradient(circle at 20% 50%, rgba(0,200,255,0.12) 0%, transparent 50%),
        radial-gradient(circle at 80% 50%, rgba(0,255,157,0.06) 0%, transparent 50%);
    pointer-events: none;
}

.cta-inner { position: relative; z-index: 2; }
.cta-inner h2 {
    font-family: 'Syne', sans-serif;
    font-size: clamp(2rem, 4vw, 3rem);
    font-weight: 800;
    color: var(--white);
    margin-bottom: 16px;
}
.cta-inner p { font-size: 1.05rem; color: rgba(255,255,255,0.7); max-width: 560px; margin: 0 auto 36px; }
.cta-buttons { display: flex; gap: 14px; justify-content: center; flex-wrap: wrap; }

/* ========================= FOOTER ========================= */
.footer {
    position: relative;
    z-index: 1;
    background: #050e1f;
    border-top: 1px solid var(--border);
    padding: 64px 0 0;
}

.footer-inner {
    display: grid;
    grid-template-columns: 1.5fr 1fr 1.2fr;
    gap: 48px;
    padding-bottom: 48px;
}

.footer-brand .logo { margin-bottom: 16px; }
.footer-brand p { font-size: 0.88rem; color: var(--text-muted); max-width: 280px; }

.footer-links h5, .footer-contact h5 {
    font-size: 0.85rem;
    font-weight: 700;
    color: var(--white);
    text-transform: uppercase;
    letter-spacing: 0.1em;
    margin-bottom: 20px;
}

.footer-links li { margin-bottom: 10px; }
.footer-links a { font-size: 0.88rem; color: var(--text-muted); transition: color 0.25s; }
.footer-links a:hover { color: var(--accent); }

.footer-contact p { font-size: 0.88rem; color: var(--text-muted); margin-bottom: 10px; }

.footer-bottom {
    border-top: 1px solid var(--border);
    padding: 20px 24px;
    text-align: center;
    font-size: 0.82rem;
    color: var(--text-muted);
}

/* ========================= RESPONSIVE ========================= */
@media (max-width: 1024px) {
    .team-grid { grid-template-columns: repeat(2, 1fr); }
    .events-grid { grid-template-columns: 1fr 1fr; }
    .event-featured { grid-column: 1 / -1; }
    .event-featured .event-img-wrap img { height: 300px; }
}

@media (max-width: 768px) {
    .section { padding: 70px 0; }

    .hero {
        grid-template-columns: 1fr;
        padding: 110px 5% 60px;
        text-align: center;
    }
    .hero-image-panel { display: none; }
    .hero-buttons, .hero-stats { justify-content: center; }
    .hero-stats { gap: 16px; }

    .about-grid { grid-template-columns: 1fr; }
    .about-visual { display: none; }

    .services-grid { grid-template-columns: 1fr; }

    .events-grid { grid-template-columns: 1fr; }

    .team-grid { grid-template-columns: repeat(2, 1fr); }

    .footer-inner { grid-template-columns: 1fr; gap: 36px; }

    .nav-links {
        position: fixed;
        top: 0; left: 0; right: 0;
        height: 100vh;
        background: rgba(10,22,40,0.98);
        backdrop-filter: blur(20px);
        flex-direction: column;
        justify-content: center;
        align-items: center;
        gap: 32px;
        transform: translateX(-100%);
        transition: transform 0.4s ease;
    }
    .nav-links.open { transform: translateX(0); }
    .nav-links a { font-size: 1.2rem; }

    .hamburger { display: flex; z-index: 1001; }

    .mission-vision { grid-template-columns: 1fr; }
}

@media (max-width: 480px) {
    .team-grid { grid-template-columns: 1fr; }
}