/* style.css */

/* -------------------------------------------------------------------------- */
/*                                 VARIABLES                                  */
/* -------------------------------------------------------------------------- */
:root {
    /* Color Palette (Tetradic - adjusted for futuristic and professional feel) */
    --primary-color: #3D5AFE;       /* Vibrant Blue - Main Interactive */
    --secondary-color: #FFC107;     /* Amber/Yellow - Strong Accent, CTAs */
    --accent-color-1: #00ACC1;      /* Cyan - Supporting Accent, Info */
    --accent-color-2: #E91E63;      /* Pink - Highlight Accent */

    /* Backgrounds */
    --bg-dark-primary: #0a0f1f;  /* Very Dark Blue - Main Dark Background */
    --bg-dark-secondary: #1c2333; /* Dark Slate Blue - Secondary Dark Background */
    --bg-light: #FFFFFF;
    --bg-alt: #F4F6F8;           /* Light Gray - Alternating Sections */
    --bg-hero-overlay: rgba(10, 15, 31, 0.6); /* Dark overlay for hero */
    --bg-contact-overlay: rgba(10, 15, 31, 0.75); /* Dark overlay for contact */

    /* Text Colors */
    --text-light: #F8F9FA;
    --text-dark: #121212;
    --text-dark-secondary: #333333;
    --text-muted: #6C757D;      /* Lighter text for less emphasis */
    --text-hero: #FFFFFF;

    /* Borders */
    --border-light: #DEE2E6;
    --border-dark: #3B3F4F;

    /* Shadows & Effects */
    --shadow-sm: 0 2px 4px rgba(0, 0, 0, 0.07);
    --shadow-md: 0 4px 10px rgba(0, 0, 0, 0.1);
    --shadow-lg: 0 10px 25px rgba(0, 0, 0, 0.15);
    --text-shadow-dark-bg: 1px 1px 3px rgba(0, 0, 0, 0.5);
    --text-shadow-light-bg: 1px 1px 2px rgba(0,0,0,0.2);

    /* Glassmorphism */
    --glass-bg: rgba(255, 255, 255, 0.05);
    --glass-bg-light: rgba(255, 255, 255, 0.6);
    --glass-border: rgba(255, 255, 255, 0.2);
    --backdrop-blur: blur(10px);

    /* Typography */
    --font-primary: 'Poppins', sans-serif;
    --font-secondary: 'Work Sans', sans-serif;
    --header-line-height: 1.3;
    --body-line-height: 1.7;

    /* Spacing */
    --spacing-xs: 0.5rem;  /* 8px */
    --spacing-sm: 1rem;    /* 16px */
    --spacing-md: 1.5rem;  /* 24px */
    --spacing-lg: 2.5rem;  /* 40px */
    --spacing-xl: 4rem;    /* 64px */

    /* Transitions */
    --transition-fast: 0.2s ease-in-out;
    --transition-smooth: 0.4s cubic-bezier(0.25, 0.8, 0.25, 1); /* Non-linear */

    /* Border Radius */
    --border-radius-sm: 4px;
    --border-radius-md: 8px;
    --border-radius-lg: 16px;
}

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

html {
    scroll-behavior: smooth;
    font-size: 16px; /* Base font size for rem units */
}

body {
    font-family: var(--font-secondary);
    background-color: var(--bg-light);
    color: var(--text-dark-secondary);
    line-height: var(--body-line-height);
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
    overflow-x: hidden;
}

/* Adaptive Typography Base */
h1, h2, h3, h4, h5, h6 {
    font-family: var(--font-primary);
    font-weight: 600;
    line-height: var(--header-line-height);
    color: var(--text-dark);
    margin-bottom: var(--spacing-md);
}

h1 { font-size: clamp(2.5rem, 5vw, 3.75rem); } /* 40px to 60px */
h2 { font-size: clamp(2rem, 4vw, 3rem); }     /* 32px to 48px */
h3 { font-size: clamp(1.5rem, 3vw, 2rem); }   /* 24px to 32px */
h4 { font-size: clamp(1.2rem, 2.5vw, 1.5rem); } /* 19px to 24px */

p {
    margin-bottom: var(--spacing-sm);
    font-size: clamp(1rem, 1.5vw, 1.125rem); /* 16px to 18px */
    color: var(--text-dark-secondary);
}

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

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

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

ul, ol {
    list-style: none;
    padding-left: 0;
}

/* -------------------------------------------------------------------------- */
/*                               UTILITY CLASSES                              */
/* -------------------------------------------------------------------------- */
.container {
    width: 90%;
    max-width: 1200px;
    margin-left: auto;
    margin-right: auto;
    padding-left: var(--spacing-sm);
    padding-right: var(--spacing-sm);
}

.section-padding {
    padding-top: var(--spacing-xl);
    padding-bottom: var(--spacing-xl);
}

.alt-bg {
    background-color: var(--bg-alt);
}

.text-center {
    text-align: center;
}

.text-light {
    color: var(--text-light) !important;
}

.text-primary {
    color: var(--primary-color) !important;
}

