:root {
    /* Refined Brand Colors for Contrast */
    --bg-color: #050505;
    /* Deepest Black for Logo Contrast */
    --bg-secondary: #0a0b0c;
    --text-main: #ffffff;
    --text-muted: #BABBB1;
    --accent-primary: #008C95;
    --accent-secondary: #4FB3B8;
    /* Lighter/Brighter teal for glow */
    --gradient-main: linear-gradient(135deg, var(--accent-primary), var(--accent-secondary));
    --glass-bg: rgba(20, 20, 25, 0.4);
    /* More transparent, clearer glass */
    --glass-border: rgba(255, 255, 255, 0.08);
    /* White based border for pop */

    --font-heading: 'Outfit', sans-serif;
    --font-body: 'Inter', sans-serif;

    --spacing-container: 1200px;
    --header-height: 100px;
}

*,
*::before,
*::after {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
}

html,
body {
    max-width: 100%;
    overflow-x: hidden;
}

html {
    scroll-behavior: smooth;
    font-size: 16px;
}

body {
    background-color: var(--bg-color);
    color: var(--text-main);
    font-family: var(--font-body);
    line-height: 1.6;
}

h1,
h2,
h3,
h4,
h5,
h6 {
    font-family: var(--font-heading);
    font-weight: 700;
    line-height: 1.2;
    color: var(--text-main);
}

a {
    text-decoration: none;
    color: inherit;
    transition: all 0.3s ease;
}

ul {
    list-style: none;
}

/* Utilities */
.container {
    max-width: var(--spacing-container);
    margin: 0 auto;
    padding: 0 20px;
}

.gradient-text {
    background: var(--gradient-main);
    -webkit-background-clip: text;
    background-clip: text;
    color: transparent;
}

.glass-panel {
    background: var(--glass-bg);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    border: 1px solid var(--glass-border);
    border-radius: 16px;
    padding: 40px;
}

/* Header */
#main-header {
    height: var(--header-height);
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    z-index: 1000;
    background: rgba(5, 5, 5, 0.7);
    /* Darker semi-transparent bg */
    backdrop-filter: blur(15px);
    /* Stronger blur */
    -webkit-backdrop-filter: blur(15px);
    display: flex;
    align-items: center;
    border-bottom: 1px solid var(--glass-border);
    transition: background 0.3s ease;
}

#main-header .container {
    width: 100%;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.logo {
    display: flex;
    align-items: center;
}

.logo img {
    height: 70px;
    /* Reduced from 120px */
    width: auto;
    object-fit: contain;
}

.nav-links {
    display: flex;
    gap: 40px;
    align-items: center;
}

.nav-links a {
    font-size: 0.95rem;
    color: var(--text-muted);
}

.nav-links a:hover {
    color: var(--text-main);
}

.nav-links a.active:not(.lang-switch a) {
    color: var(--text-main);
    font-weight: 600;
}

.nav-links a.active:not(.lang-switch a)::after {
    content: '';
    position: absolute;
    bottom: -4px;
    left: 0;
    width: 100%;
    height: 2px;
    background: var(--gradient-main);
    border-radius: 2px;
}

.nav-links a {
    position: relative;
}

/* Language Switcher */
.lang-switch {
    display: flex;
    align-items: center;
    gap: 8px;
    margin-left: 10px;
    padding: 4px 12px;
    background: rgba(255, 255, 255, 0.05);
    border-radius: 20px;
    border: 1px solid rgba(255, 255, 255, 0.1);
}

.lang-switch a {
    font-size: 0.8rem;
    font-weight: 700 !important;
    color: var(--text-muted) !important;
    transition: all 0.3s ease;
}

.lang-switch a.active {
    color: white !important;
    background: var(--accent-primary);
    padding: 2px 8px;
    border-radius: 12px;
    box-shadow: 0 0 10px rgba(0, 140, 149, 0.3);
}

.lang-switch a:hover:not(.active) {
    color: var(--text-main) !important;
}

.lang-switch .sep {
    color: rgba(255, 255, 255, 0.2);
    font-size: 0.8rem;
}

.btn-primary-small,
.btn-primary,
.btn-secondary {
    display: inline-block;
    padding: 10px 24px;
    border-radius: 50px;
    font-weight: 600;
    font-size: 0.95rem;
    cursor: pointer;
    text-align: center;
}

.btn-primary-small {
    background: var(--gradient-main);
    color: white !important;
    padding: 8px 20px;
}

.btn-primary {
    background: var(--gradient-main);
    color: white;
    border: none;
}

.btn-primary:hover {
    transform: translateY(-2px);
    box-shadow: 0 10px 20px -10px rgba(59, 130, 246, 0.5);
}

.btn-secondary {
    background: transparent;
    border: 1px solid var(--glass-border);
    color: var(--text-main);
}

.btn-secondary:hover {
    background: var(--glass-bg);
    border-color: var(--text-muted);
}

.hamburger {
    display: none;
    cursor: pointer;
    width: 30px;
    height: 20px;
    position: relative;
    z-index: 1001;
}

.hamburger span {
    display: block;
    position: absolute;
    height: 2px;
    width: 100%;
    background: var(--text-main);
    border-radius: 2px;
    opacity: 1;
    left: 0;
    transform: rotate(0deg);
    transition: .25s ease-in-out;
}

.hamburger span:nth-child(1) {
    top: 0px;
}

.hamburger span:nth-child(2) {
    top: 9px;
}

.hamburger span:nth-child(3) {
    top: 18px;
}

.hamburger.active span:nth-child(1) {
    top: 9px;
    transform: rotate(135deg);
}

.hamburger.active span:nth-child(2) {
    opacity: 0;
    left: -60px;
}

.hamburger.active span:nth-child(3) {
    top: 9px;
    transform: rotate(-135deg);
}

/* Hero Section */
#hero {
    min-height: 100vh;
    display: flex;
    align-items: center;
    position: relative;
    padding-top: var(--header-height);
    overflow: hidden;
}

.hero-bg {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: -2;
    background:
        linear-gradient(rgba(0, 140, 149, 0.03) 1px, transparent 1px),
        linear-gradient(90deg, rgba(0, 140, 149, 0.03) 1px, transparent 1px);
    background-size: 50px 50px;
    perspective: 1000px;
    transform-style: preserve-3d;
    animation: gridMove 20s linear infinite;
    pointer-events: none;
}

@keyframes gridMove {
    0% {
        transform: translateY(0);
    }

    100% {
        transform: translateY(50px);
    }
}

