/* style.css */

/* ----------------------------- */
/* === 1. Global Styles & Variables === */
/* ----------------------------- */

@import url('https://fonts.googleapis.com/css2?family=Raleway:wght@700&family=Open+Sans:wght@400;600&display=swap');

:root {
    /* Color Palette (Split-Complementary - Base: Blue) */
    --primary-color: #0077cc; /* Bright Blue */
    --primary-darker: #005ea6;
    --secondary-color: #e67e22; /* Warm Orange */
    --accent-color: #abd699;    /* Yellow-Green */
    --light-bg: #f8f9fa;
    --dark-bg: #212529;
    --text-dark: #343a40;
    --text-light: #f8f9fa;
    --text-muted: #6c757d;
    --glass-bg: rgba(255, 255, 255, 0.1);
    --glass-border: rgba(255, 255, 255, 0.2);
    --glass-bg-darker: rgba(0, 0, 0, 0.1);
    --glass-border-darker: rgba(0, 0, 0, 0.2);
    --white: #ffffff;
    --black: #000000;
    --shadow-light: rgba(0, 0, 0, 0.1);
    --shadow-dark: rgba(0, 0, 0, 0.3);

    /* Typography */
    --font-heading: 'Raleway', sans-serif;
    --font-body: 'Open Sans', sans-serif;
    --base-font-size: 16px;
    --line-height-base: 1.6;

    /* Spacing */
    --spacing-xs: 0.5rem;
    --spacing-sm: 1rem;
    --spacing-md: 1.5rem;
    --spacing-lg: 2rem;
    --spacing-xl: 3rem;
    --spacing-xxl: 4rem;

    /* Borders */
    --border-radius: 8px;
    --border-radius-lg: 15px;

    /* Transitions */
    --transition-speed: 0.3s;
}

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

html {
    scroll-behavior: smooth;
    font-size: var(--base-font-size);
}

body {
    font-family: var(--font-body);
    line-height: var(--line-height-base);
    color: var(--text-dark);
    background-color: var(--white);
    overflow-x: hidden; /* Prevent horizontal scroll */
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
}

/* Headings */
h1, h2, h3, h4, h5, h6 {
    font-family: var(--font-heading);
    font-weight: 700;
    line-height: 1.3;
    margin-bottom: var(--spacing-md);
    color: var(--text-dark); /* Darker text for headings */
    text-shadow: 1px 1px 2px var(--shadow-light);
}

h1 { font-size: 2.8rem; }
h2 { font-size: 2.2rem; text-align: center; margin-bottom: var(--spacing-lg); }
h3 { font-size: 1.6rem; }
h4 { font-size: 1.2rem; }

p {
    margin-bottom: var(--spacing-md);
    color: var(--text-dark); /* Ensure good contrast */
}

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

a:hover, a:focus {
    color: var(--primary-darker);
    text-decoration: underline;
}

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

ul {
    list-style: none;
}

/* Basic Layout */
.container {
    width: 90%;
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 var(--spacing-md);
}

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

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

/* Text Alignment Utility */
.text-center {
    text-align: center;
}

/* Section Title */
.section-title {
    margin-bottom: var(--spacing-xl);
    position: relative;
    padding-bottom: var(--spacing-sm);
    color: var(--text-dark); /* Ensure high contrast */
}

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

.section-paragraph {
    max-width: 800px;
    margin-left: auto;
    margin-right: auto;
    text-align: center;
    margin-bottom: var(--spacing-xl);
    color: var(--text-muted); /* Lighter text for descriptive paragraphs */
}

/* ----------------------------- */
/* === 2. Header & Navigation === */
/* ----------------------------- */

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

/* Glassmorphism Header */
.site-header.glassmorphism {
    background: var(--glass-bg);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    border-bottom: 1px solid var(--glass-border);
    box-shadow: 0 2px 10px var(--shadow-light);
}

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

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

.main-nav .nav-menu {
    display: flex;
    align-items: center;
    gap: var(--spacing-lg);
}

.main-nav .nav-menu li a {
    color: var(--text-dark);
    font-weight: 600;
    padding: var(--spacing-xs) var(--spacing-sm);
    border-radius: var(--border-radius);
    transition: background-color var(--transition-speed) ease, color var(--transition-speed) ease;
}

