/* Dynamic, Vibrant, Modern Light Mode CSS */
:root {
    --bg-light: #f4f7fb;
    --bg-card: rgba(255, 255, 255, 0.6);
    --border-light: rgba(0, 0, 0, 0.05);
    --text-primary: #0f172a;
    --text-secondary: #475569;

    /* Vibrant Accents */
    --accent-blue: #2563eb;
    --accent-purple: #7c3aed;
    --accent-pink: #db2777;
    --accent-cyan: #0891b2;

    --font-heading: 'Outfit', sans-serif;
    --font-body: 'Outfit', sans-serif;
    --font-serif: 'Playfair Display', serif;
}

html {
    scroll-behavior: smooth;
    scroll-padding-top: 100px;
    /* Offset for sticky header */
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: var(--font-body);
    font-weight: 300;
    color: var(--text-secondary);
    background-color: var(--bg-light);
    line-height: 1.6;
    -webkit-font-smoothing: antialiased;
    overflow-x: hidden;
    position: relative;
}

/* Animated Background Orbs */
body::before,
body::after {
    content: '';
    position: absolute;
    width: 600px;
    height: 600px;
    border-radius: 50%;
    filter: blur(120px);
    z-index: -1;
    opacity: 0.15;
    animation: float 20s infinite alternate cubic-bezier(0.4, 0, 0.2, 1);
}

body::before {
    top: -100px;
    left: -200px;
    background: linear-gradient(to right, var(--accent-purple), var(--accent-pink));
}

body::after {
    bottom: -200px;
    right: -200px;
    background: linear-gradient(to right, var(--accent-blue), var(--accent-cyan));
    animation-delay: -10s;
}

@keyframes float {
    0% {
        transform: translate(0, 0) scale(1);
    }

    100% {
        transform: translate(100px, 100px) scale(1.2);
    }
}

a {
    text-decoration: none;
    color: inherit;
    transition: all 0.3s ease;
}

/* Accessibility Focus States */
a:focus-visible,
button:focus-visible,
input:focus-visible,
textarea:focus-visible,
.video-wrapper:focus-visible {
    outline: 3px solid var(--accent-purple);
    outline-offset: 4px;
    border-radius: 4px;
}

img {
    max-width: 100%;
    display: block;
}

/* Container */
.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 40px;
    position: relative;
}

/* Header */
.header {
    background: rgba(255, 255, 255, 0.85);
    backdrop-filter: blur(16px);
    -webkit-backdrop-filter: blur(16px);
    border-bottom: 1px solid var(--border-light);
    padding: 15px 0;
    position: fixed;
    width: 100%;
    top: 0;
    z-index: 100;
    transition: transform 0.3s ease;
    box-shadow: 0 4px 30px rgba(0, 0, 0, 0.05);
}

.header-content {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.brand-logo {
    height: 50px;
    transition: filter 0.3s ease;
}

.brand-logo:hover {
    filter: drop-shadow(0 4px 6px rgba(0, 0, 0, 0.1));
}

.nav-links {
    display: flex;
    gap: 40px;
}

.nav-links a {
    font-size: 15px;
    font-weight: 500;
    color: var(--text-secondary);
    position: relative;
    padding: 8px 0;
}

.nav-links a::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 0;
    height: 2px;
    background: linear-gradient(90deg, var(--accent-blue), var(--accent-purple));
    transition: width 0.3s ease;
    border-radius: 2px;
}

.nav-links a:hover {
    color: var(--text-primary);
}

.nav-links a:hover::after {
    width: 100%;
}

/* Hero Section */
.hero-section {
    padding-top: 180px;
    padding-bottom: 120px;
    position: relative;
}

.main-title {
    font-family: var(--font-heading);
    font-size: 5.5rem;
    font-weight: 500;
    line-height: 1.05;
    color: var(--text-primary);
    margin-bottom: 60px;
    letter-spacing: -2px;
}

.serif-italic {
    font-family: var(--font-serif);
    font-style: italic;
    background: linear-gradient(120deg, var(--accent-cyan), var(--accent-purple), var(--accent-pink));
    background-clip: text;
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    font-weight: 500;
    padding-right: 20px;
}

.hero-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 80px;
    align-items: start;
}

