/* style.css */

/* -------------------------------------------------------------------------- */
/* --- 0. CSS Variables & Global Setup --- */
/* -------------------------------------------------------------------------- */
:root {
    /* Fonts */
    --font-primary: 'Inter', system-ui, -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Oxygen, Ubuntu, Cantarell, 'Open Sans', 'Helvetica Neue', sans-serif;
    --font-secondary: 'IBM Plex Sans', system-ui, -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Oxygen, Ubuntu, Cantarell, 'Open Sans', 'Helvetica Neue', sans-serif;

    /* Analogous Color Scheme */
    --color-primary-hue: 220; /* Blue base */
    --color-primary: hsl(var(--color-primary-hue), 90%, 60%); /* hsl(220, 90%, 60%) -> Bright Blue */
    --color-primary-dark: hsl(var(--color-primary-hue), 80%, 50%);
    --color-primary-light: hsl(var(--color-primary-hue), 90%, 70%);

    --color-analogous-1: hsl(calc(var(--color-primary-hue) - 30), 70%, 55%); /* Tealish Blue hsl(190, 70%, 55%) */
    --color-analogous-2: hsl(calc(var(--color-primary-hue) + 30), 75%, 60%); /* Purplish Blue hsl(250, 75%, 60%) */

    --color-accent: var(--color-analogous-1);
    --color-accent-dark: hsl(calc(var(--color-primary-hue) - 30), 70%, 45%);

    /* Text Colors */
    --color-text-light: #F9FAFB; /* Off-white (Gray 50) */
    --color-text-medium: #D1D5DB; /* Gray 300 */
    --color-text-dark: #374151;  /* Gray 700 */
    --color-text-darker: #111827; /* Gray 900 - For main headings on light bg */

    /* Background Colors */
    --color-background-body: #FFFFFF;
    --color-background-light-section: #F3F4F6; /* Gray 100 */
    --color-background-dark-section: #1F2937;  /* Gray 800 */
    --color-background-card: #FFFFFF;
    --color-background-card-dark: #2d3748; /* Darker card on dark sections */


    /* UI Elements */
    --border-radius-sm: 4px;
    --border-radius-md: 8px;
    --border-radius-lg: 16px;
    --border-color: #E5E7EB; /* Gray 200 */

    /* Shadows (Volumetric) */
    --shadow-sm: 0 2px 4px rgba(0, 0, 0, 0.05);
    --shadow-md: 0 5px 15px rgba(0, 0, 0, 0.08), 0 3px 6px rgba(0, 0, 0, 0.05);
    --shadow-lg: 0 10px 25px rgba(0, 0, 0, 0.1), 0 8px 10px rgba(0, 0, 0, 0.06);
    --shadow-volumetric-idle: 0 4px 6px -1px rgba(0,0,0,0.1), 0 2px 4px -2px rgba(0,0,0,0.1);
    --shadow-volumetric-hover: 0 10px 15px -3px rgba(0,0,0,0.1), 0 4px 6px -4px rgba(0,0,0,0.1);
    --shadow-volumetric-active: 0 1px 3px 0 rgba(0,0,0,0.1), 0 1px 2px -1px rgba(0,0,0,0.1);


    /* Transitions */
    --transition-duration: 0.3s;
    --transition-timing-fast: cubic-bezier(0.25, 0.8, 0.25, 1);
    --transition-timing-bouncy: cubic-bezier(0.68, -0.55, 0.265, 1.55);
    --transition-base: all var(--transition-duration) var(--transition-timing-fast);

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

    /* Header Height */
    --header-height: 80px;
}

/* Basic Reset & Body Styles */
*, *::before, *::after {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
}

html {
    scroll-behavior: smooth;
    font-size: 100%; /* 16px base */
}

body {
    font-family: var(--font-secondary);
    line-height: 1.65;
    color: var(--color-text-dark);
    background-color: var(--color-background-body);
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
    overflow-x: hidden; /* Prevent horizontal scroll from animations or wide elements */
}