.main-nav .nav-menu li a:hover,
.main-nav .nav-menu li a:focus,
.main-nav .nav-menu li a.active { /* Add 'active' class via JS if needed */
    color: var(--primary-color);
    background-color: rgba(0, 119, 204, 0.1);
    text-decoration: none;
}

/* Mobile Navigation Toggle */
.nav-toggle {
    display: none; /* Hidden by default */
    background: none;
    border: none;
    cursor: pointer;
    padding: 10px;
    z-index: 1010;
}

.nav-toggle span {
    display: block;
    width: 25px;
    height: 3px;
    background-color: var(--text-dark);
    margin: 5px 0;
    transition: all var(--transition-speed) ease;
    border-radius: 1px;
}

/* Styles for open mobile menu - triggered by JS adding a class to header/nav */
.nav-open .nav-toggle span:nth-child(1) {
    transform: translateY(8px) rotate(45deg);
}
.nav-open .nav-toggle span:nth-child(2) {
    opacity: 0;
}
.nav-open .nav-toggle span:nth-child(3) {
    transform: translateY(-8px) rotate(-45deg);
}

.nav-open .nav-menu {
    /* Style for when menu is open */
    position: absolute;
    top: 100%; /* Position below header */
    right: 0;
    background-color: var(--white);
    width: 100%;
    max-width: 300px; /* Or desired width */
    box-shadow: 0 5px 15px var(--shadow-light);
    flex-direction: column;
    align-items: stretch;
    padding: var(--spacing-md);
    border-radius: 0 0 var(--border-radius) var(--border-radius);
    gap: var(--spacing-sm);
    opacity: 0;
    visibility: hidden;
    transform: translateY(-10px);
    transition: opacity var(--transition-speed) ease, visibility var(--transition-speed) ease, transform var(--transition-speed) ease;
}

.nav-open .nav-menu.active { /* Add 'active' class via JS */
    opacity: 1;
    visibility: visible;
    transform: translateY(0);
}

.nav-open .nav-menu li {
    width: 100%;
}

.nav-open .nav-menu li a {
    display: block;
    text-align: center;
    padding: var(--spacing-sm);
    border-bottom: 1px solid var(--light-bg);
}
.nav-open .nav-menu li:last-child a {
    border-bottom: none;
}

/* ----------------------------- */
/* === 3. Hero Section === */
/* ----------------------------- */

.hero-section {
    position: relative;
    color: var(--white); /* Default text color for hero */
    padding: 12rem 0 8rem; /* More top padding to account for fixed header */
    background-size: cover;
    background-position: center center;
    background-repeat: no-repeat;
    background-attachment: fixed; /* Parallax-like effect */
    text-align: center;
    overflow: hidden; /* Contain particles */
}

/* Ensure readability with dark overlay - applied via inline style in HTML */

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

.hero-title {
    font-size: 3.5rem;
    margin-bottom: var(--spacing-md);
    color: var(--white); /* Explicitly white */
    text-shadow: 2px 2px 4px var(--shadow-dark);
}

.hero-subtitle {
    font-size: 1.3rem;
    margin-bottom: var(--spacing-lg);
    max-width: 700px;
    margin-left: auto;
    margin-right: auto;
    color: var(--white); /* Explicitly white */
    opacity: 0.9;
}

/* Particle Container Placeholder */
#particle-container {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 1;
}

/* ----------------------------- */
/* === 4. Global Button Styles === */
/* ----------------------------- */

.cta-button,
button,
input[type="submit"],
input[type="button"] {
    display: inline-block;
    background-color: var(--primary-color);
    color: var(--white);
    padding: var(--spacing-sm) var(--spacing-lg);
    border: none;
    border-radius: var(--border-radius);
    font-family: var(--font-heading);
    font-size: 1rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    cursor: pointer;
    transition: background-color var(--transition-speed) ease, transform var(--transition-speed) ease, box-shadow var(--transition-speed) ease;
    text-align: center;
    text-decoration: none;
    box-shadow: 0 4px 8px var(--shadow-light);
}

.cta-button:hover,
button:hover,
input[type="submit"]:hover,
input[type="button"]:hover,
.cta-button:focus,
button:focus,
input[type="submit"]:focus,
input[type="button"]:focus {
    background-color: var(--primary-darker);
    transform: translateY(-2px);
    box-shadow: 0 6px 12px var(--shadow-dark);
    color: var(--white); /* Ensure text color remains white */
    text-decoration: none;
}

