:root {
    /* =========================================
       COLOR PALETTE - USER PREFERENCES
       Switch the active values below to change the theme.
       ========================================= */

    /* OPTION 1: ELECTRIC BLUE (Commented out)
    --color-accent: #7b72b6;
    --color-accent-dim: rgba(123, 114, 182, 0.15);
    --color-accent-glow: rgba(123, 114, 182, 0.5);
    */

    /* OPTION 2: VIBRANT ORANGE (Commented out) 
    
     --color-accent: #7b72b6;
    --color-accent-dim: rgba(123, 114, 182, 0.15);
    --color-accent-glow: rgba(123, 114, 182, 0.5);
    */

    --color-accent: #7b72b6;
    --color-accent-dim: rgba(123, 114, 182, 0.15);
    --color-accent-glow: rgba(123, 114, 182, 0.5);

    /* OPTION 3: DEEP VIOLET (ACTIVE) 
    --color-accent: #7b72b6;
    --color-accent-dim: rgba(123, 114, 182, 0.15);
    --color-accent-glow: rgba(123, 114, 182, 0.5);
*/

    /* Base Colors */
    --bg-dark: #0f0f11;
    --bg-panel: #0a0a0a;

    /* Gradients */
    --gradient-glow: radial-gradient(circle at 50% 0%, var(--color-accent-dim) 0%, transparent 60%);
    --gradient-surface: linear-gradient(180deg, rgba(255, 255, 255, 0.03) 0%, rgba(255, 255, 255, 0.00) 100%);
    --gradient-text: linear-gradient(135deg, #ffffff 40%, var(--color-accent) 100%);

    /* Text */
    --text-primary: #e9ebdf;
    --text-secondary: #9ca3af;
    --text-accent: #7a71b6;

    /* Glassmorphism Premium */
    --glass-bg: rgba(20, 20, 20, 0.6);
    --glass-border: 1px solid rgba(255, 255, 255, 0.08);
    --glass-highlight: 1px solid rgba(255, 255, 255, 0.1);
    --glass-accent-border: 1px solid var(--color-accent-dim);
    --blur-val: 20px;

    /* Spacing & Layout */
    --container-width: 1280px;
    --container-width: 1280px;
    --header-height: 140px;
}

svg,
svg * {
    shape-rendering: geometricPrecision;
}

/* Obsolete logo style removed */

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    background-color: var(--bg-dark);
    color: var(--text-primary);
    font-family: 'Google Sans', 'rubik', -apple-system, BlinkMacSystemFont, sans-serif;
    font-size: 16px;
    line-height: 1.6;
    overflow-x: hidden;
    min-height: 100vh;
}

/* Background Effects */
body::before {
    content: '';
    position: fixed;
    top: -50vh;
    left: 50%;
    transform: translateX(-50%);
    width: 100vw;
    height: 100vh;
    background: var(--gradient-glow);
    z-index: -1;
    pointer-events: none;
}

a {
    text-decoration: none;
    color: inherit;
    transition: all 0.3s cubic-bezier(0.16, 1, 0.3, 1);
}

/* Typography */
h1,
h2,
h3,
h4 {
    color: var(--text-accent);
    font-weight: 500;
    letter-spacing: -0.03em;
}

h1 {
    font-size: clamp(3rem, 5vw, 5rem);
    line-height: 1.1;
    margin-bottom: 24px;
    background: var(--gradient-text);
    /* Accent Gradient on Title */
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    text-shadow: 0 0 40px var(--color-accent-dim);
}

h2 {
    font-size: clamp(2rem, 3vw, 3rem);
    margin-bottom: 40px;
    text-align: center;
}

p {
    color: var(--text-secondary);
    font-weight: 300;
}

.container {
    max-width: var(--container-width);
    margin: 0 auto;
    padding: 0 24px;
}

/* Header */
header {
    height: var(--header-height);
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    z-index: 1000;
    background: rgba(13, 13, 17, 0.9);
    /* More opaque to hide glow behind border */
    backdrop-filter: blur(var(--blur-val));
    border-bottom: none !important;
    box-shadow: 0 1px 0 0 rgba(255, 255, 255, 0.15);
    /* Force 1px White Line via Shadow */
}

header .container {
    height: 100%;
    /* Ensure container fills header for vertical centering */
}

nav {
    display: flex;
    justify-content: space-between;
    align-items: center;
    height: 100%;
}

.logo-container {
    display: flex;
    align-items: center;
    gap: 13px;
}

.logo-text-quantik {
    font-family: 'Encode Sans Condensed', sans-serif;
    font-size: 4.6rem;
    font-weight: 800;
    font-style: italic;
    letter-spacing: -0.02em;
    color: #fff;
    background: linear-gradient(90deg, #ccc, var(--color-accent));
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    line-height: 1;
    display: block;
    padding-right: 0.15em;
    /* Prevent italic clipping */
    margin-right: -0.1em;
    /* Compensate for padding to maintain gap */
}

.logo-block {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    margin-bottom: 6px;
}

.logo-svg {
    height: 37px;
    width: auto;
}

.logo-text-labs {
    font-family: 'Encode Sans Condensed', sans-serif;
    font-size: 1.4rem;
    font-style: italic;
    font-weight: 900;
    /* color: var(--color-accent);*/
    margin-top: -4px;
}

.nav-links {
    display: flex;
    gap: 32px;
}

.nav-links a {
    font-size: 0.95rem;
    color: var(--text-secondary);
    font-weight: 500;
    transition: 0.3s;
    position: relative;
    /* Fix for ::after width containment */
}

.nav-links a.active,
.nav-links a:hover {
    color: var(--color-accent);
}

.nav-links a::after {
    content: '';
    position: absolute;
    bottom: -5px;
    left: 0;
    width: 0%;
    height: 2px;
    background: var(--color-accent);
    transition: 0.3s;
}

.nav-links a.active::after,
.nav-links a:hover::after {
    width: 100%;
}

/* Dropdown Styles */
.nav-item-dropdown {
    position: relative;
    display: flex;
    align-items: center;
    height: 100%;
}

.dropdown-menu {
    position: absolute;
    top: 100%;
    left: 50%;
    transform: translateX(-50%) translateY(10px);
    background: rgba(20, 20, 25, 0.95);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 12px;
    padding: 10px;
    min-width: 200px;
    opacity: 0;
    visibility: hidden;
    transition: all 0.3s ease;
    backdrop-filter: blur(15px);
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.5);
    display: flex;
    flex-direction: column;
    gap: 5px;
}

