/* ==========================================================================
   SocialMax.in | Premium SMM Services | ULTRA-PREMIUM 3D UI
   ========================================================================== */

/* --- 1. Variables & Root --- */
:root {
    /* Refined Color Palette for Harmony */
    --bg-dark: #010103;
    --bg-gradient: radial-gradient(circle at 10% 10%, #1a023a 0%, #010103 50%, #000000 100%);
    
    /* Dynamic Platform Colors (Defaulted to Info) */
    --card-glow: #00ffff; 
    
    /* Core Accents */
    --primary: #6200ea; /* Deep Vivid Purple */
    --secondary: #00e5ff; /* Electric Cyan */
    --accent: #ff0057; /* Hot Pink */
    
    /* Semantic Colors */
    --success: #00ff88;
    --warning: #ffb300; /* Gold */
    --info: #00ffff;
    
    /* Text */
    --text-main: #ffffff;
    --text-muted: #94a3b8;
    
    /* 3D & Glass Properties */
    --glass-bg: rgba(255, 255, 255, 0.01);
    --glass-border: rgba(255, 255, 255, 0.05);
    --glass-shadow: 0 20px 50px rgba(0, 0, 0, 0.7);
    
    /* Gradients */
    --neon-gradient: linear-gradient(135deg, var(--accent), var(--primary), var(--secondary));
    
    /* Fonts */
    --font-main: 'Outfit', sans-serif;
    --font-heading: 'Space Grotesk', sans-serif;
    
    /* Animation Timing */
    --ease-elastic: cubic-bezier(0.68, -0.6, 0.27, 1.55);
    --transition-smooth: 0.6s cubic-bezier(0.23, 1, 0.32, 1);
    --transition-fast: 0.3s ease;
}

/* --- 2. Base & Reset --- */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    outline: none;
}

html {
    scroll-behavior: smooth;
    font-size: 16px;
    background: var(--bg-dark);
}

body.dark-theme {
    background-image: var(--bg-gradient);
    background-attachment: fixed;
    color: var(--text-main);
    font-family: var(--font-main);
    line-height: 1.6;
    overflow-x: hidden;
    min-height: 100vh;
}

a {
    text-decoration: none;
    color: inherit;
    transition: 0.3s;
}

ul {
    list-style: none;
}

.container {
    max-width: 1400px;
    margin: 0 auto;
    padding: 0 2rem;
}

/* --- 3. Advanced Background Animations --- */
.background-anim {
    position: fixed;
    top: 0; left: 0; width: 100%; height: 100%;
    z-index: -1;
    overflow: hidden;
    perspective: 1500px;
}

.blob {
    position: absolute;
    filter: blur(100px);
    border-radius: 50%;
    opacity: 0.4;
    animation: float3D 30s infinite linear alternate;
    mix-blend-mode: screen;
}

.blob-1 {
    width: 600px; height: 600px;
    background: var(--primary);
    top: -200px; left: -200px;
}

.blob-2 {
    width: 700px; height: 700px;
    background: var(--secondary);
    bottom: -250px; right: -200px;
    animation-delay: -7s;
}

.blob-3 {
    width: 500px; height: 500px;
    background: var(--accent);
    top: 50%; left: 50%;
    transform: translate(-50%, -50%) translateZ(-300px);
    opacity: 0.2;
    animation-delay: -14s;
}

.noise-overlay {
    position: absolute;
    top: 0; left: 0; width: 100%; height: 100%;
    background-image: url('data:image/svg+xml,%3Csvg viewBox="0 0 200 200" xmlns="http://www.w3.org/2000/svg"%3E%3Cfilter id="noiseFilter"%3E%3CfeTurbulence type="fractalNoise" baseFrequency="0.9" numOctaves="4" stitchTiles="stitch"/%3E%3C/filter%3E%3Crect width="100%25" height="100%25" filter="url(%23noiseFilter)" opacity="0.05"/%3E%3C/svg%3E');
    pointer-events: none;
    z-index: 1;
}

@keyframes float3D {
    0% { transform: translate(0, 0) translateZ(0) rotate(0deg) scale(1); }
    33% { transform: translate(100px, 150px) translateZ(150px) rotate(120deg) scale(1.1); }
    66% { transform: translate(-80px, 100px) translateZ(-150px) rotate(240deg) scale(0.9); }
    100% { transform: translate(0, 0) translateZ(0) rotate(360deg) scale(1); }
}

