/* ===== 3D ENHANCEMENTS ===== */

:root {
    --perspective: 1400px;
    --shadow-3d: 0 25px 50px -12px rgba(108, 71, 255, 0.25);
    --shadow-3d-hover: 0 35px 60px -15px rgba(108, 71, 255, 0.35),
                         0 0 0 1px rgba(108, 71, 255, 0.08);
    --glass: rgba(255, 255, 255, 0.72);
    --glass-border: rgba(255, 255, 255, 0.45);
}

/* Animated mesh background */
.mesh-bg {
    position: fixed; inset: 0; z-index: -1; pointer-events: none;
    background:
        radial-gradient(ellipse 80% 50% at 20% -10%, rgba(108, 71, 255, 0.12) 0%, transparent 50%),
        radial-gradient(ellipse 60% 40% at 80% 20%, rgba(236, 72, 153, 0.08) 0%, transparent 50%),
        radial-gradient(ellipse 50% 30% at 50% 80%, rgba(168, 85, 247, 0.06) 0%, transparent 50%),
        var(--bg);
    animation: meshShift 20s ease-in-out infinite alternate;
}
@keyframes meshShift {
    0% { filter: hue-rotate(0deg); }
    100% { filter: hue-rotate(15deg); }
}

/* 3D floating orbs */
.orbs-3d { position: absolute; inset: 0; pointer-events: none; overflow: hidden; }
.orb-3d {
    position: absolute; border-radius: 50%;
    background: var(--accent-gradient);
    opacity: 0.15; filter: blur(1px);
    animation: orbFloat 12s ease-in-out infinite;
    box-shadow: inset -10px -10px 30px rgba(0,0,0,0.2),
                inset 10px 10px 30px rgba(255,255,255,0.3);
}
.orb-1 { width: 120px; height: 120px; top: 15%; right: 10%; animation-delay: 0s; }
.orb-2 { width: 80px; height: 80px; bottom: 25%; left: 8%; animation-delay: -4s; }
.orb-3 { width: 60px; height: 60px; top: 40%; left: 45%; animation-delay: -8s; }
@keyframes orbFloat {
    0%, 100% { transform: translate3d(0, 0, 0) scale(1); }
    33% { transform: translate3d(15px, -25px, 20px) scale(1.05); }
    66% { transform: translate3d(-10px, 15px, -10px) scale(0.95); }
}

/* 3D ring decoration */
.ring-3d {
    position: absolute; width: 350px; height: 350px;
    border: 2px solid rgba(108, 71, 255, 0.15);
    border-radius: 50%; top: 50%; left: 50%;
    transform: translate(-50%, -50%) rotateX(70deg);
    animation: ringSpin 20s linear infinite;
    pointer-events: none;
}
.ring-3d::before {
    content: ''; position: absolute; inset: 20px;
    border: 1px dashed rgba(236, 72, 153, 0.2);
    border-radius: 50%;
}
@keyframes ringSpin { to { transform: translate(-50%, -50%) rotateX(70deg) rotateZ(360deg); } }

/* 3D scene container */
.scene-3d {
    perspective: var(--perspective);
    perspective-origin: 50% 50%;
}
.tilt-3d {
    transform-style: preserve-3d;
    transition: transform 0.15s ease-out, box-shadow 0.4s ease;
    will-change: transform;
}
.tilt-3d-inner { transform: translateZ(30px); }

/* Glass navbar */
.navbar.scrolled {
    background: var(--glass) !important;
    backdrop-filter: blur(24px) saturate(180%);
    -webkit-backdrop-filter: blur(24px) saturate(180%);
    border-bottom: 1px solid var(--glass-border);
    box-shadow: 0 8px 32px rgba(12, 1, 33, 0.08);
}

/* 3D buttons */
.btn-accent {
    transform-style: preserve-3d;
    box-shadow: 0 10px 0 #5535cc, 0 15px 30px rgba(108, 71, 255, 0.4);
    transition: transform 0.2s ease, box-shadow 0.2s ease;
}
.btn-accent:hover {
    transform: translateY(-4px);
    box-shadow: 0 14px 0 #5535cc, 0 20px 40px rgba(108, 71, 255, 0.5);
}
.btn-accent:active {
    transform: translateY(2px);
    box-shadow: 0 4px 0 #5535cc, 0 8px 20px rgba(108, 71, 255, 0.3);
}
.btn-outline {
    transform-style: preserve-3d;
    backdrop-filter: blur(8px);
}
.btn-outline:hover {
    box-shadow: 0 12px 30px rgba(108, 71, 255, 0.15);
    transform: translateY(-4px) translateZ(10px);
}