.nav-item-dropdown:hover .dropdown-menu {
    opacity: 1;
    visibility: visible;
    transform: translateX(-50%) translateY(0);
}

.dropdown-item {
    padding: 10px 15px;
    border-radius: 8px;
    color: #ccc !important;
    font-size: 0.9rem !important;
    white-space: nowrap;
    text-align: left;
    width: 100%;
}

.dropdown-item:hover {
    background: rgba(255, 255, 255, 0.05);
    color: var(--color-accent) !important;
    padding-left: 20px;
    /* Slide effect */
}

.dropdown-item::after {
    display: none;
    /* Remove underline from items */
}

/* Breadcrumbs */
.breadcrumb-nav {
    padding-top: 170px;
    padding-bottom: 20px;
    background: transparent;
}

.breadcrumb {
    display: flex;
    align-items: center;
    justify-content: flex-start;
    /* Override global nav space-between */
    height: auto;
    /* Override global nav height */
    gap: 8px;
    font-size: 0.9rem;
    color: var(--text-secondary);
}

.breadcrumb-item {
    text-decoration: none;
    color: var(--text-secondary);
    transition: 0.3s;
}

.breadcrumb-item:hover {
    color: var(--color-accent);
}

.breadcrumb-separator {
    margin: 0 10px;
    color: rgba(255, 255, 255, 0.2);
}

.breadcrumb-item.active {
    color: #fff;
    pointer-events: none;
}

/* Hero Section */
.hero {
    min-height: 75vh;
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;
    padding-top: var(--header-height);
    position: relative;
    overflow: hidden;
}

.hero-content {
    position: relative;
    z-index: 10;
    max-width: 1100px;
}

.hero-subtitle {
    font-size: 1.25rem;
    max-width: 600px;
    margin: 0 auto 40px;
}

.cta-group {
    display: flex;
    gap: 16px;
    justify-content: center;
}

.btn {
    padding: 14px 32px;
    border-radius: 99px;
    font-size: 1rem;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.2s ease;
    letter-spacing: 0.02em;
}

.btn-primary {
    background: var(--color-accent);
    color: #fff;
    /* Ensure white text on dark saturated accent */
    border: 1px solid var(--color-accent);
    box-shadow: 0 0 20px var(--color-accent-dim);
}

.btn-primary:hover {
    background: #fff;
    color: #000;
    border-color: #fff;
    box-shadow: 0 0 30px rgba(255, 255, 255, 0.5);
    transform: translateY(-2px);
}

.btn-secondary {
    background: transparent;
    color: #fff;
    border: 1px solid rgba(255, 255, 255, 0.2);
    backdrop-filter: blur(10px);
}

.btn-secondary:hover {
    border-color: var(--color-accent);
    color: var(--color-accent);
    background: var(--color-accent-dim);
}

/* Abstract 3D Element CSS only */
.hero-visual-3d {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 600px;
    height: 600px;
    background: radial-gradient(circle, var(--color-accent-dim) 0%, transparent 70%);
    /* Accent Glow */
    z-index: 0;
    pointer-events: none;
}

.cube-assembly {
    position: absolute;
    top: 50%;
    left: 50%;
    width: 200px;
    height: 200px;
    transform-style: preserve-3d;
    transform: translate(-50%, -50%) rotateX(60deg) rotateZ(45deg);
    animation: floatRotate 20s infinite linear;
}

@keyframes floatRotate {
    0% {
        transform: translate(-50%, -50%) rotateX(60deg) rotateZ(0deg);
    }

    100% {
        transform: translate(-50%, -50%) rotateX(60deg) rotateZ(360deg);
    }
}

.face {
    position: absolute;
    width: 200px;
    height: 200px;
    background: rgba(255, 255, 255, 0.02);
    border: 1px solid var(--color-accent);
    /* Accent Border using main accent */
    box-shadow: 0 0 20px var(--color-accent-dim) inset;
    backdrop-filter: blur(4px);
}

/* Home Sections (Services Preview, etc) */
.section-home {
    padding: 5px 0 90px 0;
    background: linear-gradient(180deg, transparent 0%, rgba(20, 20, 20, 0.3) 100%);
}

.grid-3 {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 24px;
}

.preview-card {
    background: var(--glass-bg);
    border: 1px solid var(--color-accent);
    /* Solid Accent for Brightness */
    padding: 32px;
    border-radius: 12px;
    transition: transform 0.3s ease, border-color 0.3s ease, box-shadow 0.3s ease;
    box-shadow: 0 0 15px var(--color-accent-dim);
    /* Base Glow */
}

.preview-card:hover {
    transform: translateY(-5px);
    border-color: var(--color-accent);
    /* Intense Neon on Hover */
    box-shadow: 0 0 30px var(--color-accent-glow), inset 0 0 20px var(--color-accent-dim);
}

.icon-box {
    width: 48px;
    height: 48px;
    background: var(--color-accent-dim);
    border-radius: 8px;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 20px;
    font-size: 1.5rem;
    color: var(--color-accent);
}

.preview-card h3 {
    font-size: 1.2rem;
    margin-bottom: 12px;
}

/* Slider / Projects Home */
.slider-wrapper {
    position: relative;
    max-width: 1400px;
    margin: 0 auto;
    padding: 0 40px;
    /* Space for arrows */
}