.hero-bg::after {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    /* Gradient from top (transparent) to bottom (solid background color) for seamless transition */
    background: linear-gradient(to bottom, transparent 50%, var(--bg-color) 100%);
    pointer-events: none;
}

.hero-content {
    max-width: 800px;
    text-align: center;
    margin: 0 auto;
}

.eyebrow {
    font-family: var(--font-heading);
    text-transform: uppercase;
    letter-spacing: 0.1em;
    font-size: 0.8rem;
    color: var(--accent-primary);
    margin-bottom: 20px;
    display: block;
}

#hero h1 {
    font-size: 4rem;
    margin-bottom: 24px;
    letter-spacing: -0.03em;
}

#hero p {
    font-size: 1.25rem;
    color: var(--text-muted);
    margin-bottom: 40px;
    max-width: 600px;
    margin-left: auto;
    margin-right: auto;
}

.hero-buttons {
    display: flex;
    gap: 20px;
    justify-content: center;
}

/* Floating Shapes Animation */
.anim-shape {
    position: absolute;
    border-radius: 50%;
    filter: blur(80px);
    z-index: -1;
    opacity: 0.6;
    animation: float 20s infinite alternate;
}

.shape-1 {
    width: 400px;
    height: 400px;
    background: var(--accent-primary);
    top: -100px;
    right: -100px;
    animation-delay: 0s;
}

.shape-2 {
    width: 300px;
    height: 300px;
    background: var(--accent-secondary);
    bottom: 10%;
    left: -50px;
    animation-delay: -5s;
    animation-duration: 25s;
}

.shape-3 {
    width: 200px;
    height: 200px;
    background: #3F4443;
    /* Brand Dark Gray */
    top: 40%;
    right: 20%;
    opacity: 0.4;
    animation-delay: -10s;
}

@keyframes float {
    0% {
        transform: translate(0, 0) rotate(0deg);
        scale: 1;
    }

    33% {
        transform: translate(30px, -50px) rotate(10deg) scale(1.1);
    }

    66% {
        transform: translate(-20px, 20px) rotate(-5deg) scale(0.9);
    }

    100% {
        transform: translate(0, 0) rotate(0deg) scale(1);
    }
}

/* Hero Canvas Animation */
#hero-canvas {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: -1;
    /* Behind content but in front of bg shapes */
    opacity: 0.3;
    /* Subtle effect */
    pointer-events: none;
}

.scroll-indicator {
    position: absolute;
    bottom: 40px;
    left: 50%;
    transform: translateX(-50%);
    width: 24px;
    height: 40px;
    border: 2px solid var(--text-muted);
    border-radius: 12px;
    opacity: 0.5;
}

.scroll-indicator span {
    display: block;
    width: 2px;
    height: 8px;
    background: var(--text-main);
    margin: 6px auto 0;
    border-radius: 2px;
    animation: scrollSlide 2s infinite;
}

@keyframes scrollSlide {
    0% {
        transform: translateY(0);
        opacity: 1;
    }

    100% {
        transform: translateY(12px);
        opacity: 0;
    }
}

/* Partner Marquee */
#partners {
    padding: 40px 0;
    background: rgba(25, 25, 25, 0.5);
    border-top: 1px solid var(--glass-border);
    border-bottom: 1px solid var(--glass-border);
    overflow: hidden;
    backdrop-filter: blur(10px);
}

.marquee-wrapper {
    width: 100%;
    overflow: hidden;
    position: relative;
    mask-image: linear-gradient(to right, transparent, black 10%, black 90%, transparent);
    -webkit-mask-image: linear-gradient(to right, transparent, black 10%, black 90%, transparent);
}

.marquee-content {
    display: flex;
    gap: 80px;
    width: max-content;
    animation: marquee-scroll 40s linear infinite;
    align-items: center;
}

.marquee-content:hover {
    animation-play-state: paused;
}

.marquee-content a {
    display: block;
    transition: transform 0.3s ease;
    opacity: 0.6;
}

.marquee-content a:hover {
    transform: scale(1.05);
    opacity: 1;
}

.marquee-content img {
    height: 55px;
    /* Slightly larger than original 45px, but small enough for marquee */
    width: auto;
    filter: grayscale(100%);
    transition: filter 0.3s ease;
}

.marquee-content a:hover img {
    filter: grayscale(0%);
}

@keyframes marquee-scroll {
    from {
        transform: translateX(0);
    }

    to {
        transform: translateX(-33.333%);
    }
}

/* Services */
#services {
    padding: 120px 0;
    position: relative;
}

.section-header {
    text-align: center;
    margin-bottom: 80px;
}

.section-header h2 {
    font-size: 2.5rem;
    margin-bottom: 16px;
}

.section-header p {
    color: var(--text-muted);
    font-size: 1.1rem;
}

/* Decorative Hexagons */
.deco-hex {
    position: absolute;
    width: 60px;
    height: 35px;
    background-color: var(--glass-border);
    border-left: 2px solid var(--accent-primary);
    border-right: 2px solid var(--accent-primary);
    z-index: -1;
    opacity: 0.3;
    animation: float 15s infinite reverse;
}

.deco-hex::before,
.deco-hex::after {
    content: "";
    position: absolute;
    width: 0;
    border-left: 30px solid transparent;
    border-right: 30px solid transparent;
}

.deco-hex::before {
    bottom: 100%;
    border-bottom: 17.5px solid var(--glass-border);
}

.deco-hex::after {
    top: 100%;
    width: 0;
    border-top: 17.5px solid var(--glass-border);
}

.hex-1 {
    top: -40px;
    right: -20px;
    animation-delay: 2s;
    transform: rotate(30deg);
}

.hex-2 {
    bottom: -30px;
    left: -10px;
    animation-delay: 5s;
    scale: 1.5;
}

.hex-3 {
    top: 20%;
    left: -30px;
    animation-delay: 1s;
    transform: rotate(-15deg);
    opacity: 0.15;
}

.hex-4 {
    top: 10%;
    right: 5%;
    animation-delay: 7s;
    scale: 0.8;
}

.hex-5 {
    bottom: -20px;
    right: -20px;
    animation-delay: 3s;
    scale: 1.2;
}

.hex-6 {
    top: -10px;
    left: -40px;
    animation-delay: 8s;
    transform: rotate(45deg);
}

.hex-7 {
    top: 15%;
    left: 2%;
    animation-delay: 4s;
}

.hex-8 {
    bottom: 10%;
    right: -20px;
    animation-delay: 9s;
    scale: 1.8;
    opacity: 0.2;
}

