/* =================================================================== */
/*                     :ROOT VARIABLES & DEFAULTS                      */
/* =================================================================== */
:root {
    /* Pastel Color Scheme */
    --color-background: #E0E5EC; /* Light pastel grey-blue */
    --color-text-primary: #333A49;
    --color-text-secondary: #5a6479;
    --color-text-headings: #2c3241;
    --color-accent-primary: #8EADD5; /* Pastel blue */
    --color-accent-primary-dark: #6a89b8;
    --color-accent-secondary: #BFA2DB; /* Pastel purple */
    --color-white: #FFFFFF;
    --color-success: #A3D9A5;
    --color-upcoming: #F9D5E5;

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

    /* Neumorphism Shadows */
    --shadow-light: rgba(255, 255, 255, 0.7);
    --shadow-dark: rgba(163, 177, 198, 0.5);
    --neumorphic-shadow: 8px 8px 16px var(--shadow-dark), -8px -8px 16px var(--shadow-light);
    --neumorphic-shadow-inset: inset 8px 8px 16px var(--shadow-dark), inset -8px -8px 16px var(--shadow-light);
    --neumorphic-shadow-hover: 12px 12px 24px var(--shadow-dark), -12px -12px 24px var(--shadow-light);
    --text-shadow-light: 1px 1px 2px rgba(0, 0, 0, 0.2);

    /* Spacing & Sizing */
    --header-height: 80px;
    --border-radius: 20px;
    --container-width: 1200px;
    --container-padding: 1rem;
    
    /* Transitions */
    --transition-fast: 0.2s ease-in-out;
    --transition-smooth: 0.4s cubic-bezier(0.25, 0.8, 0.25, 1);
}

/* =================================================================== */
/*                     BASE & TYPOGRAPHY STYLES                        */
/* =================================================================== */
*, *::before, *::after {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
}

html {
    scroll-behavior: smooth;
}

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

h1, h2, h3, h4 {
    font-family: var(--font-headings);
    color: var(--color-text-headings);
    font-weight: 800;
    line-height: 1.3;
    text-shadow: var(--text-shadow-light);
}

h1 { font-size: 3rem; margin-bottom: 1rem; }
h2 { font-size: 2.5rem; margin-bottom: 1.5rem; text-align: center; }
h3 { font-size: 1.5rem; margin-bottom: 0.75rem; }
h4 { font-size: 1.2rem; margin-bottom: 0.5rem; }

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

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

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

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

section {
    padding: 6rem 0;
}

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

.container {
    width: 100%;
    max-width: var(--container-width);
    margin: 0 auto;
    padding: 0 var(--container-padding);
}

/* =================================================================== */
/*                           HEADER & NAVIGATION                       */
/* =================================================================== */
.header {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: var(--header-height);
    background: rgba(224, 229, 236, 0.8);
    backdrop-filter: blur(10px);
    z-index: 1000;
    transition: all var(--transition-fast);
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.05);
}

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

.logo {
    font-family: var(--font-headings);
    font-size: 1.8rem;
    font-weight: 800;
    color: var(--color-text-headings);
}

.nav-list {
    display: flex;
    list-style: none;
    gap: 2.5rem;
}

.nav-link {
    font-family: var(--font-body);
    font-weight: 600;
    font-size: 1rem;
    color: var(--color-text-secondary);
    position: relative;
    padding: 0.5rem 0;
}

.nav-link::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 0;
    height: 2px;
    background-color: var(--color-accent-primary);
    transition: width var(--transition-fast);
}

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

.contact-button {
    padding: 0.75rem 1.5rem;
    border-radius: var(--border-radius);
    background-color: var(--color-accent-primary);
    color: var(--color-white);
    box-shadow: var(--neumorphic-shadow);
    transition: all var(--transition-fast);
}

.contact-button:hover {
    background-color: var(--color-accent-primary-dark);
    box-shadow: var(--neumorphic-shadow-hover);
    transform: translateY(-2px);
}
.contact-button:hover::after {
    width: 0; /* No underline for button */
}

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