.projects-scroll {
    display: flex;
    gap: 24px;
    overflow-x: auto;
    padding-bottom: 20px;
    scrollbar-width: none;
    scroll-snap-type: x mandatory;
    scroll-behavior: smooth;
}

.projects-scroll::-webkit-scrollbar {
    display: none;
}

.project-thumb {
    min-width: 0;
    /* Override previous fixed width */
    flex: 0 0 calc(33.333% - 16px);
    /* Desktop: 3 items */
    aspect-ratio: 16/14;
    background-color: #111;
    border-radius: 12px;
    overflow: hidden;
    position: relative;
    border: 1px solid var(--color-accent);
    box-shadow: 0 0 15px var(--color-accent-dim);
    transition: all 0.3s ease;
    scroll-snap-align: start;
}

/* Slider Controls */
.slider-btn {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    width: 40px;
    height: 40px;
    border-radius: 50%;
    background: rgba(20, 20, 20, 0.8);
    border: 1px solid var(--color-accent);
    color: var(--color-accent);
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    z-index: 10;
    backdrop-filter: blur(5px);
    transition: 0.3s;
}

.slider-btn:hover {
    background: var(--color-accent);
    color: #fff;
    box-shadow: 0 0 15px var(--color-accent-dim);
}

.slider-btn.prev {
    left: 0;
}

.slider-btn.next {
    right: 0;
}

/* Responsive Slider */
@media (max-width: 1024px) {
    .project-thumb {
        flex: 0 0 calc(50% - 12px);
        /* Tablet: 2 items */
    }
}

@media (max-width: 767px) {
    .slider-wrapper {
        padding: 0;
        /* Remove side padding on mobile */
    }

    .project-thumb {
        flex: 0 0 100%;
        /* Mobile: 1 item */
    }

    /* Buttons kept visible for mobile navigation */
    .slider-btn {
        width: 35px;
        height: 35px;
    }
}



.project-thumb img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    opacity: 0.8;
    transition: all 0.5s ease;
    filter: grayscale(5%) sepia(7%) brightness(0.8);
    /* Monochrome Base */
}

/* Tint Overlay */
.project-thumb::after {
    content: '';
    position: absolute;
    inset: 0;
    background: var(--color-accent);
    mix-blend-mode: color;
    /* Tints the grayscale image */
    opacity: 0.1;
    transition: opacity 0.5s ease;
    z-index: 1;
    pointer-events: none;
}

.project-thumb:hover::after {
    opacity: 0;
    /* Remove tint on hover */
}

.project-thumb:hover img {
    opacity: 1;
    /* Full brightness */
    transform: scale(1.03);
    filter: grayscale(0%) sepia(0%) brightness(1);
    /* Restore visual */
}

.project-info {
    position: absolute;
    bottom: 0px;
    left: 0px;
    z-index: 2;
    background: rgba(10, 10, 15, 0.35);
    /* Dark Glass Background */
    backdrop-filter: blur(8px);
    padding: 12px 20px;
    border-radius: 8px;
    border: 1px solid rgba(255, 255, 255, 0.1);
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.5);
    width: 100%
}

.project-info h4 {
    font-size: 1.2rem;
    margin-bottom: 4px;
    color: #fff;
}

.project-thumb:hover h4 {
    color: var(--color-accent);
}

/* Portfolio Grid Update */
.portfolio-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(350px, 1fr));
    gap: 24px;
}

.portfolio-item {
    border-radius: 12px;
    overflow: hidden;
    aspect-ratio: 4/3;
    position: relative;
    border: 1px solid var(--color-accent);
    /* Solid Accent */
    background: #000;
    box-shadow: 0 0 15px var(--color-accent-dim);
    /* Base Glow */
    transition: all 0.3s ease;
}

.portfolio-img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.5s ease, filter 0.5s ease, opacity 0.5s ease;
    opacity: 0.8;
    filter: grayscale(5%) sepia(7%) brightness(0.8);
    /* Monochrome Base */
}

/* Tint Overlay */
.portfolio-item::after {
    content: '';
    position: absolute;
    inset: 0;
    background: var(--color-accent);
    mix-blend-mode: color;
    /* Tints the grayscale image */
    opacity: 0.1;
    transition: opacity 0.5s ease;
    z-index: 1;
    pointer-events: none;
}

.portfolio-item:hover::after {
    opacity: 0;
    /* Remove tint on hover */
}

.portfolio-item:hover .portfolio-img {
    transform: scale(1.05);
    opacity: 1;
    filter: grayscale(0%) sepia(0%) brightness(1);
    /* Restore visual */
}

.portfolio-item:hover {
    box-shadow: 0 0 30px var(--color-accent-glow), inset 0 0 20px var(--color-accent-dim);
}

.portfolio-overlay {
    position: absolute;
    bottom: 0;
    left: 0;
    text-align: center;
    opacity: 0;
    transition: opacity 0.3s ease;
    width: 85%;
    background: rgba(10, 10, 15, 0.65);
    backdrop-filter: blur(3px);
    padding: 5px 24px;
    border-radius: 12px;
    border: 1px solid rgba(255, 255, 255, 0.1);
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.5);
    pointer-events: none;
    width: 100%;
}

.portfolio-item:hover .portfolio-overlay {
    opacity: 1;
}

/* Filters */
.filters {
    display: flex;
    justify-content: center;
    gap: 12px;
    margin-bottom: 40px;
}

.filter-btn {
    background: transparent;
    border: 1px solid rgba(255, 255, 255, 0.1);
    color: var(--text-secondary);
    padding: 8px 20px;
    border-radius: 100px;
    cursor: pointer;
    transition: 0.3s;
}

.filter-btn.active,
.filter-btn:hover {
    background: var(--color-accent-dim);
    color: var(--color-accent);
    border-color: var(--color-accent);
}

