:root {
    /* Lima Protection Inspired: Infinite Black, Blue Glows */
    --color-bg: #000000;
    /* Pure Black */
    --color-bg-card: #080808;
    /* Slightly lighter for cards */
    --color-text: #F0F0F0;
    --color-text-muted: #b3b3b3;

    /* 2S Protec Identity: Electric Blue */
    --color-accent: #0044cc;
    --color-gold: #c9a55c;
    --color-accent-hover: #003399;
    --color-white: #ffffff;

    /* Typography */
    --font-heading: 'Outfit', sans-serif;
    /* Changed from Syne */
    --font-body: 'Manrope', sans-serif;

    --container-width: 1100px;
    /* Slightly tighter like Lima */
    --header-height: 80px;
    --border-radius: 4px;
    /* Softened back to 4px for Outfit */
}

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

/* Fix reset */
html,
body {
    overflow-x: hidden;
    /* Fix horizontal scroll issues */
    width: 100%;
}

html {
    scroll-behavior: smooth;
    font-size: 16px;
}

body {
    background-color: var(--color-bg);
    color: var(--color-text);
    font-family: var(--font-body);
    line-height: 1.7;
    position: relative;
}

/* Lima-style Edge Glows (Fixed Background) */
body::before {
    content: '';
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    pointer-events: none;
    z-index: -1;
    background: radial-gradient(circle at 10% 20%, rgba(0, 68, 204, 0.15), transparent 40%),
        radial-gradient(circle at 90% 80%, rgba(0, 68, 204, 0.1), transparent 40%);
}

/* Contact */
.contact-wrapper {
    display: grid;
    gap: 2rem;
    /* Reduced from 4rem for mobile */
}

@media (max-width: 767px) {
    .contact-item {
        padding: 1rem;
        gap: 1rem;
        font-size: 0.95rem;
        /* Smaller font on mobile */
        width: 100%;
        max-width: 100%;
        box-sizing: border-box;
        /* Ensure padding is included */
        font-family: 'Rajdhani', sans-serif;
        letter-spacing: 0.05em;
    }

    .contact-item p {
        word-break: break-word;
        /* Allow long emails to wrap */
        overflow-wrap: break-word;
        min-width: 0;
        /* Flexbox text overflow fix */
    }

    .container {
        padding: 0 1.5rem;
        /* Ensure side padding */
    }
}

h1,
h2,
h3,
h4 {
    font-family: var(--font-heading);
    font-weight: 700;
    /* Extra bold for Syne */
    line-height: 1.1;
    margin-bottom: 1.5rem;
    color: var(--color-white);
    letter-spacing: -0.01em;
}

a {
    text-decoration: none;
    color: inherit;
    transition: 0.3s cubic-bezier(0.2, 0.8, 0.2, 1);
}

ul {
    list-style: none;
}

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

.container {
    width: 90%;
    max-width: var(--container-width);
    margin: 0 auto;
    padding: 0 15px;
}

.section {
    padding: 6rem 0;
}

