/* ===========================
   VARIABLES & RESET
   =========================== */
:root {
    --primary: #667eea;
    --secondary: #764ba2;
    --accent: #f093fb;
    --cyan: #00d9ff;
    --magenta: #ff00ea;
    --dark: #0a0a0a;
    --light: #ffffff;
}

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

html {
    scroll-behavior: smooth;
}

body {
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    background: var(--dark);
    color: var(--light);
    overflow-x: hidden;
    -webkit-user-select: none;
    -moz-user-select: none;
    user-select: none;
}

/* Allow text selection only in content areas */
p, li, .feature-description-3d, .box-description, .gallery-subtitle, 
input, textarea, .form-input {
    -webkit-user-select: text;
    -moz-user-select: text;
    user-select: text;
}

/* Custom Scrollbar */
::-webkit-scrollbar {
    width: 8px;
}

::-webkit-scrollbar-track {
    background: rgba(255, 255, 255, 0.05);
}

::-webkit-scrollbar-thumb {
    background: linear-gradient(180deg, var(--primary), var(--secondary));
    border-radius: 10px;
}

/* ===========================
   NAVIGATION (from Site 2)
   =========================== */
nav {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    padding: 1.5rem 3rem;
    display: flex;
    justify-content: space-between;
    align-items: center;
    z-index: 1000;
    background: rgba(0, 0, 0, 0.4);
    backdrop-filter: blur(10px);
    border-bottom: 1px solid rgba(255, 255, 255, 0.05);
    transition: all 0.3s ease;
}

nav.scrolled {
    background: rgba(0, 0, 0, 0.8);
    box-shadow: 0 5px 20px rgba(102, 126, 234, 0.3);
}

.logo {
    font-size: 1.5rem;
    font-weight: 700;
    background: linear-gradient(135deg, var(--primary) 0%, var(--secondary) 100%);
    background-clip: text;
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    letter-spacing: 2px;
    -webkit-user-select: none;
    -moz-user-select: none;
    user-select: none;
}

.nav-links {
    display: flex;
    gap: 2.5rem;
    list-style: none;
}

.nav-links a {
    color: var(--light);
    text-decoration: none;
    font-size: 0.9rem;
    letter-spacing: 1px;
    transition: all 0.3s;
    position: relative;
    cursor: pointer;
}

.nav-links a::after {
    content: '';
    position: absolute;
    bottom: -5px;
    left: 0;
    width: 0;
    height: 2px;
    background: linear-gradient(135deg, var(--primary) 0%, var(--secondary) 100%);
    transition: width 0.3s;
}

.nav-links a:hover {
    color: #a78bfa;
}

.nav-links a:hover::after {
    width: 100%;
}

/* ===========================
   HERO SECTION
   =========================== */
.hero {
    min-height: 100vh;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    position: relative;
    overflow: hidden;
    padding: 2rem;
    background: var(--dark);
}

/* Grid Overlay (from Site 1) */
.grid-overlay {
    position: absolute;
    inset: 0;
    z-index: 1;
    opacity: 0.3;
}

/* Floating Rectangle Elements (from Site 1) */
.parallax-layer {
    position: absolute;
    inset: 0;
    z-index: 3;
}

.rectangles-bottom-left {
    position: absolute;
    bottom: 15vh;
    left: 5%;
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 15px;
    transform: rotate(-45deg);
    transform-origin: center;
}

.rectangles-top-right {
    position: absolute;
    top: 15vh;
    right: 5%;
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 15px;
    transform: rotate(45deg);
    transform-origin: center;
}

.rect {
    background: linear-gradient(135deg, rgba(102, 126, 234, 0.1), rgba(118, 75, 162, 0.1));
    backdrop-filter: blur(10px);
    border: 1px solid rgba(255, 255, 255, 0.1);
    transition: all 0.3s ease;
    cursor: pointer;
}

