/* =========================================
   1. VARIABLES & RESET & CORE
   ========================================= */
:root {
    --bg-dark: #050505;
    --text-main: #FFFFFF;
    --text-muted: #9CA3AF;
    --border-light: rgba(255, 255, 255, 0.1);
    --primary: #EF44A5;
    --orange: #FF8C42;
    --logo-orange: #FF9F43;    
    --logo-pink: #F368E0;      
    --logo-purple: #5F27CD;    
    --logo-gradient: linear-gradient(135deg, var(--logo-orange), var(--logo-pink), var(--logo-purple));

    --font-sans: 'Inter', sans-serif;
    --font-display: 'Manrope', sans-serif;
    --font-mono: 'Space Mono', monospace;
    
    --nav-height: 120px; 
    --nav-scroll-height: 80px;

    --ease-out: cubic-bezier(0.23, 1, 0.32, 1);
    --ease-cinematic: cubic-bezier(0.19, 1, 0.22, 1);
}

*, *::before, *::after { margin: 0; padding: 0; box-sizing: border-box; -webkit-tap-highlight-color: transparent; }

html { 
    background-color: var(--bg-dark);
    touch-action: pan-x pan-y; 
    scrollbar-width: thin;
    scrollbar-color: var(--logo-pink) var(--bg-dark);
}

html.lenis, html.lenis body { height: auto; }
.lenis.lenis-smooth { scroll-behavior: auto !important; }
.lenis.lenis-smooth [data-lenis-prevent] { overscroll-behavior: contain; }
.lenis.lenis-stopped { overflow: hidden; }
.lenis.lenis-scrolling iframe { pointer-events: none; }

::-webkit-scrollbar {
    width: 6px; 
}

::-webkit-scrollbar-track {
    background: var(--bg-dark);
}

::-webkit-scrollbar-thumb {
    background-color: var(--logo-pink);
    border-radius: 6px;
    border: 1px solid var(--bg-dark); 
}

body {
    color: var(--text-main);
    font-family: var(--font-sans);
    overflow-x: hidden;
    line-height: 1.6;
    background-color: transparent;
    -webkit-font-smoothing: antialiased;
    cursor: none; 
}

/* =========================================
   CUSTOM CURSOR STYLES
   ========================================= */
body, a, button, .btn, input, textarea, label, select, .nav-link {
    cursor: auto;
}

.cursor-dot,
.cursor-outline {
    position: fixed;
    top: 0;
    left: 0;
    transform: translate(-50%, -50%);
    border-radius: 50%;
    z-index: 200001; 
    pointer-events: none; 
    display: none; 
}

.cursor-dot {
    width: 8px;
    height: 8px;
    background-color: var(--logo-pink);
}

.cursor-outline {
    width: 40px;
    height: 40px;
    border: 1px solid rgba(255, 255, 255, 0.5);
    transition: width 0.2s, height 0.2s, background-color 0.2s;
}

body.use-custom-cursor .cursor-dot,
body.use-custom-cursor .cursor-outline {
    display: block !important; 
}

body.use-custom-cursor,
body.use-custom-cursor a,
body.use-custom-cursor button,
body.use-custom-cursor .btn,
body.use-custom-cursor .nav-link {
    cursor: none !important;
}

body.use-custom-cursor.hovering .cursor-outline {
    width: 60px;
    height: 60px;
    background-color: rgba(255, 255, 255, 0.1);
    border-color: var(--logo-pink);
    backdrop-filter: blur(2px);
}

body.menu-open .cursor-dot,
body.menu-open .cursor-outline {
    display: none !important;
}

.reveal {
    opacity: 0;
    transform: translateY(30px);
    transition: all 1s var(--ease-out);
    will-change: opacity, transform;
}
.reveal.active {
    opacity: 1;
    transform: translateY(0);
}

.hero-load {
    opacity: 0;
    transform: translateY(30px);
    animation: fadeUpHero 1s cubic-bezier(0.23, 1, 0.32, 1) forwards;
    animation-fill-mode: both; 
    will-change: opacity, transform;
}

@keyframes fadeUpHero {
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.global-bg {
    position: fixed; 
    inset: 0; 
    z-index: -1; 
    pointer-events: none;
    background-color: rgb(11, 11, 13) !important;
    background-image: 
        radial-gradient(circle at 15% 50%, rgba(243, 104, 224, 0.35) 0%, transparent 60%),
        radial-gradient(circle at 85% 50%, rgba(100, 140, 255, 0.3) 0%, transparent 60%) !important;
    background-attachment: fixed !important;
    background-repeat: no-repeat !important;
    background-size: cover !important;
    margin: 0 !important;
    min-height: 100vh !important;
}

/* =========================================
   2. TYPOGRAPHY & UTILS
   ========================================= */
.container { max-width: 1440px; margin: 0 auto; padding: 0 1.5rem; }
.text-center { text-align: center; }

@media (min-width: 1025px) and (max-width: 1400px) {
    .container { 
        max-width: 1240px; 
        margin: 0 auto; 
        padding: 0 1.5rem; 
    }
}

.section { padding: 6rem 0; }

.hero-title-wrapper { perspective: 1000px; overflow: visible; transform-style: preserve-3d; will-change: transform; transform: translateZ(0); }
.title-display {
    font-family: var(--font-display);
    font-size: clamp(2.8rem, 5vw, 4.8rem);
    font-weight: 800;
    line-height: 1.1;
    margin-bottom: 1.5rem;
    letter-spacing: -0.02em;
    transform-style: preserve-3d;
}
.hero-line {
    display: inline-block; opacity: 0; transform-origin: 50% 100%; will-change: transform, opacity, filter;
    margin-right: 0.2em;
}
.title-display .hero-line.block-mode { display: block; margin-right: 0; }

.animate-in .hero-line { animation: cinematicReveal 1.4s var(--ease-cinematic) forwards; }
.animate-in .hero-line:nth-child(1) { animation-delay: 0.1s; }
.animate-in .hero-line:nth-child(2) { animation-delay: 0.3s; }
.animate-in .hero-line:nth-child(3) { animation-delay: 0.5s; }

@keyframes cinematicReveal {
    0% { opacity: 0; transform: scale(1.5) translateZ(100px) rotateX(25deg); filter: blur(15px); }
    100% { opacity: 1; transform: scale(1) translateZ(0) rotateX(0deg); filter: blur(0); }
}

.hero-typewriter-wrapper {
    font-family: var(--font-mono); font-size: 1.5rem; min-height: 3rem; 
    margin-bottom: 3rem; color: rgba(255,255,255,0.9); display: flex; align-items: center;
}
.typewriter-cursor {
    display: inline-block; width: 2px; height: 1.2em;
    background-color: var(--logo-pink); margin-left: 5px; animation: blink 1s infinite;  will-change: opacity;
}
@keyframes blink { 0%, 100% { opacity: 1; } 50% { opacity: 0; } }

.btn {
    display: inline-flex; align-items: center; justify-content: center;
    padding: 1rem 2.5rem; border-radius: 99px; font-weight: 700;
    text-transform: uppercase; font-size: 0.85rem; letter-spacing: 0.05em;
    text-decoration: none; transition: all 0.3s var(--ease-out);
    position: relative; overflow: hidden; border: 1px solid transparent;
}
.btn-primary { 
    background: linear-gradient(135deg, var(--logo-pink), var(--logo-orange)); 
    color: white; box-shadow: 0 10px 30px rgba(243, 104, 224, 0.2); border: none;
}
.btn-primary::before {
    content: ''; position: absolute; inset: 0;
    background: linear-gradient(135deg, var(--logo-orange), var(--logo-pink)); opacity: 0; transition: opacity 0.3s;
}
.btn-primary:hover::before { opacity: 1; }
.btn-primary:hover { transform: translateY(-3px); box-shadow: 0 20px 40px rgba(243, 104, 224, 0.3); }
.btn-primary span { position: relative; z-index: 1; }

.btn-outline { border-color: rgba(255,255,255,0.3); color: white; background: transparent; }
.btn-outline:hover { border-color: white; background: white; color: black; }

.scroll-down-btn {
    position: absolute; bottom: 0px; left: 50%; transform: translateX(-50%); font-weight: 900;
    display: flex; flex-direction: column; align-items: center; gap: 5px;
    color: rgba(255,255,255,0.6); text-decoration: none; font-size: 1rem;
    text-transform: uppercase; letter-spacing: 2px; z-index: 20; transition: color 0.3s;
}
.scroll-down-btn:hover { color: white; }
.scroll-arrow {
    font-size: 2rem; animation: bounce 2s infinite;
}
@keyframes bounce {
    0%, 20%, 50%, 80%, 100% { transform: translateY(0); }
    40% { transform: translateY(-10px); }
    60% { transform: translateY(-5px); }
}

/* =========================================
   3. NAVBAR
   ========================================= */
.navbar {
    position: fixed; top: 0; left: 0; width: 100%; height: var(--nav-height);
    z-index: 1000; transition: all 0.4s ease; display: flex; align-items: center;
}
.navbar.scrolled {
    background: rgba(5, 5, 5, 0.95); backdrop-filter: blur(20px);
    height: var(--nav-scroll-height);
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.5);
}
.nav-container {
    width: 100%; max-width: 1300px; margin: 0 auto; padding: 0 2rem;
    display: flex; justify-content: space-between; align-items: center; height: 100%;
}

