/* ==========================================================================
   1. CSS VARIABLES
   ========================================================================== */
:root {
    /* Color Palette: Pastel Retro */
    --background-color: #FDF4F5; /* Very Light Pink */
    --surface-color: #FFFFFF;
    --primary-color: #E8A0BF; /* Pastel Pink */
    --primary-color-dark: #D48DAA;
    --primary-color-rgb: 232, 160, 191;
    --secondary-color: #B5EAD7; /* Pastel Mint Green */
    --text-color: #5D5D5D; /* Dark Gray */
    --heading-color: #4B4453; /* Dark Plum */
    --white-color: #FFFFFF;
    --border-color: #E0E0E0;

    /* Fonts */
    --font-primary: 'Space Grotesk', sans-serif;
    --font-secondary: 'DM Sans', sans-serif;

    /* UI Elements */
    --border-radius-sm: 8px;
    --border-radius-md: 15px;
    --border-radius-lg: 25px;
    --shadow-color: rgba(75, 68, 83, 0.1);
    --shadow-color-strong: rgba(75, 68, 83, 0.15);
    --card-shadow: 0 4px 10px var(--shadow-color);
    --volumetric-shadow: 6px 6px 16px var(--shadow-color), -6px -6px 16px var(--white-color);
    --volumetric-shadow-inset: inset 4px 4px 8px var(--shadow-color), inset -4px -4px 8px var(--white-color);

    /* Sizing & Spacing */
    --header-height: 80px;
    --section-padding: 60px 0;

    /* Transitions */
    --transition-fast: 0.2s ease-in-out;
    --transition-morph: 0.4s cubic-bezier(0.68, -0.55, 0.27, 1.55);
}

/* ==========================================================================
   2. GENERAL & BODY STYLES
   ========================================================================== */
*,
*::before,
*::after {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
}

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

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

/* ==========================================================================
   3. TYPOGRAPHY
   ========================================================================== */
h1, h2, h3, h4, h5, h6 {
    font-family: var(--font-primary);
    color: var(--heading-color);
    font-weight: 700;
    line-height: 1.2;
    margin-bottom: 1rem;
    text-shadow: 1px 1px 2px rgba(255, 255, 255, 0.5);
}

h1 { font-size: 3rem; }
h2 { font-size: 2.5rem; }
h3 { font-size: 1.75rem; }
h4 { font-size: 1.25rem; }

p {
    margin-bottom: 1rem;
    max-width: 70ch;
}

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

a:hover {
    color: var(--heading-color);
}

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

/* ==========================================================================
   4. LAYOUT & CONTAINERS
   ========================================================================== */
.container {
    max-width: 1140px;
    width: 90%;
    margin: 0 auto;
    padding: 0 15px;
}

section {
    padding: var(--section-padding);
}

.section-title {
    text-align: center;
    margin-bottom: 1rem;
    font-size: 2.8rem;
}

.section-description {
    text-align: center;
    max-width: 800px;
    margin: 0 auto 3rem auto;
    font-size: 1.1rem;
    color: var(--text-color);
}

/* ==========================================================================
   5. GLOBAL COMPONENTS (Buttons, Cards, Forms)
   ========================================================================== */
/* Buttons */
.btn, button, input[type='submit'] {
    display: inline-block;
    padding: 15px 35px;
    font-family: var(--font-primary);
    font-size: 1rem;
    font-weight: 700;
    text-align: center;
    text-transform: uppercase;
    letter-spacing: 1px;
    border-radius: var(--border-radius-lg);
    border: none;
    cursor: pointer;
    transition: transform var(--transition-morph), box-shadow var(--transition-morph), background-color var(--transition-fast);
    box-shadow: var(--volumetric-shadow);
    background-color: var(--primary-color);
    color: var(--white-color);
    text-shadow: 1px 1px 2px rgba(0,0,0,0.2);
}

.btn:hover, button:hover, input[type='submit']:hover {
    transform: translateY(-4px) scale(1.02);
    box-shadow: 8px 8px 20px var(--shadow-color-strong), -8px -8px 20px var(--white-color);
    background-color: var(--primary-color-dark);
}

.btn:active, button:active, input[type='submit']:active {
    transform: translateY(2px) scale(0.98);
    box-shadow: var(--volumetric-shadow-inset);
}