.lead-text {
    font-size: 1rem;
    color: var(--text-primary);
    line-height: 1.6;
    margin-bottom: 30px;
    font-weight: 400;
}

.hero-content p {
    margin-bottom: 24px;
    max-width: 480px;
    font-size: 1.05rem;
}

.location-text {
    font-size: 0.85rem;
    text-transform: uppercase;
    letter-spacing: 2px;
    margin-top: 40px;
    color: var(--accent-blue);
    font-weight: 600;
}

.video-wrapper {
    margin-top: 60px;
    position: relative;
    border-radius: 16px;
    overflow: hidden;
    cursor: pointer;
    box-shadow: 0 20px 40px -10px rgba(0, 0, 0, 0.15);
    border: 1px solid rgba(255, 255, 255, 0.8);
    transform: translateY(0);
    transition: all 0.5s cubic-bezier(0.4, 0, 0.2, 1);
}

.video-player {
    width: 100%;
    height: 100%;
    display: block;
    outline: none;
    background-color: #000;
}

.play-button {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 70px;
    height: 70px;
    background: rgba(255, 255, 255, 0.8);
    backdrop-filter: blur(10px);
    border: 1px solid rgba(255, 255, 255, 0.9);
    color: var(--accent-blue);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.3s ease;
    box-shadow: 0 10px 20px rgba(0, 0, 0, 0.1);
}

.video-wrapper:hover .play-button {
    background: var(--accent-purple);
    color: #fff;
    border-color: var(--accent-purple);
    box-shadow: 0 0 30px rgba(139, 92, 246, 0.4);
    transform: translate(-50%, -50%) scale(1.05);
}

/* Abstract Imagery */
.hero-visuals {
    display: flex;
    flex-direction: column;
    gap: 30px;
    position: relative;
    height: 100%;
}

.visual-card {
    background-size: cover;
    background-position: center;
    border-radius: 12px;
    border: 4px solid #fff;
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.1);
    transition: all 0.6s cubic-bezier(0.4, 0, 0.2, 1);
    position: relative;
    overflow: hidden;
}

.visual-card::after {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(135deg, rgba(236, 72, 153, 0.2), rgba(6, 182, 212, 0.2));
    opacity: 0;
    transition: opacity 0.5s ease;
}

.visual-card:hover {
    transform: translateY(-8px) scale(1.02);
    box-shadow: 0 30px 50px rgba(6, 182, 212, 0.15);
}

.visual-card:hover::after {
    opacity: 1;
}

.img-1 {
    height: 250px;
    width: 80%;
    margin-left: auto;
    background-image: url('./img/23870181_1636380218Md4about-us-1.webp');
}

.img-2 {
    height: 350px;
    width: 90%;
    background-image: url('./img/23768935_1635948924BD6Newsprint_School_Image.webp');
    margin-top: -80px;
    z-index: 2;
}

.img-3 {
    height: 200px;
    width: 60%;
    margin-left: auto;
    background-image: url('./img/23869948_1636380107APkabout-us-2.webp');
    margin-top: -60px;
}

.img-4 {
    height: 350px;
    width: 90%;
    background-image: url('./img/23869880_16363798829Llfac-2.webp');
    margin-top: -40px;
    z-index: 2;
}

/* Partners Section */
.partners-section {
    padding: 60px 0;
    background: rgba(255, 255, 255, 0.7);
    border-top: 1px solid var(--border-light);
    border-bottom: 1px solid var(--border-light);
}

.partners-grid {
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
    gap: 30px;
}

.partner-logo {
    max-height: 50px;
    max-width: 150px;
    object-fit: contain;
    transition: all 0.3s ease;
    opacity: 0.7;
    filter: grayscale(100%);
}

.partner-logo:hover {
    opacity: 1;
    filter: grayscale(0%);
    transform: scale(1.05);
}

/* CTP Section */
.ctp-section {
    padding: 140px 0;
    position: relative;
}

.ctp-container {
    max-width: 800px;
    background: var(--bg-card);
    border: 1px solid rgba(255, 255, 255, 0.5);
    border-radius: 24px;
    padding: 60px;
    backdrop-filter: blur(20px);
    box-shadow: 0 25px 50px -12px rgba(0, 0, 0, 0.08);
    position: relative;
    overflow: hidden;
}

