/* =============================================
   TABLE OF CONTENTS
   =============================================
   1.  :ROOT VARIABLES & GLOBAL STYLES
   2.  UTILITY CLASSES
   3.  HEADER & NAVIGATION
   4.  HERO SECTION
   5.  CONTENT SECTIONS (GENERAL)
   6.  BUTTONS & FORMS (GLOBAL)
   7.  SPECIFIC SECTIONS
       - HISTORY (ACCORDION)
       - SERVICES (CARDS)
       - OUR PROCESS (STEPS)
       - INNOVATION (SLIDER)
       - RESEARCH (STATS)
       - WEBINARS (LIST)
       - COMMUNITY (PARALLAX)
       - RESOURCES (LINKS)
       - CONTACT (FORM)
   8.  FOOTER
   9.  STATIC & SUCCESS PAGES
   10. RESPONSIVE DESIGN (MEDIA QUERIES)
   ============================================= */

/* =============================================
   1. :ROOT VARIABLES & GLOBAL STYLES
   ============================================= */
:root {
    /* Split-Complementary Color Scheme */
    --color-background: #EBF2F8; /* Light, soft blue-grey for the eco-minimalist base */
    --color-primary: #0D6EFD; /* A strong, reliable blue as the main color */
    --color-accent-1: #FFC107; /* A vibrant yellow/gold for the first complement */
    --color-accent-2: #FD7E14; /* A warm orange for the second complement */

    --color-text-dark: #212529; /* High-contrast dark grey for readability */
    --color-text-light: #FFFFFF;
    --color-border: #DDE4EC;
    
    /* Neumorphism Shadows */
    --shadow-light: #FFFFFF;
    --shadow-dark: #A6B4C4;
    --neumorphic-shadow-outset: 6px 6px 12px var(--shadow-dark), -6px -6px 12px var(--shadow-light);
    --neumorphic-shadow-inset: inset 6px 6px 12px var(--shadow-dark), inset -6px -6px 12px var(--shadow-light);

    /* Typography */
    --font-heading: 'Oswald', sans-serif;
    --font-body: 'Nunito', sans-serif;

    /* Spacing & Sizing */
    --header-height: 80px;
    --border-radius: 15px;
    --container-width: 1200px;
    --container-padding: 0 20px;
}

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

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

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

h1, h2, h3, h4, h5, h6 {
    font-family: var(--font-heading);
    font-weight: 700;
    line-height: 1.2;
    margin-bottom: 1rem;
    color: var(--color-text-dark);
    text-shadow: 1px 1px 2px rgba(0,0,0,0.1);
}

p {
    margin-bottom: 1rem;
}

a {
    color: var(--color-primary);
    text-decoration: none;
    transition: color 0.3s ease;
}

a:hover {
    color: var(--color-accent-2);
}

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

/* =============================================
   2. UTILITY CLASSES
   ============================================= */
.container {
    width: 100%;
    max-width: var(--container-width);
    margin: 0 auto;
    padding: var(--container-padding);
}

.bg-light {
    background-color: #F8F9FA; /* A slightly different light background for contrast */
}

/* =============================================
   3. HEADER & NAVIGATION
   ============================================= */
.site-header {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    z-index: 1000;
    background: rgba(235, 242, 248, 0.8);
    backdrop-filter: blur(10px);
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
    height: var(--header-height);
    display: flex;
    align-items: center;
}

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

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

.main-nav ul {
    list-style: none;
    display: flex;
    gap: 2rem;
}

.main-nav a {
    font-weight: 700;
    font-size: 1.1rem;
    padding: 0.5rem 0;
    position: relative;
    color: var(--color-text-dark);
}

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

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

.burger-menu {
    display: none; /* Hidden on desktop */
    background: none;
    border: none;
    cursor: pointer;
    z-index: 1001;
}

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

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

.hero-title {
    font-size: 4rem;
    font-weight: 700;
    margin-bottom: 1rem;
    color: var(--color-text-light);
    text-shadow: 2px 2px 8px rgba(0,0,0,0.7);
}

