:root {
    /* Color Palette - Light & Airy */
    /* Off-white background */
    --bg-body: #F9FAFB;

    /* Glass Islands */
    --glass-bg: rgba(255, 255, 255, 0.65);
    --glass-border: rgba(255, 255, 255, 0.4);
    --glass-blur: 20px;
    --island-shadow: 0 20px 40px -4px rgba(17, 24, 39, 0.05), 0 8px 16px -4px rgba(17, 24, 39, 0.02);

    /* Typography Colors */
    --text-main: #111827;
    /* Deep Charcoal */
    --text-secondary: #4B5563;
    /* Cool Grey */
    --text-accent: #EC3237;
    /* Brand Red */

    /* Gumroad-style Spacing - Reduced by 40% as requested */
    --space-gumroad: 72px;
    --radius-island: 24px;
    --radius-pill: 100px;

    /* Fonts */
    --font-main: 'Inter', system-ui, -apple-system, sans-serif;

    /* Animation */
    --transition-fast: 0.2s ease;
}

* {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
}

body {
    font-family: var(--font-main);
    background-color: var(--bg-body);
    color: var(--text-main);
    line-height: 1.6;
    overflow-x: hidden;
    position: relative;
    min-height: 100vh;
}

/* Global Subtle Animated Background */
body::before,
body::after {
    content: '';
    position: fixed;
    width: 200vw;
    height: 200vw;
    border-radius: 40%;
    z-index: -2;
    /* Behind everything */
    pointer-events: none;
    animation: global-drift 60s infinite linear;
    opacity: 0.6;
}

body::before {
    top: -80%;
    left: -50%;
    background: radial-gradient(circle, rgba(236, 50, 55, 0.025) 0%, rgba(255, 255, 255, 0) 60%);
    animation-duration: 80s;
}

body::after {
    bottom: -60%;
    right: -40%;
    background: radial-gradient(circle, rgba(17, 24, 39, 0.02) 0%, rgba(255, 255, 255, 0) 60%);
    animation-duration: 95s;
    animation-direction: reverse;
}

@keyframes global-drift {
    from {
        transform: rotate(0deg);
    }

    to {
        transform: rotate(360deg);
    }
}

h1,
h2,
h3,
h4 {
    color: var(--text-main);
    font-weight: 800;
    letter-spacing: -0.02em;
    line-height: 1.1;
}

p {
    color: var(--text-secondary);
    font-size: 1.125rem;
}

a {
    text-decoration: none;
    color: inherit;
    transition: var(--transition-fast);
}

ul {
    list-style: none;
}

img {
    display: block;
    max-width: 100%;
}

/* --- Layout --- */
.container {
    width: 100%;
    max-width: 1280px;
    margin: 0 auto;
    padding: 0 24px;
}

.section-spacer {
    padding: var(--space-gumroad) 0;
}

/* --- Components: Glass Islands --- */
.glass-island {
    background: var(--glass-bg);
    backdrop-filter: blur(var(--glass-blur));
    -webkit-backdrop-filter: blur(var(--glass-blur));
    border: 1px solid rgba(0, 0, 0, 0.05);
    /* Clean thin border */
    border-top: 1px solid rgba(255, 255, 255, 0.8);
    /* Highlight top */
    border-radius: var(--radius-island);
    box-shadow: var(--island-shadow);
    transition: transform 0.3s ease, border-color 0.3s ease;
}

.glass-island:hover {
    transform: translateY(-5px);
    border-color: rgba(236, 50, 55, 0.15);
    /* Subtle red hint */
}

/* --- Buttons --- */
.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 16px 32px;
    border-radius: var(--radius-pill);
    font-weight: 700;
    font-size: 1rem;
    transition: all 0.2s ease;
    cursor: pointer;
    border: none;
}

.btn-primary {
    background-color: var(--text-accent);
    color: white;
    box-shadow: 0 4px 14px rgba(236, 50, 55, 0.3);
}

