/* ===== CLS PREVENTION ===== */
/* Reserve font stack so Inter loading doesn't cause layout shift */
body {
    font-family: 'Inter', system-ui, -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
    font-size: 16px;
    /* Explicit base to prevent zoom-related CLS */
    background: #000;
}

/* Preloader: use opacity transition only (no layout-affecting props) */
#preloader {
    transition: opacity 0.6s ease !important;
}

#preloader.hidden {
    opacity: 0 !important;
    pointer-events: none !important;
}

/* Reserve height for sections to prevent content jump on load */
.section-wrapper {
    contain: layout style;
}

/* Prevent CLS from images without explicit dimensions */
img {
    height: auto;
}

/* Prevent animations from causing layout shifts — use transform only */
[data-reveal],
.letter-reveal {
    will-change: opacity, transform;
    transform: translateZ(0);
    /* GPU layer promotion */
}

:root {
    --cyan: #22d3ee;
    --purple: #a855f7;
}


/* Стили для ссылок */
.category-title {
    font-size: 3rem;
    font-weight: 900;
    text-transform: uppercase;
    margin-bottom: 2rem;
    letter-spacing: -2px;
}

.item-link {
    font-size: 2rem;
    font-weight: 300;
    cursor: pointer;
    transition: all 0.4s;
    border-bottom: 1px solid rgba(255, 255, 255, 0.05);
    padding-bottom: 1rem;
    position: relative;
}

.item-link:hover {
    color: var(--cyan);
    padding-left: 1.5rem;
    border-color: var(--cyan);
}

.item-link::after {
    content: '→';
    position: absolute;
    right: 0;
    opacity: 0;
    transform: translateX(-20px);
    transition: 0.3s;
    color: var(--cyan);
}

.item-link:hover::after {
    opacity: 1;
    transform: translateX(0);
}

.product-box {
    padding: 2rem;
    background: rgba(255, 255, 255, 0.15);
    /* Significantly increased visibility */
    border: 1px solid rgba(255, 255, 255, 0.25);
    cursor: pointer;
    transition: 0.3s;
}

.product-box:hover {
    border-color: var(--purple);
    background: rgba(168, 85, 247, 0.15);
    /* Increased hover visibility */
}

.product-box h3 {
    font-size: 1.5rem;
    font-weight: 700;
    margin-bottom: 0.5rem;
}

/* Кнопка закрытия */
.btn-close {
    position: fixed;
    top: 2rem;
    right: 2rem;
    padding: 0.8rem 2rem;
    background: white;
    color: black;
    font-weight: 700;
    text-transform: uppercase;
    z-index: 110;
    transition: all 0.3s;
    border: 1px solid white;
}

.btn-close:hover {
    background: transparent;
    color: white;
}

/* Скроллбар */
::-webkit-scrollbar {
    width: 4px;
}

::-webkit-scrollbar-thumb {
    background: var(--cyan);
}

#particleCanvas {
    pointer-events: none !important;
    position: fixed;
    top: 0;
    left: 0;
    z-index: 0;
}

/* Анимация текста */
.animate-glow {
    text-shadow: 0 0 20px rgba(34, 211, 238, 0.4);
}

/* WOW Эффекты для контента */
.animate-content {
    animation: slideUp 0.8s cubic-bezier(0.23, 1, 0.32, 1) both;
}

@keyframes slideUp {
    from {
        opacity: 0;
        transform: translateY(40px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.group {
    position: relative;
    overflow: hidden;
}

.group::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(34, 211, 238, 0.05), transparent);
    transition: 0.5s;
}

.group:hover::before {
    left: 100%;
}

#detail-overlay {
    backdrop-filter: blur(20px);
    background: rgba(5, 5, 5, 0.95);
}

/* WhatsApp Button Animation */
@keyframes ping {

    75%,
    100% {
        transform: scale(2);
        opacity: 0;
    }
}

.animate-ping {
    animation: ping 2s cubic-bezier(0, 0, 0.2, 1) infinite;
}

/* Glassmorphism for Header */

/* VR Entry Effect */
.vr-card {
    transition: transform 0.6s cubic-bezier(0.2, 0.8, 0.2, 1), box-shadow 0.6s ease, border-color 0.6s ease, background-color 0.6s ease;
}

.vr-card:hover {
    background-color: rgba(0, 0, 0, 0.95);
    border-color: rgba(34, 211, 238, 0.6);
    box-shadow: 0 0 40px rgba(34, 211, 238, 0.15), inset 0 0 60px rgba(0, 0, 0, 0.9);
}

.vr-overlay {
    background:
        /* Vignette */
        radial-gradient(circle at center, transparent 30%, rgba(0, 0, 0, 0.8) 100%),
        /* Cyber Grid */
        linear-gradient(rgba(34, 211, 238, 0.1) 1px, transparent 1px),
        linear-gradient(90deg, rgba(34, 211, 238, 0.1) 1px, transparent 1px);
    background-size: 100% 100%, 40px 40px, 40px 40px;
}

.vr-card:hover .vr-overlay {
    animation: panGrid 20s linear infinite;
}