.burger-line {
    display: block;
    width: 28px;
    height: 3px;
    background-color: var(--color-text-headings);
    margin: 6px 0;
    transition: all 0.3s ease-in-out;
}

/* =================================================================== */
/*                        GLOBAL COMPONENTS                            */
/* =================================================================== */
.cta-button, .btn-secondary {
    display: inline-block;
    padding: 1rem 2.5rem;
    font-family: var(--font-headings);
    font-size: 1.1rem;
    font-weight: 700;
    border: none;
    border-radius: 50px;
    cursor: pointer;
    text-align: center;
    transition: all var(--transition-smooth);
    position: relative;
    overflow: hidden;
}

.cta-button {
    background-color: var(--color-accent-primary);
    color: var(--color-white);
    box-shadow: var(--neumorphic-shadow);
}

.cta-button:hover {
    background-color: var(--color-accent-primary-dark);
    transform: translateY(-5px);
    box-shadow: var(--neumorphic-shadow-hover);
}

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

.btn-secondary:hover {
    background-color: var(--color-white);
    transform: translateY(-3px);
    box-shadow: var(--neumorphic-shadow-hover);
}

.card {
    background-color: var(--color-background);
    padding: 2rem;
    border-radius: var(--border-radius);
    box-shadow: var(--neumorphic-shadow);
    text-align: center;
    transition: all var(--transition-smooth);
    display: flex;
    flex-direction: column;
    align-items: center;
}

.card:hover {
    transform: translateY(-10px);
    box-shadow: var(--neumorphic-shadow-hover);
}

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

.card .card-image img {
    width: 100%;
    height: 250px; /* Fixed height for consistency */
    object-fit: cover;
    margin: 0 auto;
}

.section-title {
    margin-bottom: 1rem;
}

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

/* =================================================================== */
/*                           SECTION STYLES                            */
/* =================================================================== */

/* Hero */
.hero {
    min-height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
    background-attachment: fixed;
    color: var(--color-white);
    padding: var(--header-height) 0 0 0;
}

.hero-content {
    max-width: 900px;
}

.hero-title {
    font-size: 4rem;
    font-weight: 800;
    color: var(--color-white);
    text-shadow: 2px 2px 8px rgba(0,0,0,0.7);
}

.hero-subtitle {
    font-size: 1.4rem;
    margin: 1rem auto 2.5rem auto;
    color: var(--color-white);
    opacity: 0.9;
}

/* Clientele & Press */
.client-logos, .press-logos {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    align-items: center;
    gap: 2rem;
}
.client-logo-card, .press-logo-card {
    padding: 1.5rem;
    border-radius: var(--border-radius);
    background-color: var(--color-background);
    box-shadow: var(--neumorphic-shadow-inset);
    display: flex;
    align-items: center;
    justify-content: center;
}

.client-logo-card img, .press-logo-card img {
    filter: grayscale(100%);
    opacity: 0.7;
    transition: all var(--transition-fast);
}

.client-logo-card:hover img, .press-logo-card:hover img {
    filter: grayscale(0%);
    opacity: 1;
    transform: scale(1.05);
}

/* Success Stories */
.stats-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 2rem;
    margin-bottom: 4rem;
}
.stat-widget {
    padding: 2rem;
    text-align: center;
    background: var(--color-background);
    box-shadow: var(--neumorphic-shadow-inset);
    border-radius: var(--border-radius);
}
.stat-widget h3 {
    font-size: 3rem;
    color: var(--color-accent-secondary);
    margin-bottom: 0.5rem;
}

.customer-stories-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(400px, 1fr));
    gap: 2rem;
}

.customer-stories-grid .card {
    text-align: left;
}
.customer-stories-grid blockquote {
    font-size: 1.1rem;
    font-style: italic;
    color: var(--color-text-secondary);
    border-left: 4px solid var(--color-accent-primary);
    padding-left: 1.5rem;
    margin-bottom: 1rem;
}
.customer-stories-grid cite {
    font-weight: 600;
    display: block;
    margin-bottom: 1.5rem;
}