.btn-primary:hover {
    background-color: #D1252A;
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(236, 50, 55, 0.4);
}

.btn-secondary {
    background-color: white;
    color: var(--text-main);
    border: 1px solid rgba(0, 0, 0, 0.1);
}

.btn-secondary:hover {
    border-color: var(--text-main);
    background-color: #fafafa;
}

/* --- Navbar (Floating Pill) --- */
.navbar-wrapper {
    position: fixed;
    top: 30px;
    left: 0;
    right: 0;
    z-index: 1000;
    pointer-events: none;
}

.navbar {
    pointer-events: auto;
    width: 90%;
    max-width: 1100px;
    margin: 0 auto;
    background: rgba(255, 255, 255, 0.85);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    padding: 10px 10px 10px 30px;
    /* Less padding right for button */
    border-radius: var(--radius-pill);
    display: flex;
    justify-content: space-between;
    align-items: center;
    box-shadow: var(--island-shadow);
    border: 1px solid rgba(255, 255, 255, 0.6);
}

.logo img {
    height: 40px;
    width: auto;
}

.nav-links {
    display: flex;
    align-items: center;
    gap: 32px;
}

.nav-link {
    font-weight: 600;
    font-size: 0.95rem;
    color: var(--text-main);
}

.nav-link:hover,
.nav-link.active {
    color: var(--text-accent);
}

/* --- Hero Section --- */
.hero {
    position: relative;
    padding-top: 200px;
    padding-bottom: 100px;
    text-align: left;
    overflow: hidden;
}

/* Background Wave/Fluid Effect */
.hero-bg {
    position: absolute;
    top: -50%;
    right: -20%;
    width: 80%;
    height: 150%;
    background: radial-gradient(circle, rgba(236, 50, 55, 0.05) 0%, rgba(249, 250, 251, 0) 70%);
    z-index: -1;
    filter: blur(60px);
    animation: float-wave 10s infinite alternate ease-in-out;
}

@keyframes float-wave {
    0% {
        transform: translate(0, 0) scale(1);
    }

    100% {
        transform: translate(-50px, 50px) scale(1.1);
    }
}

.hero-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 60px;
    align-items: center;
}

.hero h1 {
    font-size: 4rem;
    margin-bottom: 24px;
    line-height: 1.1;
}

.hero-motto {
    font-size: 1.2rem;
    color: var(--text-accent);
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.1em;
    margin-bottom: 16px;
    display: block;
}

.hero-image-container {
    width: 100%;
    height: 500px;
    border-radius: 32px;
    /* Large radius */
    overflow: hidden;
    position: relative;
    box-shadow: 0 30px 60px -10px rgba(0, 0, 0, 0.12);
    /* Placeholder fallback */
    background: #e2e8f0;
}

.hero-image-container img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transform: scale(1.05);
    /* Slight zoom */
}

.hero-actions {
    display: flex;
    gap: 16px;
    margin-top: 40px;
}

/* --- Trust Bar --- */
.trust-bar-wrapper {
    display: flex;
    justify-content: center;
    margin-bottom: var(--space-gumroad);
    margin-top: -40px;
    position: relative;
    z-index: 10;
}

.trust-island {
    padding: 24px 60px;
    display: flex;
    gap: 60px;
    align-items: center;
    background: rgba(255, 255, 255, 0.9);
}

.trust-logo {
    font-weight: 800;
    color: #374151;
    font-size: 1.25rem;
    display: flex;
    align-items: center;
    gap: 12px;
}

/* --- Services Grid --- */
.services-title {
    font-size: 3rem;
    margin-bottom: 60px;
}

.services-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 32px;
}

.service-card {
    padding: 48px;
    display: flex;
    flex-direction: column;
    height: 100%;
}