@keyframes panGrid {
    0% {
        background-position: center, 0 0, 0 0;
    }

    100% {
        background-position: center, 40px 40px, 40px 40px;
    }
}

/* Corner Accents for VR Card */
.vr-card::before,
.vr-card::after {
    content: '';
    position: absolute;
    width: 20px;
    height: 20px;
    border: 1px solid transparent;
    transition: all 0.5s ease;
    opacity: 0;
}

.vr-card::before {
    top: 10px;
    left: 10px;
    border-top: 1px solid var(--cyan);
    border-left: 1px solid var(--cyan);
}

.vr-card::after {
    bottom: 10px;
    right: 10px;
    border-bottom: 1px solid var(--cyan);
    border-right: 1px solid var(--cyan);
}

.vr-card:hover::before,
.vr-card:hover::after {
    opacity: 1;
    width: 30px;
    height: 30px;
}

/* --- WOW EFFECTS --- */

/* 1. Custom Cursor */
#custom-cursor {
    pointer-events: none;
    transform: translate(-50%, -50%);
    transition: width 0.3s, height 0.3s, background-color 0.3s;
}

#cursor-dot {
    pointer-events: none;
    transform: translate(-50%, -50%);
}

body.hovering #custom-cursor {
    width: 50px;
    height: 50px;
    background-color: rgba(34, 211, 238, 0.1);
    border-color: transparent;
}

/* 2. Glitch Text Effect */
.glitch-text {
    position: relative;
    color: white;
}

.glitch-text::before,
.glitch-text::after {
    content: attr(data-text);
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    opacity: 0.8;
}

.glitch-text::before {
    color: #0ff;
    z-index: -1;
    clip-path: polygon(0 0, 100% 0, 100% 45%, 0 45%);
    animation: glitch-anim-1 2.5s infinite linear alternate-reverse;
}

.glitch-text::after {
    color: #f0f;
    z-index: -2;
    clip-path: polygon(0 55%, 100% 55%, 100% 100%, 0 100%);
    animation: glitch-anim-2 3s infinite linear alternate-reverse;
}

@keyframes glitch-anim-1 {
    0% {
        clip-path: inset(20% 0 80% 0);
        transform: translate(-2px, 1px);
    }

    20% {
        clip-path: inset(60% 0 10% 0);
        transform: translate(2px, -1px);
    }

    40% {
        clip-path: inset(40% 0 50% 0);
        transform: translate(-2px, 2px);
    }

    60% {
        clip-path: inset(80% 0 5% 0);
        transform: translate(2px, -2px);
    }

    80% {
        clip-path: inset(10% 0 60% 0);
        transform: translate(-1px, 1px);
    }

    100% {
        clip-path: inset(30% 0 30% 0);
        transform: translate(1px, -1px);
    }
}

@keyframes glitch-anim-2 {
    0% {
        clip-path: inset(10% 0 60% 0);
        transform: translate(2px, -1px);
    }

    20% {
        clip-path: inset(30% 0 20% 0);
        transform: translate(-2px, 1px);
    }

    40% {
        clip-path: inset(70% 0 10% 0);
        transform: translate(2px, 2px);
    }

    60% {
        clip-path: inset(20% 0 50% 0);
        transform: translate(-2px, -2px);
    }

    80% {
        clip-path: inset(50% 0 30% 0);
        transform: translate(1px, 1px);
    }

    100% {
        clip-path: inset(5% 0 80% 0);
        transform: translate(-1px, -1px);
    }
}

/* 3. Magnetic Button Class (JS will handle transform) */
.magnetic-btn {
    display: inline-block;
    transition: transform 0.1s linear;
    /* Smooth but fast */
}

/* 4. Fade In Up Animation */
.fade-in-up {
    animation: fadeInUp 1s ease-out 0.5s both;
}

@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(20px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* 5. Partners Marquee */
.marquee-container {
    mask-image: linear-gradient(to right, transparent, black 10%, black 90%, transparent);
    -webkit-mask-image: linear-gradient(to right, transparent, black 10%, black 90%, transparent);
}

.animate-marquee {
    animation: marquee 30s linear infinite;
    display: flex;
    gap: 4rem;
    /* space-x-16 equivalent */
}

.marquee-container:hover .animate-marquee {
    animation-play-state: paused;
}

@keyframes marquee {
    0% {
        transform: translateX(0);
    }

    100% {
        transform: translateX(-50%);
    }
}



/* Preloader */
#preloader {
    transition: opacity 0.8s cubic-bezier(0.8, 0, 0.2, 1), visibility 0.8s;
}

#preloader.loaded {
    opacity: 0;
    visibility: hidden;
    transform: scale(1.05);
    filter: blur(10px);
}

#progress-bar {
    box-shadow: 0 0 15px rgba(34, 211, 238, 0.5);
}

.text-neon-premium {
    text-shadow: 0 0 20px rgba(34, 211, 238, 0.4), 0 0 40px rgba(168, 85, 247, 0.2);
}

/* --- REVEAL ANIMATIONS --- */
.char {
    display: inline-block;
    transform: translateY(100%);
    opacity: 0;
    transition: transform 0.8s cubic-bezier(0.2, 0, 0.2, 1), opacity 0.8s;
}

