/* ==========================================================================
   1. CSS Variables & Global Settings
   ========================================================================== */

:root {
    /* Color Palette - Neutral & Futuristic */
    --color-primary: #00A8FF; /* Bright, futuristic blue */
    --color-primary-dark: #007bbd;
    --color-secondary: #8E44AD; /* Violet accent */
    --color-background-dark: #12121c; /* Deep space dark */
    --color-background-medium: #1f1f2b;
    --color-background-light: #f0f2f5;
    --color-text-light: #e0e0e0;
    --color-text-dark: #333333;
    --color-heading-light: #FFFFFF;
    --color-heading-dark: #222222;
    --color-border: rgba(255, 255, 255, 0.1);
    
    /* Typography */
    --font-heading: 'Playfair Display', serif;
    --font-body: 'Source Sans Pro', sans-serif;

    /* Spacing & Layout */
    --container-width: 1200px;
    --spacing-unit: 1rem; /* 16px */
    --border-radius: 8px;
    --transition-smooth: all 0.4s cubic-bezier(0.25, 0.8, 0.25, 1);
}

/* Base Styles */
*, *::before, *::after {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
}

html {
    scroll-behavior: smooth;
    font-size: 100%;
}

body {
    background-color: var(--color-background-dark);
    color: var(--color-text-light);
    font-family: var(--font-body);
    font-weight: 400;
    line-height: 1.7;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
}

/* ==========================================================================
   2. Layout & Helpers
   ========================================================================== */

.container {
    width: 100%;
    max-width: var(--container-width);
    margin-left: auto;
    margin-right: auto;
    padding: 0 calc(var(--spacing-unit) * 1.5);
}

.content-section {
    padding: calc(var(--spacing-unit) * 5) 0;
}

.content-section.light-bg {
    background-color: var(--color-background-light);
    color: var(--color-text-dark);
}

.light-bg h2, .light-bg h3 {
    color: var(--color-heading-dark);
}

.section-header {
    text-align: center;
    margin-bottom: calc(var(--spacing-unit) * 3);
}

.section-header h2 {
    margin-bottom: var(--spacing-unit);
}

.section-header p {
    max-width: 600px;
    margin: 0 auto;
    opacity: 0.8;
}

/* Columns for Mission/Vision */
.columns-container {
    display: flex;
    flex-wrap: wrap;
    gap: calc(var(--spacing-unit) * 3);
    justify-content: center;
}

.column.is-two-thirds {
    flex-basis: calc(66.666% - var(--spacing-unit) * 1.5);
    flex-grow: 1;
    min-width: 300px;
}

.columns-container.single-column .column.is-two-thirds {
    flex-basis: 80%;
    text-align: center;
    max-width: 800px;
}

/* ==========================================================================
   3. Typography
   ========================================================================== */

h1, h2, h3, h4 {
    font-family: var(--font-heading);
    font-weight: 700;
    line-height: 1.2;
    color: var(--color-heading-light);
    text-shadow: 1px 1px 3px rgba(0,0,0,0.5);
}

h1 {
    font-size: clamp(2.5rem, 5vw, 4rem);
}

h2 {
    font-size: clamp(2rem, 4vw, 2.75rem);
    color: var(--color-heading-dark); /* Default for sections */
}

.section-header h2 {
    color: inherit;
}

h3 {
    font-size: clamp(1.4rem, 3vw, 1.75rem);
}

h4 {
    font-size: clamp(1.1rem, 2vw, 1.25rem);
    color: var(--color-primary);
}

a {
    color: var(--color-primary);
    text-decoration: none;
    transition: var(--transition-smooth);
}

a:hover {
    color: var(--color-primary-dark);
    text-decoration: underline;
}

/* ==========================================================================
   4. Header & Navigation
   ========================================================================== */

.site-header {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    z-index: 1000;
    padding: var(--spacing-unit) 0;
    transition: background-color 0.3s ease, padding 0.3s ease;
    background: rgba(18, 18, 28, 0.7);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    border-bottom: 1px solid var(--color-border);
}

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