.main-wrapper {
    overflow: hidden; /* Contains floats and potential overflows */
}

/* Typography */
h1, h2, h3, h4, h5, h6 {
    font-family: var(--font-primary);
    font-weight: 700;
    line-height: 1.3;
    margin-bottom: var(--space-md);
    color: var(--color-text-darker);
    text-wrap: balance;
}
h1 { font-size: clamp(2.5rem, 5vw, 3.5rem); font-weight: 900; }
h2 { font-size: clamp(2rem, 4vw, 3rem); }
h3 { font-size: clamp(1.5rem, 3vw, 2rem); }
h4 { font-size: clamp(1.2rem, 2.5vw, 1.5rem); }

p {
    margin-bottom: var(--space-sm);
    color: var(--color-text-dark);
}
p.section-intro {
    font-size: 1.125rem;
    color: var(--color-text-subtle);
    max-width: 70ch;
    margin-left: auto;
    margin-right: auto;
    margin-bottom: var(--space-lg);
}

a {
    color: var(--color-primary);
    text-decoration: none;
    transition: color var(--transition-duration) var(--transition-timing-fast);
}
a:hover, a:focus {
    color: var(--color-primary-dark);
    text-decoration: underline;
}

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

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

/* Section Styling */
.section-padding {
    padding-top: var(--space-xl);
    padding-bottom: var(--space-xl);
}
.section-padding-dark {
    padding-top: var(--space-xl);
    padding-bottom: var(--space-xl);
    background-color: var(--color-background-dark-section);
    color: var(--color-text-light);
}
.section-padding-dark h1,
.section-padding-dark h2,
.section-padding-dark h3,
.section-padding-dark h4,
.section-padding-dark p {
    color: var(--color-text-light);
}
.section-padding-dark p.section-intro {
    color: var(--color-text-medium);
}
.section-padding-dark a {
    color: var(--color-primary-light);
}
.section-padding-dark a:hover,
.section-padding-dark a:focus {
    color: var(--color-text-light);
}

.section-title {
    text-align: center;
    margin-bottom: var(--space-lg);
    font-weight: 900;
    position: relative;
}
.section-title::after { /* Subtle underline accent */
    content: '';
    display: block;
    width: 80px;
    height: 4px;
    background-color: var(--color-accent);
    margin: var(--space-sm) auto 0;
    border-radius: var(--border-radius-sm);
}
.section-padding-dark .section-title::after {
    background-color: var(--color-primary-light);
}

/* -------------------------------------------------------------------------- */
/* --- 1. Header & Navigation --- */
/* -------------------------------------------------------------------------- */
.site-header {
    background-color: rgba(255, 255, 255, 0.85);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    padding: var(--space-sm) 0;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    z-index: 1000;
    box-shadow: var(--shadow-sm);
    height: var(--header-height);
    transition: background-color var(--transition-duration) ease, box-shadow var(--transition-duration) ease;
}

.header-container {
    display: flex;
    justify-content: space-between;
    align-items: center;
    width: 90%;
    max-width: 1300px; /* Slightly wider for header */
    margin: 0 auto;
}

.logo img {
    height: 50px; /* Adjust as needed */
    width: auto;
    transition: transform var(--transition-duration) var(--transition-timing-bouncy);
}
.logo:hover img {
    transform: scale(1.05);
}

.desktop-nav ul {
    list-style: none;
    display: flex;
    gap: var(--space-md);
}
.desktop-nav a {
    font-family: var(--font-primary);
    font-weight: 500;
    color: var(--color-text-dark);
    padding: var(--space-xs) var(--space-sm);
    border-radius: var(--border-radius-sm);
    transition: var(--transition-base);
    position: relative;
}
.desktop-nav a::after {
    content: '';
    position: absolute;
    bottom: -2px;
    left: 50%;
    transform: translateX(-50%) scaleX(0);
    width: 80%;
    height: 2px;
    background-color: var(--color-primary);
    transition: transform var(--transition-duration) var(--transition-timing-fast);
    transform-origin: center;
}
.desktop-nav a:hover,
.desktop-nav a:focus,
.desktop-nav a.active { /* Add 'active' class with JS */
    color: var(--color-primary);
    background-color: transparent; /* No background on hover for this style */
}
.desktop-nav a:hover::after,
.desktop-nav a:focus::after,
.desktop-nav a.active::after {
    transform: translateX(-50%) scaleX(1);
}