.service-icon {
    width: 64px;
    height: 64px;
    margin-bottom: 32px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: white;
    border-radius: 16px;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.02);
    border: 1px solid rgba(0, 0, 0, 0.05);
    color: var(--text-accent);
}

.service-icon svg {
    width: 32px;
    height: 32px;
}

.service-card h3 {
    font-size: 1.5rem;
    margin-bottom: 16px;
}

/* --- Split Islands --- */
.split-grid {
    display: grid;
    grid-template-columns: 1.2fr 0.8fr;
    gap: 32px;
}

.split-island {
    padding: 64px;
    display: flex;
    flex-direction: column;
    justify-content: center;
}

.island-green {
    background: linear-gradient(135deg, rgba(236, 253, 245, 0.7) 0%, rgba(255, 255, 255, 0.7) 100%);
    border-color: rgba(16, 185, 129, 0.1);
}

.island-blue {
    background: linear-gradient(135deg, rgba(239, 246, 255, 0.7) 0%, rgba(255, 255, 255, 0.7) 100%);
    border-color: rgba(59, 130, 246, 0.1);
}

/* --- Footer --- */
.footer {
    background: white;
    border-top: 1px solid rgba(0, 0, 0, 0.05);
    padding: 80px 0 40px;
    margin-top: var(--space-gumroad);
}

.footer-grid {
    display: grid;
    grid-template-columns: 2fr 1fr 1fr;
    gap: 60px;
    margin-bottom: 60px;
}

.footer h4 {
    margin-bottom: 24px;
    font-size: 1.5rem;
}

.footer h5 {
    font-size: 0.9rem;
    text-transform: uppercase;
    color: var(--text-secondary);
    margin-bottom: 24px;
    letter-spacing: 0.05em;
}

.footer ul li {
    margin-bottom: 12px;
    color: var(--text-main);
    font-weight: 500;
}

.footer-copy {
    text-align: center;
    padding-top: 40px;
    border-top: 1px solid rgba(0, 0, 0, 0.05);
    color: var(--text-secondary);
    font-size: 0.9rem;
}

/* Mobile Menu */
.hamburger {
    display: none;
    cursor: pointer;
}

/* Responsive */
@media (max-width: 1024px) {
    .hero h1 {
        font-size: 3rem;
    }

    .services-grid {
        grid-template-columns: repeat(2, 1fr);
    }

    .hero-grid {
        grid-template-columns: 1fr;
        gap: 40px;
    }

    .hero-image-container {
        height: 350px;
    }

    .split-grid {
        grid-template-columns: 1fr;
    }
}

@media (max-width: 768px) {
    .navbar {
        padding: 12px 20px;
        width: 95%;
        flex-wrap: wrap;
    }

    .nav-links {
        display: none;
        width: 100%;
        flex-direction: column;
        padding-top: 24px;
        order: 3;
    }

    .hamburger {
        display: block;
        order: 2;
    }

    .nav-links.active {
        display: flex;
    }

    .hero {
        padding-top: 150px;
    }

    .trust-bar-wrapper {
        margin-top: 40px;
    }

    .trust-island {
        flex-direction: column;
        gap: 24px;
        padding: 32px;
        width: 100%;
    }

    .services-grid {
        grid-template-columns: 1fr;
    }

    .footer-grid {
        grid-template-columns: 1fr;
        gap: 40px;
    }
}

/* --- Expanded Layouts --- */

/* About Section Grid */
.about-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 80px;
    align-items: center;
}

.about-metrics {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 24px;
}

.metric-card {
    padding: 32px;
    text-align: center;
    background: rgba(255, 255, 255, 0.5);
    /* Slightly lighter glass */
    justify-content: center;
    align-items: center;
    display: flex;
    flex-direction: column;
    border-radius: var(--radius-island);
    border: 1px solid rgba(0, 0, 0, 0.05);
}

.metric-number {
    font-size: 3rem;
    font-weight: 800;
    color: var(--text-accent);
    margin-bottom: 8px;
    line-height: 1;
}