.section-title {
    text-align: center;
    margin-bottom: var(--spacing-lg);
    font-weight: 700;
    position: relative;
    padding-bottom: var(--spacing-sm);
}

.section-title::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 50%;
    transform: translateX(-50%);
    width: 80px;
    height: 4px;
    background-color: var(--primary-color);
    border-radius: var(--border-radius-sm);
}

.section-intro {
    text-align: center;
    max-width: 700px;
    margin-left: auto;
    margin-right: auto;
    margin-bottom: var(--spacing-lg);
    color: var(--text-muted);
    font-size: clamp(1rem, 2vw, 1.125rem);
}

.image-container {
    overflow: hidden; /* Ensures images don't break card layout */
    display: flex;
    justify-content: center;
    align-items: center;
}
.image-container img {
    width: 100%;
    height: 100%;
    object-fit: cover; /* Ensures image covers container without distortion */
}

/* -------------------------------------------------------------------------- */
/*                                  BUTTONS (GLOBAL)                          */
/* -------------------------------------------------------------------------- */
.btn, button, input[type="submit"], input[type="button"] {
    display: inline-block;
    font-family: var(--font-primary);
    font-weight: 600;
    font-size: clamp(0.9rem, 1.2vw, 1rem);
    text-align: center;
    text-decoration: none;
    padding: var(--spacing-sm) var(--spacing-md);
    border-radius: var(--border-radius-md);
    border: 2px solid transparent;
    cursor: pointer;
    transition: all var(--transition-smooth);
    position: relative;
    overflow: hidden;
    z-index: 1;
}

.btn::before { /* For cool hover effects */
    content: "";
    position: absolute;
    top: 0;
    left: 0;
    width: 0;
    height: 100%;
    background-color: rgba(255,255,255,0.2);
    transition: width var(--transition-smooth);
    z-index: -1;
}

.btn:hover::before {
    width: 100%;
}

.btn-primary {
    background-color: var(--primary-color);
    color: var(--text-light);
    box-shadow: var(--shadow-md);
}
.btn-primary:hover {
    background-color: color-mix(in srgb, var(--primary-color) 85%, black);
    transform: translateY(-3px) scale(1.03);
    box-shadow: var(--shadow-lg);
    color: var(--text-light);
    text-decoration: none;
}

.btn-secondary {
    background-color: var(--secondary-color);
    color: var(--text-dark);
    box-shadow: var(--shadow-md);
}
.btn-secondary:hover {
    background-color: color-mix(in srgb, var(--secondary-color) 85%, black);
    transform: translateY(-3px) scale(1.03);
    box-shadow: var(--shadow-lg);
    color: var(--text-dark);
    text-decoration: none;
}

.btn-outline {
    background-color: transparent;
    color: var(--primary-color);
    border-color: var(--primary-color);
}
.btn-outline:hover {
    background-color: var(--primary-color);
    color: var(--text-light);
    text-decoration: none;
}
.btn-outline::before {
    background-color: var(--primary-color);
    opacity: 0.2;
}

.btn-link {
    background-color: transparent;
    color: var(--primary-color);
    padding: var(--spacing-xs) 0;
    border: none;
    text-decoration: underline;
    font-weight: 500;
}
.btn-link:hover {
    color: var(--accent-color-2);
    text-decoration: underline;
}
.btn-link::before { display: none; }

/* -------------------------------------------------------------------------- */
/*                                  FORMS (GLOBAL)                            */
/* -------------------------------------------------------------------------- */
.form-group {
    margin-bottom: var(--spacing-md);
}

.form-group label {
    display: block;
    margin-bottom: var(--spacing-xs);
    font-weight: 500;
    color: var(--text-dark-secondary); /* Default for light backgrounds */
}

.contact-section .form-group label { /* Specific for dark bg contact form */
    color: var(--text-light);
}

input[type="text"],
input[type="email"],
input[type="tel"],
input[type="password"],
textarea {
    width: 100%;
    padding: var(--spacing-sm);
    border: 1px solid var(--border-light);
    border-radius: var(--border-radius-md);
    background-color: var(--bg-light);
    color: var(--text-dark);
    font-family: var(--font-secondary);
    font-size: 1rem;
    transition: border-color var(--transition-fast), box-shadow var(--transition-fast);
}

.contact-section input[type="text"], /* Specific for dark bg contact form */
.contact-section input[type="email"],
.contact-section input[type="tel"],
.contact-section textarea {
    background-color: rgba(255,255,255,0.1);
    border-color: rgba(255,255,255,0.3);
    color: var(--text-light);
}
.contact-section input::placeholder,
.contact-section textarea::placeholder {
    color: rgba(255,255,255,0.6);
}


input[type="text"]:focus,
input[type="email"]:focus,
input[type="tel"]:focus,
input[type="password"]:focus,
textarea:focus {
    outline: none;
    border-color: var(--primary-color);
    box-shadow: 0 0 0 3px color-mix(in srgb, var(--primary-color) 30%, transparent);
}

