/* ============================================ */
/*                  ROOT                        */
/* ============================================ */

:root {
    /* Tetradic Color Scheme */
    --primary-color: #6a5acd; /* SlateBlue */
    --secondary-color: #20b2aa; /* LightSeaGreen */
    --accent-color-1: #ffd700; /* Gold */
    --accent-color-2: #ff6347; /* Tomato */

    /* Neutral Colors */
    --text-dark: #1a1a1a;
    --text-light: #ffffff;
    --background-light: #f0f2f5;
    --background-dark: #121212;
    --border-light: rgba(255, 255, 255, 0.25);

    /* Typography */
    --font-heading: 'Montserrat', sans-serif;
    --font-body: 'Merriweather', serif;

    /* Spacing & Sizing */
    --spacing-xs: 0.5rem;
    --spacing-sm: 1rem;
    --spacing-md: 1.5rem;
    --spacing-lg: 2rem;
    --spacing-xl: 4rem;
    --header-height: 80px;

    /* Effects */
    --border-radius: 16px;
    --box-shadow: 0 8px 32px 0 rgba(31, 38, 135, 0.15);
    --transition-fast: 0.2s ease-in-out;
    --transition-smooth: 0.4s cubic-bezier(0.25, 0.46, 0.45, 0.94);
}

/* ============================================ */
/*              BASE & RESET STYLES             */
/* ============================================ */

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

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

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

h1, h2, h3, h4, h5, h6 {
    font-family: var(--font-heading);
    font-weight: 800;
    color: #222222;
    margin-bottom: var(--spacing-sm);
    text-align: center;
}

/* Adaptive Typography */
h1 {
    font-size: clamp(2.5rem, 5vw, 4.5rem);
    line-height: 1.1;
}

h2 {
    font-size: clamp(2rem, 4vw, 3rem);
    margin-bottom: var(--spacing-lg);
    text-shadow: 1px 1px 2px rgba(0,0,0,0.1);
}

h3 {
    font-size: clamp(1.25rem, 2.5vw, 1.75rem);
}

p {
    margin-bottom: var(--spacing-md);
    max-width: 75ch;
    margin-left: auto;
    margin-right: auto;
}

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

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

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

section {
    padding: var(--spacing-xl) 0;
}

.container {
    width: 90%;
    max-width: 1200px;
    margin: 0 auto;
}

/* ============================================ */
/*               GLOBAL COMPONENTS              */
/* ============================================ */

/* --- Buttons --- */
.cta-button, .card-button, .submit-button, .read-more-link {
    display: inline-block;
    padding: 12px 28px;
    border: none;
    border-radius: 50px;
    font-family: var(--font-heading);
    font-weight: 700;
    font-size: 1rem;
    text-align: center;
    cursor: pointer;
    transition: all var(--transition-smooth);
    background: linear-gradient(45deg, var(--primary-color), var(--secondary-color));
    color: var(--text-light);
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.2);
    transform: translateY(0);
}

.cta-button:hover, .card-button:hover, .submit-button:hover, .read-more-link:hover {
    transform: translateY(-3px);
    box-shadow: 0 8px 25px rgba(0, 0, 0, 0.3);
}

/* --- Cards (Glassmorphism) --- */
.card {
    background: rgba(255, 255, 255, 0.6);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    border-radius: var(--border-radius);
    border: 1px solid var(--border-light);
    box-shadow: var(--box-shadow);
    padding: var(--spacing-md);
    text-align: center;
    overflow: hidden;
    transition: transform var(--transition-smooth);
    display: flex;
    flex-direction: column;
    align-items: center;
    height: 100%;
}

.card:hover {
    transform: translateY(-10px);
}

.card-image {
    width: 100%;
    height: 200px;
    margin-bottom: var(--spacing-md);
    border-radius: calc(var(--border-radius) - 5px);
    overflow: hidden;
}

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

.card-content {
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    flex-grow: 1;
}

.card-title {
    margin-bottom: var(--spacing-xs);
    color: #222222;
}

.card-text {
    font-size: 0.95rem;
    flex-grow: 1;
}

.card-meta {
    font-size: 0.85rem;
    color: #555;
    margin: var(--spacing-sm) 0;
}

/* ============================================ */
/*                  HEADER                      */
/* ============================================ */

.site-header {
    position: fixed;
    width: 100%;
    top: 0;
    left: 0;
    z-index: 1000;
    padding: var(--spacing-sm) 0;
    transition: background-color var(--transition-smooth), box-shadow var(--transition-smooth);
}