.metric-label {
    font-size: 1rem;
    color: var(--text-secondary);
    font-weight: 600;
}

/* Feature Islands (Content Expansion) */
.feature-island {
    padding: 60px;
    margin-bottom: 40px;
    display: flex;
    gap: 60px;
    align-items: center;
}

.feature-island.reverse {
    flex-direction: row-reverse;
}

.feature-content {
    flex: 1;
}

.feature-image {
    flex: 1;
    height: 400px;
    border-radius: var(--radius-island);
    overflow: hidden;
    background: #e5e7eb;
}

.feature-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

/* Careers Section Specifics */
.careers-cta {
    margin-top: 32px;
    display: inline-block;
}

/* Responsive Adjustments for New Sections */
@media (max-width: 1024px) {
    .about-grid {
        grid-template-columns: 1fr;
        gap: 40px;
    }

    .feature-island {
        flex-direction: column;
        text-align: left;
        gap: 40px;
    }

    .feature-island.reverse {
        flex-direction: column;
    }

    .feature-image {
        width: 100%;
        height: 300px;
    }
}

/* --- Dynamic Wavy Background --- */
/* --- Dynamic Wavy Background --- */
.hero-waves-container {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    overflow: hidden;
    z-index: -1;
    /* Base faint tint for the hero area */
    background: radial-gradient(at top right, rgba(236, 50, 55, 0.01), transparent 70%);
}

.wave-blob {
    position: absolute;
    /* Liquid Gradient */
    background: linear-gradient(120deg, rgba(236, 50, 55, 0.04), rgba(17, 24, 39, 0.03));
    filter: blur(80px);
    opacity: 0.9;
    will-change: border-radius, transform;
}

.blob-1 {
    top: -20%;
    right: -10%;
    width: 60vw;
    height: 60vw;
    border-radius: 40% 60% 70% 30% / 40% 50% 60% 50%;
    animation: wave-morph 18s infinite alternate ease-in-out, wave-spin 60s infinite linear;
}

.blob-2 {
    bottom: -20%;
    left: -10%;
    width: 70vw;
    height: 70vw;
    border-radius: 60% 40% 30% 70% / 60% 30% 70% 40%;
    background: linear-gradient(120deg, rgba(17, 24, 39, 0.03), rgba(236, 50, 55, 0.02));
    animation: wave-morph 22s infinite alternate-reverse ease-in-out, wave-spin 80s infinite linear reverse;
}

.blob-3 {
    top: 20%;
    left: 30%;
    width: 40vw;
    height: 40vw;
    border-radius: 50% 50% 20% 80% / 25% 80% 20% 67%;
    background: rgba(255, 255, 255, 0.5);
    /* Subtle highlight */
    opacity: 0.3;
    filter: blur(50px);
    animation: wave-morph 15s infinite alternate ease-in-out, wave-spin 50s infinite linear;
}

@keyframes wave-morph {
    0% {
        border-radius: 40% 60% 70% 30% / 40% 50% 60% 50%;
    }

    100% {
        border-radius: 60% 40% 30% 70% / 60% 30% 70% 40%;
    }
}

@keyframes wave-spin {
    from {
        transform: rotate(0deg);
    }

    to {
        transform: rotate(360deg);
    }
}

/* ACAROM Section Specifics */
.acarom-logo-placeholder {
    width: 250px;
    height: 250px;
    border: 4px solid var(--text-main);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 2.5rem;
    font-weight: 900;
    color: var(--text-main);
    background: rgba(255, 255, 255, 0.8);
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.05);
}

/* --- Modern B2B Footer --- */
.footer-modern {
    background: rgba(255, 255, 255, 0.8);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    border-top: 1px solid rgba(0, 0, 0, 0.05);
    padding: 80px 0 40px;
    margin-top: var(--space-gumroad);
}