.progress-indicator {
    width: 100%;
}
.progress-indicator label {
    display: block;
    margin-bottom: 0.5rem;
    font-weight: 500;
}
.progress-indicator progress {
    width: 100%;
    height: 12px;
    appearance: none;
    border-radius: 10px;
    overflow: hidden;
}
.progress-indicator progress::-webkit-progress-bar {
    background-color: #d1d9e6;
}
.progress-indicator progress::-webkit-progress-value {
    background-color: var(--color-accent-primary);
    transition: width 1s ease-in-out;
}

/* Case Studies - Accordion */
.accordion {
    max-width: 900px;
    margin: 0 auto;
}
.accordion-item {
    margin-bottom: 1rem;
    border-radius: var(--border-radius);
    box-shadow: var(--neumorphic-shadow);
    overflow: hidden;
}
.accordion-header {
    background: transparent;
    border: none;
    width: 100%;
    text-align: left;
    padding: 1.5rem 2rem;
    font-size: 1.2rem;
    font-weight: 600;
    cursor: pointer;
    display: flex;
    justify-content: space-between;
    align-items: center;
    color: var(--color-text-headings);
}

.accordion-icon {
    font-size: 1.5rem;
    transition: transform var(--transition-fast);
}
.accordion-item.active .accordion-icon {
    transform: rotate(45deg);
}

.accordion-content {
    max-height: 0;
    overflow: hidden;
    transition: max-height 0.5s cubic-bezier(0.25, 0.8, 0.25, 1), padding 0.5s cubic-bezier(0.25, 0.8, 0.25, 1);
    padding: 0 2rem;
}
.accordion-content p {
    color: var(--color-text-secondary);
}

/* Innovation - Curved Grid */
.curved-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 2rem;
    align-items: center;
}

.innovation-card:nth-child(1) {
    transform: rotate(-2deg) translateY(10px);
}
.innovation-card:nth-child(2) {
    transform: translateY(-20px);
}
.innovation-card:nth-child(3) {
    transform: rotate(2deg) translateY(10px);
}

/* Webinars */
.webinars-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(400px, 1fr));
    gap: 2rem;
    max-width: 1000px;
    margin: 0 auto;
}
.webinar-card {
    padding: 2rem;
    border-radius: var(--border-radius);
    box-shadow: var(--neumorphic-shadow);
    position: relative;
    overflow: hidden;
    text-align: center;
}
.webinar-status {
    position: absolute;
    top: 1.5rem;
    right: 1.5rem;
    padding: 0.3rem 0.8rem;
    border-radius: 10px;
    font-size: 0.8rem;
    font-weight: 600;
    color: var(--color-text-headings);
}
.webinar-status.upcoming { background-color: var(--color-upcoming); }
.webinar-status.past { background-color: #d1d9e6; }
.webinar-date {
    font-weight: 500;
    color: var(--color-text-secondary);
    margin-bottom: 1rem;
}

/* Gallery */
.image-gallery {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 1.5rem;
}
.gallery-item {
    border-radius: var(--border-radius);
    overflow: hidden;
    box-shadow: var(--neumorphic-shadow);
}
.gallery-item img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform var(--transition-smooth);
}
.gallery-item:hover img {
    transform: scale(1.1);
}

/* External Resources */
.resource-links {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(350px, 1fr));
    gap: 2rem;
}
.resource-link {
    display: block;
    padding: 2rem;
    border-radius: var(--border-radius);
    box-shadow: var(--neumorphic-shadow);
    transition: all var(--transition-smooth);
    color: var(--color-text-primary);
}
.resource-link:hover {
    transform: translateY(-8px);
    box-shadow: var(--neumorphic-shadow-hover);
    color: var(--color-accent-primary-dark);
}
.resource-link h3 {
    color: var(--color-text-headings);
}

