:root {
    --bg-dark: #0A0A10; /* Deep blue-black */
    --accent-cyan: #00FFFF;
    --accent-violet: #8A2BE2;
    --accent-silver: #C0C0C0;
    --text-light: #E0E0E0;
    --text-medium: #A0A0AA;
    --border-transparent: rgba(255, 255, 255, 0.1);

    --font-heading: 'Orbitron', sans-serif;
    --font-body: 'Exo 2', sans-serif;

    --max-width-content: 1200px;
    --spacing-lg: 120px;
    --spacing-md: 80px;
    --spacing-sm: 40px;
    --card-padding: 30px;
    --border-radius-sm: 8px;
    --border-radius-md: 12px;
}

/* Base Styles */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
}

body {
    font-family: var(--font-body);
    color: var(--text-light);
    background-color: var(--bg-dark);
    line-height: 1.6;
    overflow-x: hidden; /* Prevent horizontal scroll due to subtle effects */
}

.container {
    max-width: var(--max-width-content);
    margin: 0 auto;
    padding: 0 25px;
}

h1, h2, h3, h4 {
    font-family: var(--font-heading);
    font-weight: 500; /* Medium thickness */
    color: var(--text-light);
    margin-bottom: 20px;
}

h1 { font-size: 2.8em; }
h2 { font-size: 2.2em; }
h3 { font-size: 1.8em; }
h4 { font-size: 1.4em; } /* Used for h3-alt for proper SEO hierarchy */

p {
    margin-bottom: 1em;
    color: var(--text-medium);
}

a {
    color: var(--accent-cyan);
    text-decoration: none;
    transition: color 0.3s ease;
}

a:hover {
    color: var(--accent-violet);
}

ul {
    list-style: none;
}

.btn {
    display: inline-block;
    padding: 14px 28px;
    border-radius: var(--border-radius-md);
    font-family: var(--font-heading);
    font-weight: 500;
    text-transform: uppercase;
    letter-spacing: 1px;
    transition: all 0.3s ease-in-out;
    border: none;
    cursor: pointer;
}

.primary-btn {
    background: linear-gradient(90deg, var(--accent-cyan), var(--accent-violet));
    color: var(--bg-dark);
    box-shadow: 0 0 15px rgba(0, 255, 255, 0.4);
}

.primary-btn:hover {
    background: linear-gradient(90deg, var(--accent-violet), var(--accent-cyan));
    box-shadow: 0 0 25px rgba(138, 43, 226, 0.6);
}

.secondary-btn {
    background: transparent;
    border: 2px solid var(--accent-silver);
    color: var(--text-light);
}

.secondary-btn:hover {
    background-color: var(--accent-silver);
    color: var(--bg-dark);
    box-shadow: 0 0 15px rgba(192, 192, 192, 0.4);
}

.glow-effect {
    position: relative;
    overflow: hidden;
}
.glow-effect::before {
    content: '';
    position: absolute;
    top: -50%;
    left: -50%;
    width: 200%;
    height: 200%;
    background: radial-gradient(circle, rgba(255,255,255,0.1) 0%, transparent 70%);
    transform: rotate(45deg);
    transition: transform 0.8s ease-out;
    opacity: 1;
}
.glow-effect:hover::before {
    opacity: 1;
    transform: rotate(0deg);
}

/* Header */
.main-header {
    background-color: rgba(10, 10, 16, 0.8); /* Slightly transparent */
    padding: 20px 0;
    position: fixed;
    width: 100%;
    top: 0;
    z-index: 1000;
    backdrop-filter: blur(10px); /* Frosted glass effect */
    border-bottom: 1px solid var(--border-transparent);
}

