/* Base & Variables */
:root {
    --primary: #0B3C5D;
    --primary-dark: #072a42;
    --accent: #6ECF68;
    --accent-dark: #5ab355;
    --text: #1E293B;
    --text-muted: #64748B;
    --bg: #FFFFFF;
    --bg-light: #F8FAFC;
    --white: #FFFFFF;
    --transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    --shadow-sm: 0 1px 2px 0 rgb(0 0 0 / 0.05);
    --shadow: 0 4px 6px -1px rgb(0 0 0 / 0.1), 0 2px 4px -2px rgb(0 0 0 / 0.1);
    --shadow-lg: 0 10px 15px -3px rgb(0 0 0 / 0.1), 0 4px 6px -4px rgb(0 0 0 / 0.1);
    --radius: 12px;
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
}

body {
    font-family: 'Inter', sans-serif;
    color: var(--text);
    background-color: #031c2d;
    line-height: 1.6;
    overflow-x: hidden;
}

h1,
h2,
h3,
h4 {
    font-family: 'Outfit', sans-serif;
    line-height: 1.2;
    color: var(--primary);
}

a {
    text-decoration: none;
    color: inherit;
    transition: var(--transition);
}

ul {
    list-style: none;
}

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

.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
}

.hero,
.hero-bg,
.hero-overlay {
    width: 100%;
}

.hero-content {
    width: 100%;
}

.section-padding {
    padding: 100px 0;
}

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

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

.text-white {
    color: var(--white);
}

.text-white .section-title {
    color: var(--white);
}

/* Typography Utilities */
.section-header {
    text-align: center;
    max-width: 700px;
    margin: 0 auto 60px;
}

.section-title {
    font-size: 2.5rem;
    font-weight: 700;
    margin-bottom: 20px;
    position: relative;
}

.section-subtitle {
    font-size: 1.125rem;
    color: var(--text-muted);
}

.lead {
    font-size: 1.25rem;
    color: var(--primary);
    font-weight: 500;
    margin-bottom: 20px;
}

.text-gradient {
    background: linear-gradient(135deg, var(--primary) 0%, var(--accent) 100%);
    -webkit-background-clip: text;
    background-clip: text;
    -webkit-text-fill-color: transparent;
}

/* Buttons */
.btn {
    display: inline-block;
    padding: 12px 28px;
    border-radius: var(--radius);
    font-weight: 600;
    cursor: pointer;
    font-family: 'Outfit', sans-serif;
    text-align: center;
    border: 2px solid transparent;
}

.btn-lg {
    padding: 16px 36px;
    font-size: 1.1rem;
}

.btn-primary {
    background-color: var(--primary);
    color: var(--white);
}

.btn-primary:hover {
    background-color: var(--primary-dark);
    transform: translateY(-2px);
    box-shadow: var(--shadow-lg);
}

.btn-outline {
    border-color: var(--white);
    color: var(--white);
}

.btn-outline:hover {
    background-color: var(--white);
    color: var(--primary);
    transform: translateY(-2px);
}

.btn-block {
    display: block;
    width: 100%;
}

/* Header */
.header {
    padding: 20px 0;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    z-index: 1000;
    transition: var(--transition);
    background-color: rgba(6, 18, 46, 0.34);
    backdrop-filter: blur(14px);
    border-bottom: 1px solid rgba(255, 255, 255, 0.06);
}

.header.scrolled {
    background-color: rgba(7, 18, 44, 0.82);
    backdrop-filter: blur(18px);
    padding: 15px 0;
    box-shadow: var(--shadow);
}

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

.logo {
    font-size: 1.5rem;
    font-weight: 700;
    font-family: 'Outfit', sans-serif;
    text-shadow: 0 4px 18px rgba(0, 0, 0, 0.28);
}

.logo-text {
    color: #5bb6ff;
}

.logo-accent {
    color: var(--accent);
}

.nav-links {
    display: flex;
    align-items: center;
    gap: 30px;
}

.nav-links a {
    font-weight: 500;
    color: rgba(255, 255, 255, 0.82);
}

.nav-links a:hover {
    color: var(--white);
}

