/* ==========================================================================
   CSS VARIABLES - PREMIUM PALETTE
   ========================================================================== */
   :root {
    /* Colors - Inspired by Malaysia site but unique for Africa (Warm, Earthy, Golden) */
    --clr-primary: #D35400; /* Rich Saffron / Orange */
    --clr-primary-light: #E67E22;
    --clr-primary-dark: #A04000;
    
    --clr-accent: #F39C12; /* Golden/Ochre Accent */
    
    --clr-dark: #121212; /* Deep Charcoal */
    --clr-darker: #0A0A0A; 
    --clr-gray-dark: #A0A0A0; /* Lightened from #2A2A2A to #A0A0A0 for better legibility on dark */
    --clr-gray: #BBBBBB; /* Lightened from #888888 for dark background legibility */
    --clr-gray-light: #E0E0E0;
    
    --clr-light: #FDFBF7; /* Warm Off-White / Cream */
    --clr-white: #FFFFFF;
    
    /* Gradients */
    --gradient-primary: linear-gradient(135deg, var(--clr-primary), var(--clr-accent));
    --gradient-dark: linear-gradient(135deg, var(--clr-darker), var(--clr-dark));
    
    /* Typography */
    --font-heading: 'Playfair Display', serif;
    --font-body: 'Inter', sans-serif;
    
    /* Spacing */
    --spacing-xs: 0.5rem;
    --spacing-sm: 1rem;
    --spacing-md: 2rem;
    --spacing-lg: 4rem;
    --spacing-xl: 6rem;
    
    /* Transitions */
    --trans-fast: 0.2s ease;
    --trans-normal: 0.4s cubic-bezier(0.25, 1, 0.5, 1);
    
    /* Shadows */
    --shadow-sm: 0 4px 6px rgba(0, 0, 0, 0.05);
    --shadow-md: 0 10px 20px rgba(0, 0, 0, 0.1);
    --shadow-lg: 0 20px 40px rgba(0, 0, 0, 0.15);
    --shadow-glow: 0 0 20px rgba(211, 84, 0, 0.3);
}

/* ==========================================================================
   RESET & BASE STYLES
   ========================================================================== */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
    font-size: 16px;
}

body {
    font-family: var(--font-body);
    color: var(--clr-dark);
    background-color: var(--clr-light);
    line-height: 1.6;
    overflow-x: hidden;
}

h1, h2, h3, h4, h5, h6 {
    font-family: var(--font-heading);
    color: var(--clr-dark);
    line-height: 1.2;
    margin-bottom: var(--spacing-sm);
    font-weight: 600;
}

a {
    text-decoration: none;
    color: var(--clr-primary);
    transition: var(--trans-fast);
}

ul {
    list-style: none;
}

img {
    max-width: 100%;
    height: auto;
    display: block;
}

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

.section {
    padding: var(--spacing-xl) 0;
}

.relative { position: relative; }
.text-center { text-align: center; }
.text-light { color: var(--clr-light) !important; }
.text-light h1, .text-light h2, .text-light h3, .text-light h4, .text-light h5, .text-light h6 { color: var(--clr-light); }
.bg-dark { background-color: var(--clr-dark); }
.bg-darker { background-color: var(--clr-darker); }
.text-gray { color: var(--clr-gray); }
.text-sm { font-size: 0.9rem; }
.mt-3 { margin-top: 1.5rem; }
.mt-4 { margin-top: 2rem; }
.mt-5 { margin-top: 3rem; }
.mb-2 { margin-bottom: 0.5rem; }
.mb-5 { margin-bottom: 3rem; }
.pt-4 { padding-top: 2rem; }
.pl-4 { padding-left: 2rem; }

.lead {
    font-size: 1.15rem;
    font-weight: 400;
    color: var(--clr-gray-dark);
    margin-bottom: var(--spacing-sm);
}

.text-gradient {
    background: var(--gradient-primary);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.divider-top {
    border-top: 1px solid rgba(255,255,255,0.2);
    padding-top: var(--spacing-md);
}

/* ==========================================================================
   GRID LAYOUTS
   ========================================================================== */
.two-col-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: var(--spacing-lg);
}

