/* --- Variables & Reset --- */
:root {
    --bg-main: #ffffff;
    --bg-alt: #f8f9fa;
    /* Slight gray for sections */
    --text-primary: #111827;
    /* Deep Charcoal */
    --text-secondary: #4b5563;
    /* Slate Gray */
    --accent-color: #0f172a;
    /* Black/Navy for primary actions */
    --accent-blue: #2563eb;
    /* Vibrant blue for small highlights */

    --border-light: #e5e7eb;
    --shadow-sm: 0 1px 2px 0 rgba(0, 0, 0, 0.05);
    --shadow-md: 0 4px 6px -1px rgba(0, 0, 0, 0.1), 0 2px 4px -1px rgba(0, 0, 0, 0.06);
    --shadow-lg: 0 10px 15px -3px rgba(0, 0, 0, 0.1), 0 4px 6px -2px rgba(0, 0, 0, 0.05);

    --font-heading: 'Inter', system-ui, -apple-system, sans-serif;
    --font-body: 'Inter', system-ui, -apple-system, sans-serif;

    --nav-height: 80px;

    /* Responsive spacing */
    --spacing-xs: clamp(0.5rem, 1vw, 0.75rem);
    --spacing-sm: clamp(1rem, 2vw, 1.5rem);
    --spacing-md: clamp(1.5rem, 3vw, 2rem);
    --spacing-lg: clamp(2rem, 4vw, 3rem);
}


* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    -webkit-font-smoothing: antialiased;
    /* Crisp text */
}

html {
    scroll-behavior: smooth;
}

body {
    font-family: var(--font-body);
    background-color: var(--bg-main);
    color: var(--text-primary);
    overflow-x: hidden;
    line-height: 1.6;
}

/* Responsive Images */
img {
    max-width: 100%;
    height: auto;
    display: block;
}

/* --- Layout Utilities --- */
.container {
    width: 90%;
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 1rem;
}

@media (min-width: 1400px) {
    .container {
        max-width: 1400px;
    }
}

.text-gradient {
    /* Kept subtle or removed for swiss style, let's keep it solid or very subtle blue */
    color: var(--accent-blue);
    background: none;
    -webkit-background-clip: unset;
    background-clip: unset;
}

/* --- Typography (Swiss Style) --- */
h1,
h2,
h3,
h4 {
    font-family: var(--font-heading);
    color: var(--text-primary);
    font-weight: 700;
    letter-spacing: -0.02em;
    /* Tight tracking */
    line-height: 1.1;
}

h1 {
    font-size: clamp(2rem, 5vw + 1rem, 4.5rem);
    margin-bottom: 1.5rem;
}

h2 {
    font-size: clamp(1.75rem, 3vw + 0.5rem, 2.5rem);
    margin-bottom: 1rem;
}

h3 {
    font-size: clamp(1.25rem, 2vw + 0.25rem, 1.5rem);
}

h4 {
    font-size: clamp(1.1rem, 1.5vw + 0.25rem, 1.25rem);
}

p {
    color: var(--text-secondary);
    font-size: clamp(1rem, 1.5vw, 1.125rem);
    max-width: 600px;
    line-height: 1.7;
}

.section-header p,
.hero-content p {
    max-width: 600px;
}

@media (max-width: 768px) {
    p {
        font-size: 1rem;
    }
}

/* --- Buttons --- */
.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: clamp(0.875rem, 1vw, 1rem) clamp(2rem, 3vw, 2.5rem);
    font-weight: 600;
    border-radius: 6px;
    /* Slightly rounded */
    text-decoration: none;
    transition: all 0.2s ease;
    cursor: pointer;
    font-size: clamp(0.95rem, 1vw, 1rem);
    letter-spacing: -0.01em;
    min-height: 44px;
    /* Better touch target */
    min-width: 120px;
}

.btn-primary {
    background-color: var(--accent-color);
    color: #ffffff;
    border: 1px solid var(--accent-color);
}

.btn-primary:hover {
    background-color: #000000;
    transform: translateY(-1px);
    box-shadow: var(--shadow-md);
}

.btn-outline {
    background: transparent;
    border: 1px solid var(--border-light);
    color: var(--text-primary);
}

.btn-outline:hover {
    border-color: var(--text-primary);
    background-color: var(--bg-alt);
}

/* --- Navigation --- */
.navbar {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: var(--nav-height);
    background: rgba(255, 255, 255, 0.8);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    border-bottom: 1px solid var(--border-light);
    z-index: 1000;
    display: flex;
    align-items: center;
    transition: all 0.3s ease;
}