textarea {
    resize: vertical;
    min-height: 120px;
}

/* -------------------------------------------------------------------------- */
/*                                    CARDS (GLOBAL)                          */
/* -------------------------------------------------------------------------- */
.card {
    background-color: var(--bg-light);
    border-radius: var(--border-radius-lg);
    box-shadow: var(--shadow-md);
    transition: transform var(--transition-smooth), box-shadow var(--transition-smooth);
    overflow: hidden;
    display: flex;
    flex-direction: column;
    /* text-align: center; */ /* Removed for more flexible content alignment */
}

.card:hover {
    transform: translateY(-5px) scale(1.02);
    box-shadow: var(--shadow-lg);
}

.card-image { /* This is the image container */
    width: 100%;
    aspect-ratio: 16 / 10; /* Maintain aspect ratio, adjust as needed */
    /* Fixed height for uniform cards, content may dictate otherwise */
    /* height: 200px; */ 
    overflow: hidden;
    display: flex; /* For centering image if it's smaller */
    justify-content: center;
    align-items: center;
}

.card-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform var(--transition-smooth);
}

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

.card-content {
    padding: var(--spacing-md);
    flex-grow: 1; /* Allows content to fill space, helps align buttons at bottom */
    display: flex;
    flex-direction: column;
}

.card-content h3 {
    margin-top: 0;
    color: var(--text-dark);
}

.card-content p {
    color: var(--text-muted);
    font-size: 0.95rem;
    flex-grow: 1; /* Pushes button to bottom if card has varying text length */
}
.card-content .btn {
    margin-top: auto; /* Pushes button to the bottom */
    align-self: flex-start; /* Aligns button to left by default, can be centered with .text-center on card-content */
}


/* -------------------------------------------------------------------------- */
/*                               HEADER & NAVIGATION                          */
/* -------------------------------------------------------------------------- */
.site-header {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    z-index: 1000;
    background-color: var(--glass-bg-darker);
    backdrop-filter: var(--backdrop-blur);
    -webkit-backdrop-filter: var(--backdrop-blur);
    box-shadow: var(--shadow-sm);
    padding: var(--spacing-sm) 0;
    transition: background-color var(--transition-fast), padding var(--transition-fast);
}

.site-header.scrolled { /* Add via JS on scroll */
    background-color: rgba(10, 15, 31, 0.85); /* Darker on scroll */
    padding: calc(var(--spacing-sm) / 1.5) 0;
}

.main-nav {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.logo {
    font-family: var(--font-primary);
    font-size: clamp(1.5rem, 3vw, 2rem);
    font-weight: 700;
    color: var(--text-light);
    text-decoration: none;
}
.logo:hover {
    color: var(--secondary-color);
    text-decoration: none;
}

.nav-menu {
    display: flex;
    align-items: center;
}

.nav-menu li {
    margin-left: var(--spacing-md);
}

.nav-menu a {
    color: var(--text-light);
    font-weight: 500;
    padding: var(--spacing-xs) var(--spacing-sm);
    border-radius: var(--border-radius-sm);
    transition: background-color var(--transition-fast), color var(--transition-fast);
    position: relative;
    text-decoration: none;
}

.nav-menu a::after {
    content: '';
    position: absolute;
    width: 0;
    height: 2px;
    bottom: -2px;
    left: 50%;
    transform: translateX(-50%);
    background-color: var(--secondary-color);
    transition: width var(--transition-smooth);
}

.nav-menu a:hover,
.nav-menu a.active /* Add .active via JS */ {
    color: var(--secondary-color);
    /* background-color: rgba(255,255,255,0.1); */
}
.nav-menu a:hover::after,
.nav-menu a.active::after {
    width: 70%;
}

.nav-toggle {
    display: none; /* Hidden on desktop */
    background: none;
    border: none;
    cursor: pointer;
    padding: 0;
    z-index: 1001;
}

.hamburger {
    display: block;
    width: 28px;
    height: 3px;
    background-color: var(--text-light);
    border-radius: 3px;
    position: relative;
    transition: transform 0.3s ease, background-color 0.3s ease;
}

.hamburger::before,
.hamburger::after {
    content: '';
    position: absolute;
    left: 0;
    width: 100%;
    height: 3px;
    background-color: var(--text-light);
    border-radius: 3px;
    transition: transform 0.3s ease, top 0.3s ease, bottom 0.3s ease;
}

.hamburger::before { top: -8px; }
.hamburger::after { bottom: -8px; }

/* Nav Toggle Active State (for burger menu) */
.nav-toggle.active .hamburger {
    background-color: transparent; /* Middle line disappears */
}
.nav-toggle.active .hamburger::before {
    top: 0;
    transform: rotate(45deg);
}
.nav-toggle.active .hamburger::after {
    bottom: 0;
    transform: rotate(-45deg);
}

/* -------------------------------------------------------------------------- */
/*                                 HERO SECTION                               */
/* -------------------------------------------------------------------------- */
.hero-section {
    position: relative;
    color: var(--text-hero);
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;
    min-height: 90vh; /* Use min-height for hero to ensure it's substantial */
    background-size: cover;
    background-position: center center;
    background-repeat: no-repeat;
}

.hero-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: var(--bg-hero-overlay); /* Darker overlay for text contrast */
    z-index: 1;
}