.hex-9 {
    top: 5%;
    right: 15%;
    animation-delay: 0s;
}

.hex-10 {
    bottom: -30px;
    left: 5%;
    animation-delay: 6s;
    transform: rotate(-30deg);
    scale: 0.7;
}

.hex-11 {
    top: 100px;
    left: -30px;
    animation-delay: 11s;
}

.hex-12 {
    bottom: 40px;
    right: 10%;
    animation-delay: 2s;
    transform: rotate(20deg);
}

.hex-13 {
    top: -50px;
    right: 20%;
    animation-delay: 5s;
    scale: 2.5;
    opacity: 0.1;
}

.hex-14 {
    bottom: 20%;
    left: -20px;
    animation-delay: 13s;
}

.services-grid {
    position: relative;
    /* Context for hex */
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 30px;
}

.service-card {
    position: relative;
    background: linear-gradient(145deg, rgba(255, 255, 255, 0.03) 0%, rgba(255, 255, 255, 0.01) 100%);
    border: 1px solid var(--glass-border);
    transition: all 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275);
    overflow: hidden;
    padding: 40px 30px;
}

.service-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 0%;
    height: 2px;
    background: var(--gradient-main);
    transition: width 0.4s ease;
}

.service-card:hover {
    transform: translateY(-10px);
    border-color: rgba(0, 140, 149, 0.3);
    box-shadow: 0 20px 40px -20px rgba(0, 140, 149, 0.2);
}

.service-card:hover::before {
    width: 100%;
}

.service-card .icon {
    margin-bottom: 24px;
    color: var(--accent-primary);
    transition: transform 0.4s ease, color 0.4s ease;
}

.service-card .icon svg {
    filter: drop-shadow(0 0 8px rgba(0, 140, 149, 0.3));
}

.service-card:hover .icon {
    transform: scale(1.1);
    color: var(--accent-secondary);
}

.service-card h3 {
    margin-bottom: 16px;
    font-size: 1.4rem;
}

.service-card p {
    color: var(--text-muted);
}

/* Philosophy / Values */
#philosophy {
    padding: 120px 0;
    position: relative;
    overflow: hidden;
}

/* Background blob for visual interest */
#philosophy::before {
    content: '';
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 600px;
    height: 600px;
    background: radial-gradient(circle, rgba(0, 140, 149, 0.1) 0%, transparent 70%);
    z-index: -1;
    pointer-events: none;
}

.values-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 30px;
    justify-content: center;
}

/* Make the grid look special: Span relevant items or center them */
@media (min-width: 992px) {

    /* Use Flexbox for easy centering of the last row (3 items top, 2 items bottom) */
    .values-grid {
        display: flex;
        flex-wrap: wrap;
        justify-content: center;
        max-width: 1200px;
        margin: 0 auto;
    }

    .value-card {
        flex: 0 1 calc(33.333% - 20px);
        /* 3 items per row minus gap approximation */
        min-width: 300px;
        max-width: 350px;
        /* Prevent them from getting too wide in row of 2 */
    }
}

.value-card {
    background: rgba(255, 255, 255, 0.02);
    border: 1px solid var(--glass-border);
    backdrop-filter: blur(5px);
    border-radius: 16px;
    padding: 40px 30px;
    text-align: center;
    transition: all 0.3s ease;
    position: relative;
    overflow: hidden;
}

.value-card:hover {
    transform: translateY(-8px);
    background: rgba(255, 255, 255, 0.05);
    border-color: rgba(0, 140, 149, 0.4);
    box-shadow: 0 10px 30px -10px rgba(0, 0, 0, 0.5);
}

.value-icon {
    width: 60px;
    height: 60px;
    margin: 0 auto 20px;
    background: linear-gradient(135deg, rgba(0, 140, 149, 0.1), rgba(0, 140, 149, 0.05));
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--accent-primary);
    border: 1px solid var(--glass-border);
    transition: all 0.3s ease;
}

.value-card:hover .value-icon {
    transform: scale(1.1) rotate(5deg);
    color: #fff;
    background: var(--gradient-main);
    border-color: transparent;
}

.value-card h3 {
    font-size: 1.3rem;
    margin-bottom: 15px;
    font-weight: 600;
}

.value-card p {
    color: var(--text-muted);
    font-size: 0.95rem;
    line-height: 1.6;
}

/* About Section */
#about {
    padding: 120px 0;
    background: linear-gradient(to bottom, var(--bg-color), var(--bg-secondary));
    position: relative;
}

/* Services Split View Layout */
.services-wrapper {
    display: flex;
    gap: 40px;
    max-width: 1100px;
    /* Wider for split */
    margin: 0 auto;
    position: relative;
    z-index: 2;
}

.services-menu {
    flex: 1;
    display: flex;
    flex-direction: column;
    gap: 15px;
}

.service-tab {
    padding: 20px;
    background: rgba(255, 255, 255, 0.03);
    border: 1px solid var(--glass-border);
    border-radius: 12px;
    cursor: pointer;
    transition: all 0.3s ease;
    display: flex;
    align-items: center;
}

.service-tab:hover {
    background: rgba(255, 255, 255, 0.08);
    transform: translateX(5px);
}

.service-tab.active {
    background: var(--gradient-main);
    border-color: transparent;
    color: white;
}

.service-tab .icon {
    margin-right: 15px;
    opacity: 0.8;
}

.service-tab.active .icon {
    opacity: 1;
    color: white;
    /* Force white icon in active state */
}

.service-tab h3 {
    font-size: 1.1rem;
    margin: 0;
    font-weight: 500;
}

.services-preview {
    flex: 1.5;
    min-height: 400px;
    display: flex;
    flex-direction: column;
    justify-content: center;
    position: relative;
    /* Context for absolute visuals if needed */
}

#preview-content {
    animation: fadeIn 0.4s ease;
}

@keyframes fadeIn {
    from {
        opacity: 0;
        transform: translateY(10px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}

#preview-content h2 {
    font-size: 2rem;
    margin-bottom: 20px;
    color: var(--accent-primary);
}

#preview-content p {
    font-size: 1.1rem;
    line-height: 1.8;
    color: var(--text-muted);
    margin-bottom: 30px;
}

#preview-content ul {
    list-style: none;
    padding: 0;
}

#preview-content li {
    padding-left: 25px;
    position: relative;
    margin-bottom: 12px;
    color: var(--text-main);
}

#preview-content li::before {
    content: '➔';
    position: absolute;
    left: 0;
    color: var(--accent-primary);
}