/* Footer */
footer {
    padding: 60px 0;
    text-align: center;
    border-top: var(--glass-border);
    margin-top: 60px;
    color: var(--text-secondary);
    font-size: 0.9rem;
}

/* Inner Pages Restoration (Services, Portfolio) */
.services-section,
.portfolio-section {
    padding: 0px 0 80px;
    /* Accounts for header + spacing */
    min-height: 100vh;
}

/* Services Grid - Fixed 2 Columns on Desktop */
.services-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    /* Force 2 columns */
    gap: 32px;
    margin-top: 48px;
    max-width: 900px;
    /* Constrain width for better 2-col look */
    margin-left: auto;
    margin-right: auto;
}

/* Burger Menu Styles */
.burger-menu {
    display: none;
    cursor: pointer;
    z-index: 1001;
}

.burger-icon {
    width: 30px;
    height: 20px;
    position: relative;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
}

.burger-icon span {
    display: block;
    height: 2px;
    width: 100%;
    background: #fff;
    border-radius: 2px;
    transition: 0.3s;
}

/* Mobile Navigation */
@media (max-width: 768px) {
    .burger-menu {
        display: block;
    }

    .nav-links {
        position: fixed;
        top: 0;
        left: 0;
        width: 100%;
        height: 100vh;
        background: #050505;
        /* Solid background to prevent see-through */
        display: flex;
        flex-direction: column;
        justify-content: flex-start;
        /* Start from top + padding */
        align-items: center;
        padding-top: 80px;
        /* Reduced from 100px */
        /* Space for close button/logo */
        gap: 10px;
        /* Reduced from 20px */
        transform: translateY(-100%);
        transition: 0.4s cubic-bezier(0.16, 1, 0.3, 1);
        z-index: 1000;
        overflow-y: auto;
        /* Allow scrolling if menu is tall */
    }

    .nav-links.active {
        transform: translateY(0);
    }

    /* Top Level Links */
    .nav-links>a,
    .nav-item-dropdown>a {
        font-size: 1.5rem !important;
        /* Reduced from 1.8rem */
        /* Force consistent large size */
        font-weight: 600;
        font-family: 'Inter', sans-serif;
        /* Ensure font matches */
        color: #fff;
        text-decoration: none;
        display: block;
        margin-bottom: 5px;
        /* Reduced from 10px */
    }

    .nav-links>a:hover,
    .nav-item-dropdown>a:hover {
        color: var(--color-accent);
    }

    /* Mobile Dropdown Container */
    .nav-item-dropdown {
        display: flex;
        flex-direction: column;
        align-items: center;
        width: 100%;
        height: auto !important;
        /* Fix 100vh inheritance issue */
        flex-shrink: 0;
        /* Prevent collapsing */
    }

    /* Mobile Dropdown Menu (Sub-items) */
    /* High specificity to override any desktop hover/absolute positioning */
    .nav-links .nav-item-dropdown .dropdown-menu {
        position: relative !important;
        /* Force into flow */
        top: auto !important;
        left: auto !important;
        transform: none !important;
        background: rgba(255, 255, 255, 0.05);
        border: 1px solid rgba(255, 255, 255, 0.2);
        border-radius: 12px;
        opacity: 1 !important;
        visibility: visible !important;
        padding: 5px 0;
        width: 85%;
        margin: 5px 0;
        /* Reduced from 10px */
        display: flex;
        flex-direction: column;
        gap: 0;
        box-shadow: none !important;
    }

    /* Target the anchors directly and specifically */
    .nav-links .nav-item-dropdown .dropdown-menu a.dropdown-item {
        font-size: 0.95rem !important;
        /* Reduced from 1rem */
        text-align: center;
        padding: 8px;
        /* Reduced from 12px */
        color: #ffffff !important;
        background: transparent;
        display: block;
        border-bottom: 1px solid rgba(255, 255, 255, 0.05);
        opacity: 1 !important;
        white-space: normal;
        /* Allow text wrapping if needed */
    }

    .nav-links .nav-item-dropdown .dropdown-menu a.dropdown-item:last-child {
        border-bottom: none;
    }

    .nav-links .nav-item-dropdown .dropdown-menu a.dropdown-item:hover {
        background: rgba(255, 255, 255, 0.1);
        color: var(--color-accent) !important;
    }

    /* Force main link visibility */
    .nav-links>a,
    .nav-item-dropdown>a {
        font-size: 1.8rem !important;
        font-weight: 600;
        color: #ffffff !important;
        /* Force White */
        opacity: 1 !important;
    }

    /* Ensure no text-secondary overrides */
    .nav-links a {
        color: #ffffff !important;
    }

    /* Hide the 'active' line on mobile for cleaner look */
    .nav-links a::after {
        display: none;
    }

    /* Burger Animation */
    .burger-menu.active .burger-icon span:nth-child(1) {
        transform: rotate(45deg) translate(5px, 6px);
    }

    .burger-menu.active .burger-icon span:nth-child(2) {
        opacity: 0;
    }

    .burger-menu.active .burger-icon span:nth-child(3) {
        transform: rotate(-45deg) translate(5px, -6px);
    }

    /* Adjust layout for other elements on mobile */
    .content-grid {
        display: flex;
        flex-direction: column;
        gap: 40px;
    }

    .sidebar-column {
        order: 2;
    }

    .services-grid,
    .grid-3 {
        grid-template-columns: 1fr;
        gap: 32px;
    }

    .hero-content h1 {
        font-size: 2.5rem;
    }

    .hero-assembly {
        transform: scale(0.6);
    }

    .nav-item-dropdown:hover .dropdown-menu {
        /* Reset hover transform inherited from desktop */
        transform: none;
    }
}

/* Card Style Alias/Extension */
.card {
    background: var(--glass-bg);
    border: 1px solid var(--color-accent);
    /* Solid Accent */
    padding: 40px;
    border-radius: 16px;
    transition: all 0.3s ease;
    backdrop-filter: blur(10px);
    box-shadow: 0 0 15px var(--color-accent-dim);
    /* Base Glow */
}