.word {
    display: inline-block;
    overflow: hidden;
    vertical-align: bottom;
}

.reveal-active .char {
    transform: translateY(0);
    opacity: 1;
}

/* --- MAGNETIC BUTTON BASE --- */
.magnetic-btn {
    transition: transform 0.2s ease-out;
}

/* --- BENTO PARALLAX BASE --- */
.bento-card img {
    will-change: transform;
}


/* Calculator Styles */
.calc-step {
    transition: opacity 0.5s ease, transform 0.5s ease;
}

.calc-step.hidden {
    display: none;
    pointer-events: none;
}

.calc-step.active {
    display: block;
    opacity: 1;
    animation: fadeInStep 0.5s ease-out forwards;
}

@keyframes fadeInStep {
    from {
        opacity: 0;
        transform: translateY(10px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.calc-option {
    background: rgba(255, 255, 255, 0.03);
    border: 1px solid rgba(255, 255, 255, 0.1);
    padding: 2rem;
    text-align: left;
    border-radius: 1px;
    /* Sharp technical look */
    transition: all 0.3s ease;
}

.calc-option:hover {
    background: rgba(255, 255, 255, 0.08);
    border-color: theme('colors.cyan.500');
    transform: translateY(-2px);
}

.calc-option:active {
    transform: scale(0.98);
}


/* Mobile Adaptation */
@media (max-width: 1024px) {

    .nav-arrow,
    #prev-slide,
    #next-slide {
        display: none !important;
        opacity: 0 !important;
        visibility: hidden !important;
        pointer-events: none !important;
    }

    .category-title {
        font-size: 2rem;
        /* Smaller titles */
    }


    .item-link {
        font-size: 1.5rem;
        /* Smaller list items */
    }

    .btn-close {
        top: 1rem;
        right: 1rem;
        padding: 0.5rem 1rem;
        font-size: 0.8rem;
    }

    #detail-overlay .max-w-5xl {
        padding-top: 0;
        /* Removing extra top padding since close btn is smaller */
    }



    /* Adjust calculator padding */
    .calc-option {
        padding: 1.5rem;
    }

    .radar-card {
        margin-bottom: 2rem;
    }
}

/* Radar Glitch Effect */
.glitch-layer {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(transparent 0%, rgba(34, 211, 238, 0.2) 2%, transparent 3%);
    opacity: 0;
    pointer-events: none;
    background-size: 100% 4px;
}

.radar-card:hover .glitch-layer {
    animation: scanGlitch 0.2s linear infinite;
    opacity: 0.5;
}

@keyframes scanGlitch {
    0% {
        background-position: 0 0;
    }

    100% {
        background-position: 0 100%;
    }
}

/* AI Widget Styles */
#ai-window.open {
    opacity: 1;
    pointer-events: all;
    transform: translateY(0);
}

.ai-msg {
    align-self: flex-start;
    background: rgba(34, 211, 238, 0.1);
    border: 1px solid rgba(34, 211, 238, 0.2);
    color: #ccfbf1;
    padding: 0.75rem 1rem;
    border-radius: 12px 12px 12px 2px;
    font-size: 0.85rem;
    line-height: 1.4;
    max-width: 85%;
    animation: popIn 0.3s cubic-bezier(0.175, 0.885, 0.32, 1.275);
}

.user-msg {
    align-self: flex-end;
    background: rgba(255, 255, 255, 0.1);
    color: white;
    padding: 0.75rem 1rem;
    border-radius: 12px 12px 2px 12px;
    font-size: 0.85rem;
    line-height: 1.4;
    max-width: 85%;
    animation: popIn 0.3s cubic-bezier(0.175, 0.885, 0.32, 1.275);
    margin-left: auto;
}

.ai-chip {
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid rgba(255, 255, 255, 0.1);
    color: #9ca3af;
    font-size: 0.7rem;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    padding: 0.5rem;
    border-radius: 4px;
    transition: all 0.2s;
    text-align: center;
}

.ai-chip:hover {
    background: rgba(34, 211, 238, 0.1);
    border-color: rgba(34, 211, 238, 0.4);
    color: white;
}

@keyframes popIn {
    from {
        opacity: 0;
        transform: scale(0.9) translateY(10px);
    }

    to {
        opacity: 1;
        transform: scale(1) translateY(0);
    }
}

/* Typing Dot Animation */
.typing-dot {
    display: inline-block;
    width: 4px;
    height: 4px;
    background-color: #22d3ee;
    border-radius: 50%;
    margin: 0 1px;
    animation: typingBounce 1.4s infinite ease-in-out both;
}

.typing-dot:nth-child(1) {
    animation-delay: -0.32s;
}

.typing-dot:nth-child(2) {
    animation-delay: -0.16s;
}

@keyframes typingBounce {

    0%,
    80%,
    100% {
        transform: scale(0);
    }

    40% {
        transform: scale(1);
    }
}

/* Tech Grid Background */
.tech-grid {
    background-size: 50px 50px;
    background-image:
        linear-gradient(to right, rgba(255, 255, 255, 0.03) 1px, transparent 1px),
        linear-gradient(to bottom, rgba(255, 255, 255, 0.03) 1px, transparent 1px);
}