.logo a {
    font-family: var(--font-heading);
    font-size: 1.8rem;
    font-weight: 700;
    color: var(--color-heading-light);
    text-decoration: none;
}

.main-nav ul {
    display: flex;
    list-style: none;
    gap: calc(var(--spacing-unit) * 2);
}

.main-nav a {
    color: var(--color-text-light);
    font-weight: 600;
    padding: 0.5rem 0;
    position: relative;
    text-decoration: none;
}

.main-nav a::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 100%;
    height: 2px;
    background-color: var(--color-primary);
    transform: scaleX(0);
    transform-origin: right;
    transition: transform 0.3s ease-out;
}

.main-nav a:hover::after,
.main-nav a:focus::after {
    transform: scaleX(1);
    transform-origin: left;
}

.burger-menu {
    display: none;
    background: transparent;
    border: none;
    cursor: pointer;
    z-index: 1001;
}

.burger-menu span {
    display: block;
    width: 25px;
    height: 3px;
    background-color: var(--color-heading-light);
    margin: 5px 0;
    transition: all 0.3s ease;
}

/* ==========================================================================
   5. Hero Section
   ========================================================================== */

.hero-section {
    position: relative;
    display: flex;
    align-items: center;
    justify-content: center;
    min-height: 100vh;
    color: var(--color-heading-light);
    text-align: center;
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
    background-attachment: fixed; /* Parallax effect */
}

.hero-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(0deg, rgba(18, 18, 28, 0.8) 0%, rgba(18, 18, 28, 0.4) 100%);
    z-index: 1;
}

.hero-content {
    position: relative;
    z-index: 2;
    max-width: 800px;
}

.hero-content h1 {
    margin-bottom: var(--spacing-unit);
    color: #FFFFFF;
}

.hero-content p {
    font-size: 1.2rem;
    margin-bottom: calc(var(--spacing-unit) * 2);
    color: #FFFFFF;
}

/* ==========================================================================
   6. Volumetric Button & Forms
   ========================================================================== */

.volumetric-button, button, input[type='submit'] {
    display: inline-block;
    background: var(--color-primary);
    color: var(--color-heading-light);
    font-family: var(--font-body);
    font-weight: 600;
    font-size: 1rem;
    padding: 14px 32px;
    border: none;
    border-radius: var(--border-radius);
    cursor: pointer;
    text-decoration: none;
    text-align: center;
    transition: var(--transition-smooth);
    box-shadow: 0 4px 15px rgba(0, 168, 255, 0.2), 0 2px 5px rgba(0, 0, 0, 0.3);
    transform: translateY(0);
}

.volumetric-button:hover, button:hover, input[type='submit']:hover {
    background: var(--color-primary-dark);
    box-shadow: 0 6px 20px rgba(0, 168, 255, 0.3), 0 3px 7px rgba(0, 0, 0, 0.4);
    transform: translateY(-3px);
    color: var(--color-heading-light);
    text-decoration: none;
}

.volumetric-button:active, button:active, input[type='submit']:active {
    transform: translateY(1px);
    box-shadow: 0 2px 10px rgba(0, 168, 255, 0.2), 0 1px 3px rgba(0, 0, 0, 0.3);
}

/* Contact Form */
.contact-form {
    max-width: 700px;
    margin: 0 auto;
    display: flex;
    flex-direction: column;
    gap: calc(var(--spacing-unit) * 1.5);
}

.form-group {
    position: relative;
}

.contact-form input,
.contact-form textarea {
    width: 100%;
    padding: 15px;
    background: var(--color-background-medium);
    border: 1px solid var(--color-border);
    border-radius: var(--border-radius);
    color: var(--color-text-light);
    font-family: var(--font-body);
    font-size: 1rem;
    transition: var(--transition-smooth);
}

.contact-form input:focus,
.contact-form textarea:focus {
    outline: none;
    border-color: var(--color-primary);
    box-shadow: 0 0 0 3px rgba(0, 168, 255, 0.2);
}

.contact-form label {
    position: absolute;
    top: 15px;
    left: 15px;
    color: var(--color-text-light);
    opacity: 0.7;
    pointer-events: none;
    transition: all 0.2s ease;
}

