/* ============================================
   MODERN PREMIUM 3D DESIGN SYSTEM
   ============================================ */

:root {
    /* Color Palette */
    --primary-dark: #0a0e27;
    --primary-color: #161827;
    --secondary-color: #1e2139;
    --accent-primary: #6366f1;
    --accent-secondary: #8b5cf6;
    --accent-tertiary: #ec4899;
    --text-color: #ffffff;
    --text-secondary: #94a3b8;
    --text-muted: #64748b;
    
    /* Gradients */
    --gradient-primary: linear-gradient(135deg, #6366f1 0%, #8b5cf6 50%, #ec4899 100%);
    --gradient-dark: linear-gradient(135deg, #0a0e27 0%, #161827 50%, #1e2139 100%);
    --gradient-glow: radial-gradient(circle at center, rgba(99, 102, 241, 0.4), transparent 70%);
    
    /* 3D Effects */
    --shadow-3d-sm: 0 4px 6px -1px rgba(0, 0, 0, 0.3), 0 2px 4px -1px rgba(0, 0, 0, 0.2);
    --shadow-3d-md: 0 10px 15px -3px rgba(0, 0, 0, 0.4), 0 4px 6px -2px rgba(0, 0, 0, 0.3);
    --shadow-3d-lg: 0 20px 25px -5px rgba(0, 0, 0, 0.5), 0 10px 10px -5px rgba(0, 0, 0, 0.4);
    --shadow-3d-xl: 0 25px 50px -12px rgba(0, 0, 0, 0.6);
    --shadow-glow: 0 0 30px rgba(99, 102, 241, 0.5), 0 0 60px rgba(139, 92, 246, 0.3);
    --shadow-glow-hover: 0 0 40px rgba(99, 102, 241, 0.7), 0 0 80px rgba(139, 92, 246, 0.5);
    
    /* Spacing */
    --spacing: 2rem;
    --section-padding: 8rem 0;
    --container-width: 1280px;
    --container-padding: 2rem;
}

/* ============================================
   RESET & BASE STYLES
   ============================================ */

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

html {
    scroll-behavior: smooth;
}

body {
    font-family: 'Inter', 'Segoe UI', -apple-system, BlinkMacSystemFont, sans-serif;
    line-height: 1.6;
    color: var(--text-color);
    background: var(--primary-dark);
    overflow-x: hidden;
    position: relative;
}

/* 3D Animated Background - Fixed fullscreen canvas */
#bg3d {
    position: fixed;
    top: 0;
    left: 0;
    width: 100vw;
    height: 100vh;
    z-index: 0;
    pointer-events: none;
}

/* All page content floats above the background */
header, section, footer {
    position: relative;
    z-index: 1;
}

/* Make section backgrounds semi-transparent so 3D bg shows through */
.hero,
.services,
.achievements,
.products,
.about,
.contact,
footer {
    background: transparent !important;
}

.hero::before,
.services::before,
.achievements::before,
.products::before,
.about::before,
.contact::before {
    background: transparent !important;
}

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

/* ============================================
   3D HEADER WITH GLASSMORPHISM
   ============================================ */

header {
    height: 85px;
    display: flex;
    align-items: center;
    background: rgba(22, 24, 39, 0.7);
    backdrop-filter: blur(20px) saturate(180%);
    -webkit-backdrop-filter: blur(20px) saturate(180%);
    padding: 0;
    position: fixed;
    width: 100%;
    top: 0;
    z-index: 1000;
    border-bottom: 1px solid rgba(99, 102, 241, 0.1);
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.4);
    transform-style: preserve-3d;
}

header::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 1px;
    background: linear-gradient(90deg, transparent, rgba(99, 102, 241, 0.5), transparent);
}

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

.logo {
    height: 100%;
    display: flex;
    align-items: center;
    padding: 0.5rem 0;
    transform-style: preserve-3d;
}

.logo img {
    height: 50px;
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    filter: drop-shadow(0 4px 8px rgba(99, 102, 241, 0.3));
}

.logo img:hover {
    transform: translateY(-3px) scale(1.05);
    filter: drop-shadow(0 8px 16px rgba(99, 102, 241, 0.5));
}

.nav-links {
    display: flex;
    list-style: none;
    gap: 3rem;
    margin: 0;
    padding: 0;
}

.nav-links a {
    color: var(--text-color);
    text-decoration: none;
    font-weight: 600;
    font-size: 0.95rem;
    letter-spacing: 0.5px;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    position: relative;
    padding: 0.5rem 0;
    text-transform: uppercase;
}

.mobile-menu {
    position: relative;
    display: flex;
    align-items: center;
    gap: 0;
}

.mobile-menu .close-menu {
    display: none;
    position: absolute;
    right: 0;
    width: 30px;
    height: 30px;
    align-items: center;
    justify-content: center;
    background: transparent;
    border: none;
    color: #fff;
    font-size: 1.5rem;
    cursor: pointer;
    transition: all 0.3s ease;
    z-index: 1002;
}

.mobile-menu .close-menu:hover {
    transform: rotate(90deg);
    color: #6366f1;
}

.nav-links a::before {
    content: '';
    position: absolute;
    bottom: 0;
    left: 50%;
    width: 0;
    height: 2px;
    background: var(--gradient-primary);
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    transform: translateX(-50%);
}

.nav-links a::after {
    content: '';
    position: absolute;
    bottom: -2px;
    left: 50%;
    width: 0;
    height: 2px;
    background: var(--gradient-primary);
    filter: blur(4px);
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    transform: translateX(-50%);
}

.nav-links a:hover {
    color: #fff;
    text-shadow: 0 0 20px rgba(99, 102, 241, 0.5);
}

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

/* ============================================
   3D HERO SECTION WITH PARALLAX
   ============================================ */

.hero {
    min-height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;
    background: var(--gradient-dark);
    position: relative;
    overflow: hidden;
    padding: 0;
    perspective: 1000px;
}

/* 3D Floating Orbs */
.hero::before,
.hero::after {
    content: '';
    position: absolute;
    border-radius: 50%;
    filter: blur(60px);
    opacity: 0.6;
    animation: float3D 20s ease-in-out infinite;
}

.hero::before {
    width: 500px;
    height: 500px;
    background: radial-gradient(circle, rgba(99, 102, 241, 0.4), transparent);
    top: -250px;
    left: -250px;
    animation-delay: 0s;
}

.hero::after {
    width: 600px;
    height: 600px;
    background: radial-gradient(circle, rgba(139, 92, 246, 0.3), transparent);
    bottom: -300px;
    right: -300px;
    animation-delay: -10s;
}