/* Rectangle sizes and animations */
.rect-bl-1 { width: 88px; height: 56px; animation: float-rect 6s ease-in-out infinite; }
.rect-bl-2 { width: 113px; height: 69px; animation: float-rect 6s ease-in-out infinite 0.5s; }
.rect-bl-3 { width: 94px; height: 75px; animation: float-rect 6s ease-in-out infinite 1s; }
.rect-bl-4 { width: 106px; height: 50px; animation: float-rect 6s ease-in-out infinite 1.5s; }
.rect-bl-5 { width: 81px; height: 63px; animation: float-rect 6s ease-in-out infinite 2s; }
.rect-bl-6 { width: 119px; height: 81px; animation: float-rect 6s ease-in-out infinite 2.5s; }

.rect-tr-1 { width: 80px; height: 70px; animation: float-rect 8s ease-in-out infinite; }
.rect-tr-2 { width: 100px; height: 55px; animation: float-rect 8s ease-in-out infinite 0.5s; }
.rect-tr-3 { width: 75px; height: 65px; animation: float-rect 8s ease-in-out infinite 1s; }
.rect-tr-4 { width: 90px; height: 50px; animation: float-rect 8s ease-in-out infinite 1.5s; }

@keyframes float-rect {
    0%, 100% {
        transform: translateY(0) rotate(0deg);
        opacity: 0.6;
    }
    50% {
        transform: translateY(-20px) rotate(2deg);
        opacity: 1;
    }
}

.rect:hover {
    background: linear-gradient(135deg, rgba(102, 126, 234, 0.3), rgba(118, 75, 162, 0.3));
    border-color: var(--primary);
    box-shadow: 0 10px 30px rgba(102, 126, 234, 0.4);
}

/* Glowing Orbs */
.glowing-orb {
    position: absolute;
    border-radius: 50%;
    filter: blur(100px);
    z-index: 1;
    animation: pulse 8s ease-in-out infinite;
}

.orb-1 {
    width: 500px;
    height: 500px;
    background: radial-gradient(circle, rgba(102, 126, 234, 0.3) 0%, transparent 70%);
    top: 10%;
    left: -10%;
}

.orb-2 {
    width: 600px;
    height: 600px;
    background: radial-gradient(circle, rgba(118, 75, 162, 0.3) 0%, transparent 70%);
    bottom: 10%;
    right: -10%;
    animation-delay: 4s;
}

@keyframes pulse {
    0%, 100% {
        opacity: 0.5;
        transform: scale(1);
    }
    50% {
        opacity: 0.8;
        transform: scale(1.1);
    }
}

/* Hero Content */
.hero-content {
    position: relative;
    z-index: 10;
    text-align: center;
    max-width: 1200px;
    animation: fadeInUp 1s ease-out;
}

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

.logo-img {
    width: 380px;
    max-width: 80vw;
    margin-bottom: 0.3rem;
    filter: drop-shadow(0 0 60px rgba(102, 126, 234, 0.6));
    animation: float 6s ease-in-out infinite;
    margin-top: 2rem;
}

@keyframes float {
    0%, 100% { transform: translateY(0px); }
    50% { transform: translateY(-20px); }
}

.brand-title {
    font-size: clamp(3rem, 10vw, 6rem);
    font-weight: 900;
    margin-bottom: 1.5rem;
    letter-spacing: -2px;
    line-height: 1.1;
    -webkit-user-select: none;
    -moz-user-select: none;
    user-select: none;
}

.brand-case {
    display: block;
    color: var(--light);
}

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

.hero-subtitle {
    font-size: clamp(1rem, 2vw, 1.3rem);
    letter-spacing: 4px;
    margin-bottom: 3rem;
    color: #9ca3af;
    font-weight: 300;
}

/* CTA Button */
.cta-button {
    display: inline-block;
    padding: 1.2rem 3.5rem;
    font-size: 1.1rem;
    font-weight: 600;
    color: white;
    background: linear-gradient(135deg, var(--primary) 0%, var(--secondary) 100%);
    border: none;
    border-radius: 50px;
    cursor: pointer;
    letter-spacing: 1px;
    text-decoration: none;
    transition: all 0.3s;
    box-shadow: 0 10px 40px rgba(102, 126, 234, 0.4);
    position: relative;
}