/* Stats Card Glass */
.stat-card {
    background: rgba(255, 255, 255, 0.02);
    border: 1px solid rgba(255, 255, 255, 0.05);
    border-radius: 16px;
    padding: 2rem;
    transition: all 0.4s ease;
}

.stat-card:hover {
    border-color: rgba(34, 211, 238, 0.3);
    background: rgba(255, 255, 255, 0.04);
    transform: translateY(-5px);
    box-shadow: 0 10px 30px -10px rgba(0, 0, 0, 0.5);
}

/* Partner Logo Text */
.partner-logo {
    font-weight: 900;
    text-transform: uppercase;
    letter-spacing: -0.05em;
    color: rgba(255, 255, 255, 0.3);
    transition: all 0.3s;
    cursor: default;
}

.partner-logo:hover {
    color: white;
    text-shadow: 0 0 20px rgba(255, 255, 255, 0.5);
}


/* --- Navigation Arrows --- */
.nav-arrow {
    position: fixed;
    top: 50%;
    transform: translateY(-50%);
    z-index: 1000;
    /* High z-index to be above Three.js container */
    width: 60px;
    height: 60px;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.05);
    /* Glassy background */
    backdrop-filter: blur(10px);
    border: 1px solid rgba(255, 255, 255, 0.2);
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: all 0.5s cubic-bezier(0.23, 1, 0.32, 1);
    opacity: 0;
    /* Hidden by default, JS enables it */
    pointer-events: none;
    box-shadow: 0 0 20px rgba(0, 0, 0, 0.3);
}

.nav-arrow.visible {
    opacity: 1;
    pointer-events: auto;
}

.nav-arrow:hover {
    background: rgba(34, 211, 238, 0.1);
    /* Cyan tint */
    border-color: rgba(34, 211, 238, 0.5);
    box-shadow: 0 0 30px rgba(34, 211, 238, 0.3), inset 0 0 20px rgba(34, 211, 238, 0.1);
    transform: translateY(-50%) scale(1.1);
}

.nav-prev {
    left: 30px;
}

.nav-next {
    right: 30px;
}

/* Floating Animation */
@keyframes floatArrow {

    0%,
    100% {
        transform: translateY(-50%) translateX(0);
    }

    50% {
        transform: translateY(-55%) translateX(0);
    }
}

.nav-arrow.visible {
    animation: floatArrow 4s ease-in-out infinite;
}

.nav-arrow:hover {
    animation-play-state: paused;
}

/* Typewriter Cursor */
.typewriter-cursor::after {
    content: '|';
    display: inline-block;
    color: #22d3ee;
    margin-left: 2px;
    animation: blink-cursor 0.7s step-end infinite;
    font-weight: 100;
}

@keyframes blink-cursor {

    0%,
    100% {
        opacity: 1;
    }

    50% {
        opacity: 0;
    }
}

/* Workflow Progress Line */
.workflow-step {
    opacity: 0.3;
    transition: opacity 0.5s ease-out;
}

.workflow-step.active,
.workflow-step.completed {
    opacity: 1;
}

.workflow-step.completed .text-4xl,
.workflow-step.active .text-4xl {
    color: #22d3ee;
    /* cyan-400 */
    text-shadow: 0 0 10px rgba(34, 211, 238, 0.5);
}

.saas-menu {
    position: relative;
    padding-left: 1rem;
}

.cursor-line {
    top: 0;
    left: 0;
    width: 2px;
    background: #22d3ee;
    position: absolute;
    height: 48px;
    /* matches button height */
    transition: top 0.3s cubic-bezier(0.2, 0.8, 0.2, 1);
    box-shadow: 0 0 10px #22d3ee;
}

.saas-item {
    position: relative;
    transition: all 0.3s ease;
    opacity: 0.6;
}

.saas-item:hover {
    color: white;
    opacity: 1;
    padding-left: 2rem !important;
    /* Move text slightly */
}

.saas-content {
    transition: opacity 0.4s ease, transform 0.4s ease;
}


/* --- Bento Grid Styles --- */
.bento-card {
    backdrop-filter: blur(20px);
    box-shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.1), 0 2px 4px -1px rgba(0, 0, 0, 0.06);
    transition: all 0.5s cubic-bezier(0.2, 0.8, 0.2, 1);
}

.bento-card:hover {
    box-shadow: 0 0 40px rgba(34, 211, 238, 0.15), inset 0 0 20px rgba(255, 255, 255, 0.05);
    transform: translateY(-5px) scale(1.01);
    z-index: 10;
}

/* --- MENU OVERLAY --- */
#menu-overlay {
    transition: opacity 0.6s cubic-bezier(0.25, 1, 0.5, 1), visibility 0.6s;
    visibility: hidden;
}

#menu-overlay.open {
    visibility: visible;
    opacity: 1;
    pointer-events: auto;
}

/* Menu Links Hover Effect */
.menu-link {
    transition: transform 0.4s cubic-bezier(0.2, 1, 0.3, 1), color 0.4s;
    position: relative;
    /* overflow: hidden; */
}

