/* Setup & Variables */
:root {
    /* Color Palette */
    --primary-purple: #6C4DFF;
    --aqua-accent: #22D3EE;
    --soft-gray: #6B7280;
    --pure-white: #FFFFFF;
    --bg-color: #FAFAFC; /* Very soft off-white to make pure-white containers pop */
    
    /* Typography */
    --font-main: 'Outfit', sans-serif;
    
    /* Transitions */
    --transition: all 0.3s cubic-bezier(0.25, 0.8, 0.25, 1);
}

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

html {
    scroll-behavior: smooth;
}

body {
    font-family: var(--font-main);
    background-color: var(--pure-white);
    color: #1F2937;
    line-height: 1.6;
    overflow-x: hidden;
}

/* Typography Tools */
h1, h2, h3, h4 {
    font-weight: 700;
    line-height: 1.2;
    color: #111827;
}

h1 { font-size: 3.5rem; letter-spacing: -1px; margin-bottom: 1.5rem; }
h2 { font-size: 2.5rem; margin-bottom: 1rem; }
h3 { font-size: 1.5rem; margin-bottom: 0.75rem; }
p { color: var(--soft-gray); font-size: 1.125rem; }

.text-gradient {
    background: linear-gradient(135deg, var(--primary-purple), var(--aqua-accent));
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

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

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

/* Buttons */
.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 0.875rem 2rem;
    border-radius: 9999px;
    font-weight: 600;
    text-decoration: none;
    transition: var(--transition);
    cursor: pointer;
    border: none;
    font-size: 1rem;
}

.btn-primary {
    background: linear-gradient(135deg, var(--primary-purple), #8b73ff);
    color: var(--pure-white);
    box-shadow: 0 10px 20px rgba(108, 77, 255, 0.2);
}

.btn-primary:hover {
    transform: translateY(-3px);
    box-shadow: 0 15px 30px rgba(108, 77, 255, 0.3);
}

.btn-outline {
    background: transparent;
    color: var(--primary-purple);
    border: 2px solid var(--primary-purple);
}

.btn-outline:hover {
    background: var(--primary-purple);
    color: var(--pure-white);
}

.btn-text {
    background: transparent;
    color: var(--primary-purple);
    gap: 0.5rem;
}
.btn-text:hover {
    gap: 0.75rem;
}

/* Navigation */
.navbar {
    position: fixed;
    top: 0;
    width: 100%;
    background: rgba(255, 255, 255, 0.85);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    z-index: 1000;
    border-bottom: 1px solid rgba(229, 231, 235, 0.5);
    padding: 1rem 0;
    transition: var(--transition);
}

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

.logo {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    font-size: 1.75rem;
    font-weight: 800;
    color: var(--primary-purple);
}

.logo-icon {
    font-size: 2rem;
    background: linear-gradient(135deg, var(--primary-purple), var(--aqua-accent));
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
}

.nav-links {
    display: flex;
    gap: 2rem;
}

.nav-links a {
    text-decoration: none;
    color: #4B5563;
    font-weight: 500;
    position: relative;
    transition: var(--transition);
}

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

.nav-links a::after {
    content: '';
    position: absolute;
    width: 0;
    height: 2px;
    bottom: -4px;
    left: 0;
    background: var(--aqua-accent);
    transition: var(--transition);
}

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

/* Hero Section */
.hero {
    padding: 10rem 0 6rem;
    min-height: 100vh;
    display: flex;
    align-items: center;
    position: relative;
    overflow: hidden;
}

/* Very subtle background light effect */
.hero::before {
    content: '';
    position: absolute;
    top: -20%;
    right: -10%;
    width: 600px;
    height: 600px;
    background: radial-gradient(circle, rgba(108,77,255,0.08) 0%, rgba(255,255,255,0) 70%);
    border-radius: 50%;
    z-index: -1;
}

.hero::after {
    content: '';
    position: absolute;
    bottom: -10%;
    left: -10%;
    width: 500px;
    height: 500px;
    background: radial-gradient(circle, rgba(34,211,238,0.08) 0%, rgba(255,255,255,0) 70%);
    border-radius: 50%;
    z-index: -1;
}

.hero-container {
    display: grid;
    grid-template-columns: 1.1f 0.9fr;
    gap: 4rem;
    align-items: center;
}

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

.badge {
    display: inline-block;
    padding: 0.5rem 1rem;
    background: rgba(34, 211, 238, 0.1);
    color: var(--primary-purple);
    border-radius: 9999px;
    font-weight: 600;
    font-size: 0.875rem;
    margin-bottom: 1.5rem;
    border: 1px solid rgba(34, 211, 238, 0.3);
}

.hero-actions {
    margin-top: 2.5rem;
    display: flex;
    align-items: center;
    gap: 1.5rem;
}

.hero-image-wrapper {
    position: relative;
    animation: floating 6s ease-in-out infinite;
}

.hero-img {
    width: 100%;
    height: auto;
    border-radius: 24px;
    position: relative;
    z-index: 2;
    box-shadow: 0 25px 50px -12px rgba(108, 77, 255, 0.15);
}

.glow-bg {
    position: absolute;
    top: 10%;
    left: 10%;
    right: 10%;
    bottom: 10%;
    background: linear-gradient(135deg, var(--primary-purple), var(--aqua-accent));
    filter: blur(80px);
    opacity: 0.3;
    z-index: 1;
}

@keyframes floating {
    0% { transform: translateY(0px); }
    50% { transform: translateY(-20px); }
    100% { transform: translateY(0px); }
}

/* Sections Common */
section {
    padding: 6rem 0;
}

.section-header {
    text-align: center;
    max-width: 700px;
    margin: 0 auto 4rem;
}

/* Programs Grid */
.programs-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 2.5rem;
}