.burger-menu {
    display: none; /* Hidden on desktop */
    background: none;
    border: none;
    cursor: pointer;
    padding: var(--space-xs);
    z-index: 1010; /* Above mobile nav panel initially */
}
.burger-line {
    display: block;
    width: 28px;
    height: 3px;
    background-color: var(--color-text-darker);
    margin: 6px 0;
    border-radius: 3px;
    transition: var(--transition-base);
}

.mobile-nav {
    display: none; /* Hidden by default, shown by JS */
    position: fixed;
    top: 0;
    right: -100%; /* Start off-screen */
    width: 300px;
    max-width: 80%;
    height: 100vh;
    background-color: var(--color-background-body);
    box-shadow: -5px 0 15px rgba(0,0,0,0.1);
    padding-top: calc(var(--header-height) + var(--space-lg));
    padding-left: var(--space-lg);
    padding-right: var(--space-lg);
    transition: right var(--transition-duration) var(--transition-timing-fast);
    z-index: 1005;
}
.mobile-nav.active {
    right: 0;
}
.mobile-nav ul {
    list-style: none;
}
.mobile-nav li {
    margin-bottom: var(--space-md);
}
.mobile-nav a {
    font-family: var(--font-primary);
    font-size: 1.25rem;
    font-weight: 700;
    color: var(--color-text-darker);
    display: block;
    padding: var(--space-xs) 0;
}
.mobile-nav a:hover,
.mobile-nav a:focus {
    color: var(--color-primary);
}

/* Burger menu active state */
.burger-menu.active .burger-line:nth-child(1) {
    transform: translateY(9px) rotate(45deg);
}
.burger-menu.active .burger-line:nth-child(2) {
    opacity: 0;
}
.burger-menu.active .burger-line:nth-child(3) {
    transform: translateY(-9px) rotate(-45deg);
}


/* -------------------------------------------------------------------------- */
/* --- 2. Hero Section --- */
/* -------------------------------------------------------------------------- */
.hero-section {
    position: relative;
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;
    color: var(--color-text-light); /* All text in hero will be light */
    background-size: cover;
    background-position: center center;
    background-repeat: no-repeat;
    min-height: calc(100vh - var(--header-height)); /* Full viewport height minus header */
    padding-top: var(--header-height); /* Account for fixed header */
}
.hero-overlay { /* For text readability on any background image */
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: var(--color-background-hero-overlay); /* Defined in variables */
    z-index: 1;
}
.hero-content {
    position: relative;
    z-index: 2;
    padding: var(--space-xl) var(--space-md);
}
.hero-title {
    color: var(--color-text-light); /* Explicitly white/light */
    margin-bottom: var(--space-md);
    text-shadow: 2px 2px 8px rgba(0,0,0,0.5); /* Enhance readability */
}
.hero-subtitle {
    color: var(--color-text-light); /* Explicitly white/light */
    font-size: clamp(1.1rem, 2.5vw, 1.5rem);
    max-width: 65ch;
    margin: 0 auto var(--space-lg) auto;
    text-shadow: 1px 1px 6px rgba(0,0,0,0.4); /* Enhance readability */
}

/* -------------------------------------------------------------------------- */
/* --- 3. Buttons --- */
/* -------------------------------------------------------------------------- */
/* Global button styles */
.cta-button, button, input[type="submit"], input[type="button"] {
    display: inline-block;
    font-family: var(--font-primary);
    font-weight: 700;
    font-size: 1rem;
    padding: var(--space-sm) var(--space-lg);
    border-radius: var(--border-radius-md);
    cursor: pointer;
    text-align: center;
    text-decoration: none;
    border: none;
    transition: var(--transition-base);
    position: relative;
    overflow: hidden; /* For ripple effects or similar */
}