.btn-secondary {
    background-color: var(--secondary-color);
    color: var(--heading-color);
}
.btn-secondary:hover {
    background-color: #9cdcc3;
}

/* Cards */
.card, .instructor-card, .testimonial-card, .step-card {
    background-color: var(--surface-color);
    border-radius: var(--border-radius-md);
    box-shadow: var(--card-shadow);
    padding: 1.5rem;
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
    transition: transform var(--transition-fast), box-shadow var(--transition-fast);
    overflow: hidden;
}

.card:hover, .instructor-card:hover, .testimonial-card:hover, .step-card:hover {
    transform: translateY(-10px);
    box-shadow: 0 15px 30px var(--shadow-color-strong);
}

.card-image {
    width: 100%;
    height: 220px;
    margin-bottom: 1.5rem;
    border-radius: var(--border-radius-sm);
    overflow: hidden;
}

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

.card-content {
    display: flex;
    flex-direction: column;
    align-items: center;
    flex-grow: 1;
}
.card-title {
    margin-bottom: 0.5rem;
}

/* Forms */
.contact-form-wrapper {
    max-width: 700px;
    margin: 2rem auto 0;
    padding: 2.5rem;
    background-color: var(--surface-color);
    border-radius: var(--border-radius-md);
    box-shadow: var(--volumetric-shadow);
}
.form-group {
    margin-bottom: 1.5rem;
}
.form-label {
    display: block;
    margin-bottom: 0.5rem;
    font-weight: 700;
    color: var(--heading-color);
    text-align: left;
}
.form-input, .form-textarea {
    width: 100%;
    padding: 15px;
    font-family: var(--font-secondary);
    font-size: 1rem;
    background-color: var(--background-color);
    border: 2px solid transparent;
    border-radius: var(--border-radius-sm);
    color: var(--text-color);
    transition: border-color var(--transition-fast), box-shadow var(--transition-fast);
    box-shadow: var(--volumetric-shadow-inset);
}
.form-input:focus, .form-textarea:focus {
    outline: none;
    border-color: var(--primary-color);
    box-shadow: 0 0 0 4px rgba(var(--primary-color-rgb), 0.3), var(--volumetric-shadow-inset);
}
.form-textarea {
    resize: vertical;
    min-height: 120px;
}
.btn-submit {
    width: 100%;
}


/* ==========================================================================
   6. HEADER & NAVIGATION
   ========================================================================== */
.header {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    z-index: 1000;
    background-color: rgba(255, 255, 255, 0.8);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    box-shadow: 0 2px 10px rgba(0,0,0,0.05);
    transition: top var(--transition-fast);
}
.navbar {
    display: flex;
    justify-content: space-between;
    align-items: center;
    height: var(--header-height);
}
.nav-logo {
    font-family: var(--font-primary);
    font-size: 1.8rem;
    font-weight: 700;
    color: var(--heading-color);
}
.nav-menu {
    display: flex;
    list-style: none;
    gap: 2.5rem;
}
.nav-link {
    font-family: var(--font-primary);
    font-weight: 500;
    color: var(--text-color);
    position: relative;
    padding: 5px 0;
}
.nav-link::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 100%;
    height: 2px;
    background-color: var(--primary-color);
    transform: scaleX(0);
    transform-origin: right;
    transition: transform var(--transition-fast);
}
.nav-link:hover::after {
    transform: scaleX(1);
    transform-origin: left;
}
.hamburger {
    display: none;
    cursor: pointer;
}
.bar {
    display: block;
    width: 25px;
    height: 3px;
    margin: 5px auto;
    background-color: var(--heading-color);
    transition: all 0.3s ease-in-out;
}

/* ==========================================================================
   7. SECTION STYLES
   ========================================================================== */

/* Hero Section */
.hero-section {
    position: relative;
    display: flex;
    align-items: center;
    justify-content: center;
    min-height: 100vh;
    padding: 0;
    color: var(--white-color);
    text-align: center;
    background-position: center;
    background-size: cover;
    background-repeat: no-repeat;
}
.hero-overlay {
    position: absolute;
    inset: 0;
    background: linear-gradient(45deg, rgba(75, 68, 83, 0.7), rgba(232, 160, 191, 0.5));
}
.hero-content {
    position: relative;
    z-index: 2;
    max-width: 800px;
}
.hero-title {
    font-size: 4rem;
    color: var(--white-color);
    text-shadow: 2px 2px 8px rgba(0,0,0,0.5);
    margin-bottom: 1.5rem;
}
.hero-subtitle {
    font-size: 1.25rem;
    margin-bottom: 2.5rem;
    line-height: 1.8;
}