.navbar.scrolled {
    background: rgba(255, 255, 255, 0.95);
    box-shadow: var(--shadow-sm);
    border-bottom-color: transparent;
    /* Cleaner look when scrolled */
}

@media (max-width: 768px) {
    :root {
        --nav-height: 70px;
    }

    .navbar {
        height: var(--nav-height);
    }
}

.nav-container {
    display: flex;
    justify-content: space-between;
    align-items: center;
    width: 100%;
    height: 100%;
    padding: 0 1rem;
}

@media (max-width: 1200px) {
    .nav-container {
        padding: 0 0.5rem;
    }
}

.logo {
    font-family: var(--font-heading);
    font-size: clamp(0.95rem, 1.8vw, 1.25rem);
    font-weight: 700;
    color: var(--text-primary);
    text-decoration: none;
    display: flex;
    align-items: center;
    gap: 0.75rem;
    white-space: nowrap;
    padding: 0.25rem 0;
    transition: opacity 0.2s ease;
}

.logo:hover {
    opacity: 0.8;
}

.logo-img {
    width: 28px;
    height: 28px;
    object-fit: contain;
    flex-shrink: 0;
}

.nav-links {
    display: flex;
    gap: clamp(1.5rem, 3vw, 2.5rem);
    list-style: none;
    align-items: center;
    margin: 0;
    padding: 0;
}

.nav-links li {
    display: flex;
    align-items: center;
}

.nav-links a:not(.btn) {
    color: var(--text-secondary);
    text-decoration: none;
    font-size: 0.95rem;
    font-weight: 500;
    transition: color 0.2s ease;
    padding: 0.5rem 0.25rem;
    display: inline-flex;
    align-items: center;
    line-height: 1.4;
}

.nav-links a:not(.btn):hover {
    color: var(--accent-color);
}

/* Navigation Button Styling */
.nav-links .btn {
    padding: 0.625rem 1.5rem;
    font-size: 0.875rem;
    font-weight: 600;
    min-height: 36px;
    min-width: auto;
    border-radius: 4px;
    white-space: nowrap;
    letter-spacing: 0.01em;
    line-height: 1.2;
}

.nav-links .btn-primary {
    background-color: var(--accent-color);
    color: #ffffff;
    border: 1px solid var(--accent-color);
}

.nav-links .btn-primary:hover {
    background-color: #000000;
    transform: translateY(-1px);
    box-shadow: var(--shadow-md);
}

@media (min-width: 1200px) {
    .nav-links .btn {
        padding: 0.65rem 1.75rem;
        font-size: 0.9rem;
        min-height: 38px;
    }
}

/* Mobile Nav Toggle */
.mobile-toggle {
    display: none;
    background: transparent;
    border: none;
    cursor: pointer;
    flex-direction: column;
    gap: 5px;
    padding: 0.5rem;
    z-index: 1001;
    align-items: center;
    justify-content: center;
    min-width: 44px;
    min-height: 44px;
}

.mobile-toggle:focus {
    outline: 2px solid var(--accent-color);
    outline-offset: 2px;
    border-radius: 4px;
}

.bar {
    width: 22px;
    height: 2px;
    background-color: var(--text-primary);
    transition: all 0.3s ease;
    transform-origin: center;
    border-radius: 1px;
}

/* --- Hero Section --- */
.hero {
    min-height: 100vh;
    display: flex;
    align-items: center;
    padding-top: var(--nav-height);
    background-color: var(--bg-main);
    position: relative;
    overflow: hidden;
}

.hero .container {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 4rem;
    position: relative;
    z-index: 2;
    padding: 2rem 1rem;
}

.hero-content {
    flex: 1;
}

.hero-actions {
    display: flex;
    gap: 1rem;
    margin-top: 2.5rem;
}

.hero-visual {
    flex: 1;
    display: flex;
    justify-content: center;
    align-items: center;
    min-height: 400px;
    max-height: 600px;
    height: auto;
}

.visual-container {
    width: 100%;
    height: 100%;
    /* No mask for the white theme, clean image */
    display: flex;
    align-items: center;
    justify-content: center;
    position: relative;
}

.floating-image {
    max-width: 100%;
    max-height: 100%;
    width: 100%;
    height: auto;
    object-fit: contain;
    /* Subtle float */
    animation: float 8s ease-in-out infinite;
    /* Drop shadow for depth */
    filter: drop-shadow(0 20px 40px rgba(0, 0, 0, 0.08));
}

@keyframes float {

    0%,
    100% {
        transform: translateY(0);
    }

    50% {
        transform: translateY(-15px);
    }
}

