/* =================================================================== */
/*                     :ROOT, VARIABLES & GLOBAL STYLES                */
/* =================================================================== */
:root {
    /* Color Scheme - Neutral */
    --bg-color: #f8f9fa; /* Very light gray for the main background */
    --surface-color: #ffffff; /* White for card backgrounds */
    --primary-color: #343a40; /* Dark gray for primary actions and headings */
    --accent-color: #007bff; /* A professional blue for highlights - kept subtle */
    --text-color: #495057; /* Medium-dark gray for body text */
    --heading-color: #212529; /* Almost black for strong headings */
    --border-color: #dee2e6; /* Light gray for borders */
    --white-color: #ffffff;
    --shadow-color: rgba(0, 0, 0, 0.08);

    /* Glassmorphism Variables */
    --glass-bg: rgba(255, 255, 255, 0.1);
    --glass-border: rgba(255, 255, 255, 0.2);
    --glass-shadow: 0 8px 32px 0 rgba(31, 38, 135, 0.1);
    --backdrop-blur: 10px;

    /* Typography */
    --font-heading: 'Roboto', sans-serif;
    --font-body: 'Lato', sans-serif;
    --base-font-size: 16px;
    --header-height: 80px;

    /* Spacing & Layout */
    --container-width: 1200px;
    --container-padding: 1.5rem;
    --section-padding-y: 5rem;
    --card-border-radius: 12px;
    --button-border-radius: 8px;
    --transition-speed: 0.3s;
}

*,
*::before,
*::after {
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
    font-size: var(--base-font-size);
}

body {
    font-family: var(--font-body);
    color: var(--text-color);
    background-color: var(--bg-color);
    line-height: 1.7;
    overflow-x: hidden;
}

h1, h2, h3, h4, h5, h6 {
    font-family: var(--font-heading);
    color: var(--heading-color);
    font-weight: 700;
    margin-top: 0;
    margin-bottom: 1rem;
    line-height: 1.3;
}

h1 { font-size: 3rem; }
h2 { font-size: 2.5rem; text-shadow: 1px 1px 3px rgba(0,0,0,0.1); }
h3 { font-size: 1.75rem; }
h4 { font-size: 1.25rem; }

p {
    margin-top: 0;
    margin-bottom: 1rem;
}

a {
    color: var(--accent-color);
    text-decoration: none;
    transition: color var(--transition-speed) ease;
}

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

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

/* =================================================================== */
/*                        UTILITY & LAYOUT CLASSES                     */
/* =================================================================== */
.main-container {
    width: 100%;
    margin: 0 auto;
}

.container {
    max-width: var(--container-width);
    margin-left: auto;
    margin-right: auto;
    padding-left: var(--container-padding);
    padding-right: var(--container-padding);
}

.section-padding {
    padding-top: var(--section-padding-y);
    padding-bottom: var(--section-padding-y);
}

.section-title, .section-subtitle {
    text-align: center;
    max-width: 800px;
    margin-left: auto;
    margin-right: auto;
}

.section-title {
    margin-bottom: 1.5rem;
    color: var(--heading-color);
}

.section-subtitle {
    margin-bottom: 3rem;
    font-size: 1.1rem;
    color: var(--text-color);
}

/* General button styles */
.button-primary {
    display: inline-block;
    padding: 0.8rem 2rem;
    font-family: var(--font-heading);
    font-weight: 700;
    font-size: 1rem;
    color: var(--white-color);
    background-color: var(--primary-color);
    border: 2px solid var(--primary-color);
    border-radius: var(--button-border-radius);
    text-align: center;
    cursor: pointer;
    transition: all var(--transition-speed) ease-in-out;
    text-decoration: none;
}

.button-primary:hover {
    background-color: var(--accent-color);
    border-color: var(--accent-color);
    transform: translateY(-3px);
    box-shadow: 0 4px 15px rgba(0, 123, 255, 0.3);
    color: var(--white-color);
    text-decoration: none;
}

/* Card base styles */
.card {
    background-color: var(--surface-color);
    border-radius: var(--card-border-radius);
    box-shadow: 0 4px 20px var(--shadow-color);
    overflow: hidden;
    transition: transform var(--transition-speed) ease, box-shadow var(--transition-speed) ease;
    display: flex;
    flex-direction: column;
    text-align: center;
}

.card:hover {
    transform: translateY(-5px);
    box-shadow: 0 8px 30px rgba(0, 0, 0, 0.12);
}