/* Rolling Text Effect on Hover (Optional, handled via GSAP usually but simple CSS here) */
.menu-link:hover {
    transform: translateX(20px);
}

.menu-link::before {
    content: attr(data-text);
    position: absolute;
    top: 50%;
    left: 0;
    transform: translateY(-50%) skewX(-20deg) translateX(-100px);
    opacity: 0;
    color: var(--cyan);
    filter: blur(10px);
    transition: all 0.5s;
    pointer-events: none;
    z-index: -1;
}

.menu-link:hover::before {
    opacity: 0.2;
    transform: translateY(-50%) skewX(0deg) translateX(0);
    filter: blur(0px);
}

/* Hamburger Animation */
button.open .w-4:nth-child(1) {
    transform: rotate(45deg) translate(2px, 2px);
}

button.open .w-4:nth-child(2) {
    transform: rotate(-45deg) translate(2px, -2px);
}

/* Mobile Bento Card Height */
.bento-card {
    min-height: 200px;
    /* Mobile minimum height */
}

@media (min-width: 768px) {
    .bento-card {
        min-height: 0;
        /* Reset for desktop grid */
    }
}

/* --- PREMIUM FUTURISTIC HEADER --- */
#main-header {
    transition: all 0.5s cubic-bezier(0.2, 0.8, 0.2, 1);
    border-bottom: 1px solid rgba(255, 255, 255, 0);
}

#main-header.scrolled {
    background: rgba(0, 0, 0, 0.6);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    border-bottom: 1px solid rgba(34, 211, 238, 0.1);
    box-shadow: 0 10px 30px -10px rgba(0, 0, 0, 0.5);
}

/* Nav Item Premium */
.nav-link-premium {
    position: relative;
    font-size: 0.75rem;
    /* tiny tech look */
    font-weight: 500;
    letter-spacing: 0.15em;
    text-transform: uppercase;
    color: rgba(255, 255, 255, 0.7);
    transition: color 0.3s ease;
    padding-bottom: 4px;
    text-decoration: none;
}

.nav-link-premium::after {
    content: '';
    position: absolute;
    bottom: -2px;
    left: 0;
    width: 0%;
    height: 1px;
    background: linear-gradient(90deg, transparent, #22d3ee, transparent);
    /* Cyan gradient */
    transition: width 0.4s ease, opacity 0.4s ease;
    opacity: 0;
    box-shadow: 0 0 8px #22d3ee;
}

.nav-link-premium:hover {
    color: #fff;
    text-shadow: 0 0 10px rgba(34, 211, 238, 0.6);
}

.nav-link-premium:hover::after {
    width: 100%;
    opacity: 1;
}

/* CTA "Discuss Project" Premium */
.cta-button-premium {
    position: relative;
    background: linear-gradient(135deg, rgba(34, 211, 238, 0.1), rgba(30, 64, 175, 0.2));
    border: 1px solid rgba(34, 211, 238, 0.3);
    border-radius: 12px;
    padding: 0.75rem 2rem;
    font-size: 0.75rem;
    font-weight: 700;
    letter-spacing: 0.1em;
    text-transform: uppercase;
    color: #fff;
    overflow: hidden;
    transition: all 0.4s cubic-bezier(0.2, 0.8, 0.2, 1);
    box-shadow: 0 0 15px rgba(34, 211, 238, 0.1);
}

.cta-button-premium::before {
    content: '';
    position: absolute;
    inset: 0;
    background: linear-gradient(90deg, transparent, rgba(34, 211, 238, 0.4), transparent);
    transform: translateX(-100%);
    transition: transform 0.6s ease;
}

.cta-button-premium:hover {
    transform: translateY(-2px);
    border-color: rgba(34, 211, 238, 0.8);
    box-shadow: 0 0 30px rgba(34, 211, 238, 0.3), inset 0 0 10px rgba(34, 211, 238, 0.1);
    background: linear-gradient(135deg, rgba(34, 211, 238, 0.2), rgba(30, 64, 175, 0.4));
}

.cta-button-premium:hover::before {
    transform: translateX(100%);
}

/* --- CONTACT GLASS CARD --- */
.contact-glass-card {
    background: rgba(255, 255, 255, 0.03);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 24px;
    padding: 3rem;
    position: relative;
    overflow: hidden;
    transition: all 0.5s ease;
    box-shadow: 0 0 40px rgba(0, 0, 0, 0.5);
    max-width: 800px;
    margin: 0 auto;
}

.contact-glass-card:hover {
    border-color: rgba(34, 211, 238, 0.3);
    box-shadow: 0 0 60px rgba(34, 211, 238, 0.15);
    background: rgba(255, 255, 255, 0.05);
}

.contact-glass-card::before {
    content: '';
    position: absolute;
    top: -50%;
    left: -50%;
    width: 200%;
    height: 200%;
    background: radial-gradient(circle at center, rgba(34, 211, 238, 0.1), transparent 70%);
    opacity: 0;
    transition: opacity 0.5s ease;
    pointer-events: none;
}

.contact-glass-card:hover::before {
    opacity: 1;
}

.contact-email {
    font-size: 2.5rem;
    font-weight: 900;
    color: white;
    text-shadow: 0 0 20px rgba(255, 255, 255, 0.3);
    transition: all 0.3s ease;
    display: inline-block;
    margin-bottom: 0.5rem;
}

.contact-email:hover {
    color: #22d3ee;
    text-shadow: 0 0 40px rgba(34, 211, 238, 0.8);
    transform: scale(1.05);
}

/* Fixed Icons in Footer */
.footer-icon-btn {
    width: 3.5rem;
    height: 3.5rem;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid rgba(255, 255, 255, 0.1);
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.3s ease;
    color: white;
    cursor: pointer;
}

.footer-icon-btn:hover {
    transform: translateY(-5px);
    background: rgba(255, 255, 255, 0.1);
    border-color: var(--cyan);
    color: var(--cyan);
    box-shadow: 0 0 20px rgba(34, 211, 238, 0.3);
}

/* Up Button */
.footer-up-btn {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.8rem 1.5rem;
    border-radius: 9999px;
    border: 1px solid rgba(255, 255, 255, 0.1);
    background: rgba(255, 255, 255, 0.05);
    color: #9ca3af;
    text-transform: uppercase;
    font-size: 0.75rem;
    letter-spacing: 0.1em;
    transition: all 0.3s ease;
    cursor: pointer;
}

.footer-up-btn:hover {
    border-color: var(--cyan);
    color: white;
    background: rgba(34, 211, 238, 0.1);
}

/* Mobile Adjustments */
@media (max-width: 768px) {
    .contact-glass-card {
        padding: 2rem 1.5rem;
    }

    .contact-email {
        font-size: 1.8rem;
    }
}

/* --- HERO SECTION REDESIGN --- */

.hero-title {
    text-shadow: 0 0 30px rgba(34, 211, 238, 0.3);
    will-change: transform, opacity;
}

.hero-cards-container {
    perspective: 1000px;
}

.hero-card {
    position: relative;
    cursor: pointer;
    opacity: 0;
    /* Hidden initially for GSAP */
    transform: translateY(20px);
    transition: transform 0.4s cubic-bezier(0.25, 0.46, 0.45, 0.94);
}

.hero-card:hover {
    transform: scale(1.05) translateY(-5px);
    z-index: 10;
}

.hero-card-inner {
    background: rgba(255, 255, 255, 0.03);
    backdrop-filter: blur(8px);
    -webkit-backdrop-filter: blur(8px);
    border: 1px solid rgba(255, 255, 255, 0.1);
    padding: 1.5rem 2.5rem;
    border-radius: 4px;
    /* Slightly rounded, technical look */
    position: relative;
    overflow: hidden;
    transition: all 0.3s ease;
    min-width: 160px;
    display: flex;
    justify-content: center;
    align-items: center;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.3);
}