/* Contact Form */
.contact-container {
    display: grid;
    grid-template-columns: 1fr 1.2fr;
    gap: 4rem;
    align-items: center;
}
.contact-info .section-title {
    text-align: left;
}
.form-group {
    margin-bottom: 1.5rem;
}
.form-label {
    display: block;
    margin-bottom: 0.5rem;
    font-weight: 500;
    color: var(--color-text-secondary);
}
.form-input {
    width: 100%;
    padding: 1rem;
    border: none;
    border-radius: 12px;
    background-color: var(--color-background);
    box-shadow: var(--neumorphic-shadow-inset);
    font-family: var(--font-body);
    font-size: 1rem;
    color: var(--color-text-primary);
    transition: box-shadow var(--transition-fast);
}
.form-input:focus {
    outline: none;
    box-shadow: inset 4px 4px 8px var(--shadow-dark), inset -4px -4px 8px var(--shadow-light), 0 0 0 2px var(--color-accent-primary);
}
textarea.form-input {
    resize: vertical;
}
.form-submit-button {
    width: 100%;
}


/* =================================================================== */
/*                               FOOTER                                */
/* =================================================================== */
.footer {
    background-color: #d1d9e6;
    padding: 4rem 0 2rem 0;
    color: var(--color-text-secondary);
}
.footer-container {
    display: grid;
    grid-template-columns: 2fr repeat(3, 1fr);
    gap: 2rem;
    margin-bottom: 3rem;
}
.footer-title {
    color: var(--color-text-headings);
    margin-bottom: 1rem;
}
.footer-section ul {
    list-style: none;
}
.footer-section ul li {
    margin-bottom: 0.5rem;
}
.footer-section a {
    color: var(--color-text-secondary);
}
.footer-section a:hover {
    color: var(--color-accent-primary-dark);
}
.footer-bottom {
    text-align: center;
    border-top: 1px solid rgba(0, 0, 0, 0.1);
    padding-top: 2rem;
    font-size: 0.9rem;
}


/* =================================================================== */
/*                          SPECIFIC PAGES                             */
/* =================================================================== */
.success-page, .legal-page {
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    text-align: center;
}

.success-page {
    min-height: 100vh;
}

.legal-page {
    padding: calc(var(--header-height) + 4rem) var(--container-padding) 4rem;
}

.legal-page .container {
    text-align: left;
}
.legal-page h1 { text-align: center; margin-bottom: 2rem; }
.legal-page h2 { text-align: left; margin-top: 2rem; }

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

/* Tablet */
@media (max-width: 992px) {
    h1 { font-size: 2.5rem; }
    .hero-title { font-size: 3rem; }
    h2 { font-size: 2rem; }
    
    .curved-grid {
        grid-template-columns: 1fr 1fr;
    }
    .curved-grid .innovation-card:nth-child(3) {
        grid-column: 1 / -1;
        margin: 0 auto;
        max-width: 500px;
    }

    .contact-container {
        grid-template-columns: 1fr;
    }
    .contact-info {
        text-align: center;
    }
    .contact-info .section-title {
        text-align: center;
    }
}

/* Mobile */
@media (max-width: 768px) {
    section {
        padding: 4rem 0;
    }
    .main-nav {
        position: fixed;
        top: 0;
        right: 0;
        width: 100%;
        height: 100vh;
        background-color: var(--color-background);
        transform: translateX(100%);
        transition: transform 0.4s cubic-bezier(0.23, 1, 0.32, 1);
        z-index: 1000;
        display: flex;
        justify-content: center;
        align-items: center;
    }
    .main-nav.active {
        transform: translateX(0);
    }
    .nav-list {
        flex-direction: column;
        align-items: center;
        text-align: center;
        gap: 2rem;
    }
    .nav-link {
        font-size: 1.5rem;
    }
    .burger-menu {
        display: block;
    }
    .header.menu-open .burger-line:nth-child(1) {
        transform: rotate(45deg) translate(7px, 7px);
    }
    .header.menu-open .burger-line:nth-child(2) {
        opacity: 0;
    }
    .header.menu-open .burger-line:nth-child(3) {
        transform: rotate(-45deg) translate(7px, -7px);
    }

    .hero-title { font-size: 2.5rem; }
    .hero-subtitle { font-size: 1.1rem; }

    .curved-grid, .stats-grid, .customer-stories-grid, .webinars-grid, .resource-links {
        grid-template-columns: 1fr;
    }
    .innovation-card:nth-child(n) {
        transform: none; /* Reset curved grid effect */
    }
    
    .footer-container {
        grid-template-columns: 1fr;
        text-align: center;
    }
}