/* --- 4. Preloader --- */
.preloader {
    position: fixed;
    top: 0; left: 0; width: 100%; height: 100%;
    background: var(--bg-dark);
    display: flex;
    justify-content: center;
    align-items: center;
    z-index: 9999;
    transition: opacity 0.8s cubic-bezier(0.77, 0, 0.175, 1), visibility 0.8s;
}

.preloader.hidden {
    opacity: 0;
    visibility: hidden;
}

.loader-content {
    text-align: center;
    perspective: 500px;
}

.neon-spinner {
    width: 100px; height: 100px;
    border: 2px solid rgba(255,255,255,0.02);
    border-top-color: var(--secondary);
    border-bottom-color: var(--accent);
    border-radius: 50%;
    animation: spinSpinner 1s cubic-bezier(0.68, -0.55, 0.27, 1.55) infinite;
    box-shadow: 0 0 30px rgba(0, 255, 255, 0.3);
    margin: 0 auto 1.5rem;
}

@keyframes spinSpinner { 
    0% { transform: rotateX(0deg) rotateY(0deg) rotateZ(0deg); } 
    100% { transform: rotateX(360deg) rotateY(180deg) rotateZ(360deg); } 
}

/* --- 5. Typography --- */
h1, h2, h3, h4, h5, h6 {
    font-family: var(--font-heading);
    color: #fff;
    line-height: 1.1;
}