.main-header .container {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.logo {
    font-size: 1.8em;
    font-weight: 700;
    letter-spacing: 1px;
    background: linear-gradient(90deg, var(--accent-cyan), var(--accent-violet));
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
}

.main-nav ul {
    display: flex;
    gap: 30px;
}

.main-nav a {
    font-family: var(--font-body);
    font-weight: 400;
    font-size: 1.1em;
    color: var(--text-light);
    position: relative;
}

.main-nav a::after {
    content: '';
    position: absolute;
    width: 0;
    height: 2px;
    background: linear-gradient(90deg, var(--accent-cyan), var(--accent-violet));
    bottom: -5px;
    left: 0;
    transition: width 0.3s ease-in-out;
}

.main-nav a:hover::after,
.main-nav a.active::after {
    width: 100%;
}

/* Section Styling */
.layered-section {
    padding: var(--spacing-lg) 0;
    position: relative;
    overflow: hidden;
    z-index: 1;
}

.layered-section::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(
        45deg,
        rgba(0, 255, 255, 0.03) 0%,
        rgba(138, 43, 226, 0.03) 50%,
        rgba(0, 255, 255, 0.03) 100%
    );
    opacity: 1;.1;
    z-index: -1;
    pointer-events: none;
}

.section-title {
    text-align: center;
    margin-bottom: 60px;
    font-size: 2.8em;
    font-weight: 700;
    background: linear-gradient(90deg, var(--accent-cyan), var(--accent-violet));
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    text-shadow: 0 0 15px rgba(0, 255, 255, 0.3);
}

/* Glow Borders for cards/elements */
.glow-border {
    position: relative;
    border: 1px solid var(--border-transparent);
    border-radius: var(--border-radius-md);
    background-color: rgba(10, 10, 16, 0.6); /* Slightly darker, more opaque */
    box-shadow: 0 0 10px rgba(0, 255, 255, 0.1);
    transition: all 0.3s ease;
}

.glow-border:hover {
    border-color: rgba(0, 255, 255, 0.3);
    box-shadow: 0 0 20px rgba(0, 255, 255, 0.3), 0 0 30px rgba(138, 43, 226, 0.2);
    transform: translateY(-5px);
}

/* h3-alt for proper SEO hierarchy */
.h3-alt {
    font-family: var(--font-heading);
    font-weight: 500;
    font-size: 1.4em; /* Adjust size as needed to look like h3, but semantically h4 */
    color: var(--text-light);
    margin-bottom: 10px;
}

/* INTRO SECTION */
.intro-section {
    padding-top: var(--spacing-lg); /* Account for fixed header */
}

.split-layout {
    display: flex;
    align-items: center;
    gap: 60px;
    min-height: 80vh;
}

.intro-content {
    flex: 1;
    padding-right: 30px;
}

.intro-content .section-title {
    text-align: left;
    margin-bottom: 30px;
    font-size: 3.5em; /* Larger H2 for hero */
}

.intro-image {
    flex: 1;
    display: flex;
    justify-content: center;
    align-items: center;
}

.intro-image img {
    max-width: 100%;
    height: auto;
    border-radius: var(--border-radius-md);
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.5);
    transition: transform 0.5s ease-in-out;
}

.intro-image img:hover {
    transform: scale(1.02) rotate(-1deg);
}

/* ABOUT SECTION */
.about-section .about-content {
    margin-bottom: var(--spacing-md);
    text-align: center;
}

.about-section .about-content p {
    max-width: 900px;
    margin-left: auto;
    margin-right: auto;
    font-size: 1.1em;
}

.interactive-map {
    position: relative;
    padding: var(--card-padding);
    margin-top: var(--spacing-md);
    text-align: center;
    background-color: rgba(10, 10, 16, 0.7);
    border: 1px solid var(--border-transparent);
    border-radius: var(--border-radius-md);
    box-shadow: 0 0 15px rgba(0, 255, 255, 0.1);
}

.interactive-map img {
    max-width: 100%;
    height: auto;
    border-radius: var(--border-radius-sm);
    margin-bottom: 30px;
    box-shadow: 0 5px 20px rgba(0, 0, 0, 0.4);
}