.hero-content {
    position: relative;
    z-index: 2;
    padding: var(--spacing-xl) 0;
}

.hero-title {
    font-size: clamp(2.8rem, 6vw, 4.5rem); /* Larger for hero */
    font-weight: 700;
    color: var(--text-hero);
    margin-bottom: var(--spacing-md);
    text-shadow: var(--text-shadow-dark-bg);
}

.hero-subtitle {
    font-size: clamp(1.1rem, 2.5vw, 1.5rem);
    color: var(--text-hero);
    margin-bottom: var(--spacing-lg);
    max-width: 800px;
    margin-left: auto;
    margin-right: auto;
    opacity: 0.9;
    text-shadow: var(--text-shadow-dark-bg);
}
.hero-section .btn-primary {
    padding: var(--spacing-md) var(--spacing-lg);
    font-size: clamp(1rem, 1.5vw, 1.2rem);
}

/* -------------------------------------------------------------------------- */
/*                               MISSION SECTION                              */
/* -------------------------------------------------------------------------- */
.mission-content {
    display: grid;
    grid-template-columns: 1fr;
    gap: var(--spacing-lg);
    align-items: center;
}

.mission-text p {
    margin-bottom: var(--spacing-md);
}
.mission-image img {
    border-radius: var(--border-radius-lg);
    box-shadow: var(--shadow-lg);
}

@media (min-width: 768px) {
    .mission-content {
        grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
        /* grid-template-columns: 1.2fr 1fr; */ /* Text slightly wider */
        text-align: left;
    }
     .mission-text {
        padding-right: var(--spacing-md);
    }
}

/* -------------------------------------------------------------------------- */
/*                              FEATURES SECTION                              */
/* -------------------------------------------------------------------------- */
.features-grid {
    display: grid;
    grid-template-columns: 1fr;
    gap: var(--spacing-lg);
}
.feature-card {
    text-align: center; /* Center content within the card */
}
.feature-card .card-image {
    height: 200px; /* Fixed height for feature card images */
}
.feature-card .card-image img {
    border-top-left-radius: var(--border-radius-lg);
    border-top-right-radius: var(--border-radius-lg);
}
.feature-title {
    color: var(--primary-color);
    margin-bottom: var(--spacing-sm);
}
.feature-card .card-content {
    text-align: left; /* Align text left but card itself is centered in grid */
}

@media (min-width: 768px) {
    .features-grid {
        grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    }
}
@media (min-width: 992px) {
    /* For 4 columns on larger screens if desired, else keep 3 */
    /* .features-grid {
        grid-template-columns: repeat(4, 1fr);
    } */
}


/* -------------------------------------------------------------------------- */
/*                            METHODOLOGY (ROADMAP)                           */
/* -------------------------------------------------------------------------- */
.roadmap-container {
    position: relative;
    max-width: 900px;
    margin: 0 auto;
}

.roadmap-container::after { /* Timeline */
    content: '';
    position: absolute;
    width: 4px;
    background-color: var(--primary-color);
    opacity: 0.3;
    top: 0;
    bottom: 0;
    left: 50%;
    margin-left: -2px;
    z-index: -1; /* Behind steps */
}

.roadmap-step {
    padding: var(--spacing-sm) var(--spacing-lg);
    position: relative;
    background-color: transparent; /* Steps don't need own bg if page has one */
    width: 50%;
    margin-bottom: var(--spacing-lg);
}

.roadmap-step:nth-child(odd) {
    left: 0;
    padding-right: calc(var(--spacing-lg) + 30px); /* Space for icon */
    text-align: right;
}

.roadmap-step:nth-child(even) {
    left: 50%;
    padding-left: calc(var(--spacing-lg) + 30px); /* Space for icon */
    text-align: left;
}

.roadmap-icon {
    position: absolute;
    width: 50px;
    height: 50px;
    line-height: 50px;
    font-size: 1.5rem;
    font-weight: bold;
    text-align: center;
    color: var(--text-light);
    background-color: var(--primary-color);
    border-radius: 50%;
    top: 50%;
    transform: translateY(-50%);
    z-index: 1;
    box-shadow: 0 0 0 5px var(--bg-light), var(--shadow-md); /* Ring effect */
}

.roadmap-step:nth-child(odd) .roadmap-icon {
    right: -25px; /* Half of icon width */
}

.roadmap-step:nth-child(even) .roadmap-icon {
    left: -25px; /* Half of icon width */
}

.roadmap-content {
    padding: var(--spacing-md);
    background-color: var(--bg-light);
    border-radius: var(--border-radius-md);
    box-shadow: var(--shadow-md);
    position: relative;
}

.roadmap-title {
    margin-top: 0;
    color: var(--primary-color);
}