/* Volumetric Button Style */
.volumetric-button {
    background-color: var(--color-primary);
    color: var(--color-text-light);
    box-shadow: var(--shadow-volumetric-idle), 0 0 0 0px hsla(var(--color-primary-hue),90%,70%,0.5); /* Add a subtle outer glow, initially transparent */
    transform: translateY(0);
}
.volumetric-button:hover, .volumetric-button:focus {
    background-color: var(--color-primary-dark);
    color: var(--color-text-light); /* Ensure text remains light on hover */
    box-shadow: var(--shadow-volumetric-hover), 0 0 0 6px hsla(var(--color-primary-hue),90%,70%,0.2);
    transform: translateY(-3px);
    text-decoration: none;
}
.volumetric-button:active {
    background-color: hsl(var(--color-primary-hue), 80%, 45%);
    box-shadow: var(--shadow-volumetric-active), 0 0 0 3px hsla(var(--color-primary-hue),90%,70%,0.1);
    transform: translateY(1px);
}

/* Card Link as a Button */
.card-link {
    display: inline-block;
    margin-top: var(--space-md);
    padding: var(--space-xs) var(--space-sm);
    font-weight: 500;
    background-color: var(--color-accent);
    color: var(--color-text-light);
    border-radius: var(--border-radius-sm);
    transition: var(--transition-base);
}
.card-link:hover, .card-link:focus {
    background-color: var(--color-accent-dark);
    color: var(--color-text-light);
    text-decoration: none;
    transform: scale(1.05);
}
.section-padding-dark .card-link {
    background-color: var(--color-primary-light);
    color: var(--color-text-darker);
}
.section-padding-dark .card-link:hover, .section-padding-dark .card-link:focus {
    background-color: var(--color-text-light);
}

/* -------------------------------------------------------------------------- */
/* --- 4. Cards (Projects, Media, Resources) --- */
/* -------------------------------------------------------------------------- */
.card {
    background-color: var(--color-background-card);
    border-radius: var(--border-radius-lg);
    box-shadow: var(--shadow-md);
    overflow: hidden;
    transition: transform var(--transition-duration) var(--transition-timing-bouncy), box-shadow var(--transition-duration) var(--transition-timing-fast);
    display: flex;
    flex-direction: column;
    height: 100%; /* For equal height cards in a grid/flex row */
}
.card:hover {
    transform: translateY(-8px) scale(1.02);
    box-shadow: var(--shadow-lg);
}
.section-padding-dark .card {
    background-color: var(--color-background-card-dark);
    box-shadow: 0 5px 15px rgba(0,0,0,0.2);
}
.section-padding-dark .card:hover {
     box-shadow: 0 10px 25px rgba(0,0,0,0.3);
}


.card-image, .image-container { /* Use .image-container for consistency */
    height: 250px; /* Fixed height for image containers */
    overflow: hidden;
    position: relative; /* For potential overlays on image */
    display: flex; /* To center image if it's not 100% via object-fit */
    align-items: center;
    justify-content: center;
}
.card-image img, .image-container img {
    width: 100%;
    height: 100%;
    object-fit: cover; /* Ensures image covers the area, might crop */
    transition: transform 0.4s var(--transition-timing-fast);
}
.card:hover .card-image img, .card:hover .image-container img {
    transform: scale(1.1);
}

.card-content {
    padding: var(--space-md);
    flex-grow: 1; /* Allows content to take remaining space if card is flex column */
    display: flex;
    flex-direction: column;
}
.card-content > *:last-child {
    margin-bottom: 0;
}
.card-content .card-title {
    margin-top: 0; /* Remove top margin if it's the first child */
    color: var(--color-text-darker);
}
.section-padding-dark .card-content .card-title {
    color: var(--color-text-light);
}
.section-padding-dark .card-content p {
    color: var(--color-text-medium);
}

