/* 
    AETHER - Advanced 3D Interactive Agency Theme
*/

:root {
    /* Extreme Glass & Neon Colors */
    --bg-dark: #050508;
    --neon-purple: #7b2cbf;
    --neon-pink: #c77dff;
    --neon-indigo: #3c096c;
    
    --glass-bg: rgba(20, 10, 40, 0.4);
    --glass-border: rgba(123, 44, 191, 0.3);
    
    --text-primary: #ffffff;
    --text-secondary: #b0a8b9;
    
    --font-primary: 'Outfit', 'Cairo', sans-serif;
}

* { margin: 0; padding: 0; box-sizing: border-box; }

body {
    background-color: var(--bg-dark);
    color: var(--text-primary);
    font-family: var(--font-primary);
    overflow-x: hidden;
    /* We handle scroll on the wrapper for 3D */
}

/* --- Dynamic Floating BGs --- */
.dynamic-bg {
    position: fixed;
    top: 0; left: 0; width: 100vw; height: 100vh;
    overflow: hidden;
    z-index: -1;
    background: radial-gradient(circle at 50% 0%, #1a0b2e 0%, var(--bg-dark) 80%);
}
.bg-orb {
    position: absolute;
    border-radius: 50%;
    filter: blur(80px);
    opacity: 0.5;
    animation: float 20s infinite ease-in-out alternate;
}
.orb-purple {
    width: 50vw; height: 50vw;
    background: var(--neon-purple);
    top: -10%; left: -20%;
}
.orb-indigo {
    width: 60vw; height: 60vw;
    background: var(--neon-indigo);
    bottom: -20%; right: -20%;
    animation-delay: -5s;
}
@keyframes float {
    0% { transform: translate(0,0) scale(1); }
    100% { transform: translate(10vw, 15vh) scale(1.2); }
}

/* --- Nav --- */
.nav-container {
    position: fixed;
    top: 20px; left: 50%;
    transform: translateX(-50%);
    width: 90%; max-width: 1400px;
    background: var(--glass-bg);
    border: 1px solid var(--glass-border);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    padding: 15px 40px;
    border-radius: 50px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    z-index: 1000;
    box-shadow: 0 10px 40px rgba(0,0,0,0.5);
    transition: all 0.5s ease;
}
.logo-container {
    display: flex;
    align-items: center;
    position: relative;
}
.site-logo {
    height: 60px;
    width: auto;
    filter: drop-shadow(0 0 10px rgba(199, 125, 255, 0.5));
    animation: floatingLogo 4s infinite ease-in-out;
    transform-origin: center;
    transition: all 0.3s ease;
}
.site-logo:hover {
    transform: scale(1.1);
    filter: drop-shadow(0 0 20px rgba(255, 255, 255, 0.8));
    cursor: pointer;
}

@keyframes floatingLogo {
    0% { transform: translateY(0); }
    50% { transform: translateY(-4px); }
    100% { transform: translateY(0); }
}
.nav-controls {
    display: flex;
    gap: 15px;
    align-items: center;
}
.icon-btn {
    background: rgba(255,255,255,0.05);
    border: 1px solid var(--glass-border);
    color: var(--text-primary);
    cursor: pointer;
    width: 45px; height: 45px;
    border-radius: 50%;
    display: flex;
    justify-content: center;
    align-items: center;
    font-size: 1.1rem;
    position: relative;
    transition: all 0.3s ease;
}
.icon-btn:hover {
    background: var(--neon-purple);
    box-shadow: 0 0 20px var(--neon-purple);
    transform: scale(1.1);
}
.icon-btn i { pointer-events: none; }
.lang-toggle { font-weight: 700; font-family: inherit; font-size: 0.9rem; }

/* Tooltip for 3D mode */
.btn-tooltip {
    position: absolute;
    bottom: -40px;
    background: rgba(0,0,0,0.8);
    padding: 8px 12px;
    border-radius: 8px;
    font-size: 0.8rem;
    white-space: nowrap;
    opacity: 0;
    pointer-events: none;
    transition: 0.3s;
    border: 1px solid var(--glass-border);
}
.icon-btn:hover .btn-tooltip { opacity: 1; bottom: -50px; }

/* --- Master 3D Isometric Wrapper --- */
.perspective-scene {
    width: 100%;
    min-height: 100vh;
    perspective: 2500px;
    overflow-x: hidden;
}

.site-wrapper {
    width: 100%;
    min-height: 100vh;
    transform-style: preserve-3d;
    transition: transform 1.2s cubic-bezier(0.2, 0.8, 0.2, 1);
    transform-origin: 50% 50%;
    /* Normal state applies no transform */
}

/* THE MAGIC CLASS */
.perspective-scene.is-3d-active .site-wrapper {
    /* Isometric 3D layout tilt */
    transform: rotateX(20deg) rotateY(-10deg) rotateZ(3deg) scale(0.65);
    transform-origin: center top;
}
.perspective-scene.is-3d-active {
    /* REMOVED height:100vh so user can SCROLL the 3D mode! */
    overflow-x: hidden;
    background: #000;
}

/* In 3D mode, the layers pop out */
.perspective-scene.is-3d-active .tilt-card,
.perspective-scene.is-3d-active .hero,
.perspective-scene.is-3d-active .funnel-section,
.perspective-scene.is-3d-active .impact-stats,
.perspective-scene.is-3d-active .process-timeline,
.perspective-scene.is-3d-active .tech-stack-marquee {
    box-shadow: -30px 40px 60px rgba(0,0,0,0.9), 0 0 50px rgba(123, 44, 191, 0.4);
    /* Float off the page */
    transform: translateZ(100px);
    transition: transform 1s cubic-bezier(0.1, 0.9, 0.2, 1), box-shadow 1s;
}
.perspective-scene.is-3d-active .portfolio-overlay {
    transform: translateZ(150px);
}

/* --- Hero Section --- */
.hero {
    min-height: 100vh;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    text-align: center;
    padding: 0 20px;
    transform-style: preserve-3d;
    transition: transform 1s ease;
}
.hero-content {
    max-width: 900px;
    transform: translateZ(50px);
}
.hero-badge {
    display: inline-block;
    padding: 8px 20px;
    background: rgba(255,255,255,0.05);
    border: 1px solid var(--neon-purple);
    border-radius: 30px;
    font-size: 0.9rem;
    color: var(--neon-pink);
    letter-spacing: 1px;
    margin-bottom: 25px;
    box-shadow: 0 0 20px rgba(123, 44, 191, 0.4);
}
.hero-title {
    font-size: clamp(3rem, 8vw, 6rem);
    font-weight: 900;
    line-height: 1.1;
    margin-bottom: 25px;
    text-shadow: 0 10px 30px rgba(0,0,0,0.5);
}
.hero-subtitle {
    font-size: 1.2rem;
    color: var(--text-secondary);
    max-width: 600px;
    margin: 0 auto 40px;
    line-height: 1.8;
}

.btn-primary {
    padding: 16px 40px;
    background: linear-gradient(45deg, var(--neon-purple), var(--neon-pink));
    color: #fff;
    border: none;
    border-radius: 30px;
    font-size: 1.2rem;
    font-weight: bold;
    text-decoration: none;
    display: inline-block;
    box-shadow: 0 10px 30px rgba(123, 44, 191, 0.6);
    transition: all 0.3s ease;
}
.btn-primary:hover {
    transform: translateY(-5px) scale(1.05);
    box-shadow: 0 15px 40px rgba(199, 125, 255, 0.8);
}

/* --- Bento Grid Portfolio (3D Tilting) --- */
.portfolio {
    padding: 100px 20px;
    max-width: 1300px;
    margin: 0 auto;
    transform-style: preserve-3d;
}
.section-title {
    font-size: 3rem;
    text-align: center;
    margin-bottom: 60px;
    text-shadow: 0 5px 15px rgba(0,0,0,0.5);
    transform: translateZ(20px);
}
.bento-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 30px;
    transform-style: preserve-3d;
}
.tilt-card {
    perspective: 1500px;
    aspect-ratio: 16 / 9; /* Perfect natural size for web screenshots */
    width: 100%;
    display: block;
    text-decoration: none;
    height: 100%;
}
.tilt-card-inner {
    width: 100%; height: 100%;
    position: relative;
    border-radius: 24px;
    border: 1px solid var(--glass-border);
    overflow: hidden;
    transform-style: preserve-3d;
    transition: transform 0.1s ease, box-shadow 0.1s ease;
    /* initial shadow */
    box-shadow: 0 10px 30px rgba(0,0,0,0.5);
}
.portfolio-img {
    width: 100%; height: 100%;
    object-fit: cover;
    transform: translateZ(0); /* Base layer */
    filter: brightness(0.8);
    transition: 0.5s;
}
.tilt-card:hover .portfolio-img { filter: brightness(1); transform: scale(1.05); }

