/*===========================
  CORE THEME CONFIGURATION
===========================*/
:root {
    /* Tetrad Palette */
    --color-1: #ff6b6b;      /* Coral Red            */
    --color-1-dark: #cc5555;
    --color-2: #ffd93d;      /* Saffron Yellow       */
    --color-2-dark: #d6b830;
    --color-3: #6bcb77;      /* Emerald Green        */
    --color-3-dark: #4ea65b;
    --color-4: #4d96ff;      /* Azure Blue           */
    --color-4-dark: #3c73cc;

    /* Greys & Accents */
    --white: #ffffff;
    --black: #000000;
    --text-dark: #222222;
    --text-light: #f6f6f6;
    --gray-100: #f4f4f4;
    --gray-300: #d0d0d0;
    --gray-600: #666666;

    /* Gradients */
    --gradient-main: linear-gradient(135deg, var(--color-1) 0%, var(--color-4) 100%);
    --gradient-secondary: linear-gradient(135deg, var(--color-2) 0%, var(--color-3) 100%);
    --overlay-dark: linear-gradient(rgba(0,0,0,0.55), rgba(0,0,0,0.55));

    /* Shadows & Radius */
    --shadow-soft: 0 4px 16px rgba(0,0,0,0.08);
    --radius-md: 12px;
    --radius-lg: 24px;

    /* Typography */
    --font-heading: 'Inter', sans-serif;
    --font-body: 'IBM Plex Sans', sans-serif;

    /* Animation */
    --transition-fast: 0.25s ease;
    --transition-med: 0.5s ease;
}

/*===========================
  GLOBAL RESET & BASICS
===========================*/
*,
*::before,
*::after { box-sizing: border-box; }

html { scroll-behavior: smooth; }

body {
    margin: 0;
    font-family: var(--font-body);
    font-size: 1rem;
    line-height: 1.6;
    color: var(--text-dark);
    background-color: var(--white);
    -webkit-font-smoothing: antialiased;
}

h1, h2, h3, h4, h5, h6 {
    font-family: var(--font-heading);
    line-height: 1.2;
    margin: 0 0 1rem;
    color: var(--text-dark);
}

p { margin: 0 0 1.2rem; }

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

a:hover { color: var(--color-4-dark); }

/* Utility */
.text-center { text-align: center; }
.section-padding { padding: 4rem 0; }
.alt-bg { background: var(--gray-100); }
.container {
    width: 90%;
    max-width: 1280px;
    margin: 0 auto;
}
.is-two-thirds { width: 100%; }

/*===========================
  NAVIGATION
===========================*/
.site-header {
    position: fixed;
    top: 0; left: 0;
    width: 100%;
    background: rgba(255,255,255,0.9);
    backdrop-filter: blur(8px);
    z-index: 999;
    box-shadow: var(--shadow-soft);
}
.logo { font-weight: 700; font-size: 1.25rem; }
.main-nav {
    display: flex;
    align-items: center;
    justify-content: space-between;
}
.main-nav ul {
    list-style: none;
    display: flex;
    gap: 1rem;
    padding: 0;
    margin: 0;
}
.main-nav li a { font-weight: 500; }
.burger {
    display: none;
    flex-direction: column;
    gap: 4px;
    background: none;
    border: none;
    cursor: pointer;
}
.burger span {
    width: 22px;
    height: 2px;
    background: var(--text-dark);
    transition: transform var(--transition-fast);
}

@media (max-width: 768px) {
    .main-nav ul { 
        position: absolute;
        top: 100%;
        left: 0;
        width: 100%;
        flex-direction: column;
        background: var(--white);
        overflow: hidden;
        max-height: 0;
        transition: max-height var(--transition-med);
    }
    .main-nav ul.open { max-height: 300px; }
    .burger { display: flex; }
}

/*===========================
  HERO SECTION
===========================*/
.hero-section {
    position: relative;
    color: var(--white);
    background-size: cover;
    background-repeat: no-repeat;
    background-position: center;
}
.hero-content {
    padding: 7rem 0 6rem;
    text-align: center;
}
.hero-title { font-size: clamp(2rem, 5vw, 3.5rem); text-shadow: 1px 2px 5px rgba(0,0,0,0.4); }
.hero-subtitle { max-width: 700px; margin: 1rem auto 2rem; font-size: 1.15rem; }

#particles-js {
    position: absolute;
    inset: 0;
    z-index: -1;
}

/*===========================
  BUTTONS & CTA
===========================*/
.btn, button, input[type='submit'] {
    display: inline-block;
    font-family: var(--font-heading);
    font-weight: 600;
    cursor: pointer;
    padding: 0.75rem 1.75rem;
    border: none;
    border-radius: var(--radius-md);
    transition: all var(--transition-fast);
    text-align: center;
}
.btn.primary,
button.primary,
input[type='submit'].primary {
    background: var(--gradient-main);
    color: var(--white);
}
.btn.secondary {
    background: var(--white);
    color: var(--color-1);
    border: 2px solid var(--color-1);
}
.btn.primary:hover,
button.primary:hover,
input[type='submit'].primary:hover {
    filter: brightness(1.05);
}
.btn.secondary:hover {
    background: var(--color-1);
    color: var(--white);
}