@keyframes float3D {
    0%, 100% {
        transform: translate(0, 0) scale(1);
    }
    25% {
        transform: translate(50px, -50px) scale(1.1);
    }
    50% {
        transform: translate(-30px, 30px) scale(0.9);
    }
    75% {
        transform: translate(40px, 20px) scale(1.05);
    }
}

.hero .container {
    position: relative;
    z-index: 1;
    max-width: 1000px;
    padding-top: 85px;
    transform-style: preserve-3d;
}

.hero h1 {
    font-size: 5rem;
    line-height: 1.1;
    margin-bottom: 2rem;
    font-weight: 800;
    background: linear-gradient(135deg, #fff 0%, #6366f1 50%, #ec4899 100%);
    -webkit-background-clip: text;
    background-clip: text;
    -webkit-text-fill-color: transparent;
    animation: heroTitle 1s cubic-bezier(0.4, 0, 0.2, 1) forwards;
    text-shadow: 0 10px 30px rgba(99, 102, 241, 0.3);
    transform-style: preserve-3d;
    letter-spacing: -2px;
}

@keyframes heroTitle {
    from {
        opacity: 0;
        transform: translateY(50px) rotateX(20deg);
    }
    to {
        opacity: 1;
        transform: translateY(0) rotateX(0);
    }
}

.hero p {
    font-size: 1.4rem;
    max-width: 700px;
    margin: 0 auto 3rem;
    color: var(--text-secondary);
    animation: heroSubtitle 1s cubic-bezier(0.4, 0, 0.2, 1) 0.2s backwards;
    line-height: 1.8;
}

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

/* 3D CTA Button */
.cta-button {
    display: inline-block;
    padding: 1.2rem 3rem;
    background: var(--gradient-primary);
    color: var(--text-color);
    text-decoration: none;
    border-radius: 50px;
    font-weight: 700;
    font-size: 1.1rem;
    letter-spacing: 1px;
    text-transform: uppercase;
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    animation: heroCTA 1s cubic-bezier(0.4, 0, 0.2, 1) 0.4s backwards;
    box-shadow: var(--shadow-3d-lg), var(--shadow-glow);
    position: relative;
    overflow: hidden;
    transform-style: preserve-3d;
}

@keyframes heroCTA {
    from {
        opacity: 0;
        transform: translateY(30px) scale(0.9);
    }
    to {
        opacity: 1;
        transform: translateY(0) scale(1);
    }
}

.cta-button::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.3), transparent);
    transition: left 0.6s;
}

.cta-button:hover::before {
    left: 100%;
}

.cta-button:hover {
    transform: translateY(-5px) scale(1.05);
    box-shadow: var(--shadow-3d-xl), var(--shadow-glow-hover);
}

.cta-button:active {
    transform: translateY(-2px) scale(1.02);
}

/* ============================================
   3D SERVICE CARDS
   ============================================ */

.services {
    padding: var(--section-padding);
    background: linear-gradient(180deg, var(--primary-dark) 0%, var(--primary-color) 100%);
    position: relative;
}

.services h2 {
    text-align: center;
    margin-bottom: 5rem;
    font-size: 3.5rem;
    font-weight: 800;
    background: linear-gradient(135deg, #fff 0%, #6366f1 100%);
    -webkit-background-clip: text;
    background-clip: text;
    -webkit-text-fill-color: transparent;
    letter-spacing: -1px;
}

.services-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
    gap: 2.5rem;
    max-width: 1400px;
    margin: 0 auto;
    perspective: 1000px;
}

.service-card {
    min-height: 320px;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    padding: 3rem 2.5rem;
    background: rgba(30, 33, 57, 0.6);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    border-radius: 24px;
    border: 1px solid rgba(99, 102, 241, 0.2);
    transition: all 2s cubic-bezier(0.4, 0, 0.2, 1);
    position: relative;
    overflow: hidden;
    transform-style: preserve-3d;
    cursor: pointer;
    will-change: transform;
    backface-visibility: hidden;
    -webkit-backface-visibility: hidden;
}

.service-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: var(--gradient-primary);
    opacity: 0;
    transition: opacity 0.5s cubic-bezier(0.4, 0, 0.2, 1);
    z-index: 0;
}

.service-card::after {
    content: '';
    position: absolute;
    top: -50%;
    left: -50%;
    width: 200%;
    height: 200%;
    background: radial-gradient(circle, rgba(255, 255, 255, 0.1) 0%, transparent 70%);
    opacity: 0;
    transition: all 0.5s cubic-bezier(0.4, 0, 0.2, 1);
    pointer-events: none;
}

.service-card:hover {
    transform: translateY(-15px) rotateX(5deg);
    box-shadow: var(--shadow-3d-xl), 0 0 60px rgba(99, 102, 241, 0.4);
    border-color: rgba(99, 102, 241, 0.6);
}

.service-card:hover::before {
    opacity: 0.1;
}

.service-card:hover::after {
    opacity: 1;
    transform: translate(var(--mouse-x, 0), var(--mouse-y, 0));
}

.service-card i {
    font-size: 3.5rem;
    margin-bottom: 2rem;
    background: var(--gradient-primary);
    -webkit-background-clip: text;
    background-clip: text;
    -webkit-text-fill-color: transparent;
    animation: iconFloat 3s ease-in-out infinite;
    position: relative;
    z-index: 1;
    filter: drop-shadow(0 4px 12px rgba(99, 102, 241, 0.4));
}

@keyframes iconFloat {
    0%, 100% {
        transform: translateY(0) scale(1);
    }
    50% {
        transform: translateY(-10px) scale(1.05);
    }
}

.service-card h3 {
    font-size: 1.4rem;
    margin-bottom: 1.5rem;
    position: relative;
    z-index: 1;
    font-weight: 700;
    letter-spacing: 0.5px;
}

.service-card p {
    text-align: center;
    line-height: 1.7;
    color: var(--text-secondary);
    position: relative;
    z-index: 1;
    font-size: 1rem;
}

/* ============================================
   3D ACHIEVEMENTS SECTION
   ============================================ */

.achievements {
    padding: var(--section-padding);
    background: var(--primary-color);
    position: relative;
    overflow: hidden;
}

.achievements::before {
    content: '';
    position: absolute;
    top: 50%;
    left: 50%;
    width: 800px;
    height: 800px;
    background: radial-gradient(circle, rgba(99, 102, 241, 0.15), transparent);
    transform: translate(-50%, -50%);
    filter: blur(80px);
    animation: pulse3D 8s ease-in-out infinite;
}