.align-center {
    align-items: center;
}

.grid-3 {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: var(--spacing-md);
}

/* ==========================================================================
   BUTTONS & LINKS
   ========================================================================== */
.btn {
    display: inline-block;
    padding: 0.8rem 2rem;
    font-family: var(--font-body);
    font-weight: 500;
    border-radius: 4px;
    letter-spacing: 0.5px;
    cursor: pointer;
    transition: var(--trans-normal);
    border: 1px solid transparent;
}

.btn-primary {
    background: var(--gradient-primary);
    color: var(--clr-white);
    box-shadow: var(--shadow-sm);
}

.btn-primary:hover {
    box-shadow: var(--shadow-glow);
    transform: translateY(-2px);
    color: var(--clr-white);
}

.btn-secondary {
    background: transparent;
    color: var(--clr-white) !important;
    border-color: rgba(255,255,255,0.3) !important;
}

.btn-secondary:hover {
    background: rgba(255,255,255,0.1);
    border-color: var(--clr-white);
}

.btn-outline {
    background: transparent !important;
    color: var(--clr-primary) !important;
    border-color: var(--clr-primary);
}

.btn-outline:hover {
    background: var(--clr-primary) !important;
    color: var(--clr-white) !important;
}

.btn-sm {
    padding: 0.5rem 1.2rem;
    font-size: 0.9rem;
}

.link-arrow {
    display: inline-flex;
    align-items: center;
    font-weight: 600;
    margin-top: var(--spacing-sm);
}

.link-arrow span {
    margin-left: 0.5rem;
    transition: transform 0.3s;
}

.link-arrow:hover span {
    transform: translateX(5px);
}

/* ==========================================================================
   HEADER / NAVIGATION
   ========================================================================== */
.main-header {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    z-index: 1000;
    padding: 1.2rem 0;
    transition: all 0.4s ease;
    background: transparent;
}

.main-header.scrolled {
    background: rgba(253, 251, 247, 0.95);
    backdrop-filter: blur(10px);
    box-shadow: var(--shadow-sm);
    padding: 0.8rem 0;
}

.main-header.scrolled .nav-link,
.main-header.scrolled .logo-text {
    color: var(--clr-dark);
}

.main-header a {
    color: var(--clr-white);
}

.header-container {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.logo-text {
    font-family: var(--font-heading);
    font-size: 1.5rem;
    font-weight: 700;
    line-height: 1;
}

.accent-text {
    color: var(--clr-primary);
    font-style: italic;
}

.nav-list {
    display: flex;
    gap: 2rem;
    align-items: center;
    padding-top: 1rem;
}

.nav-link {
    font-size: 0.95rem;
    font-weight: 500;
    position: relative;
}

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

.nav-link:hover::after {
    width: 100%;
}

.has-dropdown {
    position: relative;
}
.dropdown {
    position: absolute;
    top: 100%;
    left: 0;
    background: var(--clr-white);
    min-width: 200px;
    box-shadow: var(--shadow-md);
    border-radius: 4px;
    opacity: 0;
    visibility: hidden;
    transform: translateY(10px);
    transition: all 0.3s ease;
    padding: 0.5rem 0;
}

.has-dropdown:hover .dropdown {
    opacity: 1;
    visibility: visible;
    transform: translateY(0);
}

.dropdown li a {
    display: block;
    padding: 0.7rem 1.5rem;
    color: var(--clr-dark);
    font-size: 0.9rem;
}

.dropdown li a:hover {
    background: var(--clr-light);
    color: var(--clr-primary);
}

.header-actions {
    display: flex;
    align-items: center;
    gap: 1rem;
}

/* Mobile Menu */
.menu-toggle {
    display: none;
    background: transparent;
    border: none;
    cursor: pointer;
    flex-direction: column;
    gap: 5px;
}

.menu-toggle .bar {
    width: 25px;
    height: 2px;
    background-color: var(--clr-white);
    transition: 0.3s;
}

.main-header.scrolled .menu-toggle .bar {
    background-color: var(--clr-dark);
}

.mobile-nav-overlay {
    position: fixed;
    top: 0;
    right: -100%;
    width: 100%;
    height: 100vh;
    background: rgba(10, 10, 10, 0.98);
    backdrop-filter: blur(10px);
    z-index: 2000;
    display: flex;
    justify-content: center;
    align-items: center;
    transition: 0.5s cubic-bezier(0.77, 0, 0.175, 1);
}

.mobile-nav-overlay.active {
    right: 0;
}

.close-menu {
    position: absolute;
    top: 2rem;
    right: 2rem;
    background: transparent;
    border: none;
    color: var(--clr-white);
    font-size: 2.5rem;
    cursor: pointer;
}

.mobile-nav-list {
    text-align: center;
}

.mobile-nav-list li {
    margin: 2rem 0;
}

.mobile-nav-list a {
    font-family: var(--font-heading);
    font-size: 2.5rem;
    color: var(--clr-white);
    transition: color 0.3s;
}

.mobile-nav-list a:hover {
    color: var(--clr-primary);
}

/* ==========================================================================
   HERO SECTION
   ========================================================================== */
.hero-section {
    height: 100vh;
    min-height: 600px;
    display: flex;
    align-items: center;
    position: relative;
    background: var(--clr-darker);
    overflow: hidden;
}

.hero-bg-image {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-size: cover;
    background-position: center;
    z-index: 0;
}

.hero-bg-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    /* Create a glowing effect using radial gradients */
    background: radial-gradient(circle at 70% 30%, rgba(211, 84, 0, 0.4) 0%, transparent 50%),
                radial-gradient(circle at 30% 70%, rgba(243, 156, 18, 0.3) 0%, transparent 50%),
                rgba(10, 10, 10, 0.75); /* Darken the background image */
    z-index: 1;
}