.hero-card:hover .hero-card-inner {
    border-color: rgba(34, 211, 238, 0.5);
    background: rgba(255, 255, 255, 0.08);
    box-shadow: 0 0 25px rgba(34, 211, 238, 0.15), inset 0 0 10px rgba(34, 211, 238, 0.05);
}

.hero-card-text {
    font-family: 'Inter', sans-serif;
    font-weight: 700;
    font-size: 0.85rem;
    text-transform: uppercase;
    letter-spacing: 0.15em;
    color: rgba(255, 255, 255, 0.8);
    position: relative;
    z-index: 2;
    transition: color 0.3s ease;
    white-space: nowrap;
}

.hero-card:hover .hero-card-text {
    color: #fff;
    text-shadow: 0 0 10px rgba(34, 211, 238, 0.8);
}

/* Internal Glow Scan Effect */
.hero-card-glow {
    position: absolute;
    top: 0;
    left: -100%;
    width: 50%;
    height: 100%;
    background: linear-gradient(90deg,
            transparent,
            rgba(34, 211, 238, 0.1),
            transparent);
    transform: skewX(-25deg);
    transition: left 0.5s;
    pointer-events: none;
}

.hero-card:hover .hero-card-glow {
    left: 150%;
    transition: left 0.7s ease-in-out;
}

/* Mobile Adjustments for Hero Cards */
@media (max-width: 768px) {
    .hero-card-inner {
        padding: 1rem 1.5rem;
        min-width: 120px;
    }

    .hero-card-text {
        font-size: 0.7rem;
        letter-spacing: 0.1em;
    }

    .hero-title {
        font-size: 3.5rem;
        /* value-adjusted from 5xl/9xl logic */
    }
}

/* --- BUSINESS RESULTS SECTION --- */

.tech-stat-card {
    background: rgba(255, 255, 255, 0.02);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    border: 1px solid rgba(255, 255, 255, 0.08);
    position: relative;
    overflow: hidden;
    transition: all 0.5s cubic-bezier(0.23, 1, 0.32, 1);
}

.tech-stat-card:hover {
    transform: translateY(-10px);
    background: rgba(255, 255, 255, 0.05);
    border-color: rgba(34, 211, 238, 0.3);
    box-shadow: 0 10px 30px -10px rgba(0, 0, 0, 0.5);
}