.hero-subtitle {
    font-size: 1.5rem;
    max-width: 600px;
    margin: 0 auto 2rem;
    text-shadow: 1px 1px 4px rgba(0,0,0,0.7);
}

/* =============================================
   5. CONTENT SECTIONS (GENERAL)
   ============================================= */
.content-section {
    padding: 6rem 0;
}

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

.section-intro {
    font-size: 1.1rem;
    text-align: center;
    max-width: 800px;
    margin: 0 auto 4rem;
    color: #555;
}

/* =============================================
   6. BUTTONS & FORMS (GLOBAL)
   ============================================= */
.btn {
    display: inline-block;
    padding: 1rem 2rem;
    font-family: var(--font-heading);
    font-size: 1.1rem;
    font-weight: 500;
    text-align: center;
    text-transform: uppercase;
    letter-spacing: 1px;
    cursor: pointer;
    border-radius: var(--border-radius);
    transition: all 0.3s ease-out;
    border: none;
}

.btn-primary {
    background-color: var(--color-primary);
    color: var(--color-text-light);
    box-shadow: var(--neumorphic-shadow-outset);
}

.btn-primary:hover {
    color: var(--color-text-light);
    transform: translateY(-3px);
    box-shadow: 8px 8px 16px var(--shadow-dark), -8px -8px 16px var(--shadow-light);
}

.btn-primary:active {
    box-shadow: var(--neumorphic-shadow-inset);
    transform: translateY(1px);
}

.btn-secondary {
    background-color: transparent;
    color: var(--color-primary);
    box-shadow: var(--neumorphic-shadow-outset);
}

.btn-secondary:hover {
    background-color: var(--color-primary);
    color: var(--color-text-light);
    transform: translateY(-3px);
}

.neumorphic-form .form-group {
    margin-bottom: 2rem;
}

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

.neumorphic-form input,
.neumorphic-form textarea {
    width: 100%;
    padding: 1rem;
    border-radius: var(--border-radius);
    border: none;
    background-color: var(--color-background);
    box-shadow: var(--neumorphic-shadow-inset);
    font-family: var(--font-body);
    font-size: 1rem;
    color: var(--color-text-dark);
    transition: box-shadow 0.3s ease;
}

.neumorphic-form input:focus,
.neumorphic-form textarea:focus {
    outline: none;
    box-shadow: inset 3px 3px 6px var(--shadow-dark), 
                inset -3px -3px 6px var(--shadow-light),
                0 0 0 2px var(--color-primary);
}


/* =============================================
   7. SPECIFIC SECTIONS
   ============================================= */

/* HISTORY (ACCORDION) */
.accordion-container {
    max-width: 800px;
    margin: 0 auto;
}

.accordion-item {
    background-color: var(--color-background);
    margin-bottom: 1rem;
    border-radius: var(--border-radius);
    box-shadow: var(--neumorphic-shadow-outset);
}

.accordion-header {
    width: 100%;
    background: none;
    border: none;
    padding: 1.5rem;
    font-family: var(--font-heading);
    font-size: 1.2rem;
    text-align: left;
    cursor: pointer;
    position: relative;
    color: var(--color-text-dark);
}

.accordion-header::after {
    content: '+';
    position: absolute;
    right: 1.5rem;
    font-size: 1.5rem;
    transition: transform 0.3s ease;
}

.accordion-header.active::after {
    transform: rotate(45deg);
}

.accordion-content {
    max-height: 0;
    overflow: hidden;
    transition: max-height 0.3s ease-out;
    padding: 0 1.5rem;
}

.accordion-content p {
    padding: 0 0 1.5rem 0;
}

/* SERVICES (CARDS) */
.card-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
    gap: 2.5rem;
}

.card {
    background: var(--color-background);
    border-radius: var(--border-radius);
    box-shadow: var(--neumorphic-shadow-outset);
    overflow: hidden;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
}

.card:hover {
    transform: translateY(-10px);
    box-shadow: 10px 10px 20px var(--shadow-dark), -10px -10px 20px var(--shadow-light);
}

