:root {
    /* Colors */
    --midnight: #0a0e14;
    --steel-dark: #1e252e;
    --steel: #2e3844;
    --steel-light: #f0f4f8;
    --laser-orange: #ff7e33;
    --laser-orange-glow: rgba(255, 126, 51, 0.4);
    --text-white: #ffffff;
    --text-muted: #a0aec0;
    
    /* Typography */
    --font-heading: 'Outfit', sans-serif;
    --font-body: 'Inter', sans-serif;
    
    /* Spacing */
    --space-unit: 1rem;
    --container-max: 1200px;
    --container-narrow: 600px;
}

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

html {
    scroll-behavior: smooth;
}

/* Custom Scrollbar */
::-webkit-scrollbar {
    width: 6px;
}
::-webkit-scrollbar-track {
    background: var(--midnight);
}
::-webkit-scrollbar-thumb {
    background: var(--steel);
    border-radius: 10px;
}
::-webkit-scrollbar-thumb:hover {
    background: var(--laser-orange);
}

body {
    background-color: var(--midnight);
    color: var(--text-white);
    font-family: var(--font-body);
    line-height: 1.6;
    overflow-x: hidden;
    -webkit-font-smoothing: antialiased;
}

h1, h2, h3, h4 {
    font-family: var(--font-heading);
    font-weight: 800;
    text-transform: uppercase;
    letter-spacing: -0.02em;
}

a {
    text-decoration: none;
    color: inherit;
    transition: all 0.3s ease;
}

li {
    list-style: none;
}

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

/* Utilities */
.container {
    max-width: var(--container-max);
    margin: 0 auto;
    padding: 0 2rem;
}

.indent-content {
    padding-left: 2rem;
}

@media (max-width: 768px) {
    .indent-content {
        padding-left: 0;
    }
    .section-header {
        padding-left: 1rem;
    }
}

.container.narrow {
    max-width: var(--container-narrow);
}

.section {
    padding: 8rem 0;
}

.text-orange {
    color: var(--laser-orange);
}

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

.opacity-70 {
    opacity: 0.7;
}

.mb-6 { margin-bottom: 3rem; }
.mb-8 { margin-bottom: 6rem; }
.mb-4 { margin-bottom: 2rem; }
.mt-6 { margin-top: 4rem; }
.mx-auto { margin-left: auto; margin-right: auto; }
.narrow { max-width: var(--container-narrow); }
.max-w-700 { max-width: 700px; }
.gap-4 { gap: 4rem; }
.align-center { align-items: center; }

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

@media (max-width: 992px) {
    .grid-2-columns {
        grid-template-columns: 1fr;
    }
}

.bg-midnight-alt {
    background-color: #0d121a;
}

.border-v {
    border-top: 1px solid rgba(255, 255, 255, 0.05);
    border-bottom: 1px solid rgba(255, 255, 255, 0.05);
}

.center {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    text-align: center;
}

/* Buttons */
.btn {
    display: inline-block;
    padding: 1rem 2rem;
    border-radius: 4px;
    font-weight: 600;
    cursor: pointer;
    font-family: var(--font-heading);
    text-transform: uppercase;
    font-size: 0.9rem;
    letter-spacing: 0.05em;
    transition: all 0.3s cubic-bezier(0.175, 0.885, 0.32, 1.275);
}

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

.btn-orange {
    background-color: var(--laser-orange);
    color: var(--midnight);
}

.btn-orange:hover {
    box-shadow: 0 0 25px var(--laser-orange-glow), inset 0 0 10px rgba(255, 255, 255, 0.2);
    transform: translateY(-3px) scale(1.02);
}

.text-orange {
    color: var(--laser-orange);
    text-shadow: 0 0 8px var(--laser-orange-glow);
}

.btn-outline {
    border: 2px solid rgba(255, 255, 255, 0.2);
}

.btn-outline:hover {
    border-color: var(--laser-orange);
    color: var(--laser-orange);
}

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

/* Header & Nav */
#main-header {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    z-index: 1000;
    padding: 1.5rem 0;
    transition: background 0.3s ease;
}

#main-header.scrolled {
    background: rgba(10, 14, 20, 0.95);
    backdrop-filter: blur(10px);
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
}

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

