/* AFRIBOARDS PREMIUM STYLES */
:root {
    --bg-color: #020202;
    --bg-light: #0a0a0a;
    --card-bg: rgba(15, 15, 15, 0.4);
    --card-bg-solid: #0f0f0f;
    --gold-light: #F9F1D8;
    --gold-main: #D4AF37;
    --gold-dark: #8A6B25;
    --text-main: #FAFAFA;
    --text-muted: #A3A3A3;
    --glass-border: rgba(255, 255, 255, 0.05);
    --glass-border-light: rgba(255, 255, 255, 0.1);
    
    --font-heading: 'Cinzel', serif;
    --font-body: 'Inter', sans-serif;
    
    --nav-height: 90px;
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
}

body {
    background-color: var(--bg-color);
    color: var(--text-main);
    font-family: var(--font-body);
    min-height: 100vh;
    overflow-x: hidden;
    display: flex;
    flex-direction: column;
    background-image: radial-gradient(circle at 50% 0%, rgba(212, 175, 55, 0.03) 0%, transparent 60%);
}

/* Typography Utilities */
h1, h2, h3, h4, h5, h6 {
    font-family: var(--font-heading);
    font-weight: 400;
}

.text-gold { color: var(--gold-main); }
.text-gradient {
    background: linear-gradient(135deg, var(--gold-light) 0%, var(--gold-main) 45%, var(--gold-dark) 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}
.text-muted { color: var(--text-muted); font-weight: 300; }

/* Layout Utilities */
.container {
    width: 100%;
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 2rem;
}

section {
    padding: 6rem 0;
}

.section-title {
    font-size: 2.2rem;
    margin-bottom: 4rem;
    text-align: center;
    position: relative;
    padding-bottom: 1.5rem;
    letter-spacing: 0.1em;
    text-transform: uppercase;
}
.section-title::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 50%;
    transform: translateX(-50%);
    width: 40px;
    height: 1px;
    background: linear-gradient(90deg, transparent, var(--gold-main), transparent);
}

.grid {
    display: grid;
    gap: 2.5rem;
}
.grid-2 { grid-template-columns: repeat(auto-fit, minmax(min(100%, 300px), 1fr)); }
.grid-3 { grid-template-columns: repeat(auto-fit, minmax(min(100%, 280px), 1fr)); }
.grid-4 { grid-template-columns: repeat(auto-fit, minmax(min(100%, 250px), 1fr)); }

/* Buttons */
.btn {
    display: inline-block;
    padding: 1rem 2.5rem;
    font-family: var(--font-body);
    font-weight: 400;
    font-size: 0.95rem;
    letter-spacing: 0.1em;
    text-transform: uppercase;
    text-decoration: none;
    border-radius: 2px;
    cursor: pointer;
    transition: all 0.4s ease;
    border: none;
    position: relative;
    overflow: hidden;
}

.btn-primary {
    background: linear-gradient(135deg, var(--gold-main), var(--gold-dark));
    color: var(--bg-color);
    box-shadow: 0 4px 15px rgba(212, 175, 55, 0.15);
}
.btn-primary:hover {
    box-shadow: 0 8px 25px rgba(212, 175, 55, 0.3);
    transform: translateY(-2px);
}
.btn-primary::after {
    content: '';
    position: absolute;
    top: 0; left: -100%; width: 50%; height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255,255,255,0.4), transparent);
    transform: skewX(-20deg);
    transition: left 0.6s ease;
}
.btn-primary:hover::after {
    left: 150%;
}

.btn-outline {
    background: transparent;
    border: 1px solid rgba(212, 175, 55, 0.5);
    color: var(--gold-main);
}
.btn-outline:hover {
    border-color: var(--gold-light);
    color: var(--gold-light);
    background: rgba(212, 175, 55, 0.05);
}