.mobile-menu-btn {
    display: none;
    background: none;
    border: none;
    color: var(--white);
    font-size: 1.5rem;
    cursor: pointer;
}

/* Hero */
.hero {
    height: 100vh;
    min-height: 700px;
    position: relative;
    display: flex;
    align-items: center;
    color: var(--white);
    overflow: hidden;
    padding: 0;
}

.hero-bg {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: radial-gradient(circle at 20% 20%, rgba(14, 43, 108, 0.55), transparent 35%), #0d1528;
    transform: scale(1.05);
}

.hero-bg canvas {
    width: 100%;
    height: 100%;
    display: block;
}

.hero-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background:
        linear-gradient(90deg, rgba(7, 18, 44, 0.94) 0%, rgba(8, 24, 57, 0.82) 36%, rgba(9, 28, 63, 0.4) 66%, rgba(9, 28, 63, 0.76) 100%),
        radial-gradient(circle at center, transparent 0%, rgba(13, 21, 40, 0.24) 55%, rgba(13, 21, 40, 0.72) 100%);
}

.hero-content {
    position: relative;
    z-index: 10;
    max-width: 800px;
    padding-top: 32px;
}

.hero-kicker {
    font-size: 0.95rem;
    text-transform: uppercase;
    letter-spacing: 0.12em;
    color: rgba(255, 255, 255, 0.72);
    margin-bottom: 18px;
    font-weight: 600;
}

.hero h1 {
    font-size: 4rem;
    color: var(--white);
    margin-bottom: 24px;
    text-shadow: 0 12px 30px rgba(0, 0, 0, 0.35);
}

.hero p {
    font-size: 1.25rem;
    margin-bottom: 40px;
    opacity: 0.9;
    max-width: 33rem;
    text-shadow: 0 10px 24px rgba(0, 0, 0, 0.3);
}

.hero-btns {
    display: flex;
    gap: 20px;
}

/* Trust Strip */
.trust-strip {
    background-color: var(--white);
    padding: 40px 0;
    border-bottom: 1px solid #e2e8f0;
}

.trust-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 30px;
}

.trust-item {
    display: flex;
    align-items: center;
    gap: 15px;
}

.trust-item i {
    color: var(--accent);
    width: 24px;
    height: 24px;
}

.trust-item span {
    font-weight: 600;
    font-size: 0.9rem;
    color: var(--primary);
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

/* Company Profile */
.profile-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 30px;
}

.profile-card {
    background-color: var(--white);
    border: 1px solid #e2e8f0;
    border-radius: var(--radius);
    padding: 36px;
    box-shadow: var(--shadow-sm);
}

.profile-label {
    display: inline-block;
    margin-bottom: 16px;
    font-size: 0.8rem;
    font-weight: 700;
    letter-spacing: 0.12em;
    text-transform: uppercase;
    color: var(--accent-dark);
}

.profile-card h3 {
    font-size: 1.35rem;
    margin-bottom: 14px;
}

.profile-card p {
    color: var(--text-muted);
}

/* Services */
.services-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 30px;
}