@keyframes pulse3D {
    0%, 100% {
        transform: translate(-50%, -50%) scale(1);
        opacity: 0.5;
    }
    50% {
        transform: translate(-50%, -50%) scale(1.3);
        opacity: 0.8;
    }
}

.achievements h2 {
    text-align: center;
    margin-bottom: 5rem;
    font-size: 3.5rem;
    font-weight: 800;
    background: linear-gradient(135deg, #fff 0%, #8b5cf6 100%);
    -webkit-background-clip: text;
    background-clip: text;
    -webkit-text-fill-color: transparent;
    position: relative;
    z-index: 1;
    letter-spacing: -1px;
}

.achievements-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 3rem;
    max-width: 1100px;
    margin: 0 auto;
    position: relative;
    z-index: 1;
}

.achievement-card {
    text-align: center;
    padding: 4rem 2rem;
    background: rgba(30, 33, 57, 0.5);
    backdrop-filter: blur(20px);
    border-radius: 24px;
    border: 1px solid rgba(99, 102, 241, 0.2);
    position: relative;
    overflow: hidden;
    transition: all 0.5s cubic-bezier(0.4, 0, 0.2, 1);
    transform-style: preserve-3d;
    cursor: pointer;
    will-change: transform;
    backface-visibility: hidden;
    -webkit-backface-visibility: hidden;
}

.achievement-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: var(--gradient-primary);
    opacity: 0;
    transition: opacity 0.5s;
}

.achievement-card:hover {
    transform: translateY(-10px) scale(1.05);
    box-shadow: var(--shadow-3d-xl), 0 0 50px rgba(99, 102, 241, 0.3);
    border-color: rgba(99, 102, 241, 0.5);
}

.achievement-card:hover::before {
    opacity: 0.1;
}

.achievement-number {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
    margin-bottom: 1rem;
}

.achievement-card h3 {
    font-size: 4.5rem;
    margin: 0;
    background: var(--gradient-primary);
    -webkit-background-clip: text;
    background-clip: text;
    -webkit-text-fill-color: transparent;
    position: relative;
    display: inline-block;
    font-weight: 900;
    filter: drop-shadow(0 4px 20px rgba(99, 102, 241, 0.5));
    animation: counterGlow 2s ease-in-out infinite;
}

.achievement-card .plus-sign {
    font-size: 4.5rem;
    font-weight: 900;
    background: var(--gradient-primary);
    -webkit-background-clip: text;
    background-clip: text;
    -webkit-text-fill-color: transparent;
    filter: drop-shadow(0 4px 20px rgba(99, 102, 241, 0.5));
    animation: counterGlow 2s ease-in-out infinite;
}

@keyframes counterGlow {
    0%, 100% {
        filter: drop-shadow(0 4px 20px rgba(99, 102, 241, 0.5));
    }
    50% {
        filter: drop-shadow(0 4px 30px rgba(99, 102, 241, 0.8));
    }
}

.achievement-card p {
    font-size: 1.3rem;
    color: var(--text-secondary);
    position: relative;
    z-index: 1;
    font-weight: 500;
}

/* ============================================
   3D PRODUCTS SECTION
   ============================================ */

.products {
    padding: var(--section-padding);
    background: linear-gradient(180deg, var(--primary-color) 0%, var(--secondary-color) 100%);
    position: relative;
    overflow: hidden;
}

.products h2 {
    text-align: center;
    margin-bottom: 1.5rem;
    font-size: 3.5rem;
    font-weight: 800;
    background: linear-gradient(135deg, #fff 0%, #ec4899 100%);
    -webkit-background-clip: text;
    background-clip: text;
    -webkit-text-fill-color: transparent;
    position: relative;
    z-index: 1;
    letter-spacing: -1px;
}

.products > p {
    text-align: center;
    margin-bottom: 7rem;
    font-size: 1.2rem;
    color: var(--text-secondary);
    max-width: 700px;
    margin-left: auto;
    margin-right: auto;
    position: relative;
    z-index: 1;
}

.products-showcase {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 4rem;
    align-items: center;
    max-width: 1200px;
    margin: 0 auto 5rem;
    position: relative;
    z-index: 1;
}

.product-card {
    background: rgba(30, 33, 57, 0.6);
    backdrop-filter: blur(30px);
    border-radius: 32px;
    padding: 4rem;
    border: 1px solid rgba(99, 102, 241, 0.3);
    position: relative;
    overflow: visible;
    transition: all 0.6s cubic-bezier(0.4, 0, 0.2, 1);
    transform-style: preserve-3d;
    cursor: pointer;
    will-change: transform;
    backface-visibility: hidden;
    -webkit-backface-visibility: hidden;
}

.product-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: conic-gradient(from 0deg, transparent, rgba(99, 102, 241, 0.2), transparent 30%);
    border-radius: 32px;
    opacity: 0;
    transition: opacity 0.6s;
    overflow: hidden;
    z-index: 0;
}

@keyframes rotate3D {
    from {
        transform: rotate(0deg);
    }
    to {
        transform: rotate(360deg);
    }
}

.product-card:hover {
    transform: translateY(-15px) rotateY(5deg);
    box-shadow: var(--shadow-3d-xl), 0 0 80px rgba(99, 102, 241, 0.4);
    border-color: rgba(99, 102, 241, 0.6);
}

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

.product-icon {
    width: 90px;
    height: 90px;
    background: var(--gradient-primary);
    border-radius: 24px;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 2.5rem;
    position: relative;
    animation: iconFloat 4s ease-in-out infinite;
    box-shadow: var(--shadow-3d-lg), 0 0 40px rgba(99, 102, 241, 0.5);
    z-index: 2;
}

.product-icon i {
    font-size: 2.5rem;
    color: var(--text-color);
    filter: drop-shadow(0 2px 4px rgba(0, 0, 0, 0.3));
}

.product-card h3 {
    font-size: 2.2rem;
    margin-bottom: 1.5rem;
    background: var(--gradient-primary);
    -webkit-background-clip: text;
    background-clip: text;
    -webkit-text-fill-color: transparent;
    font-weight: 800;
    letter-spacing: -0.5px;
    position: relative;
    z-index: 2;
}

.product-card p {
    text-align: left;
    margin-bottom: 2.5rem;
    color: var(--text-secondary);
    font-size: 1.05rem;
    line-height: 1.8;
    position: relative;
    z-index: 2;
}

.product-features {
    display: flex;
    flex-wrap: wrap;
    gap: 1rem;
    margin-bottom: 3rem;
    position: relative;
    z-index: 2;
}