.section-title {
    font-size: clamp(2rem, 5vw, 3.5rem);
    /* Responsive typography */
    text-align: center;
    margin-bottom: 4rem;
    text-transform: uppercase;
    position: relative;
    padding-bottom: 1rem;
    background: linear-gradient(to right, #fff, #888);
    background-clip: text;
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
}

/* Buttons */
.btn {
    display: inline-block;
    padding: 16px 32px;
    border-radius: 2px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 1px;
    cursor: pointer;
    border: 1px solid transparent;
    text-align: center;
    position: relative;
    overflow: hidden;
    z-index: 1;
    transition: 0.4s cubic-bezier(0.2, 0.8, 0.2, 1);
}

.btn-primary {
    background-color: var(--color-accent);
    color: var(--color-white);
    box-shadow: 0 10px 30px -10px rgba(41, 98, 255, 0.6);
}

.btn-primary:hover {
    transform: translateY(-3px);
    box-shadow: 0 15px 35px -10px rgba(41, 98, 255, 0.8);
}

.btn-outline {
    border-color: rgba(255, 255, 255, 0.2);
    color: var(--color-white);
    background: rgba(255, 255, 255, 0.03);
    backdrop-filter: blur(5px);
}

.btn-outline:hover {
    border-color: var(--color-white);
    background: rgba(255, 255, 255, 0.1);
}

/* Navigation */
.navbar {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: var(--header-height);
    background-color: rgba(5, 5, 5, 0.8);
    backdrop-filter: blur(15px);
    z-index: 1000;
    border-bottom: 1px solid rgba(255, 255, 255, 0.05);
}

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

.logo {
    display: flex;
    align-items: center;
    height: 100%;
    /* Initially hidden */
    opacity: 0;
    pointer-events: none;
    transition: opacity 0.4s ease;
}

.navbar.scrolled .logo {
    opacity: 1;
    pointer-events: auto;
}

.logo img {
    height: 70px;
    width: auto;
    mix-blend-mode: lighten;
    filter: brightness(1.2) contrast(1.5);
}

/* Hero Logo Styles */
.hero-logo {
    width: 120px;
    /* Adjust size as needed */
    height: auto;
    margin-bottom: 2rem;
    mix-blend-mode: lighten;
    /* Remove black bg if present */
    display: block;
}

.nav-menu {
    position: fixed;
    top: var(--header-height);
    right: -100%;
    width: 100%;
    /* Full width mobile menu for premium feel */
    height: calc(100vh - var(--header-height));
    background-color: var(--color-bg);
    flex-direction: column;
    align-items: center;
    justify-content: center;
    transition: 0.5s cubic-bezier(0.77, 0, 0.175, 1);
    display: flex;
    gap: 3rem;
    z-index: 999;
    /* Ensure menu sits above hero/other fixed elements */
    border-top: 1px solid rgba(255, 255, 255, 0.1);
}

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

.nav-menu li a {
    font-size: 2rem;
    /* Large typography menu */
    font-family: var(--font-heading);
    font-weight: 700;
    text-transform: uppercase;
    color: rgba(255, 255, 255, 0.5);
    transition: 0.3s;
}

.nav-menu li a:hover,
.nav-menu li a.active {
    color: var(--color-white);
    transform: translateX(10px);
}

.nav-controls {
    display: flex;
    align-items: center;
    gap: 20px;
    z-index: 101;
    /* Ensure controls are above menu */
    position: relative;
}

.lang-btn {
    background: none;
    border: none;
    color: var(--color-text-muted);
    font-weight: 700;
    font-size: 0.9rem;
    cursor: pointer;
    transition: color 0.3s;
    min-height: 44px;
    padding: 10px 12px;
}

.lang-btn:hover {
    color: var(--color-white);
}

.hamburger {
    cursor: pointer;
    display: flex;
    flex-direction: column;
    gap: 6px;
    width: 30px;
    z-index: 102;
    /* Ensure clickable */
    min-width: 44px;
    min-height: 44px;
    justify-content: center;
    align-items: center;
    background: none;
    border: none;
    padding: 0;
}

.hamburger span {
    width: 100%;
    height: 2px;
    background-color: var(--color-white);
    transition: 0.4s cubic-bezier(0.2, 0.8, 0.2, 1);
}

/* Hamburger Animation */
.hamburger.active span:nth-child(1) {
    transform: rotate(45deg) translate(5px, 6px);
}

.hamburger.active span:nth-child(2) {
    transform: translateX(-10px);
    opacity: 0;
}

.hamburger.active span:nth-child(3) {
    transform: rotate(-45deg) translate(5px, -6px);
}

/* Hero Section - Lima Style (Adapted to TuringLanding Prompt) */
.hero {
    min-height: 100vh;
    padding-top: 300px;
    padding-bottom: 5rem;
    width: 100%;
    position: relative;
    display: flex;
    align-items: flex-end;
    /* Align content to bottom */
    justify-content: center;
    text-align: left;
    /* Left align text */
    background-color: #0a0a0a;
    overflow: hidden;
}

/* Subtle blue background gradient overlays */
.hero::before {
    content: '';
    position: absolute;
    inset: 0;
    pointer-events: none;
    background: linear-gradient(to right, rgba(0, 132, 255, 0.15), transparent, transparent),
        linear-gradient(to top right, rgba(0, 132, 255, 0.1), transparent, transparent);
    z-index: 1;
    opacity: 0.5;
}

.hero-video {
    position: absolute;
    top: -20%;
    left: 0;
    width: 100%;
    height: 120%;
    object-fit: cover;
    z-index: 0;
    background-color: #111;
}

.hero-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 1;
    background: rgba(0, 0, 0, 0.6);
    /* Black opacity layer */
    pointer-events: none;
}

.hero-content {
    position: relative;
    z-index: 2;
    width: 100%;
    max-width: 1400px;
    /* Wider container */
    padding: 0 60px;
    display: flex;
    justify-content: space-between;
    align-items: flex-end;
    gap: 2rem;
}

.hero h1 {
    font-size: clamp(3rem, 5vw, 5rem);
    /* text-[80px] equivalent */
    font-weight: 300;
    /* font-light */
    line-height: 1.1;
    margin-bottom: 2rem;
    letter-spacing: -2px;
    text-transform: none;
    /* Remove capitalize to match prompt style */
}

.hero p {
    font-size: 1.125rem;
    /* text-lg */
    line-height: 1.625;
    color: #b8b8b8;
    margin-bottom: 3rem;
    /* mb-12 */
    font-weight: 400;
    max-width: 800px;
}

.hero-btns {
    display: flex;
    gap: 1.25rem;
    /* gap-5 */
    align-items: center;
}

/* Updated Button Styles for Hero */
.hero .btn-primary {
    background-color: #0084ff;
    padding: 14px 28px;
    border-radius: 6px;
    font-size: 1rem;
    font-weight: 500;
    text-transform: none;
    /* Reset uppercase */
    letter-spacing: normal;
    display: flex;
    align-items: center;
    gap: 10px;
}

.hero .btn-primary:hover {
    background-color: #0066cc;
    transform: translateX(2px);
    /* hover:translate-x-0.5 */
    box-shadow: none;
}