.hero-container {
    z-index: 2;
}

.hero-title {
    font-size: clamp(3rem, 6vw, 5.5rem);
    letter-spacing: -1px;
    margin-bottom: 1rem;
    line-height: 1.1;
    opacity: 1; /* Safety default: let JS handle the hide/reveal */
}

.hero-subtitle {
    font-size: clamp(1.1rem, 2vw, 1.4rem);
    max-width: 600px;
    margin-bottom: 2.5rem;
    color: rgba(255,255,255,0.8);
}

.hero-cta {
    display: flex;
    gap: 1rem;
}

.scroll-indicator {
    position: absolute;
    bottom: 2rem;
    left: 50%;
    transform: translateX(-50%);
    z-index: 2;
    display: flex;
    flex-direction: column;
    align-items: center;
    color: rgba(255,255,255,0.6);
    font-size: 0.8rem;
    letter-spacing: 2px;
    text-transform: uppercase;
}

.mouse {
    width: 24px;
    height: 36px;
    border: 2px solid rgba(255,255,255,0.6);
    border-radius: 12px;
    margin-bottom: 10px;
    position: relative;
}

.mouse::before {
    content: '';
    position: absolute;
    top: 6px;
    left: 50%;
    transform: translateX(-50%);
    width: 4px;
    height: 4px;
    background: var(--clr-primary);
    border-radius: 50%;
    animation: scroll-wheel 2s infinite;
}

@keyframes scroll-wheel {
    0% { transform: translate(-50%, 0); opacity: 1; }
    100% { transform: translate(-50%, 15px); opacity: 0; }
}

/* ==========================================================================
   ABOUT SECTION
   ========================================================================== */
.about-section {
    background: var(--clr-light);
}

.premium-card {
    background: rgba(255, 255, 255, 0.7);
    backdrop-filter: blur(20px);
    border: 1px solid rgba(255, 255, 255, 0.9);
    border-radius: 16px;
    padding: 3rem;
    box-shadow: var(--shadow-lg);
    position: relative;
    z-index: 2;
}

.quote {
    font-style: italic;
    font-size: 1.8rem;
    color: var(--clr-primary-dark);
    line-height: 1.4;
}

.author {
    margin-top: 1.5rem;
    font-weight: 600;
    text-align: right;
    color: var(--clr-dark);
}

.about-visual {
    position: relative;
    display: flex;
    align-items: center;
    justify-content: center;
}