.card-image {
    width: 100%;
    overflow: hidden;
    margin: 0 auto;
}

.card-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform var(--transition-speed) ease;
}

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

.card-content {
    padding: 1.5rem;
    flex-grow: 1;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
}

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

/* Parallax Effect */
.parallax-container {
    background-attachment: fixed;
    background-position: center;
    background-repeat: no-repeat;
    background-size: cover;
    position: relative;
}

.parallax-container > .container {
    position: relative;
    z-index: 2;
}

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

/* Animate on Scroll */
.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);
}


/* =================================================================== */
/*                           HEADER & NAVIGATION                       */
/* =================================================================== */
.site-header {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    z-index: 1000;
    background: rgba(255, 255, 255, 0.8);
    backdrop-filter: blur(10px);
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.05);
    transition: background-color var(--transition-speed) ease;
    height: var(--header-height);
}

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

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

.nav-list {
    display: flex;
    list-style: none;
    margin: 0;
    padding: 0;
    gap: 2rem;
}

.nav-list a {
    font-family: var(--font-heading);
    font-weight: 700;
    color: var(--text-color);
    text-decoration: none;
    position: relative;
    padding: 0.5rem 0;
}

.nav-list a::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 0;
    height: 2px;
    background-color: var(--accent-color);
    transition: width var(--transition-speed) ease;
}

.nav-list a:hover::after,
.nav-list a.active::after {
    width: 100%;
}

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

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


/* =================================================================== */
/*                               HERO SECTION                          */
/* =================================================================== */
#hero {
    min-height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;
    color: var(--white-color);
}

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

.hero-title {
    font-size: 3.5rem;
    font-weight: 900;
    margin-bottom: 1.5rem;
    color: var(--white-color);
    text-shadow: 2px 2px 8px rgba(0,0,0,0.7);
}

.hero-subtitle {
    font-size: 1.25rem;
    margin-bottom: 2.5rem;
    line-height: 1.8;
    color: var(--white-color);
}

/* =================================================================== */
/*                           MISSION SECTION                           */
/* =================================================================== */
.asymmetric-layout {
    display: grid;
    grid-template-columns: 2fr 1.5fr;
    gap: 4rem;
    align-items: center;
}

.mission-text h3 {
    margin-bottom: 1.5rem;
}

.mission-image-container .card-image {
    border-radius: var(--card-border-radius);
    overflow: hidden;
}

/* =================================================================== */
/*                           HISTORY SECTION                           */
/* =================================================================== */
#history .section-title {
    color: var(--white-color);
}

.timeline {
    position: relative;
    max-width: 800px;
    margin: 0 auto;
}

.timeline::after {
    content: '';
    position: absolute;
    width: 4px;
    background-color: var(--accent-color);
    top: 0;
    bottom: 0;
    left: 50%;
    margin-left: -2px;
}

.timeline-item {
    padding: 10px 40px;
    position: relative;
    width: 50%;
}

.timeline-item:nth-child(odd) {
    left: 0;
    text-align: right;
}

.timeline-item:nth-child(even) {
    left: 50%;
    text-align: left;
}

.timeline-item::after {
    content: '';
    position: absolute;
    width: 20px;
    height: 20px;
    right: -10px;
    top: 25px;
    background-color: var(--white-color);
    border: 4px solid var(--accent-color);
    border-radius: 50%;
    z-index: 1;
}

.timeline-item:nth-child(even)::after {
    left: -10px;
}

.timeline-content {
    text-align: left;
}
.timeline-item:nth-child(odd) .timeline-content {
    text-align: right;
}

/* =================================================================== */
/*                         INSTRUCTORS SECTION                         */
/* =================================================================== */
.instructors-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 2rem;
}

.instructors-grid .card .card-image {
    width: 150px;
    height: 150px;
    border-radius: 50%;
    margin-top: -75px;
    border: 5px solid var(--surface-color);
    box-shadow: 0 0 15px rgba(0,0,0,0.1);
}

.instructors-grid .card .card-content {
    margin-top: -75px;
    padding-top: 85px;
}

.instructor-title {
    color: var(--accent-color);
    font-weight: 700;
    margin-bottom: 1rem;
}

/* =================================================================== */
/*                          PORTFOLIO SECTION                          */
/* =================================================================== */
.portfolio-gallery {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(350px, 1fr));
    gap: 2rem;
}

.portfolio-gallery .card-image {
    height: 220px;
}