/* Hero 3D */
.iteck-hero {
    transform-style: preserve-3d;
}
.hero-title {
    text-shadow: 0 2px 40px rgba(108, 71, 255, 0.15);
}
.hero-visual.scene-3d { padding: 3rem; }
.hero-card-main {
    transform: rotateY(-8deg) rotateX(4deg);
    box-shadow: var(--shadow-3d);
    transition: transform 0.6s cubic-bezier(0.4, 0, 0.2, 1), box-shadow 0.6s ease;
    transform-style: preserve-3d;
    position: relative;
}
.hero-card-main::after {
    content: ''; position: absolute; inset: 0; border-radius: inherit;
    background: linear-gradient(135deg, rgba(255,255,255,0.2) 0%, transparent 50%);
    pointer-events: none;
}
.hero-visual:hover .hero-card-main {
    transform: rotateY(-2deg) rotateX(2deg) translateZ(20px);
    box-shadow: var(--shadow-3d-hover);
}
.hero-card-float {
    transform-style: preserve-3d;
    backdrop-filter: blur(12px);
    background: var(--glass);
    border: 1px solid var(--glass-border);
    box-shadow: 0 15px 35px rgba(12, 1, 33, 0.12);
}
.hero-card-1 { transform: translateZ(40px) rotateY(-5deg); }
.hero-card-2 { transform: translateZ(60px) rotateY(5deg); }

/* Trust items 3D pills */
.trust-item {
    background: var(--bg-white); padding: 0.75rem 1.25rem;
    border-radius: 14px; border: 1px solid var(--border);
    box-shadow: 0 4px 15px rgba(12, 1, 33, 0.05);
    transition: var(--transition);
    transform-style: preserve-3d;
}
.trust-item:hover {
    transform: translateY(-4px) translateZ(10px);
    box-shadow: var(--shadow-3d);
    border-color: rgba(108, 71, 255, 0.2);
}

/* Feature cards 3D */
.card-3d-wrap { perspective: 800px; height: 100%; }
.feature-card {
    transform-style: preserve-3d;
    position: relative; overflow: hidden;
    box-shadow: 0 4px 20px rgba(12, 1, 33, 0.06),
                0 1px 3px rgba(12, 1, 33, 0.04);
}
.feature-card::before {
    content: ''; position: absolute; top: 0; left: 0; right: 0; height: 4px;
    background: var(--accent-gradient);
    transform: scaleX(0); transform-origin: left;
    transition: transform 0.4s ease;
}
.feature-card:hover::before { transform: scaleX(1); }
.feature-card:hover {
    transform: translateY(-12px) rotateX(4deg) translateZ(20px);
    box-shadow: var(--shadow-3d-hover);
}
.feature-icon {
    transform: translateZ(25px);
    box-shadow: 0 8px 25px rgba(108, 71, 255, 0.2);
}
.feature-card:hover .feature-icon {
    transform: translateZ(40px) scale(1.1) rotateY(10deg);
}

/* About visual 3D */
.about-visual {
    perspective: 1000px; transform-style: preserve-3d;
}
.about-visual img {
    transform: rotateY(-6deg) rotateX(3deg);
    transition: transform 0.6s ease, box-shadow 0.6s ease;
    /* box-shadow: var(--shadow-3d); */
}
.about-visual:hover img {
    transform: rotateY(-2deg) rotateX(1deg) translateZ(15px);
    box-shadow: var(--shadow-3d-hover);
}
.about-badge {
    transform: translateZ(50px) rotateX(-5deg);
    animation: badgePulse 3s ease-in-out infinite;
}
@keyframes badgePulse {
    0%, 100% { transform: translateZ(50px) rotateX(-5deg) scale(1); }
    50% { transform: translateZ(60px) rotateX(-5deg) scale(1.05); }
}

/* Stats 3D boxes */
.stat-box {
    background: rgba(255,255,255,0.12);
    backdrop-filter: blur(10px);
    border: 1px solid rgba(255,255,255,0.2);
    border-radius: var(--radius-lg); padding: 2rem 1.5rem;
    transform-style: preserve-3d;
    transition: transform 0.4s ease, box-shadow 0.4s ease;
    box-shadow: 0 10px 30px rgba(0,0,0,0.15),
                inset 0 1px 0 rgba(255,255,255,0.2);
}
.stat-box:hover {
    transform: translateY(-8px) translateZ(20px) rotateX(5deg);
    box-shadow: 0 20px 40px rgba(0,0,0,0.25),
                inset 0 1px 0 rgba(255,255,255,0.3);
}
.stat-box h3 {
    text-shadow: 0 2px 20px rgba(255,255,255,0.3);
    transform: translateZ(15px);
}