.card:hover {
    transform: translateY(-5px);
    border-color: var(--color-accent);
    background: var(--color-accent-dim);
    box-shadow: 0 0 30px var(--color-accent-glow), inset 0 0 20px var(--color-accent-dim);
    /* Intense Glow */
}

.card-icon {
    width: 64px;
    height: 64px;
    background: var(--color-accent-dim);
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 24px;
    font-size: 1.8rem;
    color: var(--color-accent);
    border: 1px solid var(--color-accent-dim);
}

.card h3 {
    font-size: 1.5rem;
    margin-bottom: 16px;
    color: #fff;
}

/* =========================================
   Project Detail Page Styles
   ========================================= */

/* Hero Section */
.project-hero {
    position: relative;
    height: 70vh;
    display: flex;
    align-items: flex-end;
    overflow: hidden;
    margin-bottom: -60px;
    /* Overlap with stats */
}

.project-hero-bg {
    position: absolute;
    inset: 0;
    z-index: 1;
}

.project-hero-bg img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    filter: brightness(0.7);
}

.overlay-gradient {
    position: absolute;
    inset: 0;
    background: linear-gradient(0deg, #111 0%, transparent 100%);
    z-index: 2;
}

.project-hero-content {
    position: relative;
    z-index: 10;
    padding-bottom: 100px;
    width: 100%;
}

.back-link {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    color: rgba(255, 255, 255, 0.7);
    text-decoration: none;
    background: rgba(255, 255, 255, 0.1);
    padding: 8px 16px;
    border-radius: 100px;
    backdrop-filter: blur(5px);
    margin-bottom: 24px;
    transition: 0.3s;
    font-size: 0.9rem;
}

.back-link:hover {
    background: var(--color-accent);
    color: #fff;
    box-shadow: 0 0 15px var(--color-accent-dim);
}

.project-hero-content h1 {
    font-size: 4rem;
    margin-bottom: 8px;
    background: var(--gradient-text);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    line-height: 1.1;
}

.subtitle {
    font-size: 1.5rem;
    color: var(--text-secondary);
    margin-bottom: 24px;
    font-weight: 300;
}

.project-tags {
    display: flex;
    gap: 12px;
}

.tag {
    font-size: 0.85rem;
    text-transform: uppercase;
    letter-spacing: 1px;
    border: 1px solid rgba(255, 255, 255, 0.2);
    padding: 6px 14px;
    border-radius: 4px;
    color: rgba(255, 255, 255, 0.8);
}

/* Stats Section */
.project-stats {
    position: relative;
    z-index: 20;
    margin-bottom: 80px;
}

.stat-card {
    background: var(--glass-bg);
    border: 1px solid var(--glass-border);
    backdrop-filter: blur(10px);
    padding: 32px;
    border-radius: 16px;
    text-align: center;
    transition: 0.3s;
}

.stat-card:hover {
    border-color: var(--color-accent);
    box-shadow: 0 0 20px var(--color-accent-dim);
    transform: translateY(-5px);
}

.stat-card h3 {
    font-size: 2.5rem;
    color: var(--color-accent);
    margin-bottom: 4px;
    font-weight: 700;
}

.stat-card p {
    color: var(--text-secondary);
    font-size: 0.9rem;
    text-transform: uppercase;
    letter-spacing: 1px;
}

/* Content Layout */
.content-grid {
    display: grid;
    grid-template-columns: 2fr 1fr;
    gap: 60px;
}

.content-block {
    margin-bottom: 48px;
}

.content-block h2 {
    font-size: 2rem;
    margin-bottom: 20px;
    border-bottom: 2px solid var(--color-accent-dim);
    padding-bottom: 10px;
    display: inline-block;
}

.content-block p {
    line-height: 1.8;
    color: #ccc;
    font-size: 1.05rem;
    margin-bottom: 20px;
}

.feature-list {
    list-style: none;
    margin-top: 24px;
}

.feature-list li {
    display: flex;
    align-items: center;
    gap: 12px;
    margin-bottom: 16px;
    font-size: 1.1rem;
    color: #fff;
    padding: 12px;
    background: rgba(255, 255, 255, 0.03);
    border-radius: 8px;
    border-left: 3px solid var(--color-accent);
}

.feature-list svg {
    color: var(--color-accent);
}

/* Sidebar / Tech Stack */
.tech-card {
    background: rgba(255, 255, 255, 0.03);
    border: 1px solid rgba(255, 255, 255, 0.05);
    padding: 32px;
    border-radius: 16px;
    position: sticky;
    top: 40px;
}

.tech-card h3 {
    font-size: 1.5rem;
    margin-bottom: 24px;
}

.tech-item {
    margin-bottom: 20px;
}

.tech-name {
    display: block;
    margin-bottom: 8px;
    font-size: 0.9rem;
    color: #ddd;
}

.prog-bar {
    height: 6px;
    background: rgba(255, 255, 255, 0.1);
    border-radius: 3px;
    overflow: hidden;
}

.prog-bar div {
    height: 100%;
    background: var(--color-accent);
    border-radius: 3px;
}

/* Gallery */
.project-gallery {
    padding: 80px 0;
}

.project-gallery h2 {
    font-size: 2rem;
    margin-bottom: 40px;
    text-align: center;
}

.gallery-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 24px;
}

.gallery-item {
    border-radius: 16px;
    overflow: hidden;
    border: 1px solid rgba(255, 255, 255, 0.1);
    transition: 0.3s;
}

.gallery-item.large {
    grid-column: span 2;
    aspect-ratio: 21/9;
}

.gallery-item img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: 0.5s;
}

.gallery-item:hover {
    border-color: var(--color-accent);
    box-shadow: 0 0 20px var(--color-accent-dim);
}