.cta-button:hover {
    transform: translateY(-3px);
    box-shadow: 0 15px 50px rgba(102, 126, 234, 0.6);
}

/* ===========================
   SECTIONS
   =========================== */
.content-section {
    padding: 100px 0;
    position: relative;
    scroll-margin-top: 80px; /* Offset for fixed navbar */
}

.section-gradient {
    background: linear-gradient(180deg, #0a0a0a 0%, #1a0f2e 100%);
}

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

.section-title {
    font-size: clamp(2rem, 5vw, 3.5rem);
    text-align: center;
    margin-bottom: 2rem;
    background: linear-gradient(135deg, var(--primary) 0%, var(--secondary) 100%);
    background-clip: text;
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
}

/* About Section */
.about-content {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 4rem;
    align-items: center;
}

.about-text h3 {
    font-size: 2rem;
    margin-bottom: 1.5rem;
    color: var(--light);
}

.about-text p {
    line-height: 1.8;
    color: #9ca3af;
    margin-bottom: 1rem;
}

.about-boxes {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 2rem;
    margin-top: 3rem;
}

.info-box {
    background: rgba(102, 126, 234, 0.05);
    padding: 2rem;
    border-radius: 15px;
    border: 1px solid rgba(102, 126, 234, 0.2);
    transition: all 0.3s;
}

.info-box:hover {
    background: rgba(102, 126, 234, 0.1);
    transform: translateY(-5px);
    box-shadow: 0 10px 30px rgba(102, 126, 234, 0.3);
}

.box-icon {
    font-size: 3rem;
    margin-bottom: 1rem;
    position: relative;
}

.box-number {
    position: absolute;
    top: 0;
    right: 0;
    font-size: 1rem;
    color: var(--primary);
}

.box-title {
    font-size: 1.3rem;
    margin-bottom: 1rem;
    color: var(--light);
}

.box-description {
    color: #9ca3af;
    line-height: 1.6;
}

/* About Section - Split Screen Design */
.about-section {
    padding: 80px 0 60px 0;
    scroll-margin-top: 80px;
}

.about-hero {
    display: grid;
    grid-template-columns: 1fr 1fr;
    min-height: 70vh;
    max-height: 90vh;
    gap: 0;
    margin-top: -50px;
    overflow: hidden;
}

.about-split {
    padding: clamp(2rem, 4vh, 4rem) clamp(2rem, 5%, 6rem);
    display: flex;
    align-items: center;
    justify-content: center;
    position: relative;
    overflow: hidden;
}

.left-side {
    background: linear-gradient(135deg, rgba(10, 10, 26, 0.95) 0%, rgba(26, 15, 46, 0.95) 100%);
}

.right-side {
    background: rgba(5, 5, 15, 0.8);
    position: relative;
    overflow: hidden;
}

.split-content {
    max-width: 520px;
    width: 100%;
}

.badge {
    display: inline-block;
    padding: 0.8rem 2rem;
    background: linear-gradient(135deg, var(--primary), var(--secondary));
    color: white;
    border-radius: 50px;
    font-size: 0.95rem;
    font-weight: 700;
    letter-spacing: 3px;
    margin-bottom: 2rem;
    text-transform: uppercase;
    box-shadow: 0 5px 20px rgba(102, 126, 234, 0.4);
}

.about-main-title {
    font-size: clamp(2rem, 3vw, 3.8rem);
    line-height: 1.2;
    margin-bottom: clamp(0.8rem, 1.5vh, 1.5rem);
    color: var(--light);
}

.highlight {
    background: linear-gradient(135deg, var(--primary), var(--secondary));
    background-clip: text;
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
}

.about-lead {
    font-size: clamp(1rem, 1.1vw, 1.25rem);
    line-height: 1.8;
    color: #b0b7c3;
    margin-bottom: clamp(1rem, 2vh, 2.5rem);
}

.value-cards {
    display: flex;
    flex-direction: column;
    gap: clamp(0.8rem, 1.2vh, 1.5rem);
}

.value-card {
    display: flex;
    gap: 1rem;
    align-items: flex-start;
    padding: clamp(0.8rem, 1.2vh, 1.5rem);
    background: rgba(102, 126, 234, 0.05);
    border-left: 3px solid transparent;
    border-radius: 10px;
    transition: all 0.3s;
}

.value-card:hover {
    background: rgba(102, 126, 234, 0.1);
    border-left-color: var(--primary);
    transform: translateX(10px);
}

.value-icon {
    font-size: 2rem;
    flex-shrink: 0;
}

.value-card h4 {
    font-size: clamp(1rem, 1.1vw, 1.3rem);
    margin-bottom: 0.5rem;
    color: var(--light);
}

.value-card p {
    font-size: clamp(0.9rem, 0.95vw, 1.1rem);
    color: #9ca3af;
    line-height: 1.6;
}

/* Right Side Content */
.split-content-right {
    width: 100%;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: stretch;
    padding: 0;
}

.image-showcase {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 1rem;
    width: clamp(280px, 85%, 640px);
    margin-bottom: clamp(0.8rem, 1.5vh, 1.5rem);
    margin-left: auto;
    margin-right: auto;
}

.showcase-item {
    aspect-ratio: 16/10;
    border-radius: 16px;
    overflow: hidden;
    position: relative;
    border: 2px solid rgba(102, 126, 234, 0.3);
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    cursor: pointer;
}

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

.showcase-overlay {
    position: absolute;
    inset: 0;
    background: linear-gradient(180deg, transparent 0%, rgba(0, 0, 0, 0.9) 100%);
    display: flex;
    align-items: flex-end;
    justify-content: center;
    padding: 1.5rem;
    opacity: 0;
    transition: opacity 0.4s;
}

.showcase-item:hover .showcase-overlay {
    opacity: 1;
}

.showcase-item:hover .showcase-img {
    transform: scale(1.1);
}

.showcase-label {
    color: white;
    font-size: 1.1rem;
    font-weight: 700;
    text-align: center;
    text-shadow: 0 2px 10px rgba(0, 0, 0, 0.5);
    z-index: 2;
}

.item-1 {
    grid-column: 1 / -1;
    animation: fadeInScale 0.6s ease-out;
}

.item-2 {
    animation: fadeInScale 0.6s ease-out 0.2s both;
}

.item-3 {
    animation: fadeInScale 0.6s ease-out 0.4s both;
}

@keyframes fadeInScale {
    from {
        opacity: 0;
        transform: scale(0.8);
    }
    to {
        opacity: 1;
        transform: scale(1);
    }
}

.showcase-item:hover {
    transform: translateY(-10px) scale(1.05);
    border-color: rgba(102, 126, 234, 0.8);
    box-shadow: 0 20px 60px rgba(102, 126, 234, 0.4);
}

/* Floating Stats */
.floating-stats {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 1rem;
    width: 85%;
    max-width: 580px;
    margin-left: auto;
    margin-right: auto;
}

.floating-stat {
    text-align: center;
    padding: 1.5rem 1rem;
    background: rgba(102, 126, 234, 0.08);
    border: 1px solid rgba(102, 126, 234, 0.3);
    border-radius: 15px;
    backdrop-filter: blur(10px);
    transition: all 0.3s;
}

.floating-stat:hover {
    background: rgba(102, 126, 234, 0.15);
    transform: translateY(-5px);
    box-shadow: 0 10px 30px rgba(102, 126, 234, 0.3);
}

.stat-value {
    font-size: 2rem;
    font-weight: 900;
    background: linear-gradient(135deg, var(--primary), var(--secondary));
    background-clip: text;
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    line-height: 1;
    margin-bottom: 0.5rem;
}

.stat-text {
    font-size: 0.75rem;
    color: #b0b7c3;
    text-transform: uppercase;
    letter-spacing: 1px;
}

/* Process Section */
.process-section {
    padding: 3rem 2rem 4rem 2rem;
    max-width: 1200px;
    margin: 0 auto;
}

.process-title {
    font-size: 2.5rem;
    text-align: center;
    margin-bottom: 3rem;
    color: var(--light);
}

.process-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 2rem;
}

