/**
 * NegmaCode - Styles Responsive Communs
 * Appliquer le même responsive design sur toutes les pages
 */

/* ============================================
   FIX OVERFLOW - Empêcher le décalage horizontal
   ============================================ */

html, body {
    overflow-x: hidden !important;
    max-width: 100vw !important;
    position: relative;
    scroll-behavior: smooth;
}

html {
    overflow-x: hidden;
    overflow-y: auto;
}

body {
    overflow-x: hidden;
    overflow-y: auto;
    width: 100%;
    position: relative;
}

/* Empêcher tout élément de dépasser */
main, header, footer, article, aside {
    max-width: 100vw;
    box-sizing: border-box;
}

/* ============================================
   SECTIONS & CARTES FIXES - Contenu stable au scroll
   ============================================ */

/* Sections - contenu fixe et stable */
section {
    position: relative;
    overflow: hidden !important;
    overflow-x: hidden !important;
    overflow-y: visible !important;
    max-width: 100vw;
    box-sizing: border-box;
    /* Empêcher le contenu de bouger */
    contain: layout style;
}

/* Container stable */
.container {
    max-width: 100%;
    overflow: visible;
    box-sizing: border-box;
    position: relative;
}

/* Grilles stables */
.grid {
    position: relative;
    overflow: visible;
    max-width: 100%;
}

/* Divs généraux - pas de scroll interne */
section > div,
.container > div,
.grid > div {
    overflow: visible !important;
    position: relative;
    box-sizing: border-box;
}

/* Fix pour les éléments positionnés absolument qui débordent */
.absolute {
    max-width: 100vw;
    box-sizing: border-box;
}

/* Éléments de fond - ne pas affecter le layout */
.absolute.bg-primary\\/20,
.absolute.bg-accent\\/20,
.absolute.bg-primary\\/10,
.absolute.bg-accent\\/10,
.absolute.blur-\\[120px\\],
.absolute.rounded-full {
    pointer-events: none;
    z-index: -1;
}

/* ============================================
   CARDS 3D DESIGN - Charte graphique NegmaCode
   ============================================ */

/* Border Radius Professionnel - Standards */
:root {
    --radius-sm: 8px;
    --radius-md: 12px;
    --radius-lg: 16px;
    --radius-xl: 20px;
    --radius-2xl: 24px;
}

/* Base card 3D - Contenu fixe et stable */
.shadow-neumorphic,
.card,
.card-hover-effect,
.glass-panel:not(nav):not(.mobile-menu) {
    border-radius: var(--radius-lg) !important;
    transition: box-shadow 0.3s ease, border-color 0.3s ease;
    position: relative;
    overflow: hidden !important;
    box-sizing: border-box;
}

/* Contenu interne des cartes - toujours visible et fixe */
.shadow-neumorphic > *,
.card > *,
.card-hover-effect > *,
.glass-panel:not(nav):not(.mobile-menu) > * {
    position: relative;
    z-index: 2;
    overflow: visible;
}