.hero .btn-outline {
    background: transparent;
    color: #b8b8b8;
    padding: 14px 28px;
    font-size: 1rem;
    font-weight: 500;
    text-transform: none;
    letter-spacing: normal;
    border: none;
    backdrop-filter: none;
}

.hero .btn-outline:hover {
    color: #ffffff;
    background: transparent;
    border: none;
}

/* Stats Section in Hero */
.hero-stats {
    display: flex;
    gap: 5rem;
    /* gap-20 */
    align-items: flex-end;
}

.hero-stat-item {
    text-align: center;
}

.hero-stat-num {
    font-size: 4rem;
    /* text-[64px] */
    font-weight: 300;
    /* font-light */
    line-height: 1;
    margin-bottom: 0.75rem;
    color: var(--color-white);
}

.hero-stat-label {
    font-size: 1rem;
    color: #b8b8b8;
    font-weight: 400;
}

@media (max-width: 1024px) {
    .hero-content {
        flex-direction: column;
        align-items: flex-start;
        padding-left: 20px;
        padding-right: 20px;
    }

    .hero {
        padding-top: 150px;
        padding-bottom: 3rem;
        align-items: center;
    }

    .hero-stats {
        margin-top: 4rem;
        gap: 2rem;
        width: 100%;
        justify-content: flex-start;
    }
}

/* Animations - Staggered Fade Up */
.animate-fade-up {
    animation: fadeInUp 0.8s cubic-bezier(0.2, 0.8, 0.2, 1) forwards;
    opacity: 0;
    transform: translateY(30px);
}

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

.delay-100 {
    animation-delay: 0.1s;
}

.delay-200 {
    animation-delay: 0.2s;
}

.delay-300 {
    animation-delay: 0.3s;
}

.delay-400 {
    animation-delay: 0.4s;
}


/* Services - Deep Dark Cards */
.services-grid {
    display: grid;
    grid-template-columns: 1fr;
    gap: 2rem;
}

.service-card {
    display: block;
    /* Essential for <a> tag */
    position: relative;
    height: clamp(280px, 55vh, 400px);
    border-radius: var(--border-radius);
    overflow: hidden;
    cursor: pointer;
    background-color: var(--color-bg-card);
    border: 1px solid rgba(255, 255, 255, 0.05);
    /* Very subtle border */
    transition: transform 0.3s ease, border-color 0.3s ease;
    will-change: transform;
    /* Hardware acceleration hint */
    text-decoration: none;
    /* Remove default link underline */
}

.btn-link {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    margin-top: 1rem;
    font-size: 0.9rem;
    color: var(--color-accent);
    font-weight: 700;
    text-transform: uppercase;
}

.service-img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.5s ease-out, opacity 0.5s ease;
    /* Smoother curve */
    opacity: 0.6;
    /* Darkened by default */
    will-change: transform;
}

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

.service-card:hover .service-img {
    transform: scale(1.03);
    /* Subtle scale to reduce jank */
    opacity: 0.4;
    /* Fade out image more to help text readability */
}

.service-overlay {
    position: absolute;
    bottom: 0;
    left: 0;
    width: 100%;
    padding: 2rem;
    background: linear-gradient(to top, rgba(0, 0, 0, 0.95), transparent);
    display: flex;
    flex-direction: column;
    justify-content: flex-end;
    align-items: flex-start;
    pointer-events: none;
    /* Let clicks pass through if needed, better performance */
}

.icon-box {
    font-size: 1.5rem;
    color: var(--color-accent);
    margin-bottom: 0.5rem;
    background: none;
    backdrop-filter: none;
    width: auto;
    height: auto;
    display: block;
    border-radius: 0;
}

.service-card h3 {
    font-size: 1.4rem;
    /* Reduced from 1.8rem to prevent wrapping and heavy paint */
    color: var(--color-white);
    margin-bottom: 0.5rem;
    line-height: 1.2;
}

.service-card p {
    font-size: 0.95rem;
    color: var(--color-text-muted);
    max-width: 100%;
}


/* Partners Slider - Infinite Scroll */
.partners-slider {
    width: 100%;
    overflow: hidden;
    position: relative;
    padding: 2rem 0;
    /* Fade masks for smooth edges */
    mask-image: linear-gradient(to right, transparent, black 20%, black 80%, transparent);
    -webkit-mask-image: linear-gradient(to right, transparent, black 20%, black 80%, transparent);
}

.slider-track {
    display: flex;
    gap: 4rem;
    width: max-content;
    animation: scroll 30s linear infinite;
}

.slider-track:hover {
    animation-play-state: paused;
}

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

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

    /* Assumes track contains 2 sets of logos */
}

.slide {
    min-width: 250px;
    /* Wider tile */
    height: 150px;
    /* Taller tile */
    display: flex;
    align-items: center;
    justify-content: center;
    transition: 0.5s ease;
    /* Create a white tile to blend typical white-bg logos */
    background: #ffffff;
    border-radius: 12px;
    padding: 10px;
    /* Reduced padding to maximize logo space */
    margin-right: 2rem;
    opacity: 0.95;
    /* More visible by default */
}