/* Project cards 3D */
.project-card {
    transform-style: preserve-3d;
    transition: transform 0.5s cubic-bezier(0.4, 0, 0.2, 1), box-shadow 0.5s ease;
}
.card-3d-wrap .project-card:hover {
    transform: translateY(-14px) rotateX(5deg) rotateY(-2deg) translateZ(18px);
    box-shadow: var(--shadow-3d-hover);
}
.project-card::after {
    content: '';
    position: absolute;
    inset: 0;
    border-radius: inherit;
    padding: 1px;
    background: linear-gradient(135deg, rgba(108,71,255,0.4), rgba(56,189,248,0.22), rgba(236,72,153,0.18));
    -webkit-mask: linear-gradient(#fff 0 0) content-box, linear-gradient(#fff 0 0);
    -webkit-mask-composite: xor;
    mask-composite: exclude;
    pointer-events: none;
    opacity: 0.65;
    z-index: 4;
}
.project-action-btn {
    transform: translateZ(30px);
    box-shadow: 0 8px 25px rgba(108, 71, 255, 0.4);
}
.slider-btn-3d {
    transform-style: preserve-3d;
    transition: transform 0.4s ease, box-shadow 0.4s ease, background 0.3s ease, color 0.3s ease;
}
.slider-btn-3d:hover {
    transform: translateY(-4px) translateZ(10px) scale(1.06);
}

/* Testimonial 3D */
.testimonial-card {
    transform-style: preserve-3d;
    position: relative;
    box-shadow: 0 10px 40px rgba(12, 1, 33, 0.08),
                0 0 0 1px rgba(108, 71, 255, 0.05);
}
.testimonial-card::before {
    content: '"'; position: absolute; top: 1rem; left: 1.5rem;
    font-size: 5rem; line-height: 1; color: var(--accent-soft);
    font-family: Georgia, serif; transform: translateZ(-10px);
    pointer-events: none;
}
.testimonial-arrow {
    transform-style: preserve-3d;
    box-shadow: 0 6px 20px rgba(12, 1, 33, 0.1);
}
.testimonial-arrow:hover {
    transform: translateY(-50%) translateZ(10px) scale(1.08);
}

/* Hub cards 3D */
.hub-card {
    transform-style: preserve-3d;
    box-shadow: 0 8px 30px rgba(12, 1, 33, 0.06);
}
.hub-card:hover {
    transform: translateY(-12px) rotateX(6deg) translateZ(25px);
    box-shadow: var(--shadow-3d-hover);
}
.hub-icon { transform: translateZ(20px); box-shadow: 0 8px 20px rgba(108, 71, 255, 0.15); }

/* Download box 3D */
.download-box {
    transform-style: preserve-3d;
    box-shadow: 0 30px 60px rgba(12, 1, 33, 0.3),
                inset 0 1px 0 rgba(255,255,255,0.1);
}
.store-btn {
    transform-style: preserve-3d;
    box-shadow: 0 6px 0 rgba(0,0,0,0.15), 0 10px 25px rgba(0,0,0,0.1);
}
.store-btn:hover {
    transform: translateY(-6px) translateZ(10px);
    box-shadow: 0 10px 0 rgba(0,0,0,0.12), 0 15px 35px rgba(0,0,0,0.15);
}
.store-btn:active { transform: translateY(-2px); box-shadow: 0 3px 0 rgba(0,0,0,0.15); }

/* Page hero 3D */
.page-hero {
    transform-style: preserve-3d;
}
.page-hero h1 {
    text-shadow: 0 4px 30px rgba(108, 71, 255, 0.12);
    transform: translateZ(20px);
}

/* Production / Gallery / Customer cards */
.production-section {
    position: relative;
    overflow: hidden;
}
.production-section::before {
    content: '';
    position: absolute;
    top: 0; left: 50%; transform: translateX(-50%);
    width: min(900px, 90vw); height: 400px;
    background: radial-gradient(ellipse at center, rgba(108, 71, 255, 0.08) 0%, transparent 70%);
    pointer-events: none;
}
.production-page-hero {
    position: relative;
    overflow: hidden;
}
.production-hero-glow {
    position: absolute;
    top: 50%; left: 50%;
    transform: translate(-50%, -50%);
    width: 520px; height: 520px;
    background: conic-gradient(from 180deg, rgba(108,71,255,0.12), rgba(56,189,248,0.1), rgba(236,72,153,0.08), rgba(108,71,255,0.12));
    border-radius: 50%;
    filter: blur(60px);
    pointer-events: none;
    animation: glowPulse 6s ease-in-out infinite;
}
.production-hero-label {
    display: inline-block;
    margin-bottom: 1rem;
}
.production-filter-tabs .filter-tab {
    transform-style: preserve-3d;
    box-shadow: 0 4px 14px rgba(108, 71, 255, 0.06);
}
.production-filter-tabs .filter-tab:hover,
.production-filter-tabs .filter-tab.active {
    transform: translateY(-3px) translateZ(8px);
    box-shadow: 0 10px 28px rgba(108, 71, 255, 0.35);
}
.production-card::after {
    content: '';
    position: absolute;
    inset: 0;
    border-radius: inherit;
    padding: 1px;
    background: linear-gradient(135deg, rgba(108,71,255,0.35), rgba(56,189,248,0.2), rgba(236,72,153,0.15));
    -webkit-mask: linear-gradient(#fff 0 0) content-box, linear-gradient(#fff 0 0);
    -webkit-mask-composite: xor;
    mask-composite: exclude;
    pointer-events: none;
    opacity: 0.6;
    z-index: 4;
}
.card-3d-wrap .production-card:hover {
    transform: translateY(-14px) rotateX(5deg) rotateY(-2deg) translateZ(18px);
}
.production-card, .gallery-card, .customer-card {
    transform-style: preserve-3d;
    transition: transform 0.5s cubic-bezier(0.4, 0, 0.2, 1), box-shadow 0.5s ease;
}
.production-card:hover, .gallery-card:hover, .customer-card:hover {
    box-shadow: var(--shadow-3d-hover);
}
.gallery-card:hover, .customer-card:hover {
    transform: translateY(-10px) rotateX(4deg) translateZ(15px);
}

/* Contact cards glass 3D */
.contact-info-card, .contact-form-card {
    backdrop-filter: blur(12px);
    background: var(--glass);
    border: 1px solid var(--glass-border);
    transform-style: preserve-3d;
    box-shadow: var(--shadow-3d);
    transition: transform 0.4s ease, box-shadow 0.4s ease;
}
.contact-info-card:hover, .contact-form-card:hover {
    transform: translateY(-5px) translateZ(10px);
    box-shadow: var(--shadow-3d-hover);
}

/* Filter tabs 3D */
.filter-tab, .gallery-filter {
    transform-style: preserve-3d;
    box-shadow: 0 2px 8px rgba(12, 1, 33, 0.04);
}
.filter-tab.active, .gallery-filter.active {
    transform: translateY(-2px) translateZ(5px);
    box-shadow: 0 8px 25px rgba(108, 71, 255, 0.35);
}

/* Scroll top 3D */
#scrollTopBtn {
    transform-style: preserve-3d;
    box-shadow: 0 6px 0 #5535cc, 0 10px 25px rgba(108, 71, 255, 0.35);
}
#scrollTopBtn:hover { transform: translateY(-4px); }
#scrollTopBtn:active { transform: translateY(2px); box-shadow: 0 2px 0 #5535cc; }

/* WhatsApp 3D */
.whatsapp-float {
    box-shadow: 0 8px 0 #1da851, 0 12px 30px rgba(37, 211, 102, 0.4);
    transition: transform 0.2s ease, box-shadow 0.2s ease;
}
.whatsapp-float:hover {
    transform: translateY(-4px) scale(1.05);
    box-shadow: 0 12px 0 #1da851, 0 18px 40px rgba(37, 211, 102, 0.5);
}

/* 3D preloader */
.loader-ring {
    border: none; width: 56px; height: 56px;
    background: conic-gradient(from 0deg, var(--accent), #ec4899, #a855f7, var(--accent));
    border-radius: 50%;
    animation: spin3d 1s linear infinite;
    position: relative;
}
.loader-ring::after {
    content: ''; position: absolute; inset: 6px;
    background: var(--bg-white); border-radius: 50%;
}
@keyframes spin3d { to { transform: rotate(360deg); } }

/* Section label glow */
.section-label {
    box-shadow: 0 0 20px rgba(108, 71, 255, 0.15);
    border: 1px solid rgba(108, 71, 255, 0.1);
}

/* Slider buttons 3D */
.slider-btn {
    transform-style: preserve-3d;
    box-shadow: 0 4px 15px rgba(12, 1, 33, 0.08);
}
.slider-btn:hover {
    transform: scale(1.1) translateZ(8px);
    box-shadow: 0 8px 25px rgba(108, 71, 255, 0.35);
}

/* Lightbox entrance */
.lightbox.active .lightbox-content {
    animation: lightboxFadeIn 0.3s ease forwards;
}
@keyframes lightboxFadeIn {
    from { opacity: 0; }
    to { opacity: 1; }
}

/* Parallax layers */
[data-parallax] { will-change: transform; transition: transform 0.1s linear; }

@media (max-width: 991px) {
    .hero-card-main { transform: none; }
    .hero-visual:hover .hero-card-main { transform: translateZ(10px); }
    .about-visual img { transform: none; }
    .ring-3d { display: none; }
    .feature-card:hover { transform: translateY(-8px); }
}

@media (prefers-reduced-motion: reduce) {
    .orb-3d, .ring-3d, .mesh-bg, .float-animation, .hero-card-float { animation: none !important; }
    .tilt-3d { transition: none !important; }
}