/* Effet 3D subtil sur toutes les cartes */
.shadow-neumorphic {
    background: linear-gradient(145deg, #1e1e1e, #1a1a1a);
    border-radius: var(--radius-lg) !important;
    box-shadow: 
        8px 8px 20px #141414,
        -8px -8px 20px #202020,
        inset 0 1px 0 rgba(255, 255, 255, 0.05);
    border: 1px solid rgba(255, 255, 255, 0.08);
    overflow: hidden !important;
}

/* Hover 3D pour cartes neumorphiques - sans bouger le contenu */
.shadow-neumorphic:hover {
    transform: translateZ(10px);
    box-shadow: 
        12px 12px 30px #101010,
        -12px -12px 30px #242424,
        0 0 20px rgba(0, 229, 255, 0.1),
        inset 0 1px 0 rgba(255, 255, 255, 0.08);
    border-color: rgba(0, 229, 255, 0.2);
}

/* Glass panel 3D */
.glass-panel:not(nav):not(.mobile-menu) {
    background: rgba(26, 26, 26, 0.7);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    border-radius: var(--radius-lg) !important;
    border: 1px solid rgba(255, 255, 255, 0.08);
    box-shadow: 
        0 8px 32px rgba(0, 0, 0, 0.3),
        inset 0 1px 0 rgba(255, 255, 255, 0.05);
    overflow: hidden !important;
}

.glass-panel:not(nav):not(.mobile-menu):hover {
    transform: translateZ(5px);
    border-color: rgba(0, 229, 255, 0.15);
    box-shadow: 
        0 12px 40px rgba(0, 0, 0, 0.4),
        0 0 15px rgba(0, 229, 255, 0.08),
        inset 0 1px 0 rgba(255, 255, 255, 0.08);
}

/* Cartes de projet 3D - contenu fixe */
.card-hover-effect {
    background: linear-gradient(160deg, #1f1f1f 0%, #1a1a1a 50%, #161616 100%);
    border-radius: var(--radius-xl) !important;
    border: 1px solid rgba(255, 255, 255, 0.06);
    position: relative;
    overflow: hidden !important;
}

/* Contenu des cartes projet reste fixe */
.card-hover-effect .p-8,
.card-hover-effect .p-10,
.card-hover-effect .relative {
    position: relative;
    z-index: 5;
    overflow: visible;
}

/* Effet de lumière interne sur les cartes projet */
.card-hover-effect::after {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(
        135deg,
        rgba(0, 229, 255, 0.03) 0%,
        transparent 50%,
        rgba(255, 0, 255, 0.02) 100%
    );
    pointer-events: none;
    z-index: 1;
    opacity: 0;
    transition: opacity 0.4s ease;
}

.card-hover-effect:hover::after {
    opacity: 1;
}

/* Cartes de service 3D - hover sans décalage */
.group.h-full.bg-charcoal,
.bg-charcoal.rounded-3xl,
.bg-charcoal.p-8 {
    border-radius: var(--radius-xl) !important;
    transition: box-shadow 0.3s ease, border-color 0.3s ease;
    overflow: hidden !important;
}

.group.h-full.bg-charcoal:hover,
.bg-charcoal.rounded-3xl:hover {
    transform: translateZ(15px);
    box-shadow: 
        0 15px 40px rgba(0, 0, 0, 0.4),
        0 0 20px rgba(0, 229, 255, 0.1);
}

/* Sections stables - pas de transformation au scroll */
section {
    position: relative;
    overflow: hidden !important;
    transform: none !important;
    /* Garder le contenu fixe */
    contain: layout;
}

/* Grilles de cartes - stables */
.grid {
    position: relative;
    overflow: visible;
    transform: none;
}

/* Animation d'entrée des cartes - désactivé pour stabilité */
/*
@keyframes cardReveal {
    from {
        opacity: 0;
        transform: translateY(30px) rotateX(-10deg);
    }
    to {
        opacity: 1;
        transform: translateY(0) rotateX(0);
    }
}
*/

/* Éléments arrondis - border-radius professionnel */
.rounded-xl {
    border-radius: var(--radius-md) !important;
}

.rounded-2xl {
    border-radius: var(--radius-lg) !important;
}

.rounded-3xl {
    border-radius: var(--radius-xl) !important;
}

/* Boutons - border-radius professionnel */
button,
.btn,
a.inline-flex {
    border-radius: var(--radius-md) !important;
    transition: box-shadow 0.3s ease, opacity 0.3s ease;
}

button:hover,
.btn:hover {
    box-shadow: 0 4px 12px rgba(0, 229, 255, 0.2);
}

/* CTA buttons avec effet */
.bg-primary {
    border-radius: var(--radius-md) !important;
    box-shadow: 
        0 4px 15px rgba(0, 229, 255, 0.3),
        0 0 0 1px rgba(0, 229, 255, 0.1);
    transition: all 0.3s ease;
}

.bg-primary:hover {
    box-shadow: 
        0 8px 25px rgba(0, 229, 255, 0.4),
        0 0 30px rgba(0, 229, 255, 0.2);
}

/* Images dans les cartes */
.card-image-bg,
.bg-cover {
    transition: transform 0.6s ease;
}

/* Timeline items (About page) - stable */
.timeline-line > div > div {
    border-radius: var(--radius-lg);
    transition: box-shadow 0.3s ease;
}

.timeline-line > div:hover > div {
    box-shadow: 0 8px 24px rgba(0, 229, 255, 0.15);
}

/* Stats counters 3D */
.text-3xl.font-bold {
    text-shadow: 0 2px 10px rgba(0, 229, 255, 0.2);
}

/* Fix pour éviter tout décalage */
.shadow-neumorphic,
.glass-panel,
.card-hover-effect,
.card,
section,
.container {
    max-width: 100%;
    box-sizing: border-box;
}

/* ============================================
   ICONS - Material Symbols Outlined
   ============================================ */

/* Import de secours pour Material Symbols */
@import url('https://fonts.googleapis.com/css2?family=Material+Symbols+Outlined:opsz,wght,FILL,GRAD@20..48,100..700,0..1,-50..200');

.material-symbols-outlined {
    font-family: 'Material Symbols Outlined', sans-serif !important;
    font-weight: normal;
    font-style: normal;
    font-size: 24px;
    line-height: 1;
    letter-spacing: normal;
    text-transform: none;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    white-space: nowrap;
    word-wrap: normal;
    direction: ltr;
    font-feature-settings: 'liga';
    -webkit-font-feature-settings: 'liga';
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
    text-rendering: optimizeLegibility;
    vertical-align: middle;
    font-variation-settings: 'FILL' 0, 'wght' 400, 'GRAD' 0, 'opsz' 24;
}

/* Tailles d'icônes */
.material-symbols-outlined.text-sm {
    font-size: 14px !important;
}

.material-symbols-outlined.text-base {
    font-size: 16px !important;
}

.material-symbols-outlined.text-lg {
    font-size: 18px !important;
}

.material-symbols-outlined.text-xl {
    font-size: 20px !important;
}

.material-symbols-outlined.text-2xl {
    font-size: 24px !important;
}

.material-symbols-outlined.text-3xl {
    font-size: 30px !important;
}

.material-symbols-outlined.text-4xl {
    font-size: 36px !important;
}

.material-symbols-outlined.text-5xl {
    font-size: 48px !important;
}

.material-symbols-outlined.text-9xl {
    font-size: 128px !important;
}

/* Icônes dans les boutons et liens */
button .material-symbols-outlined,
a .material-symbols-outlined {
    vertical-align: middle;
    display: inline-flex;
    align-items: center;
}

/* Icônes dans les conteneurs flex */
.flex .material-symbols-outlined,
.inline-flex .material-symbols-outlined {
    flex-shrink: 0;
}

/* Icônes dans les cartes de services */
.w-16.h-16 .material-symbols-outlined,
.w-14.h-14 .material-symbols-outlined,
.w-12.h-12 .material-symbols-outlined,
.w-10.h-10 .material-symbols-outlined {
    display: flex;
    align-items: center;
    justify-content: center;
}

/* Fix alignement icônes avec texte */
.gap-2 > .material-symbols-outlined,
.gap-3 > .material-symbols-outlined {
    line-height: 1;
}

/* Icônes colorées */
.material-symbols-outlined.text-primary {
    color: #00e5ff !important;
}

.material-symbols-outlined.text-accent {
    color: #FF00FF !important;
}

.material-symbols-outlined.text-white {
    color: #ffffff !important;
}

.material-symbols-outlined.text-green-400 {
    color: #4ade80 !important;
}

.material-symbols-outlined.text-green-500 {
    color: #22c55e !important;
}

.material-symbols-outlined.text-blue-400 {
    color: #60a5fa !important;
}

.material-symbols-outlined.text-gray-500 {
    color: #6b7280 !important;
}

/* ============================================
   BASE STYLES
   ============================================ */

/* Masquer toutes les scrollbars */
* {
    scrollbar-width: none; /* Firefox */
    -ms-overflow-style: none; /* IE/Edge */
}

*::-webkit-scrollbar {
    display: none; /* Chrome, Safari, Opera */
    width: 0;
    height: 0;
}

/* Garder le scroll fonctionnel mais sans barre visible */
html {
    scrollbar-width: none;
    -ms-overflow-style: none;
}

html::-webkit-scrollbar {
    display: none;
    width: 0;
    height: 0;
}

body {
    overflow-x: hidden;
    scrollbar-width: none;
    -ms-overflow-style: none;
}

body::-webkit-scrollbar {
    display: none;
    width: 0;
    height: 0;
}

/* Sections, cartes et conteneurs sans scrollbar et sans scroll interne */
section,
.card,
.glass-panel:not(nav),
.shadow-neumorphic,
.card-hover-effect,
article,
aside {
    scrollbar-width: none;
    -ms-overflow-style: none;
    overflow: visible !important;
}

section::-webkit-scrollbar,
.card::-webkit-scrollbar,
.glass-panel:not(nav)::-webkit-scrollbar,
.shadow-neumorphic::-webkit-scrollbar,
.card-hover-effect::-webkit-scrollbar,
article::-webkit-scrollbar,
aside::-webkit-scrollbar {
    display: none;
    width: 0;
    height: 0;
}

/* Fixer les sections - pas de scroll interne */
section {
    overflow: hidden !important;
    overflow-x: hidden !important;
    overflow-y: visible !important;
}

/* Fixer les cartes - contenu visible sans scroll */
.card,
.card-hover-effect,
.shadow-neumorphic:not(.overflow-x-auto):not(#servicesScroll),
.glass-panel:not(nav):not(.mobile-menu) {
    overflow: visible !important;
    overflow-x: visible !important;
    overflow-y: visible !important;
}

/* Container principal scrollable */
main,
.container {
    scrollbar-width: none;
    -ms-overflow-style: none;
}

main::-webkit-scrollbar,
.container::-webkit-scrollbar {
    display: none;
    width: 0;
    height: 0;
}

/* Horizontal scroll containers */
.hide-scrollbar {
    scrollbar-width: none !important;
    -ms-overflow-style: none !important;
}

.hide-scrollbar::-webkit-scrollbar {
    display: none !important;
    width: 0 !important;
    height: 0 !important;
}

/* Overflow containers */
.overflow-x-auto,
.overflow-y-auto,
.overflow-auto,
.overflow-scroll {
    scrollbar-width: none;
    -ms-overflow-style: none;
}

.overflow-x-auto::-webkit-scrollbar,
.overflow-y-auto::-webkit-scrollbar,
.overflow-auto::-webkit-scrollbar,
.overflow-scroll::-webkit-scrollbar {
    display: none;
    width: 0;
    height: 0;
}

.glass-panel {
    background: rgba(26, 26, 26, 0.65);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    border: 1px solid rgba(255, 255, 255, 0.08);
    border-radius: var(--radius-lg);
}

/* Inputs et Textareas - border-radius professionnel */
input,
textarea,
select {
    border-radius: var(--radius-md) !important;
}

/* Images dans les cartes - border-radius cohérent */
.card-hover-effect img,
.shadow-neumorphic img,
.glass-panel img {
    border-radius: var(--radius-md);
}

/* Icônes conteneurs - border-radius professionnel */
.w-16.h-16.rounded-2xl,
.w-14.h-14.rounded-2xl,
.w-12.h-12.rounded-xl,
.w-10.h-10.rounded-xl {
    border-radius: var(--radius-md) !important;
}

/* Float Animations */
@keyframes float {
    0% { transform: translateY(0px); }
    50% { transform: translateY(-10px); }
    100% { transform: translateY(0px); }
}
.animate-float { 
    animation: float 6s ease-in-out infinite; 
}
.animate-float-delay { 
    animation: float 7s ease-in-out infinite; 
    animation-delay: 1s; 
}

/* Holographic Text Gradient */
.text-gradient-holo {
    background: linear-gradient(to right, #00e5ff, #FF00FF);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

/* Card Hover Effect */
.card-hover-effect:hover .card-image-bg {
    transform: scale(1.05);
}

/* ============================================
   MOBILE MENU STYLES
   ============================================ */

.mobile-menu {
    transform: translateX(100%);
    transition: transform 0.3s ease-in-out;
}
.mobile-menu.active {
    transform: translateX(0);
}
.burger-line {
    transition: all 0.3s ease-in-out;
}
.burger-active .burger-line:nth-child(1) {
    transform: rotate(45deg) translate(5px, 5px);
}
.burger-active .burger-line:nth-child(2) {
    opacity: 0;
}
.burger-active .burger-line:nth-child(3) {
    transform: rotate(-45deg) translate(5px, -5px);
}

/* ============================================
   NAVBAR RESPONSIVE
   ============================================ */

@media (max-width: 640px) {
    nav.glass-panel {
        max-width: 95vw !important;
        margin-left: auto !important;
        margin-right: auto !important;
        padding-left: 1rem !important;
        padding-right: 1rem !important;
        padding-top: 0.5rem !important;
        padding-bottom: 0.5rem !important;
        box-sizing: border-box !important;
        gap: 0.5rem !important;
    }
}

/* ============================================
   RESPONSIVE - DESKTOP LARGE (1280px+)
   ============================================ */

@media (min-width: 1280px) {
    .container {
        max-width: 1200px;
    }
}

/* ============================================
   RESPONSIVE - TABLET (641px - 1024px)
   ============================================ */

@media (min-width: 641px) and (max-width: 1024px) {
    .container { 
        padding-left: 1.5rem; 
        padding-right: 1.5rem; 
    }
    h1 { 
        font-size: 3.5rem !important; 
    }
    h2 { 
        font-size: 2.25rem !important; 
    }
    h3 { 
        font-size: 1.5rem !important; 
    }
    
    /* Grids */
    .lg\:grid-cols-2 { 
        grid-template-columns: 1fr !important; 
    }
    .lg\:grid-cols-3 { 
        grid-template-columns: repeat(2, 1fr) !important; 
    }
    .lg\:grid-cols-4 { 
        grid-template-columns: repeat(2, 1fr) !important; 
    }
    .lg\:grid-cols-12 {
        grid-template-columns: 1fr !important;
    }
    .lg\:col-span-5,
    .lg\:col-span-7 {
        grid-column: span 1 !important;
    }
}

/* ============================================
   RESPONSIVE - MOBILE (max-width: 768px)
   ============================================ */

@media (max-width: 768px) {    /* FIX des éléments de background qui débordent */
    .absolute.top-1\\/4.-left-20,
    .absolute.bottom-1\\/4.-right-20 {
        display: none !important;
    }
    
    /* Alternative: réduire et repositionner */
    .w-96 {
        width: 10rem !important;
    }
    .h-96 {
        height: 10rem !important;
    }
    
    .-left-20 {
        left: 0 !important;
    }
    .-right-20 {
        right: 0 !important;
    }
        .md\:grid-cols-2 { 
        grid-template-columns: 1fr !important; 
    }
    .md\:grid-cols-3 { 
        grid-template-columns: 1fr !important; 
    }
    .md\:grid-cols-4 { 
        grid-template-columns: repeat(2, 1fr) !important; 
    }
    .lg\:grid-cols-2 { 
        grid-template-columns: 1fr !important; 
    }
    .lg\:grid-cols-3 { 
        grid-template-columns: 1fr !important; 
    }
    .lg\:grid-cols-4 { 
        grid-template-columns: repeat(2, 1fr) !important; 
    }
    .lg\:grid-cols-12 {
        grid-template-columns: 1fr !important;
    }
    .lg\:col-span-5,
    .lg\:col-span-7 {
        grid-column: span 1 !important;
    }
    
    /* Timeline */
    .timeline-line::before {
        left: 1rem;
    }
    .timeline-line > div > .absolute {
        left: 1rem !important;
    }
    
    /* Images and cards sizes */
    .w-96 { width: 16rem !important; }
    .h-96 { height: 16rem !important; }
    .w-64 { width: 12rem !important; }
    .h-64 { height: 12rem !important; }
    .min-w-\[320px\] { min-width: 280px !important; }
    .min-w-\[400px\] { min-width: 300px !important; }
}

/* ============================================
   RESPONSIVE - MOBILE SMALL (max-width: 640px)
   ============================================ */

@media (max-width: 640px) {
    /* FIX OVERFLOW - Éléments qui débordent */
    .-left-20,
    .-right-20,
    .-left-10,
    .-right-10 {
        left: 0 !important;
        right: 0 !important;
    }
    
    .absolute.-left-20 {
        left: -2rem !important;
    }
    .absolute.-right-20 {
        right: -2rem !important;
    }
    
    /* Réduire les éléments de fond qui débordent */
    .w-96.h-96.bg-primary\\/20,
    .w-96.h-96.bg-accent\\/20,
    .bg-primary\\/20.rounded-full,
    .bg-accent\\/20.rounded-full {
        width: 150px !important;
        height: 150px !important;
    }
    
    /* Éléments flottants */
    .absolute.-top-10.-right-10,
    .absolute.-bottom-5.-left-10 {
        position: absolute !important;
    }
    
    .absolute.-top-10 {
        top: -0.5rem !important;
    }
    .absolute.-right-10 {
        right: 0.5rem !important;
    }
    .absolute.-bottom-5 {
        bottom: 0 !important;
    }
    .absolute.-left-10 {
        left: 0.5rem !important;
    }
    
    /* Container */
    .container { 
        padding-left: 1rem; 
        padding-right: 1rem; 
    }
    
    /* Typography */
    h1 { 
        font-size: 2rem !important; 
        line-height: 1.2 !important; 
    }
    h2 { 
        font-size: 1.5rem !important; 
    }
    h3 { 
        font-size: 1.25rem !important; 
    }
    p { 
        font-size: 0.95rem !important; 
    }
    .hero-title { 
        font-size: 2.5rem !important; 
    }
    .section-title { 
        font-size: 1.75rem !important; 
    }
    .text-5xl { 
        font-size: 2rem !important; 
    }
    .text-4xl { 
        font-size: 1.75rem !important; 
    }
    .text-3xl { 
        font-size: 1.5rem !important; 
    }
    .text-7xl {
        font-size: 2.5rem !important;
    }
    .text-6xl {
        font-size: 2rem !important;
    }
    
    /* Sections */
    section { 
        padding-top: 3rem !important; 
        padding-bottom: 3rem !important; 
    }
    .pt-24 { 
        padding-top: 5rem !important; 
    }
    .pt-32 {
        padding-top: 5rem !important;
    }
    .pt-40 { 
        padding-top: 6rem !important; 
    }
    .py-24 { 
        padding-top: 3rem !important; 
        padding-bottom: 3rem !important; 
    }
    .py-20 {
        padding-top: 2.5rem !important;
        padding-bottom: 2.5rem !important;
    }
    .pb-20 {
        padding-bottom: 2.5rem !important;
    }
    .min-h-screen { 
        min-height: auto !important; 
    }
    .min-h-\[80vh\] {
        min-height: auto !important;
    }
    
    /* Spacing */
    .grid { 
        gap: 1rem !important; 
    }
    .gap-8 { 
        gap: 1.5rem !important; 
    }
    .gap-12 { 
        gap: 2rem !important; 
    }
    .gap-16 {
        gap: 2rem !important;
    }
    .mb-8 { 
        margin-bottom: 1.5rem !important; 
    }
    .mb-12 { 
        margin-bottom: 2rem !important; 
    }
    .mb-16 {
        margin-bottom: 2rem !important;
    }
    .mb-20 {
        margin-bottom: 2.5rem !important;
    }
    .mt-24 {
        margin-top: 3rem !important;
    }
    .space-y-24 > * + * { 
        margin-top: 3rem !important; 
    }
    .space-y-12 > * + * {
        margin-top: 2rem !important;
    }
    
    /* Padding */
    .p-8 { 
        padding: 1.25rem !important; 
    }
    .p-10 { 
        padding: 1.5rem !important; 
    }
    .p-12 { 
        padding: 1.5rem !important; 
    }
    .px-8 {
        padding-left: 1.25rem !important;
        padding-right: 1.25rem !important;
    }
    .px-10 {
        padding-left: 1.5rem !important;
        padding-right: 1.5rem !important;
    }
    
    /* Border Radius - Professionnel mobile */
    :root {
        --radius-sm: 6px;
        --radius-md: 10px;
        --radius-lg: 14px;
        --radius-xl: 18px;
        --radius-2xl: 20px;
    }
    
    .rounded-3xl { 
        border-radius: var(--radius-xl) !important; 
    }
    .rounded-2xl { 
        border-radius: var(--radius-lg) !important; 
    }
    .rounded-xl { 
        border-radius: var(--radius-md) !important; 
    }
    .rounded-\[2rem\] { 
        border-radius: var(--radius-xl) !important; 
    }
    .rounded-\[2\.5rem\] { 
        border-radius: var(--radius-xl) !important; 
    }
    .rounded-\[3rem\] {
        border-radius: var(--radius-2xl) !important;
    }
    
    /* Heights */
    .h-\[300px\] { 
        height: 200px !important; 
    }
    .h-\[400px\] {
        height: 280px !important;
    }
    .h-\[500px\] {
        height: 350px !important;
    }
    .h-\[600px\] {
        height: 300px !important;
    }
    .min-h-\[300px\] {
        min-height: 200px !important;
    }
    .min-h-\[400px\] {
        min-height: 280px !important;
    }
    
    /* Hero Section Specific */
    .lg\:h-\[600px\] {
        height: 300px !important;
    }
    .lg\:w-96 {
        width: 14rem !important;
    }
    .lg\:h-96 {
        height: 14rem !important;
    }
    .lg\:w-80 {
        width: 12rem !important;
    }
    .lg\:h-80 {
        height: 12rem !important;
    }
    
    /* Forms */
    input, textarea, select { 
        font-size: 16px !important; 
    }
    
    /* Flex direction */
    .lg\:flex-row {
        flex-direction: column !important;
    }
    
    /* Text alignment */
    .lg\:text-left {
        text-align: center !important;
    }
    
    /* Order */
    .lg\:order-1,
    .lg\:order-2 {
        order: 0 !important;
    }
    
    /* Buttons */
    .flex-wrap {
        justify-content: center !important;
    }
    
    /* Stats grid */
    .grid-cols-2 {
        grid-template-columns: repeat(2, 1fr) !important;
    }
    .md\:grid-cols-4 {
        grid-template-columns: repeat(2, 1fr) !important;
    }
    
    /* Contact page specific */
    .lg\:col-span-5,
    .lg\:col-span-7 {
        grid-column: span 1 !important;
    }
    .lg\:gap-16 {
        gap: 2rem !important;
    }
    
    /* Absolute positioned elements */
    .absolute.-top-10 {
        top: -1.5rem !important;
    }
    .absolute.-right-10 {
        right: -1.5rem !important;
    }
    .absolute.-bottom-5 {
        bottom: -0.5rem !important;
    }
    .absolute.-left-10 {
        left: -1.5rem !important;
    }
    
    /* Blur backgrounds */
    .blur-\[120px\] {
        filter: blur(60px) !important;
    }
    .w-\[500px\] {
        width: 200px !important;
    }
    .h-\[500px\] {
        height: 200px !important;
    }
    
    /* Hide some decorative elements on mobile */
    .hidden.md\:flex {
        display: none !important;
    }
    .hidden.md\:block {
        display: none !important;
    }
    
    /* Mobile phone mockup */
    .w-64.h-\[500px\] {
        width: 12rem !important;
        height: 380px !important;
    }
}

/* ============================================
   RESPONSIVE - VERY SMALL MOBILE (max-width: 375px)
   ============================================ */

@media (max-width: 375px) {
    h1 {
        font-size: 1.75rem !important;
    }
    h2 {
        font-size: 1.25rem !important;
    }
    .text-5xl {
        font-size: 1.75rem !important;
    }
    .text-4xl {
        font-size: 1.5rem !important;
    }
    .text-3xl {
        font-size: 1.25rem !important;
    }
    
    .container {
        padding-left: 0.75rem;
        padding-right: 0.75rem;
    }
    
    .p-8 {
        padding: 1rem !important;
    }
    .p-6 {
        padding: 0.875rem !important;
    }
    
    .grid-cols-2 {
        grid-template-columns: 1fr !important;
    }
    
    nav.glass-panel {
        padding-left: 0.75rem !important;
        padding-right: 0.75rem !important;
    }
}

/* ============================================
   TIMELINE RESPONSIVE (About page)
   ============================================ */

.timeline-line::before {
    content: '';
    position: absolute;
    top: 0;
    bottom: 0;
    left: 50%;
    width: 2px;
    background: linear-gradient(to bottom, #00e5ff, #FF00FF);
    transform: translateX(-50%);
    z-index: 0;
    opacity: 0.3;
}

@media (max-width: 768px) {
    .timeline-line::before {
        left: 1rem;
        transform: translateX(0);
    }
    
    .timeline-line > div {
        flex-direction: column !important;
    }
    
    .timeline-line > div > .md\:w-5\/12 {
        width: 100% !important;
        text-align: center !important;
    }
    
    .timeline-line > div > .absolute {
        left: 1rem !important;
        transform: translateX(-50%) !important;
    }
}

/* ============================================
   SCROLL ANIMATION KEYFRAMES
   ============================================ */

@keyframes scroll {
    0% { transform: translateX(0); }
    100% { transform: translateX(-50%); }
}

@keyframes slide {
    0% { transform: translate(-100%, -50%); opacity: 0; }
    50% { opacity: 1; }
    100% { transform: translate(300%, -50%); opacity: 0; }
}

/* ============================================
   PRINT STYLES
   ============================================ */

@media print {
    #threejs-canvas,
    #scroll-progress,
    nav.glass-panel,
    .mobile-menu {
        display: none !important;
    }
    
    body {
        background: white !important;
        color: black !important;
    }
}