/* --- Sections --- */
.section {
    padding: 10rem 0;
    /* Increased from 8rem for more whitespace/luxury feel */
    position: relative;
}

/* Add subtle separator */
.section::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 50%;
    transform: translateX(-50%);
    width: 60px;
    height: 2px;
    background-color: var(--border-light);
    opacity: 0.5;
}

.section:last-of-type::after,
#contact::after,
.impact-metrics::after {
    display: none;
}

.section-header {
    margin-bottom: 5rem;
    text-align: left;
    /* Swiss style alignment */
    max-width: 800px;
}

/* Services Grid */
.services-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(min(100%, 320px), 1fr));
    gap: clamp(1.5rem, 3vw, 2rem);
}

.card {
    background: var(--bg-main);
    border: 1px solid var(--border-light);
    padding: 3rem;
    border-radius: 8px;
    /* Softer, but not rounded like a pill */
    transition: all 0.3s ease;
    display: flex;
    flex-direction: column;
}

.card:hover {
    transform: translateY(-5px);
    box-shadow: var(--shadow-lg);
    border-color: transparent;
}

.icon-box {
    font-family: var(--font-heading);
    font-size: 1.5rem;
    font-weight: 600;
    color: var(--border-light);
    /* Subtle number */
    margin-bottom: 1.5rem;
}

.card h3 {
    font-size: 1.25rem;
    margin-bottom: 1rem;
    color: var(--text-primary);
}

.card p {
    max-width: 100%;
    flex: 1;
}

/* Vision Section */
.bg-alt {
    background-color: var(--bg-alt);
}

.split-layout {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: clamp(3rem, 6vw, 6rem);
    align-items: center;
}

.split-visual {
    width: 100%;
    height: 100%;
}

.split-visual .visual-container {
    width: 100%;
    height: 100%;
}

.logo-img {
    height: 32px;
    width: auto;
    display: block;
}

.feature-list {
    list-style: none;
    margin-top: 2rem;
}

.feature-list li {
    padding: 0.5rem 0;
    border-bottom: 1px solid var(--border-light);
    color: var(--text-primary);
    font-weight: 500;
}

/* Abstract shape for vision, minimal style */
/* Abstract shape removed */


/* Footer */
footer {
    border-top: 1px solid var(--border-light);
    padding: 4rem 0;
    background: var(--bg-main);
}

.footer-content {
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
    gap: 2rem;
}

.footer-links {
    display: flex;
    gap: 2rem;
}

.footer-links a {
    color: var(--text-secondary);
    text-decoration: none;
    font-size: 0.9rem;
    transition: color 0.2s;
}

.footer-links a:hover {
    color: var(--text-primary);
}


/* --- Animations (Subtle) --- */
.reveal-text,
.reveal-card,
.reveal-left,
.reveal-right,
.fade-in-up {
    opacity: 0;
    transform: translateY(20px);
    transition: all 0.6s cubic-bezier(0.16, 1, 0.3, 1);
    /* Swiss ease */
}

.reveal-text.active,
.reveal-card.active,
.reveal-left.active,
.reveal-right.active,
.fade-in-up.active {
    opacity: 1;
    transform: translateY(0);
}

/* Typewriter Animation */
.hero-content h1 {
    min-height: 1.2em;
    display: flex;
    align-items: flex-start;
    flex-wrap: wrap;
    animation: slideUp 0.8s cubic-bezier(0.16, 1, 0.3, 1) forwards;
    word-break: break-word;
    overflow-wrap: break-word;
}

.typewriter-text {
    display: inline;
    line-height: inherit;
    min-height: 1em;
}

.typewriter-cursor {
    display: inline-block !important;
    margin-left: 2px;
    animation: blink 1s infinite;
    font-weight: 300;
    opacity: 1;
    transition: opacity 0.3s ease;
    vertical-align: baseline;
    visibility: visible;
}

@keyframes blink {
    0%, 50% {
        opacity: 1;
    }
    51%, 100% {
        opacity: 0;
    }
}

.hero-actions {
    animation: slideUp 0.8s 0.2s cubic-bezier(0.16, 1, 0.3, 1) forwards;
    opacity: 0;
}

.hero-visual {
    animation: fadeIn 1s 0.3s ease forwards;
    opacity: 0;
}