.portfolio-overlay {
    position: absolute;
    inset: 0;
    background: linear-gradient(to top, rgba(5,5,8,0.9) 0%, rgba(123,44,191,0.2) 100%);
    display: flex;
    flex-direction: column;
    justify-content: flex-end;
    padding: 30px;
    transform: translateZ(50px); /* PUSHED OUT IN 3D! */
    pointer-events: none;
}
.portfolio-overlay h3 {
    font-size: 1.5rem; color: #fff; margin-bottom: 5px;
    text-shadow: 0 5px 15px rgba(0,0,0,0.8);
}
.portfolio-overlay p {
    color: var(--neon-pink); font-size: 1rem;
}

/* --- Advanced 3D Sequential Terminal Funnel --- */
.funnel-section {
    padding: 100px 20px 150px;
    max-width: 900px;
    margin: 0 auto;
    transform-style: preserve-3d;
}
.glass-terminal {
    background: var(--glass-bg);
    border: 1px solid var(--glass-border);
    backdrop-filter: blur(30px);
    -webkit-backdrop-filter: blur(30px);
    border-radius: 20px;
    box-shadow: 0 20px 60px rgba(0,0,0,0.6), inset 0 0 20px rgba(255,255,255,0.05);
    overflow: hidden;
    position: relative;
    min-height: 450px;
    display: flex;
    flex-direction: column;
    transform: translateZ(20px);
}
.terminal-header {
    background: rgba(0,0,0,0.4);
    padding: 15px 20px;
    border-bottom: 1px solid var(--glass-border);
}
.dots { display: flex; gap: 8px; }
.dots span { width: 12px; height: 12px; border-radius: 50%; }