/* Grids for cards */
.projects-carousel, .media-grid, .resources-grid {
    display: grid;
    gap: var(--space-lg);
}
@media (min-width: 768px) {
    .projects-carousel, .media-grid, .resources-grid {
        grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    }
}
@media (min-width: 1024px) {
    .media-grid { /* Example: Media might have 3 columns on large screens */
        grid-template-columns: repeat(3, 1fr);
    }
    .resources-grid {
         grid-template-columns: repeat(3, 1fr);
    }
}

/* Carousels (Basic structure, JS will handle actual sliding) */
.content-carousel {
    display: flex; /* Fallback for non-JS or simple scroll */
    overflow-x: auto;
    gap: var(--space-lg);
    padding-bottom: var(--space-sm); /* For scrollbar */
    -webkit-overflow-scrolling: touch; /* Smooth scrolling on iOS */
    scrollbar-width: thin;
    scrollbar-color: var(--color-accent) var(--color-background-light-section);
}
.content-carousel > .card {
    min-width: 300px; /* Ensure cards have a minimum width in carousel */
    flex-shrink: 0;
}

/* -------------------------------------------------------------------------- */
/* --- 5. Success Stories (Timeline) --- */
/* -------------------------------------------------------------------------- */
.timeline {
    position: relative;
    max-width: 800px;
    margin: 0 auto;
}
.timeline::after { /* The central line */
    content: '';
    position: absolute;
    width: 4px;
    background-color: var(--color-primary-light);
    top: 0;
    bottom: 0;
    left: 50%;
    margin-left: -2px;
    border-radius: var(--border-radius-sm);
}
.section-padding .timeline::after { /* Adjust for light sections */
    background-color: var(--color-border);
}

.timeline-item {
    padding: var(--space-sm) var(--space-lg);
    position: relative;
    background-color: transparent;
    width: 50%;
}
/* Alternating sides */
.timeline-item:nth-child(odd) {
    left: 0;
    padding-right: calc(var(--space-lg) + 25px); /* Space for icon */
    text-align: right;
}
.timeline-item:nth-child(even) {
    left: 50%;
    padding-left: calc(var(--space-lg) + 25px); /* Space for icon */
    text-align: left;
}
.timeline-item:nth-child(odd) .timeline-icon {
    right: -23px; /* Adjust to sit on the line */
}
.timeline-item:nth-child(even) .timeline-icon {
    left: -23px; /* Adjust to sit on the line */
}
.timeline-item:nth-child(odd) .timeline-content {
    align-items: flex-end; /* Align content inside card */
}
.timeline-item:nth-child(odd) .timeline-content .card-title,
.timeline-item:nth-child(odd) .timeline-content p {
    text-align: right;
}
.timeline-item:nth-child(even) .timeline-content {
    align-items: flex-start;
}
.timeline-item:nth-child(even) .timeline-content .card-title,
.timeline-item:nth-child(even) .timeline-content p {
    text-align: left;
}


.timeline-icon {
    position: absolute;
    width: 46px;
    height: 46px;
    background-color: var(--color-accent); /* Icon background */
    border: 4px solid var(--color-background-dark-section); /* Match section background */
    border-radius: 50%;
    top: 50%;
    transform: translateY(-50%);
    z-index: 1;
    display: flex;
    align-items: center;
    justify-content: center;
    /* Add a pseudo-element for an inner icon if needed */
}
.section-padding .timeline-icon {
    border-color: var(--color-background-light-section);
}

.timeline-content { /* This is a card */
    padding: var(--space-md);
    position: relative;
    background-color: var(--color-background-card-dark); /* Override default card bg for dark sections */
    border-radius: var(--border-radius-lg);
    box-shadow: var(--shadow-md);
}
.section-padding .timeline-content {
    background-color: var(--color-background-card);
}