.logo { text-decoration: none; display: flex; align-items: center; height: 100%; }
.logo img { height: 120px; width: auto; object-fit: contain; transition: height 0.4s ease; }
.navbar.scrolled .logo img { height: 100px; }

.desktop-menu { display: flex; gap: 2.5rem; align-items: center; }

.nav-link {
    color: rgba(255,255,255,0.7); 
    text-decoration: none; 
    font-size: 0.9rem;
    font-weight: 700; 
    text-transform: uppercase; 
    letter-spacing: 0.05em;
    position: relative; 
    transition: all 0.3s;
    padding: 8px 0; 
}

.nav-link::after {
    content: ''; 
    position: absolute; 
    bottom: 0; 
    left: 0; 
    width: 0; 
    height: 3px;
    background: linear-gradient(90deg, var(--logo-pink), var(--logo-orange));
    transition: width 0.3s cubic-bezier(0.25, 0.8, 0.25, 1);
    border-radius: 4px;
}
.nav-link::before { display: none; }

.nav-link:hover { color: white; }
.nav-link:hover::after { width: 100%; }
.nav-link.active { color: white; }
.nav-link.active::after { width: 100%; }

.dropdown { position: relative; height: 100%; display: flex; align-items: center; }

.dropdown-content {
    position: absolute; 
    top: 100%; 
    left: 50%; 
    transform: translateX(-50%) translateY(20px); 
    background: rgba(18, 18, 18, 0.95); 
    backdrop-filter: blur(20px); -webkit-backdrop-filter: blur(20px);
    border: 1px solid rgba(255, 255, 255, 0.1); 
    min-width: 340px; 
    border-radius: 24px; 
    padding: 1.2rem; 
    opacity: 0; 
    visibility: hidden; 
    transition: all 0.3s cubic-bezier(0.34, 1.56, 0.64, 1); 
    box-shadow: 0 20px 60px rgba(0,0,0,0.6);
    display: flex;
    flex-direction: column;
    gap: 8px; 
}

.dropdown:hover .dropdown-content { 
    opacity: 1; 
    visibility: visible; 
    transform: translateX(-50%) translateY(0); 
    margin-top: 10px;
}

.dropdown-item {
    display: flex;
    align-items: center;
    gap: 15px;
    padding: 12px 16px;
    color: #fff;
    text-decoration: none;
    border-radius: 16px;
    transition: background 0.2s ease, transform 0.2s ease;
}

.dropdown-item:hover { 
    background: rgba(255, 255, 255, 0.06); 
    transform: translateX(4px);
}

.dd-icon-box {
    width: 44px;
    height: 44px;
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.3rem;
    flex-shrink: 0;
}

.dd-box-pink { background: rgba(243, 104, 224, 0.15); color: var(--logo-pink); }
.dd-box-orange { background: rgba(255, 140, 66, 0.15); color: var(--logo-orange); }
.dd-box-purple { background: rgba(95, 39, 205, 0.15); color: var(--logo-purple); }

.dd-text-col {
    display: flex;
    flex-direction: column;
}

.dd-title {
    font-family: var(--font-display);
    font-weight: 700;
    font-size: 0.95rem;
    color: #fff;
    line-height: 1.2;
}

.dd-sub {
    font-family: var(--font-sans);
    font-size: 0.75rem;
    color: #999;
    font-weight: 400;
    margin-top: 2px;
}

.mobile-toggle { 
    display: none; background: none; border: none; 
    width: 40px; height: 40px; position: relative; z-index: 2001; 
}
.hamburger { position: relative; width: 30px; height: 20px; }
.hamburger span {
    position: absolute; left: 0; width: 100%; height: 3px;
    background: linear-gradient(90deg, var(--logo-pink), var(--logo-orange));
    border-radius: 3px; transition: all 0.3s var(--ease-out);
}
.hamburger span:nth-child(1) { top: 0; }
.hamburger span:nth-child(2) { top: 50%; transform: translateY(-50%); width: 70%; }
.hamburger span:nth-child(3) { bottom: 0; }
.mobile-toggle:hover .hamburger span:nth-child(2) { width: 100%; }
.mobile-toggle.active .hamburger span:nth-child(1) { top: 50%; transform: translateY(-50%) rotate(45deg); }
.mobile-toggle.active .hamburger span:nth-child(2) { opacity: 0; transform: translateX(20px); }
.mobile-toggle.active .hamburger span:nth-child(3) { bottom: 50%; transform: translateY(50%) rotate(-45deg); }

/* =========================================
   MOBILE MENU OVERLAY
   ========================================= */
.mobile-menu-overlay {
    position: fixed; inset: 0; 
    background: #080808; 
    z-index: 9000;
    display: flex; flex-direction: column;
    padding: 1.5rem 1.5rem;
    transform: translateX(100%); 
    transition: transform 0.5s cubic-bezier(0.25, 1, 0.5, 1); 
    overflow-y: auto; 
    -webkit-backface-visibility: hidden;
    backface-visibility: hidden;
    scrollbar-width: thin;
    scrollbar-color: var(--logo-pink) transparent;
    border-top: 4px solid var(--logo-pink);
}

.mobile-menu-overlay::-webkit-scrollbar {
    width: 4px; 
}
.mobile-menu-overlay::-webkit-scrollbar-track {
    background: transparent;
}
.mobile-menu-overlay::-webkit-scrollbar-thumb {
    background: var(--logo-pink);
    border-radius: 4px;
}

.mobile-menu-overlay.active { transform: translateX(0); }

.mobile-menu-header {
    display: flex; justify-content: space-between; align-items: center;
    margin-bottom: 2rem; width: 100%;
}
.mobile-logo-img { height: 80px; width: auto; object-fit: contain; }

.mobile-close-btn { 
    background: rgba(255, 255, 255, 0.1); 
    border: 1px solid rgba(255, 255, 255, 0.1); 
    backdrop-filter: none !important;
    -webkit-backdrop-filter: none !important;
    color: white;
    width: 44px;
    height: 44px;
    border-radius: 50%;
    display: flex; 
    align-items: center; 
    justify-content: center;
    font-size: 1.5rem; 
    transition: all 0.3s ease;
}
.mobile-close-btn:hover { 
    background: rgba(255, 255, 255, 0.2);
    transform: rotate(90deg); 
    color: var(--logo-pink); 
    border-color: var(--logo-pink);
}

.mobile-menu-body {
    display: flex; flex-direction: column; gap: 0.8rem; width: 100%;
    flex: 1; 
}

.mobile-nav-card {
    display: flex; justify-content: space-between; align-items: center;
    background: rgba(255, 255, 255, 0.04);
    border: 1px solid rgba(255, 255, 255, 0.08);
    border-radius: 18px;
    padding: 1.2rem 1.5rem;
    text-decoration: none;
    transition: all 0.3s ease;
    opacity: 0; transform: translateY(20px);
}
.mobile-menu-overlay.active .mobile-nav-card {
    opacity: 1; transform: translateY(0);
}

.mobile-nav-card:hover {
    background: rgba(255, 255, 255, 0.08);
    border-color: rgba(255, 255, 255, 0.2);
    transform: translateX(5px);
}