.interactive-map h3 {
    color: var(--accent-cyan);
    margin-bottom: 20px;
}

.interactive-map ul {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 30px;
    margin-top: 30px;
}

.interactive-map ul li {
    flex: 1 1 300px; /* Responsive item width */
    max-width: 400px;
    padding: 15px 20px;
    background-color: rgba(0, 0, 0, 0.4);
    border-radius: var(--border-radius-sm);
    border: 1px solid rgba(255, 255, 255, 0.08);
    transition: background-color 0.3s ease;
}

.interactive-map ul li:hover {
    background-color: rgba(0, 0, 0, 0.6);
    box-shadow: 0 0 15px rgba(138, 43, 226, 0.2);
}

.interactive-map ul li h4 {
    color: var(--accent-violet);
    margin-bottom: 5px;
}
.interactive-map ul li p {
    font-size: 0.95em;
    color: var(--text-medium);
}


/* SERVICES SECTION - PRICING TABLE */
.services-section p {
    text-align: center;
    max-width: 900px;
    margin-left: auto;
    margin-right: auto;
    font-size: 1.1em;
}

.pricing-table {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 30px;
    margin-top: var(--spacing-md);
}

.pricing-card {
    padding: var(--card-padding);
    text-align: center;
    display: flex;
    flex-direction: column;
    align-items: center;
}

.pricing-card h3 {
    font-size: 1.6em;
    margin-bottom: 10px;
    background: linear-gradient(90deg, var(--accent-silver), var(--accent-cyan));
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
}

.pricing-card .price {
    font-family: var(--font-heading);
    font-size: 1.8em;
    color: var(--accent-violet);
    margin-bottom: 25px;
    font-weight: 700;
}

.pricing-card ul {
    list-style: none;
    margin-bottom: 30px;
    text-align: left;
    width: 100%;
    flex-grow: 1;
}

.pricing-card ul li {
    padding: 10px 0;
    border-bottom: 1px dashed var(--border-transparent);
    color: var(--text-medium);
    font-size: 1em;
}

.pricing-card ul li:last-child {
    border-bottom: none;
}

.pricing-card .btn {
    margin-top: auto; /* Push button to bottom */
}

.premium-card {
    border-color: var(--accent-cyan);
    background-color: rgba(0, 255, 255, 0.05); /* Lighter background for premium */
    box-shadow: 0 0 20px rgba(0, 255, 255, 0.4), 0 0 30px rgba(138, 43, 226, 0.3);
    transform: translateY(-10px); /* Slightly raised */
    z-index: 2;
}
.premium-card:hover {
    border-color: var(--accent-violet);
    box-shadow: 0 0 30px rgba(0, 255, 255, 0.6), 0 0 40px rgba(138, 43, 226, 0.5);
    transform: translateY(-15px) scale(1.02);
}
.premium-card h3 {
    background: linear-gradient(90deg, var(--accent-cyan), var(--accent-violet));
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
}
.premium-card .price {
    color: var(--accent-cyan);
}


/* PROCESS SECTION - COMPARISON TABLE */
.process-section p {
    text-align: center;
    max-width: 900px;
    margin-left: auto;
    margin-right: auto;
    font-size: 1.1em;
}
.comparison-table-wrapper {
    margin-top: var(--spacing-md);
    overflow-x: auto; /* Ensure table is scrollable on smaller screens */
}
.comparison-table-wrapper h3 {
    text-align: center;
    margin-bottom: 30px;
    color: var(--accent-silver);
}

.comparison-table {
    width: 100%;
    border-collapse: collapse;
    text-align: left;
    min-width: 700px; /* Ensure table content doesn't get too cramped */
}

.comparison-table th, .comparison-table td {
    padding: 20px var(--card-padding);
    border-bottom: 1px solid var(--border-transparent);
    white-space: nowrap; /* Prevent text wrapping in cells */
}