/* Accordion Styles */
.accordion-section {
    margin-top: var(--spacing-xl);
}
.section-subtitle {
    text-align: center;
    margin-bottom: var(--spacing-md);
    font-weight: 600;
}
.accordion {
    max-width: 800px;
    margin: 0 auto;
}
.accordion-item {
    background-color: var(--bg-light);
    margin-bottom: var(--spacing-sm);
    border-radius: var(--border-radius-md);
    box-shadow: var(--shadow-sm);
    overflow: hidden;
}
.accordion-header {
    background-color: var(--bg-alt);
    color: var(--text-dark);
    cursor: pointer;
    padding: var(--spacing-md);
    width: 100%;
    text-align: left;
    border: none;
    outline: none;
    font-size: 1.1rem;
    font-weight: 600;
    transition: background-color var(--transition-fast);
    position: relative;
}
.accordion-header::after { /* Arrow icon */
    content: '+';
    font-size: 1.5rem;
    color: var(--primary-color);
    position: absolute;
    right: var(--spacing-md);
    top: 50%;
    transform: translateY(-50%);
    transition: transform var(--transition-smooth);
}
.accordion-item.active .accordion-header::after {
    content: '\2013'; /* Minus sign */
    transform: translateY(-50%) rotate(180deg);
}
.accordion-item.active .accordion-header {
    background-color: color-mix(in srgb, var(--primary-color) 10%, var(--bg-alt));
}
.accordion-content {
    padding: 0 var(--spacing-md);
    max-height: 0;
    overflow: hidden;
    transition: max-height var(--transition-smooth), padding var(--transition-smooth);
}
.accordion-content p {
    padding: var(--spacing-md) 0;
    margin-bottom: 0;
}

@media (max-width: 767px) { /* Responsive Roadmap */
    .roadmap-container::after {
        left: 25px; /* Move line to left for single column */
        margin-left: 0;
    }
    .roadmap-step {
        width: 100%;
        padding-left: calc(var(--spacing-lg) + 30px); /* Icon on left */
        padding-right: var(--spacing-sm);
        left: 0 !important; /* Override inline style from JS or :nth-child */
        text-align: left;
    }
    .roadmap-step:nth-child(odd),
    .roadmap-step:nth-child(even) {
        left: 0;
        padding-left: 70px; /* Space for icon and line */
        text-align: left;
    }
    .roadmap-icon {
        left: 0 !important; /* Override */
        transform: translateY(-50%);
    }
    .roadmap-step:nth-child(odd) .roadmap-icon,
    .roadmap-step:nth-child(even) .roadmap-icon {
        left: 0;
    }
}

/* -------------------------------------------------------------------------- */
/*                               INSIGHTS SECTION (SLIDER)                    */
/* -------------------------------------------------------------------------- */
.custom-slider-container {
    position: relative;
    overflow: hidden; /* Important for slides */
    border-radius: var(--border-radius-lg);
    box-shadow: var(--shadow-lg);
    background-color: var(--bg-light);
}

.insight-slide {
    display: none; /* Hidden by default, JS will manage visibility */
    /* grid-template-columns: 1fr; */ /* For mobile */
    gap: 0; /* No gap, image and text are part of the slide */
    align-items: center;
    animation: fadeIn 0.8s var(--transition-smooth); /* Animate.css class can be used too */
}
.insight-slide.active {
    display: grid; /* Changed to grid for better layout control */
    grid-template-columns: 1fr; /* Mobile first */
}

.insight-image-container {
    width: 100%;
    height: 250px; /* Fixed height for consistency */
}
.insight-image-container img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}
.insight-content {
    padding: var(--spacing-lg);
    text-align: left;
}
.insight-title {
    color: var(--primary-color);
    margin-bottom: var(--spacing-sm);
}

.slider-nav {
    position: absolute;
    bottom: var(--spacing-md);
    right: var(--spacing-md);
    display: flex;
    gap: var(--spacing-sm);
    z-index: 10;
}
.slider-nav button {
    background-color: var(--primary-color);
    color: var(--text-light);
    border: none;
    border-radius: 50%;
    width: 40px;
    height: 40px;
    font-size: 1.2rem;
    line-height: 40px;
    text-align: center;
    cursor: pointer;
    transition: background-color var(--transition-fast);
    box-shadow: var(--shadow-sm);
}
.slider-nav button:hover {
    background-color: var(--accent-color-2);
}

@media (min-width: 768px) {
    .insight-slide.active {
        grid-template-columns: 1fr 1.2fr; /* Image | Text */
    }
    .insight-image-container {
        height: auto; /* Let grid manage height */
        max-height: 350px;
        border-top-left-radius: var(--border-radius-lg);
        border-bottom-left-radius: var(--border-radius-lg);
    }
    .insight-content {
        text-align: left;
    }
}