.cta-button.secondary {
    background-color: var(--secondary-color);
    color: var(--white);
}

.cta-button.secondary:hover,
.cta-button.secondary:focus {
    background-color: #c46a1b; /* Darker secondary */
}

/* ----------------------------- */
/* === 5. Statistics Section === */
/* ----------------------------- */

.stats-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: var(--spacing-lg);
    margin-bottom: var(--spacing-xl);
}

.stat-item {
    padding: var(--spacing-lg);
    text-align: center;
    border-radius: var(--border-radius-lg);
    transition: transform var(--transition-speed) ease, box-shadow var(--transition-speed) ease;
}

.stat-item.glassmorphism {
    background: var(--glass-bg-darker); /* Slightly darker glass on light bg */
    backdrop-filter: blur(5px);
    -webkit-backdrop-filter: blur(5px);
    border: 1px solid var(--glass-border-darker);
    box-shadow: 0 4px 15px var(--shadow-light);
}

.stat-item:hover {
    transform: translateY(-5px);
    box-shadow: 0 8px 25px var(--shadow-dark);
}

.stat-number {
    display: block;
    font-size: 2.5rem;
    font-weight: 700;
    color: var(--primary-color);
    margin-bottom: var(--spacing-xs);
}

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

/* ----------------------------- */
/* === 6. Our Process Section === */
/* ----------------------------- */

.process-steps {
    display: flex;
    flex-direction: column;
    gap: var(--spacing-xl);
    max-width: 900px;
    margin: 0 auto;
}

.process-step {
    display: flex;
    align-items: flex-start; /* Align items to the top */
    gap: var(--spacing-lg);
    position: relative;
}

/* Style odd/even steps differently if needed */
.process-step:nth-child(even) {
    flex-direction: row-reverse;
}

.step-icon-container {
    flex-shrink: 0;
    width: 100px; /* Fixed width for icon */
    height: 100px;
    display: flex;
    justify-content: center;
    align-items: center;
    background-color: var(--primary-color); /* Or an accent color */
    border-radius: 50%;
    box-shadow: 0 4px 8px var(--shadow-light);
}

.step-icon {
    width: 60%;
    height: 60%;
    object-fit: contain; /* Or cover, depending on icon style */
    border-radius: 50%; /* Ensure icon is rounded if image is square */
}

.step-content {
    flex-grow: 1;
    padding: var(--spacing-lg);
    border-radius: var(--border-radius-lg);
}

.step-content.glassmorphism {
    background: var(--glass-bg);
    backdrop-filter: blur(5px);
    -webkit-backdrop-filter: blur(5px);
    border: 1px solid var(--glass-border);
    box-shadow: 0 4px 15px var(--shadow-light);
}

.step-title {
    margin-bottom: var(--spacing-sm);
    color: var(--primary-color);
}

.step-content p {
    margin-bottom: 0;
    color: var(--text-dark);
}

/* Optional: Add connecting lines */
@media (min-width: 768px) {
    .process-steps {
        gap: 0; /* Remove gap to use pseudo-elements for connection */
    }
    .process-step {
         margin-bottom: var(--spacing-xl); /* Add margin back */
    }
    .process-step:not(:last-child)::after {
        content: '';
        position: absolute;
        top: 50px; /* Align with center of icon */
        height: calc(100% + var(--spacing-xl) - 100px); /* Adjust height */
        width: 2px;
        background-color: var(--accent-color);
        z-index: -1;
    }
     /* Adjust line position for odd/even */
    .process-step:nth-child(odd)::after {
        left: 50px; /* Center of icon */
    }
    .process-step:nth-child(even)::after {
        right: 50px; /* Center of icon */
    }
}


/* ----------------------------- */
/* === 7. Portfolio & Cards === */
/* ----------------------------- */

/* General Card Styles */
.card {
    background-color: var(--white);
    border-radius: var(--border-radius-lg);
    box-shadow: 0 5px 15px var(--shadow-light);
    overflow: hidden;
    transition: transform var(--transition-speed) ease, box-shadow var(--transition-speed) ease;
    display: flex; /* STROGO */
    flex-direction: column; /* STROGO */
    align-items: center; /* STROGO */
    height: 100%; /* Ensure cards in a grid have same height */
    text-align: center; /* STROGO */
}