.site-header.scrolled {
    background: rgba(255, 255, 255, 0.3);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    box-shadow: var(--box-shadow);
}

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

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

.main-nav .nav-links a {
    margin: 0 var(--spacing-sm);
    font-family: var(--font-heading);
    font-weight: 700;
    color: var(--text-dark);
    position: relative;
    padding-bottom: 5px;
}

.main-nav .nav-links a::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 100%;
    height: 2px;
    background-color: var(--accent-color-1);
    transform: scaleX(0);
    transform-origin: right;
    transition: transform var(--transition-smooth);
}

.main-nav .nav-links a:hover::after {
    transform: scaleX(1);
    transform-origin: left;
}

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

/* ============================================ */
/*                   HERO                       */
/* ============================================ */

.hero-section {
    min-height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;
    color: var(--text-light);
    position: relative;
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
    background-attachment: fixed;
}

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

.hero-content {
    position: relative;
    z-index: 1;
}

.hero-title, .hero-subtitle {
    color: var(--text-light);
}

.hero-subtitle {
    font-size: clamp(1rem, 2vw, 1.25rem);
    max-width: 60ch;
    margin-bottom: var(--spacing-lg);
}

/* ============================================ */
/*              MISSION & STATS                 */
/* ============================================ */

.mission-section .section-description {
    text-align: center;
    margin-bottom: var(--spacing-xl);
}

.stats-widgets-container {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: var(--spacing-lg);
    text-align: center;
}

.stat-widget {
    padding: var(--spacing-md);
    background: rgba(255, 255, 255, 0.5);
    border-radius: var(--border-radius);
    border: 1px solid var(--border-light);
}

.stat-number {
    display: block;
    font-family: var(--font-heading);
    font-size: clamp(2.5rem, 5vw, 3.5rem);
    font-weight: 800;
    color: var(--primary-color);
}

.stat-label {
    font-size: 1.1rem;
    font-weight: 700;
    color: #444;
}

/* Placeholder for animated icons */
.animated-icon-placeholder {
    width: 60px;
    height: 60px;
    margin: 0 auto var(--spacing-sm);
    background-color: var(--secondary-color);
    border-radius: 50%;
    opacity: 0.3;
}

/* ============================================ */
/*       WEBINARS, PROJECTS, CASE STUDIES       */
/* ============================================ */

.cards-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
    gap: var(--spacing-lg);
}

/* ============================================ */
/*                  CAROUSEL                    */
/* ============================================ */

.content-carousel {
    position: relative;
}

.carousel-track {
    display: flex;
    overflow-x: auto;
    scroll-snap-type: x mandatory;
    -webkit-overflow-scrolling: touch;
    scrollbar-width: none; /* Firefox */
}
.carousel-track::-webkit-scrollbar {
    display: none; /* Safari and Chrome */
}

.carousel-slide {
    flex: 0 0 100%;
    scroll-snap-align: center;
    margin-right: var(--spacing-lg);
}

.carousel-controls {
    display: none; /* JS will handle this */
}

@media (min-width: 768px) {
    .carousel-slide {
        flex: 0 0 48%;
    }
}

@media (min-width: 1024px) {
    .carousel-slide {
        flex: 0 0 32%;
    }
}

/* ============================================ */
/*                  CLIENTELE                   */
/* ============================================ */

.clientele-section {
    background-color: #fff;
}

.logos-container {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    align-items: center;
    gap: var(--spacing-xl);
}

.logos-container img {
    height: 40px;
    width: auto;
    filter: grayscale(100%);
    opacity: 0.7;
    transition: all var(--transition-smooth);
}

.logos-container img:hover {
    filter: grayscale(0%);
    opacity: 1;
    transform: scale(1.1);
}

/* ============================================ */
/*             EXTERNAL RESOURCES               */
/* ============================================ */

.resource-list {
    list-style: none;
    text-align: center;
    max-width: 600px;
    margin: 0 auto;
}

.resource-list li {
    margin-bottom: var(--spacing-sm);
}

.resource-list a {
    font-family: var(--font-heading);
    font-size: 1.2rem;
    font-weight: 700;
    padding: var(--spacing-xs);
    position: relative;
    color: var(--text-dark);
}

.resource-list a::after {
    content: '';
    position: absolute;
    bottom: -5px;
    left: 50%;
    transform: translateX(-50%);
    width: 0;
    height: 3px;
    background: var(--accent-color-1);
    transition: width var(--transition-smooth);
}