/* -------------------------------------------------------------------------- */
/*                               PRICING SECTION                              */
/* -------------------------------------------------------------------------- */
.pricing-grid {
    display: grid;
    grid-template-columns: 1fr;
    gap: var(--spacing-lg);
    align-items: stretch; /* Makes cards same height if content differs */
}
.pricing-card {
    text-align: center;
    padding: var(--spacing-lg) var(--spacing-md);
    border: 2px solid var(--border-light);
    position: relative; /* For badge */
}
.pricing-card.popular {
    border-color: var(--primary-color);
    transform: scale(1.05); /* Make popular stand out */
    box-shadow: var(--shadow-lg);
    z-index: 5; /* Above other cards if they overlap slightly on hover */
}
.pricing-card.popular .btn {
    background-color: var(--secondary-color); /* Different button for popular */
    color: var(--text-dark);
}
.pricing-card.popular .btn:hover {
    background-color: color-mix(in srgb, var(--secondary-color) 85%, black);
}

.badge {
    position: absolute;
    top: -1px; /* Adjust to sit nicely on the border */
    left: 50%;
    transform: translateX(-50%) translateY(-50%);
    background-color: var(--primary-color);
    color: var(--text-light);
    padding: var(--spacing-xs) var(--spacing-md);
    border-radius: var(--border-radius-sm);
    font-size: 0.9rem;
    font-weight: bold;
}

.pricing-title {
    font-size: 1.8rem;
    margin-bottom: var(--spacing-sm);
}
.pricing-price {
    font-size: 2.5rem;
    font-weight: 700;
    color: var(--primary-color);
    margin-bottom: var(--spacing-md);
}
.pricing-features {
    margin-bottom: var(--spacing-lg);
    text-align: left;
    padding-left: var(--spacing-sm);
}
.pricing-features li {
    margin-bottom: var(--spacing-xs);
    position: relative;
    padding-left: var(--spacing-md);
    color: var(--text-muted);
}
.pricing-features li::before {
    content: '✓'; /* Checkmark */
    color: var(--accent-color-1);
    position: absolute;
    left: 0;
    font-weight: bold;
}
.pricing-card .btn {
    width: 100%;
    margin-top: auto; /* Ensure buttons align at bottom of cards */
}
.pricing-note {
    font-size: 0.9rem;
    color: var(--text-muted);
}

@media (min-width: 768px) {
    .pricing-grid {
        grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    }
}
@media (min-width: 992px) {
    .pricing-grid {
        grid-template-columns: repeat(3, 1fr); /* Force 3 columns */
    }
}


/* -------------------------------------------------------------------------- */
/*                            PORTFOLIO / PROJECTS SECTION                    */
/* -------------------------------------------------------------------------- */
.portfolio-grid { /* Same as features-grid for consistency */
    display: grid;
    grid-template-columns: 1fr;
    gap: var(--spacing-lg);
}
.portfolio-card {
    /* text-align: center; Ensure content inside is centered if needed */
}
.portfolio-card .card-image {
    height: 200px; /* Example fixed height */
    background-color: var(--bg-dark-secondary); /* Placeholder bg for images */
}
.portfolio-item-title {
    color: var(--primary-color);
}
.portfolio-card .card-content {
    text-align: left;
}

@media (min-width: 768px) {
    .portfolio-grid {
        grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    }
}


/* -------------------------------------------------------------------------- */
/*                               EVENTS CALENDAR SECTION                      */
/* -------------------------------------------------------------------------- */
.events-list {
    max-width: 800px;
    margin: 0 auto;
}
.event-item {
    display: flex;
    gap: var(--spacing-md);
    margin-bottom: var(--spacing-lg);
    padding: var(--spacing-md);
    background-color: var(--bg-light);
    border-radius: var(--border-radius-md);
    box-shadow: var(--shadow-sm);
    transition: box-shadow var(--transition-fast), transform var(--transition-fast);
}
.event-item:hover {
    box-shadow: var(--shadow-md);
    transform: translateY(-3px);
}
.event-date {
    flex-shrink: 0;
    background-color: var(--primary-color);
    color: var(--text-light);
    padding: var(--spacing-sm);
    border-radius: var(--border-radius-md);
    text-align: center;
    width: 80px; /* Fixed width */
    height: 80px; /* Fixed height */
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
}
.event-date span {
    display: block;
    font-size: 1.8rem;
    font-weight: bold;
    line-height: 1;
}
.event-details {
    flex-grow: 1;
}
.event-title {
    margin-top: 0;
    margin-bottom: var(--spacing-xs);
    font-size: 1.3rem;
}
.event-description {
    font-size: 0.95rem;
    color: var(--text-muted);
    margin-bottom: var(--spacing-sm);
}
.event-item .btn-link {
    font-weight: bold;
}

/* -------------------------------------------------------------------------- */
/*                         EXTERNAL RESOURCES SECTION                         */
/* -------------------------------------------------------------------------- */
.resources-grid {
    display: grid;
    grid-template-columns: 1fr;
    gap: var(--spacing-lg);
}
.resource-card .card-content {
    display: flex;
    flex-direction: column;
    height: 100%; /* Make cards in a row same height */
}
.resource-title {
    color: var(--primary-color);
    font-size: 1.2rem;
}
.resource-description {
    font-size: 0.9rem;
    flex-grow: 1; /* Push button to bottom */
    margin-bottom: var(--spacing-md);
}
.resource-card .btn-outline {
    margin-top: auto; /* Align button to bottom */
    align-self: flex-start;
}