.logo {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    font-family: var(--font-heading);
    font-weight: 800;
    font-size: 1.5rem;
}

.logo svg {
    transition: transform 0.3s ease;
}

.logo:hover svg {
    transform: rotate(90deg) scale(1.1);
}

.nav-links {
    display: flex;
    align-items: center;
    gap: 2.5rem;
}

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

/* Mobile Menu Styles */
.menu-toggle {
    display: none;
    flex-direction: column;
    justify-content: space-between;
    width: 30px;
    height: 21px;
    background: none;
    border: none;
    cursor: pointer;
    z-index: 1001;
}

.menu-toggle span {
    width: 100%;
    height: 3px;
    background-color: var(--text-white);
    border-radius: 2px;
    transition: all 0.3s ease;
}

@media (max-width: 992px) {
    .menu-toggle {
        display: flex;
    }

    .nav-links {
        position: fixed;
        top: 0;
        right: -100%;
        width: 100%;
        height: 100vh;
        background: rgba(10, 14, 20, 0.98);
        backdrop-filter: blur(20px);
        flex-direction: column;
        justify-content: center;
        align-items: center;
        gap: 3rem;
        transition: right 0.4s cubic-bezier(0.77, 0, 0.175, 1);
        z-index: 1000;
    }

    .nav-links.active {
        right: 0;
    }

    .nav-links a {
        font-size: 1.5rem;
        font-weight: 700;
        text-transform: uppercase;
        letter-spacing: 0.2em;
    }

    /* Hamburger Animation */
    .menu-toggle.active span:nth-child(1) {
        transform: translateY(9px) rotate(45deg);
    }
    .menu-toggle.active span:nth-child(2) {
        opacity: 0;
    }
    .menu-toggle.active span:nth-child(3) {
        transform: translateY(-9px) rotate(-45deg);
    }
}

/* Hero Section */
.hero-section {
    position: relative;
    height: 100vh;
    display: flex;
    align-items: center;
    overflow: hidden;
}

.hero-section .parallax-bg {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 120%;
    background: radial-gradient(circle at 70% 30%, #1a222c 0%, #0a0e14 100%);
    z-index: -1;
}

.hero-section h1 {
    font-size: 5rem;
    line-height: 1;
    margin-bottom: 1.5rem;
}

.hero-section p {
    font-size: 1.25rem;
    color: var(--text-muted);
    max-width: 800px;
    margin-bottom: 2.5rem;
}

.hero-capabilities {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 1.5rem;
    padding-top: 1.5rem;
    border-top: 1px solid rgba(255, 255, 255, 0.05);
    max-width: fit-content;
}

.cap-item {
    font-family: var(--font-heading);
    font-size: 0.75rem;
    font-weight: 800;
    letter-spacing: 0.15em;
    text-transform: uppercase;
    color: var(--text-white);
    opacity: 0.9;
}

.cap-dot {
    width: 6px;
    height: 6px;
    background: var(--laser-orange);
    border-radius: 50%;
    box-shadow: 0 0 10px var(--laser-orange);
}

.cta-group {
    display: flex;
    gap: 1.5rem;
}

/* Expertise / Cards */
/* Section Header (Option A) */
.section-header {
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    position: relative;
    padding-left: 2rem;
    margin-bottom: 2rem;
}

.section-header::before {
    content: '';
    position: absolute;
    left: 0;
    top: 0;
    width: 2px;
    height: var(--bar-height, 0%); /* Animated via GSAP */
    background: var(--laser-orange);
    box-shadow: 0 0 10px var(--laser-orange-glow);
}

/* Removed .section-index styles as per request */

.section-title {
    font-size: 2.5rem;
    line-height: 1.2;
}

.section-title.text-center {
    width: 100%;
}

/* Services Grid */
.services-grid {
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
}

.card {
    background: rgba(30, 37, 46, 0.4);
    backdrop-filter: blur(5px);
    padding: 3rem;
    border-radius: 12px;
    border: 1px solid rgba(255, 255, 255, 0.05);
    transition: all 0.4s cubic-bezier(0.165, 0.84, 0.44, 1);
    position: relative;
    overflow: hidden;
}

.card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(135deg, rgba(255, 126, 51, 0.1) 0%, transparent 100%);
    opacity: 0;
    transition: opacity 0.4s ease;
}