.ctp-container::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 4px;
    background: linear-gradient(90deg, var(--accent-cyan), var(--accent-purple), var(--accent-pink));
}

.section-title {
    font-family: var(--font-heading);
    font-size: 3.5rem;
    font-weight: 500;
    color: var(--text-primary);
    margin-bottom: 20px;
    letter-spacing: -1px;
}

.ctp-desc {
    font-size: 1.15rem;
    margin-bottom: 40px;
    color: var(--text-secondary);
}

.ctp-details {
    display: flex;
    gap: 40px;
    margin-bottom: 50px;
    font-size: 1.05rem;
}

.ctp-details strong {
    color: var(--text-primary);
    font-weight: 600;
}

.link-hover {
    color: var(--accent-blue);
    position: relative;
    font-weight: 500;
}

.link-hover::after {
    content: '';
    position: absolute;
    bottom: -2px;
    left: 0;
    width: 100%;
    height: 2px;
    background: var(--accent-blue);
    transform: scaleX(0.3);
    transform-origin: left;
    transition: transform 0.3s ease;
}

.link-hover:hover::after {
    transform: scaleX(1);
}

.btn-minimal {
    display: inline-flex;
    align-items: center;
    gap: 12px;
    color: #fff;
    background: linear-gradient(45deg, var(--accent-blue), var(--accent-purple));
    padding: 16px 32px;
    border-radius: 30px;
    font-weight: 500;
    font-size: 1rem;
    text-transform: uppercase;
    letter-spacing: 1px;
    transition: all 0.3s ease;
    box-shadow: 0 10px 20px rgba(139, 92, 246, 0.2);
}

.btn-minimal:hover {
    box-shadow: 0 15px 30px rgba(139, 92, 246, 0.35);
    transform: translateY(-3px);
    gap: 18px;
}

/* Team Section */
.team-section {
    padding: 40px 0 140px;
}

.team-section .section-title {
    margin-bottom: 80px;
    text-align: center;
}

.team-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(320px, 1fr));
    gap: 40px;
}

.team-member {
    position: relative;
    background: #fff;
    border: 1px solid var(--border-light);
    border-radius: 20px;
    padding: 20px;
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.03);
}

.team-member:hover {
    transform: translateY(-10px);
    background: #fff;
    box-shadow: 0 25px 50px rgba(0, 0, 0, 0.08);
}

.member-image {
    width: 100%;
    height: 320px;
    background-color: #f1f5f9;
    border-radius: 12px;
    margin-bottom: 25px;
    background-size: cover;
    background-position: center;
    transition: all 0.5s ease;
}

/* User's images if applicable, otherwise placeholders */
.img-rudolf {
    background-image: url('./img/team/23789759_1636013300F6pRudi_Witbooi2.webp');
}

.img-agnes {
    background-image: url('./img/team/23795783_1636035623LSHAgnes_Muande.webp');
}

.img-julius {
    background-image: url('./img/team/23789677_1636012778SvCJulius_Goagoseb2.webp');
}

.img-marthinus {
    background-image: url('./img/team/23789713_1636013082HGyMarthinus_Van_Wyk2.webp');
}

.img-madelein {
    background-image: url('./img/team/Madelein-removebg-preview.png');
}

.img-willem {
    background-image: url('./img/team/23789483_1636011810JVjWillem_Vahongaifa.webp');
}

.team-member:hover .member-image {
    box-shadow: 0 15px 30px rgba(0, 0, 0, 0.1);
}

.member-info h3 {
    font-size: 1.3rem;
    font-weight: 600;
    color: var(--text-primary);
    margin-bottom: 5px;
}

.member-info .role {
    font-size: 0.9rem;
    color: var(--accent-purple);
    text-transform: uppercase;
    letter-spacing: 1px;
    display: block;
    margin-bottom: 20px;
    font-weight: 500;
}