.product-features span {
    background: rgba(99, 102, 241, 0.15);
    border: 1px solid rgba(99, 102, 241, 0.4);
    border-radius: 30px;
    padding: 0.6rem 1.3rem;
    font-size: 0.9rem;
    color: #a5b4fc;
    display: flex;
    align-items: center;
    gap: 0.6rem;
    font-weight: 600;
    transition: all 0.3s;
}

.product-features span:hover {
    background: rgba(99, 102, 241, 0.25);
    transform: translateY(-2px);
}

.product-button {
    display: inline-flex;
    align-items: center;
    gap: 0.8rem;
    background: var(--gradient-primary);
    color: var(--text-color);
    text-decoration: none;
    padding: 1.2rem 2.5rem;
    border-radius: 50px;
    font-weight: 700;
    font-size: 1rem;
    letter-spacing: 0.5px;
    text-transform: uppercase;
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    position: relative;
    overflow: hidden;
    box-shadow: var(--shadow-3d-md), 0 0 30px rgba(99, 102, 241, 0.4);
    z-index: 2;
}

.product-button::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.3), transparent);
    transition: left 0.6s;
}

.product-button:hover::before {
    left: 100%;
}

.product-button:hover {
    transform: translateY(-3px) scale(1.05);
    box-shadow: var(--shadow-3d-lg), 0 0 50px rgba(99, 102, 241, 0.6);
}

.product-button i {
    transition: transform 0.3s;
}

.product-button:hover i {
    transform: translateX(5px);
}

/* Product Visual Stack */
.product-visual {
    position: relative;
    height: 450px;
    display: flex;
    align-items: center;
    justify-content: center;
    perspective: 1000px;
    padding: 0 1rem;
}

.product-stack {
    position: relative;
    width: 100%;
    max-width: 500px;
    height: 100%;
    display: flex;
    flex-direction: column;
    justify-content: center;
    gap: 1.5rem;
    transform-style: preserve-3d;
}

.product-item {
    background: rgba(30, 33, 57, 0.7);
    backdrop-filter: blur(15px);
    border: 1px solid rgba(99, 102, 241, 0.3);
    border-radius: 20px;
    padding: 1.8rem;
    display: flex;
    align-items: center;
    gap: 1.2rem;
    transition: all 0.5s cubic-bezier(0.4, 0, 0.2, 1);
    animation: slideInRight 0.8s cubic-bezier(0.4, 0, 0.2, 1) backwards;
    transform-style: preserve-3d;
    cursor: pointer;
}

.product-item:nth-child(1) { animation-delay: 0.1s; }
.product-item:nth-child(2) { animation-delay: 0.2s; }
.product-item:nth-child(3) { animation-delay: 0.3s; }
.product-item:nth-child(4) { animation-delay: 0.4s; }

@keyframes slideInRight {
    from {
        opacity: 0;
        transform: translateX(80px) rotateY(-20deg);
    }
    to {
        opacity: 1;
        transform: translateX(0) rotateY(0);
    }
}

.product-item:hover {
    transform: translateX(15px) translateZ(20px);
    background: rgba(99, 102, 241, 0.15);
    border-color: rgba(99, 102, 241, 0.6);
    box-shadow: var(--shadow-3d-md), 0 0 30px rgba(99, 102, 241, 0.3);
}

.product-item i {
    font-size: 1.8rem;
    background: var(--gradient-primary);
    -webkit-background-clip: text;
    background-clip: text;
    -webkit-text-fill-color: transparent;
    width: 45px;
    text-align: center;
}

.product-item span {
    font-weight: 600;
    color: var(--text-color);
    font-size: 1.05rem;
}

.glow-effect {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 400px;
    height: 400px;
    background: radial-gradient(circle, rgba(99, 102, 241, 0.4) 0%, transparent 70%);
    filter: blur(60px);
    opacity: 0.5;
    animation: glowPulse 6s ease-in-out infinite;
    pointer-events: none;
}

@keyframes glowPulse {
    0%, 100% {
        transform: translate(-50%, -50%) scale(1);
        opacity: 0.5;
    }
    50% {
        transform: translate(-50%, -50%) scale(1.3);
        opacity: 0.8;
    }
}

/* Products Stats */
.products-stats {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 2.5rem;
    max-width: 900px;
    margin: 0 auto;
    position: relative;
    z-index: 1;
}

.stat-item {
    text-align: center;
    padding: 2.5rem 1.5rem;
    background: rgba(30, 33, 57, 0.5);
    backdrop-filter: blur(20px);
    border-radius: 20px;
    border: 1px solid rgba(99, 102, 241, 0.2);
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    transform-style: preserve-3d;
    cursor: pointer;
    will-change: transform;
    backface-visibility: hidden;
    -webkit-backface-visibility: hidden;
}

.stat-item:hover {
    transform: translateY(-8px) rotateX(5deg);
    background: rgba(30, 33, 57, 0.8);
    border-color: rgba(99, 102, 241, 0.5);
    box-shadow: var(--shadow-3d-lg), 0 0 40px rgba(99, 102, 241, 0.3);
}

.stat-item h4 {
    font-size: 3rem;
    margin-bottom: 0.5rem;
    background: var(--gradient-primary);
    -webkit-background-clip: text;
    background-clip: text;
    -webkit-text-fill-color: transparent;
    font-weight: 900;
    filter: drop-shadow(0 2px 10px rgba(99, 102, 241, 0.4));
}

.stat-item p {
    margin: 0;
    color: var(--text-secondary);
    font-size: 0.95rem;
    font-weight: 500;
}

/* ============================================
   3D ABOUT SECTION
   ============================================ */

.about {
    padding: var(--section-padding);
    background: var(--gradient-dark);
    position: relative;
    overflow: hidden;
}

.about::before {
    content: '';
    position: absolute;
    top: 0;
    right: 0;
    width: 600px;
    height: 600px;
    background: radial-gradient(circle, rgba(139, 92, 246, 0.2), transparent);
    filter: blur(80px);
    animation: float3D 15s ease-in-out infinite;
}

.about h2 {
    font-size: 3.5rem;
    margin-bottom: 2rem;
    background: linear-gradient(135deg, #fff 0%, #8b5cf6 100%);
    -webkit-background-clip: text;
    background-clip: text;
    -webkit-text-fill-color: transparent;
    position: relative;
    display: inline-block;
    font-weight: 800;
    letter-spacing: -1px;
}

.about h2::after {
    content: '';
    position: absolute;
    bottom: -15px;
    left: 0;
    width: 80px;
    height: 4px;
    background: var(--gradient-primary);
    border-radius: 2px;
    box-shadow: 0 0 20px rgba(99, 102, 241, 0.6);
}

.about h3 {
    font-size: 2rem;
    margin: 3rem 0 1.5rem;
    background: var(--gradient-primary);
    -webkit-background-clip: text;
    background-clip: text;
    -webkit-text-fill-color: transparent;
    font-weight: 700;
}

.about p {
    margin-bottom: 1.8rem;
    color: var(--text-secondary);
    font-size: 1.1rem;
    line-height: 1.9;
}

.core-values-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 2.5rem;
    margin: 3rem 0;
}