@keyframes slideUp {
    from {
        opacity: 0;
        transform: translateY(20px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}

@keyframes fadeIn {
    from {
        opacity: 0;
    }

    to {
        opacity: 1;
    }
}

/* --- New Extensive Sections --- */

/* Impact Metrics */
/* Impact Metrics */
.impact-metrics {
    background-color: var(--accent-color);
    color: #ffffff;
    padding: 8rem 0;
    position: relative;
    overflow: hidden;
}

.impact-metrics::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(135deg, rgba(255, 255, 255, 0.03) 0%, transparent 100%);
    pointer-events: none;
}

.impact-container {
    align-items: flex-start;
    /* Align top for better reading */
}

.impact-text {
    flex: 0 0 35%;
    /* Takes up roughly 1/3 of the width */
}

.impact-text h2 {
    color: #ffffff;
    font-size: clamp(2rem, 4vw, 3rem);
    margin-bottom: 1.5rem;
}

.impact-text p {
    color: rgba(255, 255, 255, 0.8);
    font-size: 1.1rem;
    max-width: 90%;
}

.metrics-grid {
    flex: 1;
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    /* 2x2 Grid for balance */
    gap: 4rem 2rem;
    padding-left: 2rem;
    /* Separation from text */
}

@media (max-width: 900px) {
    .metrics-grid {
        padding-left: 0;
        gap: 3rem 1.5rem;
    }
}

.metric-item {
    display: flex;
    flex-direction: column;
    justify-content: flex-start;
    text-align: left;
    /* Swiss alignment */
    padding-top: 1rem;
    border-top: 1px solid rgba(255, 255, 255, 0.2);
    /* Subtle separator */
}

.metric-item h3 {
    font-size: clamp(2.5rem, 4vw, 3.5rem);
    color: #ffffff !important;
    margin-bottom: 0.5rem;
    line-height: 1;
    background: none !important;
    -webkit-background-clip: unset !important;
    -webkit-text-fill-color: unset !important;
    background-clip: unset !important;
}

.metric-item p {
    color: rgba(255, 255, 255, 0.6);
    font-size: 0.9rem;
    text-transform: uppercase;
    letter-spacing: 1px;
    font-weight: 500;
}

@media (max-width: 900px) {
    .impact-container.split-layout {
        grid-template-columns: 1fr;
        gap: 3rem;
    }

    .impact-text {
        text-align: center;
        max-width: 600px;
        margin: 0 auto;
        flex: none;
        width: 100%;
    }

    .impact-text h2 {
        font-size: clamp(1.75rem, 5vw, 2.5rem);
    }

    .impact-text p {
        margin: 0 auto;
        max-width: 100%;
        font-size: 1rem;
    }

    .metrics-grid {
        grid-template-columns: repeat(2, 1fr);
        padding-left: 0;
        gap: 2.5rem 1.5rem;
        flex: none;
        width: 100%;
    }

    .metric-item h3 {
        font-size: clamp(2rem, 6vw, 2.5rem);
    }
}

/* Dark mode responsive adjustments for impact metrics */
@media (max-width: 900px) {
    [data-theme="dark"] .impact-text h2 {
        color: #ffffff;
    }

    [data-theme="dark"] .impact-text p {
        color: rgba(255, 255, 255, 0.85);
    }

    [data-theme="dark"] .metric-item h3 {
        color: #ffffff;
    }

    [data-theme="dark"] .metric-item p {
        color: rgba(255, 255, 255, 0.7);
    }
}

    .metric-item {
        align-items: center;
        text-align: center;
    }
}

/* Architecture Section */
.architecture-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(min(100%, 300px), 1fr));
    gap: clamp(1.5rem, 3vw, 2rem);
    position: relative;
}

.arch-step {
    padding: 2rem;
    border-left: 2px solid var(--border-light);
    position: relative;
    background: var(--bg-main);
    transition: all 0.3s ease;
}

.arch-step:hover {
    border-left-color: var(--accent-color);
    transform: translateX(5px);
}

.arch-step p {
    max-width: 100%;
}

.arch-step::before {
    content: '';
    position: absolute;
    top: 0;
    left: -6px;
    width: 10px;
    height: 10px;
    background: var(--accent-color);
    border-radius: 50%;
}

.arch-step h4 {
    font-size: 1.2rem;
    margin-bottom: 1rem;
    color: var(--text-primary);
}

/* Industries Section */
.industries-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(min(100%, 250px), 1fr));
    gap: clamp(1rem, 2vw, 1.5rem);
}

.industry-card {
    background: var(--bg-alt);
    padding: 2rem;
    border-radius: 6px;
    transition: all 0.3s ease;
}

.industry-card:hover {
    background: #ffffff;
    box-shadow: var(--shadow-md);
    transform: translateY(-3px);
}