.slide:hover {
    opacity: 1;
    transform: scale(1.05);
    /* Subtle scale */
    box-shadow: 0 0 25px rgba(255, 255, 255, 0.6);
    /* Glow effect */
}

.slide img {
    max-height: 130px;
    /* Much larger limits */
    max-width: 90%;
    /* Allow width to fill tile */
    width: auto;
    object-fit: contain;
    /* No filters - keep original colors */
    filter: none;
    mix-blend-mode: normal;
}

/* Specific Logo Adjustments */
/* Lux Me - rTp-bkEz.png */
.slide img[src*="rTp-bkEz.png"] {
    transform: scale(1.6);
    /* Significantly larger */
}

/* About */
.about-layout {
    display: grid;
    gap: 4rem;
}

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

.about-text p {
    font-size: 1.1rem;
    color: var(--color-text-muted);
    margin-bottom: 2rem;
}

/* Service Card List Refinements - Lima Style */
.service-list {
    margin-top: 1rem;
    list-style: none;
    font-size: 0.9rem;
    color: var(--color-text-muted);
}

.service-list li {
    display: flex;
    align-items: center;
    gap: 8px;
    margin-bottom: 0.5rem;
}

.service-list li i {
    color: var(--color-accent);
    font-size: 0.8rem;
}

/* Methodology Section */
.section-methodology {
    background-color: #0b0b0b;
    /* Slightly different shade to separate */
}

.methodology-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 2rem;
}

.method-card {
    background: var(--color-bg-card);
    padding: 2.5rem;
    border-radius: 24px;
    /* Lima's rounded look */
    border: 1px solid rgba(255, 255, 255, 0.05);
    position: relative;
    overflow: hidden;
}

.method-num {
    font-size: 4rem;
    font-weight: 800;
    color: rgba(255, 255, 255, 0.03);
    position: absolute;
    top: 1rem;
    right: 2rem;
    line-height: 1;
}

.method-card h3 {
    color: var(--color-accent);
    margin-bottom: 1rem;
    font-size: 1.5rem;
}

/* Team / Recruitment */
.section-team {
    padding: 6rem 0;
}

.recruitment-box {
    margin-top: 3rem;
    padding: 2rem;
    background: linear-gradient(45deg, rgba(0, 68, 204, 0.1), transparent);
    border-left: 4px solid var(--color-accent);
    border-radius: 4px;
}

.recruitment-box h3 {
    font-size: 1.3rem;
    margin-bottom: 0.5rem;
}

.small-btn {
    padding: 10px 24px;
    font-size: 0.9rem;
    margin-top: 1rem;
}

.stats {
    display: flex;
    gap: 4rem;
    padding-top: 2rem;
    border-top: 1px solid rgba(255, 255, 255, 0.1);
}

.stat-item {
    display: flex;
    flex-direction: column;
}

.stat-num {
    font-size: 3rem;
    /* Big impact numbers */
    font-family: var(--font-heading);
    font-weight: 800;
    color: var(--color-accent);
    line-height: 1;
    margin-bottom: 0.5rem;
}

.stat-label {
    font-size: 0.85rem;
    text-transform: uppercase;
    letter-spacing: 1px;
    color: var(--color-white);
}

.about-img-real {
    width: 100%;
    height: 500px;
    object-fit: cover;
    border-radius: var(--border-radius);
    filter: grayscale(20%) contrast(1.1);
    /* Cinematic look */
    /* Add an offset border effect */
    box-shadow: 20px 20px 0px rgba(41, 98, 255, 0.1);
}

/* Contact */
.contact-wrapper {
    display: grid;
    gap: 4rem;
}

.contact-item {
    display: flex;
    align-items: center;
    gap: 1.5rem;
    margin-bottom: 2rem;
    font-size: 1.25rem;
    padding: 1.5rem;
    background: var(--color-bg-light);
    border: 1px solid rgba(255, 255, 255, 0.05);
    border-radius: var(--border-radius);
    transition: 0.3s;
    cursor: pointer;
    /* Explicit cursor */
    text-decoration: none;
    color: var(--color-white);
}

.contact-item:hover {
    border-color: var(--color-accent);
    transform: translateX(10px);
}

.contact-item i {
    color: var(--color-accent);
    font-size: 1.5rem;
}

.contact-form {
    display: flex;
    flex-direction: column;
    gap: 1.5rem;
}

.contact-form input,
.contact-form textarea {
    padding: 20px;
    background: transparent;
    border: 1px solid rgba(255, 255, 255, 0.2);
    color: var(--color-text);
    font-family: inherit;
    font-size: 1rem;
    transition: 0.3s;
}

.contact-form input:focus,
.contact-form textarea:focus {
    outline: 2px solid var(--color-accent);
    outline-offset: 2px;
    border-color: var(--color-accent);
    background: rgba(41, 98, 255, 0.05);
}

/* Focus visible for accessibility */
.btn:focus-visible,
.nav-menu a:focus-visible,
.contact-item:focus-visible,
.hamburger:focus-visible,
.lang-btn:focus-visible {
    outline: 2px solid var(--color-accent);
    outline-offset: 3px;
}

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

/* RGPD Consent Checkbox */
.form-consent {
    display: flex;
    align-items: flex-start;
    gap: 0.5rem;
    margin-top: -0.5rem;
}