@media (min-width: 768px) {
    .resources-grid {
        grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
    }
}


/* -------------------------------------------------------------------------- */
/*                                CONTACT SECTION                             */
/* -------------------------------------------------------------------------- */
.contact-section {
    position: relative;
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
    color: var(--text-light);
}
.contact-section .section-title, 
.contact-section .section-intro {
    color: var(--text-light); /* Override default dark title color */
}
.contact-section .section-title::after {
    background-color: var(--secondary-color); /* Brighter accent for dark bg */
}

.contact-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: var(--bg-contact-overlay);
    z-index: 1;
}

.contact-container {
    position: relative;
    z-index: 2;
}

.contact-content-wrapper {
    display: grid;
    grid-template-columns: 1fr;
    gap: var(--spacing-xl);
    background-color: var(--glass-bg);
    backdrop-filter: var(--backdrop-blur);
    -webkit-backdrop-filter: var(--backdrop-blur);
    padding: var(--spacing-lg);
    border-radius: var(--border-radius-lg);
    border: 1px solid var(--glass-border);
}

.contact-form-container h3, .contact-info-container h3 {
    color: var(--text-light);
    margin-bottom: var(--spacing-md);
}
.contact-info-container p {
    color: var(--text-light);
    opacity: 0.9;
    margin-bottom: var(--spacing-sm);
}
.contact-info-container a {
    color: var(--secondary-color);
    font-weight: 500;
}
.contact-info-container a:hover {
    color: color-mix(in srgb, var(--secondary-color) 80%, white);
}

.map-placeholder {
    height: 200px;
    background-color: rgba(255,255,255,0.1);
    border-radius: var(--border-radius-md);
    display: flex;
    align-items: center;
    justify-content: center;
    color: rgba(255,255,255,0.7);
    margin-top: var(--spacing-md);
}
.map-placeholder img {
    border-radius: var(--border-radius-md);
}

@media (min-width: 992px) {
    .contact-content-wrapper {
        grid-template-columns: 1.5fr 1fr; /* Form takes more space */
    }
}

/* -------------------------------------------------------------------------- */
/*                                   FOOTER                                   */
/* -------------------------------------------------------------------------- */
.site-footer {
    background-color: var(--bg-dark-primary);
    color: var(--text-light);
    padding-top: var(--spacing-xl);
    padding-bottom: var(--spacing-md);
}

.footer-content {
    display: grid;
    grid-template-columns: 1fr;
    gap: var(--spacing-lg);
    margin-bottom: var(--spacing-lg);
}

.footer-col h4 {
    color: var(--secondary-color);
    margin-bottom: var(--spacing-md);
    font-size: 1.3rem;
}

.footer-col p {
    color: var(--text-muted);
    font-size: 0.95rem;
    margin-bottom: var(--spacing-sm);
}

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

.footer-links a {
    color: var(--text-muted);
    transition: color var(--transition-fast), padding-left var(--transition-fast);
    font-size: 0.95rem;
}

.footer-links a:hover {
    color: var(--secondary-color);
    padding-left: var(--spacing-xs);
    text-decoration: none;
}

.footer-social-links li {
    margin-bottom: var(--spacing-xs); /* Or display: inline-block; margin-right: ... */
}
.footer-social-links a { /* Text-based links */
    color: var(--text-muted);
    font-weight: 500;
    transition: color var(--transition-fast);
}
.footer-social-links a:hover {
    color: var(--secondary-color);
    text-decoration: none;
}

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

.footer-bottom p {
    color: var(--text-muted);
    font-size: 0.9rem;
    margin: 0;
}