.services-divider {
    grid-column: 1 / -1;
    height: 1px;
    background: linear-gradient(90deg, transparent, #0b3c5d, transparent);
    margin: 0 auto;
}

.service-card.active {
    border-color: var(--primary);
    box-shadow: 0 10px 30px rgba(11, 60, 93, 0.15);
}

.service-tabs {
    margin-top: 50px;
    border-radius: var(--radius);
    background: var(--white);
    box-shadow: 0 15px 45px rgba(11, 60, 93, 0.08);
    display: grid;
    grid-template-columns: 320px 1fr;
    min-height: 500px;
    overflow: hidden;
    border: 1px solid rgba(11, 60, 93, 0.08);
    width: 100%;
}

.tab-buttons {
    display: flex;
    flex-direction: column;
    background: #f1f5f9;
    border-right: 1px solid rgba(11, 60, 93, 0.1);
    padding: 10px 0;
}

.tab-btn {
    border: none !important;
    outline: none !important;
    background: transparent;
    padding: 18px 24px;
    font-weight: 600;
    cursor: pointer;
    color: var(--text-muted);
    transition: all 0.3s ease;
    text-align: left;
    position: relative;
    display: flex;
    align-items: center;
    gap: 15px;
    font-size: 0.95rem;
}

.tab-btn i {
    font-size: 1.2rem;
    color: var(--accent);
    opacity: 0.6;
    transition: transform 0.3s ease;
}

.tab-btn:hover {
    background: rgba(11, 60, 93, 0.03);
    color: var(--primary);
}

.tab-btn:hover i {
    transform: scale(1.2);
    opacity: 1;
}

.tab-btn::after {
    content: '';
    position: absolute;
    right: 0;
    top: 50%;
    width: 0;
    height: 70%;
    background: var(--accent);
    transition: all 0.3s ease;
    transform: translateY(-50%);
    border-radius: 4px 0 0 4px;
}

@media (max-width: 992px) {
    .service-tabs {
        grid-template-columns: 1fr;
        min-height: auto;
        overflow: visible;
        padding: 12px 0 20px;
        box-shadow: none;
        border: none;
    }

    .tab-nav-wrapper {
        position: relative;
        background: #f1f5f9;
        border-bottom: 1px solid rgba(11, 60, 93, 0.1);
    }

    /* Scroll fade indicators */
    .tab-nav-wrapper::after {
        content: '';
        position: absolute;
        top: 0;
        right: 0;
        bottom: 0;
        width: 40px;
        background: linear-gradient(to right, transparent, rgba(241, 245, 249, 0.9));
        pointer-events: none;
        z-index: 2;
    }

    .tab-buttons {
        flex-direction: row;
        border-right: none;
        border-bottom: none;
        overflow-x: auto;
        padding: 10px 16px 6px;
        white-space: nowrap;
        scrollbar-width: none;
        -webkit-overflow-scrolling: touch;
        scroll-snap-type: x mandatory;
        gap: 10px;
        flex-wrap: wrap;
        justify-content: center;
    }
    .tab-buttons::-webkit-scrollbar { display: none; }
    
    .tab-btn {
        padding: 10px 20px;
        border-radius: 30px; /* Pill style on mobile */
        scroll-snap-align: center;
        flex: 0 0 auto;
    }
    
    .tab-btn i { font-size: 1rem; }
    
    .tab-btn::after {
        display: none !important; /* Remove the underline in favor of pill background */
    }

    .tab-btn.active {
        background: var(--primary) !important;
        color: var(--white) !important;
        box-shadow: 0 4px 12px rgba(11, 60, 93, 0.15);
    }

    .tab-btn.active i {
        color: var(--white);
        opacity: 1;
    }
}

.tab-btn.active {
    color: var(--primary);
    background: var(--white);
    font-weight: 700;
    box-shadow: -10px 0 20px rgba(0,0,0,0.02);
}

.tab-btn.active i {
    opacity: 1;
    color: var(--accent-dark);
}

.tab-btn.active::after {
    width: 4px;
}

.tab-panels {
    padding: 0;
}

.service-banner {
    width: 100%;
    height: 240px;
    overflow: hidden;
}

.service-banner-img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.5s ease;
}

.service-tab-panel.active .service-banner-img {
    animation: slowZoom 20s infinite alternate;
}

@keyframes slowZoom {
    from { transform: scale(1); }
    to { transform: scale(1.1); }
}

.service-tab-panel {
    display: none;
    opacity: 0;
    transform: translateY(15px);
    transition: all 0.5s cubic-bezier(0.4, 0, 0.2, 1);
    padding: 0 0 40px 0;
}

@media (max-width: 992px) {
    .service-tab-panel {
        padding: 0 15px 40px;
        width: 100%;
        box-sizing: border-box;
        overflow-x: hidden;
    }
    
    .tab-header {
        padding: 20px !important;
        margin-bottom: 15px !important;
        width: 100% !important;
        box-sizing: border-box !important;
        overflow-wrap: break-word;
        word-wrap: break-word;
        hyphens: auto;
    }
    
    .tab-header h3 {
        font-size: clamp(1.3rem, 6vw, 1.5rem) !important;
        line-height: 1.2;
        margin-bottom: 10px;
    }

    .tab-header p {
        font-size: 0.95rem;
        line-height: 1.5;
    }
}