@media (max-width: 800px) {
    .services-wrapper {
        flex-direction: column;
    }

    .services-preview {
        min-height: auto;
    }
}

/* Previous accordion styles removed... */
/* Services Accordion Layout */
.services-list {
    display: flex;
    flex-direction: column;
    gap: 20px;
    max-width: 900px;
    margin: 0 auto;
    position: relative;
    z-index: 2;
    /* Content above hexes */
}

.service-item {
    background: linear-gradient(145deg, rgba(255, 255, 255, 0.03) 0%, rgba(255, 255, 255, 0.01) 100%);
    border: 1px solid var(--glass-border);
    border-radius: 12px;
    overflow: hidden;
    cursor: pointer;
    transition: all 0.3s ease;
}

.service-header {
    display: flex;
    align-items: center;
    padding: 25px 30px;
    justify-content: space-between;
}

.service-header .icon {
    color: var(--accent-primary);
    margin-right: 20px;
    display: flex;
    align-items: center;
}

.service-header h3 {
    flex-grow: 1;
    font-size: 1.3rem;
    margin: 0;
    font-weight: 500;
}

.chevron {
    color: var(--text-muted);
    font-weight: bold;
    transition: transform 0.3s ease;
}

.service-item.active {
    background: rgba(255, 255, 255, 0.05);
    /* Highlight active */
    border-color: var(--accent-primary);
}

.service-item.active .chevron {
    transform: rotate(180deg);
    color: var(--accent-primary);
}

.service-body {
    max-height: 0;
    overflow: hidden;
    transition: max-height 0.4s ease-out;
    background: rgba(0, 0, 0, 0.2);
    padding: 0 30px;
    /* Vert spacing added by JS expansion height, horiz padding fixed */
    opacity: 0;
}

.service-item.active .service-body {
    padding-bottom: 30px;
    /* Look and feel spacing */
    opacity: 1;
    transition: max-height 0.4s ease-in, opacity 0.4s ease-in;
}

.service-body p {
    color: var(--text-muted);
    font-size: 1rem;
    line-height: 1.6;
    margin-bottom: 20px;
}

.service-body h4 {
    font-size: 1.1rem;
    color: var(--text-main);
    margin-bottom: 15px;
}

.service-body ul {
    list-style: none;
    padding-left: 0;
}

.service-body li {
    position: relative;
    padding-left: 20px;
    margin-bottom: 8px;
    color: var(--text-muted);
    font-size: 0.95rem;
}

.service-body li::before {
    content: '➔';
    position: absolute;
    left: 0;
    color: var(--accent-primary);
    font-size: 0.8rem;
    top: 3px;
}

.about-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 80px;
    align-items: center;
}

.about-image {
    position: relative;
}

.profile-img {
    width: 100%;
    height: 750px;
    /* Taller frame to show more of the image */
    object-fit: cover;
    /* Back to filling the frame */
    object-position: top center;
    /* Prioritize head visibility */
    background: var(--glass-bg);
    border-radius: 20px;
    border: 1px solid var(--glass-border);
    box-shadow: 0 20px 40px -10px rgba(0, 0, 0, 0.5);
    filter: grayscale(20%) contrast(1.1);
    /* Slight mood editing */
    transition: filter 0.5s ease;
}

.profile-img:hover {
    filter: grayscale(0%) contrast(1);
}

.about-text h2 {
    font-size: 2.5rem;
    /* Slightly smaller for better balance */
    margin-bottom: 24px;
    line-height: 1.1;
}

.about-text .eyebrow {
    font-size: 0.9rem;
    color: var(--accent-primary);
    text-transform: uppercase;
    letter-spacing: 2px;
    margin-bottom: 10px;
    display: block;
    font-weight: 600;
}

/* Unified Paragraph Style */
.about-text p {
    color: var(--text-muted);
    font-size: 0.95rem;
    line-height: 1.6;
}

/* Service Detail Modal */
.modal-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.8);
    backdrop-filter: blur(8px);
    z-index: 1000;
    display: flex;
    justify-content: center;
    align-items: center;
    opacity: 0;
    pointer-events: none;
    transition: opacity 0.3s ease;
}

.modal-overlay.active {
    opacity: 1;
    pointer-events: all;
}

.modal-content {
    background: var(--glass-bg);
    border: 1px solid var(--glass-border);
    padding: 60px;
    border-radius: 20px;
    max-width: 800px;
    width: 90%;
    position: relative;
    transform: scale(0.9) translateY(20px);
    transition: transform 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275);
    box-shadow: 0 50px 100px -20px rgba(0, 0, 0, 0.5);
}

.modal-overlay.active .modal-content {
    transform: scale(1) translateY(0);
}

.modal-close {
    position: absolute;
    top: 20px;
    right: 30px;
    background: none;
    border: none;
    color: var(--text-muted);
    font-size: 2rem;
    cursor: pointer;
    transition: color 0.3s ease;
}

.modal-close:hover {
    color: var(--accent-primary);
}

.modal-icon svg {
    width: 64px;
    height: 64px;
    margin-bottom: 20px;
    color: var(--accent-primary);
}

.modal-title {
    font-size: 2.5rem;
    margin-bottom: 24px;
    background: var(--gradient-main);
    -webkit-background-clip: text;
    background-clip: text;
    -webkit-text-fill-color: transparent;
}

.modal-text p {
    font-size: 1.1rem;
    line-height: 1.8;
    color: var(--text-muted);
    margin-bottom: 20px;
}

.modal-text h4 {
    color: var(--text-main);
    font-size: 1.3rem;
    margin-top: 30px;
    margin-bottom: 15px;
}

.modal-text ul {
    list-style: none;
    padding-left: 0;
}

.modal-text li {
    position: relative;
    padding-left: 25px;
    margin-bottom: 10px;
    color: var(--text-muted);
}

.modal-text li::before {
    content: '➔';
    position: absolute;
    left: 0;
    color: var(--accent-primary);
}

.about-text .lead {
    font-size: 1.1rem;
    /* Only slightly larger */
    color: var(--text-main);
    /* White for the intro, but less contrast diff */
    margin-bottom: 30px;
    font-weight: 400;
}

/* Remove color from strong tags for cleaner look */
.about-text strong {
    color: var(--text-main);
    /* White instead of Teal */
    font-weight: 600;
}

@media (max-width: 900px) {
    .about-grid {
        grid-template-columns: 1fr;
        gap: 40px;
    }

    .image-placeholder {
        height: 350px;
    }
}

