@import url('https://fonts.googleapis.com/css2?family=Inter:wght@300;400;500;600&family=Outfit:wght@500;700;900&display=swap');

:root {
    /* Color Palette - Aggressive Industrial Dark & Fanuc Red */
    --bg-primary: #05070c;
    /* Deep slate background */
    --bg-secondary: #0b0f19;
    /* Lighter section background */
    --bg-tertiary: #121826;
    /* Card background */
    --brand-red: #d91433;
    /* Official Fanuc Red */
    --brand-red-hover: #ff1f43;
    /* Bright crimson on hover */
    --brand-red-light: rgba(217, 20, 51, 0.08);
    --brand-red-glow: rgba(217, 20, 51, 0.35);
    --text-primary: #f8fafc;
    /* Crisp white */
    --text-secondary: #94a3b8;
    /* Slate gray */
    --text-dim: #475569;
    /* Muted gray */
    --border-light: rgba(255, 255, 255, 0.08);
    --shadow-soft: 0 8px 30px rgba(0, 0, 0, 0.3);

    /* Transitions & Sizes */
    --transition-premium: all 0.45s cubic-bezier(0.16, 1, 0.3, 1);
    --radius-sm: 2px;
    --radius-md: 4px;
}

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

html {
    scroll-behavior: smooth;
}

body {
    background-color: var(--bg-primary);
    color: var(--text-primary);
    font-family: 'Inter', sans-serif;
    line-height: 1.7;
    overflow-x: hidden;
}

h1,
h2,
h3,
h4 {
    font-family: 'Outfit', sans-serif;
    letter-spacing: -0.02em;
    font-weight: 900;
}

/* Corporate Header with Top Red Accent */
header {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100px;
    padding: 0 8%;
    display: flex;
    justify-content: space-between;
    align-items: center;
    z-index: 1000;
    background: rgba(5, 7, 12, 0.75);
    /* Translucent dark background */
    backdrop-filter: blur(12px);
    /* Glassmorphic blur */
    -webkit-backdrop-filter: blur(12px);
    border-top: 4px solid var(--brand-red);
    /* Aggressive Red Accent */
    border-bottom: 1px solid var(--border-light);
    transition: var(--transition-premium), transform 1.2s cubic-bezier(0.16, 1, 0.3, 1);
    transform: translateY(-100%);
}

body.loaded header {
    transform: translateY(0);
}

header.scrolled {
    height: 75px;
    background: rgba(5, 7, 12, 0.9);
    box-shadow: 0 10px 40px rgba(0, 0, 0, 0.5), 0 1px 0 var(--border-light);
}

.logo {
    font-family: 'Outfit', sans-serif;
    font-size: 28px;
    font-weight: 900;
    text-decoration: none;
    color: #fff;
    text-transform: uppercase;
    letter-spacing: 2px;
}

.logo span {
    color: var(--brand-red);
}

nav ul {
    display: flex;
    list-style: none;
    gap: 40px;
    align-items: center;
}

/* Language Switcher Redesign */
.lang-switcher {
    display: inline-flex;
    align-items: center;
    background: rgba(255, 255, 255, 0.03);
    border: 1px solid var(--border-light);
    border-radius: var(--radius-sm);
    padding: 3px;
    gap: 4px;
    margin-right: 20px;
}

.lang-btn {
    background: transparent;
    border: none;
    color: var(--text-secondary);
    font-size: 11px;
    font-weight: 900;
    text-transform: uppercase;
    letter-spacing: 1px;
    padding: 6px 12px;
    cursor: pointer;
    border-radius: var(--radius-sm);
    transition: var(--transition-premium);
    display: inline-flex;
    align-items: center;
    justify-content: center;
    text-decoration: none;
}

.lang-btn:hover:not(.active) {
    color: var(--text-primary);
    background: rgba(255, 255, 255, 0.05);
}

.lang-btn.active {
    color: #ffffff;
    background: var(--brand-red);
    box-shadow: 0 0 10px var(--brand-red-glow);
}

nav a {
    text-decoration: none;
    color: var(--text-secondary);
    font-size: 13px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 1px;
    transition: var(--transition-premium);
}

nav a:hover,
nav a.active {
    color: var(--brand-red);
}

/* Formal Primary Button */
.btn-primary {
    background: var(--brand-red);
    color: white;
    padding: 16px 36px;
    text-decoration: none;
    font-weight: 800;
    font-size: 13px;
    text-transform: uppercase;
    letter-spacing: 1.5px;
    border-radius: var(--radius-sm);
    transition: var(--transition-premium);
    display: inline-flex;
    align-items: center;
    border: none;
}

.btn-primary:hover {
    background: var(--brand-red-hover);
    transform: translateY(-2px);
    box-shadow: 0 10px 25px var(--brand-red-glow);
}