.value-item {
    background: rgba(30, 33, 57, 0.6);
    backdrop-filter: blur(20px);
    padding: 3rem 2rem;
    border-radius: 24px;
    border: 1px solid rgba(99, 102, 241, 0.2);
    text-align: center;
    transition: all 0.5s cubic-bezier(0.4, 0, 0.2, 1);
    position: relative;
    overflow: hidden;
    transform-style: preserve-3d;
    cursor: pointer;
    will-change: transform;
    backface-visibility: hidden;
    -webkit-backface-visibility: hidden;
}

.value-item::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: var(--gradient-primary);
    opacity: 0;
    transition: opacity 0.5s;
}

.value-item:hover {
    transform: translateY(-10px) rotateX(5deg);
    box-shadow: var(--shadow-3d-lg), 0 0 40px rgba(99, 102, 241, 0.3);
    border-color: rgba(99, 102, 241, 0.5);
}

.value-item:hover::before {
    opacity: 0.1;
}

.value-item i {
    font-size: 3rem;
    background: var(--gradient-primary);
    -webkit-background-clip: text;
    background-clip: text;
    -webkit-text-fill-color: transparent;
    margin-bottom: 1.5rem;
    position: relative;
    z-index: 1;
    filter: drop-shadow(0 4px 12px rgba(99, 102, 241, 0.4));
}

.value-item h4 {
    font-size: 1.5rem;
    margin-bottom: 1rem;
    color: var(--text-color);
    position: relative;
    z-index: 1;
    font-weight: 700;
}

.value-item p {
    font-size: 1rem;
    color: var(--text-secondary);
    margin: 0;
    position: relative;
    z-index: 1;
    line-height: 1.7;
}

.choose-us-list {
    list-style: none;
    padding: 0;
    margin: 2.5rem 0;
}

.choose-us-list li {
    margin-bottom: 1.5rem;
    padding-left: 2.5rem;
    position: relative;
    color: var(--text-secondary);
    font-size: 1.05rem;
    line-height: 1.8;
}

.choose-us-list li::before {
    content: '→';
    position: absolute;
    left: 0;
    background: var(--gradient-primary);
    -webkit-background-clip: text;
    background-clip: text;
    -webkit-text-fill-color: transparent;
    font-weight: bold;
    font-size: 1.3rem;
}

.choose-us-list li strong {
    color: var(--text-color);
    margin-right: 0.5rem;
    font-weight: 700;
}

/* ============================================
   3D CONTACT SECTION
   ============================================ */

.contact {
    padding: var(--section-padding);
    background: linear-gradient(180deg, var(--secondary-color) 0%, var(--primary-dark) 100%);
    text-align: center;
    position: relative;
    overflow: hidden;
}

.contact::before {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 500px;
    height: 500px;
    background: radial-gradient(circle, rgba(236, 72, 153, 0.2), transparent);
    filter: blur(80px);
}

.contact h2 {
    font-size: 3.5rem;
    margin-bottom: 1.5rem;
    background: linear-gradient(135deg, #fff 0%, #ec4899 100%);
    -webkit-background-clip: text;
    background-clip: text;
    -webkit-text-fill-color: transparent;
    font-weight: 800;
    letter-spacing: -1px;
}

.contact > p {
    font-size: 1.2rem;
    margin-bottom: 4rem;
    max-width: 700px;
    margin-left: auto;
    margin-right: auto;
    color: var(--text-secondary);
}

.contact-form {
    max-width: 600px;
    margin: 0 auto;
    padding: 4rem;
    background: rgba(30, 33, 57, 0.6);
    backdrop-filter: blur(30px);
    border-radius: 32px;
    box-shadow: var(--shadow-3d-xl), 0 0 60px rgba(99, 102, 241, 0.2);
    border: 1px solid rgba(99, 102, 241, 0.3);
    position: relative;
    overflow: hidden;
    transform-style: preserve-3d;
}

.contact-form::before {
    content: '';
    position: absolute;
    top: -50%;
    left: -50%;
    width: 200%;
    height: 200%;
    background: conic-gradient(from 0deg, transparent, rgba(99, 102, 241, 0.1), transparent 30%);
    animation: rotate3D 10s linear infinite;
}

.form-group {
    margin-bottom: 2rem;
    position: relative;
    z-index: 1;
}

.form-group input,
.form-group textarea {
    width: 100%;
    padding: 1.2rem 1.8rem;
    background: rgba(10, 14, 39, 0.6);
    border: 1px solid rgba(99, 102, 241, 0.3);
    border-radius: 16px;
    color: var(--text-color);
    font-size: 1rem;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    font-family: inherit;
}

.form-group input {
    height: 56px;
}

.form-group textarea {
    min-height: 160px;
    resize: vertical;
}

.form-group input:focus,
.form-group textarea:focus {
    outline: none;
    border-color: rgba(99, 102, 241, 0.8);
    box-shadow: 0 0 0 3px rgba(99, 102, 241, 0.2),
                0 0 30px rgba(99, 102, 241, 0.3);
    background: rgba(10, 14, 39, 0.8);
    transform: translateY(-2px);
}

.form-group input::placeholder,
.form-group textarea::placeholder {
    color: rgba(148, 163, 184, 0.6);
}

.submit-button {
    width: 100%;
    height: 60px;
    padding: 0 2.5rem;
    background: var(--gradient-primary);
    color: var(--text-color);
    border: none;
    border-radius: 16px;
    font-size: 1.1rem;
    font-weight: 700;
    letter-spacing: 1px;
    text-transform: uppercase;
    cursor: pointer;
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    position: relative;
    overflow: hidden;
    box-shadow: var(--shadow-3d-md), 0 0 40px rgba(99, 102, 241, 0.4);
    z-index: 1;
}

.submit-button::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.3), transparent);
    transition: left 0.6s;
}

/* Form message styles */
.form-message {
    padding: 1.2rem 1.8rem;
    border-radius: 12px;
    margin-bottom: 2rem;
    font-size: 1rem;
    font-weight: 500;
    text-align: center;
    animation: slideDown 0.4s ease-out;
    position: relative;
    z-index: 2;
}