@media (min-width: 768px) {
    .footer-content {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (min-width: 992px) {
    .footer-content {
        grid-template-columns: repeat(4, 1fr); /* Common 4-column footer */
    }
}

/* -------------------------------------------------------------------------- */
/*                             PAGE-SPECIFIC STYLES                           */
/* -------------------------------------------------------------------------- */

/* About, Contacts, Privacy, Terms pages - General content styling */
.page-content {
    /* padding-top: 100px; Ensures content is below fixed header */
    /* This is applied directly to main for these pages in the HTML */
}
main.page-content > section:first-child { /* Add padding to first section of these pages if header is fixed */
    padding-top: calc(var(--spacing-xl) + 80px); /* 80px approx header height */
}
main.page-content.privacy-terms-page > section:first-child {
     padding-top: 100px; /* Specific override for privacy/terms as requested */
}

.page-title {
    margin-bottom: var(--spacing-md);
}
.page-subtitle {
    font-size: 1.2rem;
    color: var(--text-muted);
    margin-bottom: var(--spacing-lg);
}
.content-text {
    max-width: 800px;
    margin-left: auto;
    margin-right: auto;
}
.content-text h2 {
    margin-top: var(--spacing-lg);
    margin-bottom: var(--spacing-sm);
}
.content-text ul {
    list-style: disc;
    padding-left: var(--spacing-md);
    margin-bottom: var(--spacing-md);
}
.content-text ul li {
    margin-bottom: var(--spacing-xs);
}

/* Contacts Page Specifics (if different from homepage contact section) */
#contact-page-form .contact-content-wrapper {
    background-color: transparent; /* No glassmorphism here perhaps, or a lighter version */
    backdrop-filter: none;
    padding: 0;
    border: none;
}
.contact-info-container.alternate-layout {
    background-color: var(--bg-alt); /* Light background for info box */
    padding: var(--spacing-lg);
    border-radius: var(--border-radius-lg);
}
.contact-info-container.alternate-layout h3,
.contact-info-container.alternate-layout p,
.contact-info-container.alternate-layout a {
    color: var(--text-dark-secondary); /* Dark text for light bg */
}
.contact-info-container.alternate-layout a {
    color: var(--primary-color);
}
.contact-info-container.alternate-layout a:hover {
    color: var(--accent-color-2);
}
.modern-form .form-group label {
    color: var(--text-dark-secondary); /* Ensure labels are dark on light bg */
}

/* Success Page (styles are in the HTML as per prompt, this is a fallback/enhancement if needed) */
.success-container { /* Ensure this matches HTML if it's used */
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    min-height: 100vh;
    text-align: center;
    padding: var(--spacing-md);
    /* background: linear-gradient(135deg, var(--primary-color) 0%, var(--accent-color-1) 100%); */
    color: var(--text-light);
}

/* -------------------------------------------------------------------------- */
/*                            ANIMATIONS & TRANSITIONS                        */
/* -------------------------------------------------------------------------- */
/* Using AOS for scroll animations, defined in HTML script */
/* Custom non-linear hover for certain elements */
.roadmap-content, .event-item, .card {
    transition: transform 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275), 
                box-shadow 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275);
}

/* Example of custom keyframe animation for non-linear movement */
@keyframes subtleFloat {
    0%, 100% { transform: translateY(0); }
    50% { transform: translateY(-8px); }
}
/* Apply to an element: animation: subtleFloat 4s ease-in-out infinite; */

@keyframes fadeIn {
    from { opacity: 0; transform: translateY(20px); }
    to { opacity: 1; transform: translateY(0); }
}

/* Parallax basic setup (JS needed for true parallax on multiple elements) */
.parallax-bg {
    background-attachment: fixed; /* Simple parallax for full background images */
    background-position: center;
    background-repeat: no-repeat;
    background-size: cover;
}

/* -------------------------------------------------------------------------- */
/*                              RESPONSIVE STYLES                             */
/* -------------------------------------------------------------------------- */
@media (max-width: 991px) {
    /* Header adjustments for tablet */
}

@media (max-width: 767px) {
    html {
        font-size: 15px; /* Slightly smaller base for mobile */
    }
    .section-padding {
        padding-top: var(--spacing-lg);
        padding-bottom: var(--spacing-lg);
    }
    h1 { font-size: 2.2rem; }
    h2 { font-size: 1.8rem; }

    /* Mobile Navigation */
    .nav-toggle {
        display: block;
    }
    .nav-menu {
        position: fixed;
        top: 0;
        left: -100%; /* Start off-screen */
        width: 80%;
        max-width: 300px;
        height: 100vh;
        background-color: var(--bg-dark-primary); /* Solid background for mobile menu */
        flex-direction: column;
        align-items: flex-start;
        padding: calc(var(--spacing-xl) * 2) var(--spacing-lg) var(--spacing-lg);
        box-shadow: var(--shadow-lg);
        transition: left var(--transition-smooth);
        z-index: 999; /* Below toggle, above content */
    }
    .nav-menu.active {
        left: 0; /* Slide in */
    }
    .nav-menu li {
        margin-left: 0;
        width: 100%;
        margin-bottom: var(--spacing-sm);
    }
    .nav-menu a {
        display: block;
        padding: var(--spacing-sm);
        font-size: 1.1rem;
    }
    .nav-menu a::after { display: none; } /* Remove underline for mobile menu items */
    .nav-menu a:hover, .nav-menu a.active {
        background-color: rgba(255,255,255,0.1);
        color: var(--secondary-color);
    }

    /* Grid adjustments */
    .features-grid, .portfolio-grid, .pricing-grid, .resources-grid {
        grid-template-columns: 1fr; /* Stack on mobile */
    }
    .pricing-card.popular {
        transform: scale(1); /* No pop-out on mobile to save space */
    }
    .contact-content-wrapper {
        grid-template-columns: 1fr; /* Stack form and info */
    }
    .footer-content {
        grid-template-columns: 1fr;
        text-align: center;
    }
    .footer-col {
        margin-bottom: var(--spacing-md);
    }
    .footer-links, .footer-social-links {
        text-align: center;
    }
    .footer-links a:hover, .footer-social-links a:hover {
        padding-left: 0;
    }
}