.tech-stat-number {
    font-family: 'Inter', sans-serif;
    font-weight: 900;
    font-size: 4.5rem;
    line-height: 1;
    background: linear-gradient(to bottom right, #fff, #22d3ee);
    -webkit-background-clip: text;
    background-clip: text;
    -webkit-text-fill-color: transparent;
    filter: drop-shadow(0 0 15px rgba(34, 211, 238, 0.3));
    letter-spacing: -0.05em;
    transition: all 0.5s;
}

.tech-stat-label {
    font-family: 'Inter', sans-serif;
    font-size: 1rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.1em;
    color: rgba(255, 255, 255, 0.5);
    transition: color 0.3s;
}

.tech-stat-card:hover .tech-stat-label {
    color: white;
}

/* Gradients for numbers */
.text-purple-gradient {
    background: linear-gradient(to bottom right, #fff, #a855f7);
    background-clip: text;
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    filter: drop-shadow(0 0 15px rgba(168, 85, 247, 0.3));
}

.text-green-gradient {
    background: linear-gradient(to bottom right, #fff, #22c55e);
    background-clip: text;
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    filter: drop-shadow(0 0 15px rgba(34, 197, 94, 0.3));
}

.text-orange-gradient {
    background: linear-gradient(to bottom right, #fff, #f97316);
    background-clip: text;
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    filter: drop-shadow(0 0 15px rgba(249, 115, 22, 0.3));
}

@media (max-width: 768px) {
    .tech-stat-number {
        font-size: 3.5rem;
    }
}

/* --- WORKFLOW SECTION (TECH INTERFACE) --- */

.workflow-card {
    position: relative;
    border-radius: 1.5rem;
    overflow: hidden;
    transition: all 0.5s cubic-bezier(0.23, 1, 0.32, 1);
    background: transparent;
    height: 100%;
}

.workflow-card-bg {
    position: absolute;
    inset: 0;
    background: rgba(255, 255, 255, 0.05);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    border: 1px solid rgba(255, 255, 255, 0.08);
    transition: all 0.5s;
    z-index: 1;
}

.workflow-card:hover .workflow-card-bg {
    background: rgba(255, 255, 255, 0.05);
    border-color: rgba(34, 211, 238, 0.3);
}

.workflow-card:hover {
    transform: translateY(-10px);
}

.workflow-step-number {
    font-size: 3.5rem;
    font-family: 'Inter', sans-serif;
    font-weight: 900;
    line-height: 1;
    opacity: 0.8;
}

.text-cyan-gradient {
    background: linear-gradient(to bottom right, #fff, #22d3ee);
    -webkit-background-clip: text;
    background-clip: text;
    -webkit-text-fill-color: transparent;
}

/* Reusing gradients from Business Results where possible, ensuring consistency */

.workflow-glow {
    position: absolute;
    top: -50%;
    left: -50%;
    width: 200%;
    height: 200%;
    background: radial-gradient(circle, rgba(34, 211, 238, 0.1) 0%, transparent 70%);
    opacity: 0;
    transition: opacity 0.5s;
    pointer-events: none;
    z-index: 0;
}

.workflow-card:hover .workflow-glow {
    opacity: 1;
}

/* --- CALCULATOR SECTION (HOLOGRAPHIC) --- */
.calc-console,
.calc-receipt {
    background: rgba(255, 255, 255, 0.02);
    backdrop-filter: blur(15px);
    -webkit-backdrop-filter: blur(15px);
    border: 1px solid rgba(255, 255, 255, 0.08);
    border-radius: 1.5rem;
}

.calc-btn {
    width: 100%;
    padding: 1.25rem;
    text-align: left;
    background: rgba(255, 255, 255, 0.03);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 0.75rem;
    color: rgba(255, 255, 255, 0.6);
    font-weight: 300;
    transition: all 0.3s;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    font-size: 0.9rem;
    cursor: pointer;
    position: relative;
    z-index: 20;
}

.calc-btn:hover {
    background: rgba(34, 211, 238, 0.1);
    border-color: rgba(34, 211, 238, 0.3);
    color: white;
}

.calc-btn.active {
    background: rgba(34, 211, 238, 0.15);
    border-color: #22d3ee;
    color: white;
    box-shadow: 0 0 15px rgba(34, 211, 238, 0.2);
}

/* Tech Slider */
.tech-slider {
    -webkit-appearance: none;
    appearance: none;
    width: 100%;
    height: 4px;
    background: rgba(255, 255, 255, 0.1);
    border-radius: 2px;
    outline: none;
    cursor: pointer;
    position: relative;
    z-index: 20;
}

.tech-slider::-webkit-slider-thumb {
    -webkit-appearance: none;
    appearance: none;
    width: 20px;
    height: 20px;
    border-radius: 50%;
    background: #22d3ee;
    cursor: pointer;
    box-shadow: 0 0 10px #22d3ee;
    border: 2px solid white;
    margin-top: -8px;
}

.tech-slider::-moz-range-thumb {
    width: 20px;
    height: 20px;
    border-radius: 50%;
    background: #22d3ee;
    cursor: pointer;
    box-shadow: 0 0 10px #22d3ee;
    border: 2px solid white;
}

.tech-slider::-webkit-slider-runnable-track {
    width: 100%;
    height: 4px;
    cursor: pointer;
    background: linear-gradient(to right, #22d3ee 0%, #22d3ee var(--checked-width, 0%), rgba(255, 255, 255, 0.1) var(--checked-width, 0%));
}

.service-card-bg {
    -webkit-backdrop-filter: blur(10px);
    backdrop-filter: blur(10px);
}


/* --- WORKFLOW SECTION (TECH REDESIGN) --- */
.workflow-step-number {
    font-variant-numeric: tabular-nums;
}

#workflow-line-fill {
    box-shadow: 0 0 15px rgba(34, 211, 238, 0.6);
}

/* --- SERVICES SECTION (TECH STYLE) --- */
.hero-card {
    position: relative;
    width: 140px;
    /* Base width for mobile */
    height: 180px;
    /* Base height for mobile */
    border-radius: 1rem;
    cursor: pointer;
    overflow: hidden;
    transition: all 0.5s cubic-bezier(0.23, 1, 0.32, 1);
    background: rgba(255, 255, 255, 0.02);
    border: 1px solid rgba(255, 255, 255, 0.1);
    backdrop-filter: blur(5px);
}

@media (min-width: 768px) {
    .hero-card {
        width: 160px;
        height: 220px;
        background: rgba(255, 255, 255, 0.03);
        backdrop-filter: blur(10px);
    }
}

.service-card {
    position: relative;
    border-radius: 1rem;
    overflow: hidden;
    transition: all 0.5s cubic-bezier(0.23, 1, 0.32, 1);
    background: transparent;
    height: 100%;
    min-height: 250px;
}

.service-card-bg {
    position: absolute;
    inset: 0;
    background: rgba(255, 255, 255, 0.03);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    border: 1px solid rgba(255, 255, 255, 0.08);
    transition: all 0.5s;
    z-index: 1;
}

.service-card:hover .service-card-bg {
    background: rgba(255, 255, 255, 0.06);
    border-color: rgba(34, 211, 238, 0.3);
    box-shadow: 0 0 30px rgba(34, 211, 238, 0.1);
}

.service-card:hover {
    transform: translateY(-5px);
}

.cinematic-header {
    background: #000;
    position: relative;
    overflow: hidden;
}

.cinematic-header::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 100%;
    height: 150px;
    background: linear-gradient(to top, #000, transparent);
    pointer-events: none;
}

/* --- TRUST BLOCK & PARTNERS --- */
.partner-logo-premium {
    filter: grayscale(1) brightness(0.7);
    transition: all 0.6s cubic-bezier(0.16, 1, 0.3, 1);
}

.partner-logo-premium:hover {
    filter: grayscale(0) brightness(1.1);
    transform: scale(1.08) translateY(-2px);
}

.stat-value-text {
    font-size: clamp(1.2rem, 3vw, 2rem);
    line-height: 1;
    letter-spacing: -0.05em;
    font-weight: 900;
}

@media (min-width: 768px) {
    .stat-value-text {
        font-size: 2.5rem;
    }
}

.testimonial-glow {
    position: absolute;
    top: -30%;
    left: -30%;
    width: 160%;
    height: 160%;
    background: radial-gradient(circle at center, rgba(34, 211, 238, 0.08), transparent 70%);
    pointer-events: none;
    z-index: 0;
}

/* --- VISUAL RHYTHM: GLASS CONSOLE CALCULATOR --- */
.calc-console,
.calc-receipt {
    background: rgba(0, 0, 0, 0.4) !important;
    backdrop-filter: blur(20px);
    border: 1px solid rgba(255, 255, 255, 0.05) !important;
    border-radius: 24px !important;
    box-shadow: 0 20px 50px rgba(0, 0, 0, 0.5);
}

.calc-btn {
    background: rgba(255, 255, 255, 0.02);
    border: 1px solid rgba(255, 255, 255, 0.05);
    border-radius: 12px;
    transition: all 0.4s cubic-bezier(0.23, 1, 0.32, 1);
}

.calc-btn:hover {
    background: rgba(34, 211, 238, 0.05);
    border-color: rgba(34, 211, 238, 0.3);
    transform: translateY(-2px);
    box-shadow: 0 10px 20px rgba(0, 0, 0, 0.2);
}

.calc-btn.active {
    background: rgba(34, 211, 238, 0.1);
    border-color: #22d3ee;
    box-shadow: 0 0 30px rgba(34, 211, 238, 0.15);
}

/* Hide the old decorative corners to clean up */
.calc-receipt .absolute.border-t-2,
.calc-receipt .absolute.border-b-2,
.calc-receipt .absolute.border-l-2,
.calc-receipt .absolute.border-r-2 {
    display: none;
}

/* Floating Separator */
.calc-console::after {
    content: '';
    position: absolute;
    top: 0;
    left: 50%;
    transform: translateX(-50%);
    width: 60%;
    height: 1px;
    background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.1), transparent);
}