/* =================================================================== */
/*                           STATS SECTION                             */
/* =================================================================== */
#stats {
    color: var(--white-color);
}
#stats .section-title, #stats .section-subtitle {
    color: var(--white-color);
}

.stats-widgets {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
    gap: 2rem;
    text-align: center;
}

.stats-widgets .widget {
    background-color: var(--glass-bg);
    border: 1px solid var(--glass-border);
    backdrop-filter: blur(var(--backdrop-blur));
    box-shadow: var(--glass-shadow);
    padding: 2rem;
}

.stat-number {
    font-size: 3rem;
    font-weight: 900;
    color: var(--white-color);
    display: block;
}

.stat-label {
    font-size: 1.1rem;
    color: #e0e0e0;
}

/* =================================================================== */
/*                             EVENTS SECTION                          */
/* =================================================================== */
.events-list {
    display: flex;
    flex-direction: column;
    gap: 1.5rem;
    max-width: 900px;
    margin: 0 auto;
}

.event-item {
    display: flex;
    align-items: center;
    gap: 2rem;
    padding: 1.5rem;
    text-align: left;
}

.event-date {
    background-color: var(--primary-color);
    color: var(--white-color);
    border-radius: var(--card-border-radius);
    padding: 1rem;
    text-align: center;
    font-weight: 700;
    min-width: 80px;
}

.event-date .month {
    display: block;
    font-size: 1rem;
}

.event-date .day {
    display: block;
    font-size: 2rem;
    line-height: 1;
}

.event-details h3 {
    margin-bottom: 0.25rem;
}

/* =================================================================== */
/*                        TESTIMONIALS SECTION                         */
/* =================================================================== */
.testimonials-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(400px, 1fr));
    gap: 2rem;
}

.testimonial-card {
    padding: 2rem;
}
.testimonial-card .card-image img {
    width: 100px;
    height: 100px;
    border-radius: 50%;
    margin: 0 auto 1.5rem auto;
}

.testimonial-card blockquote {
    margin: 0 0 1rem 0;
    font-style: italic;
    font-size: 1.1rem;
    border-left: 4px solid var(--accent-color);
    padding-left: 1rem;
    text-align: left;
}
.testimonial-card cite {
    font-weight: 700;
    display: block;
    text-align: left;
    margin-left: 1.25rem;
}

/* =================================================================== */
/*                         CLIENTELE SECTION                           */
/* =================================================================== */
.logos-grid {
    display: flex;
    justify-content: center;
    align-items: center;
    flex-wrap: wrap;
    gap: 4rem;
}

.logos-grid img {
    height: 40px;
    width: auto;
    filter: grayscale(100%);
    opacity: 0.6;
    transition: all var(--transition-speed) ease;
}

.logos-grid img:hover {
    filter: grayscale(0%);
    opacity: 1;
}

/* =================================================================== */
/*                           RESOURCES SECTION                         */
/* =================================================================== */
.resources-list {
    list-style: none;
    padding: 0;
    max-width: 800px;
    margin: 0 auto;
    text-align: center;
}

.resources-list li {
    margin-bottom: 1rem;
}

.resources-list a {
    font-size: 1.2rem;
    font-weight: 700;
    text-decoration: underline;
    text-decoration-color: var(--accent-color);
}

/* =================================================================== */
/*                           CONTACT SECTION                           */
/* =================================================================== */
.contact-form {
    max-width: 800px;
    margin: 0 auto;
}

.glassmorphism-form {
    background: var(--glass-bg);
    backdrop-filter: blur(var(--backdrop-blur));
    border: 1px solid var(--glass-border);
    border-radius: var(--card-border-radius);
    padding: 2.5rem;
    box-shadow: var(--glass-shadow);
}
#contact {
     background: linear-gradient(135deg, #e9ecef, #dee2e6);
}

.form-group {
    margin-bottom: 1.5rem;
}

.form-group label {
    display: block;
    margin-bottom: 0.5rem;
    font-weight: 700;
}

.form-group input,
.form-group textarea {
    width: 100%;
    padding: 0.8rem 1rem;
    border-radius: var(--button-border-radius);
    border: 1px solid var(--border-color);
    background-color: rgba(255, 255, 255, 0.5);
    font-family: var(--font-body);
    font-size: 1rem;
    transition: border-color var(--transition-speed) ease, box-shadow var(--transition-speed) ease;
}