/* Navigation */
.navbar {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: var(--nav-height);
    background: rgba(2, 2, 2, 0.7);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    border-bottom: 1px solid var(--glass-border);
    z-index: 1000;
    transition: all 0.4s cubic-bezier(0.165, 0.84, 0.44, 1);
}

.navbar.scrolled {
    height: 70px;
    background: rgba(2, 2, 2, 0.9);
    border-bottom: 1px solid rgba(212, 175, 55, 0.1);
}

.nav-container {
    display: flex;
    justify-content: space-between;
    align-items: center;
    height: 100%;
}

.nav-logo {
    display: flex;
    align-items: center;
    gap: 1rem;
    text-decoration: none;
}

.nav-logo-img {
    height: 65px;
    width: auto;
    transition: transform 0.4s ease, height 0.4s ease;
}
.navbar.scrolled .nav-logo-img {
    height: 50px;
}

.nav-logo-text {
    font-family: var(--font-heading);
    font-size: 1.4rem;
    font-weight: 500;
    letter-spacing: 0.15em;
    color: var(--gold-main);
}

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

.nav-links a {
    color: var(--text-main);
    text-decoration: none;
    font-size: 0.85rem;
    font-weight: 400;
    text-transform: uppercase;
    letter-spacing: 0.15em;
    transition: color 0.4s ease;
    opacity: 0.8;
}

.nav-links a:hover,
.nav-links a.active {
    color: var(--gold-main);
    opacity: 1;
}

.mobile-menu-btn {
    display: none;
    background: none;
    border: none;
    color: var(--gold-main);
    font-size: 1.5rem;
    cursor: pointer;
}

/* Hero Section */
.hero {
    min-height: 100vh;
    display: flex;
    align-items: center;
    position: relative;
    padding-top: var(--nav-height);
}

.hero-bg {
    position: absolute;
    inset: 0;
    z-index: -1;
    overflow: hidden;
}

.hero-glow {
    position: absolute;
    width: 50vw;
    height: 50vw;
    background: radial-gradient(circle, rgba(212, 175, 55, 0.08) 0%, transparent 60%);
    top: 40%;
    right: -10%;
    transform: translateY(-50%);
    border-radius: 50%;
    filter: blur(60px);
}

.hero-content {
    max-width: 850px;
}

.hero h1 {
    font-size: 4.5rem;
    line-height: 1.1;
    margin-bottom: 2rem;
    letter-spacing: -0.01em;
}

.hero p {
    font-size: 1.3rem;
    color: var(--text-muted);
    margin-bottom: 3rem;
    line-height: 1.7;
    max-width: 650px;
    font-weight: 300;
}

.hero-btns {
    display: flex;
    gap: 1.5rem;
}

/* Cards / Glassmorphism */
.glass-card {
    position: relative;
    background: var(--card-bg);
    border: 1px solid var(--glass-border);
    border-top: 1px solid var(--glass-border-light);
    border-radius: 1px; /* Sharper corners feel more corporate/premium */
    padding: 3rem;
    backdrop-filter: blur(24px);
    -webkit-backdrop-filter: blur(24px);
    transition: transform 0.5s cubic-bezier(0.165, 0.84, 0.44, 1), box-shadow 0.5s ease;
    overflow: hidden;
}

/* Inner glow effect driven by JS */
.glass-card::before {
    content: "";
    position: absolute;
    inset: 0;
    background: radial-gradient(
        600px circle at var(--mouse-x, 0) var(--mouse-y, 0),
        rgba(212, 175, 55, 0.08),
        transparent 40%
    );
    z-index: 0;
    pointer-events: none;
    opacity: 0;
    transition: opacity 0.5s ease;
}

.glass-card:hover::before {
    opacity: 1;
}

.glass-card > * {
    position: relative;
    z-index: 2;
}

.glass-card:hover {
    transform: translateY(-6px);
    border-color: rgba(212, 175, 55, 0.2);
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.5);
}

/* Footer */
footer {
    background: var(--bg-light);
    border-top: 1px solid rgba(212, 175, 55, 0.1);
    padding: 5rem 0 2rem;
    margin-top: auto;
}