.industry-card h4 {
    margin-bottom: 0.5rem;
    font-size: 1.1rem;
}

.industry-card p {
    font-size: 0.95rem;
    max-width: 100%;
}


/* Gradient text metrics - only for non-impact-metrics sections */
.section .metric-item h3 {
    font-size: 2.5rem;
    /* Larger for numbers */
    background: linear-gradient(135deg, var(--text-primary) 0%, var(--text-secondary) 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    margin-bottom: 0.5rem;
}

/* Style for text-based metrics (Sovereign, Real-Time etc) */
.metric-item h3.text-metric {
    font-size: 1.75rem;
    /* Smaller for text */
    letter-spacing: -0.02em;
}

/* Contact Section */
#contact h2 {
    margin-bottom: 1rem;
}

.contact-details {
    margin-top: 3rem;
    color: var(--text-secondary);
    font-size: 0.95rem;
}

.contact-details p {
    margin: 0.5rem 0;
    max-width: 100%;
    font-size: 0.95rem;
}

.contact-details a {
    color: var(--text-secondary);
    text-decoration: none;
    transition: color 0.2s ease;
}

.contact-details a:hover {
    color: var(--accent-color);
}

.contact-details .subtle-text strong {
    color: var(--text-primary);
    font-weight: 600;
}

/* Contact Section Container */
.contact-container {
    text-align: center;
}

.contact-wrapper {
    max-width: 600px;
    margin: 0 auto;
}

.contact-wrapper h2 {
    margin-bottom: 1rem;
}

.contact-wrapper>p {
    margin: 1rem auto 2rem;
    max-width: 100%;
}

.subtle-text {
    color: var(--text-secondary);
    opacity: 0.7;
    font-size: 0.85rem;
    margin: 0.25rem 0;
}

/* Footer Copyright */
.footer-copyright {
    font-size: 0.9rem;
}


/* --- Icon Sprites --- */
.card-icon {
    width: 64px;
    height: 64px;
    margin-bottom: 1.5rem;
    background-repeat: no-repeat;
    background-size: 200% 200%;
    /* 2x2 Grid */
    display: inline-block;

    /* Smart Transparency for Icons */
    /* Light Mode: Multiply to remove white background from sprite */
    mix-blend-mode: multiply;
}

/* Service Icons */
.icon-service {
    background-image: url('icons-services.png');
}

.icon-service-1 {
    background-position: 0% 0%;
}

/* Neural/Brain */
.icon-service-2 {
    background-position: 100% 0%;
}

/* Chart */
.icon-service-3 {
    background-position: 0% 100%;
}

/* Shield */

/* Industry Icons */
.icon-industry {
    background-image: url('icons-industries.png');
    width: 48px;
    /* Slightly smaller for industry cards */
    height: 48px;
}

.icon-industry-1 {
    background-position: 0% 0%;
}

/* Bank */
.icon-industry-2 {
    background-position: 100% 0%;
}

/* Legal */
.icon-industry-3 {
    background-position: 0% 100%;
}

/* People */
.icon-industry-4 {
    background-position: 100% 100%;
}

/* Logistics */

/* Dark Mode Icon Inversion */
[data-theme="dark"] .card-icon {
    mix-blend-mode: screen;
    filter: invert(1);
    /* Turns Black Lines -> White Lines */
}

/* --- Tablet & Mobile --- */
@media (max-width: 1024px) {
    .hero .container {
        gap: 3rem;
    }

    .hero-visual {
        min-height: 350px;
        max-height: 500px;
    }

    .section {
        padding: 7rem 0;
    }

    .impact-metrics {
        padding: 6rem 0;
    }

    .nav-links {
        gap: 1.25rem;
    }

    .nav-links a:not(.btn) {
        font-size: 0.9rem;
    }

    .nav-links .btn {
        padding: 0.55rem 1.25rem;
        font-size: 0.85rem;
        min-height: 36px;
    }

    .impact-container.split-layout {
        gap: 4rem;
    }

    .metrics-grid {
        gap: 3rem 2rem;
    }
}

@media (max-width: 900px) {
    .nav-links {
        gap: 1rem;
    }

    .nav-links a:not(.btn) {
        font-size: 0.875rem;
    }

    .nav-links .btn {
        padding: 0.5rem 1rem;
        font-size: 0.8rem;
        min-height: 34px;
    }
}