.comparison-table thead th {
    background-color: rgba(0, 255, 255, 0.08); /* Cyan tint for header */
    color: var(--text-light);
    font-family: var(--font-heading);
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    position: sticky;
    top: 0;
    z-index: 1;
}

.comparison-table tbody tr:last-child td {
    border-bottom: none;
}

.comparison-table tbody tr:nth-child(even) {
    background-color: rgba(10, 10, 16, 0.4);
}
.comparison-table tbody tr:nth-child(odd) {
    background-color: rgba(10, 10, 16, 0.6);
}

.comparison-table tbody td {
    color: var(--text-medium);
}
.comparison-table tbody td:first-child {
    color: var(--text-light);
    font-weight: 500;
}
.comparison-table tbody td:nth-child(2) { /* Velocity Core column */
    color: var(--accent-cyan);
    font-weight: 600;
}
.comparison-table tbody tr:hover {
}
.comparison-table .h3-alt { /* For "Feature" column content */
    margin-bottom: 0;
    font-size: 1.1em;
    color: var(--text-light);
}


/* CASE STUDIES - MASONRY GRID */
.case-studies-section p {
    text-align: center;
    max-width: 900px;
    margin-left: auto;
    margin-right: auto;
    font-size: 1.1em;
}
.masonry-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(350px, 1fr)); /* 3-card layout */
    grid-gap: 30px;
    margin-top: var(--spacing-md);
    grid-auto-rows: minmax(min-content, max-content); /* For varying heights */
}

.case-study-card {
    padding: var(--card-padding);
    display: flex;
    flex-direction: column;
    height: auto; /* Allow varying heights */
}

.case-study-card img {
    max-width: 100%;
    height: auto;
    border-radius: var(--border-radius-sm);
    margin-bottom: 20px;
    object-fit: cover;
    display: block;
}
/* Adjust image height for varying card heights */
.case-study-card:nth-child(2) img { height: 250px; } /* Tall image */
.case-study-card:nth-child(4) img { height: 180px; } /* Shorter image */
.case-study-card:nth-child(5) img { height: 220px; } /* Medium image */


.case-study-card h3 {
    margin-bottom: 10px;
    color: var(--accent-cyan);
    font-size: 1.3em;
}
.case-study-card p {
    color: var(--text-medium);
    font-size: 0.95em;
    line-height: 1.5;
    flex-grow: 1; /* Pushes read more to bottom */
}
.case-study-card .read-more {
    font-family: var(--font-heading);
    color: var(--accent-violet);
    margin-top: 15px;
    font-size: 0.9em;
    font-weight: 600;
}
.case-study-card:hover .read-more {
    color: var(--accent-cyan);
}


/* SHOWCASE/HIGHLIGHTS - SUCCESS STORIES */
.success-stories-section p {
    text-align: center;
    max-width: 900px;
    margin-left: auto;
    margin-right: auto;
    font-size: 1.1em;
}
.success-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 30px;
    margin-top: var(--spacing-md);
}

.story-card {
    padding: var(--card-padding);
    text-align: center;
}

.story-card img {
    max-width: 100%;
    height: 200px; /* Fixed height for consistent image size in grid */
    object-fit: cover;
    border-radius: var(--border-radius-sm);
    margin-bottom: 25px;
    box-shadow: 0 5px 20px rgba(0, 0, 0, 0.4);
}

.story-card h3 {
    margin-bottom: 15px;
    color: var(--accent-violet);
    font-size: 1.4em;
}

.story-card p {
    font-style: italic;
    color: var(--text-light);
    margin-bottom: 20px;
    line-height: 1.5;
}

.story-card .author {
    font-family: var(--font-heading);
    color: var(--accent-silver);
    font-weight: 400;
    font-size: 0.9em;
    display: block; /* Ensure it's on its own line */
}


/* NEWSLETTER SECTION - SOCIAL INTEGRATION (REINTERPRETED) */
.newsletter-section p {
    text-align: center;
    max-width: 900px;
    margin-left: auto;
    margin-right: auto;
    font-size: 1.1em;
}
.newsletter-info {
    padding: var(--spacing-md);
    text-align: center;
    margin-top: var(--spacing-md);
    max-width: 800px;
    margin-left: auto;
    margin-right: auto;
}