.btn-outline {
    background: transparent;
    border: 2px solid var(--text-primary);
    color: var(--text-primary);
    padding: 16px 36px;
    text-decoration: none;
    font-weight: 800;
    font-size: 13px;
    text-transform: uppercase;
    letter-spacing: 1.5px;
    border-radius: var(--radius-sm);
    transition: var(--transition-premium);
}

.btn-outline:hover {
    border-color: var(--brand-red);
    color: var(--brand-red);
}

/* Hero Section Refined */
.hero {
    min-height: 95vh;
    width: 100%;
    position: relative;
    display: flex;
    align-items: center;
    padding: 150px 0 80px;
    /* Account for fixed header spacing */
    background:
        radial-gradient(circle at 50% 50%, rgba(217, 20, 51, 0.08), transparent 60%),
        linear-gradient(to bottom, rgba(5, 7, 12, 0.94) 0%, rgba(5, 7, 12, 0.88) 50%, rgba(5, 7, 12, 0.96) 100%),
        url('images/cncsonic_hero.png');
    background-size: cover;
    background-position: center;
    background-attachment: fixed;
    /* Parallax effect */
    overflow: hidden;
}

.hero-grid {
    display: grid;
    grid-template-columns: 1.2fr 0.8fr;
    gap: 60px;
    align-items: center;
    width: 100%;
}

.hero-content {
    position: relative;
    z-index: 10;
}

/* Futuristic Badge Style */
.hero-badge {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    padding: 8px 16px;
    background: rgba(217, 20, 51, 0.08);
    border: 1px solid rgba(217, 20, 51, 0.25);
    border-radius: 50px;
    margin-bottom: 25px;
}

.badge-dot {
    width: 6px;
    height: 6px;
    background: var(--brand-red);
    border-radius: 50%;
    display: inline-block;
    box-shadow: 0 0 10px var(--brand-red);
    animation: badgePulse 2s infinite ease-in-out;
}

@keyframes badgePulse {

    0%,
    100% {
        transform: scale(0.9);
        opacity: 0.6;
    }

    50% {
        transform: scale(1.2);
        opacity: 1;
    }
}

.badge-text {
    font-size: 11px;
    font-weight: 800;
    text-transform: uppercase;
    letter-spacing: 2px;
    color: var(--brand-red);
}

.hero-title {
    font-size: clamp(42px, 5.2vw, 82px);
    line-height: 1.05;
    margin-bottom: 30px;
    text-transform: uppercase;
    font-weight: 900;
}