.footer-grid-modern {
    display: grid;
    grid-template-columns: 2fr 1fr 1.5fr 1.5fr;
    gap: 40px;
    margin-bottom: 60px;
}

.footer-brand p {
    font-size: 0.95rem;
    color: var(--text-secondary);
    margin-top: 16px;
    max-width: 300px;
}

.footer-col h5 {
    font-size: 0.9rem;
    text-transform: uppercase;
    color: var(--text-main);
    letter-spacing: 0.05em;
    margin-bottom: 24px;
    font-weight: 700;
}

.footer-col ul li {
    margin-bottom: 12px;
}

.footer-col ul li a {
    color: var(--text-secondary);
    font-size: 0.95rem;
    transition: color 0.2s ease;
}

.footer-col ul li a:hover {
    color: var(--text-accent);
}

.contact-info li {
    color: var(--text-secondary);
    font-size: 0.95rem;
    margin-bottom: 16px;
    display: flex;
    gap: 12px;
}

.cert-badges {
    display: flex;
    gap: 12px;
    margin-bottom: 24px;
}

.cert-badge {
    background: white;
    padding: 8px 12px;
    border-radius: 8px;
    border: 1px solid rgba(0, 0, 0, 0.1);
    font-size: 0.8rem;
    font-weight: 600;
    color: var(--text-main);
}

.footer-bottom-bar {
    border-top: 1px solid rgba(0, 0, 0, 0.05);
    padding-top: 32px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    font-size: 0.85rem;
    color: var(--text-secondary);
}

/* --- Cookie Consent Floating Island --- */
.cookie-consent {
    position: fixed;
    bottom: 24px;
    left: 24px;
    width: 380px;
    background: rgba(255, 255, 255, 0.9);
    backdrop-filter: blur(24px);
    -webkit-backdrop-filter: blur(24px);
    border: 1px solid rgba(255, 255, 255, 0.8);
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.1);
    border-radius: 16px;
    padding: 24px;
    z-index: 9999;
    transform: translateY(150%);
    transition: transform 0.5s cubic-bezier(0.19, 1, 0.22, 1);
}

.cookie-consent.show {
    transform: translateY(0);
}

.cookie-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 12px;
}

.cookie-header h4 {
    font-size: 1rem;
    margin: 0;
}

.cookie-text {
    font-size: 0.9rem;
    color: var(--text-secondary);
    margin-bottom: 20px;
    line-height: 1.5;
}

.cookie-actions {
    display: flex;
    gap: 12px;
}

.btn-cookie-accept {
    flex: 1;
    background: var(--text-accent);
    color: white;
    border: none;
    padding: 10px;
    border-radius: 8px;
    font-weight: 600;
    font-size: 0.9rem;
    cursor: pointer;
    transition: background 0.2s ease;
}

.btn-cookie-accept:hover {
    background: #D1252A;
}

.btn-cookie-necessary {
    flex: 1;
    background: transparent;
    color: var(--text-main);
    border: 1px solid rgba(0, 0, 0, 0.1);
    padding: 10px;
    border-radius: 8px;
    font-weight: 600;
    font-size: 0.9rem;
    cursor: pointer;
    transition: border-color 0.2s ease;
}

.btn-cookie-necessary:hover {
    border-color: var(--text-main);
}

/* Responsive Footer */
@media (max-width: 1024px) {
    .footer-grid-modern {
        grid-template-columns: 1fr 1fr;
        gap: 40px;
    }
}

@media (max-width: 768px) {
    .footer-grid-modern {
        grid-template-columns: 1fr;
    }

    .footer-bottom-bar {
        flex-direction: column;
        gap: 16px;
        text-align: center;
    }

    .cookie-consent {
        width: calc(100% - 48px);
        bottom: 24px;
        left: 24px;
    }
}