.card:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 25px var(--shadow-dark);
}

.card.glassmorphism {
    background: var(--glass-bg);
    backdrop-filter: blur(8px);
    -webkit-backdrop-filter: blur(8px);
    border: 1px solid var(--glass-border);
    color: var(--text-light); /* Adjust text for glass */
}
.card.glassmorphism .card-content h3,
.card.glassmorphism .card-content p {
    color: var(--text-light);
}
.card.glassmorphism .card-content a {
    color: var(--accent-color);
}
.card.glassmorphism .card-content a:hover {
    color: var(--white);
}


.card-image, .image-container {
    width: 100%;
    height: 250px; /* STROGO: Fixed height for image container */
    overflow: hidden; /* Ensure image stays within bounds */
    margin-bottom: var(--spacing-md);
    display: flex; /* Added for centering */
    justify-content: center; /* Added for centering */
    align-items: center; /* Added for centering */
}

.card-image img, .image-container img {
    width: 100%;
    height: 100%;
    object-fit: cover; /* STROGO: Cover ensures image fills container */
    transition: transform var(--transition-speed) ease;
}

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

.card-content {
    padding: var(--spacing-lg);
    padding-top: 0; /* Remove top padding as image has margin-bottom */
    flex-grow: 1; /* Allows content to fill remaining space */
    display: flex;
    flex-direction: column;
    justify-content: space-between; /* Pushes button down if exists */
}

.card-content h3 {
    margin-bottom: var(--spacing-sm);
    font-size: 1.3rem;
}

.card-content p {
    margin-bottom: var(--spacing-md);
    flex-grow: 1; /* Allow paragraph to take available space */
}

/* Portfolio Specific */
.portfolio-carousel .card,
.customer-carousel .testimonial-item,
.press-logos-carousel .press-logo-item {
    margin: 0 var(--spacing-sm); /* Spacing for carousel items */
}

/* Add styles for Owl Carousel navigation/dots if used */
/* .owl-dots { ... } */
/* .owl-nav { ... } */

/* ----------------------------- */
/* === 8. Methodology Section === */
/* ----------------------------- */

.methodology-content {
    display: grid;
    grid-template-columns: 1fr;
    gap: var(--spacing-xl);
    align-items: center;
}

@media (min-width: 768px) {
    .methodology-content {
        grid-template-columns: repeat(2, 1fr); /* Two columns on larger screens */
    }
}

.methodology-visual img {
    border-radius: var(--border-radius-lg);
    box-shadow: 0 5px 15px var(--shadow-light);
}

.methodology-visual img.glassmorphism {
    background: var(--glass-bg);
    backdrop-filter: blur(5px);
    -webkit-backdrop-filter: blur(5px);
    border: 1px solid var(--glass-border);
}

/* ----------------------------- */
/* === 9. Workshops Section === */
/* ----------------------------- */

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

.workshop-item .card-content {
    text-align: center;
}

.workshop-title {
    color: var(--primary-color);
}

.modal-button {
    margin-top: auto; /* Push button to bottom */
    background-color: var(--secondary-color);
    padding: var(--spacing-xs) var(--spacing-md);
    font-size: 0.9rem;
}
.modal-button:hover {
    background-color: #c46a1b;
}

/* ----------------------------- */
/* === 10. Modal Windows === */
/* ----------------------------- */

.modal {
    display: none; /* Hidden by default */
    position: fixed;
    z-index: 1050;
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
    overflow: auto;
    background-color: rgba(0, 0, 0, 0.6); /* Dim background */
    opacity: 0;
    visibility: hidden;
    transition: opacity var(--transition-speed) ease, visibility var(--transition-speed) ease;
}

.modal.active { /* Triggered by JS */
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 1;
    visibility: visible;
}

.modal-content {
    position: relative;
    background-color: var(--white);
    margin: auto;
    padding: var(--spacing-xl);
    border-radius: var(--border-radius-lg);
    max-width: 700px;
    width: 90%;
    box-shadow: 0 10px 30px var(--shadow-dark);
    transform: scale(0.9);
    transition: transform var(--transition-speed) ease;
}