.process-step {
    text-align: center;
    padding: 2rem 1.5rem;
    background: rgba(102, 126, 234, 0.05);
    border: 1px solid rgba(102, 126, 234, 0.2);
    border-radius: 15px;
    transition: all 0.3s;
    position: relative;
}

.process-step::after {
    content: '→';
    position: absolute;
    right: -2rem;
    top: 50%;
    transform: translateY(-50%);
    font-size: 2rem;
    color: rgba(102, 126, 234, 0.3);
}

.process-step:last-child::after {
    display: none;
}

.process-step:hover {
    background: rgba(102, 126, 234, 0.12);
    border-color: rgba(102, 126, 234, 0.5);
    transform: translateY(-10px);
    box-shadow: 0 20px 40px rgba(102, 126, 234, 0.3);
}

.step-number {
    font-size: 3rem;
    font-weight: 900;
    background: linear-gradient(135deg, var(--primary), var(--secondary));
    background-clip: text;
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    line-height: 1;
    margin-bottom: 1rem;
    opacity: 0.7;
}

.process-step h4 {
    font-size: 1.3rem;
    color: var(--light);
    margin-bottom: 1rem;
}

.process-step p {
    font-size: 0.95rem;
    color: #9ca3af;
    line-height: 1.6;
}

/* Responsive */
@media (max-width: 1024px) {
    .about-hero {
        grid-template-columns: 1fr;
    }
    
    .about-split {
        padding: 3rem 2rem;
    }
    
    .right-side {
        min-height: 500px;
    }
    
    .process-grid {
        grid-template-columns: repeat(2, 1fr);
    }
    
    .process-step::after {
        display: none;
    }
}