/* --- Sub-Page Header --- */
.page-header {
    margin-top: 140px;
    /* Clear fixed navbar */
    margin-bottom: var(--space-gumroad);
    text-align: center;
    position: relative;
    padding: 60px 0;
}

.page-header h1 {
    font-size: 3.5rem;
    margin-bottom: 16px;
    letter-spacing: -0.03em;
}

.page-header p {
    font-size: 1.25rem;
    max-width: 700px;
    margin: 0 auto;
    color: var(--text-secondary);
}

.timeline-item {
    display: flex;
    gap: 24px;
    padding-bottom: 40px;
    border-left: 2px solid rgba(236, 50, 55, 0.2);
    margin-left: 20px;
    padding-left: 40px;
    position: relative;
}

.timeline-item::before {
    content: '';
    position: absolute;
    left: -11px;
    top: 0;
    width: 20px;
    height: 20px;
    background: white;
    border: 4px solid var(--text-accent);
    border-radius: 50%;
}

.timeline-year {
    font-weight: 800;
    color: var(--text-accent);
    font-size: 1.5rem;
    min-width: 100px;
}

.timeline-content h4 {
    font-size: 1.25rem;
}

/* --- CTA Section (Gumroad Spacing) --- */
.cta-section {
    padding: 80px 40px;
    margin-top: 100px;
    text-align: center;
    background: var(--glass-bg);
    /* Ensure light glassmorphism */
}

.cta-section h2 {
    font-size: 2.5rem;
    font-weight: 700;
    color: var(--text-main);
    margin-bottom: 24px;
}

.cta-section p {
    font-size: 1.25rem;
    color: var(--text-secondary);
    margin-bottom: 40px;
    max-width: 600px;
    margin-left: auto;
    margin-right: auto;
}

/* Mobile Responsibility for CTA */
@media (max-width: 768px) {
    .cta-section {
        padding: 60px 24px;
    }

    .cta-section h2 {
        font-size: 2rem;
    }
}

/* --- Careers Page: Culture Card --- */
.culture-text-card {
    padding: 4rem 3rem !important;
    /* Force Gumroad spacing override if needed */
    display: flex;
    flex-direction: column;
    justify-content: center;
}

.culture-text-card h3 {
    margin-bottom: 24px;
    font-size: 2rem;
    color: var(--text-main);
}

.culture-text-card p {
    margin-bottom: 32px;
    line-height: 1.6;
    color: var(--text-secondary);
    font-size: 1.1rem;
}

.culture-text-card ul {
    list-style: none;
    padding: 0;
    margin-top: 0;
}

.culture-text-card li {
    margin-bottom: 16px;
    display: flex;
    align-items: center;
    gap: 12px;
    color: var(--text-secondary);
    font-size: 1.05rem;
    font-weight: 500;
}

@media (max-width: 768px) {
    .culture-text-card {
        padding: 2.5rem 1.5rem !important;
    }
}

/* --- Footer ACAROM Logo --- */
.footer-acarom-logo {
    display: block;
    max-width: 140px;
    margin-top: 16px;
    filter: grayscale(100%) opacity(0.8);
    transition: filter 0.3s ease;
}

.footer-acarom-logo:hover {
    filter: none;
    opacity: 1;
}

/* --- Capabilities Grid (2-Column) --- */
.capabilities-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 3rem;
    /* Generous Gumroad spacing */
    align-items: stretch;
    /* Make cards equal height */
    margin-top: 3rem;
}

@media (max-width: 992px) {
    .capabilities-grid {
        grid-template-columns: 1fr;
        gap: 2rem;
    }
}

/* --- MOBILE RESPONSIVENESS FIXES (Agent Added) --- */

/* 1. Global Overflow Fix */
html {
    overflow-x: hidden;
    max-width: 100%;
}

body {
    overflow-x: hidden;
}

/* Ensure all elements respect box-sizing */
*,
*::before,
*::after {
    box-sizing: border-box;
}