.about-img-container {
    border-radius: 20px;
    overflow: hidden;
    box-shadow: var(--shadow-lg);
    position: absolute;
    z-index: 0;
    width: 90%;
    right: 0;
    top: -2rem;
}

.about-img {
    width: 100%;
    height: auto;
    object-fit: cover;
    transform: scale(1.1);
}

.decorative-blob {
    position: absolute;
    width: 300px;
    height: 300px;
    background: var(--gradient-primary);
    border-radius: 40% 60% 70% 30% / 40% 50% 60% 50%;
    filter: blur(50px);
    opacity: 0.3;
    z-index: -1;
    animation: morph 8s ease-in-out infinite;
}

@keyframes morph {
    0%, 100% { border-radius: 40% 60% 70% 30% / 40% 50% 60% 50%; }
    34% { border-radius: 70% 30% 50% 50% / 30% 30% 70% 70%; }
    67% { border-radius: 100% 60% 60% 100% / 100% 100% 60% 60%; }
}

/* ==========================================================================
   PROGRAMS SECTION
   ========================================================================== */
.glass-panel {
    background: rgba(255, 255, 255, 0.03);
    backdrop-filter: blur(10px);
    border: 1px solid rgba(255, 255, 255, 0.05);
    border-radius: 12px;
    transition: var(--trans-normal);
}

.glass-panel.has-img {
    padding: 0;
    overflow: hidden;
    display: flex;
    flex-direction: column;
}

.card-img {
    width: 100%;
    height: 200px;
    background-size: cover;
    background-position: center;
    border-bottom: 2px solid var(--clr-primary);
}

.card-content-inner {
    padding: 2rem;
}

.glass-panel:hover {
    transform: translateY(-10px);
    background: rgba(255, 255, 255, 0.05);
    border-color: rgba(211, 84, 0, 0.3);
}

.card-icon {
    font-size: 2.5rem;
    margin-bottom: 1rem;
}

.glass-panel h3 {
    color: var(--clr-white);
    margin-bottom: 1rem;
}

.glass-panel p {
    color: var(--clr-gray-light);
}

/* ==========================================================================
   LITERATURE SECTION
   ========================================================================== */
.feature-item {
    display: flex;
    gap: 1.5rem;
    margin-bottom: 1.5rem;
}

.feature-icon {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    background: var(--clr-primary-light);
    color: white;
    display: flex;
    justify-content: center;
    align-items: center;
    font-weight: 700;
    flex-shrink: 0;
}

.literature-image {
    display: flex;
    border-radius: 12px;
    overflow: hidden;
    box-shadow: var(--shadow-lg);
    aspect-ratio: 4 / 5;
    width: 100%;
}

.literature-img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transform: scale(1.1);
}

/* ==========================================================================
   FOOTER
   ========================================================================== */
.footer-grid {
    display: grid;
    grid-template-columns: 2fr 1fr 1fr 1fr;
    gap: 3rem;
    padding: 4rem 0;
}

.footer-heading {
    color: var(--clr-white);
    margin-bottom: 1.5rem;
    font-size: 1.2rem;
}

.footer-list li {
    margin-bottom: 0.8rem;
}

.footer-list a {
    color: var(--clr-gray-light);
}

.footer-list a:hover {
    color: var(--clr-primary);
    padding-left: 5px;
}

.social-links {
    display: flex;
    gap: 1rem;
}

.social-links a {
    display: flex;
    justify-content: center;
    align-items: center;
    width: 40px;
    height: 40px;
    border-radius: 50%;
    background: rgba(255,255,255,0.1);
    color: var(--clr-white);
}

.social-links a:hover {
    background: var(--clr-primary);
    transform: translateY(-3px);
}

.footer-bottom-flex {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding-bottom: 3rem;
}

.footer-legal {
    display: flex;
    gap: 1.5rem;
}

.footer-legal a {
    color: var(--clr-gray);
    font-size: 0.9rem;
}

/* ==========================================================================
   THE JOURNEY (HORIZONTAL SCROLL)
   ========================================================================== */
.journey-section {
    position: relative;
    overflow: hidden;
    padding: 0;
}

.h-scroll-container {
    display: flex;
    width: max-content;
    height: 100vh;
    will-change: transform;
}