.mobile-card-text { display: flex; flex-direction: column; }
.mobile-card-title {
    color: white; font-family: var(--font-display); font-weight: 700; font-size: 1.3rem;
    line-height: 1.2;
}
.mobile-card-sub {
    color: #888; font-size: 0.85rem; margin-top: 4px; font-weight: 400;
}
.mobile-card-icon {
    color: var(--logo-pink); font-size: 1.2rem;
}

.mobile-menu-footer {
    margin-top: 2rem;
    width: 100%;
}

.mobile-contact-highlight {
    position: relative;
    background: black;
    border-radius: 20px;
    padding: 1.5rem;
    text-decoration: none;
    display: flex; justify-content: space-between; align-items: center;
    overflow: hidden;
    margin-bottom: 1.5rem;
    opacity: 0; transform: translateY(20px);
}
.mobile-menu-overlay.active .mobile-contact-highlight { opacity: 1; transform: translateY(0); }

.mobile-contact-highlight::before {
    content: ''; position: absolute; inset: 0; padding: 2px; border-radius: 20px;
    background: linear-gradient(90deg, var(--logo-orange), var(--logo-pink), var(--logo-purple));
    -webkit-mask: linear-gradient(#fff 0 0) content-box, linear-gradient(#fff 0 0);
    -webkit-mask-composite: xor; mask-composite: exclude;
    pointer-events: none;
}
.mobile-contact-highlight::after {
    content: ''; position: absolute; top: -50px; left: 50%; transform: translateX(-50%);
    width: 100px; height: 100px; background: var(--logo-pink); filter: blur(60px); opacity: 0.3;
}

.mobile-contact-highlight:hover { transform: scale(1.02); }

.mobile-socials-row {
    display: flex; justify-content: center; gap: 2rem;
    opacity: 0; transform: translateY(20px);
}
.mobile-menu-overlay.active .mobile-socials-row { opacity: 1; transform: translateY(0); }

.mob-social-icon {
    color: var(--logo-pink); font-size: 1.5rem; transition: transform 0.3s;
}
.mob-social-icon:hover { transform: scale(1.2); color: white; }

/* =========================================
   4. HERO SECTION & PHONE
   ========================================= */
.hero-section { 
    padding-top: var(--nav-height); 
    padding-bottom: 2rem; 
    min-height: 90vh; 
    display: flex; 
    align-items: center; 
    position: relative; 
    z-index: 10; 
    transition: z-index 0.1s; 
}

.hero-section.parent-active {
    position: relative; 
    z-index: 10000 !important; 
}
.hero-section.parent-active .hero-text {
    opacity: 0 !important;
    visibility: hidden;
    transition: opacity 0.3s ease; 
    pointer-events: none;
}

.hero-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 4rem; align-items: center; }
.hero-text { order: 1; transition: opacity 0.3s ease;  transform: translateZ(0); -webkit-font-smoothing: antialiased; backface-visibility: hidden;}
.hero-phone { order: 2; 
    position: relative; 
    z-index: 20; touch-action: 
    pan-y;  transform: translateZ(0); 
    backface-visibility: hidden; 
    perspective: 1000px; 
    transition: 
        transform 0.6s cubic-bezier(0.25, 0.8, 0.25, 1),
        width 0.6s cubic-bezier(0.25, 0.8, 0.25, 1),
        height 0.6s cubic-bezier(0.25, 0.8, 0.25, 1),
        left 0.6s cubic-bezier(0.25, 0.8, 0.25, 1),
        top 0.6s cubic-bezier(0.25, 0.8, 0.25, 1);
}
.hero-bottom-actions { margin-top: 3rem; }

.phone-mockup-wrapper { perspective: 1000px; display: flex; justify-content: center; transition: all 0.6s cubic-bezier(0.25, 0.8, 0.25, 1); will-change: transform; }