/* --- Parallax Separator --- */
.parallax-separator {
    position: relative;
    padding: 120px 0;
    background-attachment: fixed;
    background-position: center;
    background-repeat: no-repeat;
    background-size: cover;
    margin: 60px 0;
}

@media (max-width: 768px) {
    .parallax-separator {
        background-attachment: scroll; /* Disable fixed attachment on mobile for better performance/scrolling */
        padding: 80px 24px;
    }
}

/* --- Certificates & Bento Grid --- */
.cert-card {
    padding: 24px;
    border: 1px solid rgba(0,0,0,0.1);
    border-radius: 16px;
    width: 300px;
    background: white;
    box-shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.05);
    display: flex;
    flex-direction: column;
    align-items: center;
}

.cert-card img {
    width: 100%;
    height: auto;
    border-radius: 8px;
    object-fit: contain;
    max-height: 250px;
}

.bento-grid-gallery {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    grid-auto-rows: 250px;
    gap: 20px;
    max-width: 1000px;
    margin: 0 auto;
}

.bento-item {
    border-radius: 24px;
    overflow: hidden;
    position: relative;
    box-shadow: 0 10px 30px -5px rgba(0, 0, 0, 0.1);
}

.bento-item img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.3s ease;
}

.bento-item:hover img {
    transform: scale(1.05);
}

.item-large {
    grid-column: span 2;
    grid-row: span 2;
}

.item-wide {
    grid-column: span 2;
    grid-row: span 1;
}

@media (max-width: 768px) {
    .bento-grid-gallery {
        grid-template-columns: 1fr;
        grid-auto-rows: auto;
    }
    .item-large, .item-wide {
        grid-column: span 1;
        grid-row: span 1;
    }
    .bento-item img {
        height: auto;
    }
}


/* --- Global Floating Action Button (FAB) & Modal --- */
.fab-container {
    position: fixed;
    bottom: 30px;
    right: 30px;
    z-index: 999;
}

.fab-button {
    background-color: var(--text-accent);
    color: white;
    border: none;
    border-radius: 50px;
    padding: 16px 24px;
    font-size: 1rem;
    font-weight: 600;
    cursor: pointer;
    box-shadow: 0 10px 25px -5px rgba(236, 50, 55, 0.4);
    display: flex;
    align-items: center;
    gap: 12px;
    transition: transform 0.3s ease, box-shadow 0.3s ease, background-color 0.3s ease;
}

.fab-button:hover {
    transform: translateY(-5px);
    box-shadow: 0 15px 30px -5px rgba(236, 50, 55, 0.5);
    background-color: #d12025;
}

.fab-button svg {
    width: 24px;
    height: 24px;
}

/* Modal Overlay */
.modal-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(17, 24, 39, 0.6);
    backdrop-filter: blur(5px);
    -webkit-backdrop-filter: blur(5px);
    z-index: 1000;
    display: flex;
    justify-content: center;
    align-items: center;
    opacity: 0;
    visibility: hidden;
    transition: opacity 0.3s ease, visibility 0.3s ease;
}

.modal-overlay.active {
    opacity: 1;
    visibility: visible;
}

/* Modal Content Box */
.modal-content {
    background: white;
    width: 90%;
    max-width: 600px;
    border-radius: 24px;
    padding: 40px;
    position: relative;
    transform: translateY(20px);
    transition: transform 0.3s ease;
    box-shadow: 0 25px 50px -12px rgba(0, 0, 0, 0.25);
    max-height: 90vh;
    overflow-y: auto;
}

.modal-overlay.active .modal-content {
    transform: translateY(0);
}

.modal-close {
    position: absolute;
    top: 24px;
    right: 24px;
    background: transparent;
    border: none;
    color: var(--text-secondary);
    cursor: pointer;
    transition: color 0.3s ease;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 8px;
    border-radius: 50%;
}