.gallery-item:hover img {
    transform: scale(1.02);
}

/* Next Project */
.next-project {
    padding: 80px 0;
    text-align: center;
    border-top: 1px solid rgba(255, 255, 255, 0.05);
    background: linear-gradient(180deg, #111 0%, #000 100%);
}

.next-project p {
    color: var(--text-secondary);
    font-size: 0.9rem;
    text-transform: uppercase;
    letter-spacing: 2px;
    margin-bottom: 12px;
}

.next-link {
    font-size: 2.5rem;
    font-weight: 700;
    color: #fff;
    text-decoration: none;
    transition: 0.3s;
}

.next-link:hover {
    color: var(--color-accent);
    text-shadow: 0 0 20px var(--color-accent-dim);
}

/* Responsive */
@media (max-width: 768px) {
    .project-hero-content h1 {
        font-size: 2.5rem;
    }

    .content-grid {
        grid-template-columns: 1fr;
    }

    .gallery-grid {
        grid-template-columns: 1fr;
    }

    .gallery-item.large {
        grid-column: auto;
    }
}

/* Contact Page Styles */
.contact-section {
    padding: 40px 0 100px;
    display: flex;
    justify-content: center;
}

.contact-form-card {
    background: var(--glass-bg);
    backdrop-filter: blur(10px);
    border: 1px solid var(--glass-border);
    padding: 40px;
    border-radius: 20px;
    width: 100%;
    max-width: 600px;
    box-shadow: 0 0 30px rgba(0, 0, 0, 0.5);
}

.form-group {
    position: relative;
    margin-bottom: 24px;
}

.form-input,
.form-textarea {
    width: 100%;
    padding: 16px;
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 8px;
    color: #fff;
    font-size: 1rem;
    font-family: 'Inter', sans-serif;
    transition: 0.3s;
}

.form-textarea {
    min-height: 150px;
    resize: vertical;
}

.form-input:focus,
.form-textarea:focus {
    background: rgba(255, 255, 255, 0.1);
    border-color: var(--color-accent);
    outline: none;
    box-shadow: 0 0 15px var(--color-accent-dim);
}

.form-label {
    position: absolute;
    left: 16px;
    top: 16px;
    color: #aaa;
    pointer-events: none;
    transition: 0.3s;
    font-size: 1rem;
}

.form-input:focus~.form-label,
.form-input:not(:placeholder-shown)~.form-label,
.form-textarea:focus~.form-label,
.form-textarea:not(:placeholder-shown)~.form-label {
    top: -10px;
    left: 10px;
    font-size: 0.8rem;
    color: var(--color-accent);
    background: #000;
    padding: 0 5px;
}

.submit-btn {
    width: 100%;
    padding: 16px;
    background: var(--color-accent);
    color: #fff;
    border: none;
    border-radius: 8px;
    font-size: 1.1rem;
    font-weight: 600;
    cursor: pointer;
    transition: 0.3s;
    text-transform: uppercase;
    letter-spacing: 1px;
}

.submit-btn:hover {
    background: #fff;
    color: #000;
    box-shadow: 0 0 20px var(--color-accent);
}

/* =========================================
   INTERNAL PAGES (About, Methodology, Legal)
   ========================================= */
.page-hero {
    padding: 10px 0 30px 0;
    max-width: 100%;
    margin: 0 auto;
    position: relative;
    overflow: hidden;
    background: transparent;
}

.hero-container-flex {
    display: flex;
    align-items: center;
    gap: 60px;
    justify-content: space-between;
}

.hero-reversed .hero-container-flex {
    flex-direction: row-reverse;
}

.hero-image-side {
    flex: 0 0 35%;
    max-width: 35%;
}

.hero-image-side img {
    width: 100%;
    height: auto;
}

/*image selon page*/
.body-about .hero-image-side {
    flex: 0 0 30%;
    max-width: 30%;
}

[class^="body-service"] .hero-image-side {
    flex: 0 0 30%;
    max-width: 30%;
}

[class^="body-service"] h1 {
    font-size: 3rem;
    max-width: 18ch;
    margin-bottom: 4px;
}

.body-services-ai-automation .hero-image-side {
    flex: 0 0 20%;
    max-width: 20%;
}

.hero-content-side {
    flex: 1;
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
}

.body-services-ai-automation h1 {
    max-width: 30ch;
}

.hero-no-image .hero-container-flex {
    justify-content: center;
    text-align: center;
}

.hero-no-image .hero-content-side {
    max-width: 800px;
}

/* Responsive adjustment for flex hero */
@media (max-width: 991px) {
    .hero-container-flex {
        flex-direction: column !important;
        text-align: center;
        gap: 40px;
    }

    .hero-image-side {
        max-width: 350px;
        margin: 0 auto;
    }
}

.hero-overlayyyy {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(to right, var(--bg-dark) 0%, var(--bg-dark) 15%, transparent 40%, transparent 60%, var(--bg-dark) 85%, var(--bg-dark) 100%),
        rgba(0, 0, 0, 0.7);
    backdrop-filter: blur(0px) grayscale(0.3) contrast(1.8) saturate(1.8);
    z-index: 1;
}

.hero-content {
    position: relative;
    z-index: 2;
    max-width: 900px;
    margin: 0 auto;
}

.hero-content h1 {
    font-size: 3rem;
    margin-bottom: 10px;
    text-shadow: 0 0 20px rgba(0, 0, 0, 0.8);
}

.hero-subtitle {
    font-size: 1.25rem;
    color: #eee;
    line-height: 1.6;
    text-shadow: 0 0 10px rgba(0, 0, 0, 0.8);
}

/* About Page Specifics */
.feature-list {
    list-style: none;
    padding: 0;
}

.feature-list li {
    padding: 10px 10px;
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
    color: var(--text-secondary);
}

.feature-list li strong {
    color: #fff;
    margin-right: 5px;
}

.content-block p {
    font-size: 1.1rem;
    line-height: 1.8;
    color: #ccc;
    max-width: 800px;
    margin: 0 auto;
}

/* Methodology Page Specifics */
.protocol-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 40px;
}