.form-group input:focus,
.form-group textarea:focus {
    outline: none;
    border-color: var(--accent-color);
    box-shadow: 0 0 0 3px rgba(0, 123, 255, 0.25);
}

.contact-form button {
    width: 100%;
}

/* =================================================================== */
/*                              FOOTER                                 */
/* =================================================================== */
.site-footer {
    background-color: var(--primary-color);
    color: #adb5bd;
    padding-top: 4rem;
}

.footer-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 2rem;
    padding-bottom: 3rem;
}

.site-footer h4 {
    color: var(--white-color);
    margin-bottom: 1.5rem;
}

.site-footer ul {
    list-style: none;
    padding: 0;
    margin: 0;
}

.site-footer li {
    margin-bottom: 0.75rem;
}

.site-footer a {
    color: #adb5bd;
    text-decoration: none;
}

.site-footer a:hover {
    color: var(--white-color);
    text-decoration: underline;
}

.footer-bottom {
    border-top: 1px solid #495057;
    text-align: center;
    padding: 1.5rem 0;
}

/* =================================================================== */
/*                   STATIC PAGES (PRIVACY, TERMS, SUCCESS)            */
/* =================================================================== */
.static-page-container {
    padding-top: calc(var(--header-height) + 3rem);
    padding-bottom: 3rem;
}
.static-page-container h1 {
    margin-bottom: 2rem;
}
.static-page-container h2 {
    margin-top: 2rem;
}

.success-page {
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    min-height: 100vh;
    text-align: center;
    background: linear-gradient(135deg, #e9ecef, #dee2e6);
}
.success-content {
    background: var(--surface-color);
    padding: 3rem;
    border-radius: var(--card-border-radius);
    box-shadow: var(--glass-shadow);
}
.success-content h1 {
    color: var(--heading-color);
}
.success-content p {
    font-size: 1.2rem;
    margin-bottom: 2rem;
}

/* =================================================================== */
/*                        RESPONSIVE DESIGN                            */
/* =================================================================== */

@media (max-width: 1024px) {
    h1 { font-size: 2.5rem; }
    h2 { font-size: 2rem; }
    .hero-title { font-size: 3rem; }
    .asymmetric-layout { grid-template-columns: 1fr; }
}

@media (max-width: 768px) {
    :root {
        --section-padding-y: 4rem;
        --header-height: 70px;
    }
    
    .main-nav {
        position: fixed;
        top: 0;
        right: -100%;
        width: 70%;
        height: 100vh;
        background-color: var(--surface-color);
        box-shadow: -5px 0 15px rgba(0,0,0,0.1);
        transition: right var(--transition-speed) ease-in-out;
        padding-top: calc(var(--header-height) + 2rem);
    }
    
    .main-nav.is-open {
        right: 0;
    }

    .nav-list {
        flex-direction: column;
        align-items: center;
        gap: 1.5rem;
    }

    .nav-list a {
        font-size: 1.2rem;
    }
    
    .burger-menu {
        display: block;
    }

    .burger-menu.is-active span:nth-child(1) {
        transform: translateY(8px) rotate(45deg);
    }
    .burger-menu.is-active span:nth-child(2) {
        opacity: 0;
    }
    .burger-menu.is-active span:nth-child(3) {
        transform: translateY(-8px) rotate(-45deg);
    }
    
    .timeline::after {
        left: 31px;
    }
    .timeline-item {
        width: 100%;
        padding-left: 70px;
        padding-right: 25px;
    }
    .timeline-item:nth-child(odd),
    .timeline-item:nth-child(even) {
        left: 0;
        text-align: left;
    }
    .timeline-item::after {
        left: 21px;
    }
    .timeline-item:nth-child(odd) .timeline-content,
    .timeline-item:nth-child(even) .timeline-content {
        text-align: left;
    }

    .event-item {
        flex-direction: column;
        align-items: flex-start;
        gap: 1rem;
    }

    .footer-grid {
        grid-template-columns: 1fr;
        text-align: center;
    }
}

@media (max-width: 480px) {
    h1 { font-size: 2.2rem; }
    h2 { font-size: 1.8rem; }
    .hero-title { font-size: 2.5rem; }
    .hero-subtitle { font-size: 1.1rem; }
    
    .testimonials-grid {
        grid-template-columns: 1fr;
    }

    .portfolio-gallery {
        grid-template-columns: 1fr;
    }
    
    .glassmorphism-form {
        padding: 1.5rem;
    }
}