.form-message.success {
    background: rgba(34, 197, 94, 0.15);
    border: 1px solid rgba(34, 197, 94, 0.4);
    color: #4ade80;
    box-shadow: 0 0 20px rgba(34, 197, 94, 0.2);
}

.form-message.error {
    background: rgba(239, 68, 68, 0.15);
    border: 1px solid rgba(239, 68, 68, 0.4);
    color: #f87171;
    box-shadow: 0 0 20px rgba(239, 68, 68, 0.2);
}

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

.submit-button:hover::before {
    left: 100%;
}

.submit-button:hover {
    transform: translateY(-3px) scale(1.02);
    box-shadow: var(--shadow-3d-lg), 0 0 60px rgba(99, 102, 241, 0.6);
}

.submit-button:active {
    transform: translateY(-1px) scale(1);
}

/* ============================================
   3D FOOTER
   ============================================ */

footer {
    padding: 6rem 0 2.5rem;
    background: linear-gradient(to bottom, var(--primary-dark), #050814);
    position: relative;
    overflow: hidden;
}

footer::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 2px;
    background: linear-gradient(90deg, 
        transparent 0%, 
        rgba(99, 102, 241, 0.5) 50%, 
        transparent 100%
    );
    box-shadow: 0 0 20px rgba(99, 102, 241, 0.5);
}

.footer-grid {
    display: grid;
    grid-template-columns: 1.5fr 1fr 1fr;
    gap: 5rem;
    margin-bottom: 4rem;
}

.footer-section h4 {
    font-size: 1.3rem;
    margin-bottom: 2rem;
    background: var(--gradient-primary);
    -webkit-background-clip: text;
    background-clip: text;
    -webkit-text-fill-color: transparent;
    position: relative;
    display: inline-block;
    font-weight: 700;
}

.footer-section h4::after {
    content: '';
    position: absolute;
    bottom: -8px;
    left: 0;
    width: 50px;
    height: 3px;
    background: var(--gradient-primary);
    border-radius: 2px;
    box-shadow: 0 0 15px rgba(99, 102, 241, 0.5);
}

.footer-section p,
.footer-section li {
    margin-bottom: 1rem;
    color: var(--text-secondary);
    transition: all 0.3s;
    font-size: 1rem;
}

.footer-section li:hover {
    color: var(--text-color);
    transform: translateX(5px);
}

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

.social-links a {
    width: 50px;
    height: 50px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
    background: rgba(99, 102, 241, 0.15);
    border: 1px solid rgba(99, 102, 241, 0.3);
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    position: relative;
    overflow: hidden;
}

.social-links a::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: var(--gradient-primary);
    opacity: 0;
    transition: opacity 0.4s;
}

.social-links a:hover {
    transform: translateY(-5px) scale(1.1);
    box-shadow: var(--shadow-3d-md), 0 0 30px rgba(99, 102, 241, 0.5);
    border-color: rgba(99, 102, 241, 0.6);
}

.social-links a:hover::before {
    opacity: 1;
}

.social-links a i {
    position: relative;
    z-index: 1;
    font-size: 1.3rem;
    color: #fff;
    -webkit-text-fill-color: #fff;
}

.footer-bottom {
    text-align: center;
    padding-top: 3rem;
    border-top: 1px solid rgba(99, 102, 241, 0.1);
    position: relative;
}

.footer-bottom::before {
    content: '';
    position: absolute;
    top: -1px;
    left: 50%;
    transform: translateX(-50%);
    width: 300px;
    height: 1px;
    background: linear-gradient(90deg, 
        transparent 0%, 
        rgba(99, 102, 241, 0.8) 50%, 
        transparent 100%
    );
    box-shadow: 0 0 20px rgba(99, 102, 241, 0.5);
}

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

/* ============================================
   ANIMATION UTILITIES
   ============================================ */

.fade-in {
    opacity: 0;
    transform: translateY(40px) scale(0.97);
    transition: opacity 1.5s cubic-bezier(0.4, 0, 0.2, 1),
                transform 1.5s cubic-bezier(0.4, 0, 0.2, 1);
}

.fade-in.visible {
    opacity: 1;
    transform: translateY(0) scale(1);
}

/* Staggered scroll animations for service cards */
.services-grid .service-card.fade-in:nth-child(1) { transition-delay: 0.3s; }
.services-grid .service-card.fade-in:nth-child(2) { transition-delay: 0.6s; }
.services-grid .service-card.fade-in:nth-child(3) { transition-delay: 0.9s; }
.services-grid .service-card.fade-in:nth-child(4) { transition-delay: 1.2s; }
.services-grid .service-card.fade-in:nth-child(5) { transition-delay: 1.5s; }
.services-grid .service-card.fade-in:nth-child(6) { transition-delay: 1.8s; }
.services-grid .service-card.fade-in:nth-child(7) { transition-delay: 2.1s; }
.services-grid .service-card.fade-in:nth-child(8) { transition-delay: 2.4s; }

/* Slide-in for about section headings */
.about h3 {
    opacity: 0;
    transform: translateY(20px);
    transition: opacity 1.3s ease, transform 1.3s ease;
    will-change: opacity, transform;
}
.about h3.visible {
    opacity: 1;
    transform: translateY(0);
}

/* About paragraphs - simple fade up */
.about p.fade-in {
    transform: translateY(20px);
    opacity: 0;
    transition: opacity 1.3s ease, transform 1.3s ease;
    will-change: opacity, transform;
}
.about p.fade-in.visible {
    opacity: 1;
    transform: translateY(0);
}

/* About choose-us-list - slide up */
.choose-us-list.fade-in {
    transform: translateY(30px);
    opacity: 0;
    transition: opacity 1.4s ease, transform 1.4s ease;
}
.choose-us-list.fade-in.visible {
    opacity: 1;
    transform: translateY(0);
}

/* Simple fade-up for value items */
.value-item.fade-in {
    transform: translateY(30px);
    will-change: opacity, transform;
    transition: opacity 1.3s ease, transform 1.3s ease;
}
.value-item.fade-in.visible {
    transform: translateY(0);
}
.core-values-grid .value-item.fade-in:nth-child(1) { transition-delay: 0.2s; }
.core-values-grid .value-item.fade-in:nth-child(2) { transition-delay: 0.45s; }
.core-values-grid .value-item.fade-in:nth-child(3) { transition-delay: 0.7s; }
.core-values-grid .value-item.fade-in:nth-child(4) { transition-delay: 0.95s; }