.h-scroll-panel {
    width: 100vw;
    height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 0 5vw;
    flex-shrink: 0;
}

.intro-panel {
    flex-direction: column;
    text-align: center;
}

.huge-text {
    font-family: var(--font-heading);
    font-size: clamp(4rem, 10vw, 8rem);
    line-height: 1;
    margin-bottom: 2rem;
    background: var(--gradient-primary);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    opacity: 0.9;
}

.step-card {
    display: flex;
    gap: 4rem;
    align-items: center;
    max-width: 1000px;
}

.step-img {
    width: 500px;
    height: 600px;
    background-size: cover;
    background-position: center;
    border-radius: 20px;
    box-shadow: var(--shadow-lg);
    flex-shrink: 0;
}

.step-content {
    max-width: 400px;
}

.step-num {
    display: block;
    font-family: var(--font-heading);
    font-size: 5rem;
    color: var(--clr-primary);
    opacity: 0.5;
    line-height: 1;
    margin-bottom: 1rem;
}

.step-content h3 {
    font-size: 3rem;
    color: var(--clr-white);
    margin-bottom: 1rem;
}

.step-content p {
    font-size: 1.2rem;
    color: var(--clr-gray-light);
}

/* ==========================================================================
   THE TRANSFORMATION (VIEWPORT REVEAL)
   ========================================================================== */
.transformation-section {
    position: relative;
    height: 100vh;
    width: 100%;
    background: var(--clr-darker);
    overflow: hidden;
}

.transform-container {
    position: relative;
    width: 100%;
    height: 100%;
    display: flex;
    justify-content: center;
    align-items: center;
}

.transform-mask {
    position: absolute;
    top: 50%;
    left: 50%;
    width: 100%;
    height: 100%;
    transform: translate(-50%, -50%);
    clip-path: circle(10% at 50% 50%); /* Will be animated via GSAP */
    overflow: hidden;
    z-index: 1;
}

.transform-bg {
    position: absolute;
    top: 0;
    left: 0;
    width: 100vw;
    height: 100vh;
    background-size: cover;
    background-position: center;
    filter: brightness(0.4);
}

.transform-content {
    position: relative;
    z-index: 2;
    opacity: 0;
    transform: translateY(50px);
}

.massive-text {
    font-size: clamp(3rem, 8vw, 6rem);
    color: var(--clr-white);
    letter-spacing: -2px;
}

/* ==========================================================================
   RESPONSIVE
   ========================================================================== */
@media (max-width: 992px) {
    .two-col-grid {
        grid-template-columns: 1fr;
    }
    
    .about-visual {
        grid-row: 1;
        margin-bottom: 3rem;
    }
    
    .pl-4 {
        padding-left: 0;
        margin-top: 3rem;
    }

    .step-card {
        flex-direction: column;
        gap: 2rem;
        text-align: center;
    }
    
    .step-img {
        width: 100%;
        max-width: 400px;
        height: 400px;
    }
}

@media (max-width: 768px) {
    .nav-list, .header-actions .btn {
        display: none;
    }
    
    .menu-toggle {
        display: flex;
    }
    
    .grid-3 {
        grid-template-columns: 1fr;
    }
    
    .footer-grid {
        grid-template-columns: 1fr 1fr;
    }
    
    .hero-title {
        font-size: 2.5rem;
    }
    
    .hero-cta {
        flex-direction: column;
    }
    
    .hero-bg-image {
        background-position: 75% center;
    }

    .h-scroll-panel {
        padding: 0 1rem;
    }

    .huge-text {
        font-size: 3rem;
    }

    .step-img {
        height: 250px;
        width: 80vw;
    }
    
    .step-content h3 {
        font-size: 1.8rem;
    }
    
    .step-num {
        font-size: 2.5rem;
        margin-bottom: 0.5rem;
    }
    
    .step-content p {
        font-size: 1rem;
    }
}

@media (max-width: 480px) {
    .footer-grid {
        grid-template-columns: 1fr;
    }
    
    .footer-bottom-flex {
        flex-direction: column;
        gap: 1rem;
        text-align: center;
    }
}