.program-card {
    background: var(--pure-white);
    border-radius: 20px;
    overflow: hidden;
    box-shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.05), 0 2px 4px -1px rgba(0, 0, 0, 0.03);
    border: 1px solid rgba(229, 231, 235, 0.6);
    transition: var(--transition);
    display: flex;
    flex-direction: column;
}

.program-card:hover {
    transform: translateY(-10px);
    box-shadow: 0 20px 25px -5px rgba(108, 77, 255, 0.1), 0 10px 10px -5px rgba(108, 77, 255, 0.04);
}

/* Media Grid */
.videos-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 3rem;
    margin-top: 2rem;
}

.video-card {
    border-radius: 20px;
    overflow: hidden;
    box-shadow: 0 10px 30px rgba(0,0,0,0.05);
    background: var(--pure-white);
    aspect-ratio: 16 / 9;
    display: flex;
}

.video-card iframe {
    width: 100%;
    height: 100%;
    border: none;
}

.placeholder-video {
    background: #f3f4f6;
    display: flex;
    justify-content: center;
    align-items: center;
    position: relative;
}

.play-icon-overlay {
    text-align: center;
    color: #9ca3af;
}

.play-icon-overlay .material-icons {
    font-size: 4rem;
    margin-bottom: 0.5rem;
    transition: var(--transition);
}

.placeholder-video:hover .material-icons {
    color: var(--primary-purple);
    transform: scale(1.1);
}

.card-img-wrapper {
    width: 100%;
    height: 220px;
    background: #f3f4f6; /* Placeholder gray if image fails */
    overflow: hidden;
    position: relative;
}

.course-img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.5s ease;
}

.program-card:hover .course-img {
    transform: scale(1.05);
}

.card-img-wrapper::after {
    content: '';
    position: absolute;
    top: 0; left: 0; right: 0; bottom: 0;
    background: linear-gradient(to bottom, transparent, rgba(0,0,0,0.1));
}

.card-content {
    padding: 2rem;
    flex: 1;
    display: flex;
    flex-direction: column;
}

.card-content p {
    font-size: 1rem;
    margin-bottom: 1.5rem;
    flex: 1;
}

.card-link {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    color: var(--primary-purple);
    font-weight: 600;
    text-decoration: none;
    margin-top: auto;
}

.card-link:hover {
    color: var(--aqua-accent);
}

/* About Section */
.about-section {
    background: var(--bg-color); /* Slight off-white to separate */
}

.about-container {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 5rem;
    align-items: center;
}

.stats-row {
    display: flex;
    gap: 3rem;
    margin-top: 3rem;
    padding-top: 2rem;
    border-top: 1px solid rgba(107, 114, 128, 0.2);
}

.stat-item {
    display: flex;
    flex-direction: column;
}

.stat-number {
    font-size: 2.5rem;
    font-weight: 800;
    color: var(--primary-purple);
    line-height: 1;
    margin-bottom: 0.5rem;
}

.stat-label {
    font-size: 0.875rem;
    font-weight: 500;
}

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

.glass-orb {
    width: 300px;
    height: 300px;
    border-radius: 50%;
    background: linear-gradient(135deg, rgba(108, 77, 255, 0.3), rgba(34, 211, 238, 0.3));
    filter: blur(40px);
    position: absolute;
    animation: pulse 8s infinite alternate;
}