.hero-title span.title-white {
    background: linear-gradient(135deg, #ffffff 40%, #cbd5e1);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
}

.hero-title span.title-red {
    background: linear-gradient(135deg, var(--brand-red) 30%, #ff4d6d);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    margin-top: 5px;
}

.hero-desc {
    font-size: 18px;
    color: var(--text-secondary);
    max-width: 580px;
    margin-bottom: 40px;
    border-left: 3px solid var(--brand-red);
    padding-left: 20px;
    line-height: 1.7;
}

.hero-actions {
    display: flex;
    gap: 20px;
    align-items: center;
    flex-wrap: wrap;
}

/* Image Container */
.hero-visual-wrapper {
    width: 100%;
    display: flex;
    justify-content: center;
    align-items: center;
}

.hero-visual {
    position: relative;
    width: 100%;
    border-radius: var(--radius-md);
    overflow: hidden;
    border: 1px solid rgba(255, 255, 255, 0.08);
    box-shadow: 0 30px 60px rgba(0, 0, 0, 0.6), 0 0 50px rgba(217, 20, 51, 0.08);
}

.hero-image {
    width: 100%;
    height: 100%;
    object-fit: cover;
    aspect-ratio: 1.15 / 1;
    display: block;
    filter: brightness(0.9) contrast(1.05);
}

/* High-tech Corner Brackets */
.corner-bracket {
    position: absolute;
    width: 16px;
    height: 16px;
    border: 2px solid var(--brand-red);
    z-index: 5;
    pointer-events: none;
}

.cb-tl {
    top: 20px;
    left: 20px;
    border-right: none;
    border-bottom: none;
}

.cb-tr {
    top: 20px;
    right: 20px;
    border-left: none;
    border-bottom: none;
}

.cb-bl {
    bottom: 20px;
    left: 20px;
    border-right: none;
    border-top: none;
}

.cb-br {
    bottom: 20px;
    right: 20px;
    border-left: none;
    border-top: none;
}

/* Floating Telemetry Badges */
.telemetry-badge {
    position: absolute;
    padding: 10px 16px;
    background: rgba(5, 7, 12, 0.85);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: var(--radius-sm);
    display: flex;
    align-items: center;
    gap: 10px;
    z-index: 10;
    box-shadow: var(--shadow-soft);
    pointer-events: none;
}

.tm-status {
    top: 140px;
    left: 8%;
    border-left: 3px solid #10b981;
}

.tm-precision {
    bottom: 40px;
    right: 8%;
    border-left: 3px solid var(--brand-red);
}

.tm-dot-pulse {
    width: 8px;
    height: 8px;
    background: #10b981;
    border-radius: 50%;
    box-shadow: 0 0 10px #10b981;
    animation: tm-pulse 1.8s infinite ease-in-out;
}

.tm-icon {
    width: 14px;
    height: 14px;
    color: var(--brand-red);
}

.tm-text {
    font-family: 'Inter', sans-serif;
    font-size: 10px;
    font-weight: 800;
    letter-spacing: 1.5px;
    color: #ffffff;
    text-transform: uppercase;
}

@keyframes tm-pulse {

    0%,
    100% {
        opacity: 0.5;
        transform: scale(0.9);
    }

    50% {
        opacity: 1;
        transform: scale(1.15);
    }
}

/* Sections Corporate */
section {
    padding: 120px 0;
    width: 100%;
    display: flex;
    flex-direction: column;
    align-items: center;
}

.container {
    width: 84%;
    max-width: 1400px;
    margin: 0 auto;
}

.section-tag {
    color: var(--brand-red);
    font-size: 13px;
    font-weight: 900;
    text-transform: uppercase;
    letter-spacing: 4px;
    margin-bottom: 20px;
    display: block;
}

.section-title h2 {
    font-size: 52px;
    margin-bottom: 80px;
    color: var(--text-primary);
    text-transform: uppercase;
}

/* Partner Logo Bar - Infinite Scroll */
.partner-section {
    padding: 60px 0;
    background: var(--bg-secondary);
    border-bottom: 1px solid var(--border-light);
    overflow: hidden;
    position: relative;
    width: 100%;
}

.partner-track-wrapper {
    display: flex;
    align-items: center;
    width: 100%;
}

.partner-track {
    display: flex;
    gap: 120px;
    animation: scroll 40s linear infinite;
    width: max-content;
    padding-left: 0%;
}

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

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

/* SVG Logo Styling */
.partner-svg {
    height: 35px;
    width: auto;
    filter: grayscale(1) brightness(3);
    opacity: 0.4;
    transition: var(--transition-premium);
    flex-shrink: 0;
}

.partner-svg:hover {
    filter: grayscale(0) brightness(1);
    opacity: 1;
}

/* Bento Grid Red-Centric */
.bento-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    grid-auto-rows: 320px;
    gap: 30px;
}

.bento-item {
    background: var(--bg-tertiary);
    border: 1px solid var(--border-light);
    border-radius: var(--radius-md);
    transition: var(--transition-premium);
    display: flex;
    flex-direction: column;
    position: relative;
    overflow: hidden;
    padding: 0;
    /* Remove padding from card, will use for text box */
}

.bento-img {
    width: 100%;
    height: 60%;
    overflow: hidden;
    position: relative;
}

.bento-img img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    opacity: 0.9;
    filter: brightness(0.95);
}

.bento-item:hover .bento-img img {
    transform: scale(1.05);
    opacity: 1;
}

.bento-info {
    padding: 30px;
    background: var(--bg-tertiary);
    flex: 1;
    display: flex;
    flex-direction: column;
    justify-content: flex-start;
    border-top: 1px solid var(--border-light);
}

.bento-item:hover {
    border-color: var(--brand-red);
    box-shadow: 0 20px 40px -10px var(--brand-red-glow);
    transform: translateY(-8px);
}

.bento-item h3 {
    font-size: 24px;
    margin-bottom: 12px;
    color: var(--text-primary);
    text-transform: uppercase;
}

.bento-item p {
    font-size: 14px;
    color: var(--text-secondary);
    line-height: 1.6;
}

.bento-large {
    grid-column: span 2;
    grid-row: span 2;
}

.bento-tall {
    grid-row: span 2;
}

/* Stats Bar Bold Red */
.stats-bar {
    display: flex;
    justify-content: space-between;
    margin-top: 100px;
    padding-top: 100px;
    border-top: 1px solid var(--border-light);
}

.stat-box h4 {
    font-size: 64px;
    color: var(--brand-red);
    margin-bottom: 5px;
    line-height: 1;
}

.stat-box p {
    color: var(--text-primary);
    font-size: 13px;
    text-transform: uppercase;
    font-weight: 800;
    letter-spacing: 2px;
}

/* Feature Split Layout (Retrofit/About) */
.feature-split {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 100px;
    align-items: center;
    margin-bottom: 80px;
}

.feature-split.reverse {
    direction: rtl;
}