/* Partners Section */
.partners-section {
    background-color: rgba(255, 255, 255, 0.5);
}
.partners-slider {
    overflow: hidden;
    position: relative;
    width: 100%;
    padding: 2rem 0;
}
.partners-slider::before,
.partners-slider::after {
    content: '';
    position: absolute;
    top: 0;
    height: 100%;
    width: 150px;
    z-index: 2;
}
.partners-slider::before {
    left: 0;
    background: linear-gradient(to right, var(--background-color), transparent);
}
.partners-slider::after {
    right: 0;
    background: linear-gradient(to left, var(--background-color), transparent);
}
.slide-track {
    display: flex;
    width: calc(200px * 16); /* image width * number of images * 2 */
    animation: scroll 30s linear infinite;
}
.slide {
    width: 200px;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 0 25px;
}
.slide img {
    max-width: 150px;
    filter: grayscale(100%);
    opacity: 0.7;
    transition: filter var(--transition-fast), opacity var(--transition-fast);
}
.slide img:hover {
    filter: grayscale(0%);
    opacity: 1;
}

/* Statistics Section */
.stats-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 2rem;
    margin-top: 3rem;
}
.stat-card {
    background: var(--surface-color);
    padding: 2rem;
    border-radius: var(--border-radius-md);
    text-align: center;
    box-shadow: var(--volumetric-shadow);
}
.stat-number {
    font-family: var(--font-primary);
    font-size: 3.5rem;
    font-weight: 700;
    color: var(--primary-color-dark);
    display: block;
    margin-bottom: 0.5rem;
}
.stat-label {
    font-size: 1.2rem;
    font-weight: 700;
    color: var(--heading-color);
    margin-bottom: 1rem;
    display: block;
}

/* Methodology Section */
.methodology-section {
    background-color: rgba(255, 255, 255, 0.5);
}
.methodology-steps {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 2rem;
    margin-top: 3rem;
}
.step-card {
    position: relative;
    padding-top: 4rem;
}
.step-number {
    position: absolute;
    top: 1rem;
    left: 1.5rem;
    font-family: var(--font-primary);
    font-size: 4rem;
    font-weight: 700;
    color: var(--primary-color);
    opacity: 0.3;
}
.step-title {
    font-size: 1.5rem;
    margin-bottom: 1rem;
}

/* Portfolio Section */
.portfolio-slider-wrapper {
    position: relative;
}
.portfolio-slider {
    display: grid;
    grid-auto-flow: column;
    grid-auto-columns: calc((100% / 3) - 14px);
    gap: 20px;
    overflow-x: auto;
    scroll-snap-type: x mandatory;
    scrollbar-width: none; /* Firefox */
}
.portfolio-slider::-webkit-scrollbar {
    display: none; /* Chrome, Safari, Opera */
}
.portfolio-slider .card {
    scroll-snap-align: start;
}
.slider-btn {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    height: 50px;
    width: 50px;
    border-radius: 50%;
    font-size: 1.5rem;
    z-index: 5;
    padding: 0;
}
.slider-btn.prev { left: -25px; }
.slider-btn.next { right: -25px; }

/* Instructors Section */
.instructors-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 2rem;
    margin-top: 3rem;
}
.instructor-img {
    width: 150px;
    height: 150px;
    border-radius: 50%;
    object-fit: cover;
    margin-bottom: 1.5rem;
    border: 5px solid var(--white-color);
    box-shadow: 0 5px 15px var(--shadow-color);
}
.instructor-name {
    margin-bottom: 0.25rem;
}
.instructor-title {
    color: var(--primary-color-dark);
    font-weight: 700;
    margin-bottom: 1rem;
}

/* Team Section */
.team-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 2rem;
    justify-content: center;
    max-width: 800px;
    margin: 3rem auto 0;
}
.team-role {
    color: var(--primary-color-dark);
    font-weight: 700;
    margin-bottom: 1rem;
}