.card:hover::before {
    opacity: 1;
}

.card:hover {
    transform: translateY(-10px);
    border-color: rgba(255, 126, 51, 0.3);
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.4);
}

.card .icon {
    width: 48px;
    height: 48px;
    color: var(--laser-orange);
    margin-bottom: 1.5rem;
}

.card h3 {
    margin-bottom: 1rem;
    font-size: 1.5rem;
}

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

/* Parallax Transition */
.parallax-transition {
    position: relative;
    height: 60vh;
    overflow: hidden;
}

.parallax-transition .parallax-bg {
    position: absolute;
    top: -20%;
    left: 0;
    width: 100%;
    height: 140%;
    background: 
        linear-gradient(rgba(10, 14, 20, 0.8), rgba(10, 14, 20, 0.8)),
        repeating-linear-gradient(0deg, transparent, transparent 49px, rgba(255, 126, 51, 0.05) 50px),
        repeating-linear-gradient(90deg, transparent, transparent 49px, rgba(255, 126, 51, 0.05) 50px),
        var(--midnight);
    z-index: -1;
}

.mega-text {
    font-size: 4rem;
    line-height: 1.1;
    max-width: 800px;
}

/* DAS Section */
.das-header {
    margin-bottom: 4rem;
}

/* Removed .badge styles as per redesign */

.features-grid {
    grid-template-columns: repeat(auto-fit, minmax(400px, 1fr));
    gap: 3rem;
}

.feature-item {
    display: flex;
    gap: 1.5rem;
}

.feature-item h4 {
    margin-bottom: 0.5rem;
    font-size: 1.2rem;
}

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

/* Contact Form */
.contact-form {
    background: var(--steel-dark);
    padding: 3rem;
    border-radius: 8px;
    margin-top: 3rem;
}

.form-group {
    margin-bottom: 1.5rem;
}

.form-group label {
    display: block;
    margin-bottom: 0.5rem;
    font-family: var(--font-heading);
    font-size: 0.8rem;
    font-weight: 600;
    text-transform: uppercase;
    color: var(--text-muted);
}

.form-group input, 
.form-group textarea {
    width: 100%;
    background: var(--midnight);
    border: 1px solid rgba(255, 255, 255, 0.1);
    padding: 1rem;
    color: white;
    font-family: var(--font-body);
    border-radius: 4px;
    transition: border-color 0.3s ease;
}

.form-group input:focus, 
.form-group textarea:focus {
    outline: none;
    border-color: var(--laser-orange);
}

/* Methodology */
.process-list {
    margin-top: 3rem;
}

.process-item {
    display: flex;
    gap: 1.5rem;
    padding: 1.5rem;
    border-radius: 8px;
    transition: background 0.3s ease;
    border-left: 2px solid transparent;
}

.process-item:hover {
    background: rgba(255, 255, 255, 0.02);
    border-left-color: var(--laser-orange);
}

.step-num {
    font-family: var(--font-heading);
    font-weight: 800;
    font-size: 1.2rem;
    color: var(--laser-orange);
    opacity: 0.5;
}

.process-item h4 {
    font-size: 1.1rem;
    margin-bottom: 0.25rem;
}

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

.methodology-visual {
    position: relative;
}

#methodology-svg {
    filter: drop-shadow(0 0 20px rgba(255, 126, 51, 0.1));
}

.node {
    cursor: pointer;
    transition: transform 0.3s ease;
}

.node:hover {
    transform: scale(1.1);
}

/* DAS Section Enhancements */
.subtitle {
    font-size: 1.1rem;
    color: var(--text-muted);
    padding-left: 2rem; /* Sync with header */
}

@media (max-width: 768px) {
    .subtitle {
        padding-left: 0;
    }
}

/* DAS Introduction Block */
.das-intro-block {
    display: flex;
    flex-direction: column;
    background: rgba(30,37,46, 0.4);
    padding: 3rem 4rem;
    border-radius: 12px;
    border: 1px solid rgba(255,255,255, 0.05);
    padding-left: 5rem; /* Indentation Sync */
}

.intro-main {
    max-width: 900px;
}

.das-benefits-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 3rem;
    margin-top: 2rem;
    padding-top: 3rem;
    border-top: 1px solid rgba(255, 255, 255, 0.05);
}