.service-tab-panel.active {
    display: block;
    opacity: 1;
    transform: translateY(0);
}

.tab-header {
    padding: 40px;
    background: linear-gradient(to right, rgba(11, 60, 93, 0.02), transparent);
    border-bottom: 1px solid rgba(11, 60, 93, 0.05);
    margin-bottom: 20px;
}

.tab-header h3 {
    font-size: 1.85rem;
    color: var(--primary);
    margin-bottom: 12px;
    font-weight: 700;
}

.tab-header p {
    font-size: 1.1rem;
    color: var(--text-muted);
    line-height: 1.6;
    max-width: 850px;
}

.service-tab-panel .split-layout {
    padding: 20px 40px 40px;
    align-items: flex-start;
    gap: 60px;
}
.capabilities-list {
    margin-top: 20px;
    padding: 0;
    list-style: none;
    display: grid;
    gap: 12px;
}

.capabilities-list li {
    position: relative;
    padding-left: 28px;
    color: var(--text-muted);
    line-height: 1.5;
    font-size: 0.95rem;
}

.capabilities-list li::before {
    content: '✓';
    position: absolute;
    left: 0;
    top: 2px;
    width: 18px;
    height: 18px;
    background-color: rgba(110, 207, 104, 0.15);
    color: var(--accent-dark);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 10px;
    font-weight: 900;
}

.service-card {
    background-color: var(--white);
    padding: 40px;
    border-radius: var(--radius);
    border: 1px solid #e2e8f0;
    transition: var(--transition);
    cursor: pointer;
}

.service-card:hover {
    transform: translateY(-10px);
    box-shadow: var(--shadow-lg);
    border-color: var(--accent);
}

.service-icon {
    width: 60px;
    height: 60px;
    background-color: rgba(110, 207, 104, 0.1);
    color: var(--accent);
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 24px;
}

.service-card h3 {
    font-size: 1.5rem;
    margin-bottom: 16px;
}

.service-card p {
    color: var(--text-muted);
}

/* About */
.split-layout {
    display: flex;
    align-items: center;
    gap: 60px;
}

.split-layout.reverse {
    flex-direction: row-reverse;
}

.split-content {
    flex: 1;
}

.split-image {
    flex: 0 0 45%;
    max-height: 320px;
    height: 100%;
}

.split-image img {
    width: 100%;
    height: 100%;
    min-height: 240px;
    max-height: 320px;
    object-fit: cover;
    border-radius: var(--radius);
}

.section-pivot-text {
    text-align: center;
    padding: 30px 60px;
    background: linear-gradient(to right, transparent, rgba(11, 60, 93, 0.04), transparent);
    border-top: 1px solid rgba(11, 60, 93, 0.06);
    border-bottom: 1px solid rgba(11, 60, 93, 0.06);
    margin: 40px 0;
    font-size: 1.15rem;
    font-weight: 500;
    color: var(--primary);
    line-height: 1.6;
    font-style: italic;
    letter-spacing: 0.2px;
}

.validation-subsections {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 32px;
    margin-top: 50px;
    padding: 0 20px;
}

.validation-card {
    background-color: var(--white);
    border-radius: var(--radius);
    padding: 32px;
    border: 1px solid rgba(11, 60, 93, 0.08);
    box-shadow: var(--shadow-sm);
    display: flex;
    flex-direction: column;
    text-align: center;
    transition: all 0.3s ease;
    height: 100%;
}

.validation-card:hover {
    transform: translateY(-8px);
    box-shadow: var(--shadow-lg);
    border-color: var(--accent);
}

.validation-card img {
    width: 100%;
    height: 180px;
    object-fit: cover;
    border-radius: 8px;
    margin-bottom: 24px;
}

.validation-card h4 {
    color: var(--primary);
    font-size: 1.25rem;
    font-weight: 700;
    margin-bottom: 16px;
    line-height: 1.3;
}

.validation-card p {
    color: var(--text-muted);
    font-size: 0.95rem;
    line-height: 1.7;
    margin-top: auto;
}

.image-wrapper {
    position: relative;
    padding: 10px;
}