/* Staggered product items */
.product-stack .product-item.fade-in:nth-child(1) { transition-delay: 0.05s; }
.product-stack .product-item.fade-in:nth-child(2) { transition-delay: 0.15s; }
.product-stack .product-item.fade-in:nth-child(3) { transition-delay: 0.25s; }
.product-stack .product-item.fade-in:nth-child(4) { transition-delay: 0.35s; }

.product-item.fade-in {
    transform: translateY(30px);
    opacity: 0;
    transition: opacity 1.2s ease, transform 1.2s ease;
    will-change: opacity, transform;
}
.product-item.fade-in.visible {
    opacity: 1;
    transform: translateY(0);
}

/* Staggered stat items */
.products-stats .stat-item.fade-in:nth-child(1) { transition-delay: 0.2s; }
.products-stats .stat-item.fade-in:nth-child(2) { transition-delay: 0.4s; }
.products-stats .stat-item.fade-in:nth-child(3) { transition-delay: 0.6s; }
.products-stats .stat-item.fade-in:nth-child(4) { transition-delay: 0.8s; }

.stat-item.fade-in {
    transform: translateY(25px);
    opacity: 0;
    transition: opacity 1.2s ease, transform 1.2s ease;
    will-change: opacity, transform;
}
.stat-item.fade-in.visible {
    opacity: 1;
    transform: translateY(0);
}

/* Staggered achievement cards */
.achievements-grid .achievement-card.fade-in:nth-child(1) { transition-delay: 0.3s; }
.achievements-grid .achievement-card.fade-in:nth-child(2) { transition-delay: 0.6s; }
.achievements-grid .achievement-card.fade-in:nth-child(3) { transition-delay: 0.9s; }

.achievement-card.fade-in {
    transform: translateY(30px);
    opacity: 0;
    transition: opacity 1.3s ease, transform 1.3s ease;
    will-change: opacity, transform;
}
.achievement-card.fade-in.visible {
    opacity: 1;
    transform: translateY(0);
}

/* Footer sections staggered */
.footer-grid .footer-section.fade-in:nth-child(1) { transition-delay: 0.2s; }
.footer-grid .footer-section.fade-in:nth-child(2) { transition-delay: 0.5s; }
.footer-grid .footer-section.fade-in:nth-child(3) { transition-delay: 0.8s; }

.footer-section.fade-in {
    transform: translateY(30px);
    opacity: 0;
    transition: opacity 1.4s ease, transform 1.4s ease;
    will-change: opacity, transform;
}
.footer-section.fade-in.visible {
    opacity: 1;
    transform: translateY(0);
}

/* Product card fade-in */
.product-card.fade-in {
    transform: translateY(30px);
    opacity: 0;
    transition: opacity 1.3s ease, transform 1.3s ease;
    will-change: opacity, transform;
}
.product-card.fade-in.visible {
    opacity: 1;
    transform: translateY(0);
}

/* Contact form 3D rise */
.contact-form.fade-in {
    transform: translateY(60px);
    opacity: 0;
    transition: opacity 1.6s ease, transform 1.6s cubic-bezier(0.4, 0, 0.2, 1);
    will-change: opacity, transform;
}
.contact-form.fade-in.visible {
    opacity: 1;
    transform: translateY(0);
}

/* Section headings 3D rise */
.services h2.fade-in,
.achievements h2.fade-in,
.products h2.fade-in,
.contact h2.fade-in {
    transform: translateY(40px);
    opacity: 0;
    transition: opacity 1.4s ease, transform 1.4s cubic-bezier(0.4, 0, 0.2, 1);
    will-change: opacity, transform;
}
.services h2.fade-in.visible,
.achievements h2.fade-in.visible,
.products h2.fade-in.visible,
.contact h2.fade-in.visible {
    opacity: 1;
    transform: translateY(0) rotateX(0deg);
}

/* ============================================
   SCROLL-DRIVEN PARALLAX DEPTH
   ============================================ */

.scroll-3d-section {
    transform-style: preserve-3d;
    perspective: 1200px;
}

/* Heading reveal underline animation */
.services h2.heading-revealed::after,
.achievements h2.heading-revealed::after,
.products h2.heading-revealed::after,
.contact h2.heading-revealed::after {
    content: '';
    display: block;
    width: 80px;
    height: 4px;
    background: var(--gradient-primary);
    border-radius: 2px;
    margin: 1rem auto 0;
    box-shadow: 0 0 20px rgba(99, 102, 241, 0.6);
    animation: underlineGrow 0.6s cubic-bezier(0.4, 0, 0.2, 1) forwards;
}

@keyframes underlineGrow {
    from {
        width: 0;
        opacity: 0;
    }
    to {
        width: 80px;
        opacity: 1;
    }
}

/* Section scroll transitions */
.services,
.achievements,
.products,
.about,
.contact {
    transition: transform 0.15s ease-out;
    will-change: transform;
}

/* Service card hover glow ring */
.service-card.fade-in {
    transform: translateY(40px) scale(0.97) rotateX(5deg);
    transition: opacity 2s cubic-bezier(0.4, 0, 0.2, 1),
                transform 2s cubic-bezier(0.4, 0, 0.2, 1);
}
.service-card.fade-in.visible {
    transform: translateY(0) scale(1) rotateX(0deg);
}

/* ============================================
   MOBILE MENU
   ============================================ */

.mobile-menu {
    display: none;
    cursor: pointer;
    z-index: 1001;
}

.hamburger {
    width: 30px;
    height: 24px;
    position: relative;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
}

.hamburger span {
    width: 100%;
    height: 3px;
    background: var(--text-color);
    border-radius: 3px;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    box-shadow: 0 0 10px rgba(99, 102, 241, 0.3);
}

.hamburger.active span:nth-child(1) {
    transform: translateY(10.5px) rotate(45deg);
}

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

.hamburger.active span:nth-child(3) {
    transform: translateY(-10.5px) rotate(-45deg);
}