.form-consent label {
    display: flex;
    align-items: flex-start;
    gap: 0.75rem;
    cursor: pointer;
    font-size: 0.85rem;
    color: rgba(255, 255, 255, 0.7);
    line-height: 1.5;
}

.form-consent input[type="checkbox"] {
    margin-top: 0.25rem;
    width: 18px;
    height: 18px;
    cursor: pointer;
    accent-color: var(--color-accent);
    flex-shrink: 0;
}

.form-consent span {
    flex: 1;
}

/* Form Feedback Messages */
.form-message {
    display: none;
    padding: 1rem 1.5rem;
    border-radius: 8px;
    font-size: 0.95rem;
    text-align: center;
    margin: 0.5rem 0;
    animation: slideDown 0.3s ease;
}

.form-message.success {
    background: rgba(34, 197, 94, 0.15);
    border: 1px solid rgba(34, 197, 94, 0.3);
    color: #4ade80;
}

.form-message.error {
    background: rgba(239, 68, 68, 0.15);
    border: 1px solid rgba(239, 68, 68, 0.3);
    color: #f87171;
}

@keyframes slideDown {
    from {
        opacity: 0;
        transform: translateY(-10px);
    }

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

/* Disabled button state */
.contact-form button:disabled {
    opacity: 0.6;
    cursor: not-allowed;
}

/* Footer */
footer {
    background: #020202;
    padding: 6rem 0 2rem;
    border-top: 1px solid rgba(255, 255, 255, 0.05);
}

.footer-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 4rem;
    margin-bottom: 4rem;
}

.footer-col h3 {
    font-size: 1.1rem;
    color: var(--color-white);
    margin-bottom: 2rem;
    position: relative;
    padding-left: 1rem;
    border-left: 2px solid var(--color-accent);
}

.footer-col ul {
    list-style: none;
}

.footer-col ul li {
    margin-bottom: 1rem;
    font-size: 0.95rem;
    color: var(--color-text-muted);
}

.footer-col ul li a:hover {
    color: var(--color-accent);
    padding-left: 5px;
}

.social-links {
    margin-top: 2rem;
    display: flex;
    gap: 1.5rem;
}

.social-links a {
    font-size: 1.5rem;
    color: var(--color-text-muted);
}

.social-links a:hover {
    color: var(--color-accent);
}

.footer-bottom {
    padding-top: 2rem;
    border-top: 1px solid rgba(255, 255, 255, 0.05);
    text-align: center;
    font-size: 0.8rem;
    color: #444;
    text-transform: uppercase;
    letter-spacing: 2px;
}

/* Responsive Desktops */
@media (min-width: 768px) {
    .nav-menu {
        position: static;
        width: auto;
        height: auto;
        background: none;
        flex-direction: row;
        box-shadow: none;
        gap: 2.5rem;
    }

    .nav-menu li a {
        font-size: 0.9rem;
        font-family: var(--font-body);
        font-weight: 600;
        color: var(--color-white);
    }

    .nav-controls {
        display: flex;
    }

    .hamburger {
        display: none;
    }

    .mobile-only-btn {
        display: none;
    }

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

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

    .about-layout {
        grid-template-columns: 1fr 1fr;
        align-items: center;
    }

    .contact-wrapper {
        grid-template-columns: 1fr 1.5fr;
        /* Asymmetric grid */
    }

    .sticky-cta {
        display: none;
    }
}

@media (min-width: 1024px) {
    .services-grid {
        grid-template-columns: repeat(3, 1fr);
    }
}

/* Reduced motion for accessibility */
@media (prefers-reduced-motion: reduce) {

    *,
    *::before,
    *::after {
        animation-duration: 0.01ms !important;
        animation-iteration-count: 1 !important;
        transition-duration: 0.01ms !important;
        scroll-behavior: auto !important;
    }

    .animate-fade-up {
        opacity: 1 !important;
        transform: none !important;
    }

    .slider-track {
        animation: none !important;
    }
}

/* Mobile hero background fix */
@media (max-width: 1024px) {
    .hero {
        background-attachment: scroll;
    }
}

/* Mobile partners slider - swipeable */
/* Mobile partners slider - keep animation but adjust size */
@media (max-width: 767px) {
    .partners-slider {
        mask-image: linear-gradient(to right, transparent, black 10%, black 90%, transparent);
        -webkit-mask-image: linear-gradient(to right, transparent, black 10%, black 90%, transparent);
    }

    .slider-track {
        gap: 2rem;
    }

    .slide {
        min-width: 150px;
        height: 100px;
        margin-right: 1rem;
    }

    .slide img {
        max-height: 80px;
    }
}


.section-founder {
    background-color: #050505;
    text-align: center;
    padding: 6rem 0;
    position: relative;
    overflow: hidden;
    border-top: 1px solid rgba(255, 255, 255, 0.05);
    border-bottom: 1px solid rgba(255, 255, 255, 0.05);
}

.founder-content {
    max-width: 800px;
    margin: 0 auto;
    position: relative;
    z-index: 1;
}