.contact-form input:focus + label,
.contact-form input:valid + label,
.contact-form textarea:focus + label,
.contact-form textarea:valid + label {
    top: -10px;
    left: 10px;
    font-size: 0.8rem;
    padding: 0 5px;
    background-color: var(--color-background-medium);
    color: var(--color-primary);
}

/* ==========================================================================
   7. Cards (Instructors, Resources, Testimonials)
   ========================================================================== */

.cards-container, .resources-list {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
    gap: calc(var(--spacing-unit) * 2.5);
}

.card, .resource-card {
    background: var(--color-background-medium);
    border-radius: var(--border-radius);
    overflow: hidden;
    text-align: center;
    transition: var(--transition-smooth);
    border: 1px solid var(--color-border);
    display: flex;
    flex-direction: column;
    align-items: center;
}

.light-bg .card {
    background: #ffffff;
    border-color: #e0e0e0;
}

.card:hover, .resource-card:hover {
    transform: translateY(-10px);
    box-shadow: 0 15px 30px rgba(0, 0, 0, 0.3);
}

.card-image {
    width: 100%;
    height: 300px;
    margin-bottom: var(--spacing-unit);
}

.card-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: center;
}

.card-content {
    padding: calc(var(--spacing-unit) * 1.5);
    flex-grow: 1;
}

.card-content h3 {
    margin-bottom: 0.5rem;
}

.card-content h4 {
    margin-bottom: 1rem;
    font-weight: 600;
}

/* Resource Cards */
.resource-card {
    padding: calc(var(--spacing-unit) * 2);
    text-align: left;
}

.resource-card h3 a {
    text-decoration: none;
    color: var(--color-heading-light);
}
.light-bg .resource-card h3 a {
    color: var(--color-heading-dark);
}

.resource-card h3 a:hover {
    color: var(--color-primary);
}

/* ==========================================================================
   8. Specific Sections
   ========================================================================== */

/* Process Section */
.process-steps {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: var(--spacing-unit) * 2;
}

.step {
    padding: var(--spacing-unit) * 1.5;
    border-left: 3px solid var(--color-primary);
}

.step-number {
    font-size: 3rem;
    font-weight: 700;
    font-family: var(--font-heading);
    color: var(--color-primary);
    opacity: 0.5;
}

.progress-indicator {
    width: 100%;
    height: 8px;
    background-color: var(--color-background-medium);
    border-radius: 4px;
    overflow: hidden;
    margin-top: var(--spacing-unit);
}

.progress-bar {
    height: 100%;
    background: linear-gradient(90deg, var(--color-secondary), var(--color-primary));
    border-radius: 4px;
}

/* Testimonials */
.testimonials-slider {
    display: flex;
    flex-direction: column;
    gap: var(--spacing-unit) * 2;
    max-width: 800px;
    margin: 0 auto;
}
.testimonial-card {
    background: var(--color-background-medium);
    padding: calc(var(--spacing-unit) * 2);
    border-radius: var(--border-radius);
    text-align: center;
}
.testimonial-avatar {
    width: 100px;
    height: 100px;
    border-radius: 50%;
    object-fit: cover;
    margin-bottom: var(--spacing-unit);
    border: 3px solid var(--color-primary);
}
.testimonial-card blockquote {
    border: none;
    margin: 0;
    padding: 0;
}
.testimonial-card p {
    font-style: italic;
    font-size: 1.1rem;
    margin-bottom: var(--spacing-unit);
}
.testimonial-card footer {
    font-weight: 600;
    color: var(--color-primary);
}

/* Stats Section */
.stats-section {
    position: relative;
    padding: calc(var(--spacing-unit) * 5) 0;
    background-size: cover;
    background-position: center;
    background-attachment: fixed;
}
.stats-overlay {
    position: absolute;
    top: 0; left: 0; width: 100%; height: 100%;
    background: rgba(18, 18, 28, 0.9);
}
.stats-widgets {
    position: relative;
    z-index: 2;
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: var(--spacing-unit) * 2;
    text-align: center;
}
.widget-number {
    display: block;
    font-family: var(--font-heading);
    font-size: 3rem;
    font-weight: 700;
    color: var(--color-primary);
}
.widget-label {
    font-size: 1rem;
    color: var(--color-text-light);
    opacity: 0.8;
}