.modal-close:hover {
    color: var(--text-accent);
    background: rgba(236, 50, 55, 0.05);
}

/* Mobile Adjustments for Modal */
@media (max-width: 768px) {
    .fab-container {
        bottom: 20px;
        right: 20px;
    }
    .fab-button {
        padding: 14px 20px;
        font-size: 0.9rem;
    }
    .modal-content {
        padding: 30px 20px;
    }
}
@media (max-width: 768px) {

    /* Global Spacing Reductions */
    :root {
        --space-gumroad: 40px;
        --radius-island: 16px;
    }

    .container {
        padding: 0 16px;
    }

    .section-spacer {
        padding: 40px 0;
    }

    /* Force Glass Islands to compact spacing */
    .glass-island {
        padding: 1.5rem !important;
    }

    /* Hero Section Fixes */
    .hero {
        padding-top: 120px;
        padding-bottom: 40px;
        text-align: center;
    }

    .hero h1 {
        font-size: 2.5rem !important;
        line-height: 1.2;
    }

    .hero-motto {
        font-size: 1rem;
    }

    .hero-grid {
        grid-template-columns: 1fr;
        gap: 32px;
    }

    .hero-actions {
        flex-direction: column;
        width: 100%;
        gap: 12px;
    }

    .hero-image-container {
        height: 280px;
    }

    /* Trust Logos Stack */
    .trust-island {
        flex-direction: column;
        align-items: center;
        text-align: center;
        gap: 20px;
        margin-top: 0;
    }

    .trust-logo {
        width: 100%;
        justify-content: center;
    }

    /* About & Stats */
    .about-grid {
        grid-template-columns: 1fr;
        gap: 32px;
    }

    .services-title {
        font-size: 2rem !important;
        text-align: center;
        margin-bottom: 30px;
    }

    .about-metrics {
        grid-template-columns: 1fr;
        gap: 16px;
    }

    .metric-card {
        padding: 24px;
    }

    /* Feature Islands (Capabilities) */
    .feature-island,
    .feature-island.reverse {
        flex-direction: column !important;
        gap: 24px;
        text-align: center;
    }

    .feature-image {
        height: 250px;
        width: 100%;
        margin-bottom: 16px;
    }

    .service-icon {
        margin: 0 auto 24px auto;
    }

    .feature-content a {
        display: inline-block;
        margin-top: 8px;
        padding: 12px 24px;
        border: 1px solid rgba(0, 0, 0, 0.1);
        border-radius: 50px;
        width: 100%;
    }

    /* Split Grid (Sustainability/Careers) */
    .split-grid {
        grid-template-columns: 1fr;
        gap: 24px;
    }

    .split-island {
        align-items: center;
        text-align: center;
    }

    /* Navbar Refinement */
    .navbar {
        width: 92%;
        padding: 12px 16px;
    }

    .logo img {
        height: 36px;
    }

    /* Buttons Full Width */
    .btn {
        width: 100%;
        display: flex;
        justify-content: center;
    }

    /* Modern Footer Stack */
    .footer-modern {
        padding: 40px 0;
    }

    .footer-grid-modern {
        grid-template-columns: 1fr;
        gap: 40px;
        text-align: center;
    }

    .footer-brand p {
        margin: 16px auto;
    }

    .contact-info li {
        justify-content: center;
        text-align: left;
    }

    .cert-badges {
        justify-content: center;
    }

    .footer-bottom-bar {
        flex-direction: column;
        gap: 12px;
    }

    .acarom-logo-placeholder {
        width: 180px;
        height: 180px;
        font-size: 1.8rem;
    }
}

@media (max-width: 480px) {
    .hero h1 {
        font-size: 2rem !important;
    }

    .cookie-consent {
        width: calc(100% - 24px);
        left: 12px;
        bottom: 12px;
    }

    .cookie-actions {
        flex-direction: column;
    }

    .metric-number {
        font-size: 2.5rem;
    }
}