.quote-icon {
    font-size: 3rem;
    color: var(--color-gold);
    margin-bottom: 2rem;
    opacity: 0.8;
}

.founder-quote {
    font-family: var(--font-heading);
    font-size: clamp(1.5rem, 3vw, 2.2rem);
    font-style: italic;
    line-height: 1.4;
    color: var(--color-white);
    margin-bottom: 2rem;
}

.founder-info {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 0.5rem;
}

.founder-name {
    font-size: 1.2rem;
    font-weight: 700;
    color: var(--color-gold);
    text-transform: uppercase;
    letter-spacing: 2px;
}

.founder-title {
    font-size: 0.9rem;
    color: var(--color-text-muted);
}

.section-faq {
    background-color: var(--color-bg);
    position: relative;
}

.faq-grid {
    max-width: 800px;
    margin: 0 auto;
    display: flex;
    flex-direction: column;
    gap: 1rem;
}

.faq-item {
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: var(--border-radius);
    overflow: hidden;
    transition: 0.3s ease;
    background: var(--color-bg-card);
}

.faq-item.active {
    border-color: var(--color-gold);
    background: rgba(201, 165, 92, 0.05);
}

.faq-question {
    width: 100%;
    padding: 1.5rem;
    background: none;
    border: none;
    text-align: left;
    color: var(--color-white);
    font-family: var(--font-heading);
    font-size: 1.1rem;
    font-weight: 600;
    cursor: pointer;
    display: flex;
    justify-content: space-between;
    align-items: center;
    transition: 0.3s;
}

.faq-toggle {
    font-size: 1.5rem;
    color: var(--color-gold);
    transition: 0.3s ease;
    font-weight: 400;
}

.faq-item.active .faq-toggle {
    transform: rotate(45deg);
}

.faq-answer {
    max-height: 0;
    overflow: hidden;
    transition: max-height 0.4s ease-out, padding 0.4s ease-out;
    padding: 0 1.5rem;
}

.faq-item.active .faq-answer {
    padding: 0.5rem 1.5rem 1.5rem;
    overflow: visible;
}

.faq-answer p {
    color: var(--color-text-muted);
    font-size: 1rem;
    line-height: 1.7;
}