.image-wrapper::before {
    content: '';
    position: absolute;
    top: -5px;
    right: -5px;
    width: 60px;
    height: 60px;
    border-top: 4px solid var(--accent);
    border-right: 4px solid var(--accent);
    z-index: 1;
    border-radius: 0 12px 0 0;
}

.stats-grid {
    display: flex;
    gap: 40px;
    margin-top: 40px;
}

.stat-number {
    display: block;
    font-size: 2.5rem;
    font-weight: 700;
    color: var(--accent);
    font-family: 'Outfit', sans-serif;
}

.stat-label {
    font-size: 0.9rem;
    color: var(--text-muted);
    font-weight: 600;
}

/* Vision */
.vision {
    background-color: #f0f4ff;
}

.vision-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 30px;
    margin-top: 40px;
}

.vision-card {
    background-color: var(--white);
    border-radius: var(--radius);
    padding: 40px;
    text-align: center;
    border: 1px solid rgba(6, 18, 46, 0.08);
    box-shadow: var(--shadow-sm);
    min-height: 220px;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 12px;
}

.vision-card i {
    font-size: 2.5rem;
    color: var(--accent);
}

.vision-card h3 {
    color: var(--primary);
    font-size: 1.25rem;
}

.vision-card p {
    color: var(--text-muted);
    font-size: 0.95rem;
}

.service-detail {
    background-color: var(--white);
}

.service-detail.bg-light {
    background-color: #eef2ff;
}

.service-detail .split-layout {
    gap: 40px;
}

.automation-subsection {
    display: flex;
    align-items: center;
    gap: 30px;
    margin-top: 30px;
    padding-top: 20px;
    border-top: 1px solid #e2e8f0;
}

.automation-subsection.reverse {
    flex-direction: row-reverse;
}

.subsection-image, .subsection-content {
    flex: 1;
}

.subsection-content h4 {
    margin-top: 0;
    margin-bottom: 12px;
    font-size: 1.25rem;
    color: #0b3c5d;
}

/* Validation Section Cleaned Up - Moved and Merged Above */

/* How We Work */
.steps-grid {
    display: grid;
    grid-template-columns: repeat(5, 1fr);
    gap: 20px;
    position: relative;
}

.steps-grid::before {
    content: '';
    position: absolute;
    top: 30px;
    left: 50px;
    right: 50px;
    height: 2px;
    background-color: #e2e8f0;
    z-index: 1;
}

.step-item {
    text-align: center;
    position: relative;
    z-index: 2;
}

.step-number {
    width: 60px;
    height: 60px;
    background-color: var(--white);
    border: 2px solid #e2e8f0;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 20px;
    font-weight: 700;
    color: var(--primary);
    transition: var(--transition);
}

.step-item:hover .step-number {
    border-color: var(--accent);
    background-color: var(--accent);
    color: var(--white);
}

.step-item i {
    color: var(--accent);
    margin-bottom: 15px;
}

.step-item h3 {
    font-size: 1.1rem;
    margin-bottom: 10px;
}

.step-item p {
    font-size: 0.875rem;
    color: var(--text-muted);
}

/* Why Choose Us */
.why-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 40px;
}

.why-item {
    text-align: center;
}

.why-item i {
    width: 48px;
    height: 48px;
    color: var(--accent);
    margin-bottom: 20px;
}

.why-item h3 {
    color: var(--white);
    font-size: 1.25rem;
    margin-bottom: 12px;
}

.why-item p {
    color: rgba(255, 255, 255, 0.7);
    font-size: 0.95rem;
}

/* Tech Expertise */
.tech-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 30px;
}

.tech-card {
    padding: 40px;
    background-color: var(--white);
    border-radius: var(--radius);
    box-shadow: var(--shadow);
    border-bottom: 4px solid transparent;
    transition: var(--transition);
}

.tech-card:hover {
    border-bottom-color: var(--accent);
    transform: translateY(-5px);
}

.tech-icon {
    font-size: 2rem;
    color: var(--accent);
    margin-bottom: 20px;
}

.tech-list {
    margin-top: 20px;
}

.tech-list li {
    position: relative;
    padding-left: 25px;
    margin-bottom: 10px;
    color: var(--text-muted);
}