.phone-mockup {
    width: 280px; 
    height: 580px; 
    background: linear-gradient(145deg, #1a1a1a, #000); 
    border-radius: 40px; 
    border: 6px solid #222; 
    position: relative; 
    transform: rotateX(10deg) rotateY(-15deg) rotateZ(-5deg); 
    transform-style: preserve-3d; 
    overflow: hidden; 
    box-shadow: 0 20px 40px rgba(243, 104, 224, 0.15);
    transition: transform 0.6s cubic-bezier(0.25, 0.8, 0.25, 1), box-shadow 0.6s ease, width 0.6s, height 0.6s;
    will-change: transform, box-shadow;
    backface-visibility: hidden;
    touch-action: pan-y; 
}

.hero-phone:not(.is-focused) .phone-mockup:hover {
    transform: rotate(0deg) scale(1.02);
    box-shadow: 0 20px 40px rgba(239, 68, 165, 0.3), 0 0 0 1px rgba(255, 255, 255, 0.1);
    border-color: rgba(255,255,255,0.3);
}

.phone-screen { width: 100%; height: 100%; object-fit: cover; display: block; pointer-events: none; }

.tap-gesture-hint {
    display: none; 
}

.phone-focus-overlay {
    position: fixed; 
    inset: 0; 
    background: rgba(0,0,0,0.95);
    z-index: 9990; 
    opacity: 0; 
    pointer-events: none; 
    transition: opacity 0.5s ease;
    backdrop-filter: blur(10px);
}
.phone-focus-overlay.active { 
    opacity: 1; 
    pointer-events: auto; 
}

.hero-phone.is-focused {
    position: fixed !important; 
    top: 50%; 
    left: 50%;
    transform: translate(-50%, -50%) !important; 
    z-index: 10000 !important; 
    margin: 0 !important;
    padding: 0 !important;
    width: auto !important;
    height: auto !important;
    perspective: none;
    display: flex; 
    align-items: center; 
    justify-content: center;
}

.hero-phone.is-focused .phone-mockup {
    transform: rotate(0deg) !important;
    height: 70vh !important;
    width: calc(80vh * (9/16)) !important;
    max-width: 90vw; 
    border-color: #333;
    box-shadow: 0 0 50px rgba(0,0,0,0.8);
}

.close-gesture-hint { 
    display: none; 
    position: absolute; 
    top: 20px; 
    right: 20px; 
    width: 44px; height: 44px;
    background: rgba(0, 0, 0, 0.2) !important; 
    backdrop-filter: blur(10px); 
    border: 1px solid rgba(255,255,255,0.2);
    color: white; 
    border-radius: 50%; 
    align-items: center; justify-content: center;
    z-index: 10002;
    box-shadow: 0 4px 12px rgba(0,0,0,0.1);
    opacity: 0;
}
.hero-phone.is-focused .close-gesture-hint { 
    display: flex; 
    animation: fadeScaleIn 0.3s ease 0.3s forwards;
}
@keyframes fadeScaleIn { from { opacity: 0; transform: scale(0.8); } to { opacity: 1; transform: scale(1); } }

/* =========================================
   SEPARADOR DIAGONAL
   ========================================= */
.diagonal-separator-wrapper {
    position: relative;
    width: 100%;
    height: 180px;
    margin-top: -140px;
    margin-bottom: 2rem;
    z-index: 5;
    overflow: hidden;
    pointer-events: none;
    display: flex;
    flex-direction: column;
    justify-content: flex-end;
    transform: skewY(-3deg);
}
.diagonal-separator-wrapper::before {
    content: ''; position: absolute; inset: 0; opacity: 0.15; 
    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.8' numOctaves='3' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23noiseFilter)'/%3E%3C/svg%3E");
    pointer-events: none; z-index: 10; mix-blend-mode: overlay;
}

.diagonal-bar {
    width: 110%; position: relative; left: -5%; background-size: 200% 100%;  
}

.bar-cyan {
    height: 50px;
    background: linear-gradient(90deg, rgba(46, 85, 158, 0) 0%, rgba(100, 140, 220, 0.9) 50%, rgba(46, 85, 158, 0) 100%);        
    margin-bottom: -25px; z-index: 1; box-shadow: 0 -5px 60px rgba(46, 85, 158, 0.9); 
}
.bar-violet {
    height: 60px;
    background: linear-gradient(90deg, rgba(80, 0, 40, 0.6) 0%, rgba(243, 104, 224, 0.6) 50%, rgba(80, 0, 40, 0.6) 100%);
    margin-bottom: -25px; z-index: 2; 
    box-shadow: 0 0 50px rgba(180, 20, 100, 0.3);
}
.bar-pink {
    height: 70px;
    background: linear-gradient(90deg, rgba(60, 20, 0, 0.6) 0%, rgba(255, 159, 67, 0.6) 50%, rgba(60, 20, 0, 0.6) 100%);
    z-index: 3; 
    box-shadow: 0 10px 60px rgba(200, 60, 20, 0.3);
}

/* =========================================
   5. AGENCY SECTION
   ========================================= */
#agency-section { position: relative; padding: 3rem 0; overflow: hidden; scroll-margin-top: 150px; }

.agency-backdrop {
    position: absolute; inset: 0; z-index: -1;
    background-image: 
        linear-gradient(rgba(255, 255, 255, 0.03) 1px, transparent 1px),
        linear-gradient(90deg, rgba(255, 255, 255, 0.03) 1px, transparent 1px);
    background-size: 40px 40px;
    mask-image: radial-gradient(circle at center, black 40%, transparent 80%);
}

.agency-grid-layout { display: grid; grid-template-columns: 1.4fr 1fr; gap: 2rem; align-items: stretch; padding-bottom: 2rem;}

.hologram-card {
    background: rgba(10, 10, 15, 0.6); backdrop-filter: blur(20px); -webkit-backdrop-filter: blur(20px);
    border: 1px solid rgba(255, 255, 255, 0.08); border-radius: 24px; padding: 3.5rem;
    position: relative; overflow: hidden; display: flex; flex-direction: column; justify-content: center;
    box-shadow: 0 20px 50px rgba(0,0,0,0.5); transition: transform 0.4s ease, box-shadow 0.4s ease;
}
.hologram-card::before { content: ''; position: absolute; inset: 0; background: linear-gradient(135deg, rgba(255,255,255,0.03), transparent 40%); pointer-events: none; }
.hologram-card::after {
    content: ''; position: absolute; top: 0; left: 0; width: 4px; height: 100%;
    background: linear-gradient(to bottom, var(--logo-pink), var(--logo-orange));
    box-shadow: 2px 0 15px rgba(243, 104, 224, 0.4);
}
.hologram-card:hover { transform: translateY(-5px); box-shadow: 0 30px 60px rgba(0,0,0,0.6); border-color: rgba(255,255,255,0.15); }

.agency-title-block h2 {
    font-family: var(--font-display); font-size: clamp(3rem, 5vw, 4.5rem); font-weight: 800; line-height: 1;
    margin-bottom: 1.5rem; text-transform: uppercase; color: white; position: relative; z-index: 2;
}
.agency-title-anim { display: block; opacity: 0; transform: translateY(20px); transition: opacity 0.8s ease, transform 0.8s ease; }
.agency-title-anim.visible { opacity: 1; transform: translateY(0); }
.text-accent-360 { font-size: 1.1em; background: var(--logo-gradient); -webkit-background-clip: text; -webkit-text-fill-color: transparent; position: relative; display: inline-block; }
.watermark-360 {
    position: absolute; right: -20px; bottom: -40px; font-family: var(--font-display); font-size: 12rem;
    font-weight: 900; line-height: 1; color: transparent; -webkit-text-stroke: 2px rgba(255,255,255,0.03);
    z-index: 0; pointer-events: none; user-select: none;
}
.agency-desc { font-size: 1.7rem; color: #b0b0b0; line-height: 1.7; position: relative; z-index: 2; max-width: 95%; padding-left: 0.5rem; margin-top: 1rem; }

.agency-stats-col { display: flex; flex-direction: column; gap: 1.5rem; justify-content: center; }
.glass-stat-card {
    background: rgba(20, 20, 25, 0.4); border: 1px solid rgba(255, 255, 255, 0.05); border-radius: 20px; padding: 2rem;
    position: relative; overflow: hidden; transition: all 0.3s ease;
}
.glass-stat-card:hover { background: rgba(30, 30, 40, 0.5); border-color: rgba(255,255,255,0.1); transform: translateX(-5px); }
.stat-header { display: flex; align-items: center; gap: 1rem; margin-bottom: 0.5rem; }
.stat-icon { font-size: 1.5rem; color: var(--logo-purple); background: rgba(95, 39, 205, 0.1); padding: 0.5rem; border-radius: 8px; }
.stat-icon.orange { color: var(--logo-orange); background: rgba(255, 159, 67, 0.1); }
.stat-icon.pink { color: var(--logo-pink); background: rgba(243, 104, 224, 0.1); }
.stat-value { font-family: var(--font-display); font-size: 3rem; font-weight: 800; line-height: 1; color: white; }
.stat-label { font-size: 0.85rem; text-transform: uppercase; letter-spacing: 1px; color: #888; font-weight: 600; }
.stat-sub {
    font-family: var(--font-sans); 
    font-size: 0.95rem;            
    color: rgba(255, 255, 255, 0.65); 
    font-weight: 400;
    line-height: 1.5;              
    margin-top: 0.8rem;            
    letter-spacing: 0.02em;        
    transition: color 0.3s ease;   
    border-top: 1px solid rgba(255,255,255,0.1); 
    padding-top: 0.8rem;           
}
.glass-stat-card:hover .stat-sub {
    color: rgba(255, 255, 255, 0.95);
    border-top-color: rgba(255,255,255,0.3);
}

.agency-bottom-action {
    display: flex;
    justify-content: center;
    margin-top: 2rem;
    margin-bottom: 2rem;
    width: 100%;
}

@media (max-width: 1024px) {
    .agency-grid-layout { grid-template-columns: 1fr; }
    .hologram-card { padding: 2.5rem 1.5rem; }
    .agency-title-block h2 { font-size: 2.8rem; }
    .watermark-360 { font-size: 8rem; right: -10px; bottom: 0; }
}

/* =========================================
   TITLES ANIMATION
   ========================================= */
.title-underline-anim {
    display: inline-block; 
    position: relative;
}
.title-underline-anim::after {
    content: ''; 
    display: block; 
    width: 30px; 
    height: 4px; 
    background: var(--logo-gradient); 
    margin-top: 10px; 
    border-radius: 2px;
    transition: width 0.4s var(--ease-out);
}
.text-center .title-underline-anim::after {
    margin-left: auto;
    margin-right: auto;
}

#servicios:hover .title-underline-anim::after,
#equipo:hover .title-underline-anim::after {
    width: 100%;
    background: linear-gradient(90deg, var(--logo-pink), var(--logo-orange));
}

/* =========================================
   6. SERVICES MONOLITH
   ========================================= */
.monolith-section { position: relative; overflow: hidden; }
.monolith-bg-grid {
    position: absolute; inset: 0; pointer-events: none;
    background-image: linear-gradient(rgba(255, 255, 255, 0.03) 1px, transparent 1px), 
                      linear-gradient(90deg, rgba(255, 255, 255, 0.03) 1px, transparent 1px);
    background-size: 40px 40px;
    mask-image: linear-gradient(to bottom, rgba(0,0,0,1) 0%, rgba(0,0,0,0) 90%);
    -webkit-mask-image: linear-gradient(to bottom, rgba(0,0,0,1) 0%, rgba(0,0,0,0) 90%);
    z-index: 0;
}
.monolith-perspective {
    perspective: 2000px;
    display: flex; gap: 4rem; justify-content: center; align-items: center;
    min-height: 600px; padding: 2rem 0;
}
.monolith-card-wrapper {
    width: 340px; aspect-ratio: 3/5; position: relative; z-index: 1;
}
.monolith-card-wrapper:hover { z-index: 10; }
.monolith-glow {
    position: absolute; inset: 0; border-radius: 9999px;
    filter: blur(80px); opacity: 0; transition: opacity 0.5s ease;
    transform: translateZ(-50px);
}
.monolith-card-wrapper:hover .monolith-glow, .monolith-card-wrapper.active .monolith-glow { opacity: 0.25; }
.monolith-block {
    position: relative; width: 100%; height: 90%;
    border-radius: 16px; background: #121212;
    border: 1px solid rgba(255,255,255,0.1);
    transform-style: preserve-3d;
    transform: rotateY(-25deg) rotateX(10deg);
    transition: transform 0.5s cubic-bezier(0.2, 0.8, 0.2, 1), box-shadow 0.5s ease, border-color 0.3s;
    box-shadow: 0 0 30px rgba(0,0,0,0.5); overflow: visible; 
    mask-image: radial-gradient(white, black); 
    -webkit-mask-image: -webkit-radial-gradient(white, black);
}
.monolith-card-wrapper:hover .monolith-block, .monolith-card-wrapper.active .monolith-block {
    transform: rotateY(-25deg) rotateX(10deg) translateY(-20px) scale(1.02);
    box-shadow: 0 0 50px rgba(0,0,0,0.8);
}
.monolith-content {
    position: absolute; inset: 0; padding: 2rem;
    display: flex; flex-direction: column; justify-content: space-between;
    background: linear-gradient(to bottom, rgba(255,255,255,0.03), transparent);
    border-radius: 16px;  overflow: visible !important;  transform-style: preserve-3d;
}
.monolith-header {
    display: flex; justify-content: space-between; align-items: flex-start;
    opacity: 0.6; transition: opacity 0.3s;
}
.monolith-card-wrapper:hover .monolith-header, .monolith-card-wrapper.active .monolith-header { opacity: 1; }
.monolith-number { font-family: var(--font-mono); font-size: 0.75rem; font-weight: 700; }
.monolith-icon { font-size: 1.5rem; }
.monolith-footer h3 {
    font-family: var(--font-display); font-size: 2.5rem; font-weight: 800;
    line-height: 1; margin-bottom: 0.5rem; color: white; transition: color 0.3s;
}
.monolith-details {
    max-height: 0; opacity: 0; overflow: hidden; transition: all 0.5s ease;
}
.monolith-card-wrapper:hover .monolith-details, .monolith-card-wrapper.active .monolith-details {
    max-height: 200px; opacity: 1; margin-top: 1rem;
}
.monolith-desc { font-size: 0.85rem; color: var(--text-muted); line-height: 1.4; margin-bottom: 1rem; }
.btn-monolith {
    display: inline-block; font-size: 0.8rem; text-transform: uppercase; font-weight: 700;
    text-decoration: none; padding-bottom: 3px; border-bottom: 2px solid currentColor;
    transition: all 0.3s; color: white;
}
.btn-monolith:hover { transform: translateX(5px); }
.monolith-3d-icon-container {
    position: absolute; top: 40%; left: 50%;
    pointer-events: none; transition: transform 0.5s;
    display: flex; justify-content: center; align-items: center; opacity: 1; 
    transform: translate(-50%, -60%) translateZ(40px) !important;
    width: 100%;
}
.monolith-3d-icon {
    font-size: 8rem;
    font-variation-settings: 'FILL' 1, 'wght' 200, 'GRAD' 0, 'opsz' 48;
    filter: drop-shadow(0 0 20px rgba(255,255,255,0.3));
    background: linear-gradient(135deg, #fff 20%, transparent 100%);
    -webkit-background-clip: text; -webkit-text-fill-color: transparent;
    mix-blend-mode: overlay; opacity: 0.9;
}
.obj-float-1 { animation: float-y 6s ease-in-out infinite; }
.obj-float-2 { animation: float-y 8s ease-in-out 1s infinite; }
.obj-float-3 { animation: float-y 6s ease-in-out 3s infinite; }
@keyframes float-y {
    0%, 100% { transform: translate(-50%, -60%) translateZ(40px) translateY(0); }
    50% { transform: translate(-50%, -60%) translateZ(40px) translateY(-15px); }
}
.monolith-card-wrapper:hover .monolith-3d-icon-container, .monolith-card-wrapper.active .monolith-3d-icon-container {
    transform: translate(-50%, -100%) translateZ(70px) scale(1.1);
}

.mono-pink .monolith-glow { background-color: var(--logo-pink); }
.mono-pink .monolith-number, .mono-pink .monolith-icon, .mono-pink .btn-monolith { color: var(--logo-pink); }
.mono-pink:hover h3, .mono-pink.active h3 { color: var(--logo-pink); }
.mono-pink .monolith-3d-icon { background: linear-gradient(135deg, var(--logo-pink) 0%, rgba(255,255,255,0.8) 50%, transparent 100%); -webkit-background-clip: text; filter: drop-shadow(0 0 25px rgba(243, 104, 224, 0.6)); }

.mono-cyan .monolith-glow { background-color: var(--logo-purple); }
.mono-cyan .monolith-number, .mono-cyan .monolith-icon, .mono-cyan .btn-monolith { color: var(--logo-purple); }
.mono-cyan:hover h3, .mono-cyan.active h3 { color: var(--logo-purple); }
.mono-cyan .monolith-3d-icon { background: linear-gradient(135deg, var(--logo-purple) 0%, rgba(0, 229, 255, 0.8) 50%, transparent 100%); -webkit-background-clip: text; filter: drop-shadow(0 0 25px rgba(95, 39, 205, 0.6)); }

.mono-orange .monolith-glow { background-color: var(--logo-orange); }
.mono-orange .monolith-number, .mono-orange .monolith-icon, .mono-orange .btn-monolith { color: var(--logo-orange); }
.mono-orange:hover h3, .mono-orange.active h3 { color: var(--logo-orange); }
.mono-orange .monolith-3d-icon { background: linear-gradient(135deg, var(--logo-orange) 0%, rgba(255,255,255,0.8) 50%, transparent 100%); -webkit-background-clip: text; filter: drop-shadow(0 0 25px rgba(255, 140, 66, 0.6)); }

.monolith-card-wrapper.center-card { margin-top: -3rem; z-index: 5; }

@media (max-width: 1024px) {
    .monolith-perspective { perspective: 1200px; flex-direction: column; gap: 4rem; padding-top: 2rem; padding-bottom: 4rem; }
    .monolith-card-wrapper { width: 80%; max-width: 340px; height: 500px; margin: 0 auto; transform: rotateY(5deg) rotateX(2deg); transition: all 0.6s cubic-bezier(0.175, 0.885, 0.32, 1.275); }
    .monolith-card-wrapper.center-card { margin-top: 0; }
    .monolith-block { transform: none !important; }
    .monolith-card-wrapper.scroll-animate-hidden { opacity: 0; transform: translateY(100px) rotateY(-15deg) rotateX(10deg) scale(0.9); }
    .monolith-card-wrapper.scroll-animate-visible { opacity: 1; transform: translateY(0) rotateY(10deg) rotateX(10deg) scale(1) }
    .monolith-3d-icon { font-size: 7rem; }
    .monolith-footer h3 { font-size: 1.5rem; }
    .monolith-card-wrapper .monolith-details { max-height: 0; opacity: 0; }
    .monolith-card-wrapper.active .monolith-details { max-height: 200px; opacity: 1; margin-top: 1rem; }
}

/* =========================================
   7. TEAM SECTION
   ========================================= */
.team-new-header { margin-bottom: 3rem; max-width: 600px; }
.team-new-title {
    font-family: var(--font-display); font-size: 3.5rem; line-height: 1; font-weight: 800;
    margin-bottom: 0.5rem; text-transform: uppercase;
}
.team-subtitle { font-size: 1rem; color: var(--text-muted); }
.team-new-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(280px, 1fr)); gap: 2rem; }
.team-card-new {
    background: #0f0f11; border-radius: 12px; padding: 3.5rem; position: relative; overflow: hidden;
    transition: transform 0.3s ease; border: 1px solid rgba(255,255,255,0.05);
}
.team-card-new:hover { transform: translateY(-5px); border-color: rgba(255,255,255,0.1); }
.team-card-new::before {
    content: ''; position: absolute; top: 0; left: 0; right: 0; height: 4px;
    background: linear-gradient(90deg, var(--logo-purple), var(--logo-pink)); opacity: 0.7;
}
.team-img-wrapper {
    width: 100%; aspect-ratio: 1/1; border-radius: 8px; overflow: hidden;
    position: relative; margin-bottom: 1.5rem; background: #1a1a1a;
}
.team-img-wrapper img { width: 100%; height: 100%; object-fit: cover; transition: transform 0.5s; filter: saturate(0.8) contrast(1.1); }
.team-card-new:hover .team-img-wrapper img { transform: scale(1.05); filter: saturate(1); }
.team-role-badge {
    position: absolute; top: 10px; left: 10px; background: rgba(0,0,0,0.6);
    padding: 4px 10px; border-radius: 4px; font-size: 0.85rem; font-weight: 700;
    text-transform: uppercase; color: var(--logo-pink); border-left: 2px solid var(--logo-pink); z-index: 2;
}
.team-info h4 { font-family: var(--font-display); font-size: 1.4rem; font-weight: 700; color: white; margin-bottom: 0.5rem; }
.team-info p { font-size: 0.9rem; color: #888; line-height: 1.5; margin-bottom: 1.5rem; }
.team-footer {
    display: flex; justify-content: space-between; align-items: center;
    border-top: 1px solid rgba(255,255,255,0.05); padding-top: 1rem; margin-top: auto;
}
.team-socials a { color: #666; margin-right: 10px; font-size: 1.1rem; transition: color 0.3s; }
.team-socials a:hover { color: white; }
.team-arrow { color: var(--logo-purple); font-size: 1.2rem; }

/* =========================================
   8. CTA SECTION
   ========================================= */
.cta-immersive {
    position: relative;
    padding: 12rem 0;
    overflow: hidden;
    display: flex;
    align-items: center;
    justify-content: center;
    background: #000;
}

.cta-parallax-bg {
    position: absolute; inset: 0;
    overflow: hidden;
    z-index: 0;
    -webkit-mask-image: linear-gradient(to bottom, transparent 0%, black 20%);
    mask-image: linear-gradient(to bottom, transparent 0%, black 20%);
}

.cta-parallax-img {
    width: 100%; 
    height: 120%; 
    object-fit: cover;
    position: absolute; 
    top: -10%; left: 0;
    opacity: 0.4;
    filter: brightness(0.6) blur(2px);
}

.cta-overlay {
    position: absolute; inset: 0;
    background: radial-gradient(circle at center, rgba(0,0,0,0.4) 0%, #000 90%);
    z-index: 1;
}

.cta-grid { position: absolute; inset: 0; background-image: linear-gradient(rgba(255,255,255,0.02) 1px, transparent 1px); background-size: 100% 40px; pointer-events: none; z-index: 1; }

.cta-content-box {
    position: relative; z-index: 2;
    text-align: center;
    max-width: 800px;
    padding: 0 1.5rem;
}

.cta-super-title {
    font-family: var(--font-display);
    font-size: clamp(3rem, 7vw, 6rem);
    font-weight: 900;
    line-height: 0.9;
    text-transform: uppercase;
    background: linear-gradient(to bottom, #fff, #888);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    margin-bottom: 1.5rem;
    letter-spacing: -0.03em;
    text-shadow: 0 20px 40px rgba(0,0,0,0.8);
}

.cta-sub {
    font-size: 1.2rem; color: #aaa; margin-bottom: 3rem;
    font-weight: 300; letter-spacing: 0.5px;
    text-shadow: 0 5px 15px rgba(0,0,0,0.8);
}

.btn-magnetic {
    display: inline-flex; align-items: center; justify-content: center;
    background: linear-gradient(135deg, var(--primary), var(--orange)); color: black; padding: 1.2rem 3.5rem;
    border-radius: 99px; font-weight: 800; text-transform: uppercase;
    letter-spacing: 1px; text-decoration: none;
    transition: transform 0.2s cubic-bezier(0.175, 0.885, 0.32, 1.275);
    box-shadow: 0 0 40px rgba(239, 68, 165, 0.3);
}
.btn-magnetic:hover { transform: scale(1.05); box-shadow: 0 0 60px rgba(239, 68, 165, 0.5); }

/* =========================================
   9. FOOTER
   ========================================= */
.footer-new {
    background: #000; border-top: 1px solid #111; padding: 5rem 0 0 0; margin-top: 0; font-size: 0.95rem; color: #ccc;
    position: relative; z-index: 10;
}
.footer-top-grid { display: grid; grid-template-columns: 1.5fr 1fr 1.5fr 1fr; gap: 3rem; padding-bottom: 4rem; }

.footer-col {
    position: relative;
}
.footer-col h4 {
    color: white; font-family: var(--font-display); font-size: 1.1rem; margin-bottom: 1.5rem;
    font-weight: 700; display: inline-block; position: relative;
    transition: color 0.3s ease;
}
.footer-col h4::after {
    content: ''; display: block; width: 30px; height: 3px; 
    background: var(--logo-gradient); margin-top: 8px; border-radius: 2px;
    transition: width 0.4s cubic-bezier(0.25, 0.8, 0.25, 1), background 0.4s ease;
}

.footer-col:hover h4 {
    color: var(--logo-pink);
}
.footer-col:hover h4::after {
    width: 100%;
    background: linear-gradient(90deg, var(--logo-pink), var(--logo-orange));
}

.footer-links a { 
    display: block; 
    color: #999; 
    text-decoration: none; 
    margin-bottom: 0.8rem; 
    position: relative;
    padding-left: 0;
    transition: padding-left 0.3s ease, color 0.3s ease; 
}
.footer-links a::before {
    content: '>';
    position: absolute;
    left: -15px;
    top: 50%;
    transform: translateY(-55%); 
    opacity: 0;
    color: var(--logo-pink);
    font-weight: 700;
    font-family: monospace;
    font-size: 1.1em;
    transition: all 0.3s ease;
}
.footer-links a:hover { 
    color: white; 
    padding-left: 15px;
}
.footer-links a:hover::before {
    opacity: 1;
    left: 0;
}

.footer-brand p { margin-top: 1.5rem; color: #888; max-width: 300px; font-size: 0.9rem; }

.footer-contact-item { display: flex; gap: 1rem; align-items: flex-start; margin-bottom: 1rem; color: #999; }
.footer-contact-item i { color: var(--logo-orange); margin-top: 4px; }
.footer-socials { display: flex; gap: 1rem; margin-top: 1rem; }
.social-btn {
    width: 40px; height: 40px; border-radius: 50%; background: rgba(255,255,255,0.1);
    display: flex; align-items: center; justify-content: center; color: white; text-decoration: none; transition: 0.3s;
}
.social-btn:hover { background: var(--logo-pink); transform: translateY(-3px); }
.footer-cta-btn {
    display: inline-block; background: linear-gradient(90deg, #F368E0, #FF9F43); color: white;
    font-weight: 700; text-transform: uppercase; padding: 0.8rem 2rem; border-radius: 50px;
    text-decoration: none; margin-top: 1.5rem; box-shadow: 0 10px 20px rgba(243, 104, 224, 0.3);
    font-size: 0.9rem; transition: 0.3s;
}
.footer-cta-btn:hover { transform: translateY(-2px); box-shadow: 0 15px 30px rgba(243, 104, 224, 0.4); }

.footer-bottom-wrapper {
    background: #030303;
    border-top: 1px solid rgba(255,255,255,0.05);
}
.footer-bottom-container {
    max-width: 1240px; margin: 0 auto; padding: 1.5rem 1.5rem;
    display: flex; justify-content: space-between; align-items: center; flex-wrap: wrap; gap: 1.5rem;
}
.footer-legal {
    display: flex; gap: 1.5rem; align-items: center; font-size: 0.8rem; color: #f368e0;
}
.footer-legal span { opacity: 0.7; }
.footer-legal-links a { color: #888; text-decoration: none; transition: 0.3s; margin-right: 1rem; }
.footer-legal-links a:hover { color: white; }

.soditec-badge {
    display: inline-flex; align-items: center; gap: 8px;
    background: rgba(255,255,255,0.03); border: 1px solid rgba(255,255,255,0.08);
    padding: 6px 14px; border-radius: 20px; font-size: 0.75rem; font-weight: 600;
    color: #888; transition: all 0.3s ease;
}
.soditec-badge:hover { background: rgba(255,255,255,0.08); color: white; border-color: rgba(255,255,255,0.2); }
.soditec-badge i { font-size: 0.85rem; color: var(--logo-purple); }

/* MODAL SODITEC */
.soditec-modal-overlay {
    position: fixed; inset: 0; background: rgba(0,0,0,0.95); backdrop-filter: blur(20px);
    z-index: 9999; display: flex; justify-content: center; align-items: center;
    opacity: 0; pointer-events: none; transition: all 0.4s ease;
}
.soditec-modal-overlay.active { opacity: 1; pointer-events: auto; }

.soditec-card {
    background: linear-gradient(145deg, #151515, #0a0a0a);
    border: 1px solid rgba(255,255,255,0.1); border-radius: 20px; padding: 3rem 2rem;
    width: 90%; max-width: 400px; text-align: center; position: relative;
    transform: translateY(30px); transition: all 0.4s cubic-bezier(0.34, 1.56, 0.64, 1);
    box-shadow: 0 20px 50px rgba(0,0,0,0.8);
}
.soditec-modal-overlay.active .soditec-card { transform: translateY(0); }

.soditec-close {
    position: absolute; top: 15px; right: 15px; color: #666; background: transparent; border: none; font-size: 1.5rem; transition: color 0.3s;
}
.soditec-close:hover { color: white; }

.soditec-logo {
    font-family: var(--font-display); font-size: 2rem; font-weight: 800; color: white; margin-bottom: 0.5rem;
    background: linear-gradient(to right, #00c6ff, #0072ff); -webkit-background-clip: text; -webkit-text-fill-color: transparent;
}
.soditec-desc { color: #888; font-size: 0.9rem; margin-bottom: 2rem; }

.soditec-actions { display: flex; flex-direction: column; gap: 1rem; }
.soditec-btn {
    display: flex; align-items: center; justify-content: center; gap: 10px;
    padding: 1rem; border-radius: 12px; text-decoration: none; font-weight: 600;
    transition: transform 0.2s, background 0.2s;
}
.btn-sodi-web { background: rgba(255,255,255,0.05); color: white; border: 1px solid rgba(255,255,255,0.1); }
.btn-sodi-web:hover { background: rgba(255,255,255,0.1); }
.btn-sodi-wa { background: #25D366; color: #000; }
.btn-sodi-wa:hover { background: #1faf53; }
.btn-sodi-mail { background: transparent; color: #888; font-size: 0.9rem; }
.btn-sodi-mail:hover { color: white; }

/* =========================================
   FLOATING ACTION BUTTONS
   ========================================= */
.floating-ui-container {
    position: fixed;
    bottom: 5px;
    right: 10px;
    z-index: 5000;
    display: flex;
    flex-direction: column-reverse; 
    align-items: center;
    gap: 15px;
}

.scroll-top-btn-float {
    width: 45px;
    height: 45px;
    background: rgba(30, 30, 30, 0.9);
    border: 1px solid rgba(255,255,255,0.2);
    border-radius: 50%;
    color: white;
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 0;
    pointer-events: none;
    height: 0; 
    margin: 0;
    margin-bottom: 10px;
    overflow: hidden;
    transition: all 0.4s var(--ease-out);
    box-shadow: 0 5px 15px rgba(0,0,0,0.5);
}

.scroll-top-btn-float.show {
    opacity: 1;
    pointer-events: auto;
    height: 45px;
    padding-top: 1rem;
    padding-bottom: 1rem;
}
.scroll-top-btn-float:hover {
    background: var(--logo-pink);
    border-color: var(--logo-pink);
}

.fab-wrapper {
    position: relative;
    display: flex;
    flex-direction: column-reverse; 
    align-items: center;
    gap: 10px;
}

.fab-main-btn {
    width: 45px;
    height: 45px;
    background: linear-gradient(135deg, var(--logo-pink), var(--logo-orange));
    border-radius: 50%;
    color: white;
    border: none;
    box-shadow: 0 10px 25px rgba(243, 104, 224, 0.4);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.2rem;
    transition: transform 0.3s var(--ease-out);
    position: relative;
    z-index: 10;
}
.fab-main-btn i { transition: transform 0.3s; }
.fab-main-btn.active { transform: rotate(45deg); }
.fab-main-btn:hover { transform: scale(1.1); }
.fab-main-btn.active:hover { transform: rotate(45deg) scale(1.1); }

.fab-options {
    display: flex;
    flex-direction: column;
    gap: 12px;
    opacity: 0;
    visibility: hidden;
    transform: translateY(20px);
    transition: all 0.3s var(--ease-out);
    margin-bottom: 5px;
}
.fab-wrapper.active .fab-options {
    opacity: 1;
    visibility: visible;
    transform: translateY(0);
}

.fab-item {
    width: 50px;
    height: 50px;
    border-radius: 50%;
    border: none;
    color: white;
    display: flex;
    align-items: center;
    justify-content: center;
    text-decoration: none;
    font-size: 1.2rem;
    box-shadow: 0 5px 15px rgba(0,0,0,0.3);
    transition: transform 0.2s;
    position: relative;
}
.fab-item:hover { transform: scale(1.1); }
.fab-item::after {
    content: attr(data-tooltip);
    position: absolute;
    right: 60px;
    background: rgba(0,0,0,0.8);
    color: white;
    padding: 5px 10px;
    border-radius: 6px;
    font-size: 0.8rem;
    white-space: nowrap;
    opacity: 0;
    pointer-events: none;
    transition: opacity 0.2s;
}
.fab-item:hover::after { opacity: 1; }

.fab-wa { background: #25D366; }
.fab-mail { background: #EA4335; }
.fab-phone { background: #007bff; }

/* =========================================
   PERFORMANCE MODE STYLES
   ========================================= */
.perf-desktop-toggle {
    position: fixed;
    left: 20px;
    bottom: 20px;
    z-index: 5000;
    background: rgba(10, 10, 10, 0.6);
    border: 1px solid rgba(255, 255, 255, 0.1);
    backdrop-filter: blur(10px);
    width: 45px; height: 45px;
    border-radius: 50%;
    color: #fff;
    display: flex; align-items: center; justify-content: center;
    transition: all 0.3s ease;
}
.perf-desktop-toggle:hover {
    background: rgba(255, 255, 255, 0.1);
    transform: scale(1.1);
}
.perf-desktop-toggle.active {
    background: var(--logo-gradient);
    border-color: transparent;
    box-shadow: 0 0 15px rgba(243, 104, 224, 0.4);
}
.perf-desktop-toggle .material-symbols-outlined { font-size: 1.2rem; }

.mobile-perf-toggle-container {
    display: flex; justify-content: space-between; align-items: center;
    background: rgba(255, 255, 255, 0.04);
    border: 1px solid rgba(255, 255, 255, 0.08);
    border-radius: 18px;
    padding: 1rem 1.5rem;
    margin-bottom: 0.8rem;
}
.mobile-perf-toggle-container .mobile-card-title { font-size: 1rem; }
.mobile-perf-switch {
    width: 40px; height: 22px; background: #333; border-radius: 20px; position: relative; transition: background 0.3s;
}
.mobile-perf-switch::after {
    content: ''; position: absolute; top: 2px; left: 2px; width: 18px; height: 18px; 
    background: white; border-radius: 50%; transition: transform 0.3s cubic-bezier(0.25, 0.8, 0.25, 1);
}
.performance-mode .mobile-perf-switch { background: var(--logo-pink); }
.performance-mode .mobile-perf-switch::after { transform: translateX(18px); }

#perf-toast {
    position: fixed;
    top: 100px;
    left: 50%;
    transform: translateX(-50%) translateY(-20px);
    background: rgba(15, 15, 15, 0.95);
    border: 1px solid rgba(255, 255, 255, 0.15);
    padding: 12px 24px;
    border-radius: 50px;
    color: white;
    font-size: 0.9rem;
    font-weight: 500;
    z-index: 9999;
    opacity: 0;
    visibility: hidden;
    transition: all 0.4s cubic-bezier(0.25, 0.8, 0.25, 1);
    display: flex; align-items: center; gap: 10px;
    box-shadow: 0 10px 30px rgba(0,0,0,0.5);
    pointer-events: none;
}
#perf-toast.show {
    opacity: 1; visibility: visible; transform: translateX(-50%) translateY(0);
}
#perf-toast i { color: var(--logo-pink); }

/* PERFORMANCE RESET */
body.performance-mode * {
    backdrop-filter: none !important;
    -webkit-backdrop-filter: none !important;
    text-shadow: none !important;
}

body.performance-mode .navbar.scrolled {
    background: #050505; 
}

body.performance-mode .hologram-card,
body.performance-mode .glass-stat-card,
body.performance-mode .dropdown-content,
body.performance-mode .soditec-card,
body.performance-mode .perf-desktop-toggle:not(.active) {
    background: #0f0f11 !important;
    box-shadow: none !important;
    border-color: #333;
}

body.performance-mode .phone-mockup {
    box-shadow: none !important;
    border-color: #333;
}

body.performance-mode .diagonal-separator-wrapper::before { display: none; }
body.performance-mode .diagonal-bar { box-shadow: none !important; opacity: 0.8; }
body.performance-mode .monolith-glow { display: none; }

@media (min-width: 1025px) {
    body.performance-mode .monolith-block {
        transform: rotateY(-25deg) rotateX(10deg) !important;
        background: #121212 !important;
        box-shadow: 0 0 0 1px rgba(255,255,255,0.1) !important;
        transition: transform 0.3s ease !important;
    }
    body.performance-mode .monolith-card-wrapper:hover .monolith-block, 
    body.performance-mode .monolith-card-wrapper.active .monolith-block {
        transform: rotateY(-25deg) rotateX(10deg) translateY(-10px) scale(1.02) !important;
        box-shadow: none !important;
    }
    body.performance-mode .monolith-card-wrapper.center-card .monolith-block {
        transform: rotateY(-25deg) rotateX(10deg) !important;
    }
}

@media (max-width: 1024px) {
    body.performance-mode .monolith-perspective {
        perspective: 1200px !important;
        transform-style: preserve-3d !important;
    }
    body.performance-mode .monolith-card-wrapper {
        transform: rotateY(5deg) rotateX(2deg) !important;
        transform-style: preserve-3d !important;
        margin-bottom: 2rem !important;
    }
    body.performance-mode .monolith-block {
        transform: translateZ(0) !important; 
        background: #121212 !important;
        box-shadow: none !important;
        border: 1px solid rgba(255, 255, 255, 0.2) !important;
    }
    body.performance-mode .monolith-content {
        transform: translateZ(1px) !important;
    }
    body.performance-mode .monolith-card-wrapper.scroll-animate-visible {
        transform: rotateY(5deg) rotateX(2deg) !important;
        opacity: 1 !important;
    }
}

body.performance-mode .monolith-3d-icon-container {
    animation: none !important; 
    top: 40% !important;
    left: 50% !important;
    transform: translate(-50%, -60%) translateZ(40px) !important;
    width: 100%;
    display: flex;
    justify-content: center;
}

/* RESPONSIVE DESIGN */
@media (max-width: 1024px) {
    .desktop-menu { display: none; }
    .mobile-toggle { display: block; }
    .perf-desktop-toggle { display: none; } 
    .hero-grid { grid-template-columns: 1fr 1fr; gap: 3rem; }
    .footer-top-grid { grid-template-columns: 1fr 1fr; }
    .footer-bottom-container { flex-direction: column; text-align: center; gap: 1rem; }
    .footer-legal { flex-direction: column; gap: 0.5rem; }
    .footer-legal-links a { margin: 0 0.5rem; }
}

@media (max-width: 1024px), (pointer: coarse) {
    .cursor-dot, 
    .cursor-outline {
        display: none !important;
        opacity: 0 !important;
        visibility: hidden !important;
        width: 0 !important;
        height: 0 !important;
    }
}

@media (min-width: 520px) and (max-width: 768px) {
    .hero-phone {
        width: auto !important;
        max-width: 340px !important; 
        right: 5% !important;
        bottom: 8% !important;
        position: absolute;
    }
    .phone-mockup {
        height: 550px !important; 
        width: 100% !important;
        box-shadow: none !important;
    }
    .scroll-down-btn { display: none;}
}

@media (max-width: 768px) {
    :root { --nav-height: 80px; }
    .logo img { height: 85px; } 
    .navbar.scrolled .logo img { height: 75px; }
    .noise { display: none; }
    .blob { animation: none !important; filter: blur(60px); opacity: 0.2; box-shadow: none !important; }
    .hologram-card, .btn-glow {
        box-shadow: 0 10px 20px rgba(0,0,0,0.5) !important;
    }
    .hero-section { min-height: 95vh; display: block; overflow: hidden; position: relative; }
    .hero-grid { display: block; height: 100%; }
    .hero-text {
        position: relative; z-index: 10; padding-top: 120px; padding-bottom: 2rem;
        width: 100%; text-align: left; pointer-events: auto; transition: opacity 0.4s ease, filter 0.4s ease;
    }
    .hero-text.dimmed { opacity: 0.2; filter: blur(4px); pointer-events: none; }
    .hero-main-content { max-width: 85%; }
    .title-display { font-size: 2rem; line-height: 1.05; margin-bottom: 1rem; text-shadow: 0 10px 30px rgba(0,0,0,0.8); }
    .hero-typewriter-wrapper { font-size: 1rem; margin-bottom: 2rem; text-shadow: 0 2px 10px rgba(0,0,0,0.8); }
    .hero-buttons { display: flex; flex-direction: column; gap: 1rem; align-items: flex-start; margin-top: 2rem; }
    .hero-buttons .btn { width: auto; padding: 1rem 2rem; font-size: 0.85rem; }
    
    .hero-phone {
        order: unset; position: absolute; bottom: 15%; right: -20%; width: 80%; height: auto;
        z-index: 1; margin: 0; perspective: 1000px; pointer-events: auto; 
        transition: all 0.6s cubic-bezier(0.25, 0.8, 0.25, 1);
        max-width: 320px; 
    }
    .hero-phone.is-focused {
        position: fixed; top: 50%; left: 50%; right: auto; bottom: auto;
        transform: translate(-50%, -50%);  z-index: 10001 !important;
        width: 70%; max-width: 300px;
    }

    .phone-mockup {
        width: 100%; height: 500px; transform: rotateX(10deg) rotateY(-15deg) rotateZ(-5deg); 
        margin: 0; border-width: 2px; opacity: 0.9; box-shadow: none !important;
        transition: transform 0.6s cubic-bezier(0.25, 0.8, 0.25, 1), box-shadow 0.6s ease;
    }

    .hero-phone.is-focused .phone-mockup {
        transform: rotate(0) !important; box-shadow: 0 30px 60px rgba(0,0,0,0.9); opacity: 1; border-color: rgba(255,255,255,0.3);
    }

    .tap-gesture-hint {
        display: flex; position: absolute; 
        top: 95%; left: 20%; transform: translate(-50%, -50%);
        z-index: 20; color: white; 
        background: rgba(255, 255, 255, 0.15); 
        border: 1px solid rgba(255,255,255,0.1);
        backdrop-filter: blur(5px);
        border-radius: 50%;
        width: 50px; height: 50px; align-items: center; justify-content: center;
    }
    .hero-phone.is-focused .tap-gesture-hint { display: none; }

    .hero-phone.is-focused .close-gesture-hint { display: flex; }

    .hero-section::before {
        content: ''; position: absolute; inset: 0;
        background: linear-gradient(to bottom, #050505 0%, rgba(5,5,5,0.8) 40%, transparent 100%);
        z-index: 1; pointer-events: none;
    }
    .hero-text::before {
        content: ''; position: absolute; top: 0; left: -20px; right: -20px; bottom: 0;
        background: radial-gradient(circle at top left, rgba(0,0,0,0.7), transparent 70%);
        z-index: -1;
    }

    .agency-desc { font-size: 1.4rem; }
    .diagonal-bar { box-shadow: none !important; opacity: 0.8;}
    .diagonal-separator-wrapper::before { display: none;}
    .team-new-title { font-size: 2.5rem; }
    .footer-top-grid { grid-template-columns: 1fr; gap: 2.5rem; }
    .footer-brand p { max-width: 100%; }
}

@media (max-width: 480px) {
    .container { padding: 0 1.25rem; }
    .hero-phone { width: 80%; right: -30%; bottom: 12%;}
}

/* =========================================
   PERFORMANCE & HERO OPTIMIZATION
   ========================================= */
.hero-section {
    contain: paint layout; 
}

.hero-phone {
    will-change: transform; 
    transform: translateZ(0);
    -webkit-backface-visibility: hidden;
    backface-visibility: hidden;
}

.phone-mockup {
    will-change: transform, box-shadow; 
    mask-image: radial-gradient(white, black);
    -webkit-mask-image: -webkit-radial-gradient(white, black);
}

.phone-screen {
    will-change: transform;
    transform: translateZ(0); 
}

.hologram-card, 
.monolith-card-wrapper,
.glass-stat-card,
.team-card-new {
    will-change: transform, opacity; 
    -webkit-backface-visibility: hidden;
    backface-visibility: hidden;
    transform: translateZ(0);
}

.global-bg {
    will-change: transform;
    transform: translateZ(0);
}

.btn-primary, .btn-magnetic {
    transform: translateZ(0);
}

.title-display {
    will-change: transform;
    transform: translate3d(0,0,0);
}