.step-card {
    background: var(--glass-bg);
    border: 1px solid var(--glass-border);
    padding: 40px;
    border-radius: 12px;
    position: relative;
    overflow: hidden;
}

.step-number {
    font-size: 5rem;
    font-weight: 800;
    color: rgba(255, 255, 255, 0.03);
    position: absolute;
    top: -10px;
    right: 20px;
    z-index: 0;
}

.step-card h3 {
    font-size: 1.5rem;
    color: var(--color-accent);
    margin-bottom: 15px;
    position: relative;
    z-index: 1;
}

.step-card p {
    color: var(--text-secondary);
    line-height: 1.6;
    position: relative;
    z-index: 1;
}

@media (max-width: 768px) {
    .protocol-grid {
        grid-template-columns: 1fr;
    }
}

/* Service Detail Page Specifics */
.service-hero-icon-small {
    display: inline-flex;
    padding: 15px;
    background: var(--color-accent-dim);
    color: var(--color-accent);
    border-radius: 50%;
    margin-bottom: 20px;
    box-shadow: 0 0 20px var(--color-accent-dim);
    border: 1px solid var(--color-accent-dim);
}

.service-content-section {
    padding-bottom: 100px;
}

.service-content-section .container {
    display: grid;
    grid-template-columns: 2fr 1fr;
    gap: 60px;
}

.service-article h2 {
    margin-bottom: 30px;
    font-size: 2rem;
    color: #fff;
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
    padding-bottom: 20px;
}

.service-text {
    font-size: 1.1rem;
    line-height: 1.8;
    color: #ccc;
}

.sidebar-block {
    background: var(--glass-bg);
    padding: 30px;
    border-radius: 12px;
    border: 1px solid var(--glass-border);
}

.sidebar-block h3 {
    margin-bottom: 20px;
    font-size: 1.2rem;
    color: #fff;
}

.check-list {
    list-style: none;
    padding: 0;
}

.check-list li {
    padding: 10px 0 10px 30px;
    position: relative;
    border-bottom: 1px solid rgba(255, 255, 255, 0.05);
    color: var(--text-secondary);
}

.check-list li::before {
    content: '✓';
    position: absolute;
    left: 0;
    color: var(--color-accent);
    font-weight: bold;
}

@media (max-width: 768px) {
    .service-content-section .container {
        grid-template-columns: 1fr;
    }

    .service-hero h1 {
        font-size: 2.5rem;
    }
}

/* Dropdown Menu Styles */
.nav-item-dropdown {
    position: relative;
    display: flex;
    align-items: center;
    height: 100%;
}

.nav-item-dropdown>a {
    font-size: 0.95rem;
    color: var(--text-secondary);
    font-weight: 500;
    transition: 0.3s;
    position: relative;
}

.nav-item-dropdown>a.active,
.nav-item-dropdown:hover>a {
    color: var(--color-accent);
}

/* Underline for the main link */
.nav-item-dropdown>a::after {
    content: '';
    position: absolute;
    bottom: -5px;
    left: 0;
    width: 0%;
    height: 2px;
    background: var(--color-accent);
    transition: 0.3s;
}

.nav-item-dropdown>a.active::after,
.nav-item-dropdown:hover>a::after {
    width: 100%;
}

.dropdown-menu {
    position: absolute;
    top: 100%;
    /* Below header */
    left: 50%;
    transform: translateX(-50%) translateY(10px);
    background: rgba(10, 10, 15, 0.95);
    /* Dark Glass */
    backdrop-filter: blur(15px);
    border: 1px solid rgba(255, 255, 255, 0.1);
    box-shadow: 0 10px 40px rgba(0, 0, 0, 0.5);
    border-radius: 12px;
    padding: 10px 0;
    min-width: 260px;
    opacity: 0;
    visibility: hidden;
    transition: all 0.3s cubic-bezier(0.16, 1, 0.3, 1);
    z-index: 1100;
}

.nav-item-dropdown:hover .dropdown-menu {
    opacity: 1;
    visibility: visible;
    transform: translateX(-50%) translateY(0);
}

.dropdown-item {
    display: block;
    padding: 12px 24px;
    color: var(--text-secondary);
    /* Text color */
    text-decoration: none;
    font-size: 0.9rem;
    transition: 0.2s;
    border-bottom: 1px solid rgba(255, 255, 255, 0.03);
}

.dropdown-item:last-child {
    border-bottom: none;
}

/* Ensure Linked Project Image is clean (no sepia) */
/* Linked Project Card (Service Detail) */
.linked-project-card {
    margin-top: 50px;
}

.linked-project-card .project-thumb {
    display: block;
    position: relative;
    aspect-ratio: 16/9;
    border-radius: 12px;
    overflow: hidden;
    border: 1px solid var(--glass-border);
    background: #000;
    /* Ensure black background, not sepia/orange */
}

.linked-project-card .project-thumb img {
    width: 100%;
    height: 100%;
    object-fit: contain;
    /* Full image visible, no crop */
    transition: transform 0.5s ease;
    filter: none !important;
    /* FORCE NO SEPIA */
    mix-blend-mode: normal !important;
    opacity: 1 !important;
}

.linked-project-card .project-thumb:hover img {
    transform: scale(1.05);
}

.linked-project-card .project-thumb::after {
    display: none !important;
    /* Kill any pseudo-element overlays */
}

.linked-project-card .project-info {
    position: absolute;
    bottom: 0;
    left: 0;
    width: 100%;
    padding: 15px;
    background: rgba(0, 0, 0, 0.8);
    /* Solid semi-transparent background, no gradient */
    backdrop-filter: none !important;
    /* FORCE NO BLUR */
    z-index: 2;
    color: #fff;
    border-top: 1px solid rgba(255, 255, 255, 0.1);
    /* Sharp edge */
}