.feature-split.reverse .feature-content {
    direction: ltr;
}

.feature-image {
    width: 100%;
    height: 550px;
    border-radius: var(--radius-sm);
    overflow: hidden;
    box-shadow: 0 40px 80px -20px rgba(0, 0, 0, 0.15);
    border: 1px solid var(--border-light);
}

.feature-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: var(--transition-premium);
}

.feature-image img:hover {
    transform: scale(1.03);
}

.feature-content h3 {
    font-size: 42px;
    margin-bottom: 30px;
    line-height: 1.1;
    text-transform: uppercase;
}

.feature-content p {
    font-size: 18px;
    color: var(--text-secondary);
    margin-bottom: 40px;
    line-height: 1.8;
}

.feature-list {
    list-style: none;
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 20px;
}

.feature-list li {
    font-size: 14px;
    font-weight: 700;
    color: var(--text-primary);
    display: flex;
    align-items: center;
    gap: 10px;
    text-transform: uppercase;
}

.feature-list li::before {
    content: '';
    width: 6px;
    height: 6px;
    background: var(--brand-red);
}

/* Reveal System - Premium Overhaul */
.reveal {
    opacity: 0;
    transform: translateY(40px) scale(0.98);
    transition:
        opacity 1.2s cubic-bezier(0.16, 1, 0.3, 1),
        transform 1.2s cubic-bezier(0.16, 1, 0.3, 1);
    will-change: transform, opacity;
}

.reveal.active {
    opacity: 1;
    transform: translateY(0) scale(1);
}

/* Staggered Entrance Helpers */
.stagger-parent .reveal {
    transition-delay: calc(var(--stagger-index, 0) * 0.15s);
}

.delay-1 {
    --stagger-index: 1;
}

.delay-2 {
    --stagger-index: 2;
}

.delay-3 {
    --stagger-index: 3;
}

.delay-4 {
    --stagger-index: 4;
}

.delay-5 {
    --stagger-index: 5;
}

/* Hero Entrance Sequence */
.hero-content h1 span {
    display: block;
    overflow: hidden;
    line-height: 1.2;
}

.hero-content h1 span[data-i18n] {
    display: block;
    transform: translateY(100%);
    transition: transform 1.5s cubic-bezier(0.16, 1, 0.3, 1);
}

.hero.active .hero-content h1 span[data-i18n] {
    transform: translateY(0);
}

/* Footer Formal */
footer {
    padding: 100px 8% 50px;
    background: #000;
    color: #fff;
}

footer .logo {
    color: #fff;
}

footer .logo span {
    color: var(--brand-red);
}

/* Certification Badge Bar */
.cert-section {
    padding: 40px 8%;
    background: var(--bg-primary);
    border-top: 1px solid var(--border-light);
}

.cert-container {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 40px;
    opacity: 0.9;
}

.cert-logo {
    height: 80px;
    width: auto;
}

.cert-text {
    border-left: 3px solid var(--brand-red);
    padding-left: 30px;
}

.cert-text h5 {
    font-family: 'Outfit', sans-serif;
    font-size: 18px;
    color: var(--text-primary);
    text-transform: uppercase;
    margin-bottom: 5px;
}

.cert-text p {
    font-size: 13px;
    color: var(--brand-red);
    font-weight: 800;
    text-transform: uppercase;
    letter-spacing: 1px;
}


/* --- Visual Engineering Section --- */
#visualizer-section {
    padding: 120px 0;
    background: #000;
    color: #fff;
    position: relative;
    overflow: hidden;
}

#visualizer-section .section-tag {
    background: rgba(217, 20, 51, 0.2);
    color: var(--brand-red);
}

#visualizer-section .section-title h2 {
    color: #fff;
}

#visualizer-section .section-title p {
    color: #94a3b8;
}

.viz-container {
    position: relative;
    width: 100%;
    height: 600px;
    margin-top: 60px;
    border: 1px solid rgba(255, 255, 255, 0.1);
    background: #050505;
    overflow: hidden;
    border-radius: var(--radius-md);
}

#shader-canvas {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    display: block;
    z-index: 1;
    pointer-events: none;
}

.viz-overlay {
    position: absolute;
    bottom: 30px;
    left: 30px;
    display: flex;
    gap: 40px;
    padding: 20px;
    background: rgba(0, 0, 0, 0.5);
    backdrop-filter: blur(10px);
    border-left: 3px solid var(--brand-red);
    z-index: 10;
    animation: borderPulse 4s infinite ease-in-out;
}

@keyframes borderPulse {

    0%,
    100% {
        border-color: var(--brand-red);
        box-shadow: -10px 0 20px -10px rgba(217, 20, 51, 0.5);
    }

    50% {
        border-color: #ff4d6d;
        box-shadow: -15px 0 30px -10px rgba(217, 20, 51, 0.8);
    }
}