.card-image {
    width: 100%;
    height: 220px; /* Fixed height for consistency */
    overflow: hidden;
}

.card-image img {
    width: 100%;
    height: 100%;
    object-fit: cover; /* Ensures image covers the container */
    transition: transform 0.4s ease;
}

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

.card-content {
    padding: 2rem;
}

.card-content h3 {
    font-size: 1.5rem;
}

/* OUR PROCESS (STEPS) */
.process-steps {
    position: relative;
}

.step {
    display: flex;
    align-items: center;
    margin-bottom: 2rem;
}

.step-number {
    width: 60px;
    height: 60px;
    min-width: 60px;
    border-radius: 50%;
    background-color: var(--color-primary);
    color: var(--color-text-light);
    display: flex;
    align-items: center;
    justify-content: center;
    font-family: var(--font-heading);
    font-size: 1.8rem;
    margin-right: 2rem;
    box-shadow: var(--neumorphic-shadow-outset);
}

.step-content h4 {
    font-size: 1.4rem;
}

.progress-bar-container {
    height: 60px;
    width: 4px;
    background-color: var(--color-border);
    margin-left: 28px; /* Aligns with center of step-number */
    position: relative;
}

/* INNOVATION (SLIDER) */
.slider-container {
    position: relative;
    max-width: 900px;
    margin: auto;
    border-radius: var(--border-radius);
    box-shadow: var(--neumorphic-shadow-outset);
    overflow: hidden;
}

.custom-slider .slide {
    display: none;
    position: relative;
}
.custom-slider .slide.active {
    display: block;
}

.slide img {
    width: 100%;
    vertical-align: middle;
}

.slide-caption {
    position: absolute;
    bottom: 0;
    left: 0;
    width: 100%;
    padding: 2rem;
    background: linear-gradient(to top, rgba(0, 0, 0, 0.8), transparent);
    color: var(--color-text-light);
}

.slide-caption h3 { color: var(--color-text-light); }

.slider-btn {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    background: rgba(255, 255, 255, 0.7);
    border: none;
    font-size: 2rem;
    padding: 0.5rem 1rem;
    cursor: pointer;
    border-radius: 50%;
    width: 50px;
    height: 50px;
    display: flex;
    align-items: center;
    justify-content: center;
}
.slider-btn.prev { left: 1rem; }
.slider-btn.next { right: 1rem; }

/* RESEARCH (STATS) */
.stats-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 2rem;
    text-align: center;
}

.stat-widget {
    padding: 2rem;
    border-radius: var(--border-radius);
    box-shadow: var(--neumorphic-shadow-inset);
}

.stat-value {
    font-family: var(--font-heading);
    font-size: 3.5rem;
    color: var(--color-primary);
    font-weight: 700;
}

.stat-label {
    font-size: 1.1rem;
    color: #555;
    margin-top: 0.5rem;
}

/* WEBINARS (LIST) */
.webinar-list {
    max-width: 800px;
    margin: 0 auto;
}

.webinar-item {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 1.5rem;
    margin-bottom: 1rem;
    border-radius: var(--border-radius);
    box-shadow: var(--neumorphic-shadow-outset);
    background-color: var(--color-background);
}

.webinar-item h4 {
    font-size: 1.3rem;
    margin-bottom: 0.25rem;
}

/* COMMUNITY (PARALLAX) */
.parallax-showcase {
    padding: 8rem 2rem;
    text-align: center;
    color: var(--color-text-light);
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
    background-attachment: fixed;
    border-radius: var(--border-radius);
    overflow: hidden;
}

.parallax-showcase h3 {
    font-size: 2.5rem;
    color: var(--color-text-light);
    text-shadow: 2px 2px 8px rgba(0,0,0,0.8);
}

/* RESOURCES (LINKS) */
.resource-links {
    display: flex;
    flex-direction: column;
    gap: 1rem;
    max-width: 800px;
    margin: 0 auto;
}