.benefit-icon-wrapper {
    width: 24px;
    height: 24px;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
}

.benefit-icon {
    width: 100%;
    height: 100%;
    color: var(--laser-orange);
}

.benefit-item {
    display: flex;
    gap: 1.5rem;
    align-items: flex-start;
    transition: transform 0.3s ease;
}

.benefit-item:hover {
    transform: translateY(-5px);
}

.benefit-text h5 {
    color: var(--text-white);
    margin-bottom: 0.5rem;
    font-size: 1.1rem;
}

.benefit-text p {
    font-size: 0.9rem;
    color: var(--text-muted);
    line-height: 1.5;
}

@media (max-width: 992px) {
    .das-benefits-grid {
        grid-template-columns: 1fr;
        gap: 2rem;
    }
    .das-intro-block {
        padding-left: 3rem;
    }
}

/* Corrected DAS gallery transition styles */
/* DAS Software Modules (Unified Split Layout) */
.gallery-module {
    margin-top: 6rem;
    padding-left: 2rem;
}

.module-title {
    display: flex;
    align-items: center;
    gap: 1rem;
    margin-bottom: 2rem;
    font-size: 1.5rem;
    color: var(--text-white);
    letter-spacing: 0.05em;
}

.module-title i {
    color: var(--laser-orange);
}

.module-grid {
    display: grid;
    grid-template-columns: 1.25fr 0.75fr;
    gap: 4rem;
    align-items: start;
    margin-top: 2rem;
}

.visual-pane {
    position: relative;
}

.visual-pane .image-wrapper {
    position: relative;
    border-radius: 4px;
    overflow: hidden;
    box-shadow: 0 30px 60px rgba(0,0,0,0.6);
    border: 1px solid rgba(255,255,255,0.08);
    background: #000;
}

.visual-pane .image-wrapper::after {
    content: '';
    position: absolute;
    top: 0; left: 0; right: 0; bottom: 0;
    box-shadow: inset 0 0 50px rgba(0,0,0,0.5);
    pointer-events: none;
}

.tech-pane {
    padding-top: 1rem;
}

.tech-pane .annotations {
    display: flex;
    flex-direction: column;
    gap: 2.5rem;
}

.feature-point {
    display: flex;
    gap: 1.5rem;
    align-items: flex-start;
}

.feature-icon-box {
    width: 40px;
    height: 40px;
    background: rgba(30, 37, 46, 0.8);
    border: 1px solid rgba(255, 126, 51, 0.2);
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 4px;
    flex-shrink: 0;
    color: var(--laser-orange);
    box-shadow: 0 0 10px rgba(255, 126, 51, 0.05);
}

.feature-content h4 {
    color: var(--text-white);
    margin-bottom: 0.5rem;
    font-size: 1rem;
    letter-spacing: 0.05em;
}

.feature-content p {
    font-size: 0.9rem;
    color: var(--text-muted);
    line-height: 1.5;
}

@media (max-width: 992px) {
    .module-grid {
        grid-template-columns: 1fr;
        gap: 2rem;
    }
}

.software-img {
    width: 100%;
    height: auto;
    display: block;
    opacity: 0.9;
    filter: brightness(0.9);
}

.mask-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    pointer-events: none;
    z-index: 10;
}

/* Pillars Layout */
.expertise-pillars {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 2rem;
    margin-top: 4rem;
    padding-left: 2rem;
}

.pillar-card {
    background: rgba(30, 37, 46, 0.4);
    backdrop-filter: blur(10px);
    border: 1px solid rgba(255, 255, 255, 0.05);
    border-radius: 12px;
    padding: 3rem;
    display: flex;
    flex-direction: column;
    gap: 2rem;
    transition: all 0.4s ease;
}

.pillar-card:hover {
    border-color: var(--laser-orange);
    transform: translateY(-5px);
    box-shadow: 0 20px 40px rgba(0,0,0,0.3);
}

.pillar-header {
    display: flex;
    flex-direction: column;
    gap: 1rem;
}

.pillar-header h3 {
    font-size: 1.4rem;
    letter-spacing: 0.05em;
}

.pillar-header .icon-large {
    width: 40px;
    height: 40px;
    color: var(--laser-orange);
}

.pillar-content p {
    color: var(--text-muted);
    font-size: 0.95rem;
    margin-bottom: 1.5rem;
}