.linked-project-card .project-info h4 {
    margin: 0 0 5px 0;
    font-size: 1.2rem;
    color: #fff;
}

.linked-project-card .project-info span {
    font-size: 0.9rem;
    color: var(--color-accent);
}


/* =========================================
   NEW PROJECT DETAIL LAYOUT (Redesign)
   ========================================= */

/* Compact Header */
.project-header-compact {
    padding: 85px 0 40px 0;
    /* Reduced to align closer to navbar */
    text-align: left;
}

.breadcrumb-compact {
    display: flex;
    gap: 10px;
    font-size: 0.9rem;
    color: var(--text-secondary);
    margin-bottom: 20px;
}

.breadcrumb-compact a {
    color: var(--text-secondary);
    text-decoration: none;
    transition: 0.3s;
}

.breadcrumb-compact a:hover {
    color: var(--color-accent);
}

.breadcrumb-compact .current {
    color: #fff;
}

.project-header-compact h1 {
    font-size: 3.5rem;
    margin-bottom: 15px;
    margin-top: 70px;
    background: var(--gradient-text);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    line-height: 1.1;
}

.project-header-compact .subtitle {
    font-size: 1.2rem;
    color: #ddd;
    max-width: 800px;
    line-height: 1.6;
}

/* Layout Grid */
.project-grid-layout {
    display: grid;
    grid-template-columns: 2fr 1fr;
    gap: 60px;
    padding-bottom: 100px;
}

/* Main Content Column */
.project-showcase-image {
    width: 100%;
    border-radius: 16px;
    overflow: hidden;
    margin-bottom: 40px;
    border: 1px solid var(--glass-border);
    box-shadow: 0 0 30px rgba(0, 0, 0, 0.3);
    aspect-ratio: 16/9;
    background-color: rgb(0, 0, 0);
    position: relative;
    background-color: #464646;
    padding: 20px;
}

.project-showcase-image::after {
    content: '';
    position: absolute;
    inset: 0;
    border-radius: 16px;
    box-shadow: inset 0 0 0 1px rgba(255, 255, 255, 0.1);
    pointer-events: none;
}

.project-showcase-image img {
    width: 100%;
    height: 100%;
    object-fit: contain;
    /* Contain for integrity, Cover if preferred */
    display: block;
}

/* New Story Card Container */
.project-story-card {
    background: rgba(30, 32, 38, 0.8);
    /* Slightly lighter/bluer gray */
    backdrop-filter: blur(15px);
    border: 1px solid var(--glass-border);
    border-radius: 16px;
    padding: 30px;
    /* Reduced from 40px */
    box-shadow: 0 10px 40px rgba(0, 0, 0, 0.2);
}

/* ... existing code ... */

.project-meta-card {
    background: rgba(20, 20, 25, 0.9);
    /* Different shade, slightly darker/denser */
    backdrop-filter: blur(15px);
    border: 1px solid var(--glass-border);
    padding: 30px;
    border-radius: 16px;
}

.story-block {
    margin-bottom: 30px;
    /* Reduced from 50px */
    padding-bottom: 30px;
    /* Reduced from 50px */
    border-bottom: 1px solid rgba(255, 255, 255, 0.05);
}

.story-block:last-child {
    margin-bottom: 0;
    padding-bottom: 0;
    border-bottom: none;
}

.story-block h2 {
    font-size: 1.8rem;
    color: var(--color-accent);
    margin-bottom: 20px;
}

.story-block .text-content {
    font-size: 1.1rem;
    line-height: 1.8;
    color: #ccc;
    white-space: pre-line;
    /* Respect newlines, standard vertical spacing */
}

/* Footer Nav */
.project-footer-nav {
    margin-top: 40px;
    padding-top: 40px;
    /* removed border-top as it's inside the card now */
    border-top: none;
}

.btn-back {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    color: var(--text-secondary);
    text-decoration: none;
    font-size: 1rem;
    transition: 0.3s;
}

.btn-back:hover {
    color: var(--color-accent);
    transform: translateX(-5px);
}

/* Sidebar Column (Sticky) */
.sidebar-content {
    position: sticky;
    top: 100px;
    height: fit-content;
}

.project-meta-card {
    background: rgba(25, 25, 30, 0.7);
    /* Distinct from story card (lighter than page, specific tint) */
    backdrop-filter: blur(15px);
    border: 1px solid var(--glass-border);
    padding: 30px;
    border-radius: 16px;
}

.project-meta-card h3 {
    font-size: 1rem;
    text-transform: uppercase;
    letter-spacing: 1px;
    color: #fff;
    margin-bottom: 20px;
    opacity: 0.8;
}

.meta-item {
    margin-bottom: 20px;
}

.meta-item .label {
    display: block;
    font-size: 0.85rem;
    color: var(--text-secondary);
    margin-bottom: 4px;
}

.meta-item .value {
    display: block;
    font-size: 1.1rem;
    color: #fff;
    font-weight: 500;
}

.meta-separator {
    height: 1px;
    background: rgba(255, 255, 255, 0.1);
    margin: 30px 0;
}

.tech-tags {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
}

.tech-tag {
    font-size: 0.85rem;
    padding: 6px 14px;
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 100px;
    color: #ddd;
    transition: 0.3s;
}

.tech-tag:hover {
    background: var(--color-accent-dim);
    border-color: var(--color-accent);
    color: #fff;
    box-shadow: 0 0 10px var(--color-accent-dim);
}

@media (max-width: 900px) {
    .project-grid-layout {
        grid-template-columns: 1fr;
    }

    .project-header-compact h1 {
        font-size: 2.5rem;
    }

    .project-showcase-image {
        margin-bottom: 40px;
    }

    .sidebar-content {
        position: static;
    }
}