.gradient-text {
    background: linear-gradient(to right, #fff, var(--secondary), var(--accent), #fff);
    background-size: 300% auto;
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    animation: shine 5s linear infinite;
}

@keyframes shine {
    to { background-position: 300% center; }
}

.neon-text {
    color: #fff;
    text-shadow: 0 0 10px rgba(255,255,255,0.8), 0 0 20px var(--secondary), 0 0 30px var(--secondary);
}

.type-effect {
    display: inline-block;
    border-right: 3px solid var(--info);
    white-space: nowrap;
    overflow: hidden;
    animation: typing 3s steps(30, end) infinite alternate, blink-caret .75s step-end infinite;
}

@keyframes typing { from { max-width: 0 } to { max-width: 100% } }
@keyframes blink-caret { from, to { border-color: transparent } 50% { border-color: var(--info); } }

.text-primary { color: var(--primary); }
.text-success { color: var(--success); }
.text-warning { color: var(--warning); }
.text-info { color: var(--info); }
.text-muted { color: var(--text-muted); }

.text-center { text-align: center; }
.mb-3 { margin-bottom: 1rem; }
.mb-4 { margin-bottom: 1.5rem; }
.mt-3 { margin-top: 1rem; }
.mt-4 { margin-top: 1.5rem; }
.w-full { width: 100%; }
.d-inline-block { display: inline-block; }
.hidden { display: none !important; }

/* --- 6. 3D Components & Cards --- */
.glass-panel {
    background: rgba(255, 255, 255, 0.01);
    backdrop-filter: blur(30px);
    -webkit-backdrop-filter: blur(30px);
    border: 1px solid rgba(255, 255, 255, 0.06);
    border-radius: 24px;
    box-shadow: var(--glass-shadow);
}

.glass-card {
    background: linear-gradient(135deg, rgba(255,255,255,0.03) 0%, rgba(255,255,255,0) 100%);
    border: 1px solid var(--glass-border);
    border-radius: 20px;
    transition: var(--transition-smooth);
    position: relative;
    transform-style: preserve-3d;
    perspective: 1000px;
    overflow: hidden;
}

/* Dynamic Animated Border on Hover */
.glass-card::before {
    content: '';
    position: absolute;
    inset: -1px;
    border-radius: 21px; 
    padding: 2px; 
    background: conic-gradient(from 0deg, transparent, var(--card-glow), transparent, var(--card-glow), transparent);
    -webkit-mask: linear-gradient(#fff 0 0) content-box, linear-gradient(#fff 0 0);
    mask: linear-gradient(#fff 0 0) content-box, linear-gradient(#fff 0 0);
    -webkit-mask-composite: xor;
    mask-composite: exclude;
    opacity: 0;
    transition: opacity 0.5s;
}

.glass-card:hover::before {
    opacity: 1;
    animation: rotateConic 2s linear infinite;
}

@keyframes rotateConic {
    to { background: conic-gradient(from 360deg, transparent, var(--card-glow), transparent, var(--card-glow), transparent); }
}

/* Hover Glow Spread */
.glass-card:hover {
    box-shadow: 0 30px 60px rgba(0,0,0,0.7), 0 0 30px calc(var(--card-glow) + 1A);
    transform: translateY(-10px) rotateX(2deg);
    border-color: rgba(255,255,255,0.1);
}

.card-content-wrapper {
    position: relative;
    z-index: 2;
    display: flex;
    flex-direction: column;
    height: 100%;
}

.card-content-wrapper > * {
    transform: translateZ(30px);
    transition: transform 0.5s var(--ease-elastic);
}

.glass-card:hover .card-content-wrapper > * {
    transform: translateZ(60px);
}

.platform-bg-icon {
    position: absolute;
    bottom: -50px; left: -50px;
    font-size: 20rem;
    color: var(--card-glow);
    opacity: 0.02;
    z-index: 0;
    transform: rotate(15deg) translateZ(-10px);
    transition: var(--transition-smooth);
    pointer-events: none;
}

.glass-card:hover .platform-bg-icon {
    opacity: 0.1;
    transform: rotate(0deg) scale(1.1) translateZ(10px);
}

.glass-badge {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.5rem 1.2rem;
    background: linear-gradient(135deg, rgba(255, 255, 255, 0.05), rgba(255, 255, 255, 0));
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 100px;
    font-size: 0.85rem;
    font-weight: 600;
    box-shadow: 0 4px 15px rgba(0,0,0,0.2);
    backdrop-filter: blur(10px);
}

/* --- 7. Buttons --- */
.btn {
    font-family: var(--font-heading);
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 1px;
    border-radius: 100px;
    transition: var(--ease-elastic) 0.4s;
    border: none;
    cursor: pointer;
    display: inline-flex; align-items: center; justify-content: center; gap: 0.5rem;
    position: relative;
    overflow: hidden;
    transform-style: preserve-3d;
    padding: 0.9rem 2rem;
    font-size: 1rem;
}

.btn-lg { padding: 1.2rem 3rem; font-size: 1.15rem; }
.btn-block { width: 100%; }

.neon-btn {
    background: var(--neon-gradient);
    background-size: 300% auto;
    color: #fff;
    box-shadow: 0 10px 20px rgba(255, 0, 87, 0.3);
    animation: shine 5s linear infinite;
}

.neon-btn:hover {
    transform: translateY(-5px) translateZ(30px) scale(1.05);
    box-shadow: 0 15px 30px var(--secondary), 0 0 20px var(--accent);
}

.glass-btn {
    background: rgba(255,255,255,0.03);
    border: 1px solid rgba(255,255,255,0.1);
    color: #fff;
    backdrop-filter: blur(10px);
}

.glass-btn:hover {
    background: rgba(255,255,255,0.1);
    transform: translateY(-5px) translateZ(20px);
    border-color: rgba(255,255,255,0.3);
    box-shadow: 0 15px 25px rgba(0,0,0,0.4);
}

/* Dynamic Order Button */
.order-btn {
    transition: all var(--transition-smooth) !important;
}
.order-btn:hover {
    background: var(--card-glow) !important;
    color: #000 !important;
    box-shadow: 0 0 30px var(--card-glow);
}
.order-btn:hover i {
    color: #000 !important;
}

/* Ripple Effect */
.ripple-btn { position: relative; }
.ripple-btn .ripple {
    position: absolute;
    border-radius: 50%;
    transform: scale(0);
    animation: ripple 0.6s var(--ease-elastic);
    background-color: rgba(255, 255, 255, 0.4);
    pointer-events: none;
}
@keyframes ripple { to { transform: scale(4); opacity: 0; } }

/* --- 8. Navbar --- */
.glass-navbar {
    position: fixed;
    top: 0; left: 0; width: 100%;
    padding: 1.5rem 0;
    z-index: 1000;
    transition: var(--transition-smooth);
}

.glass-navbar.scrolled {
    padding: 1rem 0;
    background: rgba(1, 1, 3, 0.85);
    backdrop-filter: blur(25px) saturate(200%);
    border-bottom: 1px solid rgba(255,255,255,0.05);
    box-shadow: 0 10px 30px rgba(0,0,0,0.5);
}

.nav-container {
    max-width: 1400px;
    margin: 0 auto;
    padding: 0 2rem;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.logo {
    font-size: 2rem;
    font-weight: 800;
    font-family: var(--font-heading);
    display: flex; align-items: center; gap: 0.5rem;
}

.nav-links { display: flex; gap: 3rem; font-weight: 600; }
.nav-link { color: var(--text-muted); position: relative; padding: 0.5rem 0; }
.nav-link:hover, .nav-link.active { color: #fff; text-shadow: 0 0 10px rgba(255,255,255,0.3); }
.nav-link::before {
    content: ''; position: absolute; bottom: 0; left: 50%;
    width: 0; height: 3px; background: var(--neon-gradient);
    border-radius: 10px; transition: var(--transition-fast); transform: translateX(-50%);
}
.nav-link:hover::before, .nav-link.active::before { width: 100%; box-shadow: 0 0 10px var(--info); }

.mobile-menu-btn {
    display: none; background: none; border: none; color: white;
    font-size: 1.8rem; cursor: pointer;
}

/* Mobile Menu Panel */
.mobile-menu {
    position: fixed; top: 0; right: -100%;
    width: 320px; height: 100vh;
    background: rgba(10, 5, 20, 0.95);
    z-index: 1001; padding: 2.5rem;
    transition: var(--transition-smooth);
    display: flex; flex-direction: column;
}

.mobile-menu.open { right: 0; box-shadow: -20px 0 50px rgba(0,0,0,0.8); }
.close-menu {
    align-self: flex-end; background: rgba(255,255,255,0.1);
    border: none; border-radius: 50%; width: 40px; height: 40px;
    color: white; font-size: 1.2rem; cursor: pointer; margin-bottom: 2rem;
    transition: var(--transition-fast);
}
.close-menu:hover { background: var(--accent); transform: rotate(90deg); }
.mobile-links { display: flex; flex-direction: column; gap: 2rem; }
.mobile-link { font-size: 1.4rem; font-family: var(--font-heading); font-weight: 700; }

/* --- 9. Hero Section --- */
.hero {
    min-height: 100vh;
    display: flex; align-items: center;
    padding-top: 100px; position: relative;
    perspective: 1000px;
}

.hero-container {
    display: grid; grid-template-columns: 1fr 1fr;
    gap: 4rem; align-items: center; transform-style: preserve-3d;
}

.pulse-dot {
    width: 10px; height: 10px; background: var(--success);
    border-radius: 50%; box-shadow: 0 0 15px var(--success);
    animation: pulseDot 1.5s infinite cubic-bezier(0.66, 0, 0, 1);
}
@keyframes pulseDot { to { box-shadow: 0 0 0 15px rgba(0, 255, 136, 0); } }

.hero-title { font-size: 5.5rem; margin-bottom: 1.5rem; letter-spacing: -2px; transform: translateZ(60px); }
.hero-subtitle { font-size: 1.3rem; color: var(--text-muted); margin-bottom: 3rem; max-width: 90%; transform: translateZ(40px); }
.hero-buttons { display: flex; gap: 1.5rem; transform: translateZ(50px); }

.hero-visual { position: relative; height: 600px; transform-style: preserve-3d; }
.hero-stats-card {
    position: absolute; padding: 1.5rem; display: flex; align-items: center; gap: 1.2rem; width: 300px;
    border-top: 1px solid rgba(255,255,255,0.2); border-left: 1px solid rgba(255,255,255,0.2);
}
.hero-stats-card:nth-child(1) { top: 15%; right: 5%; z-index: 2; }
.hero-stats-card:nth-child(2) { bottom: 20%; left: 0%; z-index: 1; }
.card-icon {
    width: 60px; height: 60px; border-radius: 16px;
    display: flex; justify-content: center; align-items: center;
    font-size: 1.8rem; box-shadow: 0 10px 20px rgba(0,0,0,0.3); transform: translateZ(40px);
}

.gradient-bg { background: linear-gradient(135deg, #f09433 0%, #e6683c 25%, #dc2743 50%, #cc2366 75%, #bc1888 100%); }
.gradient-bg-2 { background: linear-gradient(135deg, #ff0000 0%, #cc0000 100%); }

.float-anim { animation: float3D-Y 6s cubic-bezier(0.45, 0.05, 0.55, 0.95) infinite; }
.float-anim-reverse { animation: float3D-Y-rev 7s cubic-bezier(0.45, 0.05, 0.55, 0.95) infinite; }

@keyframes float3D-Y {
    0%, 100% { transform: translateY(0) translateZ(20px) rotateX(5deg); }
    50% { transform: translateY(-30px) translateZ(50px) rotateX(-5deg); }
}
@keyframes float3D-Y-rev {
    0%, 100% { transform: translateY(0) translateZ(20px) rotateY(5deg); }
    50% { transform: translateY(30px) translateZ(50px) rotateY(-5deg); }
}

/* --- 10. Stats Section --- */
.stats { padding: 0 0 4rem 0; margin-top: -80px; position: relative; z-index: 10; }
.stats-grid { display: flex; justify-content: space-around; align-items: center; padding: 3rem; flex-wrap: wrap; gap: 2rem; transform-style: preserve-3d; }
.stat-item { text-align: center; transform: translateZ(30px); transition: transform var(--transition-fast); }
.stat-item:hover { transform: translateZ(60px) scale(1.1); }
.stat-item h2 { font-size: 3.5rem; margin-bottom: 0.2rem; text-shadow: 0 10px 20px rgba(0,0,0,0.5); }
.stat-item p { color: var(--text-muted); font-weight: 600; text-transform: uppercase; letter-spacing: 2px; font-size: 0.9rem; }
.stat-divider { width: 2px; height: 80px; background: linear-gradient(to bottom, transparent, rgba(255,255,255,0.1), transparent); }

/* --- 11. Services Section --- */
.services { padding: 6rem 0; }
.section-header { margin-bottom: 5rem; perspective: 1000px; }
.section-title { font-size: 4rem; margin-bottom: 1rem; transform: translateZ(20px); }
.section-desc { color: var(--text-muted); font-size: 1.2rem; }

/* Controls */
.controls-glass { padding: 1.5rem; margin-bottom: 4rem; display: flex; justify-content: space-between; align-items: center; flex-wrap: wrap; gap: 1.5rem; transform-style: preserve-3d; }
.search-box { position: relative; flex: 1; min-width: 300px; transform: translateZ(20px); }
.search-box i { position: absolute; left: 1.5rem; top: 50%; transform: translateY(-50%); color: var(--text-muted); font-size: 1.2rem; }
.search-box input {
    width: 100%; padding: 1.2rem 1.2rem 1.2rem 3.5rem; background: rgba(0,0,0,0.4);
    border: 1px solid rgba(255,255,255,0.1); border-radius: 100px; color: white;
    font-family: var(--font-main); font-size: 1.1rem; outline: none; transition: var(--transition-smooth);
    box-shadow: inset 0 4px 10px rgba(0,0,0,0.5);
}
.search-box input:focus { border-color: var(--info); box-shadow: inset 0 4px 10px rgba(0,0,0,0.5), 0 0 20px rgba(0, 229, 255, 0.3); }

.filter-wrapper { overflow-x: auto; max-width: 60%; scrollbar-width: none; transform: translateZ(20px); }
.filter-wrapper::-webkit-scrollbar { display: none; } 
.filter-scroll { display: flex; gap: 1rem; white-space: nowrap; padding: 0.5rem; }
.filter-btn {
    padding: 0.8rem 1.5rem; background: rgba(255,255,255,0.03); border: 1px solid rgba(255,255,255,0.1);
    border-radius: 100px; color: var(--text-muted); cursor: pointer; font-family: var(--font-main); font-weight: 600;
    transition: var(--transition-fast); display: flex; align-items: center; gap: 0.5rem;
}
.filter-btn:hover, .filter-btn.active {
    background: #fff; color: #000; border-color: transparent; box-shadow: 0 10px 20px rgba(0,0,0,0.3); transform: translateY(-3px);
}
.filter-btn.active i, .filter-btn:hover i { color: #000 !important; }

/* Services Grid & Cards */
.services-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(340px, 1fr)); gap: 3rem; perspective: 1500px; }

.service-card { padding: 2.5rem; }
.card-tag { align-self: flex-start; padding: 0.4rem 1rem; border: 1px solid; border-radius: 100px; font-size: 0.8rem; font-weight: 700; margin-bottom: 1.5rem; text-transform: uppercase; letter-spacing: 1px; }
.service-card h3 { font-size: 1.4rem; margin-bottom: 0.8rem; line-height: 1.4; }
.service-price { font-size: 2.5rem; font-weight: 800; margin-bottom: 1.5rem; font-family: var(--font-heading); }
.service-meta { display: flex; gap: 0.5rem; margin-bottom: 2rem; }
.service-desc { color: var(--text-muted); font-size: 1rem; margin-bottom: 2.5rem; flex-grow: 1; line-height: 1.8; }
.empty-state { text-align: center; padding: 6rem 2rem; }

/* Skeletons */
.skeleton-card { border-color: transparent; background: rgba(255,255,255,0.01); }
.skeleton-card div { background: rgba(255,255,255,0.03); border-radius: 8px; margin-bottom: 1.5rem; position: relative; overflow: hidden; }
.skeleton-card div::after { content: ""; position: absolute; top: 0; left: 0; right: 0; bottom: 0; background: linear-gradient(90deg, transparent, rgba(255,255,255,0.1), transparent); transform: translateX(-100%); animation: shimmer 2s infinite cubic-bezier(0.4, 0, 0.2, 1); }
.skeleton-header { width: 40%; height: 28px; border-radius: 100px !important; }
.skeleton-title { width: 90%; height: 36px; }
.skeleton-text { width: 100%; height: 20px; }
.skeleton-text.short { width: 70%; }
.skeleton-button { width: 100%; height: 55px; border-radius: 100px !important; margin-bottom: 0 !important; margin-top: auto; }
@keyframes shimmer { 100% { transform: translateX(100%); } }

/* --- 12. FAQ Section --- */
.faq { padding: 4rem 0 10rem 0; }
.faq-accordion { max-width: 900px; margin: 0 auto; padding: 3rem; transform-style: preserve-3d; }
.faq-item { border-bottom: 1px solid rgba(255,255,255,0.05); transform: translateZ(20px); }
.faq-item:last-child { border-bottom: none; }
.faq-question { width: 100%; text-align: left; background: none; border: none; color: white; font-size: 1.3rem; font-family: var(--font-heading); padding: 2rem 0; cursor: pointer; display: flex; justify-content: space-between; align-items: center; transition: var(--transition-smooth); }
.faq-question:hover { color: var(--secondary); padding-left: 10px; }
.faq-question i { transition: transform 0.4s var(--ease-elastic); background: rgba(255,255,255,0.05); width: 40px; height: 40px; border-radius: 50%; display: flex; justify-content: center; align-items: center; }
.faq-item.active .faq-question i { transform: rotate(180deg); color: var(--secondary); background: rgba(0, 229, 255, 0.1); box-shadow: 0 0 15px rgba(0,229,255,0.3); }
.faq-answer { max-height: 0; overflow: hidden; transition: max-height 0.6s cubic-bezier(0.22, 1, 0.36, 1); }
.faq-answer p { padding-bottom: 2rem; color: var(--text-muted); font-size: 1.1rem; line-height: 1.8; }

/* --- 13. Footer --- */
.glass-footer { border-top: 1px solid rgba(255,255,255,0.05); background: rgba(3,3,5,0.7); backdrop-filter: blur(30px); padding: 6rem 0 2rem 0; position: relative; overflow: hidden; }
.glass-footer::before { content: ''; position: absolute; top: 0; left: 0; width: 100%; height: 1px; background: linear-gradient(to right, transparent, var(--primary), transparent); }
.footer-top { display: grid; grid-template-columns: 2fr 1fr 1fr; gap: 5rem; margin-bottom: 4rem; }
.footer-desc { color: var(--text-muted); max-width: 350px; font-size: 1.1rem; line-height: 1.8; }
.glass-footer h4 { margin-bottom: 2rem; font-size: 1.4rem; color: white; }
.glass-footer ul li { margin-bottom: 1rem; color: var(--text-muted); font-size: 1.1rem; }
.glass-footer ul li a { display: inline-block; transition: var(--transition-fast); }
.glass-footer ul li a:hover { color: var(--secondary); transform: translateX(10px); }
.footer-bottom { padding-top: 3rem; border-top: 1px solid rgba(255,255,255,0.05); display: flex; justify-content: space-between; align-items: center; color: var(--text-muted); font-size: 1rem; }
.social-icons { display: flex; gap: 1.5rem; }
.glass-icon { width: 50px; height: 50px; border-radius: 50%; background: rgba(255,255,255,0.03); border: 1px solid rgba(255,255,255,0.1); display: flex; justify-content: center; align-items: center; color: white; font-size: 1.2rem; transition: var(--transition-smooth); }
.glass-icon:hover { background: #fff; color: #000; border-color: transparent; transform: translateY(-8px) scale(1.1) rotate(10deg); box-shadow: 0 10px 20px rgba(255,255,255,0.3); }

/* --- 14. 3D Modal (Popup) --- */
.modal-overlay {
    position: fixed; top: 0; left: 0; width: 100%; height: 100%;
    background: rgba(0,0,0,0.85); backdrop-filter: blur(15px);
    z-index: 2000; display: flex; justify-content: center; align-items: center;
    padding: 1rem; opacity: 0; visibility: hidden;
    transition: all 0.5s cubic-bezier(0.22, 1, 0.36, 1); perspective: 2000px;
}

.modal-overlay.active { opacity: 1; visibility: visible; }

.modal-container {
    width: 100%; max-width: 550px; background: rgba(5, 5, 10, 0.95);
    border: 1px solid rgba(255, 255, 255, 0.1);
    box-shadow: 0 30px 60px rgba(0,0,0,0.8); border-radius: 30px;
    padding: 3rem; position: relative; transform-style: preserve-3d;
    transform: rotateX(20deg) scale(0.8) translateY(50px);
    transition: all 0.6s var(--ease-elastic);
}

.modal-overlay.active .modal-container { transform: rotateX(0) scale(1) translateY(0); }

/* Modal Inner 3D Pop */
.modal-container > * { transform: translateZ(40px); transition: 0.3s; }

.modal-close {
    position: absolute; top: 2rem; right: 2rem;
    width: 40px; height: 40px; border-radius: 50%;
    background: rgba(255,255,255,0.05); border: 1px solid rgba(255,255,255,0.1);
    color: white; font-size: 1.5rem; cursor: pointer;
    display: flex; justify-content: center; align-items: center;
    transition: var(--transition-fast); transform: translateZ(60px);
}
.modal-close:hover { background: #fff; color: #000; transform: translateZ(60px) rotate(90deg) scale(1.1); box-shadow: 0 0 20px rgba(255,255,255,0.5); }

.modal-header { text-align: center; margin-bottom: 2.5rem; }
.modal-title { font-size: 2.2rem; margin-top: 1.5rem; line-height: 1.2; }
.price-box { padding: 2rem; margin-bottom: 2rem; border-color: rgba(255, 255, 255, 0.1); background: rgba(255, 255, 255, 0.02); transform: translateZ(50px); border-radius: 20px; }
.price-box h2 { font-size: 3.5rem; }

.stats-row { display: grid; gap: 1rem; margin-bottom: 2rem; transform: translateZ(40px); }
.stat-box { padding: 1.2rem; display: flex; align-items: center; gap: 1rem; }
.stat-box i { font-size: 1.8rem; }
.stat-box .value { display: block; font-weight: 700; font-size: 1.2rem; }

.desc-box { padding: 2rem; text-align: left; margin-bottom: 2.5rem; transform: translateZ(30px); border-radius: 20px; }
.desc-box h4 { margin-bottom: 1rem; font-size: 1.2rem; display: flex; align-items: center; gap: 0.8rem; }
.desc-box p { font-size: 1.1rem; color: var(--text-muted); line-height: 1.8; }
.modal-footer { transform: translateZ(60px); }

/* --- 15. Animations Classes --- */
.fade-up { opacity: 0; transform: translateY(50px) translateZ(0); transition: opacity 1s cubic-bezier(0.22, 1, 0.36, 1), transform 1s cubic-bezier(0.22, 1, 0.36, 1); }
.fade-up.visible { opacity: 1; transform: translateY(0) translateZ(0); }
.tracking-in { animation: tracking-in-expand 1s cubic-bezier(0.215, 0.610, 0.355, 1.000) both; }
@keyframes tracking-in-expand { 0% { letter-spacing: -0.8em; opacity: 0; filter: blur(10px); } 40% { opacity: 0.6; filter: blur(2px); } 100% { opacity: 1; filter: blur(0); } }

/* --- 16. Media Queries --- */
@media (max-width: 1024px) {
    .hero-title { font-size: 4rem; }
    .hero-container { gap: 2rem; }
    .footer-top { grid-template-columns: 1fr 1fr; }
    .services-grid { grid-template-columns: repeat(auto-fill, minmax(300px, 1fr)); }
}

@media (max-width: 768px) {
    .nav-links, .nav-actions { display: none; }
    .mobile-menu-btn { display: block; }
    
    .hero-container { grid-template-columns: 1fr; text-align: center; transform-style: flat; }
    .hero-title, .hero-subtitle, .hero-buttons { transform: none; }
    .hero-subtitle { margin: 0 auto 2.5rem auto; }
    .hero-buttons { justify-content: center; }
    .hero-visual { height: 450px; margin-top: 3rem; }
    
    .stats-grid { flex-direction: column; gap: 3rem; transform-style: flat;}
    .stat-divider { width: 100%; height: 2px; background: linear-gradient(to right, transparent, rgba(255,255,255,0.2), transparent); }
    
    .controls-glass { flex-direction: column; align-items: stretch; }
    .filter-wrapper { max-width: 100%; }
    
    .footer-top { grid-template-columns: 1fr; gap: 3rem; }
    .footer-bottom { flex-direction: column; gap: 1.5rem; text-align: center; }
}

@media (max-width: 480px) {
    .hero-title { font-size: 3.2rem; }
    .hero-buttons { flex-direction: column; }
    .hero-stats-card { width: 100%; position: relative; top: auto !important; bottom: auto !important; left: auto !important; right: auto !important; margin-bottom: 1.5rem; transform: none !important;}
    .stats-row { grid-template-columns: 1fr; }
    .modal-container { padding: 1.5rem; transform: scale(0.9) translateY(20px); }
    .modal-overlay.active .modal-container { transform: scale(1) translateY(0); }
    .modal-title { font-size: 1.8rem; }
    .price-box h2 { font-size: 2.5rem; }
    .service-price { font-size: 2rem; }
    
    /* ==========================================
   MOBILE OVERFLOW & RESPONSIVE FIX
   ========================================== */
html, body {
    max-width: 100vw;
    overflow-x: hidden !important;
    position: relative;
}

@media (max-width: 768px) {
    .hero-title {
        font-size: 2.8rem !important;
        word-wrap: break-word;
    }
    .type-effect {
        white-space: normal !important; /* Text ko next line me aane dega */
        border-right: none !important; /* Mobile me cursor hide karega overflow rokne ke liye */
        animation: none !important; /* Mobile me width stretch hone se rokega */
        display: block;
        background-size: 200% auto;
    }
}

@media (max-width: 480px) {
    .hero-title {
        font-size: 2.2rem !important;
        letter-spacing: 0 !important;
        line-height: 1.3;
    }
    .hero-buttons {
        width: 100%;
        display: flex;
        flex-direction: column;
    }
    .hero-buttons .btn {
        width: 100%;
        margin-bottom: 0.5rem;
    }
    .container {
        padding: 0 1.5rem;
    }
    .hero-visual {
        height: auto;
        min-height: 350px;
        margin-top: 2rem;
    }
    .hero-stats-card {
        width: 100% !important;
        position: relative !important;
        margin-bottom: 1rem !important;
        transform: none !important;
    }
}

}