@media (max-width: 768px) {
    .process-grid {
        grid-template-columns: 1fr;
    }
    
    .image-showcase {
        grid-template-columns: 1fr;
        gap: 1rem;
    }
    
    .item-1 {
        grid-column: 1;
    }
    
    .floating-stats {
        grid-template-columns: 1fr;
        gap: 1rem;
    }
}

/* Features Section */
.features-section-bg {
    background: #0a0a0a;
    position: relative;
}

.features-grid-overlay {
    position: absolute;
    inset: 0;
    opacity: 0.1;
}

.features-grid {
    position: absolute;
    inset: 0;
    background-image: 
        linear-gradient(rgba(102, 126, 234, 0.1) 1px, transparent 1px),
        linear-gradient(90deg, rgba(102, 126, 234, 0.1) 1px, transparent 1px);
    background-size: 50px 50px;
}

.features-grid-large {
    position: absolute;
    inset: 0;
    background-image: 
        linear-gradient(rgba(118, 75, 162, 0.1) 2px, transparent 2px),
        linear-gradient(90deg, rgba(118, 75, 162, 0.1) 2px, transparent 2px);
    background-size: 200px 200px;
}

.features-container {
    position: relative;
}

.carousel-3d {
    perspective: 2000px;
    height: 500px;
    position: relative;
    margin-bottom: 2rem;
    display: flex;
    align-items: center;
    justify-content: center;
}

.feature-card-3d {
    position: absolute;
    width: 400px;
    max-width: 90%;
    background: rgba(102, 126, 234, 0.08);
    border: 2px solid rgba(102, 126, 234, 0.3);
    border-radius: 20px;
    padding: 2.5rem 2rem;
    text-align: center;
    transition: all 0.6s cubic-bezier(0.4, 0, 0.2, 1);
    opacity: 0;
    visibility: hidden;
    transform: translate(-50%, -50%) scale(0.8) rotateY(-45deg);
    left: 50%;
    top: 50%;
}