.newsletter-info h3 {
    margin-bottom: 20px;
    font-size: 2em;
    background: linear-gradient(90deg, var(--accent-cyan), var(--accent-silver));
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
}

.newsletter-info p {
    font-size: 1.1em;
    margin-bottom: 30px;
}

/* TESTIMONIALS SECTION - QUOTE FOCUS */
.testimonials-section p {
    text-align: center;
    max-width: 900px;
    margin-left: auto;
    margin-right: auto;
    font-size: 1.1em;
}
.quote-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(350px, 1fr)); /* Allow for 3 cards per row */
    gap: 30px;
    margin-top: var(--spacing-md);
}

.quote-card {
    padding: var(--card-padding);
    text-align: center;
    display: flex;
    flex-direction: column;
    justify-content: center; /* Vertically center content */
}

.quote-card blockquote {
    font-size: 1.6em; /* Large quote text */
    font-style: italic;
    color: var(--text-light);
    line-height: 1.4;
    margin-bottom: 25px;
    position: relative;
}

.quote-card blockquote::before {
    content: "“";
    font-family: serif;
    font-size: 4em;
    position: absolute;
    top: -20px;
    left: 50%;
    transform: translateX(-50%);
    color: rgba(0, 255, 255, 0.2);
    z-index: 0;
}
.quote-card blockquote::after {
    content: "”";
    font-family: serif;
    font-size: 4em;
    position: absolute;
    bottom: -40px;
    right: 50%;
    transform: translateX(50%);
    color: rgba(138, 43, 226, 0.2);
    z-index: 0;
}

.quote-card cite {
    font-family: var(--font-heading);
    font-style: normal;
    color: var(--accent-silver);
    font-size: 1em;
    display: block;
    margin-top: auto; /* Push author to bottom */
}


/* TEAM SECTION - SLIDER CAROUSEL */
.team-section p {
    text-align: center;
    max-width: 900px;
    margin-left: auto;
    margin-right: auto;
    font-size: 1.1em;
}
.team-carousel-wrapper {
    position: relative;
    margin-top: var(--spacing-md);
    overflow: hidden;
    padding: var(--card-padding) 0;
}

.team-carousel {
    display: flex;
    transition: transform 0.5s ease-in-out;
    padding: 0 5%; /* Allow half items to show */
}

.team-member {
    flex: 0 0 calc(33.333% - 20px); /* 3 cards per row, accounting for gap */
    margin-right: 20px; /* Gap between members */
    padding: var(--card-padding);
    text-align: center;
    display: flex;
    flex-direction: column;
    align-items: center;
}

.team-member img {
    width: 150px;
    height: 150px;
    border-radius: 50%;
    object-fit: cover;
    margin-bottom: 20px;
    border: 3px solid var(--accent-cyan);
    box-shadow: 0 0 15px rgba(0, 255, 255, 0.3);
    transition: transform 0.3s ease-in-out, box-shadow 0.3s ease-in-out;
}

.team-member:hover img {
    transform: scale(1.05);
    box-shadow: 0 0 25px rgba(138, 43, 226, 0.5);
}

.team-member h3 {
    margin-bottom: 5px;
    color: var(--accent-violet);
    font-size: 1.4em;
}
.team-member p:first-of-type { /* Title/Role */
    font-family: var(--font-body);
    font-weight: 300;
    color: var(--accent-silver);
    font-size: 1.1em;
    margin-bottom: 15px;
}
.team-member .member-bio {
    font-size: 0.95em;
    color: var(--text-medium);
    line-height: 1.4;
    flex-grow: 1;
}