@media (max-width: 768px) {
    .nav-links {
        position: fixed;
        top: var(--nav-height);
        left: 0;
        width: 100%;
        height: calc(100vh - var(--nav-height));
        background: rgba(255, 255, 255, 0.98);
        backdrop-filter: blur(12px);
        -webkit-backdrop-filter: blur(12px);
        flex-direction: column;
        align-items: center;
        justify-content: flex-start;
        padding-top: 3rem;
        gap: 1.5rem;
        transform: translateX(100%);
        transition: transform 0.3s ease-in-out;
        box-shadow: -2px 0 10px rgba(0, 0, 0, 0.1);
        overflow-y: auto;
    }

    .nav-links.active {
        transform: translateX(0);
    }

    .nav-links li {
        width: 100%;
        text-align: center;
    }

    .nav-links a:not(.btn) {
        display: block;
        padding: 1rem 2rem;
        font-size: 1rem;
        width: 100%;
        text-align: center;
        min-height: 44px;
        /* Better touch target */
        display: flex;
        align-items: center;
        justify-content: center;
    }

    .nav-links .btn {
        margin: 0.5rem auto;
        width: calc(100% - 4rem);
        max-width: 280px;
        padding: 0.875rem 1.5rem;
        font-size: 0.95rem;
        min-height: 44px;
    }

    .mobile-toggle {
        display: flex;
    }

    .hero {
        min-height: auto;
        padding: calc(var(--nav-height) + 2rem) 0 4rem;
    }

    .hero .container {
        flex-direction: column-reverse;
        text-align: center;
        gap: 2rem;
    }

    .hero-content {
        width: 100%;
    }

    .hero-content h1 {
        font-size: clamp(2rem, 8vw, 3rem);
        margin-bottom: 1rem;
        min-height: auto;
        line-height: 1.2;
    }

    .typewriter-text {
        display: inline;
        word-break: break-word;
        overflow-wrap: break-word;
    }

    .typewriter-cursor {
        font-size: inherit;
        margin-left: 1px;
    }

    .hero-content p {
        margin: 0 auto;
        max-width: 100%;
    }

    .hero-visual {
        min-height: 300px;
        max-height: 400px;
        width: 100%;
    }

    .section {
        padding: 5rem 0;
    }

    .section-header {
        text-align: center;
        margin: 0 auto 3rem;
        max-width: 100%;
    }

    .section-header p {
        margin: 0 auto;
    }

    .hero-actions {
        justify-content: center;
    }

    .split-layout {
        grid-template-columns: 1fr;
        gap: 3rem;
    }

    .split-visual {
        order: -1;
        min-height: 300px;
    }

    .split-visual .floating-image {
        max-height: 300px;
    }

    .logo-img {
        height: 28px;
    }

    .services-grid,
    .architecture-grid,
    .industries-grid {
        grid-template-columns: 1fr;
        gap: 1.5rem;
    }

    .card h3,
    .arch-step h4,
    .industry-card h4 {
        font-size: 1.15rem;
    }

    .card,
    .arch-step,
    .industry-card {
        padding: 2rem;
    }

    .impact-metrics {
        padding: 4rem 0;
    }

    .impact-container.split-layout {
        gap: 2.5rem;
    }

    .impact-text {
        text-align: center;
    }

    .metrics-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 2rem;
        padding-left: 0;
    }

    .metric-item h3 {
        font-size: clamp(1.75rem, 5vw, 2rem);
    }

    /* Ensure impact metrics numbers are visible on mobile */
    .impact-metrics .metric-item h3 {
        color: #ffffff !important;
        background: none !important;
        -webkit-background-clip: unset !important;
        -webkit-text-fill-color: unset !important;
    }

    [data-theme="dark"] .impact-metrics .metric-item h3 {
        color: #ffffff !important;
    }

    .abstract-shape {
        height: 300px;
        min-height: 250px;
    }

    .footer-content {
        flex-direction: column;
        text-align: center;
        gap: 1.5rem;
    }

    .footer-links {
        flex-direction: column;
        gap: 1rem;
    }

    .icon-box {
        font-size: 1.25rem;
    }

    .contact-wrapper {
        max-width: 100%;
        padding: 0 1rem;
    }

    .contact-wrapper h2 {
        font-size: clamp(1.75rem, 5vw, 2.25rem);
    }

    .contact-wrapper>p {
        font-size: 1rem;
    }

    .contact-details {
        font-size: 1rem;
    }
}