.feature-card-3d.active {
    opacity: 1;
    visibility: visible;
    transform: translate(-50%, -50%) scale(1) rotateY(0deg);
    box-shadow: 0 30px 80px rgba(102, 126, 234, 0.5);
    background: rgba(102, 126, 234, 0.12);
    border-color: rgba(102, 126, 234, 0.5);
    z-index: 10;
}

.feature-number {
    position: absolute;
    top: 20px;
    right: 20px;
    font-size: 4rem;
    font-weight: 900;
    background: linear-gradient(135deg, var(--primary), var(--secondary));
    background-clip: text;
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    opacity: 0.2;
    line-height: 1;
}

.feature-icon-3d {
    font-size: 5rem;
    margin-bottom: 1.5rem;
    filter: drop-shadow(0 0 20px rgba(102, 126, 234, 0.5));
}

.feature-title-3d {
    font-size: 2rem;
    margin-bottom: 1.5rem;
    color: var(--light);
    font-weight: 700;
}

.feature-description-3d {
    color: #b0b7c3;
    line-height: 1.8;
    font-size: 1.05rem;
}

.carousel-controls {
    display: flex;
    justify-content: center;
    gap: 2rem;
    margin-bottom: 1.5rem;
}

.carousel-btn {
    width: 60px;
    height: 60px;
    border-radius: 50%;
    background: rgba(102, 126, 234, 0.1);
    border: 1px solid rgba(102, 126, 234, 0.3);
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: all 0.3s;
    font-size: 1.5rem;
    color: var(--light);
    -webkit-user-select: none;
    -moz-user-select: none;
    user-select: none;
}

.carousel-btn:hover {
    background: linear-gradient(135deg, var(--primary), var(--secondary));
    transform: scale(1.1);
    box-shadow: 0 10px 30px rgba(102, 126, 234, 0.5);
}

.carousel-indicators {
    display: flex;
    justify-content: center;
    gap: 1rem;
}

.indicator {
    width: 12px;
    height: 12px;
    border-radius: 50%;
    background: rgba(102, 126, 234, 0.3);
    cursor: pointer;
    transition: all 0.3s;
    -webkit-user-select: none;
    -moz-user-select: none;
    user-select: none;
}

.indicator.active {
    background: linear-gradient(135deg, var(--primary), var(--secondary));
    width: 40px;
    border-radius: 6px;
}

/* Gallery Section */
.gallery-section {
    background: linear-gradient(180deg, #1a0f2e 0%, #0a0a0a 100%);
    scroll-margin-top: 80px; /* Offset for fixed navbar */
}

.gallery-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 2.5rem;
}

.gallery-item {
    position: relative;
    aspect-ratio: 4/3;
    border-radius: 20px;
    overflow: hidden;
    cursor: pointer;
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    border: 2px solid rgba(102, 126, 234, 0.2);
}

.gallery-item:nth-child(1) {
    grid-column: 1 / -1;
    aspect-ratio: 21/9;
}

.gallery-item:hover {
    transform: translateY(-15px) scale(1.02);
    box-shadow: 0 30px 60px rgba(102, 126, 234, 0.5);
    border-color: rgba(102, 126, 234, 0.6);
}

.gallery-image {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.6s cubic-bezier(0.4, 0, 0.2, 1);
}

.gallery-item:hover .gallery-image {
    transform: scale(1.15);
}

.gallery-overlay {
    position: absolute;
    inset: 0;
    background: linear-gradient(180deg, 
        transparent 0%, 
        rgba(0, 0, 0, 0.4) 40%,
        rgba(0, 0, 0, 0.95) 100%);
    display: flex;
    flex-direction: column;
    justify-content: flex-end;
    padding: 2.5rem;
    opacity: 0;
    transition: opacity 0.4s;
}

.gallery-item:hover .gallery-overlay {
    opacity: 1;
}

.gallery-title {
    font-size: 1.8rem;
    margin-bottom: 0.8rem;
    color: var(--light);
    font-weight: 700;
    text-shadow: 0 2px 10px rgba(0, 0, 0, 0.5);
}