.abstract-shape {
    width: 100%;
    height: 400px;
    background: radial-gradient(circle at 30% 30%, var(--accent-secondary), transparent 60%),
        radial-gradient(circle at 70% 70%, var(--accent-primary), transparent 60%);
    opacity: 0.2;
    border-radius: 30% 70% 70% 30% / 30% 30% 70% 70%;
    filter: blur(60px);
    animation: morph 10s infinite alternate;
}

@keyframes morph {
    0% {
        border-radius: 30% 70% 70% 30% / 30% 30% 70% 70%;
    }

    100% {
        border-radius: 70% 30% 30% 70% / 70% 70% 30% 30%;
    }
}

/* Contact */
#contact {
    padding: 120px 0;
    position: relative;
}

.contact-wrapper {
    display: grid;
    grid-template-columns: 1fr 1.5fr;
    gap: 60px;
    padding: 60px;
    position: relative;
}

.contact-info h2 {
    font-size: 2.5rem;
    margin-bottom: 16px;
}

.contact-info p {
    color: var(--text-muted);
    margin-bottom: 40px;
}

address {
    font-style: normal;
    color: var(--text-main);
    line-height: 1.8;
}

address a {
    color: var(--accent-primary);
    display: block;
    margin-top: 2px;
}

.form-group {
    margin-bottom: 24px;
}

.form-group label {
    display: block;
    margin-bottom: 8px;
    font-size: 0.9rem;
    color: var(--text-muted);
}

.form-group input,
.form-group textarea {
    width: 100%;
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid var(--glass-border);
    border-radius: 8px;
    padding: 12px 16px;
    color: var(--text-main);
    font-family: inherit;
    transition: border-color 0.3s;
}

.form-group input:focus,
.form-group textarea:focus {
    outline: none;
    border-color: var(--accent-primary);
}

.consent-group {
    display: flex;
    align-items: flex-start;
    gap: 12px;
    margin-top: 15px;
    margin-bottom: 25px;
}

.consent-group input[type="checkbox"] {
    width: 18px;
    height: 18px;
    margin-top: 3px;
    flex-shrink: 0;
    accent-color: var(--accent-primary);
    cursor: pointer;
}

.consent-group label {
    margin-bottom: 0;
    font-size: 0.85rem;
    line-height: 1.5;
    color: var(--text-muted);
    cursor: pointer;
}

.consent-group label a {
    color: var(--accent-primary);
    text-decoration: underline;
}

.consent-group label a:hover {
    color: var(--accent-secondary);
}

.full-width {
    width: 100%;
}

/* Footer */
footer {
    padding: 60px 0;
    border-top: 1px solid var(--glass-border);
    text-align: center;
}

.footer-logo {
    font-family: var(--font-heading);
    font-weight: 700;
    font-size: 1.2rem;
    margin-bottom: 20px;
}

.footer-links {
    display: flex;
    justify-content: center;
    gap: 30px;
    margin-bottom: 30px;
}

.footer-links a {
    color: var(--text-muted);
    font-size: 0.9rem;
}

.copyright {
    color: var(--text-muted);
    font-size: 0.8rem;
    opacity: 0.5;
}

/* Animations */
.fade-in-up {
    opacity: 0;
    transform: translateY(20px);
    animation: fadeInUp 0.8s forwards;
}

.delay-1 {
    animation-delay: 0.2s;
}

.delay-2 {
    animation-delay: 0.4s;
}

.delay-3 {
    animation-delay: 0.6s;
}

@keyframes fadeInUp {
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* Responsive */
@media (max-width: 900px) {
    #hero h1 {
        font-size: 3rem;
    }

    .philosophy-grid {
        grid-template-columns: 1fr;
    }

    .contact-wrapper {
        grid-template-columns: 1fr;
        padding: 40px;
    }
}

@media (max-width: 768px) {
    .nav-links {
        position: fixed;
        top: 0;
        right: -100%;
        height: 100vh;
        width: 100%;
        background: rgba(5, 5, 5, 0.98);
        backdrop-filter: blur(20px);
        -webkit-backdrop-filter: blur(20px);
        flex-direction: column;
        justify-content: center;
        align-items: center;
        gap: 40px;
        transition: right 0.4s cubic-bezier(0.77, 0, 0.175, 1);
        z-index: 1000;
        padding-bottom: 80px;
        /* Space for bottom interaction */
    }

    .nav-links.active {
        right: 0;
        display: flex;
        /* Ensure flex is active when class is present */
    }

    .nav-links li {
        opacity: 0;
        transform: translateY(20px);
        transition: all 0.3s ease;
    }

    .nav-links.active li {
        opacity: 1;
        transform: translateY(0);
        transition-delay: 0.2s;
        /* Stagger effect handled by JS or simple delay */
    }

    /* Simple stagger delays via CSS */
    .nav-links.active li:nth-child(1) {
        transition-delay: 0.1s;
    }

    .nav-links.active li:nth-child(2) {
        transition-delay: 0.2s;
    }

    .nav-links.active li:nth-child(3) {
        transition-delay: 0.3s;
    }

    .nav-links.active li:nth-child(4) {
        transition-delay: 0.4s;
    }

    .nav-links.active li:nth-child(5) {
        transition-delay: 0.5s;
    }

    .nav-links.active li:nth-child(6) {
        transition-delay: 0.6s;
    }

    .nav-links.active li:nth-child(7) {
        transition-delay: 0.7s;
    }

    .nav-links a {
        font-size: 1.5rem;
        font-weight: 500;
    }

    .hamburger {
        display: block;
    }

    #hero h1 {
        font-size: 2.5rem;
        line-height: 1.2;
    }

    .hero-content p {
        font-size: 1rem;
    }

    .logo img {
        height: 50px;
        /* Smaller logo on mobile */
    }

    /* Fix shapes on mobile to prevent overflow/visual clutter */
    .anim-shape {
        display: none;
        /* Often cleaner to hide complex shapes on mobile */
    }

    /* Or restrict them if needed */
    /*
    .shape-1 { top: -50px; right: -50px; width: 200px; height: 200px; }
    .shape-2 { bottom: 5%; left: -20px; width: 150px; height: 150px; }
    */
}

/* Scroll to Top Button */
#scrollToTopBtn {
    position: fixed;
    bottom: 30px;
    right: 30px;
    width: 50px;
    height: 50px;
    background: var(--gradient-main);
    color: white;
    border: none;
    border-radius: 50%;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 0;
    visibility: hidden;
    transform: translateY(20px);
    transition: all 0.3s ease;
    z-index: 999;
    box-shadow: 0 4px 15px rgba(0, 140, 149, 0.4);
}