.modal.active .modal-content {
     transform: scale(1);
}

.modal-content.glassmorphism {
    background: var(--glass-bg);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    border: 1px solid var(--glass-border);
    color: var(--text-light); /* Adjust text for glass */
}
.modal-content.glassmorphism h2,
.modal-content.glassmorphism p {
    color: var(--text-light);
}

.modal-content h2 {
    margin-top: 0;
    margin-bottom: var(--spacing-lg);
    text-align: center;
    color: var(--primary-color);
}

.modal-content img {
    max-width: 100%;
    height: auto;
    border-radius: var(--border-radius);
    margin-top: var(--spacing-md);
    margin-left: auto;
    margin-right: auto;
}

.close-button {
    position: absolute;
    top: var(--spacing-md);
    right: var(--spacing-lg);
    color: var(--text-muted);
    font-size: 2rem;
    font-weight: bold;
    cursor: pointer;
    transition: color var(--transition-speed) ease;
}

.close-button:hover,
.close-button:focus {
    color: var(--text-dark);
    text-decoration: none;
}

.modal-content.glassmorphism .close-button {
    color: var(--text-light);
}
.modal-content.glassmorphism .close-button:hover {
    color: var(--white);
}


/* ----------------------------- */
/* === 11. Events Calendar === */
/* ----------------------------- */

.events-calendar-section {
    background-size: cover;
    background-position: center center;
    background-repeat: no-repeat;
    background-attachment: fixed; /* Parallax */
    position: relative;
}
/* Overlay applied via inline style */

.events-list {
    max-width: 800px;
    margin: 0 auto var(--spacing-xl);
}

.event-item {
    display: flex;
    gap: var(--spacing-lg);
    align-items: flex-start;
    margin-bottom: var(--spacing-lg);
    padding: var(--spacing-lg);
    border-radius: var(--border-radius-lg);
}

.event-item.glassmorphism {
    background: var(--glass-bg);
    backdrop-filter: blur(5px);
    -webkit-backdrop-filter: blur(5px);
    border: 1px solid var(--glass-border);
    box-shadow: 0 4px 15px var(--shadow-light);
}

.event-date {
    flex-shrink: 0;
    background-color: var(--primary-color);
    color: var(--white);
    padding: var(--spacing-sm) var(--spacing-md);
    border-radius: var(--border-radius);
    text-align: center;
    font-weight: 700;
    line-height: 1.1;
}

.event-date span {
    display: block;
    font-size: 1.8rem;
    margin-bottom: var(--spacing-xs);
}

.event-details {
    flex-grow: 1;
}

.event-title {
    margin-bottom: var(--spacing-xs);
    font-size: 1.3rem;
    color: var(--primary-color);
}
.glassmorphism .event-title {
    color: var(--accent-color);
}

.event-description {
    margin-bottom: var(--spacing-sm);
    font-size: 0.95rem;
    color: var(--text-dark); /* Ensure readability */
}
.glassmorphism .event-description {
    color: var(--text-light);
}


.event-time {
    font-size: 0.9rem;
    color: var(--text-muted);
    font-weight: 600;
}
.glassmorphism .event-time {
     color: var(--accent-color);
     opacity: 0.8;
}

.events-calendar-section .cta-button {
    display: block;
    width: fit-content;
    margin: 0 auto;
}


/* ----------------------------- */
/* === 12. Customer Stories === */
/* ----------------------------- */

.testimonial-item {
    padding: var(--spacing-xl);
    text-align: center;
    border-radius: var(--border-radius-lg);
}

.testimonial-item.glassmorphism {
    background: var(--glass-bg-darker); /* Darker glass on light bg */
    backdrop-filter: blur(5px);
    -webkit-backdrop-filter: blur(5px);
    border: 1px solid var(--glass-border-darker);
    box-shadow: 0 4px 15px var(--shadow-light);
    color: var(--text-dark); /* Adjust text for glass */
}

.testimonial-avatar {
    width: 80px;
    height: 80px;
    border-radius: 50%;
    margin: 0 auto var(--spacing-md);
    border: 3px solid var(--primary-color);
    box-shadow: 0 2px 5px var(--shadow-light);
}

.testimonial-quote {
    font-style: italic;
    margin-bottom: var(--spacing-md);
    position: relative;
    padding: 0 var(--spacing-lg);
    color: var(--text-dark);
}