.footer-grid {
    display: grid;
    grid-template-columns: 2fr 1fr 1fr 1fr;
    gap: 4rem;
    margin-bottom: 4rem;
}

.footer-about p {
    color: var(--text-muted);
    margin-top: 1.5rem;
    line-height: 1.7;
    font-weight: 300;
}

.footer-links h4 {
    color: var(--gold-main);
    margin-bottom: 2rem;
    font-size: 1.1rem;
    letter-spacing: 0.1em;
    font-weight: 400;
    text-transform: uppercase;
}

.footer-links ul {
    list-style: none;
}

.footer-links li {
    margin-bottom: 1rem;
}

.footer-links a {
    color: var(--text-muted);
    text-decoration: none;
    transition: color 0.3s ease;
    font-weight: 300;
}

.footer-links a:hover {
    color: var(--gold-light);
}

.footer-bottom {
    text-align: center;
    padding-top: 2.5rem;
    border-top: 1px solid rgba(255,255,255,0.03);
    color: rgba(255,255,255,0.3);
    font-size: 0.85rem;
    font-weight: 300;
    letter-spacing: 0.05em;
}

/* Forms */
.form-group {
    margin-bottom: 2rem;
}
.form-control {
    width: 100%;
    padding: 1.2rem;
    background: rgba(0,0,0,0.2);
    border: 1px solid var(--glass-border);
    border-bottom: 1px solid rgba(212, 175, 55, 0.3);
    color: var(--text-main);
    font-family: var(--font-body);
    font-weight: 300;
    transition: all 0.4s ease;
}
.form-control:focus {
    outline: none;
    background: rgba(212, 175, 55, 0.05);
    border-color: rgba(212, 175, 55, 0.6);
}
textarea.form-control {
    resize: vertical;
    min-height: 150px;
}

/* Animations */
.fade-up {
    opacity: 0;
    transform: translateY(40px);
    transition: opacity 1s cubic-bezier(0.165, 0.84, 0.44, 1), transform 1s cubic-bezier(0.165, 0.84, 0.44, 1);
}
.fade-up.visible {
    opacity: 1;
    transform: translateY(0);
}

/* Responsive */

/* Better Typography Responsiveness */
h1 { font-size: clamp(2.5rem, 8vw, 4.5rem); }
h2 { font-size: clamp(1.8rem, 5vw, 2.8rem); }
p { font-size: clamp(1rem, 2vw, 1.2rem); }

@media (max-width: 1200px) {
    .container { max-width: 95%; }
}

@media (max-width: 992px) {
    .hero { min-height: 80vh; }
    .hero h1 { font-size: 3.5rem; }
    .footer-grid { grid-template-columns: 1fr 1fr; gap: 3rem; }
}

@media (max-width: 768px) {
    :root { --nav-height: 70px; }
    section { padding: 4rem 0; }
    
    /* Navigation Mobile */
    .mobile-menu-btn { display: block; }
    .nav-links {
        position: fixed;
        top: var(--nav-height);
        left: -100%;
        width: 100%;
        height: calc(100vh - var(--nav-height));
        background: rgba(2,2,2,0.98);
        backdrop-filter: blur(20px);
        -webkit-backdrop-filter: blur(20px);
        flex-direction: column;
        align-items: center;
        padding-top: 3rem;
        transition: left 0.4s cubic-bezier(0.165, 0.84, 0.44, 1);
        z-index: 1000;
    }
    .nav-links.active { left: 0; }
    .nav-links li { margin-bottom: 2rem; }
    .nav-links a { font-size: 1.2rem; }

    .hero { text-align: center; }
    .hero-content { margin: 0 auto; }
    .hero-btns { justify-content: center; flex-direction: column; width: 100%; gap: 1rem; }
    .btn { width: 100%; text-align: center; }
    .nav-container { padding: 0 1.5rem; }
    .container { padding: 0 1.5rem; }
    
    .partners-grid { gap: 2.5rem; }
    .partner-logo { max-width: 100px; max-height: 50px; }
    
    .footer-grid { grid-template-columns: 1fr; text-align: center; }
    .footer-about { margin-bottom: 2rem; }
}