.section-recruitment {
    background: linear-gradient(to right, #080808, #000);
    position: relative;
    overflow: hidden;
}

.recruitment-container {
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
    max-width: 1000px;
    margin: 0 auto;
    padding: 2rem 0;
}

.recruitment-list {
    list-style: none;
    margin: 3rem 0;
    display: flex;
    justify-content: center;
    gap: 3rem;
    flex-wrap: wrap;
    width: 100%;
}

.recruitment-list li {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: flex-start;
    gap: 1rem;
    color: var(--color-text-muted);
    font-size: 1.1rem;
    max-width: 250px;
}

.recruitment-list li i {
    color: var(--color-gold);
    font-size: 2.5rem;
    width: auto;
    margin-bottom: 0.5rem;
    transition: transform 0.3s ease;
}

.recruitment-list li:hover i {
    transform: scale(1.1);
}

.recruitment-img {
    width: 100%;
    height: 400px;
    object-fit: cover;
    border-radius: var(--border-radius);
    filter: grayscale(100%) contrast(1.1);
    transition: 0.5s ease;
    box-shadow: 0 0 20px rgba(0, 0, 0, 0.5);
}

.section-recruitment:hover .recruitment-img {
    filter: grayscale(20%) contrast(1.1);
}

.section-recruitment .btn-primary {
    background-color: var(--color-gold);
    box-shadow: 0 10px 30px -10px rgba(201, 165, 92, 0.2);
}

.section-recruitment .btn-primary:hover {
    background-color: #d4b065;
    box-shadow: 0 15px 35px -10px rgba(201, 165, 92, 0.4);
}

/* --- NEW SECTIONS --- */

/* Mot du Fondateur */
.section-founder {
    background-color: #050505;
    text-align: center;
    padding: 6rem 0;
    position: relative;
    overflow: hidden;
    border-top: 1px solid rgba(255, 255, 255, 0.05);
    border-bottom: 1px solid rgba(255, 255, 255, 0.05);
}

.founder-content {
    max-width: 800px;
    margin: 0 auto;
    position: relative;
    z-index: 1;
}

.quote-icon {
    font-size: 3rem;
    color: var(--color-gold);
    margin-bottom: 2rem;
    opacity: 0.8;
}

.founder-quote {
    font-family: var(--font-heading);
    font-size: clamp(1.5rem, 3vw, 2.2rem);
    font-style: italic;
    line-height: 1.4;
    color: var(--color-white);
    margin-bottom: 2rem;
}

.founder-info {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 0.5rem;
}

.founder-name {
    font-size: 1.2rem;
    font-weight: 700;
    color: var(--color-gold);
    text-transform: uppercase;
    letter-spacing: 2px;
}

.founder-title {
    font-size: 0.9rem;
    color: var(--color-text-muted);
}

/* FAQ Section */
.section-faq {
    background-color: var(--color-bg);
    position: relative;
}

.faq-grid {
    max-width: 800px;
    margin: 0 auto;
    display: flex;
    flex-direction: column;
    gap: 1rem;
}

.faq-item {
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: var(--border-radius);
    overflow: hidden;
    transition: 0.3s ease;
    background: var(--color-bg-card);
}

.faq-item.active {
    border-color: var(--color-gold);
    background: rgba(201, 165, 92, 0.05);
}

.faq-question {
    width: 100%;
    padding: 1.5rem;
    background: none;
    border: none;
    text-align: left;
    color: var(--color-white);
    font-family: var(--font-heading);
    font-size: 1.1rem;
    font-weight: 600;
    cursor: pointer;
    display: flex;
    justify-content: space-between;
    align-items: center;
    transition: 0.3s;
}

.faq-toggle {
    font-size: 1.5rem;
    color: var(--color-gold);
    transition: 0.3s ease;
    font-weight: 400;
}

.faq-item.active .faq-toggle {
    transform: rotate(45deg);
    /* Turns + into x */
}

.faq-answer {
    max-height: 0;
    overflow: hidden;
    transition: max-height 0.4s ease, padding 0.4s ease;
}

.faq-item.active .faq-answer {
    padding: 0 1.5rem 1.5rem;
    /* max-height handled by JS */
}

.faq-answer p {
    color: var(--color-text-muted);
    font-size: 0.95rem;
    line-height: 1.6;
}

/* Recruitment Section */

/* Button Gold Override for Recruitment */
.section-recruitment .btn-primary {
    background-color: var(--color-gold);
    box-shadow: 0 10px 30px -10px rgba(201, 165, 92, 0.2);
}

.section-recruitment .btn-primary:hover {
    background-color: #d4b065;
    box-shadow: 0 15px 35px -10px rgba(201, 165, 92, 0.4);
}

/* --- Service Pages Specific Styles --- */

.service-hero {
    height: 40vh;
    min-height: 400px;
    background-color: #000000;
    /* Removed background image */
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;
    padding-top: var(--header-height);
}

.service-hero h1 {
    font-size: 3rem;
    margin-bottom: 1rem;
}

.service-hero p {
    font-size: 1.2rem;
    color: var(--color-accent);
    font-weight: 600;
}

.service-layout {
    display: grid;
    grid-template-columns: 2fr 1fr;
    gap: 4rem;
    padding-top: 4rem;
    padding-bottom: 4rem;
}

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

.service-content h2 {
    font-size: 2.5rem;
    margin-bottom: 1.5rem;
    line-height: 1.2;
}

.service-content p {
    margin-bottom: 1.5rem;
    font-size: 1.05rem;
    color: #ccc;
    line-height: 1.8;
}

.service-hero.protection {
    background-color: #000000;
}

.service-hero.retail {
    background-color: #000000;
}

.service-hero.event {
    background-color: #000000;
}

.service-hero.combat {
    background-color: #000000;
}

.service-hero.fire {
    background-color: #000000;
}

.info-box {
    background: rgba(0, 68, 204, 0.1);
    border-left: 4px solid var(--color-accent);
    padding: 1.5rem;
    margin: 2rem 0;
    display: flex;
    gap: 1rem;
    align-items: flex-start;
}

.info-box i {
    color: var(--color-accent);
    font-size: 1.5rem;
    margin-top: 5px;
}

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

.service-check-list li {
    margin-bottom: 1rem;
    display: flex;
    align-items: center;
    gap: 10px;
    font-size: 1.1rem;
}

.service-check-list li i {
    color: var(--color-accent);
}

/* Sidebar & Video */
.video-wrapper {
    position: relative;
    border-radius: var(--border-radius);
    overflow: hidden;
    background: #000;
    margin-bottom: 2rem;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.5);
}

.video-wrapper video {
    width: 100%;
    height: auto;
    display: block;
}

.video-caption {
    padding: 1rem;
    background: #111;
    color: #fff;
    font-size: 0.9rem;
    display: flex;
    align-items: center;
    gap: 10px;
}

.service-nav-card {
    background: var(--color-bg-card);
    padding: 2rem;
    border-radius: var(--border-radius);
    border: 1px solid rgba(255, 255, 255, 0.05);
}

.service-nav-card h3 {
    font-size: 1.2rem;
    margin-bottom: 1.5rem;
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
    padding-bottom: 1rem;
}

.service-nav-card ul li {
    margin-bottom: 0.8rem;
}

.service-nav-card ul li a {
    display: block;
    padding: 10px;
    border-radius: 4px;
    transition: 0.3s;
    color: var(--color-text-muted);
}

.service-nav-card ul li a:hover,
.service-nav-card ul li a.active-link {
    background: rgba(255, 255, 255, 0.05);
    color: var(--color-white);
    padding-left: 15px;
}

/* Video Carousel Styles */
.video-carousel {
    position: relative;
    width: 100%;
    margin-bottom: 2rem;
    background: #000;
    border-radius: 10px;
    overflow: hidden;
}

.carousel-container {
    position: relative;
    width: 100%;
}

.carousel-slide {
    display: none;
    width: 100%;
    animation: fadeIn 0.5s ease;
}

.carousel-slide.active {
    display: block;
}