.timeline-content .card-title {
    margin-top: 0;
    font-size: 1.3rem;
    color: var(--color-text-light);
}
.timeline-content p {
    font-size: 0.95rem;
    color: var(--color-text-medium);
    margin-bottom: var(--space-xs);
}
.timeline-date {
    font-weight: 700;
    color: var(--color-accent);
    margin-bottom: var(--space-sm) !important;
    font-size: 0.9rem;
}
.section-padding .timeline-date {
    color: var(--color-primary);
}
.section-padding .timeline-content .card-title {
    color: var(--color-text-darker);
}
.section-padding .timeline-content p {
    color: var(--color-text-dark);
}

/* Timeline responsive adjustments */
@media (max-width: 768px) {
    .timeline::after {
        left: 23px; /* Move line to the left */
    }
    .timeline-item {
        width: 100%;
        padding-left: calc(var(--space-lg) + 35px); /* Adjust padding for items */
        padding-right: var(--space-sm);
        left: 0 !important; /* Override alternating sides */
        text-align: left !important;
    }
    .timeline-item:nth-child(odd),
    .timeline-item:nth-child(even) {
        left: 0;
        padding-left: calc(var(--space-lg) + 35px);
        text-align: left !important;
    }
    .timeline-item:nth-child(odd) .timeline-icon,
    .timeline-item:nth-child(even) .timeline-icon {
        left: 0; /* Align icon with the new line position */
    }
    .timeline-item:nth-child(odd) .timeline-content,
    .timeline-item:nth-child(even) .timeline-content {
        align-items: flex-start;
    }
     .timeline-item:nth-child(odd) .timeline-content .card-title,
    .timeline-item:nth-child(odd) .timeline-content p,
    .timeline-item:nth-child(even) .timeline-content .card-title,
    .timeline-item:nth-child(even) .timeline-content p {
        text-align: left;
    }
}


/* -------------------------------------------------------------------------- */
/* --- 6. Partners Section --- */
/* -------------------------------------------------------------------------- */
.partners-carousel {
    display: flex;
    align-items: center;
    justify-content: space-around; /* Or space-between */
    flex-wrap: wrap; /* Fallback if not using JS carousel */
    gap: var(--space-xl);
}
.partner-logo img {
    max-height: 75px;
    width: auto;
    filter: grayscale(100%) opacity(0.7);
    transition: var(--transition-base);
}
.partner-logo img:hover {
    filter: grayscale(0%) opacity(1);
    transform: scale(1.1);
}
.section-padding-dark .partner-logo img {
    filter: brightness(0) invert(1) opacity(0.7); /* Make them white on dark bg */
}
.section-padding-dark .partner-logo img:hover {
     filter: brightness(0) invert(1) opacity(1);
}


/* -------------------------------------------------------------------------- */
/* --- 7. Contact Section --- */
/* -------------------------------------------------------------------------- */
.contact-form-container {
    display: grid;
    gap: var(--space-xl);
    align-items: start; /* Align items to the start of the track */
}
@media (min-width: 992px) {
    .contact-form-container {
        grid-template-columns: 2fr 1fr; /* Form takes more space */
    }
}

.contact-form .form-group {
    margin-bottom: var(--space-md);
}
.contact-form label {
    display: block;
    font-weight: 500;
    margin-bottom: var(--space-xs);
    color: var(--color-text-light); /* For dark section */
}
.section-padding .contact-form label { /* For light section contact form */
    color: var(--color-text-dark);
}

.contact-form input[type="text"],
.contact-form input[type="email"],
.contact-form input[type="tel"],
.contact-form textarea {
    width: 100%;
    padding: var(--space-sm);
    border: 1px solid var(--color-border);
    border-radius: var(--border-radius-md);
    background-color: var(--color-background-body);
    color: var(--color-text-dark);
    font-family: var(--font-secondary);
    font-size: 1rem;
    transition: border-color var(--transition-duration) ease, box-shadow var(--transition-duration) ease;
    box-shadow: var(--shadow-sm);
}
.section-padding-dark .contact-form input[type="text"],
.section-padding-dark .contact-form input[type="email"],
.section-padding-dark .contact-form input[type="tel"],
.section-padding-dark .contact-form textarea {
    background-color: #374151; /* Slightly lighter than dark section bg */
    border-color: #4B5563; /* Gray 600 */
    color: var(--color-text-light);
}