.tech-list li::before {
    content: '->';
    position: absolute;
    left: 0;
    color: var(--accent);
    font-weight: bold;
}

/* Clients */
.clients {
    background-color: var(--bg-light);
}

.client-marquee-wrapper {
    margin-top: 36px;
    overflow: hidden;
    border-radius: var(--radius);
    border: 1px solid #e1ebf4;
    background-color: var(--white);
    box-shadow: var(--shadow-sm);
}

.client-marquee {
    display: flex;
    align-items: center;
    gap: 60px;
    padding: 30px 0;
    padding-right: 60px;
    width: max-content;
    animation: marquee-scroll 40s linear infinite;
}

.client-logo {
    height: 150px;
    width: auto;
    object-fit: contain;
    filter: none;
    opacity: 0.95;
    transition: var(--transition);
    flex-shrink: 0;
}

.client-logo:hover {
    opacity: 1;
    transform: scale(1.05);
}

@keyframes marquee-scroll {
    0% {
        transform: translateX(0);
    }

    100% {
        transform: translateX(-50%);
    }
}

/* Case Study */
.case-card {
    display: flex;
    background-color: var(--white);
    border-radius: var(--radius);
    overflow: hidden;
    max-width: 1000px;
    margin: 0 auto;
}

.case-image {
    flex: 1;
    min-height: 400px;
}

.case-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.case-content {
    flex: 1.2;
    padding: 60px;
}

.case-tag {
    display: inline-block;
    padding: 6px 12px;
    background-color: rgba(110, 207, 104, 0.1);
    color: var(--accent-dark);
    font-size: 0.8rem;
    font-weight: 700;
    text-transform: uppercase;
    border-radius: 4px;
    margin-bottom: 20px;
}

.case-content h3 {
    font-size: 1.8rem;
    margin-bottom: 30px;
}

.case-info-item {
    margin-bottom: 20px;
}

.case-info-item strong {
    display: block;
    color: var(--primary);
    margin-bottom: 5px;
    font-size: 0.95rem;
}

.case-info-item p {
    color: var(--text-muted);
    font-size: 0.95rem;
}

/* Final CTA */
.final-cta {
    position: relative;
    overflow: hidden;
    background: #031c2d; /* Solid dark base */
    color: var(--white);
}

.cta-bg-wrapper {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 1;
    opacity: 0.6;
}

.final-cta h2 {
    color: var(--white);
    font-size: 2.5rem;
    margin-bottom: 20px;
}

.final-cta p {
    font-size: 1.2rem;
    margin-bottom: 40px;
    opacity: 0.8;
}

.cta-btns {
    display: flex;
    justify-content: center;
    gap: 20px;
}

/* Contact Section */
.contact-wrapper {
    display: flex;
    border-radius: var(--radius);
    overflow: hidden;
    background-color: var(--white);
}

.contact-info {
    flex: 1;
    padding: 60px;
}

.contact-info h3 {
    color: var(--white);
    font-size: 2rem;
    margin-bottom: 20px;
}

.contact-details {
    margin-top: 40px;
}

.detail-item {
    display: flex;
    align-items: flex-start;
    gap: 15px;
    margin-bottom: 20px;
}

.detail-item i {
    color: var(--accent);
    margin-top: 4px;
}

.detail-item a {
    color: inherit;
}

.detail-item a:hover {
    color: #d9ffe0;
    text-decoration: underline;
    text-underline-offset: 3px;
}

.contact-form-container {
    flex: 1.5;
    padding: 60px;
}

.map-card {
    margin-top: 28px;
    overflow: hidden;
    border-radius: var(--radius);
    background-color: var(--white);
}

.map-card iframe {
    display: block;
    width: 100%;
    min-height: 420px;
}

.form-group {
    margin-bottom: 20px;
}

.form-group label {
    display: block;
    margin-bottom: 8px;
    font-weight: 600;
    font-size: 0.9rem;
}

.form-group input,
.form-group textarea {
    width: 100%;
    padding: 12px 16px;
    border: 1px solid #e2e8f0;
    border-radius: 8px;
    font-family: inherit;
    font-size: 1rem;
    transition: var(--transition);
}