.steps-container {
    padding: 40px;
    flex: 1;
    position: relative;
    perspective: 1000px;
}
.setup-step {
    position: absolute;
    top: 40px; left: 40px; right: 40px;
    opacity: 0; pointer-events: none;
    transform: rotateX(-30deg) translateY(50px);
    transition: all 0.6s cubic-bezier(0.2, 0.8, 0.2, 1);
}
.setup-step.active {
    opacity: 1; pointer-events: all;
    transform: rotateX(0) translateY(0);
}
.setup-step.passed {
    opacity: 0;
    transform: rotateX(30deg) translateY(-50px);
}

.setup-step h3 { font-size: 1.8rem; margin-bottom: 30px; text-align: center; }

.action-btn {
    width: 100%;
    background: rgba(255,255,255,0.05);
    border: 1px solid var(--glass-border);
    color: var(--text-primary);
    padding: 18px 25px;
    border-radius: 12px;
    font-size: 1.1rem;
    margin-bottom: 15px;
    cursor: pointer;
    display: flex;
    align-items: center;
    gap: 15px;
    transition: all 0.3s ease;
}
.action-btn i { font-size: 1.4rem; color: var(--neon-pink); }
.action-btn:hover {
    background: rgba(123, 44, 191, 0.4);
    border-color: var(--neon-pink);
    transform: translateX(10px);
    box-shadow: 0 5px 20px rgba(123, 44, 191, 0.4);
}
.action-btn.ghost {
    background: transparent; border-color: transparent;
    justify-content: center; color: var(--text-secondary);
}
.action-btn.ghost:hover { background: rgba(255,255,255,0.1); transform: none; }

.final-step { text-align: center; }
.success-icon {
    width: 80px; height: 80px; background: var(--neon-purple); border-radius: 50%;
    display: flex; align-items: center; justify-content: center;
    font-size: 2.5rem; margin: 0 auto 20px;
    box-shadow: 0 0 30px var(--neon-purple);
    animation: popIn 0.5s cubic-bezier(0.2, 0.8, 0.2, 1);
}
.whatsapp-btn {
    background: linear-gradient(135deg, #25D366, #128C7E);
    border: none; color: #fff; padding: 18px 30px;
    border-radius: 30px; font-size: 1.2rem; font-weight: bold;
    cursor: pointer; box-shadow: 0 10px 30px rgba(37, 211, 102, 0.4);
    transition: all 0.3s; margin-top: 20px;
    display: inline-flex; align-items: center; gap: 10px;
}
.whatsapp-btn:hover { transform: translateY(-5px); box-shadow: 0 15px 40px rgba(37, 211, 102, 0.6); }

@keyframes popIn {
    0% { transform: scale(0); }
    80% { transform: scale(1.2); }
    100% { transform: scale(1); }
}

/* Responsiveness */

@media (max-width: 900px) {
    .showroom-container { flex-direction: column; padding: 30px 15px; gap: 20px; border-radius: 20px; }
    
    .showroom-controls { 
        flex: none; 
        width: 100%; 
        flex-direction: row; 
        flex-wrap: nowrap; 
        overflow-x: auto; 
        overflow-y: hidden; 
        justify-content: flex-start; 
        padding-bottom: 20px; 
        scroll-snap-type: x mandatory; 
        -webkit-overflow-scrolling: touch;
        gap: 15px;
    }
    .showroom-controls::-webkit-scrollbar { height: 6px; }
    .showroom-controls::-webkit-scrollbar-thumb { background: rgba(199, 125, 255, 0.4); border-radius: 6px; }
    
    .project-btn { 
        flex: 0 0 auto; 
        min-width: 200px; 
        text-align: center; 
        justify-content: center; 
        padding: 15px; 
        scroll-snap-align: start; 
        font-size: 1rem;
        flex-direction: column;
        gap: 5px;
    }
    html[dir="ltr"] .project-btn { flex-direction: column; }
    .custom-project-btn { flex: 0 0 auto; min-width: 200px; text-align: center; justify-content: center; margin-top: 0 !important; scroll-snap-align: start; flex-direction: column; }
    
    .project-btn.active { transform: translateY(-5px); box-shadow: 0 10px 20px rgba(0,0,0,0.5), inset 0 0 10px rgba(199,125,255,0.1); }
    html[dir="ltr"] .project-btn.active { transform: translateY(-5px); }
    
    .showroom-monitor-wrapper { flex: none; width: 100%; }
    .monitor-3d { 
        transform: none !important; 
        aspect-ratio: auto; 
        height: 60vh; 
        min-height: 450px;
        box-shadow: 0 15px 40px rgba(0,0,0,0.8), 0 0 0 2px #1a1a1c, 0 0 0 4px #2b2b2d;
    }
    .monitor-screen { height: 100%; flex: 1; }
    .monitor-screen iframe { height: 100%; width: 100%; min-height: 100%; }
}
/* --- Splash Screen --- */
.splash-screen {
    position: fixed;
    top: 0; left: 0; width: 100vw; height: 100vh;
    background: #050508;
    z-index: 9999;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    transition: opacity 0.8s ease;
}
.splash-logo {
    width: 250px;
    margin-bottom: 30px;
    filter: drop-shadow(0 0 20px rgba(199, 125, 255, 0.4));
    transition: opacity 0.5s ease;
}
.splash-loader {
    width: 200px; height: 4px; background: rgba(255,255,255,0.1); border-radius: 4px; position: relative; overflow: hidden;
}
.splash-loader::after {
    content: ''; position: absolute; left: 0; top: 0; height: 100%; width: 0%;
    background: var(--neon-pink);
    animation: loadBar 3s ease-in-out forwards;
}
@keyframes loadBar { 0% { width: 0%; } 100% { width: 100%; } }

.boot-sequence {
    position: absolute; bottom: 30px; right: 30px; text-align: right; 
    font-family: 'Consolas', monospace; font-size: 0.8rem; color: var(--neon-pink); 
    padding-right: 15px; border-right: 2px solid var(--neon-purple); white-space: pre-line;
}
html[dir="ltr"] .boot-sequence { right: auto; left: 30px; text-align: left; border-right: none; border-left: 2px solid var(--neon-purple); padding-right: 0; padding-left: 15px; }

/* Custom Scrollbar */
::-webkit-scrollbar { width: 10px; }
::-webkit-scrollbar-track { background: var(--bg-dark); }
::-webkit-scrollbar-thumb { background: rgba(123, 44, 191, 0.8); border-radius: 10px; }
::-webkit-scrollbar-thumb:hover { background: var(--neon-pink); }

/* --- Services / Capabilities --- */
.services, .pricing-section {
    padding: 100px 20px;
    max-width: 1300px;
    margin: 0 auto;
    position: relative;
    z-index: 5;
}
.services-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 30px;
}
.service-icon {
    font-size: 3rem;
    color: var(--neon-pink);
    margin-bottom: 20px;
    text-shadow: 0 0 15px rgba(199, 125, 255, 0.5);
}