.carousel-nav {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    background-color: rgba(0, 0, 0, 0.7);
    color: var(--text-light);
    border: none;
    padding: 15px 10px;
    cursor: pointer;
    z-index: 10;
    border-radius: var(--border-radius-sm);
    transition: background-color 0.3s ease, color 0.3s ease;
    font-family: var(--font-heading);
    font-size: 0.9em;
    letter-spacing: 0.5px;
}

.carousel-nav:hover {
    background-color: var(--accent-cyan);
    color: var(--bg-dark);
}

.carousel-nav.prev-btn {
    left: 0;
    border-top-left-radius: 0;
    border-bottom-left-radius: 0;
}

.carousel-nav.next-btn {
    right: 0;
    border-top-right-radius: 0;
    border-bottom-right-radius: 0;
}


/* CALL-TO-ACTION - QUICK CONTACT (REINTERPRETED) */
.cta-section {
    padding-bottom: var(--spacing-lg); /* More space below */
}

.quick-contact {
    text-align: center;
    padding: var(--spacing-md);
    background: linear-gradient(135deg, rgba(0, 255, 255, 0.05), rgba(138, 43, 226, 0.05));
    border-radius: var(--border-radius-md);
    border: 1px solid var(--border-transparent);
    box-shadow: 0 0 30px rgba(0, 255, 255, 0.2);
}

.quick-contact .section-title {
    margin-bottom: 30px;
    font-size: 2.5em;
}

.quick-contact p {
    max-width: 900px;
    margin-left: auto;
    margin-right: auto;
    font-size: 1.1em;
    margin-bottom: 40px;
}

.cta-buttons {
    display: flex;
    justify-content: center;
    gap: 25px;
    flex-wrap: wrap; /* For responsiveness */
}

/* Footer */
.main-footer {
    background-color: var(--bg-dark);
    padding: 30px 0;
    text-align: center;
    border-top: 1px solid var(--border-transparent);
    color: var(--text-medium);
    font-size: 0.9em;
}

.main-footer .container {
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
}

.main-footer p {
    margin: 0;
    font-family: var(--font-body);
}

.footer-nav ul {
    display: flex;
    gap: 20px;
    margin-top: 10px;
}

.footer-nav a {
    color: var(--text-medium);
    font-size: 0.9em;
}

.footer-nav a:hover {
    color: var(--accent-cyan);
}


/* Responsive Design */
@media (max-width: 1024px) {
    h1 { font-size: 2.2em; }
    h2 { font-size: 1.8em; }
    h3 { font-size: 1.5em; }
    h4 { font-size: 1.2em; }
    .h3-alt { font-size: 1.2em;}

    .main-nav ul {
        gap: 20px;
    }
    .main-nav a {
        font-size: 1em;
    }

    .section-title {
        font-size: 2.2em;
        margin-bottom: 40px;
    }

    .intro-content .section-title {
        font-size: 2.8em;
    }

    .split-layout {
        flex-direction: column;
        text-align: center;
        gap: 40px;
        min-height: auto;
    }
    .intro-content {
        padding-right: 0;
    }
    .intro-image {
        order: -1; /* Image above content on mobile */
    }

    .pricing-table, .success-grid, .masonry-grid, .quote-grid {
        grid-template-columns: repeat(auto-fit, minmax(300px, 1fr)); /* Adjust for 2 columns */
    }
    .masonry-grid {
        grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    }
    .case-study-card img {
        height: 200px; /* Standardize height for better 2-column flow */
    }

    .team-carousel-wrapper {
        padding: 0; /* Remove horizontal padding */
    }
    .team-carousel {
        padding: 0 10%; /* Center items better */
    }
    .team-member {
        margin-right: 15px;
    }

    .carousel-nav {
        padding: 10px 8px;
        font-size: 0.8em;
    }

    .cta-buttons {
        flex-direction: column;
        gap: 15px;
    }
}