@media (max-width: 640px) {
    .container {
        width: 95%;
        padding: 0 0.75rem;
    }

    .hero .container {
        padding: 1rem 0.75rem;
    }

    .section {
        padding: 4rem 0;
    }

    .section-header {
        margin-bottom: 2.5rem;
    }

    .metrics-grid {
        grid-template-columns: 1fr;
        gap: 1.5rem;
    }

    .card,
    .arch-step,
    .industry-card {
        padding: 1.5rem;
    }

    .hero-content h1 {
        font-size: clamp(1.75rem, 7vw, 2.5rem);
        line-height: 1.2;
        min-height: auto;
    }

    .typewriter-text {
        font-size: inherit;
    }

    .typewriter-cursor {
        font-size: inherit;
    }

    .impact-metrics {
        padding: 3rem 0;
    }

    .impact-container.split-layout {
        gap: 2rem;
    }

    .impact-text h2 {
        font-size: clamp(1.5rem, 5vw, 2rem);
        margin-bottom: 1rem;
    }

    .impact-text p {
        font-size: 0.95rem;
    }

    /* Ensure impact metrics numbers are visible on small screens */
    .impact-metrics .metric-item h3 {
        color: #ffffff !important;
        background: none !important;
        -webkit-background-clip: unset !important;
        -webkit-text-fill-color: unset !important;
        background-clip: unset !important;
        font-size: clamp(1.75rem, 6vw, 2rem);
    }

    [data-theme="dark"] .impact-metrics .metric-item h3 {
        color: #ffffff !important;
    }

    .metrics-grid {
        gap: 1.5rem;
    }

    .metric-item {
        padding-top: 0.75rem;
    }

    .metric-item p {
        font-size: 0.85rem;
    }

    .btn {
        width: 100%;
        max-width: 300px;
    }

    .abstract-shape {
        height: 250px;
    }

    .logo-mark {
        width: 18px;
        height: 18px;
    }

    .logo-img {
        height: 24px;
    }

    .nav-links a {
        padding: 0.875rem 1.5rem;
        font-size: 1rem;
    }

    .split-visual {
        min-height: 250px;
    }

    .split-visual .floating-image {
        max-height: 250px;
    }
}

@media (max-width: 480px) {
    .container {
        padding: 0 0.5rem;
    }

    .hero .container {
        padding: 0.5rem;
    }

    .section {
        padding: 3rem 0;
    }

    .impact-metrics {
        padding: 2.5rem 0;
    }

    .impact-container.split-layout {
        gap: 1.5rem;
    }

    .impact-text h2 {
        font-size: clamp(1.5rem, 5vw, 1.75rem);
        margin-bottom: 1rem;
    }

    .impact-text p {
        font-size: 0.9rem;
    }

    .metrics-grid {
        gap: 1.25rem;
    }

    .metric-item h3 {
        font-size: clamp(1.5rem, 5vw, 1.75rem);
    }

    .metric-item {
        padding-top: 0.5rem;
    }

    .hero-content h1 {
        font-size: clamp(1.5rem, 6vw, 2rem);
        line-height: 1.2;
        min-height: auto;
    }

    .typewriter-text {
        font-size: inherit;
        word-break: break-word;
    }

    .typewriter-cursor {
        font-size: inherit;
        margin-left: 1px;
    }

    .card,
    .arch-step,
    .industry-card {
        padding: 1.25rem;
    }
}

/* Large Desktop */
@media (min-width: 1400px) {
    .hero-visual {
        max-height: 700px;
    }

    .section {
        padding: 12rem 0;
    }
}

/* Landscape Mobile */
@media (max-height: 500px) and (orientation: landscape) {
    .hero {
        min-height: auto;
        padding: calc(var(--nav-height) + 1rem) 0 2rem;
    }

    .hero-visual {
        min-height: 250px;
        max-height: 300px;
    }

    .section {
        padding: 3rem 0;
    }

    .impact-metrics {
        padding: 2.5rem 0;
    }

    .impact-container.split-layout {
        gap: 2rem;
    }

    .metrics-grid {
        gap: 2rem 1.5rem;
    }

    .metric-item h3 {
        font-size: clamp(1.5rem, 4vw, 2rem);
    }
}

/* --- Dark Mode Support --- */
/* --- Dark Mode Support --- */
[data-theme="dark"] {
    --bg-main: #0f172a;
    /* Slate 900 */
    --bg-alt: #1e293b;
    /* Slate 800 */

    --text-primary: #f8fafc;
    /* Slate 50 */
    --text-secondary: #cbd5e1;
    /* Slate 300 */

    --border-light: #334155;
    /* Slate 700 */

    --shadow-sm: 0 1px 2px 0 rgba(0, 0, 0, 0.3);
    --shadow-md: 0 4px 6px -1px rgba(0, 0, 0, 0.4), 0 2px 4px -1px rgba(0, 0, 0, 0.2);
    --shadow-lg: 0 10px 15px -3px rgba(0, 0, 0, 0.4), 0 4px 6px -2px rgba(0, 0, 0, 0.2);
}