.contact-form input[type="text"]:focus,
.contact-form input[type="email"]:focus,
.contact-form input[type="tel"]:focus,
.contact-form textarea:focus {
    outline: none;
    border-color: var(--color-primary);
    box-shadow: 0 0 0 3px hsla(var(--color-primary-hue), 90%, 60%, 0.3), var(--shadow-md);
}
.section-padding-dark .contact-form input[type="text"]:focus,
.section-padding-dark .contact-form input[type="email"]:focus,
.section-padding-dark .contact-form input[type="tel"]:focus,
.section-padding-dark .contact-form textarea:focus {
    border-color: var(--color-primary-light);
    box-shadow: 0 0 0 3px hsla(var(--color-primary-hue), 90%, 70%, 0.3), var(--shadow-md);
}


.contact-form textarea {
    min-height: 150px;
    resize: vertical;
}
.contact-form .form-consent {
    display: flex;
    align-items: flex-start; /* Align checkbox with start of text */
    gap: var(--space-xs);
    font-size: 0.9rem;
}
.contact-form .form-consent input[type="checkbox"] {
    margin-top: 4px; /* Align checkbox better with text */
    width: auto; /* Override default input width */
    accent-color: var(--color-primary);
}
.contact-form .form-consent label {
    font-weight: 400;
    margin-bottom: 0;
}
.contact-form .submit-button {
    width: 100%;
    padding: var(--space-md) var(--space-lg);
    font-size: 1.1rem;
}
@media (min-width: 768px) {
    .contact-form .submit-button {
        width: auto; /* Auto width on larger screens */
    }
}

.contact-details h3 {
    color: var(--color-text-light);
    margin-bottom: var(--space-md);
}
.section-padding .contact-details h3 {
    color: var(--color-text-darker);
}
.contact-details p {
    margin-bottom: var(--space-sm);
    line-height: 1.8;
}
.contact-details strong {
    color: var(--color-text-light);
}
.section-padding .contact-details strong {
    color: var(--color-text-darker);
}


/* -------------------------------------------------------------------------- */
/* --- 8. Footer --- */
/* -------------------------------------------------------------------------- */
.site-footer {
    background-color: var(--color-text-darker); /* Very dark */
    color: var(--color-text-medium);
    padding: var(--space-xl) 0 var(--space-md) 0;
    font-size: 0.95rem;
}
.footer-container {
    display: grid;
    gap: var(--space-lg);
    padding-bottom: var(--space-lg);
    border-bottom: 1px solid #374151; /* Gray 700 for subtle separation */
    margin-bottom: var(--space-md);
}
@media (min-width: 768px) {
    .footer-container {
        grid-template-columns: repeat(2, 1fr);
    }
}
@media (min-width: 1024px) {
    .footer-container {
        grid-template-columns: repeat(4, 1fr); /* 4 columns for wider layout */
    }
}

.footer-column h4 {
    font-family: var(--font-primary);
    color: var(--color-text-light);
    font-size: 1.2rem;
    margin-bottom: var(--space-md);
}
.footer-column p {
    color: var(--color-text-medium);
    line-height: 1.7;
}
.footer-column ul {
    list-style: none;
}
.footer-column li {
    margin-bottom: var(--space-xs);
}
.footer-column a {
    color: var(--color-text-medium);
    transition: var(--transition-base);
}
.footer-column a:hover, .footer-column a:focus {
    color: var(--color-primary-light);
    text-decoration: underline;
}
.footer-social .social-links {
    display: flex;
    flex-direction: column; /* Stack social links */
    gap: var(--space-xs);
}
.footer-social .social-links a {
    padding: var(--space-xs) 0;
    font-weight: 500;
}

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