@media (max-width: 768px) {
    .main-header .container {
        flex-direction: column;
        gap: 15px;
    }
    .main-nav ul {
        flex-wrap: wrap;
        justify-content: center;
        gap: 15px;
    }

    .section-title {
        font-size: 1.8em;
        margin-bottom: 30px;
    }

    .intro-content .section-title {
        font-size: 2.2em;
    }

    .pricing-table, .success-grid, .masonry-grid, .quote-grid {
        grid-template-columns: 1fr; /* Single column on mobile */
    }
    .premium-card {
        transform: translateY(0); /* Remove special transform on mobile */
    }

    .comparison-table-wrapper {
        margin-top: var(--spacing-sm);
        padding: 0 10px;
    }
    .comparison-table th, .comparison-table td {
        padding: 15px 10px;
        white-space: normal; /* Allow text wrapping */
    }
    .comparison-table .h3-alt {
        font-size: 1em;
    }


    .team-carousel {
        padding: 0;
    }
    .team-member {
        flex: 0 0 100%; /* 1 card per row */
        margin-right: 0;
        margin-bottom: 20px; /* Add vertical spacing */
    }
    .team-carousel-wrapper {
        padding: 0 20px; /* Keep some side padding for carousel on mobile */
    }
    .carousel-nav {
    }
    .team-member img {
        width: 120px;
        height: 120px;
    }

    .quote-card blockquote {
        font-size: 1.3em;
    }

    .footer-nav ul {
        flex-direction: column;
        gap: 10px;
    }
    .main-footer .container {
        flex-direction: column;
        gap: 15px;
    }

    .layered-section {
        padding: var(--spacing-md) 0;
    }
    .intro-section {
        padding-top: var(--spacing-md); /* Adjust for header */
    }
}

/* Visible state helpers */
+ .animate-fade-in-up.visible,
+ .animate-fade-in-left.visible,
+ .animate-fade-in-right.visible,
+ .animate-bounce-y.visible,
+ .section-scroll-animate.visible,
+ .text-animate-up.visible {
    opacity: 1;
    transform: translateY(0);
}

/* Universal Icon Fixes for Buttons */
button svg, .carousel-next svg, .carousel-prev svg, .slider-next svg, .slider-prev svg,
.next svg, .prev svg, .tab-button svg, .tab-btn svg {
    display: inline-block;
    vertical-align: middle;
    pointer-events: none;
    width: 1em;
    height: 1em;
    fill: currentColor;
}

button i, .carousel-next i, .carousel-prev i, .slider-next i, .slider-prev i,
.next i, .prev i, .tab-button i, .tab-btn i {
    display: inline-block;
    vertical-align: middle;
    pointer-events: none;
    font-style: normal;
}

button .icon, .carousel-next .icon, .carousel-prev .icon,
.slider-next .icon, .slider-prev .icon, .tab-button .icon {
    display: inline-block;
    vertical-align: middle;
    pointer-events: none;
}

/* Ensure carousel buttons are clickable even with icons */
.carousel-next, .carousel-prev, .slider-next, .slider-prev,
.next, .prev, .next-btn, .prev-btn {
    cursor: pointer;
    position: relative;
}

.carousel-next *, .carousel-prev *, .slider-next *, .slider-prev *,
.next *, .prev *, .next-btn *, .prev-btn * {
    pointer-events: none;
}

/* Tab button icon fixes */
.tab-button, .tab-btn, .tab {
    cursor: pointer;
    position: relative;
}

.tab-button *, .tab-btn *, .tab * {
    pointer-events: none;
}

/* Ensure icons don't block clicks */
button > svg, button > i, button > .icon,
.carousel-next > svg, .carousel-prev > svg,
.tab-button > svg, .tab-button > i {
    pointer-events: none !important;
}

/* Safe visibility overrides (auto-added) */
:root, html, body, main, header, footer, section, .container, .content {
  opacity: 1 !important;
  visibility: visible !important;
}

/* Accessibility focus outlines */
:focus{outline:2px solid #5ac8fa;outline-offset:2px;}
:focus:not(:focus-visible){outline:none;}