.gallery-subtitle {
    color: #b0b7c3;
    font-size: 1.1rem;
    letter-spacing: 0.5px;
}

/* Contact Section */
.contact-section-bg {
    background: #0a0a0a;
}

.contact-content {
    display: grid;
    grid-template-columns: 2fr 1fr;
    gap: 4rem;
}

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

.form-group {
    position: relative;
    margin-bottom: 1.2rem;
}

.form-input {
    width: 100%;
    padding: 1.2rem;
    background: rgba(102, 126, 234, 0.05);
    border: 1px solid rgba(102, 126, 234, 0.2);
    border-radius: 10px;
    color: var(--light);
    font-size: 1rem;
    transition: all 0.3s;
}

.form-input:focus {
    outline: none;
    border-color: var(--primary);
    background: rgba(102, 126, 234, 0.1);
    box-shadow: 0 0 20px rgba(102, 126, 234, 0.3);
}

/* Icône Instagram Case Hardware */
.ch-instagram svg {
    color: #fff;
    filter: drop-shadow(0 0 6px rgba(255, 0, 120, 0.6));
    transition: 0.25s ease;
}

.ch-instagram:hover svg {
    color: #ff0078;
    filter: drop-shadow(0 0 10px rgba(255, 0, 120, 0.9));
    transform: scale(1.18);
}



/* Fix autofill navigateur (fond blanc indésirable) */
.form-input:-webkit-autofill,
.form-input:-webkit-autofill:hover,
.form-input:-webkit-autofill:focus,
input:-webkit-autofill,
input:-webkit-autofill:hover,
input:-webkit-autofill:focus {
    -webkit-box-shadow: 0 0 0px 1000px rgba(102, 126, 234, 0.05) inset;
    -webkit-text-fill-color: var(--light);
    caret-color: var(--light);
    transition: background-color 5000s ease-in-out 0s;
}

.form-textarea {
    min-height: 150px;
    resize: none;
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
}

.submit-btn {
    width: 100%;
    padding: 1.2rem 3rem;
    background: linear-gradient(135deg, var(--primary), var(--secondary));
    color: var(--light);
    border: none;
    border-radius: 50px;
    font-size: 1.1rem;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s;
    letter-spacing: 1px;
}

.submit-btn:hover {
    transform: translateY(-3px);
    box-shadow: 0 15px 40px rgba(102, 126, 234, 0.5);
}

.contact-info {
    display: flex;
    flex-direction: column;
    gap: 2rem;
}

.info-item {
    display: flex;
    align-items: center;
    gap: 1rem;
}

.info-icon {
    font-size: 2rem;
    width: 60px;
    height: 60px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: rgba(102, 126, 234, 0.1);
    border-radius: 15px;
    border: 1px solid rgba(102, 126, 234, 0.2);
}

.info-text {
    color: #9ca3af;
}

.info-text a {
    color: #9ca3af;
    text-decoration: none;
    transition: color 0.3s;
}

.info-text a:hover {
    color: var(--primary);
}

/* Footer */
.footer {
    background: #000000;
    padding: 3rem 0;
    text-align: center;
}

.footer-content {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 2rem;
}

.footer-links {
    display: flex;
    justify-content: center;
    gap: 2rem;
    margin-bottom: 2rem;
}

.footer-link {
    color: #9ca3af;
    text-decoration: none;
    transition: color 0.3s;
}

.footer-link:hover {
    color: var(--primary);
}

.footer-divider {
    height: 1px;
    background: linear-gradient(90deg, transparent 0%, rgba(102, 126, 234, 0.5) 50%, transparent 100%);
    margin: 2rem 0;
}

.footer-copyright {
    color: #666;
    font-size: 0.9rem;
}

/* ===========================
   RESPONSIVE
   =========================== */
@media (max-width: 1024px) {
    .about-content,
    .contact-content {
        grid-template-columns: 1fr;
    }
    
    .about-boxes {
        grid-template-columns: 1fr;
    }
    
    .rectangles-bottom-left,
    .rectangles-top-right {
        opacity: 0.5;
    }
}