.viz-stat {
    display: flex;
    flex-direction: column;
    gap: 5px;
}

.viz-label {
    font-family: 'Inter', sans-serif;
    font-size: 10px;
    letter-spacing: 2px;
    color: var(--brand-red);
    font-weight: 600;
    animation: textFlicker 5s infinite;
}

@keyframes textFlicker {

    0%,
    95%,
    98%,
    100% {
        opacity: 1;
        transform: translateX(0);
    }

    96% {
        opacity: 0.8;
        transform: translateX(2px);
    }

    97% {
        opacity: 0.9;
        transform: translateX(-1px);
    }

    99% {
        opacity: 0.7;
    }
}

.viz-value {
    font-family: 'Outfit', sans-serif;
    font-size: 18px;
    font-weight: 700;
    color: #fff;
    text-shadow: 0 0 10px rgba(255, 255, 255, 0.2);
}

@media (max-width: 1024px) {
    .bento-grid {
        grid-template-columns: repeat(2, 1fr);
    }

    .hero-grid {
        grid-template-columns: 1fr;
        gap: 50px;
        text-align: center;
    }

    .hero-desc {
        margin-left: auto;
        margin-right: auto;
        border-left: none;
        border-bottom: 2px solid var(--brand-red);
        padding-left: 0;
        padding-bottom: 15px;
    }

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

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

    .telemetry-badge,
    .viz-overlay {
        display: none !important;
    }
}

@media (max-width: 768px) {
    header {
        padding: 0 5%;
    }

    nav {
        display: none;
    }

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

    .stats-bar {
        flex-direction: column;
        gap: 60px;
        text-align: center;
    }
}

/* Light Header Styles -> Converted to Dark Glassmorphic for consistency */
header.light-header {
    background: rgba(5, 7, 12, 0.75) !important;
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    border-bottom: 1px solid var(--border-light);
}

header.light-header .logo {
    color: #ffffff;
}

header.light-header nav a {
    color: var(--text-secondary);
}

header.light-header nav a:hover,
header.light-header nav a.active {
    color: var(--brand-red);
}

/* --- Sector Hub Layout --- */
.sector-hub-layout {
    display: grid;
    grid-template-columns: 0.8fr 1.2fr;
    gap: 50px;
    align-items: stretch;
    margin-top: 50px;
}

.sector-tabs-list {
    display: flex;
    flex-direction: column;
    gap: 15px;
    justify-content: center;
}

.sector-tab {
    background: rgba(255, 255, 255, 0.02);
    border: 1px solid var(--border-light);
    color: var(--text-secondary);
    padding: 20px 30px;
    font-size: 14px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 1.5px;
    text-align: left;
    cursor: pointer;
    border-radius: var(--radius-sm);
    transition: var(--transition-premium);
    outline: none;
}

.sector-tab:hover {
    color: var(--text-primary);
    border-color: rgba(255, 255, 255, 0.2);
    background: rgba(255, 255, 255, 0.04);
}

.sector-tab.active {
    color: #fff;
    background: rgba(217, 20, 51, 0.06);
    border-color: var(--brand-red);
    box-shadow: 0 0 20px rgba(217, 20, 51, 0.15), inset 0 0 10px rgba(217, 20, 51, 0.1);
}

.sector-display-card {
    position: relative;
    background: var(--bg-tertiary);
    border: 1px solid var(--border-light);
    border-radius: var(--radius-md);
    padding: 60px;
    display: flex;
    align-items: center;
    min-height: 320px;
    transition: opacity 0.25s ease-in-out, border-color 0.45s, box-shadow 0.45s;
    box-shadow: var(--shadow-soft);
}

.sector-display-card:hover {
    border-color: var(--brand-red);
    box-shadow: 0 20px 50px -10px var(--brand-red-glow);
}

.sector-display-content h3 {
    font-size: 32px;
    text-transform: uppercase;
    color: var(--text-primary);
    margin-bottom: 20px;
}

.sector-display-content p {
    font-size: 16px;
    color: var(--text-secondary);
    line-height: 1.8;
    margin-bottom: 30px;
}

.sector-metric-badge {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 6px 14px;
    background: rgba(16, 185, 129, 0.08);
    border: 1px solid rgba(16, 185, 129, 0.25);
    border-radius: 50px;
}

.metric-tag-dot {
    width: 6px;
    height: 6px;
    background: #10b981;
    border-radius: 50%;
    box-shadow: 0 0 8px #10b981;
}

.metric-tag-text {
    font-size: 10px;
    font-weight: 800;
    letter-spacing: 1.5px;
    color: #10b981;
}