.testimonial-quote::before,
.testimonial-quote::after {
    content: '"';
    font-size: 3rem;
    color: var(--primary-color);
    opacity: 0.3;
    position: absolute;
    line-height: 1;
}

.testimonial-quote::before {
    top: -10px;
    left: 0;
}

.testimonial-quote::after {
    bottom: -20px;
    right: 0;
}

.testimonial-author {
    font-weight: 600;
    color: var(--primary-color);
    margin-bottom: 0;
}

.testimonial-item.glassmorphism .testimonial-quote { color: var(--text-dark); }
.testimonial-item.glassmorphism .testimonial-quote::before,
.testimonial-item.glassmorphism .testimonial-quote::after { color: var(--accent-color); }
.testimonial-item.glassmorphism .testimonial-author { color: var(--secondary-color); }


/* ----------------------------- */
/* === 13. Careers Section === */
/* ----------------------------- */

.careers-content {
    display: grid;
    grid-template-columns: 1fr;
    gap: var(--spacing-xl);
    align-items: center;
}

@media (min-width: 768px) {
    .careers-content {
        grid-template-columns: repeat(2, 1fr); /* Two columns */
    }
    .careers-text {
        max-width: 90%; /* Adjust width if needed */
    }
}

.careers-visual img {
    border-radius: var(--border-radius-lg);
    box-shadow: 0 5px 15px var(--shadow-light);
}

.careers-visual img.glassmorphism {
    background: var(--glass-bg);
    backdrop-filter: blur(5px);
    -webkit-backdrop-filter: blur(5px);
    border: 1px solid var(--glass-border);
}

.careers-text p {
    margin-bottom: var(--spacing-lg);
}

/* ----------------------------- */
/* === 14. External Resources === */
/* ----------------------------- */

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

.resource-item .card-content {
    text-align: left; /* Override card center align */
}

.resource-title {
    margin-bottom: var(--spacing-sm);
    font-size: 1.2rem;
}

.resource-description {
    font-size: 0.9rem;
    color: var(--text-muted);
    margin-bottom: var(--spacing-md);
}

.resource-link {
    display: inline-block;
    font-weight: 600;
    color: var(--primary-color);
    text-decoration: none;
    position: relative;
    padding-right: 20px; /* Space for arrow */
}

.resource-link::after {
    content: '→';
    position: absolute;
    right: 0;
    top: 50%;
    transform: translateY(-50%);
    transition: right var(--transition-speed) ease;
}

.resource-link:hover::after {
    right: -5px; /* Move arrow on hover */
}

.resource-link:hover {
    color: var(--primary-darker);
    text-decoration: underline;
}


/* ----------------------------- */
/* === 15. Contact Section === */
/* ----------------------------- */

.contact-section {
    background-size: cover;
    background-position: center center;
    background-repeat: no-repeat;
    background-attachment: fixed;
    position: relative;
}
/* Overlay applied via inline style */

.contact-form {
    max-width: 700px;
    margin: 0 auto;
    padding: var(--spacing-xl);
    border-radius: var(--border-radius-lg);
}

.contact-form.glassmorphism {
    background: var(--glass-bg);
    backdrop-filter: blur(8px);
    -webkit-backdrop-filter: blur(8px);
    border: 1px solid var(--glass-border);
    box-shadow: 0 5px 20px var(--shadow-light);
}

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

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

.contact-form.glassmorphism .form-group label {
    color: var(--text-light); /* Adjust for glass */
}

input[type="text"],
input[type="email"],
textarea {
    width: 100%;
    padding: var(--spacing-sm);
    border: 1px solid #ccc; /* Default border */
    border-radius: var(--border-radius);
    font-family: var(--font-body);
    font-size: 1rem;
    transition: border-color var(--transition-speed) ease, box-shadow var(--transition-speed) ease;
    background-color: var(--white);
    color: var(--text-dark);
}

.contact-form.glassmorphism input[type="text"],
.contact-form.glassmorphism input[type="email"],
.contact-form.glassmorphism textarea {
    background-color: rgba(255, 255, 255, 0.8);
    border: 1px solid var(--glass-border);
    color: var(--text-dark); /* Ensure input text is readable */
}
.contact-form.glassmorphism input::placeholder,
.contact-form.glassmorphism textarea::placeholder {
    color: var(--text-muted);
}