.glass-orb.small {
    width: 200px;
    height: 200px;
    background: linear-gradient(135deg, rgba(34, 211, 238, 0.4), rgba(108, 77, 255, 0.2));
    filter: blur(30px);
    right: 0;
    bottom: 0;
    animation: pulse 6s infinite alternate-reverse;
}

.decor-card {
    background: rgba(255, 255, 255, 0.6);
    backdrop-filter: blur(16px);
    -webkit-backdrop-filter: blur(16px);
    border: 1px solid rgba(255, 255, 255, 0.5);
    padding: 1.5rem;
    border-radius: 16px;
    display: flex;
    align-items: center;
    gap: 1rem;
    box-shadow: 0 20px 40px rgba(0,0,0,0.05);
    position: relative;
    z-index: 10;
    transform: translateY(-20px);
    animation: floating 5s ease-in-out infinite;
}

.icon-circle {
    width: 48px;
    height: 48px;
    border-radius: 50%;
    background: var(--primary-purple);
    color: white;
    display: flex;
    justify-content: center;
    align-items: center;
}

.decor-text {
    display: flex;
    flex-direction: column;
}
.decor-text strong {
    color: #111827;
}
.decor-text span {
    font-size: 0.875rem;
    color: var(--soft-gray);
}

@keyframes pulse {
    0% { transform: scale(1); opacity: 0.7; }
    100% { transform: scale(1.1); opacity: 1; }
}

/* Benefits Section */
.benefits-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 3rem;
}

.benefit-card {
    text-align: center;
    padding: 2rem;
}

.benefit-icon {
    width: 80px;
    height: 80px;
    margin: 0 auto 1.5rem;
    background: rgba(108, 77, 255, 0.05);
    border-radius: 20px;
    display: flex;
    justify-content: center;
    align-items: center;
    color: var(--primary-purple);
    font-size: 2rem;
    transition: var(--transition);
}
.benefit-icon .material-icons {
    font-size: 2.5rem;
}

.benefit-card:hover .benefit-icon {
    background: var(--primary-purple);
    color: white;
    transform: rotate(10deg);
}

/* Footer */
.footer {
    background: #111827;
    color: #9CA3AF;
    padding-top: 5rem;
}

.footer-top {
    display: grid;
    grid-template-columns: 2fr 1fr 1fr;
    gap: 4rem;
    border-bottom: 1px solid rgba(255,255,255,0.1);
    padding-bottom: 4rem;
}

.footer-brand .logo {
    color: var(--pure-white);
    margin-bottom: 1rem;
}
.footer-brand .logo-icon {
    background: none;
    -webkit-text-fill-color: var(--aqua-accent);
}

.footer-links h3, .footer-contact h3 {
    color: var(--pure-white);
    font-size: 1.25rem;
    margin-bottom: 1.5rem;
}

.footer-links a {
    display: block;
    color: #9CA3AF;
    text-decoration: none;
    margin-bottom: 0.75rem;
    transition: var(--transition);
}
.footer-links a:hover {
    color: var(--aqua-accent);
    padding-left: 5px;
}

.footer-contact p {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    margin-bottom: 0.75rem;
}

.footer-bottom {
    padding: 2rem 0;
    text-align: center;
    font-size: 0.875rem;
}

/* Responsive */
@media (max-width: 992px) {
    .hero-container, .about-container {
        grid-template-columns: 1fr;
        text-align: center;
    }
    .hero-actions {
        justify-content: center;
    }
    .hero {
        padding-top: 8rem;
    }
    .programs-grid {
        grid-template-columns: repeat(2, 1fr);
    }
    .videos-grid {
        grid-template-columns: 1fr;
    }
    .stats-row {
        justify-content: center;
    }
    .footer-top {
        grid-template-columns: 1fr 1fr;
    }
}

@media (max-width: 768px) {
    h1 { font-size: 2.5rem; }
    h2 { font-size: 2rem; }
    .nav-links {
        display: none; /* simple mobile nav override */
    }
    .programs-grid {
        grid-template-columns: 1fr;
    }
    .benefits-grid {
        grid-template-columns: 1fr;
    }
    .footer-top {
        grid-template-columns: 1fr;
    }
}

/* Interactivity Classes injected by JS */
.fade-in-section {
    opacity: 0;
    transform: translateY(20px);
    transition: opacity 0.8s ease-out, transform 0.8s ease-out;
    will-change: opacity, visibility;
}
.fade-in-section.is-visible {
    opacity: 1;
    transform: none;
}