/* --- Case Studies Grid --- */
.cases-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 30px;
    margin-top: 50px;
}

.case-card {
    background: var(--bg-tertiary);
    border: 1px solid var(--border-light);
    border-radius: var(--radius-md);
    padding: 40px;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    min-height: 380px;
    transition: var(--transition-premium);
}

.case-card:hover {
    border-color: var(--brand-red);
    box-shadow: 0 20px 40px -10px var(--brand-red-glow);
    transform: translateY(-8px);
}

.case-badge {
    font-size: 10px;
    font-weight: 900;
    text-transform: uppercase;
    letter-spacing: 2px;
    color: var(--brand-red);
    margin-bottom: 25px;
}

.case-card h3 {
    font-size: 22px;
    text-transform: uppercase;
    color: var(--text-primary);
    margin-bottom: 15px;
    line-height: 1.3;
}

.case-card p {
    font-size: 14px;
    color: var(--text-secondary);
    line-height: 1.6;
    margin-bottom: 30px;
    flex-grow: 1;
}

.case-stat {
    font-family: 'Outfit', sans-serif;
    font-size: 24px;
    font-weight: 900;
    color: #ffffff;
    border-top: 1px solid var(--border-light);
    padding-top: 20px;
    text-transform: uppercase;
}

/* --- Testimonials Section --- */
.testimonials-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 40px;
    margin-top: 50px;
}

.testimonial-card {
    background: var(--bg-tertiary);
    border: 1px solid var(--border-light);
    border-radius: var(--radius-md);
    padding: 50px;
    position: relative;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    transition: var(--transition-premium);
}

.testimonial-card:hover {
    border-color: var(--brand-red);
    box-shadow: 0 15px 30px -10px var(--brand-red-glow);
}

.quote-mark {
    font-family: 'Outfit', sans-serif;
    font-size: 96px;
    color: rgba(217, 20, 51, 0.15);
    position: absolute;
    top: -15px;
    left: 30px;
    line-height: 1;
    pointer-events: none;
}

.testimonial-card p {
    font-size: 16px;
    color: var(--text-primary);
    line-height: 1.8;
    font-style: italic;
    margin-bottom: 30px;
    position: relative;
    z-index: 2;
}

.author-label {
    font-size: 12px;
    font-weight: 800;
    text-transform: uppercase;
    letter-spacing: 1px;
    color: var(--text-secondary);
    border-left: 2px solid var(--brand-red);
    padding-left: 15px;
}

/* --- Accordion FAQ Section --- */
.faq-accordion {
    max-width: 900px;
    margin: 0 auto;
    display: flex;
    flex-direction: column;
    gap: 20px;
}

.faq-item {
    background: var(--bg-tertiary);
    border: 1px solid var(--border-light);
    border-radius: var(--radius-sm);
    overflow: hidden;
    transition: var(--transition-premium);
}

.faq-item[open] {
    border-color: var(--brand-red);
    box-shadow: 0 10px 30px var(--brand-red-glow);
}

.faq-item summary {
    padding: 24px 35px;
    font-size: 16px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 1px;
    color: var(--text-primary);
    cursor: pointer;
    list-style: none;
    position: relative;
    display: flex;
    justify-content: space-between;
    align-items: center;
    transition: color 0.3s;
    outline: none;
}

.faq-item summary::-webkit-details-marker {
    display: none;
}

.faq-item summary::after {
    content: '+';
    font-family: 'Outfit', sans-serif;
    font-size: 24px;
    font-weight: 400;
    color: var(--brand-red);
    transition: transform 0.3s ease;
}

.faq-item[open] summary::after {
    content: '-';
}

.faq-item summary:hover {
    color: var(--brand-red);
}

.faq-answer {
    padding: 0 35px 30px;
    color: var(--text-secondary);
    line-height: 1.8;
    font-size: 15px;
    border-top: 1px solid rgba(255, 255, 255, 0.02);
    padding-top: 20px;
}

/* --- New Section Responsive Adjustments --- */
@media (max-width: 1024px) {
    .sector-hub-layout {
        grid-template-columns: 1fr;
    }

    .sector-tabs-list {
        flex-direction: row;
        flex-wrap: wrap;
        justify-content: center;
    }

    .sector-tab {
        padding: 15px 20px;
        font-size: 12px;
    }

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

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

/* Enterprise Preloader Styling */
#preloader {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: #05070c;
    z-index: 9999;
    display: flex;
    justify-content: center;
    align-items: center;
    transition: opacity 0.8s cubic-bezier(0.16, 1, 0.3, 1), visibility 0.8s;
}

#preloader.fade-out {
    opacity: 0;
    visibility: hidden;
}

.preloader-content {
    text-align: center;
    width: 320px;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 20px;
}