/* --- Tech Stack Marquee --- */
.tech-stack-marquee {
    width: 100%;
    overflow: hidden;
    padding: 40px 0;
    background: rgba(10, 5, 25, 0.5);
    border-top: 1px solid var(--glass-border);
    border-bottom: 1px solid var(--glass-border);
    white-space: nowrap;
    position: relative;
    transform: translateZ(20px);
}
.marquee-track {
    display: inline-block;
    animation: marquee 20s linear infinite;
}
.marquee-track span { margin: 0 10px 0 30px; font-weight: bold; color: var(--text-secondary); font-size: 1.2rem; }
.marquee-track i { font-size: 1.5rem; color: var(--neon-purple); vertical-align: middle; }
@keyframes marquee { 0% { transform: translateX(0); } 100% { transform: translateX(-50%); } }

/* --- Impact Stats --- */
.impact-stats {
    display: flex;
    justify-content: space-around;
    padding: 80px 20px;
    background: radial-gradient(circle, rgba(123, 44, 191, 0.1), transparent);
    transform-style: preserve-3d;
}
.stat-item { text-align: center; }
.stat-item h3 { font-size: 4rem; color: var(--neon-pink); margin-bottom: 10px; font-family: 'Consolas', monospace; text-shadow: 0 0 20px rgba(199, 125, 255, 0.4); font-weight: bold; }

/* --- Process Timeline --- */
.process-timeline {
    max-width: 1000px; margin: 0 auto; padding: 100px 20px; transform-style: preserve-3d;
}
.timeline-container { position: relative; padding-right: 30px; }
.timeline-container::before {
    content: ''; position: absolute; right: 0; top: 0; bottom: 0; width: 2px;
    background: linear-gradient(to bottom, var(--neon-purple), var(--neon-pink));
}
html[dir="ltr"] .timeline-container { padding-right: 0; padding-left: 30px; }
html[dir="ltr"] .timeline-container::before { right: auto; left: 0; }
.timeline-item { position: relative; margin-bottom: 50px; }
.timeline-dot {
    position: absolute; right: -40px; top: 0;
    width: 22px; height: 22px; background: var(--bg-dark);
    border: 3px solid var(--neon-pink); border-radius: 50%;
    color: #fff; display: flex; align-items: center; justify-content: center;
    font-size: 0.7rem; font-weight: bold; box-shadow: 0 0 15px var(--neon-pink);
}
html[dir="ltr"] .timeline-dot { right: auto; left: -40px; }
.timeline-content {
    background: var(--glass-bg); padding: 30px; border-radius: 20px;
    border: 1px solid var(--glass-border);
}
.timeline-content h3 { color: var(--neon-pink); margin-bottom: 15px; font-size: 1.5rem; }