.form-group input:focus,
.form-group textarea:focus {
    outline: none;
    border-color: var(--accent);
    box-shadow: 0 0 0 3px rgba(110, 207, 104, 0.1);
}

.form-status {
    margin-top: 14px;
    font-size: 0.95rem;
    min-height: 1.5em;
}

.form-status.success {
    color: #157347;
}

.form-status.error {
    color: #b42318;
}

/* Footer */
.footer {
    background-color: #031c2d;
    color: var(--white);
    padding: 80px 0 40px;
}

.footer-grid {
    display: grid;
    grid-template-columns: 2fr 1fr 1fr;
    gap: 60px;
    margin-bottom: 60px;
}

.footer-brand p {
    margin-top: 20px;
    opacity: 0.6;
    max-width: 300px;
}

.footer h4 {
    color: var(--white);
    margin-bottom: 25px;
}

.footer-links ul li,
.footer-legal ul li {
    margin-bottom: 15px;
}

.footer-links a,
.footer-legal a {
    color: rgba(255, 255, 255, 0.6);
}

.footer-links a:hover,
.footer-legal a:hover {
    color: var(--accent);
}

.footer-bottom {
    padding-top: 40px;
    border-top: 1px solid rgba(255, 255, 255, 0.1);
    text-align: center;
    color: rgba(255, 255, 255, 0.4);
    font-size: 0.9rem;
}