/*===========================
  SECTIONS
===========================*/
.section-title {
    font-size: clamp(1.75rem, 4vw, 2.5rem);
    margin-bottom: 3rem;
    text-align: center;
    position: relative;
}
.section-title::after {
    content: '';
    width: 60px;
    height: 4px;
    background: var(--gradient-secondary);
    display: block;
    margin: 1rem auto 0;
    border-radius: 2px;
}

/* Vision */
.vision-section p { max-width: 900px; margin: 0 auto; }

/* Process */
.process-flow {
    display: grid;
    gap: 2rem;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
}

/* Workshops Grid */
.workshop-grid,
.resources-list {
    display: grid;
    gap: 2.5rem;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
}

/* Stats */
.stats-grid {
    display: grid;
    gap: 2rem;
    grid-template-columns: repeat(auto-fit, minmax(140px, 1fr));
    text-align: center;
}
.stat-number {
    font-size: 2.5rem;
    font-weight: 700;
    color: var(--color-3);
}

/* Awards */
.awards-list {
    display: grid;
    gap: 1.75rem;
}

/*===========================
  CARD COMPONENT
===========================*/
.card {
    background: var(--white);
    border-radius: var(--radius-md);
    box-shadow: var(--shadow-soft);
    overflow: hidden;
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
    transition: transform var(--transition-fast), box-shadow var(--transition-fast);
}
.card:hover {
    transform: translateY(-6px);
    box-shadow: 0 8px 26px rgba(0,0,0,0.12);
}

.card-image,
.image-container {
    width: 100%;
    height: 200px;
    overflow: hidden;
    display: flex;
    justify-content: center;
    align-items: center;
}
.card-image img,
.image-container img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    margin: 0 auto;
}

.card-content { padding: 1.5rem; }

/*===========================
  CONTACT FORM
===========================*/
.contact-form {
    max-width: 600px;
    margin: 0 auto;
    display: grid;
    gap: 1.5rem;
}
.form-group {
    display: flex;
    flex-direction: column;
}
.form-group label {
    margin-bottom: .5rem;
    font-weight: 600;
}
.form-group input,
.form-group textarea {
    padding: .75rem 1rem;
    border: 1px solid var(--gray-300);
    border-radius: var(--radius-md);
    font-family: var(--font-body);
    transition: border-color var(--transition-fast);
}
.form-group input:focus,
.form-group textarea:focus {
    outline: none;
    border-color: var(--color-4);
}

/*===========================
  FOOTER
===========================*/
.site-footer {
    padding: 3rem 0;
    background: var(--gradient-secondary);
    color: var(--text-dark);
    text-align: center;
}
.site-footer nav {
    margin: 1rem 0;
    display: flex;
    justify-content: center;
    flex-wrap: wrap;
    gap: 1.5rem;
}
.site-footer nav a {
    color: var(--text-dark);
    font-weight: 500;
}
.social-links {
    margin-top: 1rem;
    display: flex;
    justify-content: center;
    gap: 1.25rem;
}
.social-links a {
    color: var(--text-dark);
    font-weight: 600;
    position: relative;
}
.social-links a::after {
    content: '';
    position: absolute;
    bottom: -3px; left: 0;
    width: 0; height: 2px;
    background: var(--text-dark);
    transition: width var(--transition-fast);
}
.social-links a:hover::after { width: 100%; }

/*===========================
  READ MORE LINK
===========================*/
.read-more {
    display: inline-block;
    font-weight: 600;
    color: var(--color-2-dark);
}
.read-more::after {
    content: ' →';
    transition: transform var(--transition-fast);
}
.read-more:hover::after {
    transform: translateX(4px);
}

/*===========================
  PAGE SPECIFICS
===========================*/
/* Success Page */
.success-page {
    min-height: 100vh;
    display: flex;
    justify-content: center;
    align-items: center;
    flex-direction: column;
    text-align: center;
    background: var(--gradient-main);
    color: var(--white);
}
.success-page h1 { margin-bottom: 1rem; }

/* Privacy & Terms Pages */
.legal-page {
    padding-top: 100px;
}

/*===========================
  ANIMATIONS & EFFECTS
===========================*/
[data-speed] { transition: transform var(--transition-med) ease-out; }

.parallax {
    perspective: 1px;
    overflow-x: hidden;
    overflow-y: auto;
}

@keyframes float-particle {
    0%   { transform: translateY(0)     translateX(0);   opacity: 0.6; }
    50%  { transform: translateY(-20px) translateX(10px); opacity: 1; }
    100% { transform: translateY(0)     translateX(0);   opacity: 0.6; }
}

.particle {
    position: absolute;
    width: 6px; height: 6px;
    border-radius: 50%;
    background: var(--white);
    opacity: 0.7;
    animation: float-particle 6s ease-in-out infinite;
}

/*===========================
  RESPONSIVE TWEAKS
===========================*/
@media (max-width: 1024px) {
    .hero-content { padding: 6rem 0 4rem; }
}

@media (max-width: 600px) {
    .section-padding { padding: 3rem 0; }
    .card-image, .image-container { height: 170px; }
}