input[type="text"]:focus,
input[type="email"]:focus,
textarea:focus {
    border-color: var(--primary-color);
    box-shadow: 0 0 0 3px rgba(0, 119, 204, 0.2);
    outline: none;
}

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

.contact-form button[type="submit"] {
    display: block;
    width: 100%;
    padding: var(--spacing-md); /* Larger padding for submit */
}

/* ----------------------------- */
/* === 16. Press Section === */
/* ----------------------------- */

.press-logos-carousel {
    display: flex; /* Use flex for alignment if not using JS carousel initially */
    justify-content: center;
    align-items: center;
    flex-wrap: wrap;
    gap: var(--spacing-xl);
}

.press-logo-item img {
    max-height: 60px; /* Control logo height */
    width: auto;
    filter: grayscale(100%); /* Eco-minimalism: grayscale */
    opacity: 0.7;
    transition: filter var(--transition-speed) ease, opacity var(--transition-speed) ease;
}

.press-logo-item img:hover {
    filter: grayscale(0%);
    opacity: 1;
}

/* ----------------------------- */
/* === 17. Footer === */
/* ----------------------------- */

.site-footer {
    background-color: var(--dark-bg);
    color: var(--text-light);
    padding: var(--spacing-xl) 0 var(--spacing-sm);
}

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

.footer-column h4 {
    font-family: var(--font-heading);
    color: var(--white);
    margin-bottom: var(--spacing-md);
    font-size: 1.1rem;
}

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

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

.footer-links ul li a,
.footer-legal ul li a,
.footer-social ul li a {
    color: var(--text-muted); /* Use muted for links */
    text-decoration: none;
    font-size: 0.9rem;
    transition: color var(--transition-speed) ease, padding-left var(--transition-speed) ease;
    position: relative;
}

.footer-links ul li a:hover,
.footer-legal ul li a:hover,
.footer-social ul li a:hover,
.footer-links ul li a:focus,
.footer-legal ul li a:focus,
.footer-social ul li a:focus {
    color: var(--white);
    text-decoration: none;
    padding-left: 5px; /* Slight indent on hover */
}

/* Text-based social links */
.footer-social ul {
    padding-left: 0; /* Remove default padding */
}

.footer-social ul li a {
    /* Additional styles if needed */
    font-weight: 600; /* Make them slightly bolder */
}

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

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

/* ----------------------------- */
/* === 18. Specific Page Styles === */
/* ----------------------------- */

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

.success-container {
    flex-grow: 1;
    display: flex;
    flex-direction: column;
    justify-content: center; /* Vertical Center */
    align-items: center; /* Horizontal Center */
    text-align: center;
    padding: var(--spacing-xl);
}

.success-icon {
    font-size: 4rem;
    color: var(--accent-color); /* Or primary */
    margin-bottom: var(--spacing-lg);
    /* Consider adding an animation */
    animation: bounceIn 1s ease;
}

.success-container h1 {
    color: var(--primary-color);
}

/* Privacy & Terms Pages */
body.privacy-page main,
body.terms-page main {
    padding-top: 100px; /* Adjust based on header height */
    padding-bottom: var(--spacing-xl);
}

.privacy-content,
.terms-content {
    max-width: 900px;
    margin: 0 auto;
}

.privacy-content h2,
.terms-content h2 {
    text-align: left;
    margin-bottom: var(--spacing-lg);
}
.privacy-content h3,
.terms-content h3 {
     margin-top: var(--spacing-lg);
     margin-bottom: var(--spacing-sm);
     color: var(--primary-color);
}
.privacy-content ul,
.terms-content ul {
    list-style: disc;
    margin-left: var(--spacing-lg);
    margin-bottom: var(--spacing-md);
}
.privacy-content li,
.terms-content li {
    margin-bottom: var(--spacing-xs);
}

/* ----------------------------- */
/* === 19. Barba.js Transitions === */
/* ----------------------------- */

.barba-leave-active,
.barba-enter-active {
    transition: opacity 0.5s ease;
}

.barba-leave-to,
.barba-enter-from {
    opacity: 0;
}