/* Responsive */
@media (max-width: 1024px) {
    .hero h1 {
        font-size: 3rem;
    }

    .hero-content {
        max-width: 640px;
    }

    .profile-grid {
        grid-template-columns: repeat(2, 1fr);
    }
    .split-layout {
        flex-direction: column;
    }

    .services-grid {
        grid-template-columns: repeat(2, 1fr);
    }

    .steps-grid {
        grid-template-columns: repeat(3, 1fr);
        gap: 40px;
    }

    .steps-grid::before {
        display: none;
    }

    .why-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (max-width: 768px) {
    .case-card {
        flex-direction: column;
    }

    .case-image {
        min-height: 250px;
    }

    .case-content {
        padding: 30px;
    }

    .nav-links {
        display: none;
    }

    .mobile-menu-btn {
        display: block;
    }

    .hero {
        min-height: 100svh;
        text-align: center;
        padding-top: 60px;
        align-items: center;
        padding-bottom: 60px;
        justify-content: center;
    }

    .hero-overlay {
        background:
            linear-gradient(180deg, rgba(7, 18, 44, 0.9) 0%, rgba(8, 24, 57, 0.8) 32%, rgba(9, 28, 63, 0.56) 62%, rgba(13, 21, 40, 0.78) 100%),
            radial-gradient(circle at center, transparent 0%, rgba(13, 21, 40, 0.28) 58%, rgba(13, 21, 40, 0.76) 100%);
    }

    .hero-content {
        width: 100%;
        max-width: 100%;
        padding-top: 24px;
        padding-left: 16px;
        padding-right: 16px;
    }

    .hero {
        align-items: center;
        text-align: center;
    }

    .hero-content {
        max-width: 360px;
        margin: 0 auto;
        padding-inline: 18px;
        text-align: center;
        display: flex;
        flex-direction: column;
        align-items: center;
        gap: 10px;
    }

    .hero h1 {
        font-size: clamp(2.6rem, 12vw, 3.6rem);
        margin-bottom: 18px;
        letter-spacing: -0.01em;
        line-height: 1.3;
    }

    .hero p {
        font-size: 1rem;
        margin-bottom: 28px;
        max-width: 100%;
        line-height: 1.5;
    }

    .hero-btns {
        justify-content: center;
        flex-direction: column;
    }

    .hero-btns .btn {
        width: 100%;
        max-width: 280px;
    }

    .trust-grid {
        grid-template-columns: repeat(2, 1fr);
    }

    .split-layout {
        flex-direction: column;
    }

    .profile-grid,
    .services-grid,
    .tech-grid,
    .footer-grid {
        grid-template-columns: 1fr;
    }

    .contact-wrapper {
        flex-direction: column;
    }

    .contact-info,
    .contact-form-container {
        padding: 36px 24px;
    }

    .map-card iframe {
        min-height: 320px;
    }

    .section-title {
        font-size: 2rem;
    }

    .steps-grid {
        grid-template-columns: 1fr;
    }

    .vision-grid {
        grid-template-columns: 1fr;
    }

    .split-layout.reverse {
        flex-direction: column-reverse;
    }

    /* Additional Mobile Optimizations */
    .nav .logo img {
        filter: drop-shadow(0 0 10px rgba(0,0,0,0.15)); /* Soft shadow for readability on dark headers */
    }

    .stats-grid {
        justify-content: center;
        gap: 30px;
        flex-wrap: wrap;
        text-align: center;
    }

    .nav-links.active li {
        margin: 15px 0;
        width: 100%;
        text-align: center;
    }
}

@media (max-width: 640px) {
    .section-padding {
        padding: 70px 0;
    }

    .header {
        padding: 10px 0;
        background-color: rgba(6, 18, 46, 0.95);
        border-bottom-color: rgba(255, 255, 255, 0.1);
    }

    .container {
        max-width: 100%;
        padding: 0 16px;
    }

    .hero {
        min-height: 90svh;
        padding-top: 90px;
    }

    .hero h1 {
        font-size: clamp(2.3rem, 11vw, 2.8rem);
    }

    .hero p {
        max-width: 100%;
    }

    .tab-header {
        padding: 20px 14px;
    }

    .tab-header h3 {
        font-size: 1.4rem;
    }

    .service-banner-img {
        border-radius: 16px;
    }

    .capabilities-list li {
        font-size: 0.9rem;
    }

    .validation-subsections {
        padding: 0 6px;
    }

    .validation-card {
        padding: 24px;
    }

    .client-marquee {
        gap: 32px;
        padding-left: 20px;
        padding-right: 20px;
    }

    .client-logo {
        height: 90px;
    }

    .final-cta {
        text-align: left;
    }

    .final-cta .container {
        padding: 0;
    }

    .contact-wrapper {
        border-radius: 18px 18px 0 0;
        padding: 0;
    }

    .contact-info,
    .contact-form-container {
        padding: 28px 18px;
    }

    .map-card iframe {
        width: 100%;
    }

    .footer {
        padding: 60px 0 40px;
    }

    .footer-grid {
        gap: 30px;
    }

    .service-tabs {
        margin: 0;
        border-radius: 0;
        border: none;
        box-shadow: none;
        overflow: visible;
        padding: 0;
    }

    .tab-nav-wrapper {
        border-bottom: 1px solid rgba(11, 60, 93, 0.08);
    }

    .tab-buttons {
        padding: 8px 12px 6px;
        gap: 6px;
        flex-wrap: wrap;
        justify-content: center;
    }

    .tab-btn {
        padding: 10px 14px;
        font-size: 0.9rem;
    }

    .service-tab-panel {
        margin-top: 0;
        border-radius: 18px;
        box-shadow: var(--shadow-sm);
        background-color: var(--white);
        padding: 16px 12px 32px;
        border: 1px solid rgba(11, 60, 93, 0.08);
    }

    .service-tab-panel .split-layout {
        padding: 0;
        gap: 16px;
    }

    .service-banner {
        border-radius: 12px;
        height: 160px;
    }
}

/* Logo & Branding */
.nav .logo img {
    height: 50px;
    width: auto;
}

.footer .logo img {
    height: 50px; /* Slightly smaller for elegance */
    width: auto;
    background: rgba(255, 255, 255, 0.95); /* Softened white */
    padding: 8px 12px;
    border-radius: 6px;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.2);
    display: inline-block;
    transition: var(--transition);
}

.footer .logo img:hover {
    transform: translateY(-3px);
    background: #ffffff;
    box-shadow: 0 8px 20px rgba(0, 0, 0, 0.3);
}

/* Accessibility & Utils */
.sr-only {
    position: absolute;
    width: 1px;
    height: 1px;
    padding: 0;
    margin: -1px;
    overflow: hidden;
    clip: rect(0, 0, 0, 0);
    white-space: nowrap;
    border-width: 0;
}