.preloader-logo {
    font-family: 'Outfit', sans-serif;
    font-size: 32px;
    font-weight: 900;
    color: #ffffff;
    letter-spacing: 3px;
    text-transform: uppercase;
}

.preloader-logo span {
    color: var(--brand-red);
}

.preloader-bar-wrapper {
    width: 100%;
    height: 2px;
    background: rgba(255, 255, 255, 0.05);
    overflow: hidden;
    position: relative;
    border-radius: var(--radius-sm);
}

.preloader-bar {
    width: 0%;
    height: 100%;
    background: var(--brand-red);
    box-shadow: 0 0 10px var(--brand-red-glow);
    transition: width 1.2s cubic-bezier(0.1, 0.85, 0.25, 1);
}

.preloader-status {
    font-family: 'Inter', sans-serif;
    font-size: 9px;
    font-weight: 700;
    letter-spacing: 2px;
    color: var(--text-secondary);
    text-transform: uppercase;
    animation: pulseText 1.5s infinite ease-in-out;
}

@keyframes pulseText {

    0%,
    100% {
        opacity: 0.5;
    }

    50% {
        opacity: 1;
    }
}

/* Showcase Gallery */
.gallery-grid {
    display: grid;
    grid-template-columns: repeat(6, 1fr);
    gap: 30px;
    margin-top: 50px;
}

.gallery-item {
    position: relative;
    grid-column: span 2;
    height: 380px;
    background: var(--bg-tertiary);
    border: 1px solid var(--border-light);
    border-radius: var(--radius-sm);
    overflow: hidden;
    transition: var(--transition-premium);
}

.gallery-item:nth-child(4) {
    grid-column: 2 / span 2;
}

.gallery-item img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: var(--transition-premium);
    filter: grayscale(20%) brightness(0.85);
}

.gallery-item:hover img {
    transform: scale(1.05);
    filter: grayscale(0%) brightness(1);
}

.gallery-overlay {
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    padding: 30px;
    background: linear-gradient(to top, rgba(5, 7, 12, 0.98) 35%, rgba(5, 7, 12, 0.5) 75%, transparent);
    display: flex;
    flex-direction: column;
    justify-content: flex-end;
    height: 65%;
    transform: translateY(20px);
    transition: var(--transition-premium);
}

.gallery-item:hover .gallery-overlay {
    transform: translateY(0);
}

.gallery-item:hover {
    border-color: var(--brand-red);
    box-shadow: 0 20px 40px -10px var(--brand-red-glow);
}

.gallery-cat {
    font-size: 10px;
    font-weight: 800;
    text-transform: uppercase;
    color: var(--brand-red);
    letter-spacing: 2px;
    margin-bottom: 8px;
}

.gallery-overlay h4 {
    font-size: 20px;
    font-weight: 900;
    color: var(--text-primary);
    text-transform: uppercase;
    margin-bottom: 8px;
}

.gallery-overlay p {
    font-size: 13px;
    color: var(--text-secondary);
    line-height: 1.5;
    margin-bottom: 20px;
    opacity: 0;
    transform: translateY(10px);
    transition: opacity 0.4s, transform 0.4s;
    transition-delay: 0.1s;
}

.gallery-item:hover .gallery-overlay p {
    opacity: 1;
    transform: translateY(0);
}

.gallery-link {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    font-size: 12px;
    font-weight: 800;
    text-transform: uppercase;
    color: var(--text-primary);
    text-decoration: none;
    transition: color 0.3s;
}

.gallery-link:hover {
    color: var(--brand-red);
}

.gallery-link svg {
    transition: transform 0.3s;
}

.gallery-link:hover svg {
    transform: translateX(4px);
}

@media (max-width: 1024px) {
    .gallery-grid {
        grid-template-columns: repeat(4, 1fr);
    }

    .gallery-item {
        grid-column: span 2;
    }

    .gallery-item:nth-child(4) {
        grid-column: span 2;
    }
}

@media (max-width: 768px) {
    .gallery-grid {
        grid-template-columns: 1fr;
        gap: 20px;
    }

    .gallery-item {
        grid-column: span 1;
        height: 320px;
    }

    .gallery-item:nth-child(4) {
        grid-column: span 1;
    }

    .gallery-overlay p {
        opacity: 1;
        transform: translateY(0);
    }

    .gallery-overlay {
        transform: translateY(0);
    }
}

/* ==========================================================================
   B2B Outreach Proposal Portal Styles
   ========================================================================== */
.outreach-layout {
    display: grid;
    grid-template-columns: 1fr 1.2fr;
    gap: 50px;
    align-items: start;
    margin-top: 60px;
}

.outreach-panel {
    background: var(--bg-tertiary);
    border: 1px solid var(--border-light);
    border-radius: var(--radius-md);
    padding: 40px;
}