.nav-overlay {
    display: none;
    position: fixed;
    top: 85px;
    left: 0;
    width: 100%;
    height: calc(100vh - 85px);
    background: rgba(0, 0, 0, 0.8);
    backdrop-filter: blur(5px);
    z-index: 999;
    opacity: 0;
    transition: opacity 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

.nav-overlay.active {
    display: block;
    opacity: 1;
}

/* ============================================
   RESPONSIVE DESIGN
   ============================================ */

@media (max-width: 1200px) {
    :root {
        --container-padding: 1.5rem;
    }
    
    .services-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (max-width: 992px) {
    .hero h1 {
        font-size: 4rem;
    }
    
    .achievements-grid {
        grid-template-columns: repeat(2, 1fr);
    }
    
    .products-showcase {
        grid-template-columns: 1fr;
        gap: 3rem;
    }
    
    .product-visual {
        height: 350px;
        order: -1;
    }
    
    .products-stats {
        grid-template-columns: repeat(2, 1fr);
    }
    
    .footer-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (max-width: 768px) {
    :root {
        --section-padding: 5rem 0;
    }
    
    .hero h1 {
        font-size: 3rem;
        letter-spacing: -1px;
    }
    
    .hero p {
        font-size: 1.1rem;
    }
    
    .services h2,
    .achievements h2,
    .products h2,
    .about h2,
    .contact h2 {
        font-size: 2.5rem;
    }
    
    .services-grid {
        grid-template-columns: 1fr;
    }
    
    .achievements-grid {
        grid-template-columns: 1fr;
    }
    
    .products-stats {
        grid-template-columns: 1fr;
        gap: 1.5rem;
    }
    
    .footer-grid {
        grid-template-columns: 1fr;
        gap: 3rem;
    }
    
    .contact-form {
        padding: 2.5rem;
    }
    
    .nav-links {
        position: fixed;
        top: 85px;
        left: 0;
        width: auto;
        min-width: 280px;
        max-width: 90%;
        height: calc(100vh - 85px);
        flex-direction: column;
        gap: 0;
        background: #0a0e27;
        backdrop-filter: none;
        -webkit-backdrop-filter: none;
        padding: 2rem 0;
        transform: translateX(-100%);
        transition: transform 0.4s cubic-bezier(0.4, 0, 0.2, 1);
        z-index: 999;
        overflow-y: auto;
        justify-content: flex-start;
        box-shadow: 4px 0 20px rgba(0, 0, 0, 0.5);
    }
    
    .nav-links::before {
        content: '';
        position: absolute;
        top: 0;
        left: 0;
        right: 0;
        bottom: 0;
        background: 
            radial-gradient(circle at 20% 80%, rgba(99, 102, 241, 0.08) 0%, transparent 50%),
            radial-gradient(circle at 80% 20%, rgba(139, 92, 246, 0.06) 0%, transparent 50%);
        pointer-events: none;
    }
    
    .nav-links.active {
        transform: translateX(0);
    }
    
    .nav-links li {
        padding: 0;
        border-bottom: none;
        opacity: 0;
        transform: translateX(-30px);
        transition: opacity 0.3s ease, transform 0.3s ease;
    }
    
    .nav-links.active li {
        opacity: 1;
        transform: translateX(0);
    }
    
    .nav-links.active li:nth-child(1) { transition-delay: 0.05s; }
    .nav-links.active li:nth-child(2) { transition-delay: 0.1s; }
    .nav-links.active li:nth-child(3) { transition-delay: 0.15s; }
    .nav-links.active li:nth-child(4) { transition-delay: 0.2s; }
    .nav-links.active li:nth-child(5) { transition-delay: 0.25s; }
    
    .mobile-menu .hamburger {
        display: flex;
    }
    
    .mobile-menu .close-menu {
        display: none;
    }
    
    .mobile-menu.active .hamburger {
        display: none;
    }
    
    .mobile-menu.active .close-menu {
        display: flex;
    }
    
    .nav-links a {
        color: #ffffff !important;
        -webkit-text-fill-color: #ffffff !important;
        font-size: 1.3rem;
        font-weight: 600;
        display: block;
        opacity: 1 !important;
        padding: 1.2rem 2.5rem;
        letter-spacing: 1px;
        position: relative;
        transition: all 0.3s ease;
    }
    
    .nav-links a:hover,
    .nav-links a:active {
        background: rgba(99, 102, 241, 0.1);
        padding-left: 3rem;
    }
    
    .nav-links a::after {
        display: none !important;
    }
    
    .nav-links a::before {
        content: '' !important;
        position: absolute !important;
        left: 0 !important;
        top: 50% !important;
        transform: translateY(-50%) !important;
        width: 4px !important;
        height: 0% !important;
        background: var(--gradient-primary) !important;
        border-radius: 0 4px 4px 0 !important;
        bottom: auto !important;
        filter: none !important;
        transition: height 0.3s ease !important;
    }
    
    .nav-links a:hover::before,
    .nav-links a:active::before {
        height: 60% !important;
    }
    
    .mobile-menu {
        display: flex;
    }
    
    /* Mobile Products Section Fix */
    .products-showcase {
        grid-template-columns: 1fr;
        gap: 2rem;
    }
    
    .product-card {
        padding: 2rem 1.5rem;
    }
    
    .product-card h3 {
        font-size: 1.6rem;
    }
    
    .product-visual {
        height: auto;
        padding: 0;
        order: -1;
    }
    
    .product-stack {
        max-width: 100%;
        gap: 1rem;
    }
    
    .product-item {
        padding: 1.2rem 1rem;
        border-radius: 14px;
    }
    
    .product-item i {
        font-size: 1.4rem;
        width: 36px;
    }
    
    .product-item span {
        font-size: 0.95rem;
    }
    
    .glow-effect {
        display: none;
    }
    
    .product-features {
        flex-direction: column;
        gap: 0.6rem;
    }
    
    .product-button {
        width: 100%;
        justify-content: center;
        padding: 1rem 2rem;
        font-size: 0.9rem;
    }
    
    .core-values-grid {
        grid-template-columns: 1fr 1fr;
    }
}

@media (max-width: 480px) {
    .hero h1 {
        font-size: 2.2rem;
    }
    
    .cta-button {
        padding: 1rem 2rem;
        font-size: 0.95rem;
    }
    
    .service-card,
    .achievement-card {
        padding: 2rem 1.5rem;
    }
    
    .product-card {
        padding: 2rem 1.5rem;
    }
    
    .contact-form {
        padding: 2rem 1.5rem;
    }
    
    .core-values-grid {
        grid-template-columns: 1fr;
    }
    
    .product-icon {
        width: 60px;
        height: 60px;
    }
    
    .product-icon i {
        font-size: 1.8rem;
    }
}

/* ============================================
   ACCESSIBILITY
   ============================================ */

.visually-hidden {
    position: absolute;
    width: 1px;
    height: 1px;
    padding: 0;
    margin: -1px;
    overflow: hidden;
    clip: rect(0, 0, 0, 0);
    white-space: nowrap;
    border-width: 0;
}

/* Reduced motion support */
@media (prefers-reduced-motion: reduce) {
    *,
    *::before,
    *::after {
        animation-duration: 0.01ms !important;
        animation-iteration-count: 1 !important;
        transition-duration: 0.01ms !important;
    }
}