/* Optional: More complex transitions */
/* .barba-leave-active { transition: transform 0.5s ease, opacity 0.5s ease; } */
/* .barba-enter-active { transition: transform 0.5s ease 0.2s, opacity 0.5s ease 0.2s; } */
/* .barba-leave-to { transform: translateX(-100%); opacity: 0; } */
/* .barba-enter-from { transform: translateX(100%); opacity: 0; } */


/* ----------------------------- */
/* === 20. Cookie Consent Popup === */
/* ----------------------------- */

#cookie-consent-popup {
    /* Styles already defined inline in HTML, keep them there for simplicity */
    /* But you can override or add more here if needed */
    box-shadow: 0 -2px 10px rgba(0,0,0,0.2);
}

#cookie-consent-popup p {
    margin-bottom: 0; /* Override default p margin */
    margin-right: 10px;
}

#cookie-consent-popup a {
    color: var(--accent-color) !important; /* Override inline style if needed */
}
#cookie-consent-popup a:hover {
    color: var(--white) !important;
}

#accept-cookies {
    /* Styles already defined inline */
    /* Add transitions if desired */
    transition: background-color var(--transition-speed) ease;
}
#accept-cookies:hover {
    background-color: var(--primary-darker) !important;
}

/* ----------------------------- */
/* === 21. Responsive Design === */
/* ----------------------------- */

@media (max-width: 992px) {
    h1 { font-size: 2.5rem; }
    h2 { font-size: 2rem; }
    .hero-section { padding: 10rem 0 6rem; }
    .hero-title { font-size: 3rem; }
    .hero-subtitle { font-size: 1.1rem; }
    .container { width: 95%; }
}

@media (max-width: 768px) {
    /* Mobile Navigation */
    .main-nav .nav-menu {
        display: none; /* Hide desktop menu */
        /* Mobile menu styles are handled by .nav-open state */
    }
    .nav-toggle {
        display: block; /* Show burger icon */
    }
    .nav-open .nav-menu {
        display: flex; /* Show mobile menu when open */
    }

    /* Layout Adjustments */
    .methodology-content,
    .careers-content {
        grid-template-columns: 1fr; /* Stack columns */
        text-align: center;
    }
     .methodology-visual,
     .careers-visual {
         margin-top: var(--spacing-lg);
     }
     .careers-text {
         max-width: 100%;
     }

    .process-step,
    .process-step:nth-child(even) {
        flex-direction: column; /* Stack process steps vertically */
        align-items: center;
        text-align: center;
    }
     .process-step:not(:last-child)::after {
         display: none; /* Hide connecting lines on mobile */
     }
    .step-icon-container {
        margin-bottom: var(--spacing-md);
    }


    .footer-container {
        grid-template-columns: 1fr; /* Stack footer columns */
        text-align: center;
    }
    .footer-column {
        margin-bottom: var(--spacing-lg);
    }
    .footer-column:last-child {
        margin-bottom: 0;
    }

    /* Font Sizes */
    h1 { font-size: 2.2rem; }
    h2 { font-size: 1.8rem; }
    .hero-title { font-size: 2.5rem; }
    .hero-subtitle { font-size: 1rem; }
    .stat-number { font-size: 2rem; }
}

@media (max-width: 576px) {
    .section-padding {
        padding: var(--spacing-xl) 0;
    }
    .hero-section { padding: 8rem 0 4rem; }
    .hero-title { font-size: 2rem; }
    h1 { font-size: 1.9rem; }
    h2 { font-size: 1.6rem; }

    .stats-grid {
        grid-template-columns: repeat(auto-fit, minmax(150px, 1fr));
        gap: var(--spacing-md);
    }
    .stat-item {
        padding: var(--spacing-md);
    }

    .card-image, .image-container {
        height: 200px; /* Adjust card image height */
    }

    .contact-form {
        padding: var(--spacing-lg);
    }
}

/* ----------------------------- */
/* === 22. Animations (Animate.css integration via JS) === */
/* ----------------------------- */
/* Base state for elements that will be animated on scroll */
[data-animation] {
    opacity: 0;
    /* visibility: hidden; */ /* Avoid using visibility if possible for smoother fades */
    transition: opacity 0.6s ease-out, transform 0.6s ease-out;
}

/* State when animation should run (class added by JS) */
[data-animation].animate__animated {
    opacity: 1;
    /* visibility: visible; */
}