.resource-link {
    display: block;
    padding: 1.5rem;
    border-radius: var(--border-radius);
    background: var(--color-background);
    box-shadow: var(--neumorphic-shadow-outset);
    font-size: 1.2rem;
    font-weight: 700;
    text-align: center;
    transition: all 0.3s ease;
}

.resource-link:hover {
    transform: translateY(-5px);
    background-color: var(--color-accent-1);
    color: var(--color-text-dark);
}

/* CONTACT (FORM) */
.contact-form {
    max-width: 700px;
    margin: 0 auto;
    padding: 3rem;
    border-radius: var(--border-radius);
    background-color: var(--color-background);
    box-shadow: var(--neumorphic-shadow-outset);
}

/* =============================================
   8. FOOTER
   ============================================= */
.site-footer {
    background-color: #2c3e50; /* Dark blue-grey for footer */
    color: #bdc3c7; /* Light grey text */
    padding: 4rem 0 2rem;
}

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

.footer-column h4 {
    font-size: 1.3rem;
    color: var(--color-text-light);
    margin-bottom: 1.5rem;
}

.footer-column ul {
    list-style: none;
}

.footer-column li {
    margin-bottom: 0.8rem;
}

.footer-column a {
    color: #bdc3c7;
    transition: color 0.3s ease, padding-left 0.3s ease;
}

.footer-column a:hover {
    color: var(--color-accent-1);
    padding-left: 5px;
}

.footer-bottom {
    text-align: center;
    border-top: 1px solid #34495e;
    padding-top: 2rem;
    font-size: 0.9rem;
}

/* =============================================
   9. STATIC & SUCCESS PAGES
   ============================================= */
.static-page-content,
.success-page-content {
    padding-top: calc(var(--header-height) + 4rem);
    padding-bottom: 4rem;
}
.static-page-content h1 { font-size: 3rem; }
.static-page-content h2 { font-size: 2rem; margin-top: 2rem; }

body.success-page {
    display: flex;
    flex-direction: column;
    min-height: 100vh;
}

.success-container {
    flex-grow: 1;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    text-align: center;
}

.success-container h1 { font-size: 3rem; color: var(--color-primary); }
.success-container p { font-size: 1.2rem; }

/* =============================================
   10. RESPONSIVE DESIGN (MEDIA QUERIES)
   ============================================= */
@media (max-width: 992px) {
    .hero-title { font-size: 3rem; }
    .hero-subtitle { font-size: 1.3rem; }
    .section-title { font-size: 2.2rem; }
    .content-section { padding: 4rem 0; }
}

@media (max-width: 768px) {
    :root { --header-height: 70px; }

    .main-nav {
        position: fixed;
        top: 0;
        right: 0;
        width: 80%;
        max-width: 300px;
        height: 100vh;
        background-color: var(--color-background);
        box-shadow: -5px 0 15px rgba(0,0,0,0.1);
        transform: translateX(100%);
        transition: transform 0.4s cubic-bezier(0.23, 1, 0.32, 1);
        padding-top: var(--header-height);
    }

    .main-nav.active {
        transform: translateX(0);
    }

    .main-nav ul {
        flex-direction: column;
        align-items: center;
        padding-top: 2rem;
        gap: 0;
    }
    
    .main-nav li {
        width: 100%;
    }

    .main-nav a {
        display: block;
        padding: 1rem 2rem;
        font-size: 1.2rem;
        text-align: center;
        width: 100%;
    }
    
    .main-nav a::after { display: none; }

    .burger-menu {
        display: block;
    }
    
    .burger-menu.active span:nth-child(1) {
        transform: rotate(45deg) translate(5px, 5px);
    }
    .burger-menu.active span:nth-child(2) {
        opacity: 0;
    }
    .burger-menu.active span:nth-child(3) {
        transform: rotate(-45deg) translate(7px, -6px);
    }

    .hero-title { font-size: 2.5rem; }
    .hero-subtitle { font-size: 1.1rem; }
    
    .webinar-item {
        flex-direction: column;
        align-items: flex-start;
        gap: 1rem;
    }
}