#scrollToTopBtn:hover {
    transform: translateY(-5px);
    box-shadow: 0 8px 25px rgba(0, 140, 149, 0.6);
}

#scrollToTopBtn.visible {
    opacity: 1;
    visibility: visible;
    transform: translateY(0);
}

/* Cookie Banner (Modal Overlay) */
.cookie-banner {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 2000;
    display: flex;
    justify-content: center;
    align-items: center;
    background: rgba(0, 0, 0, 0.85);
    /* Dark backdrop blocking interaction */
    backdrop-filter: blur(5px);
    opacity: 0;
    visibility: hidden;
    pointer-events: none;
    /* Prevent blocking when not visible */
    transition: all 0.4s ease;
}

.cookie-banner.visible {
    opacity: 1;
    visibility: visible;
    pointer-events: auto;
    /* Enable interaction when visible */
}

.cookie-content {
    background: rgba(20, 20, 25, 0.95);
    max-width: 500px;
    width: 90%;
    padding: 40px;
    box-shadow: 0 20px 50px rgba(0, 0, 0, 0.8);
    border: 1px solid var(--glass-border);
    border-radius: 20px;
    text-align: center;
    transform: scale(0.95);
    transition: transform 0.4s ease;
}

.cookie-banner.visible .cookie-content {
    transform: scale(1);
}

.cookie-content h3 {
    margin-bottom: 15px;
    font-size: 1.5rem;
    color: var(--text-main);
}

.cookie-content p {
    font-size: 0.95rem;
    color: var(--text-muted);
    margin-bottom: 25px;
    line-height: 1.6;
}

/* Links inside cookie modal for legal compliance */
.cookie-content p a {
    color: var(--accent-primary);
    text-decoration: underline;
    opacity: 0.8;
}

.cookie-content p a:hover {
    opacity: 1;
}

.cookie-settings {
    margin-bottom: 20px;
    border-top: 1px solid var(--glass-border);
    border-bottom: 1px solid var(--glass-border);
    padding: 15px 0;
}

.cookie-option {
    display: flex;
    align-items: center;
    margin-bottom: 10px;
}

.cookie-option:last-child {
    margin-bottom: 0;
}

.cookie-option input {
    margin-right: 10px;
    width: 18px;
    height: 18px;
    accent-color: var(--accent-primary);
}

.cookie-option label {
    font-size: 0.9rem;
    color: var(--text-main);
}

.cookie-buttons {
    display: flex;
    flex-direction: column;
    /* Stack buttons on mobile/modal for clear hierarchy */
    gap: 10px;
}

.cookie-buttons button {
    width: 100%;
    /* Full width buttons */
    padding: 12px;
    font-size: 1rem;
}

@media (min-width: 600px) {
    .cookie-buttons {
        flex-direction: row;
        /* Side by side on larger screens */
    }
}

/* Portfolio Section */
#portfolio {
    padding: 120px 0;
    position: relative;
}

.portfolio-filters {
    display: flex;
    justify-content: center;
    gap: 15px;
    margin-bottom: 50px;
    flex-wrap: wrap;
    /* Allow wrapping on small screens */
}

@media (max-width: 600px) {
    .portfolio-filters {
        gap: 10px;
        /* Tighter gap on mobile */
    }

    .filter-btn {
        padding: 8px 16px;
        /* Slightly more compact */
        font-size: 0.85rem;
    }
}

.filter-btn {
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid var(--glass-border);
    color: var(--text-muted);
    padding: 10px 25px;
    border-radius: 30px;
    cursor: pointer;
    transition: all 0.3s ease;
    font-size: 0.9rem;
}

.filter-btn:hover,
.filter-btn.active {
    background: var(--accent-primary);
    color: white;
    border-color: transparent;
    box-shadow: 0 5px 15px rgba(0, 140, 149, 0.3);
}

.portfolio-container {
    position: relative;
    padding: 0 50px;
    margin: 0 -15px;
}

.portfolio-carousel-wrapper {
    position: relative;
    overflow-x: auto;
    scroll-snap-type: x mandatory;
    scroll-behavior: smooth;
    -webkit-overflow-scrolling: touch;
    scrollbar-width: none;
    -ms-overflow-style: none;
}

.portfolio-carousel-wrapper::-webkit-scrollbar {
    display: none;
}

.portfolio-grid {
    display: flex;
    gap: 0;
}

.portfolio-item {
    flex: 0 0 33.333%;
    padding: 0 15px;
    transition: all 0.5s ease;
    scroll-snap-align: start;
}

@media (max-width: 1024px) {
    .portfolio-item {
        flex: 0 0 50%;
    }
}

@media (max-width: 600px) {
    .portfolio-item {
        flex: 0 0 100%;
    }

    .portfolio-carousel-wrapper {
        padding: 0 40px;
    }
}

.carousel-nav {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    width: 44px;
    height: 44px;
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid var(--glass-border);
    backdrop-filter: blur(10px);
    border-radius: 50%;
    color: white;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    z-index: 100;
    transition: all 0.3s ease;
}

.carousel-nav:hover {
    background: var(--accent-primary);
    border-color: transparent;
    box-shadow: 0 0 20px rgba(0, 140, 149, 0.4);
}

.carousel-nav.prev {
    left: 0;
}

.carousel-nav.next {
    right: 0;
}

.carousel-nav:disabled {
    opacity: 0.3;
    pointer-events: none;
}

/* Portfolio & Mockup Display */
.portfolio-card {
    position: relative;
    padding: 0;
    height: 400px;
    display: flex;
    overflow: hidden;
    border-radius: 20px;
}

.portfolio-icon-card {
    background: linear-gradient(135deg, rgba(255, 255, 255, 0.05) 0%, rgba(255, 255, 255, 0) 100%);
    display: flex;
    align-items: center;
    justify-content: center;
}

.portfolio-icon-container {
    width: 80px;
    height: 80px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--accent-primary);
    filter: drop-shadow(0 0 15px rgba(0, 140, 149, 0.3));
}

.project-icon {
    width: 100%;
    height: 100%;
}

.portfolio-img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.6s ease;
}

.portfolio-card:hover .portfolio-img {
    transform: scale(1.05);
}

.portfolio-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    /* Gradient protection */
    background: linear-gradient(to top,
            rgba(0, 0, 0, 0.95) 0%,
            rgba(0, 0, 0, 0.4) 15%,
            transparent 40%);
    display: flex;
    align-items: flex-end;
    /* Keep at bottom of card */
    padding: 0;
    /* Padding moved to overlay-content */
    opacity: 1;
    transition: all 0.6s cubic-bezier(0.4, 0, 0.2, 1);
    z-index: 10;
}