/* Media Section */
.media-section {
    position: relative;
    padding: calc(var(--spacing-unit) * 6) 0;
    background-size: cover;
    background-position: center;
    background-attachment: fixed;
    text-align: center;
}
.media-overlay {
    position: absolute;
    top: 0; left: 0; width: 100%; height: 100%;
    background: linear-gradient(rgba(0,0,0,0.5), rgba(0,0,0,0.5));
}
.media-section .container {
    position: relative;
    z-index: 2;
}

/* ==========================================================================
   9. Footer
   ========================================================================== */

.site-footer {
    background-color: var(--color-background-medium);
    padding: calc(var(--spacing-unit) * 4) 0 calc(var(--spacing-unit) * 2);
    border-top: 1px solid var(--color-border);
}

.footer-content {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: calc(var(--spacing-unit) * 3);
    margin-bottom: calc(var(--spacing-unit) * 3);
}

.footer-content h3, .footer-content h4 {
    color: var(--color-heading-light);
    margin-bottom: var(--spacing-unit);
}

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

.footer-links a, .footer-social a {
    color: var(--color-text-light);
    opacity: 0.8;
    text-decoration: none;
}

.footer-links a:hover, .footer-social a:hover {
    opacity: 1;
    color: var(--color-primary);
    text-decoration: none;
}

.footer-bottom {
    text-align: center;
    padding-top: calc(var(--spacing-unit) * 2);
    border-top: 1px solid var(--color-border);
    font-size: 0.9rem;
    opacity: 0.7;
}

/* ==========================================================================
   10. Other Pages (Privacy, Terms, Success)
   ========================================================================== */

.text-page {
    padding-top: 120px;
    padding-bottom: 80px;
    background-color: var(--color-background-light);
    color: var(--color-text-dark);
}

.text-page .container {
    max-width: 800px;
}

.text-page h1, .text-page h2 {
    color: var(--color-heading-dark);
    text-shadow: none;
    margin-bottom: var(--spacing-unit);
}

.text-page p, .text-page li {
    margin-bottom: var(--spacing-unit);
}

/* Success Page */
body[data-barba-namespace="success"] main {
    display: flex;
    align-items: center;
    justify-content: center;
    min-height: 100vh;
    text-align: center;
}

/* ==========================================================================
   11. Animations
   ========================================================================== */

/* Barba.js Page Transitions */
.fade-exit-active, .fade-enter-active {
    transition: opacity 0.5s;
}
.fade-exit, .fade-enter {
    opacity: 1;
}
.fade-exit-to, .fade-enter-to {
    opacity: 0;
}

/* Scroll Animations */
.animate-on-scroll {
    opacity: 0;
    transform: translateY(30px);
    transition: opacity 0.6s ease-out, transform 0.6s ease-out;
}

.animate-on-scroll.is-visible {
    opacity: 1;
    transform: translateY(0);
}

/* ==========================================================================
   12. Responsive Design
   ========================================================================== */

@media (max-width: 768px) {
    .main-nav {
        display: none; /* JS will handle showing this */
        position: fixed;
        top: 0;
        right: 0;
        width: 70%;
        height: 100vh;
        background: var(--color-background-medium);
        flex-direction: column;
        justify-content: center;
        align-items: center;
        transform: translateX(100%);
        transition: transform 0.4s cubic-bezier(0.25, 0.8, 0.25, 1);
    }

    .main-nav.is-active {
        display: flex;
        transform: translateX(0);
    }
    
    .main-nav ul {
        flex-direction: column;
        text-align: center;
        gap: calc(var(--spacing-unit) * 3);
    }

    .main-nav a {
        font-size: 1.5rem;
    }

    .burger-menu {
        display: block;
    }

    .columns-container {
        flex-direction: column;
    }

    .footer-content {
        grid-template-columns: 1fr;
        text-align: center;
    }
}
p{
    color: #797878;
}