[data-theme="dark"] .logo-img {
    filter: invert(1) brightness(200%);
}

[data-theme="dark"] .impact-metrics {
    background-color: #1a2332;
    /* Slightly lighter than main dark bg for contrast */
    border-top: 1px solid var(--border-light);
    border-bottom: 1px solid var(--border-light);
}

/* Ensure text remains visible in dark mode */
[data-theme="dark"] .impact-text h2 {
    color: #ffffff;
}

[data-theme="dark"] .impact-text p {
    color: rgba(255, 255, 255, 0.85);
}

[data-theme="dark"] .metric-item h3 {
    color: #ffffff !important;
    background: none !important;
    -webkit-background-clip: unset !important;
    -webkit-text-fill-color: unset !important;
    background-clip: unset !important;
}

/* Ensure impact metrics numbers are always visible */
.impact-metrics .metric-item h3 {
    color: #ffffff !important;
    background: none !important;
    -webkit-background-clip: unset !important;
    -webkit-text-fill-color: unset !important;
    background-clip: unset !important;
}

[data-theme="dark"] .impact-metrics .metric-item h3 {
    color: #ffffff !important;
    background: none !important;
    -webkit-background-clip: unset !important;
    -webkit-text-fill-color: unset !important;
    background-clip: unset !important;
}

[data-theme="dark"] .metric-item p {
    color: rgba(255, 255, 255, 0.7);
}

[data-theme="dark"] .metric-item {
    border-top-color: rgba(255, 255, 255, 0.25);
}

[data-theme="dark"] .impact-metrics::before {
    background: linear-gradient(135deg, rgba(255, 255, 255, 0.05) 0%, transparent 100%);
}

[data-theme="dark"] .industry-card:hover,
[data-theme="dark"] .card:hover {
    background-color: #1e293b;
    border-color: var(--accent-blue);
}

[data-theme="dark"] .navbar {
    background: rgba(15, 23, 42, 0.95);
    /* More opaque */
    border-bottom-color: rgba(255, 255, 255, 0.1);
}

[data-theme="dark"] .nav-links a:not(.btn) {
    color: #f8fafc;
    /* Force White for links */
}

[data-theme="dark"] .nav-links a:not(.btn):hover {
    color: var(--accent-blue);
}

[data-theme="dark"] .bar {
    background-color: #f8fafc;
}

/* Base Image Transparency (Light Mode) */
.hero-visual img,
.visual-container img {
    mix-blend-mode: multiply;
    /* Hides white background */
}

/* Smart Dark Mode Image Adaptation */
[data-theme="dark"] .hero-visual img,
[data-theme="dark"] .visual-container img {
    /* 
       The "Smart" Approach:
       1. Invert the image (White BG becomes Black BG)
       2. Use screen blend mode (Black BG becomes Transparent)
       3. Filter grayscale/hue to make the content look like a glowing wireframe/schematic
    */
    background: transparent;
    box-shadow: none;
    padding: 0;
    border-radius: 0;
    filter: invert(1) hue-rotate(180deg) brightness(1.2) contrast(1.1);
    mix-blend-mode: screen;
    opacity: 0.9;
    /* Subtle transparency for hologram effect */
}

/* Primary Button in Dark Mode */
[data-theme="dark"] .btn-primary {
    /* Make it pop against the dark bg */
    background-color: var(--accent-blue);
    border-color: var(--accent-blue);
    color: #ffffff;
    box-shadow: 0 0 20px rgba(37, 99, 235, 0.3);
    /* Blue glow */
}

[data-theme="dark"] .btn-primary:hover {
    background-color: transparent;
    color: #ffffff;
    box-shadow: 0 0 30px rgba(37, 99, 235, 0.5);
}

/* Theme Toggle Button */
.theme-toggle {
    background: none;
    border: 1px solid var(--border-light);
    color: var(--text-primary);
    cursor: pointer;
    padding: 0.5rem;
    border-radius: 50%;
    width: 36px;
    height: 36px;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.3s ease;
    margin-left: 0.5rem;
}

.theme-toggle:hover {
    background: var(--bg-alt);
    border-color: var(--accent-color);
}

.theme-toggle svg {
    width: 20px;
    height: 20px;
    fill: none;
    stroke: currentColor;
    stroke-width: 2;
    stroke-linecap: round;
    stroke-linejoin: round;
}