/* Global Reveal & General Resp */
.reveal { opacity: 0; transform: translateY(50px); transition: 0.8s cubic-bezier(0.1, 0.9, 0.2, 1); }
.reveal.active { opacity: 1; transform: translateY(0); }

@media (max-width: 768px) {
    .nav-container { 
        flex-direction: row; flex-wrap: nowrap; justify-content: space-between; align-items: center;
        padding: 8px 15px; border-radius: 50px; gap: 10px; width: 90%; top: 15px;
    }
    .logo-container { order: 1; display: flex; justify-content: flex-start; }
    .site-logo { height: 32px; }
    .nav-links { 
        order: 2; width: auto; justify-content: flex-end; gap: 0;
        margin-top: 0; padding-top: 0; border-top: none;
    }
    .nav-links a:not(.nav-btn) { display: none; }
    .nav-links .nav-btn { font-size: 0.8rem; padding: 6px 12px; white-space: nowrap; }
    .nav-controls { order: 3; }
    .icon-btn.lang-toggle { width: 35px; height: 35px; font-size: 0.75rem; }
    .hero-title { font-size: 2.5rem; }
    .impact-stats { flex-direction: column; gap: 40px; }
    .timeline-container { padding-right: 20px; }
    .timeline-container::before { right: 5px; }
    .timeline-dot { right: -5px; }
    html[dir="ltr"] .timeline-container { padding-right: 0; padding-left: 20px; }
    html[dir="ltr"] .timeline-container::before { left: 5px; }
    html[dir="ltr"] .timeline-dot { left: -5px; }
    .bento-grid { grid-template-columns: 1fr; }
    .hero-content { padding-top: 100px; }
}

/* Wizard / Footer Support classes */
.wizard-container, .footer-area { display: block; position: relative; z-index: 10; }
/* --- Advanced 3D Sequential Terminal Funnel --- */
.funnel-section {
    padding: 100px 20px 150px;
    max-width: 900px;
    margin: 0 auto;
    transform-style: preserve-3d;
}
.glass-terminal {
    background: var(--glass-bg);
    border: 1px solid var(--glass-border);
    backdrop-filter: blur(30px);
    -webkit-backdrop-filter: blur(30px);
    border-radius: 20px;
    box-shadow: 0 20px 60px rgba(0,0,0,0.6), inset 0 0 20px rgba(255,255,255,0.05);
    overflow: hidden;
    position: relative;
    min-height: 450px;
    display: flex;
    flex-direction: column;
    transform: translateZ(20px);
}
.terminal-header {
    background: rgba(0,0,0,0.4);
    padding: 15px 20px;
    border-bottom: 1px solid var(--glass-border);
}
.dots { display: flex; gap: 8px; }
.dots span { width: 12px; height: 12px; border-radius: 50%; }

.steps-container {
    padding: 40px;
    flex: 1;
    position: relative;
    perspective: 1000px;
}
.setup-step {
    position: absolute;
    top: 40px; left: 40px; right: 40px;
    opacity: 0; pointer-events: none;
    transform: rotateX(-30deg) translateY(50px);
    transition: all 0.6s cubic-bezier(0.2, 0.8, 0.2, 1);
}
.setup-step.active {
    opacity: 1; pointer-events: all;
    transform: rotateX(0) translateY(0);
    position: relative;
    top: 0; left: 0; right: auto;
    width: 100%;
}
.setup-step.passed {
    opacity: 0;
    transform: rotateX(30deg) translateY(-50px);
}

.setup-step h3 { font-size: 1.8rem; margin-bottom: 30px; text-align: center; }

.action-btn {
    width: 100%;
    background: rgba(255,255,255,0.05);
    border: 1px solid var(--glass-border);
    color: var(--text-primary);
    padding: 18px 25px;
    border-radius: 12px;
    font-size: 1.1rem;
    margin-bottom: 15px;
    cursor: pointer;
    display: flex;
    align-items: center;
    gap: 15px;
    transition: all 0.3s ease;
}
.action-btn i { font-size: 1.4rem; color: var(--neon-pink); }
.action-btn:hover {
    background: rgba(123, 44, 191, 0.4);
    border-color: var(--neon-pink);
    transform: translateX(10px);
    box-shadow: 0 5px 20px rgba(123, 44, 191, 0.4);
}
.action-btn.ghost {
    background: transparent; border-color: transparent;
    justify-content: center; color: var(--text-secondary);
}
.action-btn.ghost:hover { background: rgba(255,255,255,0.1); transform: none; }