.pillar-list {
    display: flex;
    flex-direction: column;
    gap: 1.25rem;
}

.pillar-list li {
    font-size: 0.9rem;
    color: var(--text-muted);
    padding-left: 1.5rem;
    position: relative;
}

.pillar-list li::before {
    content: '';
    position: absolute;
    left: 0;
    top: 0.6rem;
    width: 6px;
    height: 6px;
    background: var(--laser-orange);
    border-radius: 50%;
    box-shadow: 0 0 8px var(--laser-orange-glow);
}

.pillar-list li strong {
    color: var(--text-white);
    display: block;
    margin-bottom: 0.25rem;
}


@media (max-width: 1200px) {
    .expertise-pillars {
        grid-template-columns: 1fr;
    }
}
@media (max-width: 768px) {
    :root {
        --indent-left: 1rem;
    }

    .hero-section h1 {
        font-size: 2.5rem;
        word-break: break-word;
    }
    
    .hero-section p {
        font-size: 1.1rem;
    }

    .hero-capabilities {
        flex-direction: column;
        align-items: flex-start;
        gap: 1rem;
        width: 100%;
        padding-right: 1rem;
    }

    .cap-dot {
        display: none;
    }

    .cta-group {
        flex-direction: column;
        width: 100%;
    }

    .btn {
        width: 100%;
        text-align: center;
    }
    
    .section-header {
        padding-left: 1rem;
    }
    
    .indent-content {
        padding-left: 1rem;
    }

    .software-module-grid {
        grid-template-columns: 1fr;
    }

    .section {
        padding: 4rem 0;
    }
}

/* Form RGPD */
.rgpd-group {
    display: flex;
    gap: 1rem;
    align-items: flex-start;
    margin-bottom: 2rem;
}

.rgpd-group input {
    width: auto;
    margin-top: 0.3rem;
}

.rgpd-group label {
    font-size: 0.8rem;
    opacity: 0.7;
    margin-bottom: 0;
}

/* Footer Legal */
.footer-legal-links {
    margin-top: 1rem;
    font-size: 0.8rem;
    opacity: 0.6;
}

.footer-legal-links a {
    color: var(--text-white);
    transition: color 0.3s ease;
}

.footer-legal-links a:hover {
    color: var(--laser-orange);
}

.footer-legal-links .sep {
    margin: 0 0.5rem;
}

/* Legal Modal */
.modal-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(10, 14, 20, 0.95);
    backdrop-filter: blur(10px);
    z-index: 2000;
    display: none;
    align-items: center;
    justify-content: center;
    padding: 2rem;
}

.modal-content {
    background: var(--steel-dark);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 12px;
    width: 100%;
    max-width: 800px;
    max-height: 80vh;
    position: relative;
    padding: 3rem;
    overflow-y: auto;
    box-shadow: 0 40px 100px rgba(0,0,0,0.8);
}

.modal-close {
    position: absolute;
    top: 1.5rem;
    right: 1.5rem;
    background: none;
    border: none;
    color: var(--text-white);
    font-size: 2rem;
    cursor: pointer;
    line-height: 1;
    opacity: 0.5;
    transition: opacity 0.3s ease;
}

.modal-close:hover {
    opacity: 1;
}

.legal-body {
    line-height: 1.6;
}

.legal-body h2 {
    color: var(--laser-orange);
    margin-bottom: 1.5rem;
    font-size: 1.5rem;
}

.legal-body h3 {
    margin-top: 2rem;
    margin-bottom: 1rem;
    font-size: 1.1rem;
    color: var(--text-white);
}

.legal-body p {
    color: var(--text-muted);
    font-size: 0.95rem;
    margin-bottom: 1rem;
}

/* Form Status */
.form-status {
    padding: 1rem;
    border-radius: 4px;
    font-size: 0.9rem;
    display: none;
    text-align: center;
}

.form-status.success {
    display: block;
    background: rgba(34, 197, 94, 0.1);
    color: #4ade80;
    border: 1px solid rgba(74, 222, 128, 0.2);
}

.form-status.error {
    display: block;
    background: rgba(239, 68, 68, 0.1);
    color: #f87171;
    border: 1px solid rgba(248, 113, 113, 0.2);
}