.resource-list a:hover::after {
    width: 100%;
}

/* ============================================ */
/*                CONTACT FORM                  */
/* ============================================ */

.contact-section {
    background-color: #fff;
}

.contact-wrapper {
    display: grid;
    grid-template-columns: 1fr;
    gap: var(--spacing-xl);
}

@media (min-width: 992px) {
    .contact-wrapper {
        grid-template-columns: 1fr 1.5fr;
    }
}

.contact-info ul {
    list-style: none;
    margin-top: var(--spacing-md);
}

.contact-info li {
    margin-bottom: var(--spacing-sm);
}

.contact-form .form-group {
    margin-bottom: var(--spacing-md);
}

.contact-form label {
    display: block;
    margin-bottom: var(--spacing-xs);
    font-family: var(--font-heading);
    font-weight: 700;
}

.contact-form input,
.contact-form textarea {
    width: 100%;
    padding: 14px;
    border: 1px solid #ddd;
    border-radius: 10px;
    background: rgba(240, 242, 245, 0.8);
    font-family: var(--font-body);
    font-size: 1rem;
    transition: all var(--transition-fast);
}

.contact-form input:focus,
.contact-form textarea:focus {
    outline: none;
    border-color: var(--primary-color);
    box-shadow: 0 0 0 3px rgba(106, 90, 205, 0.2);
}

/* ============================================ */
/*                   FOOTER                     */
/* ============================================ */

.site-footer {
    background-color: var(--text-dark);
    color: #ccc;
    padding: var(--spacing-xl) 0 0;
}

.footer-container {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
    gap: var(--spacing-lg);
    padding-bottom: var(--spacing-xl);
}

.footer-section h4 {
    color: var(--text-light);
    font-size: 1.2rem;
    margin-bottom: var(--spacing-md);
    text-align: left;
}

.footer-section p {
    text-align: left;
    margin: 0;
}

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

.footer-section ul li {
    margin-bottom: var(--spacing-xs);
}

.footer-section a {
    color: #ccc;
    transition: color var(--transition-fast);
}

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

.footer-bottom {
    text-align: center;
    padding: var(--spacing-md) 0;
    border-top: 1px solid #444;
}

/* ============================================ */
/*           SPECIFIC PAGE STYLES             */
/* ============================================ */

/* Success page */
.success-page {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    min-height: 100vh;
    text-align: center;
    padding: var(--spacing-lg);
}

.success-page h1 {
    color: var(--secondary-color);
}

/* Privacy & Terms pages */
.legal-page-content {
    padding-top: calc(var(--header-height) + var(--spacing-xl));
}

.legal-page-content h1, .legal-page-content h2 {
    text-align: left;
}
.legal-page-content p, .legal-page-content ul {
    text-align: left;
    margin-left: 0;
}

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

@media (max-width: 768px) {
    .site-header {
        padding: var(--spacing-sm) 0;
    }

    .main-nav .nav-links {
        display: flex;
        flex-direction: column;
        align-items: center;
        justify-content: center;
        position: fixed;
        top: 0;
        right: -100%;
        width: 100%;
        height: 100vh;
        background: rgba(255, 255, 255, 0.9);
        backdrop-filter: blur(15px);
        -webkit-backdrop-filter: blur(15px);
        transition: right 0.5s ease-in-out;
    }

    .main-nav .nav-links.active {
        right: 0;
    }

    .main-nav .nav-links a {
        font-size: 1.5rem;
        margin: var(--spacing-md) 0;
    }

    .burger-menu {
        display: block;
        position: relative;
        width: 30px;
        height: 22px;
    }

    .burger-line {
        position: absolute;
        left: 0;
        width: 100%;
        height: 3px;
        background-color: var(--text-dark);
        border-radius: 3px;
        transition: all 0.3s ease;
    }
    
    .burger-line:nth-child(1) { top: 0; }
    .burger-line:nth-child(2) { top: 50%; transform: translateY(-50%); }
    .burger-line:nth-child(3) { bottom: 0; }

    .burger-menu.active .burger-line:nth-child(1) {
        top: 50%;
        transform: translateY(-50%) rotate(45deg);
    }
    .burger-menu.active .burger-line:nth-child(2) {
        opacity: 0;
    }
    .burger-menu.active .burger-line:nth-child(3) {
        bottom: 50%;
        transform: translateY(50%) rotate(-45deg);
    }
}