/* Testimonials Section */
.testimonials-section {
    background-color: rgba(255, 255, 255, 0.5);
}
.testimonial-slider-wrapper {
    max-width: 800px;
    margin: 0 auto;
    overflow: hidden;
}
.testimonial-slider {
    display: flex;
    transition: transform var(--transition-fast);
}
.testimonial-card {
    flex: 0 0 100%;
}
blockquote {
    font-size: 1.2rem;
    font-style: italic;
    margin-bottom: 1.5rem;
    position: relative;
    padding: 0 2rem;
}
blockquote::before {
    content: '“';
    position: absolute;
    left: 0;
    top: -0.5rem;
    font-size: 4rem;
    color: var(--primary-color);
    opacity: 0.5;
}
cite {
    font-weight: 700;
    color: var(--heading-color);
}

/* Resources Section */
.resources-list {
    display: grid;
    gap: 1.5rem;
}
.resource-item {
    background-color: var(--surface-color);
    padding: 1.5rem 2rem;
    border-radius: var(--border-radius-md);
    box-shadow: var(--card-shadow);
    transition: transform var(--transition-fast), box-shadow var(--transition-fast);
    display: block;
}
.resource-item:hover {
    transform: translateY(-5px) scale(1.01);
    box-shadow: 0 10px 20px var(--shadow-color-strong);
}
.resource-title {
    color: var(--heading-color);
    margin-bottom: 0.5rem;
}
.resource-description {
    color: var(--text-color);
    margin-bottom: 0.75rem;
}
.resource-url {
    font-weight: 700;
    color: var(--primary-color-dark);
}

/* ==========================================================================
   8. FOOTER
   ========================================================================== */
.footer {
    background-color: var(--heading-color);
    color: rgba(255, 255, 255, 0.8);
    padding: 4rem 0 2rem;
}
.footer-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
    gap: 2rem;
    margin-bottom: 2rem;
}
.footer-heading {
    color: var(--white-color);
    font-size: 1.2rem;
    margin-bottom: 1.5rem;
}
.footer-links {
    list-style: none;
}
.footer-links li {
    margin-bottom: 0.75rem;
}
.footer-links a {
    color: rgba(255, 255, 255, 0.8);
    transition: color var(--transition-fast), padding-left var(--transition-fast);
}
.footer-links a:hover {
    color: var(--white-color);
    padding-left: 5px;
}
.footer-bottom {
    text-align: center;
    border-top: 1px solid rgba(255, 255, 255, 0.2);
    padding-top: 2rem;
    margin-top: 2rem;
}

/* ==========================================================================
   9. SPECIFIC PAGE STYLES
   ========================================================================== */
.success-page, .privacy-page, .terms-page {
    display: flex;
    flex-direction: column;
}
.success-page main {
    flex-grow: 1;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    text-align: center;
    padding: 2rem;
}
.privacy-page main, .terms-page main {
    padding-top: calc(var(--header-height) + 40px);
    padding-bottom: 40px;
}

/* ==========================================================================
   10. ANIMATIONS
   ========================================================================== */
@keyframes scroll {
    0% { transform: translateX(0); }
    100% { transform: translateX(calc(-200px * 8)); }
}

/* ==========================================================================
   11. RESPONSIVE MEDIA QUERIES
   ========================================================================== */
@media (max-width: 992px) {
    h1 { font-size: 2.5rem; }
    h2, .section-title { font-size: 2rem; }
    .hero-title { font-size: 3rem; }
    
    .portfolio-slider {
        grid-auto-columns: calc((100% / 2) - 10px);
    }
}

@media (max-width: 768px) {
    .nav-menu {
        position: fixed;
        left: -100%;
        top: var(--header-height);
        flex-direction: column;
        background-color: var(--surface-color);
        width: 100%;
        height: calc(100vh - var(--header-height));
        text-align: center;
        transition: 0.3s;
        gap: 2rem;
        padding-top: 2rem;
        box-shadow: 0 10px 20px rgba(0,0,0,0.1);
    }
    .nav-menu.active {
        left: 0;
    }
    .hamburger {
        display: block;
    }
    .hamburger.active .bar:nth-child(2) {
        opacity: 0;
    }
    .hamburger.active .bar:nth-child(1) {
        transform: translateY(8px) rotate(45deg);
    }
    .hamburger.active .bar:nth-child(3) {
        transform: translateY(-8px) rotate(-45deg);
    }
    
    .portfolio-slider {
        grid-auto-columns: 100%;
    }
    .slider-btn { display: none; }
}