.outreach-group {
    margin-bottom: 24px;
}

.outreach-group label {
    display: block;
    font-size: 11px;
    font-weight: 800;
    text-transform: uppercase;
    margin-bottom: 8px;
    color: var(--text-secondary);
    letter-spacing: 1px;
}

.outreach-input,
.outreach-select {
    width: 100%;
    padding: 14px 18px;
    background: var(--bg-primary);
    border: 1px solid var(--border-light);
    color: var(--text-primary);
    font-family: inherit;
    font-size: 14px;
    font-weight: 600;
    outline: none;
    border-radius: var(--radius-sm);
    transition: var(--transition-premium);
}

.outreach-input:focus,
.outreach-select:focus {
    border-color: var(--brand-red);
    box-shadow: 0 0 10px var(--brand-red-glow);
}

.outreach-select option {
    background: var(--bg-tertiary);
    color: var(--text-primary);
}

/* Tab Selector for Templates & Languages */
.outreach-tabs-list {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    margin-bottom: 30px;
}

.outreach-tab-btn {
    background: rgba(255, 255, 255, 0.03);
    border: 1px solid var(--border-light);
    color: var(--text-secondary);
    padding: 10px 18px;
    font-size: 11px;
    font-weight: 900;
    text-transform: uppercase;
    letter-spacing: 1px;
    cursor: pointer;
    border-radius: var(--radius-sm);
    transition: var(--transition-premium);
}

.outreach-tab-btn:hover:not(.active) {
    color: var(--text-primary);
    background: rgba(255, 255, 255, 0.06);
}

.outreach-tab-btn.active {
    color: #ffffff;
    background: var(--brand-red);
    border-color: var(--brand-red);
    box-shadow: 0 0 15px var(--brand-red-glow);
}

/* Mockup Email Client / Editor */
.mockup-editor {
    background: #020306;
    border: 1px solid var(--border-light);
    border-radius: 6px;
    overflow: hidden;
    box-shadow: 0 30px 60px rgba(0, 0, 0, 0.6);
    position: sticky;
    top: 120px;
}

.editor-header-bar {
    background: #0b0f19;
    padding: 15px 25px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    border-bottom: 1px solid var(--border-light);
}

.editor-dots {
    display: flex;
    gap: 8px;
}

.editor-dot {
    width: 12px;
    height: 12px;
    border-radius: 50%;
}

.dot-red {
    background: #ff5f56;
}

.dot-yellow {
    background: #ffbd2e;
}

.dot-green {
    background: #27c93f;
}

.editor-filename {
    font-family: 'Outfit', sans-serif;
    font-size: 12px;
    font-weight: 700;
    color: var(--text-secondary);
    letter-spacing: 1px;
    text-transform: uppercase;
}

.editor-subject-row {
    background: rgba(255, 255, 255, 0.01);
    border-bottom: 1px solid var(--border-light);
    padding: 12px 25px;
    font-size: 13px;
    color: var(--text-secondary);
    display: flex;
    gap: 10px;
}

.editor-subject-label {
    font-weight: 800;
    color: var(--brand-red);
    text-transform: uppercase;
    font-size: 11px;
    letter-spacing: 1px;
}

.editor-subject-value {
    color: var(--text-primary);
    font-weight: 600;
}

.editor-body-area {
    padding: 30px 25px;
    font-family: 'Courier New', Courier, monospace;
    font-size: 14px;
    line-height: 1.7;
    color: #e2e8f0;
    background: #03050a;
    min-height: 480px;
    max-height: 600px;
    overflow-y: auto;
    white-space: pre-wrap;
}

.editor-footer-bar {
    background: #0b0f19;
    padding: 20px 25px;
    border-top: 1px solid var(--border-light);
    display: flex;
    justify-content: flex-end;
    gap: 15px;
    flex-wrap: wrap;
}

/* Copy Toast Notification */
.toast-msg {
    position: fixed;
    bottom: 30px;
    right: 30px;
    background: #10b981;
    color: #ffffff;
    padding: 15px 25px;
    font-weight: 700;
    font-size: 13px;
    border-radius: var(--radius-sm);
    box-shadow: 0 10px 30px rgba(16, 185, 129, 0.3);
    z-index: 2000;
    opacity: 0;
    transform: translateY(20px);
    transition: all 0.3s cubic-bezier(0.16, 1, 0.3, 1);
    pointer-events: none;
    display: flex;
    align-items: center;
    gap: 10px;
}

.toast-msg.show {
    opacity: 1;
    transform: translateY(0);
}

@media (max-width: 1024px) {
    .outreach-layout {
        grid-template-columns: 1fr;
        gap: 40px;
    }

    .mockup-editor {
        position: relative;
        top: 0;
    }
}