.hover-reveal {
    opacity: 0.6;
    transition: all 0.3s ease;
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.team-member:hover .hover-reveal {
    opacity: 1;
}

.member-contact a {
    font-size: 0.95rem;
    color: var(--text-secondary);
    display: flex;
    align-items: center;
    gap: 10px;
    font-weight: 500;
}

.member-contact a::before {
    content: '→';
    color: var(--accent-pink);
    opacity: 0;
    transform: translateX(-10px);
    transition: all 0.3s ease;
}

.member-contact a:hover {
    color: var(--accent-blue);
}

.member-contact a:hover::before {
    opacity: 1;
    transform: translateX(0);
}

/* Footer Section */
.footer {
    padding: 100px 0 40px;
    background: #fff;
    border-top: 1px solid var(--border-light);
    position: relative;
    overflow: hidden;
}

.footer-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 80px;
    align-items: center;
}

.footer-info h2 {
    font-family: var(--font-heading);
    font-size: 4rem;
    font-weight: 500;
    margin-bottom: 40px;
    color: var(--text-primary);
}

.contact-links {
    display: flex;
    flex-direction: column;
    gap: 20px;
    margin-bottom: 50px;
}

.contact-links a {
    font-size: 1.4rem;
    color: var(--accent-blue);
    width: fit-content;
    font-weight: 500;
}

.contact-links a:hover {
    color: var(--accent-purple);
}

.hover-underline {
    position: relative;
}

.hover-underline::after {
    content: '';
    position: absolute;
    bottom: -2px;
    left: 0;
    width: 100%;
    height: 2px;
    background: currentColor;
    transform: scaleX(0);
    transform-origin: right;
    transition: transform 0.3s ease;
}

.hover-underline:hover::after {
    transform: scaleX(1);
    transform-origin: left;
}

.address-text {
    font-style: normal;
    color: var(--text-secondary);
    line-height: 1.8;
    margin-bottom: 60px;
    font-size: 1.05rem;
    font-weight: 400;
}

.footer-bottom {
    font-size: 0.9rem;
    color: #64748b;
    border-top: 1px solid var(--border-light);
    padding-top: 30px;
}

.map-minimal {
    width: 100%;
    height: 100%;
    min-height: 450px;
    background-color: #f1f5f9;
    border-radius: 24px;
    background-image: url('https://images.unsplash.com/photo-1524661135-423995f22d0b?ixlib=rb-4.0.3&auto=format&fit=crop&w=1200&q=80');
    background-size: cover;
    background-position: center;
    border: 4px solid #fff;
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.08);
    transition: all 0.5s ease;
    cursor: crosshair;
}

.map-minimal:hover {
    box-shadow: 0 30px 60px rgba(6, 182, 212, 0.15);
    transform: translateY(-5px);
}

/* Back to Top Button */
.back-to-top {
    position: fixed;
    bottom: 30px;
    right: 30px;
    width: 50px;
    height: 50px;
    border-radius: 50%;
    background: linear-gradient(135deg, var(--accent-blue), var(--accent-purple));
    color: white;
    font-size: 24px;
    border: none;
    cursor: pointer;
    box-shadow: 0 10px 25px rgba(124, 58, 237, 0.3);
    opacity: 0;
    visibility: hidden;
    transform: translateY(20px);
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    z-index: 999;
    display: flex;
    align-items: center;
    justify-content: center;
    outline: none;
}

.back-to-top.visible {
    opacity: 1;
    visibility: visible;
    transform: translateY(0);
}

.back-to-top:hover {
    transform: translateY(-5px);
    box-shadow: 0 15px 30px rgba(124, 58, 237, 0.5);
    background: linear-gradient(135deg, var(--accent-purple), var(--accent-pink));
}

/* Responsive */
@media (max-width: 900px) {
    .main-title {
        font-size: 4rem;
    }

    .hero-grid {
        grid-template-columns: 1fr;
        gap: 60px;
    }

    .hero-visuals {
        height: 500px;
        display: none;
    }

    /* Hide complex visuals on tablet */
    .footer-grid {
        grid-template-columns: 1fr;
    }

    .ctp-container {
        padding: 40px 30px;
    }

    .section-title {
        font-size: 3rem;
    }
}

@media (max-width: 600px) {
    .main-title {
        font-size: 3rem;
    }

    .header {
        padding: 15px 0;
    }

    .nav-links {
        display: none;
    }

    .team-grid {
        grid-template-columns: 1fr;
    }

    .container {
        padding: 0 20px;
    }

    .ctp-details {
        flex-direction: column;
        gap: 15px;
    }

    .footer-info h2 {
        font-size: 3rem;
    }
}