@media (max-width: 480px) {
    .hero h1 { font-size: 2.5rem; }
    .hero p { font-size: 1rem; }
    .section-title { font-size: 1.8rem; margin-bottom: 3rem; }
    .glass-card { padding: 2rem 1.5rem; }
    .partners-grid { gap: 1.5rem; }
    .partner-logo { max-width: 80px; }
}

/* Mobile: horizontal scroll partner row for small phones */
@media (max-width: 420px) {
    .partners-section { padding: 2rem 0; }
    .partners-grid {
        display: flex;
        gap: 1rem;
        overflow-x: auto;
        -webkit-overflow-scrolling: touch;
        padding: 0.5rem 0.25rem;
        margin-top: 0.5rem;
        scroll-snap-type: x mandatory;
    }
    .partners-grid::-webkit-scrollbar { height: 8px; }
    .partners-grid::-webkit-scrollbar-thumb { background: rgba(255,255,255,0.06); border-radius: 4px; }

    .partner-item {
        min-width: 120px;
        flex: 0 0 auto;
        scroll-snap-align: center;
        padding: 0.6rem;
    }

    .partner-logo { max-width: 100px; max-height: 60px; }
}

/* Fix for large screens */
@media (min-width: 1600px) {
    .container { max-width: 1400px; }
}

/* Video Section */
.video-section {
    position: relative;
    width: 100%;
    padding: 4rem 0;
    background: #000;
}

.video-container {
    width: 100%;
    max-width: 1000px;
    margin: 0 auto;
    position: relative;
    box-shadow: 0 30px 60px rgba(0,0,0,0.8);
    border: 1px solid var(--glass-border);
}

.video-container video {
    width: 100%;
    display: block;
    filter: grayscale(100%) brightness(0.5) contrast(1.1);
    transition: all 0.8s cubic-bezier(0.165, 0.84, 0.44, 1);
}

.video-container:hover video {
    filter: grayscale(0%) brightness(1);
}

/* Partners Section */
.partners-section {
    background: linear-gradient(180deg, rgba(255,255,255,0.01), var(--bg-light));
    padding: 6rem 0;
}

.partners-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(140px, 1fr));
    gap: 2rem;
    align-items: center;
    justify-items: center;
    margin-top: 1rem;
}

.partner-item {
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 0.85rem 1rem;
    background: var(--bg-light);
    border: 1px solid rgba(255,255,255,0.03);
    border-radius: 12px;
    min-height: 84px;
    width: 100%;
    transition: transform 0.35s ease, box-shadow 0.35s ease, border-color 0.35s ease;
    isolation: isolate;
}

.partner-item:hover {
    transform: translateY(-6px);
    box-shadow: 0 12px 30px rgba(212,175,55,0.06);
    border-color: rgba(212,175,55,0.08);
}

.partner-logo {
    max-width: 140px;
    max-height: 70px;
    width: auto;
    height: auto;
    filter: grayscale(60%) opacity(0.85) contrast(1.05);
    transition: filter 0.35s ease, transform 0.35s ease, opacity 0.35s ease;
    object-fit: contain;
    mix-blend-mode: multiply;
    background-color: transparent;
}

.partner-item:hover .partner-logo {
    /* restore original logo colors on hover for clarity */
    mix-blend-mode: normal;
    filter: grayscale(0%) opacity(1) contrast(1.05) saturate(1.05);
    transform: scale(1.06);
}

@media (max-width: 768px) {
    .partners-grid {
        gap: 1.5rem;
        grid-template-columns: repeat(auto-fit, minmax(110px, 1fr));
    }
    .partner-logo {
        max-width: 120px;
    }
}