.final-step { text-align: center; }
.success-icon {
    width: 80px; height: 80px; background: var(--neon-purple); border-radius: 50%;
    display: flex; align-items: center; justify-content: center;
    font-size: 2.5rem; margin: 0 auto 20px;
    box-shadow: 0 0 30px var(--neon-purple);
    animation: popIn 0.5s cubic-bezier(0.2, 0.8, 0.2, 1);
}
.whatsapp-btn {
    background: linear-gradient(135deg, #25D366, #128C7E);
    border: none; color: #fff; padding: 18px 25px;
    border-radius: 30px; font-size: 1.1rem; font-weight: bold;
    cursor: pointer; box-shadow: 0 10px 30px rgba(37, 211, 102, 0.4);
    transition: all 0.3s; margin-top: 20px;
    display: inline-flex; align-items: center; justify-content: center;
    gap: 10px; white-space: nowrap; max-width: 100%; margin-bottom: 10px;
}
.whatsapp-btn:hover { transform: translateY(-5px); box-shadow: 0 15px 40px rgba(37, 211, 102, 0.6); }

@keyframes popIn {
    0% { transform: scale(0); }
    80% { transform: scale(1.2); }
    100% { transform: scale(1); }
}

.hidden { opacity: 0 !important; pointer-events: none !important; }

/* --- Nav Links --- */
.nav-links { display: flex; gap: 25px; align-items: center; }
.nav-links a {
    color: var(--text-primary); text-decoration: none; font-weight: 600;
    font-size: 1rem; transition: all 0.3s ease; position: relative;
    text-shadow: 0 0 10px rgba(0,0,0,0.5); font-family: var(--font-primary);
}
.nav-links a:hover { color: var(--neon-pink); text-shadow: 0 0 15px rgba(199, 125, 255, 0.8); transform: translateY(-2px); }
.nav-links a::after {
    content: ''; position: absolute; bottom: -5px; left: 0; width: 0%; height: 2px;
    background: var(--neon-pink); transition: 0.3s ease;
}
.nav-links a:hover::after { width: 100%; }
.nav-links .nav-btn {
    background: rgba(199, 125, 255, 0.1); border: 1px solid var(--neon-purple);
    padding: 8px 20px; border-radius: 20px; color: var(--neon-pink);
    box-shadow: inset 0 0 10px rgba(123, 44, 191, 0.3);
}
.nav-links .nav-btn::after { display: none; }
.nav-links .nav-btn:hover { background: var(--neon-purple); color: #fff; box-shadow: 0 0 20px var(--neon-purple); transform: scale(1.05); }

/* --- Interactive 3D Showroom Desktop --- */
.showroom-container {
    display: flex; gap: 40px; background: var(--glass-bg); border: 1px solid var(--glass-border);
    backdrop-filter: blur(20px); border-radius: 30px; padding: 40px; margin-top: 40px;
    box-shadow: 0 20px 50px rgba(0,0,0,0.5), inset 0 0 20px rgba(199, 125, 255, 0.1);
    align-items: center; transform-style: preserve-3d; overflow: visible;
}
.showroom-controls { flex: 0 0 330px; display: flex; flex-direction: column; gap: 12px; z-index: 10; }
.project-btn {
    background: rgba(0,0,0,0.4); border: 1px solid rgba(255,255,255,0.05); color: var(--text-secondary);
    padding: 16px 20px; border-radius: 16px; text-align: right; cursor: pointer;
    transition: all 0.4s cubic-bezier(0.1, 0.9, 0.2, 1); display: flex; align-items: center; gap: 15px;
    font-family: var(--font-primary); font-size: 1.05rem; position: relative; overflow: hidden;
}
html[dir="ltr"] .project-btn { text-align: left; }
.project-btn::before {
    content: ''; position: absolute; top: 0; left: -100%; width: 50%; height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255,255,255,0.05), transparent);
    transform: skewX(-20deg); transition: 0.5s;
}
.project-btn:hover::before { left: 150%; }
.project-btn:hover { background: rgba(123, 44, 191, 0.2); border-color: rgba(199, 125, 255, 0.3); color: #fff; transform: translateX(-10px); }
html[dir="ltr"] .project-btn:hover { transform: translateX(10px); }
.project-btn.active {
    background: rgba(123, 44, 191, 0.6); border-color: var(--neon-pink); color: #fff;
    box-shadow: 0 10px 30px rgba(123, 44, 191, 0.4); transform: translateX(-15px);
}
html[dir="ltr"] .project-btn.active { transform: translateX(15px); }
.project-btn .p-num { font-family: 'Consolas', monospace; font-size: 0.9rem; color: var(--neon-pink); opacity: 0.8; }

.showroom-monitor-wrapper { flex: 1; position: relative; perspective: 2000px; display: flex; justify-content: center; align-items: center; min-height: 500px; }
.monitor-3d {
    width: 100%; aspect-ratio: 16 / 10; background: #0a0a0c; border-radius: 20px; border: 2px solid #2b2b2d;
    box-shadow: -30px 40px 60px rgba(0,0,0,0.8), inset 0 0 0 4px #1a1a1c, 0 0 20px rgba(199,125,255,0.1);
    transform: rotateX(15deg) rotateY(-25deg) rotateZ(5deg); transform-origin: center;
    transition: transform 0.8s cubic-bezier(0.2, 0.8, 0.2, 1); display: flex; flex-direction: column; overflow: hidden; position: relative; z-index: 2;
}
.monitor-base {
    position: absolute; bottom: 30px; width: 70%; height: 30px; background: rgba(0,0,0,0.9);
    filter: blur(20px); border-radius: 50%; transform: rotateX(60deg) rotateY(-25deg); z-index: 1;
}
.monitor-glow {
    position: absolute; top: 50%; left: 50%; width: 120%; height: 120%; transform: translate(-50%, -50%);
    background: radial-gradient(circle, rgba(123,44,191,0.15) 0%, transparent 60%); pointer-events: none; z-index: 0;
}
.monitor-3d.faces-user { transform: rotateX(0) rotateY(0) rotateZ(0) scale(1.05); box-shadow: 0 30px 80px rgba(0,0,0,0.9), 0 0 0 2px #444; z-index: 50; }
.monitor-3d.faces-user .frame-overlay { opacity: 0; pointer-events: none; }
.browser-header { height: 35px; background: #1e1e20; border-bottom: 1px solid #2b2b2d; display: flex; align-items: center; padding: 0 15px; gap: 15px; }
.mac-dots { display: flex; gap: 6px; }
.mac-dots span { width: 10px; height: 10px; border-radius: 50%; }
.mac-dots span:nth-child(1) { background: #ff5f56; }
.mac-dots span:nth-child(2) { background: #ffbd2e; }
.mac-dots span:nth-child(3) { background: #27c93f; }
.browser-url { background: #0a0a0c; flex: 1; height: 22px; border-radius: 6px; font-family: 'Consolas', monospace; font-size: 0.75rem; color: #888; display: flex; align-items: center; padding: 0 10px; border: 1px solid #2b2b2d; max-width: 400px; margin: 0 auto; overflow: hidden; white-space: nowrap; text-overflow: ellipsis; direction: ltr; }
.monitor-screen { flex: 1; position: relative; background: #000; display: flex; flex-direction: column; }
.monitor-screen iframe { width: 100%; height: 100%; min-height: 100%; border: none; background: #fff; opacity: 0.95; transition: opacity 0.3s; flex: 1; }
.monitor-screen iframe:hover { opacity: 1; }
.frame-overlay { position: absolute; inset: 0; background: rgba(0,0,0,0.4); backdrop-filter: blur(4px); display: flex; justify-content: center; align-items: center; cursor: pointer; transition: opacity 0.5s ease; width: 100%; height: 100%; }
.overlay-content { background: rgba(123, 44, 191, 0.9); padding: 15px 30px; border-radius: 30px; color: #fff; font-weight: bold; display: flex; align-items: center; gap: 10px; box-shadow: 0 10px 30px rgba(123, 44, 191, 0.4); border: 1px solid rgba(255,255,255,0.2); animation: pulse 2s infinite alternate; }

/* --- Grand Footer --- */
.grand-footer {
    background: linear-gradient(to top, #020205 0%, transparent 100%);
    padding: 100px 50px 30px; border-top: 1px solid rgba(199, 125, 255, 0.1);
    position: relative; overflow: hidden; margin-top: 50px; z-index: 10;
}
.footer-content { 
    max-width: 1300px; margin: 0 auto; display: flex; flex-direction: row; justify-content: space-between; 
    align-items: center; gap: 40px; position: relative; z-index: 2; padding-bottom: 60px;
}
.footer-brand { flex: 1; text-align: left; }
html[dir="rtl"] .footer-brand { text-align: right; }
.footer-logo { width: 220px; filter: drop-shadow(0 0 15px rgba(199, 125, 255, 0.3)); transition: 0.5s; }
.footer-logo:hover { transform: scale(1.05); filter: drop-shadow(0 0 25px rgba(255, 255, 255, 0.5)); }
.footer-brand p { 
    color: var(--text-secondary); max-width: 450px; line-height: 1.8; margin-top: 25px; font-size: 1.1rem; 
}

.footer-links { display: flex; flex-direction: column; align-items: flex-end; gap: 20px; }
html[dir="rtl"] .footer-links { align-items: flex-start; }

.contact-badge {
    display: inline-flex; align-items: center; gap: 15px; background: rgba(199, 125, 255, 0.05);
    border: 1px solid rgba(199, 125, 255, 0.3); padding: 12px 25px; border-radius: 50px;
    color: #fff; text-decoration: none; font-size: 1.2rem; transition: all 0.4s ease;
    box-shadow: 0 10px 30px rgba(0,0,0,0.3); backdrop-filter: blur(10px);
}
.contact-badge:hover {
    background: rgba(123, 44, 191, 0.4); border-color: var(--neon-pink);
    transform: translateY(-5px); box-shadow: 0 15px 40px rgba(123, 44, 191, 0.6);
}
.contact-badge i { color: var(--neon-pink); font-size: 1.4rem; }
.pulse-dot {
    width: 12px; height: 12px; background: #25D366; border-radius: 50%; box-shadow: 0 0 10px #25D366;
    animation: pulseObj 2s infinite;
}
@keyframes pulseObj {
    0% { box-shadow: 0 0 0 0 rgba(37, 211, 102, 0.7); }
    70% { box-shadow: 0 0 0 15px rgba(37, 211, 102, 0); }
    100% { box-shadow: 0 0 0 0 rgba(37, 211, 102, 0); }
}
.contact-phone { text-decoration: none; font-weight: bold; font-family: 'Consolas', monospace; direction: ltr; }

.footer-bottom { 
    border-top: 1px solid rgba(255,255,255,0.05); padding-top: 30px; width: 100%; max-width: 1300px;
    display: flex; justify-content: space-between; align-items: center; margin: 0 auto;
    color: #777; font-size: 0.95rem; position: relative; z-index: 2;
}

@media (max-width: 768px) {
    .grand-footer { padding: 60px 20px 30px; }
    .footer-content { flex-direction: column; text-align: center; gap: 40px; padding-bottom: 40px; }
    .footer-brand { text-align: center !important; }
    html[dir="rtl"] .footer-brand { text-align: center !important; }
    .footer-brand p { margin: 20px auto 0; }
    .footer-links { align-items: center !important; width: 100%; }
    html[dir="rtl"] .footer-links { align-items: center !important; }
    .footer-bottom { flex-direction: column; gap: 15px; text-align: center; font-size: 0.85rem; }
}


@media (max-width: 900px) {
    .showroom-container { flex-direction: column !important; padding: 20px 10px !important; gap: 15px !important; border-radius: 20px !important; }
    .showroom-controls { 
        flex: none !important; width: 100% !important; flex-direction: row !important; flex-wrap: nowrap !important; 
        overflow-x: auto !important; overflow-y: hidden !important; justify-content: flex-start !important; 
        padding-bottom: 10px !important; scroll-snap-type: x mandatory !important; -webkit-overflow-scrolling: touch !important; gap: 10px !important;
    }
    .project-btn { 
        flex: 0 0 auto !important; min-width: 180px !important; padding: 12px 15px !important; font-size: 0.9rem !important; 
        flex-direction: column !important; text-align: center !important; justify-content: center !important; gap: 5px !important; scroll-snap-align: start !important; 
    }
    .custom-project-btn { min-width: 180px !important; padding: 12px 15px !important; }
    .showroom-monitor-wrapper { flex: none !important; width: 100% !important; min-height: 350px !important; }
    .monitor-3d { aspect-ratio: auto !important; height: 50vh !important; min-height: 350px !important; transform: none !important; }
}


/* --- Luxury Tilt Cards (Services & Pricing) --- */
.service-card.tilt-card {
    aspect-ratio: auto !important; height: 100%; min-height: 320px;
}
.tilt-card {
    position: relative; perspective: 1000px; transform-style: preserve-3d; border-radius: 24px;
}
.tilt-card-inner {
    background: rgba(15, 10, 25, 0.7);
    border: 1px solid rgba(199, 125, 255, 0.15);
    border-radius: 24px;
    padding: 40px 30px;
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
    box-shadow: 0 15px 35px rgba(0,0,0,0.5), inset 0 0 20px rgba(199, 125, 255, 0.05);
    backdrop-filter: blur(20px);
    transition: all 0.5s cubic-bezier(0.2, 0.8, 0.2, 1);
    height: 100%;
}
.tilt-card:hover .tilt-card-inner {
    transform: translateZ(25px) translateY(-10px);
    box-shadow: 0 30px 60px rgba(0,0,0,0.8), inset 0 0 30px rgba(199, 125, 255, 0.15);
    border-color: rgba(199, 125, 255, 0.5);
    background: rgba(25, 15, 40, 0.85);
}
.tilt-card::before {
    content: ''; position: absolute; inset: -2px; border-radius: 26px;
    background: linear-gradient(135deg, var(--neon-pink), var(--neon-purple), transparent, transparent);
    z-index: -1; opacity: 0; transition: opacity 0.5s ease;
}
.tilt-card:hover::before { opacity: 0.6; }
.tilt-card-inner h3 {
    color: #fff; font-size: 1.6rem; margin-bottom: 15px; font-weight: 800; font-family: var(--font-primary);
}
.tilt-card-inner p {
    color: rgba(255, 255, 255, 0.75); line-height: 1.9; font-size: 1.05rem; margin: 0;
}


/* --- Giant Watermark Separator --- */
.giant-watermark {
    width: 100%; text-align: center; overflow: hidden; padding: 0;
    margin: -30px 0 -10px 0; position: relative; z-index: 1; pointer-events: none; user-select: none;
}
.giant-watermark span {
    font-size: 20vw; font-weight: 900; color: rgba(199, 125, 255, 0.02); font-family: var(--font-primary);
    white-space: nowrap; text-transform: uppercase; display: inline-block; line-height: 0.75;
    background: linear-gradient(180deg, rgba(199, 125, 255, 0.04) 0%, transparent 100%);
    -webkit-background-clip: text; -webkit-text-fill-color: transparent; filter: drop-shadow(0 0 50px rgba(199, 125, 255, 0.05));
}
@media (max-width: 768px) {
    .giant-watermark span { font-size: 26vw; }
    .giant-watermark { margin: -10px 0 20px 0; }
}