/* Balanced Glass-Bar - compact but with breathing room */
.portfolio-overlay::after {
    content: "";
    position: absolute;
    bottom: 0;
    left: 0;
    width: 100%;
    height: 115px;
    /* Compact height with gap at the top */
    backdrop-filter: blur(15px) brightness(0.4);
    -webkit-backdrop-filter: blur(15px) brightness(0.4);
    border-top: 1px solid rgba(255, 255, 255, 0.1);
    z-index: -1;
    pointer-events: none;
    transition: all 0.6s cubic-bezier(0.4, 0, 0.2, 1);
}

.portfolio-card:hover .portfolio-overlay {
    background: rgba(5, 5, 7, 0.9);
}

.portfolio-card:hover .portfolio-overlay::after {
    height: 100%;
    backdrop-filter: blur(20px) brightness(0.4);
}

.overlay-content {
    width: 100%;
    height: 115px;
    /* Matches fixed bar height */
    padding: 22px 25px 20px;
    /* Precise top padding for uniform gap */
    display: flex;
    flex-direction: column;
    justify-content: flex-start;
    transition: all 0.6s ease;
}

.portfolio-card:hover .overlay-content {
    height: 100%;
    padding-top: 40px;
}

.category {
    font-size: 0.7rem;
    text-transform: uppercase;
    letter-spacing: 2px;
    color: var(--accent-primary);
    margin-bottom: 5px;
    display: block;
    font-weight: 800;
    /* Added text-shadow for readability */
    text-shadow: 0 2px 4px rgba(0, 0, 0, 0.8);
}

.hidden-gotcha {
    display: none !important;
    position: absolute;
    left: -9999px;
    top: -9999px;
    height: 0;
    width: 0;
    overflow: hidden;
    z-index: -1;
}

.overlay-content h3 {
    margin: 0;
    font-size: 1.3rem;
    /* Slightly smaller for compactness */
    color: white;
    line-height: 1.2;
    /* Compact min-height for horizontal alignment */
    min-height: 2.8rem;
    display: flex;
    align-items: flex-start;
    transition: all 0.4s ease;
    text-shadow: 0 2px 8px rgba(0, 0, 0, 0.9);
}

.portfolio-card:hover h3 {
    min-height: auto;
    margin-bottom: 12px;
}

.overlay-content p,
.impact {
    max-height: 0;
    opacity: 0;
    overflow: hidden;
    transition: all 0.5s cubic-bezier(0.4, 0, 0.2, 1);
    margin: 0;
}

.portfolio-card:hover .overlay-content p {
    max-height: 200px;
    opacity: 1;
    margin-bottom: 15px;
    margin-top: 10px;
}

.portfolio-card:hover .impact {
    max-height: 50px;
    opacity: 1;
    padding: 5px 12px;
}

.overlay-content p {
    color: rgba(255, 255, 255, 0.8);
    font-size: 0.9rem;
    line-height: 1.5;
}

.impact {
    display: inline-block;
    font-size: 0.85rem;
    font-weight: 600;
    background: rgba(0, 140, 149, 0.3);
    border: 1px solid rgba(0, 140, 149, 0.4);
    backdrop-filter: blur(5px);
    border-radius: 6px;
    color: white;
}

.portfolio-item.hidden {
    display: none;
}

/* Workflow Section */
#workflow {
    padding: 120px 0;
    position: relative;
}

.workflow-steps {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 30px;
    margin-top: 60px;
    position: relative;
}

.step-card {
    background: rgba(255, 255, 255, 0.02);
    border: 1px solid var(--glass-border);
    border-radius: 20px;
    padding: 40px 30px;
    text-align: left;
    transition: all 0.3s ease;
    position: relative;
    overflow: hidden;
}

.step-card:hover {
    background: rgba(255, 255, 255, 0.04);
    transform: translateY(-5px);
    border-color: var(--accent-primary);
}

.step-number {
    position: absolute;
    top: -10px;
    right: 10px;
    font-size: 5rem;
    font-weight: 900;
    color: rgba(255, 255, 255, 0.03);
    pointer-events: none;
    line-height: 1;
}

.step-icon {
    width: 50px;
    height: 50px;
    background: rgba(0, 140, 149, 0.1);
    color: var(--accent-primary);
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 25px;
}

.step-card h3 {
    font-size: 1.25rem;
    margin-bottom: 15px;
}

.step-card p {
    color: var(--text-muted);
    font-size: 0.95rem;
    line-height: 1.6;
}

/* CTA Section */
#cta {
    padding: 60px 0;
}

.cta-banner {
    padding: 80px 40px;
    text-align: center;
    background: linear-gradient(135deg, rgba(0, 140, 149, 0.1), rgba(0, 0, 0, 0.4));
    border: 1px solid var(--glass-border);
}

.cta-content h2 {
    font-size: 2.5rem;
    margin-bottom: 20px;
}

.cta-content p {
    font-size: 1.2rem;
    color: var(--text-muted);
    max-width: 700px;
    margin: 0 auto 40px;
}

/* Accessibility Skip Link */
.skip-link {
    position: absolute;
    top: -100px;
    left: 20px;
    background: var(--accent-primary);
    color: white;
    padding: 10px 20px;
    z-index: 2000;
    transition: top 0.3s ease;
    border-radius: 0 0 8px 8px;
    text-decoration: none;
    font-weight: 600;
}

.skip-link:focus {
    top: 0;
}

/* Accessibility Widget */
.a11y-widget {
    position: fixed;
    bottom: 30px;
    left: 30px;
    z-index: 9999;
    /* Increased to stay above filter stacking contexts */
}

.a11y-fab {
    width: 50px;
    height: 50px;
    background: var(--bg-secondary);
    border: 1px solid var(--glass-border);
    color: var(--accent-primary);
    border-radius: 50%;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0 8px 16px rgba(0, 0, 0, 0.4);
    transition: all 0.3s ease;
}

.a11y-fab:hover {
    transform: scale(1.1);
    background: var(--accent-primary);
    color: white;
}

.a11y-icon-img {
    width: 28px;
    height: 28px;
    object-fit: contain;
    filter: invert(1) brightness(2);
    /* Makes the black icon path white/teal friendly */
}