.carousel-btn {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    background: rgba(0, 0, 0, 0.6);
    color: white;
    border: none;
    padding: 1rem;
    cursor: pointer;
    z-index: 10;
    transition: all 0.3s ease;
    border-radius: 50%;
    width: 50px;
    height: 50px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.carousel-btn:hover {
    background: var(--color-accent);
}

.carousel-btn.prev {
    left: 10px;
}

.carousel-btn.next {
    right: 10px;
}

@keyframes fadeIn {
    from {
        opacity: 0;
    }

    to {
        opacity: 1;
    }
}

@media (max-width: 768px) {
    .carousel-btn {
        padding: 0.8rem;
        width: 40px;
        height: 40px;
    }
}

.section-team {
    padding: 8rem 0;
    background-color: var(--color-bg);
}

.section-header {
    margin-bottom: 5rem;
    text-align: center;
}

.section-subtitle {
    color: var(--color-text-muted);
    font-size: 1.1rem;
    max-width: 600px;
    margin: 1.5rem auto 0;
    line-height: 1.6;
}

.team-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 3rem;
    justify-content: center;
    max-width: 1200px;
    margin: 0 auto;
}

.team-card {
    position: relative;
    border-radius: 4px;
    /* Default site radius */
    overflow: hidden;
    background: var(--color-bg-card);
    border: 1px solid rgba(255, 255, 255, 0.05);
    display: flex;
    flex-direction: column;
    /* transition: transform 0.4s ease, box-shadow 0.4s ease; */
    border-bottom: 2px solid var(--color-gold);
    /* Integrated accent */
}

.team-card:hover {
    transform: translateY(-10px);
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.5);
    border-color: var(--color-gold);
}

.team-img-wrapper {
    width: 100%;
    aspect-ratio: 3/4;
    /* Portrait ratio */
    overflow: hidden;
    position: relative;
}

.team-img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    filter: grayscale(100%) contrast(1.1);
    transition: transform 0.6s cubic-bezier(0.2, 0.8, 0.2, 1), filter 0.5s ease;
}

.team-card:hover .team-img {
    transform: scale(1.05);
    filter: grayscale(0%) contrast(1.1);
    /* Color reveal on hover */
}

.team-img-wrapper::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 100%;
    height: 60%;
    background: linear-gradient(to top, rgba(0, 0, 0, 0.9), transparent);
    pointer-events: none;
}

.team-content {
    background: var(--color-bg-card);
    padding: 2rem;
    text-align: center;
    position: relative;
    z-index: 2;
    margin-top: -3rem;
    /* Overlap image */
}

.team-content h3 {
    color: var(--color-white);
    font-size: 1.4rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 1px;
    margin-bottom: 0.5rem;
}

.team-line {
    width: 40px;
    height: 2px;
    background-color: var(--color-gold);
    margin: 1rem auto 0;
    transition: width 0.3s ease;
}

.team-card:hover .team-line {
    width: 80px;
}

/* Mobile adjustments */
@media (max-width: 768px) {
    .team-grid {
        grid-template-columns: 1fr;
        padding: 0 1rem;
        gap: 4rem;
    }

    .team-card {
        max-width: 350px;
        margin: 0 auto;
    }

}

/* Service Hero Logo Animation */
.hero-logo-animated {
    width: 150px;
    height: auto;
    margin-bottom: 2rem;
    opacity: 0;
    animation: heroLogoFadeIn 1.5s ease-out forwards;
    display: block;
    /* Ensure it takes space */
}

@keyframes heroLogoFadeIn {
    0% {
        opacity: 0;
        transform: scale(0.8) translateY(20px);
    }

    100% {
        opacity: 1;
        transform: scale(1) translateY(0);
    }
}

/* Mobile Text Overflow Fixes */
@media (max-width: 768px) {
    .service-hero h1 {
        font-size: 2rem !important;
        padding: 0 1rem;
        word-wrap: break-word;
    }

    .service-content h2 {
        font-size: 1.8rem;
        overflow-wrap: break-word;
        hyphens: auto;
    }

    /* Global Safety for Mobile Text */
    p,
    h1,
    h2,
    h3,
    h4,
    h5,
    h6 {
        max-width: 100%;
        overflow-wrap: break-word;
        word-wrap: break-word;
    }

    /* Stats Layout Fixes */
    .hero-stats,
    .stats {
        gap: 1.5rem !important;
        flex-wrap: wrap !important;
        justify-content: center;
        width: 100%;
    }

    .hero-stat-num,
    .stat-num {
        font-size: 2.2rem !important;
        /* Smaller numbers */
    }

    .hero-stat-label,
    .stat-label {
        font-size: 0.85rem;
        white-space: normal;
        /* Allow wrapping if needed */
        text-align: center;
    }

    .hero-stat-item,
    .stat-item {
        display: flex;
        /* Ensure flex behavior */
        flex-direction: column;
        /* Stack number and label */
        align-items: center !important;
        /* Force center alignment */
        justify-content: center;
        text-align: center !important;
        /* Ensure text is centered */
        flex: 1 1 auto;
        min-width: 100px;
        margin-bottom: 1rem;
        /* Add spacing between rows if wrapped */
    }
}