/* -------------------------------------------------------------------------- */
/* --- 9. Specific Page Styles (Success, Privacy, Terms) --- */
/* -------------------------------------------------------------------------- */
/* For success.html */
.success-page-container {
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    min-height: 100vh;
    text-align: center;
    padding: var(--space-xl);
    background-color: var(--color-background-light-section);
}
.success-page-container h1 {
    color: var(--color-primary);
    font-size: 3rem;
}
.success-page-container p {
    font-size: 1.2rem;
    margin-bottom: var(--space-lg);
}
.success-page-container .cta-button {
    background-color: var(--color-accent);
}
.success-page-container .cta-button:hover {
    background-color: var(--color-accent-dark);
}

/* For privacy.html and terms.html */
.static-page-content .content-container { /* Use a wrapper class like .static-page-content on body or main */
    padding-top: calc(var(--header-height) + var(--space-xl)); /* Header height + some space */
    padding-bottom: var(--space-xl);
}
.static-page-content h1 {
    margin-bottom: var(--space-lg);
}
.static-page-content h2 {
    margin-top: var(--space-lg);
    margin-bottom: var(--space-md);
    font-size: 1.8rem;
}
.static-page-content p, .static-page-content ul, .static-page-content ol {
    margin-bottom: var(--space-md);
    line-height: 1.7;
}
.static-page-content ul, .static-page-content ol {
    padding-left: var(--space-md);
}

/* -------------------------------------------------------------------------- */
/* --- 10. Cookie Consent Popup --- */
/* -------------------------------------------------------------------------- */
/* Styles are inlined in HTML for simplicity as requested, but can be moved here if preferred */
#cookieConsentPopup {
    /* Basic styles are in HTML. Can add more here if needed */
    font-family: var(--font-secondary);
}
#cookieConsentPopup p a {
    font-weight: 500;
}
#acceptCookieConsent {
    font-family: var(--font-primary);
}

/* -------------------------------------------------------------------------- */
/* --- 11. Responsive Adjustments --- */
/* -------------------------------------------------------------------------- */
@media (max-width: 991px) { /* Tablet and below */
    .desktop-nav {
        display: none;
    }
    .burger-menu {
        display: flex; /* Show burger menu */
        flex-direction: column;
        justify-content: space-around;
    }
    .hero-section {
        min-height: calc(90vh - var(--header-height)); /* Slightly less than full on smaller screens */
    }
    .hero-title {
        font-size: clamp(2rem, 6vw, 3rem);
    }
    .hero-subtitle {
        font-size: clamp(1rem, 3vw, 1.25rem);
    }
}

@media (max-width: 767px) { /* Mobile */
    .content-container {
        width: 95%;
    }
    .section-padding, .section-padding-dark {
        padding-top: var(--space-lg);
        padding-bottom: var(--space-lg);
    }
    .section-title {
        margin-bottom: var(--space-md);
    }
    p.section-intro {
        font-size: 1rem;
        margin-bottom: var(--space-md);
    }
    .projects-carousel, .media-grid, .resources-grid {
        grid-template-columns: 1fr; /* Stack cards on mobile */
        gap: var(--space-md);
    }
    .content-carousel > .card {
        min-width: 280px;
    }
    .contact-form-container {
        grid-template-columns: 1fr; /* Stack form and details */
    }
    .footer-container {
        grid-template-columns: 1fr; /* Stack footer columns */
        text-align: center;
    }
    .footer-column h4 {
        margin-top: var(--space-md);
    }
     .footer-social .social-links {
        align-items: center;
    }
}

/* Utility Classes */
.text-center { text-align: center; }
.text-light { color: var(--color-text-light) !important; }
.text-dark { color: var(--color-text-darker) !important; }
.margin-bottom-0 { margin-bottom: 0 !important; }
.hidden { display: none !important; }

/* Parallax placeholder - JS (Motion One) will drive this */
[data-parallax-bg] {
    /* Basic setup for JS to hook into */
    background-attachment: scroll; /* JS will override this */
}