.a11y-panel {
    position: absolute;
    bottom: 70px;
    left: 0;
    width: 280px;
    background: var(--bg-secondary);
    border: 1px solid var(--glass-border);
    border-radius: 16px;
    padding: 20px;
    box-shadow: 0 15px 30px rgba(0, 0, 0, 0.5);
    backdrop-filter: blur(10px);
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

.a11y-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 20px;
    border-bottom: 1px solid var(--glass-border);
    padding-bottom: 10px;
}

.a11y-header h3 {
    font-size: 1.1rem;
    margin: 0;
}

.a11y-close {
    background: none;
    border: none;
    color: var(--text-muted);
    font-size: 1.5rem;
    cursor: pointer;
}

.a11y-option {
    margin-bottom: 20px;
}

.a11y-option span {
    display: block;
    font-size: 0.9rem;
    color: var(--text-muted);
    margin-bottom: 10px;
}

.a11y-btns {
    display: flex;
    gap: 10px;
}

.a11y-btns button {
    flex: 1;
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid var(--glass-border);
    color: var(--text-main);
    padding: 8px;
    border-radius: 8px;
    cursor: pointer;
    transition: all 0.2s;
}

.a11y-btns button.active {
    background: var(--accent-primary);
    border-color: transparent;
}

.a11y-action-btn {
    width: 100%;
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid var(--glass-border);
    color: var(--text-main);
    padding: 12px;
    border-radius: 8px;
    cursor: pointer;
    margin-bottom: 10px;
    text-align: left;
    font-size: 0.95rem;
    transition: all 0.2s;
}

.a11y-action-btn.active {
    background: var(--accent-primary);
    border-color: transparent;
}

.a11y-action-btn.secondary {
    margin-top: 10px;
    text-align: center;
    background: transparent;
    border: 1px dashed var(--text-muted);
}

.a11y-action-btn.secondary:hover {
    background: rgba(255, 0, 0, 0.1);
    border-color: #ff4444;
}

/* Quick Reset FAB */
.a11y-reset-fab {
    position: absolute;
    bottom: 0;
    right: -65px;
    width: 50px;
    height: 50px;
    background: #ff4444;
    border: 1px solid rgba(255, 68, 68, 0.3);
    color: white;
    border-radius: 50%;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0 8px 16px rgba(255, 68, 68, 0.4);
    transition: all 0.3s ease;
    opacity: 0;
    transform: scale(0.8);
}

.a11y-reset-fab:not(.hidden) {
    opacity: 1;
    transform: scale(1);
}

.a11y-reset-fab:hover {
    transform: scale(1.1);
    background: #ff6666;
    box-shadow: 0 10px 20px rgba(255, 68, 68, 0.6);
}

.a11y-reset-fab svg {
    width: 20px;
    height: 20px;
}

/* Global Accessibility Overrides */
body.font-large {
    font-size: 18px;
}

body.font-xl {
    font-size: 20px;
}

/* Grayscale Mode - Using mix-blend-mode overlay to avoid position:fixed issues */
body.grayscale::before {
    content: '';
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: white;
    mix-blend-mode: saturation;
    pointer-events: none;
    z-index: 9998;
    /* Below fixed buttons but above content */
}

body.high-contrast {
    background-color: #000 !important;
    color: #fff !important;
}

body.high-contrast .glass-panel,
body.high-contrast .service-card,
body.high-contrast .step-card,
body.high-contrast .value-card {
    background: #000 !important;
    border: 2px solid #fff !important;
    backdrop-filter: none !important;
}

body.high-contrast .gradient-text {
    background: none !important;
    -webkit-text-fill-color: #fff !important;
    color: #fff !important;
    text-shadow: none !important;
}

body.high-contrast a,
body.high-contrast .accent-primary {
    color: #ffff00 !important;
    /* High contrast yellow for links */
}

/* High Contrast Overrides for A11y Widget */
body.high-contrast .a11y-fab,
body.high-contrast .a11y-panel,
body.high-contrast .a11y-reset-fab {
    border: 2px solid #fff !important;
    background: #000 !important;
    color: #fff !important;
}

body.high-contrast .a11y-fab .a11y-icon-img {
    filter: brightness(0) invert(1);
}

body.high-contrast .a11y-reset-fab {
    background: #ff0000 !important;
    border-color: #fff !important;
}

body.high-contrast .a11y-reset-fab svg {
    stroke: #fff !important;
}

body.high-contrast .a11y-action-btn {
    border-color: #fff !important;
    color: #fff !important;
}

body.highlight-links a {
    text-decoration: underline !important;
    outline: 2px solid var(--accent-primary) !important;
    outline-offset: 2px !important;
    background: rgba(0, 140, 149, 0.1) !important;
}

/* Utilities for JS toggle */
.hidden {
    display: none !important;
}

/* FAQ Section */
#faq {
    padding: 120px 0;
    position: relative;
    overflow: hidden;
}

.faq-accordion {
    max-width: 900px;
    margin: 0 auto;
    display: flex;
    flex-direction: column;
    gap: 20px;
}

.faq-item {
    padding: 0;
    transition: all 0.3s ease;
    border: 1px solid var(--glass-border);
}

.faq-item h3 {
    margin: 0;
    padding: 0;
    font-size: inherit;
    font-weight: inherit;
}

.faq-item:hover {
    border-color: var(--accent-primary);
    box-shadow: 0 10px 30px -10px rgba(0, 140, 149, 0.2);
}

.faq-question {
    width: 100%;
    background: transparent;
    border: none;
    padding: 24px 30px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    cursor: pointer;
    color: var(--text-main);
    font-family: var(--font-heading);
    font-size: 1.15rem;
    font-weight: 600;
    text-align: left;
    gap: 20px;
}

.faq-icon {
    flex-shrink: 0;
    width: 32px;
    height: 32px;
    background: rgba(255, 255, 255, 0.05);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.3s ease;
    color: var(--accent-primary);
}

.faq-question[aria-expanded="true"] .faq-icon {
    transform: rotate(180deg);
    background: var(--accent-primary);
    color: white;
}

.faq-answer {
    max-height: 0;
    overflow: hidden;
    transition: all 0.5s cubic-bezier(0.4, 0, 0.2, 1);
    opacity: 0;
}

.faq-question[aria-expanded="true"]+.faq-answer {
    max-height: 500px;
    /* Large enough for content */
    opacity: 1;
}

.answer-content {
    padding: 0 30px 30px 30px;
    color: var(--text-muted);
    line-height: 1.7;
    font-size: 1.05rem;
}

@media (max-width: 768px) {
    .faq-question {
        padding: 20px;
        font-size: 1rem;
    }

    .answer-content {
        padding: 0 20px 20px 20px;
    }
}