@media (max-width: 768px) {
    nav {
        padding: 1rem 1.5rem;
    }
    
    .nav-links {
        display: none;
    }
    
    .logo-img {
        width: 250px;
        margin-top: 1rem;
    }
    
    .brand-title {
        font-size: 3rem;
    }
    
    .feature-card-3d {
        width: 90%;
    }
    
    .gallery-grid {
        grid-template-columns: 1fr;
    }
    
    .gallery-item:nth-child(1) {
        aspect-ratio: 4/3;
    }
    
    .footer-links {
        flex-wrap: wrap;
        gap: 1rem;
    }
}


/* ================================================
   MENU MOBILE — ajout pur, ne touche à rien avant
   ================================================ */

/* Hamburger : caché par défaut sur desktop */
.hamburger {
    display: none;
}

@media (max-width: 768px) {

    /* Masquer les liens desktop */
    .nav-links { display: none !important; }

    /* Afficher le bouton hamburger */
    .hamburger {
        display: flex !important;
        flex-direction: column;
        justify-content: center;
        align-items: center;
        gap: 6px;
        width: 44px;
        height: 44px;
        background: none;
        border: none;
        cursor: pointer;
        padding: 0;
        z-index: 2000;
        flex-shrink: 0;
    }

    .hamburger span {
        display: block;
        width: 24px;
        height: 2px;
        background: #fff;
        border-radius: 2px;
        transition: transform 0.3s ease, opacity 0.2s ease;
        transform-origin: center;
    }

    .hamburger.is-open span:nth-child(1) { transform: translateY(8px) rotate(45deg); }
    .hamburger.is-open span:nth-child(2) { opacity: 0; transform: scaleX(0); }
    .hamburger.is-open span:nth-child(3) { transform: translateY(-8px) rotate(-45deg); }
}

/* Overlay */
.mob-overlay {
    display: none;
    position: fixed;
    inset: 0;
    background: rgba(0,0,0,0.65);
    z-index: 1800;
}
.mob-overlay.is-open { display: block; }

/* Panel slide droite */
.mob-menu {
    position: fixed;
    top: 0;
    right: 0;
    width: 280px;
    height: 100%;
    background: #07070f;
    border-left: 1px solid rgba(102,126,234,0.25);
    z-index: 1900;
    padding-top: 80px;
    overflow-y: auto;
    transform: translateX(100%);
    transition: transform 0.3s ease;
    will-change: transform;
    -webkit-overflow-scrolling: touch;
}
.mob-menu.is-open {
    transform: translateX(0);
}

/* Fix Safari : forcer le rendu GPU sur la navbar aussi */
nav {
    -webkit-transform: translateZ(0);
    transform: translateZ(0);
}

.mob-menu ul {
    list-style: none;
    padding: 1rem;
    margin: 0;
}

.mob-menu ul li {
    border-bottom: 1px solid rgba(255,255,255,0.05);
}

.mob-link {
    display: block;
    padding: 1rem 1.2rem;
    color: #fff;
    text-decoration: none;
    font-size: 0.85rem;
    font-weight: 600;
    letter-spacing: 2px;
    transition: color 0.2s, padding-left 0.2s;
}

.mob-link:hover {
    color: #a78bfa;
    padding-left: 1.8rem;
}

/* ================================
   GRAND ÉCRAN 2K (2560x1440)
   ================================ */
@media (min-width: 2000px) {
    .about-main-title {
        font-size: 3.8rem;
    }
    .about-lead {
        font-size: 1.4rem;
    }
    .value-card h4 {
        font-size: 1.5rem;
    }
    .value-card p {
        font-size: 1.2rem;
    }
    .image-showcase {
        width: 90%;
        max-width: 780px;
    }
    .floating-stats {
        width: 90%;
        max-width: 780px;
    }
    .about-split {
        padding: 4rem 8%;
    }
}
