/* ========================================
   OPTICORE - Main Styles
   Dark theme with gradient accents
======================================== */

/* CSS Variables */
:root {
    --bg-dark: #0a0a0f;
    --bg-darker: #050508;
    --bg-section: #08080c;
    --text-white: #ffffff;
    --text-gray: #6b6b7b;
    --text-light-gray: #9b9bab;
    --accent-purple: #8b5cf6;
    --accent-pink: #ec4899;
    --accent-blue: #3b82f6;
    --accent-cyan: #06b6d4;
    --gradient-primary: linear-gradient(135deg, #8b5cf6 0%, #ec4899 50%, #3b82f6 100%);
    --font-main: 'Space Grotesk', -apple-system, BlinkMacSystemFont, sans-serif;
    --transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

/* Pause ALL CSS animations when tab is hidden (CPU optimization) */
body.tab-hidden *,
body.tab-hidden *::before,
body.tab-hidden *::after {
    animation-play-state: paused !important;
}

/* Reset */
*, *::before, *::after {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

/* Custom Scrollbar */
::-webkit-scrollbar {
    width: 8px;
}

::-webkit-scrollbar-track {
    background: var(--bg-darker);
}

::-webkit-scrollbar-thumb {
    background: linear-gradient(180deg, var(--accent-purple) 0%, var(--accent-pink) 100%);
    border-radius: 10px;
}

::-webkit-scrollbar-thumb:hover {
    background: linear-gradient(180deg, var(--accent-pink) 0%, var(--accent-purple) 100%);
}

/* Firefox */
html {
    scrollbar-width: thin;
    scrollbar-color: var(--accent-purple) var(--bg-darker);
}

html, body {
    max-width: 100vw;
    overflow-x: hidden !important;
}

body {
    font-family: var(--font-main);
    background: var(--bg-dark);
    color: var(--text-white);
    line-height: 1.6;
    position: relative;
}

/* Block scroll when modal is open */
html.modal-open,
body.modal-open {
    overflow: hidden !important;
    height: 100%;
}

/* Prevent horizontal scroll on all elements */
*, *::before, *::after {
    max-width: 100vw;
}

section {
    overflow-x: hidden;
}

a {
    text-decoration: none;
    color: inherit;
    transition: var(--transition);
}

ul {
    list-style: none;
}

/* 3D Canvas Background */
#bg-canvas {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 0;
    pointer-events: none;
}

/* ========================================
   HEADER & NAVIGATION
======================================== */
.header {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    z-index: 1000;
    padding: 25px 50px;
    background: transparent;
    transition: var(--transition);
}

.header.scrolled {
    /* background: rgba(10, 10, 15, 0.85);
    backdrop-filter: blur(20px); */
    padding: 15px 50px;
}

.nav {
    display: flex;
    align-items: center;
    justify-content: space-between;
    max-width: 1400px;
    margin: 0 auto;
    background: rgba(20, 15, 30, 0.6);
    border: 1px solid rgba(255, 255, 255, 0.05);
    border-radius: 50px;
    padding: 8px 25px;
    backdrop-filter: blur(10px);
}

.logo {
    display: flex;
    align-items: center;
    gap: 6px;
    font-family: 'Orbitron', sans-serif;
    font-size: 20px;
    font-weight: 700;
    letter-spacing: 4px;
    color: var(--text-white);
}

.logo-icon {
    font-size: 16px;
    color: var(--accent-purple);
}

.nav-links {
    display: flex;
    gap: 24px;
}

.nav-link {
    font-family: 'Montserrat', sans-serif;
    font-size: 13px;
    font-weight: 600;
    color: var(--text-gray);
    letter-spacing: 0.6px;
    text-transform: uppercase;
    position: relative;
    padding: 8px 12px;
    border-radius: 20px;
    transition: var(--transition);
}

/* Hover - овальная подсветка */
.nav-link:hover {
    color: var(--text-white);
    background: rgba(255, 255, 255, 0.05);
}

/* Active - линия снизу */
.nav-link.active {
    color: var(--text-white);
}

/* Линия для всех nav-link (скрыта по умолчанию) */
.nav-link::after {
    content: '';
    position: absolute;
    bottom: 2px;
    left: 8px;
    width: 0;
    height: 2px;
    background: linear-gradient(90deg, var(--accent-purple), var(--accent-pink));
    border-radius: 2px;
    transition: width 0.4s ease;
}

/* Active - линия появляется слева направо */
.nav-link.active::after {
    width: calc(100% - 16px);
}

/* Avatar nav link shimmer */
.nav-link-avatar,
.nav-link-avatar:hover {
    background: linear-gradient(90deg, #8b5cf6, #ec4899, #8b5cf6);
    background-size: 200% 100%;
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    animation: avatar-link-shift 4s linear infinite;
}
.nav-link-avatar::after { display: none; }
@keyframes avatar-link-shift {
    0% { background-position: 0% 50%; }
    100% { background-position: 200% 50%; }
}

/* Button Styles */
.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    padding: 12px 24px;
    font-size: 15px;
    font-weight: 500;
    border-radius: 25px;
    cursor: pointer;
    transition: var(--transition);
    border: none;
    font-family: inherit;
}

.btn-primary {
    background: var(--text-white);
    color: var(--bg-dark);
}

.btn-primary:hover {
    background: var(--accent-purple);
    color: var(--text-white);
    transform: translateY(-2px);
    box-shadow: 0 10px 30px rgba(139, 92, 246, 0.3);
}

.btn-outline {
    background: transparent;
    color: var(--text-white);
    border: 1px solid rgba(255, 255, 255, 0.25);
    padding: 12px 28px;
}

.btn-outline:hover {
    border-color: var(--text-white);
    background: rgba(255, 255, 255, 0.08);
}

.btn-outline-light {
    background: transparent;
    color: var(--text-white);
    border: 1px solid rgba(255, 255, 255, 0.2);
    padding: 14px 28px;
    font-size: 13px;
}

.btn-outline-light:hover {
    border-color: rgba(255, 255, 255, 0.5);
    background: rgba(255, 255, 255, 0.05);
}

.btn-outline-light svg {
    transition: transform 0.3s ease;
}

.btn-outline-light:hover svg {
    transform: translateX(4px);
}

/* OPTICORE Style Button */
.btn-opticore {
    display: inline-flex;
    align-items: center;
    gap: 0;
    padding: 4px;
    padding-left: 20px;
    border: 1px solid rgba(255, 255, 255, 0.2);
    border-radius: 50px;
    background: rgba(255, 255, 255, 0.03);
    cursor: pointer;
    transition: var(--transition);
    text-decoration: none;
}

.btn-opticore:hover {
    border-color: rgba(139, 92, 246, 0.5);
    background: rgba(139, 92, 246, 0.08);
}

.btn-opticore .btn-text {
    font-family: 'Orbitron', sans-serif;
    font-size: 12px;
    font-weight: 600;
    letter-spacing: 1.5px;
    color: var(--text-white);
    text-transform: uppercase;
    padding-right: 15px;
}

.btn-opticore .btn-icon {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.1);
    display: flex;
    align-items: center;
    justify-content: center;
    transition: var(--transition);
}

.btn-opticore .btn-icon svg {
    width: 16px;
    height: 16px;
    color: var(--text-white);
    transition: transform 0.3s ease;
}

.btn-opticore:hover .btn-icon {
    background: var(--accent-purple);
}

.btn-opticore:hover .btn-icon svg {
    transform: translateX(2px);
}

/* Click animation for btn-opticore */
.btn-opticore:active {
    transform: scale(0.95);
}

.btn-opticore.clicking {
    animation: btnClickPulse 0.6s ease-out;
}

.btn-opticore.clicking .btn-icon {
    animation: btnIconGlow 0.6s ease-out;
}

@keyframes btnClickPulse {
    0% {
        transform: scale(1);
        box-shadow: 0 0 0 0 rgba(139, 92, 246, 0.4);
    }
    30% {
        transform: scale(0.95);
        box-shadow: 0 0 0 0 rgba(139, 92, 246, 0.4);
    }
    60% {
        transform: scale(1.02);
        box-shadow: 0 0 20px 10px rgba(139, 92, 246, 0.3);
    }
    100% {
        transform: scale(1);
        box-shadow: 0 0 40px 20px rgba(139, 92, 246, 0);
    }
}

@keyframes btnIconGlow {
    0% {
        background: rgba(255, 255, 255, 0.1);
        box-shadow: none;
    }
    30% {
        background: var(--accent-purple);
        box-shadow: 0 0 20px rgba(139, 92, 246, 0.6);
    }
    100% {
        background: var(--accent-purple);
        box-shadow: 0 0 30px rgba(139, 92, 246, 0.4);
    }
}

.btn-icon {
    width: 48px;
    height: 48px;
    padding: 0;
    border-radius: 50%;
    background: transparent;
    border: 1px solid rgba(255, 255, 255, 0.25);
    color: var(--text-white);
}

.btn-icon:hover {
    background: rgba(255, 255, 255, 0.1);
    border-color: var(--text-white);
}

/* Round Button (только иконка) */
.btn-round {
    width: 48px;
    height: 48px;
    border-radius: 50%;
    border: 1px solid rgba(255, 255, 255, 0.2);
    background: rgba(255, 255, 255, 0.03);
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: var(--transition);
    text-decoration: none;
    color: var(--text-white);
}

.btn-round:hover {
    border-color: rgba(139, 92, 246, 0.5);
    background: rgba(139, 92, 246, 0.1);
}

.btn-round svg {
    width: 18px;
    height: 18px;
}

/* Nav Contact Icons - Gradient Glow Style */
.nav-contacts {
    display: flex;
    align-items: center;
    gap: 10px;
    margin-right: 15px;
}

.nav-contact-icon {
    width: 42px;
    height: 42px;
    border-radius: 50%;
    background: transparent;
    border: 2px solid transparent;
    background-image: linear-gradient(rgba(20, 15, 30, 0.8), rgba(20, 15, 30, 0.8)),
                      linear-gradient(135deg, var(--accent-purple), var(--accent-pink));
    background-origin: border-box;
    background-clip: padding-box, border-box;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: all 0.3s ease;
    text-decoration: none;
    color: var(--text-white);
}

.nav-contact-icon:hover {
    box-shadow: 0 0 25px rgba(139, 92, 246, 0.5);
    transform: scale(1.08);
}

.nav-contact-icon svg {
    width: 18px;
    height: 18px;
}

/* Phone Dropdown (desktop only) */
.phone-dropdown-wrapper {
    position: relative;
    display: inline-block;
}

.phone-dropdown-wrapper .nav-contact-icon {
    font-family: inherit;
}

.phone-dropdown {
    position: absolute;
    top: calc(100% + 10px);
    left: 50%;
    transform: translateX(-50%) translateY(5px);
    background: rgba(26, 26, 46, 0.97);
    border: 1px solid rgba(139, 92, 246, 0.2);
    border-radius: 12px;
    padding: 8px 0;
    min-width: 220px;
    opacity: 0;
    visibility: hidden;
    transition: all 0.25s ease;
    z-index: 1000;
    box-shadow: 0 10px 40px rgba(0, 0, 0, 0.5);
    backdrop-filter: blur(20px);
}

.phone-dropdown::before {
    content: '';
    position: absolute;
    top: -6px;
    left: 50%;
    transform: translateX(-50%) rotate(45deg);
    width: 12px;
    height: 12px;
    background: rgba(26, 26, 46, 0.97);
    border-left: 1px solid rgba(139, 92, 246, 0.2);
    border-top: 1px solid rgba(139, 92, 246, 0.2);
}

.phone-dropdown-wrapper:hover .phone-dropdown {
    opacity: 1;
    visibility: visible;
    transform: translateX(-50%) translateY(0);
}

.phone-dropdown-item {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 10px 18px;
    color: var(--text-white);
    text-decoration: none;
    font-size: 14px;
    transition: background 0.2s;
    white-space: nowrap;
}

.phone-dropdown-item:hover {
    background: rgba(139, 92, 246, 0.12);
}

.phone-dropdown-item svg {
    width: 16px;
    height: 16px;
    color: var(--accent-purple);
    flex-shrink: 0;
}

/* ========================================
   HERO SECTION
======================================== */
.hero {
    position: relative;
    min-height: 100vh;
    display: flex;
    align-items: center;
    padding: 120px 50px 80px;
    overflow: hidden;
    z-index: 2;
}

/* Волна (Wave) переход между hero и следующей секцией */
.hero::after {
    content: '';
    position: absolute;
    bottom: -2px;
    left: 0;
    width: 100%;
    height: 100px;
    background: var(--bg-dark);
    clip-path: polygon(
        0% 100%,
        0% 60%,
        5% 65%,
        10% 55%,
        15% 50%,
        20% 55%,
        25% 45%,
        30% 40%,
        35% 50%,
        40% 45%,
        45% 35%,
        50% 40%,
        55% 30%,
        60% 35%,
        65% 25%,
        70% 30%,
        75% 20%,
        80% 25%,
        85% 15%,
        90% 20%,
        95% 10%,
        100% 15%,
        100% 100%
    );
    pointer-events: none;
    z-index: 4;
}

.hero-content {
    position: relative;
    z-index: 10;
    max-width: 700px;
    padding-left: 20px;
}

.hero-subtitle {
    font-size: 14px;
    font-weight: 300;
    letter-spacing: 5px;
    color: #f472b6;
    text-shadow: 0 0 15px rgba(244, 114, 182, 0.6);
    margin-bottom: 8px;
    text-transform: uppercase;
}

.hero-title {
    font-family: 'Space Grotesk', sans-serif;
    font-size: clamp(48px, 8vw, 100px);
    font-weight: 900;
    letter-spacing: 4px;
    line-height: 1;
    margin-bottom: 25px;
    background: linear-gradient(135deg, #ffffff 0%, #a78bfa 50%, #f472b6 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    filter: drop-shadow(0 4px 20px rgba(167, 139, 250, 0.4));
}

.hero-description {
    font-size: 15px;
    line-height: 1.9;
    color: rgba(255, 255, 255, 0.85);
    text-shadow: 0 2px 10px rgba(0,0,0,0.6);
    max-width: 380px;
    margin-bottom: 35px;
}

.hero-buttons {
    display: flex;
    align-items: center;
    gap: 12px;
    margin-bottom: 45px;
}

.hero-social {
    display: flex;
    gap: 25px;
}

.social-link {
    font-size: 13px;
    color: var(--text-gray);
    transition: var(--transition);
    font-weight: 500;
}

.social-link:hover {
    color: var(--text-white);
}

/* Scroll Indicator */
.scroll-indicator {
    position: absolute;
    bottom: 50px;
    left: 50%;
    transform: translateX(-50%);
    z-index: 10;
}

.scroll-arrow {
    width: 45px;
    height: 45px;
    border: 1px solid rgba(255, 255, 255, 0.2);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--text-gray);
    animation: bounce 2s infinite;
    cursor: pointer;
    transition: var(--transition);
}

.scroll-arrow:hover {
    border-color: var(--text-white);
    color: var(--text-white);
}

@keyframes bounce {
    0%, 100% { transform: translateY(0); }
    50% { transform: translateY(8px); }
}

/* Hero Badge - Rotating Circle */
.hero-badge {
    position: absolute;
    right: 28%;
    top: 45%;
    transform: translateY(-50%);
    z-index: 5;
}

.badge-circle {
    width: 130px;
    height: 130px;
    position: relative;
    display: flex;
    align-items: center;
    justify-content: center;
}

.badge-svg {
    position: absolute;
    width: 100%;
    height: 100%;
    animation: rotate 25s linear infinite;
}

.badge-svg text {
    fill: var(--text-gray);
    font-size: 11px;
    letter-spacing: 3px;
    text-transform: uppercase;
}

.badge-center {
    width: 50px;
    height: 50px;
    border: 1px solid rgba(255, 255, 255, 0.2);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--text-gray);
}

@keyframes rotate {
    from { transform: rotate(0deg); }
    to { transform: rotate(360deg); }
}

/* Hero Nav Arrows */
.hero-nav-arrows {
    position: absolute;
    right: 50px;
    bottom: 50px;
    display: flex;
    gap: 12px;
    z-index: 10;
}

.nav-arrow {
    width: 50px;
    height: 50px;
    border: 1px solid rgba(255, 255, 255, 0.15);
    border-radius: 50%;
    background: transparent;
    color: var(--text-white);
    cursor: pointer;
    transition: var(--transition);
    display: flex;
    align-items: center;
    justify-content: center;
}

.nav-arrow:hover {
    background: rgba(255, 255, 255, 0.1);
    border-color: rgba(255, 255, 255, 0.4);
}

/* ========================================
   ABOUT SECTION
======================================== */
.about {
    position: relative;
    min-height: 100vh;
    padding: 100px 50px;
    display: flex;
    align-items: center;
    background: linear-gradient(180deg, var(--bg-dark) 0%, var(--bg-section) 100%);
    overflow: hidden;
    z-index: 2;
}

/* Constellation Background */
.about-constellation {
    position: absolute;
    inset: 0;
    pointer-events: none;
    z-index: 1;
}

.about-star {
    position: absolute;
    width: 4px;
    height: 4px;
    background: #fff;
    border-radius: 50%;
    box-shadow: 0 0 6px rgba(255,255,255,0.8);
    animation: starTwinkle 3s ease-in-out infinite;
}

.about-star:nth-child(1) { top: 12%; left: 8%; animation-delay: 0s; }
.about-star:nth-child(2) { top: 22%; left: 22%; animation-delay: 0.5s; }
.about-star:nth-child(3) { top: 8%; left: 38%; animation-delay: 1s; }
.about-star:nth-child(4) { top: 32%; left: 12%; animation-delay: 1.5s; }
.about-star:nth-child(5) { top: 18%; right: 28%; animation-delay: 2s; }
.about-star:nth-child(6) { bottom: 28%; left: 18%; animation-delay: 0.3s; }
.about-star:nth-child(7) { bottom: 18%; left: 32%; animation-delay: 0.8s; }
.about-star:nth-child(8) { bottom: 22%; right: 22%; animation-delay: 1.3s; }
.about-star:nth-child(9) { top: 45%; left: 5%; animation-delay: 0.6s; }
.about-star:nth-child(10) { top: 55%; right: 8%; animation-delay: 1.8s; }
.about-star:nth-child(11) { bottom: 35%; right: 35%; animation-delay: 2.2s; }
.about-star:nth-child(12) { top: 65%; left: 28%; animation-delay: 0.9s; }

.about-constellation-line {
    position: absolute;
    height: 1px;
    background: rgba(255,255,255,0.08);
    transform-origin: left center;
}

.about-constellation-line:nth-child(13) { top: 15%; left: 10%; width: 120px; transform: rotate(25deg); }
.about-constellation-line:nth-child(14) { top: 20%; left: 24%; width: 100px; transform: rotate(-40deg); }
.about-constellation-line:nth-child(15) { top: 28%; left: 14%; width: 80px; transform: rotate(60deg); }
.about-constellation-line:nth-child(16) { bottom: 26%; left: 20%; width: 110px; transform: rotate(-15deg); }
.about-constellation-line:nth-child(17) { top: 50%; right: 15%; width: 90px; transform: rotate(30deg); }
.about-constellation-line:nth-child(18) { bottom: 30%; right: 25%; width: 70px; transform: rotate(-50deg); }

.about-nebula {
    position: absolute;
    border-radius: 50%;
    filter: blur(60px);
    opacity: 0.15;
}

.about-nebula-1 {
    width: 400px;
    height: 400px;
    background: var(--accent-purple);
    top: 10%;
    left: 5%;
}

.about-nebula-2 {
    width: 300px;
    height: 300px;
    background: var(--accent-pink);
    bottom: 15%;
    right: 10%;
}

@keyframes starTwinkle {
    0%, 100% { opacity: 0.3; transform: scale(1); }
    50% { opacity: 1; transform: scale(1.3); }
}

/* About Slider */
.about-slider {
    position: relative;
    z-index: 10;
    max-width: 550px;
    margin-left: auto;
    margin-right: 18%;
}

.about-slides {
    position: relative;
    min-height: 340px;
}

.about-slide {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    opacity: 0;
    visibility: hidden;
    transform: translateX(30px);
    transition: all 0.5s cubic-bezier(0.4, 0, 0.2, 1);
}

.about-slide.active {
    position: relative;
    opacity: 1;
    visibility: visible;
    transform: translateX(0);
}

.about-slide.prev {
    transform: translateX(-30px);
}

.about-label {
    font-size: 14px;
    letter-spacing: 4px;
    color: rgba(255, 255, 255, 0.75);
    margin-bottom: 25px;
    text-transform: uppercase;
    font-weight: 400;
}

.about-title {
    font-family: 'Orbitron', sans-serif;
    font-size: clamp(26px, 3vw, 38px);
    font-weight: 700;
    line-height: 1.4;
    margin-bottom: 25px;
    color: var(--text-white);
    letter-spacing: 1px;
    text-transform: uppercase;
}

.about-description {
    font-size: 17px;
    line-height: 1.9;
    color: rgba(255, 255, 255, 0.75);
    margin-bottom: 0;
}

.about-cta {
    margin-top: 30px;
}

/* Slider Navigation */
.about-slider-nav {
    display: flex;
    align-items: center;
    gap: 20px;
    margin-top: 40px;
}

.slider-arrow {
    width: 44px;
    height: 44px;
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 50%;
    color: var(--text-gray);
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: var(--transition);
}

.slider-arrow:hover {
    background: rgba(255, 255, 255, 0.1);
    border-color: var(--accent-purple);
    color: var(--text-white);
}

.slider-indicator {
    display: flex;
    align-items: center;
    gap: 15px;
}

.slide-num {
    font-size: 14px;
    font-weight: 500;
    color: rgba(255, 255, 255, 0.5);
    font-family: var(--font-mono);
}

.slide-num.current {
    color: var(--text-white);
}

.slider-progress {
    width: 80px;
    height: 2px;
    background: rgba(255, 255, 255, 0.1);
    border-radius: 1px;
    overflow: hidden;
}

.slider-progress-bar {
    height: 100%;
    width: 0%;
    background: linear-gradient(90deg, var(--accent-purple), var(--accent-pink));
    border-radius: 1px;
    transition: width 0.1s linear;
}

/* DNA Helix Animation */
.dna-container {
    position: absolute;
    left: 15%;
    top: 50%;
    transform: translateY(-50%);
    width: 120px;
    height: 350px;
    perspective: 800px;
    z-index: 5;
}

.dna-helix {
    position: relative;
    width: 100%;
    height: 100%;
    transform-style: preserve-3d;
    animation: dnaRotate 12s linear infinite;
}

.dna-pair {
    position: absolute;
    width: 100%;
    display: flex;
    justify-content: space-between;
    align-items: center;
    transform-style: preserve-3d;
}

.dna-node {
    width: 14px;
    height: 14px;
    border-radius: 50%;
    background: linear-gradient(135deg, var(--accent-purple), var(--accent-pink));
    box-shadow: 0 0 20px rgba(139, 92, 246, 0.6);
    transition: transform 0.3s, box-shadow 0.3s;
}

.dna-node.right {
    background: linear-gradient(135deg, var(--accent-pink), var(--accent-blue));
    box-shadow: 0 0 20px rgba(236, 72, 153, 0.6);
}

.dna-line {
    flex: 1;
    height: 2px;
    background: linear-gradient(90deg,
        rgba(139, 92, 246, 0.6),
        rgba(236, 72, 153, 0.4),
        rgba(59, 130, 246, 0.6));
    margin: 0 4px;
    border-radius: 1px;
}

@keyframes dnaRotate {
    from { transform: rotateY(0deg); }
    to { transform: rotateY(360deg); }
}

/* DNA Helix hover glow effect */
.dna-container:hover .dna-node {
    box-shadow: 0 0 30px rgba(139, 92, 246, 0.9);
}

.dna-container:hover .dna-node.right {
    box-shadow: 0 0 30px rgba(236, 72, 153, 0.9);
}

@media (max-width: 1200px) {
    .dna-container {
        left: 8%;
    }
}

@media (max-width: 1024px) {
    .dna-container {
        display: none;
    }
}

/* Page Indicator */
.page-indicator {
    position: absolute;
    right: 50px;
    bottom: 50px;
    display: flex;
    align-items: center;
    gap: 15px;
    z-index: 10;
}

.page-indicator .current {
    font-size: 16px;
    font-weight: 500;
    color: var(--text-white);
}

.page-indicator .total {
    font-size: 14px;
    color: var(--text-gray);
}

.indicator-line {
    width: 80px;
    height: 1px;
    background: rgba(255, 255, 255, 0.15);
    position: relative;
    overflow: hidden;
}

.indicator-progress {
    position: absolute;
    left: 0;
    top: 0;
    height: 100%;
    width: 20%;
    background: var(--text-white);
}

/* Background Text - ABOUT */
.about-bg-text {
    position: absolute;
    right: -2%;
    top: 50%;
    transform: translateY(-50%);
    font-size: clamp(120px, 18vw, 280px);
    font-weight: 700;
    letter-spacing: 15px;
    color: transparent;
    -webkit-text-stroke: 1px rgba(255, 255, 255, 0.08);
    z-index: 1;
    pointer-events: none;
    user-select: none;
    text-transform: uppercase;
}

/* ========================================
   SERVICES SECTION
======================================== */
.services {
    position: relative;
    padding: 100px 50px;
    background: var(--bg-section);
    z-index: 2;
}

.services-label {
    font-size: 11px;
    letter-spacing: 4px;
    color: var(--text-gray);
    text-transform: uppercase;
}

/* ========================================
   RESPONSIVE
======================================== */
@media (max-width: 1200px) {
    .hero-badge {
        right: 20%;
    }

    .about-content {
        margin-right: 10%;
    }
}

@media (max-width: 1024px) {
    .header,
    .header.scrolled {
        top: 15px !important;
        padding: 15px 20px !important;
        transition: none !important;
    }

    .nav-links {
        display: none;
    }

    .hero {
        padding: 120px 30px 60px;
    }

    .hero-badge {
        display: none;
    }

    .about {
        padding: 80px 30px;
    }

    .about-content {
        margin-right: 0;
        max-width: 100%;
    }

    .about-bg-text {
        font-size: 100px;
        right: -5%;
    }
}

@media (max-width: 768px) {
    .hero-title {
        font-size: 48px;
        letter-spacing: 4px;
    }

    .hero-nav-arrows {
        display: none;
    }

    .page-indicator {
        right: 30px;
        bottom: 30px;
    }

    .about-bg-text {
        font-size: 70px;
        -webkit-text-stroke: 1px rgba(255, 255, 255, 0.05);
    }

    /* About Slider - Tablet/Mobile */
    .about-slider {
        margin-right: 0;
        margin-left: 0;
        max-width: 100%;
        padding: 0 20px;
    }

    .about-slides {
        min-height: auto;
    }

    .about-title {
        font-size: 28px;
    }

    .about-description {
        font-size: 16px;
    }

    .about-slider-nav {
        justify-content: center;
    }


    /* Hero buttons - Mobile */
    .hero-buttons {
        flex-wrap: wrap;
        justify-content: center;
        gap: 15px;
    }

    .btn-round {
        width: 50px;
        height: 50px;
    }
}

@media (max-width: 480px) {
    /* About Slider - Small Mobile */
    .about {
        padding: 60px 15px;
    }

    .about-slider {
        padding: 0;
    }

    .about-title {
        font-size: 24px;
        line-height: 1.3;
    }

    .about-description {
        font-size: 15px;
        line-height: 1.7;
    }

    .about-label {
        font-size: 12px;
    }

    .slider-arrow {
        width: 40px;
        height: 40px;
    }

    /* Scroll indicator - Small Mobile */
    .scroll-indicator {
        bottom: 30px;
    }

    .scroll-arrow {
        width: 35px;
        height: 35px;
    }

    /* Footer - Small Mobile */
    .footer {
        padding: 50px 15px 30px;
    }

    .footer-logo {
        font-size: 18px;
        letter-spacing: 2px;
    }

    .footer-tagline {
        font-size: 15px;
    }

    .footer-column h4 {
        font-size: 12px;
        margin-bottom: 20px;
    }

    .footer-column li,
    .footer-column a,
    .footer-column span {
        font-size: 15px;
    }

    .footer-bottom {
        padding-top: 20px;
    }

    .copyright {
        font-size: 14px;
    }

    .footer-legal a {
        font-size: 14px;
    }
}

/* ========================================
   ANIMATIONS
======================================== */
.fade-in {
    opacity: 0;
    transform: translateY(30px);
    transition: all 0.8s cubic-bezier(0.4, 0, 0.2, 1);
}

.fade-in.visible {
    opacity: 1;
    transform: translateY(0);
}

/* Glow effects */
.glow-purple {
    box-shadow: 0 0 60px rgba(139, 92, 246, 0.3);
}

.glow-pink {
    box-shadow: 0 0 60px rgba(236, 72, 153, 0.3);
}

.glow-blue {
    box-shadow: 0 0 60px rgba(59, 130, 246, 0.3);
}

/* Subtle noise texture overlay */
body::before {
    content: '';
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-image: url("data:image/svg+xml,%3Csvg viewBox='0 0 256 256' xmlns='http://www.w3.org/2000/svg'%3E%3Cfilter id='noise'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.9' numOctaves='4' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23noise)'/%3E%3C/svg%3E");
    opacity: 0.02;
    pointer-events: none;
    z-index: 9999;
}

/* ========================================
   CONTAINER
======================================== */
.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
}

/* ========================================
   SECTION HEADERS
======================================== */
.section-header {
    margin-bottom: 60px;
}

.section-label {
    font-size: 11px;
    letter-spacing: 4px;
    color: var(--text-gray);
    text-transform: uppercase;
    margin-bottom: 15px;
}

.section-title {
    font-family: 'Orbitron', sans-serif;
    font-size: clamp(36px, 5.5vw, 56px);
    font-weight: 800;
    color: var(--text-white);
    letter-spacing: 2px;
    text-transform: uppercase;
}

/* ========================================
   SERVICES SECTION - EXTENDED
======================================== */
.services {
    padding: 120px 50px;
}

.services-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 30px;
}

.service-card {
    background: rgba(255, 255, 255, 0.02);
    border: 1px solid rgba(255, 255, 255, 0.08);
    border-radius: 20px;
    padding: 40px;
    transition: var(--transition);
}

.service-card:hover {
    background: rgba(255, 255, 255, 0.05);
    border-color: rgba(139, 92, 246, 0.3);
    transform: translateY(-5px);
}

.service-icon {
    width: 70px;
    height: 70px;
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 15px;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 25px;
    color: var(--accent-purple);
}

.service-title {
    font-size: 22px;
    font-weight: 600;
    margin-bottom: 15px;
    color: var(--text-white);
}

.service-description {
    font-size: 16px;
    line-height: 1.8;
    color: var(--text-gray);
    margin-bottom: 20px;
}

.service-tags {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
}

.service-tags span {
    font-size: 11px;
    padding: 6px 14px;
    background: rgba(139, 92, 246, 0.1);
    border-radius: 20px;
    color: var(--text-light-gray);
}

/* ========================================
   CRM DEMO SECTION
======================================== */
.crm-demo-section {
    position: relative;
    z-index: 2;
    padding: 120px 50px;
    background: var(--bg-dark);
}

.crm-demo-section .section-header {
    text-align: center;
    margin-bottom: 50px;
}

.crm-demo-section .section-desc {
    font-size: 18px;
    color: var(--text-secondary);
    margin-top: 15px;
}

/* Interface Window */
.interface-window {
    background: var(--bg-card);
    border-radius: 20px;
    border: 1px solid rgba(255, 255, 255, 0.05);
    overflow: hidden;
    box-shadow: 0 30px 80px rgba(0, 0, 0, 0.5);
}

.interface-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 14px 20px;
    background: rgba(0, 0, 0, 0.3);
    border-bottom: 1px solid rgba(255, 255, 255, 0.05);
}

.interface-dots {
    display: flex;
    gap: 8px;
}

.interface-dot {
    width: 12px;
    height: 12px;
    border-radius: 50%;
}

.interface-dot.red { background: #ef4444; }
.interface-dot.yellow { background: #f59e0b; }
.interface-dot.green { background: #10b981; }

.interface-title {
    font-size: 13px;
    color: var(--text-secondary);
}

.interface-body {
    padding: 0;
}

/* Sales System Layout */
.sales-system {
    display: grid;
    grid-template-columns: 280px 1fr;
    min-height: 600px;
}

/* Sidebar */
.sales-sidebar {
    background: rgba(0, 0, 0, 0.2);
    padding: 20px;
    border-right: 1px solid rgba(255, 255, 255, 0.05);
}

.sidebar-section {
    margin-bottom: 24px;
}

.sidebar-title {
    font-size: 11px;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 1px;
    color: var(--text-secondary);
    margin-bottom: 12px;
}

.sidebar-btn {
    display: flex;
    align-items: center;
    gap: 10px;
    width: 100%;
    padding: 12px 14px;
    background: rgba(255, 255, 255, 0.03);
    border: 1px solid rgba(255, 255, 255, 0.05);
    border-radius: 10px;
    color: var(--text-primary);
    font-size: 13px;
    cursor: pointer;
    transition: all 0.2s;
    margin-bottom: 8px;
    text-align: left;
}

.sidebar-btn:hover {
    background: rgba(139, 92, 246, 0.1);
    border-color: rgba(139, 92, 246, 0.3);
}

.sidebar-btn.active {
    background: linear-gradient(135deg, rgba(139, 92, 246, 0.2), rgba(236, 72, 153, 0.1));
    border-color: rgba(139, 92, 246, 0.4);
}

.sidebar-btn svg {
    width: 18px;
    height: 18px;
    opacity: 0.7;
}

.sidebar-btn .badge {
    margin-left: auto;
    padding: 2px 8px;
    background: var(--accent-purple);
    border-radius: 10px;
    font-size: 11px;
    font-weight: 600;
}

/* Main Content */
.sales-main {
    padding: 24px;
    display: flex;
    flex-direction: column;
    gap: 20px;
}

/* Demo Controls */
.demo-controls {
    display: flex;
    align-items: center;
    gap: 16px;
    padding: 16px 20px;
    background: linear-gradient(135deg, rgba(139, 92, 246, 0.1), rgba(236, 72, 153, 0.05));
    border-radius: 12px;
    border: 1px solid rgba(139, 92, 246, 0.2);
}

.demo-btn {
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 12px 24px;
    background: linear-gradient(135deg, var(--accent-purple), var(--accent-pink));
    border: none;
    border-radius: 10px;
    color: white;
    font-size: 14px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s;
}

.demo-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 10px 30px rgba(139, 92, 246, 0.4);
}

.demo-btn:disabled {
    opacity: 0.5;
    cursor: not-allowed;
    transform: none;
}

.demo-btn svg {
    width: 18px;
    height: 18px;
}

.demo-status {
    flex: 1;
    font-size: 14px;
    color: var(--text-secondary);
}

.demo-status.active {
    color: var(--accent-green);
}

/* Pipeline */
.pipeline-container {
    background: rgba(0, 0, 0, 0.2);
    border-radius: 16px;
    padding: 24px;
}

.pipeline-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 20px;
}

.pipeline-title {
    font-size: 16px;
    font-weight: 600;
}

.pipeline-stats {
    display: flex;
    gap: 20px;
    font-size: 13px;
    color: var(--text-secondary);
}

.pipeline-stat span {
    color: var(--text-primary);
    font-weight: 600;
}

.pipeline {
    display: flex;
    gap: 16px;
    overflow-x: auto;
    padding-bottom: 10px;
}

.pipeline-stage {
    flex: 1;
    min-width: 200px;
    background: rgba(255, 255, 255, 0.02);
    border-radius: 12px;
    padding: 16px;
}

.stage-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 12px;
}

.stage-name {
    font-size: 13px;
    font-weight: 600;
    display: flex;
    align-items: center;
    gap: 8px;
}

.stage-dot {
    width: 8px;
    height: 8px;
    border-radius: 50%;
}

.stage-dot.new { background: var(--accent-blue); }
.stage-dot.qualified { background: var(--accent-purple); }
.stage-dot.proposal { background: var(--accent-orange); }
.stage-dot.negotiation { background: var(--accent-pink); }
.stage-dot.closed { background: var(--accent-green); }

.stage-count {
    font-size: 12px;
    padding: 2px 8px;
    background: rgba(255, 255, 255, 0.1);
    border-radius: 10px;
}

.stage-cards {
    display: flex;
    flex-direction: column;
    gap: 8px;
    min-height: 150px;
}

.lead-card {
    background: var(--bg-card);
    border-radius: 10px;
    padding: 12px;
    border: 1px solid rgba(255, 255, 255, 0.05);
    cursor: pointer;
    transition: all 0.3s;
    opacity: 0;
    transform: translateY(10px);
}

.lead-card.visible {
    opacity: 1;
    transform: translateY(0);
}

.lead-card:hover {
    border-color: rgba(139, 92, 246, 0.3);
    transform: translateY(-2px);
}

.lead-card.highlight {
    border-color: var(--accent-purple);
    box-shadow: 0 0 20px rgba(139, 92, 246, 0.3);
    animation: cardPulse 1s ease infinite;
}

@keyframes cardPulse {
    0%, 100% { box-shadow: 0 0 20px rgba(139, 92, 246, 0.3); }
    50% { box-shadow: 0 0 30px rgba(139, 92, 246, 0.5); }
}

.lead-name {
    font-size: 13px;
    font-weight: 500;
    margin-bottom: 4px;
}

.lead-company {
    font-size: 11px;
    color: var(--text-secondary);
    margin-bottom: 8px;
}

.lead-meta {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.lead-value {
    font-size: 12px;
    font-weight: 600;
    color: var(--accent-green);
}

.lead-score {
    display: flex;
    align-items: center;
    gap: 4px;
    font-size: 11px;
}

.lead-score svg {
    width: 12px;
    height: 12px;
    color: var(--accent-orange);
}

/* Activity Log */
.activity-log {
    background: rgba(0, 0, 0, 0.2);
    border-radius: 16px;
    padding: 20px;
    max-height: 200px;
    overflow-y: auto;
}

.activity-title {
    font-size: 14px;
    font-weight: 600;
    margin-bottom: 16px;
    display: flex;
    align-items: center;
    gap: 8px;
}

.activity-title .live {
    padding: 2px 8px;
    background: var(--accent-green);
    border-radius: 4px;
    font-size: 10px;
    animation: pulse 2s infinite;
}

@keyframes pulse {
    0%, 100% { opacity: 1; }
    50% { opacity: 0.5; }
}

.activity-item {
    display: flex;
    gap: 12px;
    padding: 10px 0;
    border-bottom: 1px solid rgba(255, 255, 255, 0.03);
    opacity: 0;
    transform: translateX(-20px);
    transition: all 0.3s ease;
}

.activity-item.visible {
    opacity: 1;
    transform: translateX(0);
}

.activity-icon {
    width: 32px;
    height: 32px;
    border-radius: 8px;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
    font-size: 14px;
}

.activity-icon.ai { background: rgba(139, 92, 246, 0.2); }
.activity-icon.email { background: rgba(59, 130, 246, 0.2); }
.activity-icon.telegram { background: rgba(0, 136, 204, 0.2); }
.activity-icon.calendar { background: rgba(16, 185, 129, 0.2); }
.activity-icon.deal { background: rgba(245, 158, 11, 0.2); }

.activity-text {
    font-size: 13px;
    line-height: 1.4;
}

.activity-time {
    font-size: 11px;
    color: var(--text-secondary);
    margin-top: 2px;
}

/* CRM Demo Responsive */
@media (max-width: 1024px) {
    .sales-system {
        grid-template-columns: 1fr;
    }
    .sales-sidebar {
        display: none;
    }
}

@media (max-width: 640px) {
    .crm-demo-section {
        padding: 80px 20px;
    }
    .pipeline {
        flex-direction: column;
    }
    .pipeline-stage {
        min-width: auto;
    }
    .demo-controls {
        flex-direction: column;
        text-align: center;
    }
}

/* ========================================
   SOLUTIONS SLIDER SECTION
======================================== */
.solutions-section {
    position: relative;
    z-index: 2;
    padding: 120px 50px;
    background: var(--bg-dark);
}

.solutions-section .section-header {
    text-align: center;
    margin-bottom: 50px;
}

.solutions-section .section-desc {
    font-size: 18px;
    color: var(--text-secondary);
    margin-top: 15px;
}

/* Solutions Slider */
.solutions-slider {
    position: relative;
    max-width: 1200px;
    margin: 0 auto;
}

/* Slider Arrows */
.slider-arrow {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    width: 50px;
    height: 50px;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.1);
    border: 1px solid rgba(255, 255, 255, 0.2);
    color: white;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 10;
    transition: all 0.3s ease;
}

.slider-arrow:hover {
    background: var(--accent-purple);
    border-color: var(--accent-purple);
    transform: translateY(-50%) scale(1.1);
}

.slider-arrow.prev {
    left: -70px;
}

.slider-arrow.next {
    right: -70px;
}

.slider-arrow svg {
    width: 24px;
    height: 24px;
}

/* Slider Tabs - Glow Pills */
.slider-tabs {
    display: flex;
    justify-content: center;
    gap: 12px;
    margin-bottom: 40px;
    flex-wrap: wrap;
}

.slider-tab {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 14px 28px;
    background: rgba(255, 255, 255, 0.03);
    border: 1px solid rgba(255, 255, 255, 0.08);
    border-radius: 50px;
    color: var(--text-secondary);
    font-size: 14px;
    font-weight: 500;
    font-family: inherit;
    cursor: pointer;
    transition: all 0.3s ease;
    position: relative;
    overflow: hidden;
}

.slider-tab::before {
    content: '';
    position: absolute;
    inset: 0;
    background: linear-gradient(135deg, rgba(139, 92, 246, 0.1), rgba(236, 72, 153, 0.1));
    opacity: 0;
    transition: opacity 0.3s ease;
    border-radius: 50px;
}

.slider-tab svg {
    width: 18px;
    height: 18px;
    position: relative;
    z-index: 1;
    transition: transform 0.3s ease;
}

.slider-tab span,
.slider-tab {
    position: relative;
    z-index: 1;
}

.slider-tab:hover {
    background: rgba(255, 255, 255, 0.05);
    border-color: rgba(139, 92, 246, 0.3);
    color: white;
    transform: translateY(-2px);
}

.slider-tab:hover::before {
    opacity: 1;
}

.slider-tab:hover svg {
    transform: scale(1.1);
}

.slider-tab.active {
    background: linear-gradient(135deg, var(--accent-purple), var(--accent-pink));
    border-color: transparent;
    color: white;
    box-shadow:
        0 0 30px rgba(139, 92, 246, 0.4),
        0 0 60px rgba(236, 72, 153, 0.2),
        0 4px 15px rgba(0, 0, 0, 0.3);
    transform: translateY(-2px);
}

.slider-tab.active::before {
    opacity: 0;
}

.slider-tab.active svg {
    filter: drop-shadow(0 0 8px rgba(255, 255, 255, 0.5));
}

/* Slides Container */
.slides-container {
    position: relative;
    overflow: hidden;
}

.slide {
    display: none;
    animation: fadeIn 0.5s ease;
}

.slide.active {
    display: block;
}

@keyframes fadeIn {
    from { opacity: 0; transform: translateY(20px); }
    to { opacity: 1; transform: translateY(0); }
}

/* Slide Content */
.slide-content {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 40px;
    padding: 30px;
}

.slide-left {
    display: flex;
    flex-direction: column;
    justify-content: center;
}

.slide-title {
    font-size: 28px;
    font-weight: 600;
    margin-bottom: 15px;
    background: linear-gradient(135deg, #fff, rgba(255,255,255,0.7));
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.slide-desc {
    font-size: 16px;
    color: var(--text-secondary);
    line-height: 1.6;
    margin-bottom: 25px;
}

.slide-features {
    list-style: none;
    padding: 0;
    margin: 0 0 25px 0;
}

.slide-features li {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 10px 0;
    font-size: 17px;
    color: var(--text-secondary);
    border-bottom: 1px solid rgba(255, 255, 255, 0.05);
}

.slide-features li:last-child {
    border-bottom: none;
}

.feature-icon {
    font-size: 20px;
}

/* Mini Pipeline (Automation Slide) */
.mini-pipeline {
    display: flex;
    align-items: center;
    gap: 15px;
    flex-wrap: wrap;
    justify-content: center;
}

.mini-stage {
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 12px;
    padding: 20px;
    text-align: center;
    min-width: 100px;
    transition: all 0.3s ease;
}

.mini-stage:hover {
    background: rgba(var(--stage-color), 0.1);
    border-color: var(--stage-color);
    transform: translateY(-5px);
}

.mini-stage-header {
    font-size: 12px;
    color: var(--text-secondary);
    margin-bottom: 8px;
    text-transform: uppercase;
    letter-spacing: 1px;
}

.mini-stage-count {
    font-size: 32px;
    font-weight: 700;
    color: var(--stage-color);
}

.mini-arrow {
    font-size: 24px;
    color: var(--text-secondary);
}

/* Analytics Preview */
.analytics-preview {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 15px;
}

.analytics-card {
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 12px;
    padding: 20px;
    text-align: center;
}

.analytics-label {
    font-size: 12px;
    color: var(--text-secondary);
    text-transform: uppercase;
    letter-spacing: 1px;
    margin-bottom: 8px;
}

.analytics-value {
    font-size: 24px;
    font-weight: 700;
    color: white;
    margin-bottom: 5px;
}

.analytics-change {
    font-size: 13px;
    font-weight: 500;
}

.analytics-change.positive {
    color: var(--accent-green);
}

.analytics-change.negative {
    color: #ef4444;
}

.analytics-chart {
    grid-column: 1 / -1;
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 12px;
    padding: 20px;
}

.chart-bars {
    display: flex;
    align-items: flex-end;
    justify-content: space-around;
    height: 100px;
    gap: 10px;
}

.chart-bar {
    flex: 1;
    background: linear-gradient(to top, var(--accent-purple), var(--accent-pink));
    border-radius: 4px 4px 0 0;
    opacity: 0.6;
    transition: all 0.3s ease;
}

.chart-bar:hover,
.chart-bar.active {
    opacity: 1;
    transform: scaleY(1.05);
}

/* Documents Preview */
.documents-preview {
    display: flex;
    flex-direction: column;
    gap: 15px;
}

.doc-card {
    display: flex;
    align-items: center;
    gap: 15px;
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 12px;
    padding: 15px 20px;
    transition: all 0.3s ease;
}

.doc-card:hover {
    background: rgba(255, 255, 255, 0.08);
    transform: translateX(5px);
}

.doc-icon {
    font-size: 32px;
}

.doc-info {
    flex: 1;
}

.doc-name {
    font-size: 14px;
    color: white;
    margin-bottom: 4px;
}

.doc-status {
    font-size: 12px;
    padding: 4px 10px;
    border-radius: 20px;
    display: inline-block;
}

.doc-status.signed {
    background: rgba(16, 185, 129, 0.2);
    color: var(--accent-green);
}

.doc-status.pending {
    background: rgba(245, 158, 11, 0.2);
    color: #f59e0b;
}

.doc-status.draft {
    background: rgba(255, 255, 255, 0.1);
    color: var(--text-secondary);
}

/* Chat Preview */
.chat-preview {
    display: flex;
    flex-direction: column;
    gap: 15px;
    background: rgba(255, 255, 255, 0.03);
    border-radius: 12px;
    padding: 20px;
}

.chat-message {
    display: flex;
    gap: 12px;
    align-items: flex-start;
}

.chat-message.outgoing {
    justify-content: flex-end;
}

.chat-avatar {
    width: 36px;
    height: 36px;
    border-radius: 50%;
    background: linear-gradient(135deg, var(--accent-purple), var(--accent-pink));
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 12px;
    font-weight: 600;
    flex-shrink: 0;
}

.chat-bubble {
    background: rgba(255, 255, 255, 0.08);
    border-radius: 12px;
    padding: 12px 16px;
    max-width: 280px;
}

.chat-message.outgoing .chat-bubble {
    background: linear-gradient(135deg, var(--accent-purple), var(--accent-pink));
}

.chat-name {
    font-size: 12px;
    font-weight: 600;
    color: white;
    margin-bottom: 4px;
}

.chat-text {
    font-size: 14px;
    color: rgba(255, 255, 255, 0.9);
    line-height: 1.4;
}

.chat-channel {
    font-size: 11px;
    color: var(--text-secondary);
    margin-top: 6px;
}

.chat-time {
    font-size: 11px;
    color: rgba(255, 255, 255, 0.6);
    margin-top: 6px;
    text-align: right;
}

/* Solutions Slider Responsive */
@media (max-width: 1200px) {
    .slider-arrow.prev {
        left: 10px;
    }
    .slider-arrow.next {
        right: 10px;
    }
}

@media (max-width: 900px) {
    .slide-content {
        grid-template-columns: 1fr;
        gap: 30px;
    }
    .slider-tabs {
        gap: 8px;
    }
    .slider-tab {
        padding: 12px 20px;
        font-size: 13px;
    }
    .slider-tab:hover,
    .slider-tab.active {
        transform: none;
    }
    .slider-tab svg {
        width: 16px;
        height: 16px;
    }
}

@media (max-width: 640px) {
    .solutions-section {
        padding: 80px 20px;
    }
    .slider-arrow {
        width: 40px;
        height: 40px;
    }
    .slider-arrow.prev {
        left: 5px;
    }
    .slider-arrow.next {
        right: 5px;
    }
    .slide-title {
        font-size: 22px;
    }
    .mini-pipeline {
        flex-direction: column;
    }
    .mini-arrow {
        transform: rotate(90deg);
    }
    .analytics-preview {
        grid-template-columns: 1fr;
    }
}

/* ========================================
   PORTFOLIO SECTION
======================================== */
.portfolio {
    position: relative;
    padding: 120px 50px;
    background: var(--bg-dark);
    z-index: 2;
    overflow: hidden;
}

/* Hero Marquee - Бегущий текст */
.marquee-hero {
    overflow: hidden;
    padding: 50px 0;
    position: relative;
    z-index: 1;
}

.marquee-hero-track {
    display: flex;
    gap: 20px;
    animation: marquee-scroll 40s linear infinite;
    width: max-content;
}

.marquee-hero-item {
    flex-shrink: 0;
    font-size: 52px;
    font-weight: 700;
    white-space: nowrap;
    color: transparent;
    -webkit-text-stroke: 1px rgba(139, 92, 246, 0.4);
    transition: all 0.4s ease;
    cursor: default;
    display: flex;
    align-items: center;
    gap: 20px;
}

.marquee-hero:hover .marquee-hero-item {
    color: #8b5cf6;
    -webkit-text-stroke: 1px #8b5cf6;
    text-shadow: 0 0 30px rgba(139, 92, 246, 0.3);
}

.marquee-hero-item .dot {
    display: inline-block;
    width: 12px;
    height: 12px;
    background: linear-gradient(135deg, #8b5cf6, #ec4899);
    border-radius: 50%;
    flex-shrink: 0;
}

@keyframes marquee-scroll {
    0% { transform: translateX(0); }
    100% { transform: translateX(-50%); }
}

/* Reverse direction for bottom marquee */
.marquee-hero-reverse .marquee-hero-track {
    animation: marquee-scroll-reverse 40s linear infinite;
}

@keyframes marquee-scroll-reverse {
    0% { transform: translateX(-50%); }
    100% { transform: translateX(0); }
}

/* Responsive marquee */
@media (max-width: 1024px) {
    .marquee-hero-item {
        font-size: 36px;
        gap: 15px;
    }
    .marquee-hero-item .dot {
        width: 10px;
        height: 10px;
    }
    .marquee-hero-track {
        gap: 15px;
    }
}

@media (max-width: 768px) {
    .marquee-hero {
        padding: 25px 0;
    }
    .marquee-hero-item {
        font-size: 24px;
        gap: 12px;
        -webkit-text-stroke: 1px rgba(139, 92, 246, 0.35);
    }
    .marquee-hero-item .dot {
        width: 6px;
        height: 6px;
    }
    .marquee-hero-track {
        gap: 12px;
        animation-duration: 30s;
    }
    .marquee-hero-reverse .marquee-hero-track {
        animation-duration: 30s;
    }
}

@media (max-width: 480px) {
    .marquee-hero {
        padding: 20px 0;
    }
    .marquee-hero-item {
        font-size: 18px;
        gap: 10px;
        -webkit-text-stroke: 1px rgba(139, 92, 246, 0.3);
    }
    .marquee-hero-item .dot {
        width: 5px;
        height: 5px;
    }
    .marquee-hero-track {
        gap: 10px;
        animation-duration: 25s;
    }
    .marquee-hero-reverse .marquee-hero-track {
        animation-duration: 25s;
    }
}

/* Geometric Wireframe Background */
.portfolio-wireframe {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    overflow: hidden;
    pointer-events: none;
    z-index: 0;
}

.portfolio-hex {
    position: absolute;
    width: 120px;
    height: 138px;
    opacity: 0.08;
}

.portfolio-hex::before {
    content: '';
    position: absolute;
    width: 100%;
    height: 100%;
    background: transparent;
    border: 1px solid var(--accent-purple);
    clip-path: polygon(50% 0%, 100% 25%, 100% 75%, 50% 100%, 0% 75%, 0% 25%);
}

.portfolio-hex-1 {
    top: 5%;
    right: 8%;
    transform: scale(1.8);
    opacity: 0.1;
}

.portfolio-hex-2 {
    bottom: 10%;
    left: 3%;
    transform: scale(1.2);
    opacity: 0.07;
}

.portfolio-hex-3 {
    top: 45%;
    right: 3%;
    transform: scale(0.7);
    opacity: 0.05;
}

.portfolio-hex-4 {
    top: 20%;
    left: 12%;
    transform: scale(0.5);
    opacity: 0.06;
}

.portfolio-hex-5 {
    bottom: 25%;
    right: 15%;
    transform: scale(0.9);
    opacity: 0.04;
}

.portfolio-diagonal {
    position: absolute;
    width: 250%;
    height: 1px;
    background: linear-gradient(90deg, transparent, rgba(139, 92, 246, 0.15), transparent);
    transform-origin: center;
}

.portfolio-diagonal-1 {
    top: 25%;
    left: -75%;
    transform: rotate(-12deg);
}

.portfolio-diagonal-2 {
    bottom: 30%;
    left: -75%;
    transform: rotate(8deg);
}

.portfolio-diagonal-3 {
    top: 60%;
    left: -75%;
    transform: rotate(-5deg);
    opacity: 0.5;
}

.portfolio-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 20px;
}

.portfolio-item {
    position: relative;
    border-radius: 15px;
    overflow: hidden;
    cursor: pointer;
    aspect-ratio: 4/3;
}

.portfolio-item.large {
    grid-column: span 2;
}

.portfolio-image {
    width: 100%;
    height: 100%;
    transition: transform 0.5s ease;
}

.portfolio-overlay {
    position: absolute;
    inset: 0;
    background: rgba(0, 0, 0, 0.6);
    display: flex;
    flex-direction: column;
    justify-content: flex-end;
    padding: 25px;
    opacity: 0;
    transition: opacity 0.3s ease;
}

.portfolio-item:hover .portfolio-overlay {
    opacity: 1;
}

.portfolio-item:hover .portfolio-image {
    transform: scale(1.2);
    background-size: cover !important;
}

.portfolio-category {
    font-size: 11px;
    letter-spacing: 2px;
    color: var(--accent-purple);
    text-transform: uppercase;
    margin-bottom: 8px;
}

.portfolio-title {
    font-size: 20px;
    font-weight: 600;
    color: var(--text-white);
}

.portfolio-description {
    font-size: 13px;
    line-height: 1.5;
    color: rgba(255, 255, 255, 0.8);
    margin-top: 10px;
    max-height: 0;
    overflow: hidden;
    opacity: 0;
    transition: all 0.4s ease;
}

.portfolio-item:hover .portfolio-description {
    max-height: 150px;
    opacity: 1;
}

/* EMERALD Card Special Styling */
.emerald-card {
    background: linear-gradient(135deg, #0d1f17 0%, #1a3a2a 30%, #0f2922 70%, #0a1915 100%);
    box-shadow:
        0 0 60px rgba(16, 185, 129, 0.15),
        inset 0 0 80px rgba(16, 185, 129, 0.05);
}

.emerald-card::before {
    content: '';
    position: absolute;
    inset: 0;
    background:
        radial-gradient(ellipse at top, rgba(16, 185, 129, 0.12) 0%, transparent 50%),
        radial-gradient(ellipse at bottom, rgba(16, 185, 129, 0.12) 0%, transparent 50%);
    pointer-events: none;
    z-index: 1;
}

.emerald-card .portfolio-image {
    z-index: 2;
}

.emerald-card .portfolio-overlay {
    z-index: 3;
}

.emerald-card:hover {
    box-shadow:
        0 0 80px rgba(16, 185, 129, 0.3),
        inset 0 0 100px rgba(16, 185, 129, 0.1);
}

/* AICreatix Card Special Styling */
.aicreatix-card {
    background: linear-gradient(135deg, #1a1025 0%, #2d1f3d 30%, #1f1a2e 70%, #15101f 100%);
    box-shadow:
        0 0 60px rgba(139, 92, 246, 0.15),
        inset 0 0 80px rgba(139, 92, 246, 0.05);
}

.aicreatix-card::before {
    content: '';
    position: absolute;
    inset: 0;
    background:
        radial-gradient(ellipse at top, rgba(139, 92, 246, 0.12) 0%, transparent 50%),
        radial-gradient(ellipse at bottom, rgba(236, 72, 153, 0.1) 0%, transparent 50%);
    pointer-events: none;
    z-index: 1;
}

.aicreatix-card .portfolio-image {
    z-index: 2;
}

.aicreatix-card .portfolio-overlay {
    z-index: 3;
}

.aicreatix-card:hover {
    box-shadow:
        0 0 80px rgba(139, 92, 246, 0.3),
        inset 0 0 100px rgba(139, 92, 246, 0.1);
}

/* Babylon Card Special Styling */
.babylon-card {
    background: linear-gradient(135deg, #1f1a0f 0%, #3d2e15 30%, #2a2010 70%, #1a150a 100%);
    box-shadow:
        0 0 60px rgba(234, 179, 8, 0.15),
        inset 0 0 80px rgba(234, 179, 8, 0.05);
}

.babylon-card::before {
    content: '';
    position: absolute;
    inset: 0;
    background:
        radial-gradient(ellipse at top, rgba(234, 179, 8, 0.12) 0%, transparent 50%),
        radial-gradient(ellipse at bottom, rgba(249, 115, 22, 0.1) 0%, transparent 50%);
    pointer-events: none;
    z-index: 1;
}

.babylon-card .portfolio-image {
    z-index: 2;
}

.babylon-card .portfolio-overlay {
    z-index: 3;
}

.babylon-card:hover {
    box-shadow:
        0 0 80px rgba(234, 179, 8, 0.3),
        inset 0 0 100px rgba(234, 179, 8, 0.1);
}

.portfolio-cta {
    text-align: center;
    margin-top: 50px;
}

/* ========================================
   INFINITE SCROLL WALL PORTFOLIO
======================================== */
.scroll-wall-wrapper {
    height: 600px;
    overflow: hidden;
    position: relative;
    /* Break out of container */
    width: 100vw;
    margin-left: calc(-50vw + 50%);
}

.scroll-wall-wrapper::before,
.scroll-wall-wrapper::after {
    content: '';
    position: absolute;
    left: 0;
    right: 0;
    height: 120px;
    z-index: 10;
    pointer-events: none;
}

.scroll-wall-wrapper::before {
    top: 0;
    background: linear-gradient(to bottom, var(--bg-dark) 0%, var(--bg-dark) 30%, transparent 100%);
}

.scroll-wall-wrapper::after {
    bottom: 0;
    background: linear-gradient(to top, var(--bg-dark) 0%, var(--bg-dark) 30%, transparent 100%);
}

.scroll-wall {
    display: flex;
    gap: 20px;
    padding: 20px;
    justify-content: center;
    height: 100%;
}

.scroll-column {
    display: flex;
    flex-direction: column;
    gap: 20px;
    width: 300px;
    flex-shrink: 0;
}

.scroll-column:nth-child(odd) {
    animation: scrollUp 40s linear infinite;
}

.scroll-column:nth-child(even) {
    animation: scrollDown 45s linear infinite;
}

@keyframes scrollUp {
    0% { transform: translateY(0); }
    100% { transform: translateY(-50%); }
}

@keyframes scrollDown {
    0% { transform: translateY(-50%); }
    100% { transform: translateY(0); }
}

.scroll-item {
    background: var(--bg-card);
    border-radius: 16px;
    overflow: hidden;
    flex-shrink: 0;
    transition: all 0.3s ease;
    cursor: pointer;
    border: 1px solid rgba(255, 255, 255, 0.05);
}

.scroll-item:hover {
    box-shadow: 0 15px 40px rgba(139, 92, 246, 0.3);
    border-color: rgba(139, 92, 246, 0.3);
}

.scroll-item-image {
    width: 100%;
    height: 200px;
    background-size: cover;
    background-position: center;
    position: relative;
}

.scroll-item-image::after {
    content: '';
    position: absolute;
    inset: 0;
    background: linear-gradient(transparent 50%, rgba(0, 0, 0, 0.8));
}

.scroll-item-content {
    padding: 18px;
    position: relative;
}

.scroll-item-category {
    font-size: 11px;
    color: var(--accent-purple);
    text-transform: uppercase;
    letter-spacing: 1.5px;
    font-weight: 500;
}

.scroll-item-title {
    font-size: 1.1rem;
    font-weight: 600;
    margin-top: 6px;
    color: var(--text-white);
}

.scroll-item-desc {
    font-size: 13px;
    color: var(--text-gray);
    margin-top: 8px;
    line-height: 1.5;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

/* Theme colors for scroll items */
.scroll-item.emerald-theme {
    background: linear-gradient(135deg, #0d1f17 0%, #1a3a2a 100%);
}

.scroll-item.emerald-theme:hover {
    box-shadow: 0 15px 40px rgba(16, 185, 129, 0.3);
    border-color: rgba(16, 185, 129, 0.3);
}

.scroll-item.purple-theme,
.scroll-item.aicreatix-theme {
    background: linear-gradient(135deg, #1a1025 0%, #2d1f3d 100%);
}

.scroll-item.purple-theme:hover,
.scroll-item.aicreatix-theme:hover {
    box-shadow: 0 15px 40px rgba(139, 92, 246, 0.3);
    border-color: rgba(139, 92, 246, 0.3);
}

.scroll-item.orange-theme,
.scroll-item.babylon-theme {
    background: linear-gradient(135deg, #1f1a0f 0%, #3d2e15 100%);
}

.scroll-item.orange-theme:hover,
.scroll-item.babylon-theme:hover {
    box-shadow: 0 15px 40px rgba(249, 115, 22, 0.3);
    border-color: rgba(249, 115, 22, 0.3);
}

.scroll-item.blue-theme {
    background: linear-gradient(135deg, #0f172a 0%, #1e3a5f 100%);
}

.scroll-item.blue-theme:hover {
    box-shadow: 0 15px 40px rgba(59, 130, 246, 0.3);
    border-color: rgba(59, 130, 246, 0.3);
}

.scroll-item.cyan-theme {
    background: linear-gradient(135deg, #0f1f25 0%, #164e63 100%);
}

.scroll-item.cyan-theme:hover {
    box-shadow: 0 15px 40px rgba(6, 182, 212, 0.3);
    border-color: rgba(6, 182, 212, 0.3);
}

.scroll-item.pink-theme {
    background: linear-gradient(135deg, #1f0f1a 0%, #4a1942 100%);
}

.scroll-item.pink-theme:hover {
    box-shadow: 0 15px 40px rgba(236, 72, 153, 0.3);
    border-color: rgba(236, 72, 153, 0.3);
}

.scroll-item.red-theme {
    background: linear-gradient(135deg, #1f0f0f 0%, #4a1a1a 100%);
}

.scroll-item.red-theme:hover {
    box-shadow: 0 15px 40px rgba(239, 68, 68, 0.3);
    border-color: rgba(239, 68, 68, 0.3);
}

.scroll-item.yellow-theme {
    background: linear-gradient(135deg, #1f1a0a 0%, #3d3510 100%);
}

.scroll-item.yellow-theme:hover {
    box-shadow: 0 15px 40px rgba(234, 179, 8, 0.3);
    border-color: rgba(234, 179, 8, 0.3);
}

.scroll-item.teal-theme {
    background: linear-gradient(135deg, #0f1f1f 0%, #134e4a 100%);
}

.scroll-item.teal-theme:hover {
    box-shadow: 0 15px 40px rgba(20, 184, 166, 0.3);
    border-color: rgba(20, 184, 166, 0.3);
}

/* Pause animation on hover */
.scroll-wall:hover .scroll-column {
    animation-play-state: paused;
}

/* Responsive */
@media (max-width: 1200px) {
    .scroll-column {
        width: 280px;
    }
}

@media (max-width: 992px) {
    .scroll-wall-wrapper {
        height: 500px;
    }
    .scroll-column {
        width: 250px;
    }
}

@media (max-width: 768px) {
    .scroll-wall-wrapper {
        height: 450px;
    }
    .scroll-wall {
        gap: 15px;
        padding: 15px;
    }
    .scroll-column {
        width: 180px;
        gap: 15px;
    }
    .scroll-item-image {
        height: 140px;
    }
    .scroll-item-content {
        padding: 12px;
    }
    .scroll-item-title {
        font-size: 0.95rem;
    }
}

/* ========================================
   SECTION DIVIDER - About to Process
======================================== */
.about::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 50%;
    transform: translateX(-50%);
    width: 80%;
    max-width: 1000px;
    height: 1px;
    background: linear-gradient(90deg,
        transparent 0%,
        rgba(139, 92, 246, 0.3) 15%,
        rgba(139, 92, 246, 0.8) 35%,
        rgba(236, 72, 153, 1) 50%,
        rgba(139, 92, 246, 0.8) 65%,
        rgba(139, 92, 246, 0.3) 85%,
        transparent 100%
    );
    z-index: 10;
}

.about::before {
    content: '';
    position: absolute;
    bottom: -2px;
    left: 50%;
    transform: translateX(-50%);
    width: 60%;
    max-width: 600px;
    height: 6px;
    background: linear-gradient(90deg,
        transparent 0%,
        rgba(139, 92, 246, 0.2) 20%,
        rgba(236, 72, 153, 0.4) 50%,
        rgba(139, 92, 246, 0.2) 80%,
        transparent 100%
    );
    filter: blur(4px);
    z-index: 9;
}

/* ========================================
   CASES SECTION - FLIP CARDS
======================================== */
.cases {
    position: relative;
    padding: 100px 50px;
    background: var(--bg-dark);
    overflow: hidden;
    z-index: 10;
}

/* Light Rays Background Effect */
.cases-rays {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    overflow: hidden;
    pointer-events: none;
    z-index: 1;
}

.ray {
    position: absolute;
    top: 50%;
    left: 50%;
    width: 1px;
    height: 250%;
    background: linear-gradient(to bottom, transparent, rgba(255, 255, 255, 0.06), transparent);
    transform-origin: center top;
    animation: rayRotate 50s linear infinite;
}

.ray-1 { animation-delay: 0s; }
.ray-2 { animation-delay: -6.25s; }
.ray-3 { animation-delay: -12.5s; }
.ray-4 { animation-delay: -18.75s; }
.ray-5 { animation-delay: -25s; }
.ray-6 { animation-delay: -31.25s; }
.ray-7 { animation-delay: -37.5s; }
.ray-8 { animation-delay: -43.75s; }

.ray-1, .ray-5 {
    width: 2px;
    background: linear-gradient(to bottom, transparent, rgba(255, 255, 255, 0.08), transparent);
}

@keyframes rayRotate {
    from { transform: rotate(0deg); }
    to { transform: rotate(360deg); }
}

/* ========================================
   AI Platform Section
======================================== */
/* ========================================
   AI PLATFORM SECTION - Minimalist Style
======================================== */
.ai-platform {
    padding: 100px 0;
    background: var(--bg-section);
    position: relative;
    z-index: 3;
}

.platform-header {
    text-align: center;
    margin-bottom: 80px;
}

.platform-label {
    font-size: 11px;
    letter-spacing: 5px;
    text-transform: uppercase;
    color: var(--text-gray);
    margin-bottom: 20px;
    font-weight: 400;
}

.platform-title {
    font-family: 'Orbitron', sans-serif;
    font-size: clamp(36px, 5.5vw, 56px);
    font-weight: 800;
    color: var(--text-white);
    margin-bottom: 24px;
    letter-spacing: 2px;
    text-transform: uppercase;
}

.platform-subtitle {
    color: rgba(255, 255, 255, 0.5);
    font-size: 15px;
    max-width: 600px;
    margin: 0 auto;
    line-height: 1.8;
    font-weight: 300;
}

/* Grid - Minimalist 3x2 */
.platform-features {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 0;
    max-width: 1100px;
    margin: 0 auto 60px;
    border: 1px solid rgba(255, 255, 255, 0.05);
    border-radius: 24px;
    overflow: hidden;
}

/* Minimal Card */
.platform-card {
    padding: 40px 32px;
    background: transparent;
    border-right: 1px solid rgba(255, 255, 255, 0.05);
    border-bottom: 1px solid rgba(255, 255, 255, 0.05);
    transition: all 0.4s ease;
    position: relative;
}

.platform-card:nth-child(3n) {
    border-right: none;
}

.platform-card:nth-last-child(-n+3) {
    border-bottom: none;
}

.platform-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 2px;
    background: linear-gradient(90deg, transparent, var(--accent-purple), transparent);
    opacity: 0;
    transition: opacity 0.4s ease;
}

.platform-card:hover {
    background: rgba(255, 255, 255, 0.02);
}

.platform-card:hover::before {
    opacity: 1;
}

.platform-icon {
    width: 44px;
    height: 44px;
    margin-bottom: 24px;
    transition: all 0.4s ease;
    opacity: 0.7;
}

.platform-card:hover .platform-icon {
    opacity: 1;
    transform: scale(1.1);
}

.platform-icon svg {
    width: 100%;
    height: 100%;
}

.platform-card-content h3 {
    font-size: 16px;
    font-weight: 500;
    color: var(--text-white);
    margin-bottom: 10px;
    transition: color 0.3s ease;
}

.platform-card:hover .platform-card-content h3 {
    color: var(--accent-purple);
}

.platform-card-content p {
    font-size: 15px;
    color: rgba(255, 255, 255, 0.4);
    line-height: 1.6;
    font-weight: 300;
}

/* Integration Tags - Minimal */
.platform-integrations {
    display: flex;
    justify-content: center;
    gap: 8px;
    flex-wrap: wrap;
}

.integration-tag {
    background: transparent;
    border: 1px solid rgba(255, 255, 255, 0.1);
    padding: 8px 20px;
    border-radius: 4px;
    font-size: 12px;
    color: rgba(255, 255, 255, 0.5);
    transition: all 0.3s ease;
    letter-spacing: 1px;
    text-transform: uppercase;
}

.integration-tag:hover {
    border-color: rgba(139, 92, 246, 0.5);
    color: var(--text-white);
    background: rgba(139, 92, 246, 0.05);
}

/* Responsive */
@media (max-width: 1024px) {
    .platform-features {
        grid-template-columns: repeat(2, 1fr);
    }
    
    .platform-card:nth-child(3n) {
        border-right: 1px solid rgba(255, 255, 255, 0.05);
    }
    
    .platform-card:nth-child(2n) {
        border-right: none;
    }
    
    .platform-card:nth-last-child(-n+3) {
        border-bottom: 1px solid rgba(255, 255, 255, 0.05);
    }
    
    .platform-card:nth-last-child(-n+2) {
        border-bottom: none;
    }
}

@media (max-width: 640px) {
    .platform-features {
        grid-template-columns: 1fr;
    }
    
    .platform-card {
        border-right: none !important;
        padding: 32px 24px;
    }
    
    .platform-card:not(:last-child) {
        border-bottom: 1px solid rgba(255, 255, 255, 0.05) !important;
    }
}

/* ========================================
   Cases Section (continued)
======================================== */
.cases > .container {
    position: relative;
    z-index: 5;
}

.cases-header {
    text-align: center;
    margin-bottom: 60px;
}

.cases-label {
    font-size: 14px;
    letter-spacing: 4px;
    color: var(--accent-purple);
    margin-bottom: 15px;
    text-transform: uppercase;
}

.cases-title {
    font-family: 'Orbitron', sans-serif;
    font-size: clamp(36px, 5.5vw, 56px);
    font-weight: 800;
    color: var(--text-white);
    margin-bottom: 16px;
    letter-spacing: 2px;
    text-transform: uppercase;
}

.cases-description {
    color: var(--text-light-gray);
    font-size: 1.15rem;
    max-width: 600px;
    margin: 0 auto;
    line-height: 1.7;
    position: relative;
    padding-top: 20px;
}

.cases-description::before {
    content: '';
    position: absolute;
    top: 0;
    left: 50%;
    transform: translateX(-50%);
    width: 60px;
    height: 3px;
    background: var(--gradient-primary);
    border-radius: 2px;
}

/* Cases Slider */
.cases-slider-wrapper {
    display: flex;
    align-items: center;
    gap: 20px;
    max-width: 1300px;
    margin: 0 auto;
    padding: 0 10px;
}

.cases-slider-container {
    flex: 1;
    overflow: hidden;
    position: relative;
    padding: 30px 0;
}

.flip-cases {
    display: flex;
    gap: 30px;
    transition: transform 0.5s cubic-bezier(0.4, 0, 0.2, 1);
    will-change: transform;
}

.flip-cases .flip-card {
    flex: 0 0 calc((100% - 60px) / 3);
    min-width: calc((100% - 60px) / 3);
}

.cases-slider-btn {
    width: 50px;
    height: 50px;
    border-radius: 50%;
    border: 1px solid rgba(139, 92, 246, 0.3);
    background: rgba(139, 92, 246, 0.1);
    color: var(--text-white);
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.3s ease;
    flex-shrink: 0;
}

.cases-slider-btn:hover {
    background: rgba(139, 92, 246, 0.3);
    border-color: var(--accent-purple);
    transform: scale(1.1);
}

.cases-slider-btn:disabled {
    opacity: 0.3;
    cursor: not-allowed;
    transform: none;
}

.cases-slider-btn:disabled:hover {
    background: rgba(139, 92, 246, 0.1);
    border-color: rgba(139, 92, 246, 0.3);
}

.cases-slider-dots {
    display: flex;
    justify-content: center;
    gap: 10px;
    margin-top: 30px;
}

.cases-slider-dot {
    width: 12px;
    height: 12px;
    border-radius: 50%;
    background: rgba(139, 92, 246, 0.3);
    border: none;
    cursor: pointer;
    transition: all 0.3s ease;
}

.cases-slider-dot:hover {
    background: rgba(139, 92, 246, 0.5);
}

.cases-slider-dot.active {
    background: var(--accent-purple);
    transform: scale(1.2);
}

.flip-card {
    height: 420px;
    perspective: 1000px;
    cursor: pointer;
}

.flip-card-inner {
    position: relative;
    width: 100%;
    height: 100%;
    transition: transform 0.8s cubic-bezier(0.175, 0.885, 0.32, 1.275);
    transform-style: preserve-3d;
}

.flip-card:hover .flip-card-inner {
    transform: rotateY(180deg);
}

.flip-card-front, .flip-card-back {
    position: absolute;
    width: 100%;
    height: 100%;
    backface-visibility: hidden;
    border-radius: 20px;
    padding: 30px;
    display: flex;
    flex-direction: column;
}

.flip-card-front {
    background: linear-gradient(135deg, #12121a, #1a1a2e);
    border: 1px solid rgba(139, 92, 246, 0.2);
}

.flip-card-back {
    background: linear-gradient(135deg, var(--accent-purple), var(--accent-pink));
    transform: rotateY(180deg);
    justify-content: center;
}

.flip-icon {
    width: 60px;
    height: 60px;
    margin-bottom: 12px;
    background: linear-gradient(135deg, rgba(139, 92, 246, 0.15), rgba(236, 72, 153, 0.15));
    border-radius: 16px;
    display: flex;
    align-items: center;
    justify-content: center;
    border: 1px solid rgba(139, 92, 246, 0.3);
    flex-shrink: 0;
}

.flip-icon svg {
    width: 30px;
    height: 30px;
}

.flip-industry {
    color: var(--accent-purple);
    font-size: 11px;
    letter-spacing: 2px;
    margin-bottom: 8px;
    flex-shrink: 0;
}

.flip-problem {
    color: var(--text-white);
    font-size: 17px;
    font-weight: 600;
    margin-bottom: 8px;
    line-height: 1.3;
    flex-shrink: 0;
}

.flip-desc {
    color: var(--text-light-gray);
    font-size: 13px;
    line-height: 1.5;
    margin-bottom: 12px;
    flex-shrink: 0;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.flip-solutions {
    flex-grow: 1;
    margin-bottom: 10px;
    min-height: 0;
    overflow: hidden;
}

.flip-solutions-title {
    color: var(--accent-purple);
    font-size: 10px;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    margin-bottom: 6px;
}

.flip-solutions-list {
    list-style: none;
    padding: 0;
    margin: 0;
}

.flip-solutions-list li {
    color: var(--text-light-gray);
    font-size: 12px;
    padding-left: 14px;
    position: relative;
    margin-bottom: 3px;
    line-height: 1.3;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.flip-solutions-list li::before {
    content: '✓';
    position: absolute;
    left: 0;
    color: var(--accent-purple);
    font-size: 10px;
}

.flip-hint {
    color: var(--text-gray);
    flex-shrink: 0;
    font-size: 12px;
    display: flex;
    align-items: center;
    gap: 8px;
}

.flip-back-title {
    font-size: 16px;
    font-weight: 600;
    margin-bottom: 25px;
    opacity: 0.9;
}

.flip-result {
    display: flex;
    align-items: baseline;
    flex-wrap: wrap;
    gap: 8px 12px;
    margin-bottom: 15px;
}

.flip-result-num {
    font-size: 32px;
    font-weight: 700;
    line-height: 1;
}

.flip-result-text {
    font-size: 13px;
    opacity: 0.9;
    line-height: 1.2;
    max-width: 150px;
}

/* Card Connectors - attached to cards for accurate positioning */
.flip-card {
    position: relative;
}

.flip-card:not(:last-child)::after {
    content: '';
    position: absolute;
    right: -30px;
    top: 50%;
    transform: translateY(-50%);
    width: 30px;
    height: 3px;
    background: linear-gradient(90deg, #8b5cf6, #ec4899);
    border-radius: 2px;
    box-shadow: 0 0 10px rgba(139, 92, 246, 0.5);
    z-index: 5;
    transition: opacity 0.3s ease, transform 0.3s ease, width 0.3s ease;
}

/* Hide connector when card is flipped */
.flip-card:not(:last-child):hover::after {
    opacity: 0;
    transform: translateY(-50%) scaleX(0);
}

/* Pulsing dot in the middle of connector */
.flip-card:not(:last-child)::before {
    content: '';
    position: absolute;
    right: -19px;
    top: 50%;
    transform: translateY(-50%);
    width: 10px;
    height: 10px;
    background: linear-gradient(135deg, #8b5cf6, #ec4899);
    border-radius: 50%;
    box-shadow: 0 0 15px rgba(139, 92, 246, 0.8);
    z-index: 6;
    animation: dotPulse 2s ease-in-out infinite;
    transition: opacity 0.3s ease, transform 0.3s ease;
}

/* Hide pulsing dot when card is flipped */
.flip-card:not(:last-child):hover::before {
    opacity: 0;
    transform: translateY(-50%) scale(0);
}

/* Also hide connector of previous card when next card is hovered */
.flip-card:not(:last-child):has(+ .flip-card:hover)::after,
.flip-card:not(:last-child):has(+ .flip-card:hover)::before {
    opacity: 0;
    transform: translateY(-50%) scale(0);
}

@keyframes dotPulse {
    0%, 100% {
        transform: translateY(-50%) scale(1);
        box-shadow: 0 0 10px rgba(139, 92, 246, 0.6);
    }
    50% {
        transform: translateY(-50%) scale(1.3);
        box-shadow: 0 0 20px rgba(236, 72, 153, 0.9);
    }
}

/* Cases Responsive */
@media (max-width: 1024px) {
    .flip-cases .flip-card {
        flex: 0 0 calc((100% - 30px) / 2);
        min-width: calc((100% - 30px) / 2);
    }

    .cases-slider-wrapper {
        gap: 15px;
    }

    .cases-slider-btn {
        width: 40px;
        height: 40px;
    }

    /* Hide connectors when grid changes */
    .flip-card:not(:last-child)::after,
    .flip-card:not(:last-child)::before {
        display: none;
    }
}

@media (max-width: 768px) {
    .cases {
        padding: 80px 20px;
    }

    .flip-cases .flip-card {
        flex: 0 0 100%;
        min-width: 100%;
    }

    .flip-cases {
        gap: 20px;
    }

    .cases-slider-wrapper {
        gap: 0;
        padding: 0 15px;
    }

    /* Hide navigation buttons on mobile - use swipe */
    .cases-slider-btn {
        display: none;
    }

    .cases-slider-container {
        overflow: hidden;
        touch-action: pan-x;
        -webkit-overflow-scrolling: touch;
    }

    .flip-card {
        height: 380px;
    }

    .flip-problem {
        font-size: 18px;
    }

    .flip-result-num {
        font-size: 26px;
    }

    .flip-result-text {
        font-size: 14px;
        max-width: 120px;
    }

    .cases-slider-dots {
        margin-top: 20px;
    }

    /* Swipe hint for mobile */
    .cases-swipe-hint {
        display: flex;
        align-items: center;
        justify-content: center;
        gap: 8px;
        color: rgba(255, 255, 255, 0.5);
        font-size: 13px;
        margin-top: 15px;
        animation: swipeHintPulse 2s ease-in-out infinite;
    }

    .cases-swipe-hint svg {
        width: 20px;
        height: 20px;
        animation: swipeArrow 1.5s ease-in-out infinite;
    }

    @keyframes swipeHintPulse {
        0%, 100% { opacity: 0.5; }
        50% { opacity: 0.8; }
    }

    @keyframes swipeArrow {
        0%, 100% { transform: translateX(0); }
        50% { transform: translateX(5px); }
    }
}

/* ========================================
   PROCESS SECTION - TABS STYLE
======================================== */
.process {
    position: relative;
    padding: 120px 50px;
    background: var(--bg-section);
    z-index: 2;
}

.process-header {
    text-align: center;
    margin-bottom: 50px;
}

.process-label {
    font-size: 14px;
    letter-spacing: 4px;
    color: rgba(255, 255, 255, 0.75);
    margin-bottom: 20px;
    text-transform: uppercase;
    font-weight: 400;
}

.process-title {
    font-family: 'Orbitron', sans-serif;
    font-size: clamp(36px, 5.5vw, 56px);
    font-weight: 800;
    color: var(--text-white);
    letter-spacing: 2px;
    text-transform: uppercase;
}

/* Process Tabs - Glass Morphism */
.process-tabs-wrapper {
    display: flex;
    justify-content: center;
    margin-bottom: 60px;
}

.process-tabs {
    display: flex;
    position: relative;
    background: rgba(255, 255, 255, 0.03);
    border: 1px solid rgba(255, 255, 255, 0.08);
    border-radius: 16px;
    padding: 6px;
    backdrop-filter: blur(10px);
}

.process-tabs-indicator {
    position: absolute;
    top: 6px;
    left: 6px;
    height: calc(100% - 12px);
    background: linear-gradient(135deg, rgba(139, 92, 246, 0.25), rgba(236, 72, 153, 0.25));
    border: 1px solid rgba(139, 92, 246, 0.4);
    border-radius: 12px;
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    pointer-events: none;
    box-shadow: 0 0 20px rgba(139, 92, 246, 0.2);
}

.process-tab {
    padding: 14px 30px;
    background: none;
    border: none;
    border-radius: 12px;
    color: var(--text-gray);
    font-size: 14px;
    font-weight: 500;
    cursor: pointer;
    transition: color 0.3s;
    font-family: inherit;
    position: relative;
    z-index: 2;
}

.process-tab:hover {
    color: var(--text-white);
}

.process-tab.active {
    color: var(--text-white);
}

/* Process Content */
.process-content {
    max-width: 1100px;
    margin: 0 auto;
}

.process-panel {
    display: none;
}

.process-panel.active {
    display: block;
    animation: fadeInUp 0.4s ease;
}

@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(20px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* ========================================
   ZIGZAG PROCESS LAYOUT
======================================== */
.zigzag-steps {
    position: relative;
    padding: 20px 0;
}

.zigzag-item {
    display: flex;
    align-items: center;
    gap: 50px;
    margin-bottom: 50px;
    position: relative;
}

.zigzag-item:nth-child(even) {
    flex-direction: row-reverse;
}

.zigzag-item:nth-child(even) .zigzag-content {
    text-align: right;
}

.zigzag-item:nth-child(even) .zigzag-desc {
    margin-left: auto;
}

.zigzag-item:last-child {
    margin-bottom: 0;
}

/* Visual Circle */
.zigzag-visual {
    flex: 0 0 140px;
    height: 140px;
    border-radius: 50%;
    background: linear-gradient(135deg, rgba(139, 92, 246, 0.15), rgba(236, 72, 153, 0.1));
    display: flex;
    align-items: center;
    justify-content: center;
    position: relative;
    transition: all 0.4s ease;
}

.zigzag-visual::before {
    content: '';
    position: absolute;
    inset: 8px;
    border-radius: 50%;
    border: 2px dashed rgba(139, 92, 246, 0.3);
    animation: zigzagRotate 25s linear infinite;
}

.zigzag-visual::after {
    content: '';
    position: absolute;
    inset: -3px;
    border-radius: 50%;
    background: linear-gradient(135deg, var(--accent-purple), var(--accent-pink));
    opacity: 0;
    transition: opacity 0.4s ease;
    z-index: -1;
    filter: blur(15px);
}

.zigzag-item:hover .zigzag-visual::after {
    opacity: 0.4;
}

.zigzag-item:hover .zigzag-visual {
    background: linear-gradient(135deg, rgba(139, 92, 246, 0.25), rgba(236, 72, 153, 0.2));
    transform: scale(1.05);
}

@keyframes zigzagRotate {
    to { transform: rotate(360deg); }
}

.zigzag-num {
    font-size: 48px;
    font-weight: 700;
    background: linear-gradient(135deg, var(--accent-cyan), var(--accent-purple));
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    transition: all 0.4s ease;
}

.zigzag-item:hover .zigzag-num {
    transform: scale(1.1);
}

/* Content */
.zigzag-content {
    flex: 1;
    transition: all 0.3s ease;
}

.zigzag-title {
    font-size: 24px;
    font-weight: 600;
    margin-bottom: 12px;
    color: var(--text-white);
    transition: color 0.3s ease;
}

.zigzag-item:hover .zigzag-title {
    color: var(--accent-purple);
}

.zigzag-desc {
    font-size: 15px;
    color: var(--text-gray);
    line-height: 1.7;
    max-width: 500px;
    transition: color 0.3s ease;
}

.zigzag-item:hover .zigzag-desc {
    color: rgba(255, 255, 255, 0.8);
}

.zigzag-link {
    color: var(--accent-purple);
    text-decoration: none;
    font-weight: 500;
    transition: color 0.2s;
}

.zigzag-link:hover {
    color: var(--accent-pink);
}

.process-future {
    text-align: center;
    font-size: 15px;
    color: var(--text-gray);
    max-width: 600px;
    margin: 0 auto 32px;
    line-height: 1.7;
    font-style: italic;
}

/* Connector Line */
.zigzag-connector {
    position: absolute;
    width: 2px;
    height: 50px;
    background: linear-gradient(180deg, var(--accent-purple), rgba(139, 92, 246, 0.2));
    left: 70px;
    bottom: -50px;
    z-index: 1;
}

.zigzag-item:nth-child(even) .zigzag-connector {
    left: auto;
    right: 70px;
}

.zigzag-item:last-child .zigzag-connector {
    display: none;
}

/* ========================================
   ZIGZAG / PROCESS — MOBILE OVERRIDES
   Компактный timeline (вариант 1)
   ======================================== */
@media (max-width: 768px) {
    .process {
        padding-top: 60px;
        padding-bottom: 60px;
    }

    .process-header {
        margin-bottom: 30px;
    }

    .process-title {
        font-size: 28px;
        letter-spacing: 1px;
    }

    .process-label {
        font-size: 12px;
        letter-spacing: 3px;
        margin-bottom: 12px;
    }

    .zigzag-steps {
        padding: 0 0 0 24px;
        position: relative;
    }

    .zigzag-steps::before {
        content: '';
        position: absolute;
        left: 11px;
        top: 0;
        bottom: 0;
        width: 2px;
        background: linear-gradient(180deg, var(--accent-purple), var(--accent-pink), rgba(139,92,246,0.1));
    }

    .zigzag-item {
        flex-direction: row !important;
        gap: 0;
        margin-bottom: 0;
        padding: 14px 0 14px 20px;
        position: relative;
    }

    .zigzag-item:nth-child(even) {
        flex-direction: row !important;
    }

    .zigzag-item:nth-child(even) .zigzag-content {
        text-align: left;
    }

    .zigzag-item:nth-child(even) .zigzag-desc {
        margin-left: 0;
    }

    .zigzag-visual {
        flex: 0 0 22px;
        width: 22px;
        height: 22px;
        position: absolute;
        left: -19px;
        top: 18px;
        background: var(--bg-dark);
        border: 2px solid var(--accent-purple);
        border-radius: 50%;
    }

    .zigzag-visual::before {
        display: none;
    }

    .zigzag-visual::after {
        display: none;
    }

    .zigzag-num {
        font-size: 8px;
        font-weight: 700;
    }

    .zigzag-content {
        flex: 1;
        min-width: 0;
        padding-left: 8px;
    }

    .zigzag-title {
        font-size: 15px;
        margin-bottom: 4px;
    }

    .zigzag-desc {
        font-size: 12px;
        max-width: 100%;
        line-height: 1.5;
    }

    .zigzag-connector {
        display: none;
    }

    .process-future {
        font-size: 12px;
        margin: 12px auto 24px;
        padding: 0 16px;
    }
}

@media (max-width: 480px) {
    .zigzag-steps {
        padding-left: 20px;
    }

    .zigzag-steps::before {
        left: 9px;
    }

    .zigzag-item {
        padding: 12px 0 12px 18px;
    }

    .zigzag-visual {
        flex: 0 0 18px;
        width: 18px;
        height: 18px;
        left: -16px;
        top: 15px;
    }

    .zigzag-num {
        font-size: 7px;
    }

    .zigzag-title {
        font-size: 14px;
    }

    .zigzag-desc {
        font-size: 13px;
    }
}

/* Process Steps - Legacy (hidden) */
.process-steps {
    display: none;
    flex-direction: column;
}

.process-step {
    display: grid;
    grid-template-columns: 60px 80px 1fr;
    align-items: start;
    gap: 25px;
    padding: 30px 0;
    border-bottom: 1px solid rgba(255, 255, 255, 0.06);
    cursor: pointer;
    transition: all 0.3s ease;
    border-radius: 16px;
    margin: 0 -20px;
    padding-left: 20px;
    padding-right: 20px;
}

/* Steps with animations (Sites panel) */
.process-step:has(.step-animation) {
    grid-template-columns: 60px 80px 1fr 120px;
}

.process-step:hover {
    background: rgba(139, 92, 246, 0.05);
}

.process-step:last-child {
    border-bottom: none;
}

.step-number {
    font-size: clamp(28px, 3vw, 36px);
    font-weight: 700;
    color: var(--text-white);
    font-family: var(--font-mono);
    padding-top: 5px;
}

.step-line {
    height: 2px;
    background: rgba(255, 255, 255, 0.1);
    position: relative;
    min-width: 100px;
    margin-top: 15px;
}

.step-line::after {
    content: '';
    position: absolute;
    right: 0;
    top: 50%;
    transform: translateY(-50%);
    width: 8px;
    height: 8px;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.3);
}

.process-step:nth-child(odd) .step-line {
    background: linear-gradient(90deg, var(--accent-purple), var(--accent-pink));
}

.process-step:nth-child(odd) .step-line::after {
    background: var(--accent-pink);
    box-shadow: 0 0 15px var(--accent-pink);
}

.step-info {
    text-align: left;
    overflow: visible;
}

.step-title {
    font-size: 18px;
    font-weight: 500;
    color: var(--text-white);
    margin-bottom: 6px;
}

.step-desc {
    font-size: 17px;
    line-height: 1.9;
    color: rgba(255, 255, 255, 0.75);
}

/* ========================================
   NEON CHARGE - Energy Flow Animation
   Энергия перетекает от этапа к этапу при скролле
======================================== */
.process-step {
    transition: all 0.6s cubic-bezier(0.4, 0, 0.2, 1);
}

.process-step.energy-active {
    background: rgba(59, 130, 246, 0.08);
    border-color: rgba(59, 130, 246, 0.3);
    box-shadow:
        inset 0 0 30px rgba(59, 130, 246, 0.1),
        0 0 20px rgba(59, 130, 246, 0.15);
}

.process-step.energy-active .step-number {
    color: var(--accent-blue);
    text-shadow: 0 0 20px rgba(59, 130, 246, 0.8);
    animation: neonPulse 1.5s ease-in-out infinite alternate;
}

@keyframes neonPulse {
    from {
        text-shadow: 0 0 20px rgba(59, 130, 246, 0.8);
    }
    to {
        text-shadow: 0 0 30px rgba(59, 130, 246, 1), 0 0 50px rgba(59, 130, 246, 0.5);
    }
}

.process-step.energy-active .step-line {
    background: linear-gradient(90deg, var(--accent-blue), var(--accent-cyan));
    box-shadow: 0 0 10px rgba(59, 130, 246, 0.5);
}

.process-step.energy-active .step-line::after {
    background: var(--accent-cyan);
    box-shadow: 0 0 15px var(--accent-cyan), 0 0 30px rgba(6, 182, 212, 0.5);
    animation: dotPulse 1s ease-in-out infinite;
}

@keyframes dotPulse {
    0%, 100% { transform: translateY(-50%) scale(1); }
    50% { transform: translateY(-50%) scale(1.3); }
}

.process-step.energy-active .step-title {
    color: var(--accent-blue);
    text-shadow: 0 0 15px rgba(59, 130, 246, 0.5);
}

.process-step.energy-active .step-desc {
    color: rgba(255, 255, 255, 0.9);
}

/* Energy connector between steps */
.process-step.energy-active + .process-step::before {
    content: '';
    position: absolute;
    top: -15px;
    left: 30px;
    width: 3px;
    height: 15px;
    background: linear-gradient(180deg, var(--accent-blue), transparent);
    animation: energyFlow 0.5s ease-out;
}

@keyframes energyFlow {
    from {
        height: 0;
        opacity: 0;
    }
    to {
        height: 15px;
        opacity: 1;
    }
}

/* Step Animation Container */
.step-animation {
    width: 100px;
    height: 100px;
    display: flex;
    align-items: center;
    justify-content: center;
    position: relative;
    align-self: center;
}

/* ========================================
   STEP ANIMATIONS - Target (01)
======================================== */
.anim-target {
    width: 70px;
    height: 70px;
    position: relative;
}

.target-ring {
    position: absolute;
    border: 2px solid rgba(139, 92, 246, 0.5);
    border-radius: 50%;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    transition: all 0.4s ease;
}

.target-ring-1 { width: 70px; height: 70px; }
.target-ring-2 { width: 50px; height: 50px; }
.target-ring-3 { width: 30px; height: 30px; }

.target-center {
    position: absolute;
    width: 12px;
    height: 12px;
    background: linear-gradient(135deg, var(--accent-purple), var(--accent-pink));
    border-radius: 50%;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    opacity: 0.6;
    transition: all 0.4s ease;
}

.target-arrow {
    position: absolute;
    width: 40px;
    height: 2px;
    background: linear-gradient(90deg, transparent, var(--accent-pink));
    top: 50%;
    right: 50%;
    transform: translateY(-50%) rotate(-45deg);
    transform-origin: right center;
    opacity: 0;
    transition: all 0.5s ease;
}

.target-arrow::after {
    content: '';
    position: absolute;
    right: -2px;
    top: -4px;
    border: 5px solid transparent;
    border-left: 8px solid var(--accent-pink);
}

.process-step:hover .target-ring {
    border-color: var(--accent-purple);
}

.process-step:hover .target-ring-1 { animation: targetPulse 1.5s ease-out infinite; }
.process-step:hover .target-ring-2 { animation: targetPulse 1.5s ease-out infinite 0.2s; }
.process-step:hover .target-ring-3 { animation: targetPulse 1.5s ease-out infinite 0.4s; }

.process-step:hover .target-center {
    opacity: 1;
    box-shadow: 0 0 20px var(--accent-pink);
}

.process-step:hover .target-arrow {
    opacity: 1;
    animation: arrowHit 0.6s ease-out forwards;
}

@keyframes targetPulse {
    0%, 100% { transform: translate(-50%, -50%) scale(1); opacity: 1; }
    50% { transform: translate(-50%, -50%) scale(1.1); opacity: 0.5; }
}

@keyframes arrowHit {
    0% { right: 100%; }
    100% { right: 50%; }
}

/* ========================================
   STEP ANIMATIONS - Chart (02)
======================================== */
.anim-chart {
    width: 70px;
    height: 60px;
    display: flex;
    align-items: flex-end;
    justify-content: center;
    gap: 8px;
}

.chart-bar {
    width: 14px;
    background: linear-gradient(180deg, var(--accent-purple), var(--accent-pink));
    border-radius: 4px 4px 0 0;
    opacity: 0.5;
    transition: all 0.4s ease;
}

.chart-bar-1 { height: 25px; }
.chart-bar-2 { height: 40px; }
.chart-bar-3 { height: 55px; }
.chart-bar-4 { height: 35px; }

.process-step:hover .chart-bar {
    opacity: 1;
}

.process-step:hover .chart-bar-1 { animation: barGrow 0.6s ease-out forwards; }
.process-step:hover .chart-bar-2 { animation: barGrow 0.6s ease-out 0.1s forwards; }
.process-step:hover .chart-bar-3 { animation: barGrow 0.6s ease-out 0.2s forwards; }
.process-step:hover .chart-bar-4 { animation: barGrow 0.6s ease-out 0.3s forwards; }

@keyframes barGrow {
    0% { transform: scaleY(0); transform-origin: bottom; }
    100% { transform: scaleY(1); transform-origin: bottom; box-shadow: 0 0 15px rgba(139, 92, 246, 0.5); }
}

/* ========================================
   STEP ANIMATIONS - Brief (03)
======================================== */
.anim-brief {
    width: 60px;
    height: 70px;
    position: relative;
}

.brief-doc {
    width: 100%;
    height: 100%;
    background: rgba(255, 255, 255, 0.05);
    border: 2px solid rgba(139, 92, 246, 0.5);
    border-radius: 8px;
    padding: 10px 8px;
    transition: all 0.4s ease;
}

.brief-line {
    height: 3px;
    background: rgba(255, 255, 255, 0.2);
    border-radius: 2px;
    margin-bottom: 6px;
    position: relative;
    overflow: hidden;
}

.brief-line::after {
    content: '';
    position: absolute;
    left: 0;
    top: 0;
    height: 100%;
    width: 0;
    background: linear-gradient(90deg, var(--accent-purple), var(--accent-pink));
    transition: width 0.4s ease;
}

.process-step:hover .brief-doc {
    border-color: var(--accent-purple);
    box-shadow: 0 0 20px rgba(139, 92, 246, 0.2);
}

.process-step:hover .brief-line-1::after { width: 100%; transition-delay: 0.1s; }
.process-step:hover .brief-line-2::after { width: 80%; transition-delay: 0.2s; }
.process-step:hover .brief-line-3::after { width: 100%; transition-delay: 0.3s; }
.process-step:hover .brief-line-4::after { width: 60%; transition-delay: 0.4s; }
.process-step:hover .brief-line-5::after { width: 90%; transition-delay: 0.5s; }

/* ========================================
   STEP ANIMATIONS - Gears (04)
======================================== */
.anim-gears {
    width: 80px;
    height: 80px;
    position: relative;
}

.gear {
    position: absolute;
    border: 3px solid rgba(139, 92, 246, 0.6);
    border-radius: 50%;
    transition: all 0.4s ease;
}

.gear::before {
    content: '';
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 30%;
    height: 30%;
    background: linear-gradient(135deg, var(--accent-purple), var(--accent-pink));
    border-radius: 50%;
    opacity: 0.6;
    transition: opacity 0.4s ease;
}

.gear-1 {
    width: 45px;
    height: 45px;
    top: 5px;
    left: 5px;
}

.gear-2 {
    width: 35px;
    height: 35px;
    bottom: 10px;
    right: 10px;
}

.process-step:hover .gear {
    border-color: var(--accent-purple);
}

.process-step:hover .gear::before {
    opacity: 1;
}

.process-step:hover .gear-1 {
    animation: rotateCW 3s linear infinite;
}

.process-step:hover .gear-2 {
    animation: rotateCCW 2s linear infinite;
}

@keyframes rotateCW {
    from { transform: rotate(0deg); }
    to { transform: rotate(360deg); }
}

@keyframes rotateCCW {
    from { transform: rotate(0deg); }
    to { transform: rotate(-360deg); }
}

/* ========================================
   STEP ANIMATIONS - Code (05)
======================================== */
.anim-code {
    width: 80px;
    height: 60px;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 5px;
    font-family: 'JetBrains Mono', monospace;
    font-size: 28px;
    font-weight: 300;
}

.code-bracket {
    color: rgba(139, 92, 246, 0.5);
    transition: all 0.4s ease;
}

.code-slash {
    width: 2px;
    height: 30px;
    background: rgba(236, 72, 153, 0.5);
    transform: rotate(15deg);
    transition: all 0.4s ease;
}

.process-step:hover .code-bracket {
    color: var(--accent-purple);
    text-shadow: 0 0 20px var(--accent-purple);
}

.process-step:hover .code-bracket-left {
    animation: bracketLeft 0.5s ease-out forwards;
}

.process-step:hover .code-bracket-right {
    animation: bracketRight 0.5s ease-out forwards;
}

.process-step:hover .code-slash {
    background: var(--accent-pink);
    box-shadow: 0 0 15px var(--accent-pink);
    animation: slashPulse 1s ease-in-out infinite;
}

@keyframes bracketLeft {
    0% { transform: translateX(10px); opacity: 0.3; }
    100% { transform: translateX(0); opacity: 1; }
}

@keyframes bracketRight {
    0% { transform: translateX(-10px); opacity: 0.3; }
    100% { transform: translateX(0); opacity: 1; }
}

@keyframes slashPulse {
    0%, 100% { opacity: 1; }
    50% { opacity: 0.5; }
}

/* ========================================
   STEP ANIMATIONS - Checkmark (06)
======================================== */
.anim-check {
    width: 70px;
    height: 70px;
    position: relative;
}

.check-circle {
    width: 100%;
    height: 100%;
    border: 3px solid rgba(139, 92, 246, 0.5);
    border-radius: 50%;
    transition: all 0.4s ease;
}

.check-mark {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 30px;
    height: 20px;
}

.check-mark::before,
.check-mark::after {
    content: '';
    position: absolute;
    background: linear-gradient(135deg, var(--accent-purple), var(--accent-pink));
    border-radius: 2px;
    opacity: 0;
    transition: all 0.3s ease;
}

.check-mark::before {
    width: 3px;
    height: 12px;
    bottom: 0;
    left: 5px;
    transform: rotate(-45deg);
    transform-origin: bottom left;
}

.check-mark::after {
    width: 3px;
    height: 22px;
    bottom: 0;
    left: 12px;
    transform: rotate(45deg);
    transform-origin: bottom left;
}

.process-step:hover .check-circle {
    border-color: #10b981;
    box-shadow: 0 0 20px rgba(16, 185, 129, 0.3);
}

.process-step:hover .check-mark::before {
    opacity: 1;
    animation: checkShort 0.3s ease-out 0.2s forwards;
}

.process-step:hover .check-mark::after {
    opacity: 1;
    animation: checkLong 0.3s ease-out 0.4s forwards;
}

@keyframes checkShort {
    0% { height: 0; }
    100% { height: 12px; }
}

@keyframes checkLong {
    0% { height: 0; }
    100% { height: 22px; }
}

/* ========================================
   STEP ANIMATIONS - Passport/Folder (07)
======================================== */
.anim-passport {
    width: 70px;
    height: 60px;
    position: relative;
}

.passport-folder {
    width: 100%;
    height: 100%;
    position: relative;
}

.passport-back {
    position: absolute;
    width: 100%;
    height: 90%;
    bottom: 0;
    background: rgba(139, 92, 246, 0.3);
    border: 2px solid rgba(139, 92, 246, 0.5);
    border-radius: 0 8px 8px 8px;
    transition: all 0.4s ease;
}

.passport-tab {
    position: absolute;
    top: 0;
    left: 0;
    width: 35%;
    height: 15px;
    background: rgba(139, 92, 246, 0.3);
    border: 2px solid rgba(139, 92, 246, 0.5);
    border-bottom: none;
    border-radius: 6px 6px 0 0;
    transition: all 0.4s ease;
}

.passport-doc {
    position: absolute;
    width: 50px;
    height: 40px;
    background: rgba(255, 255, 255, 0.1);
    border: 2px solid rgba(255, 255, 255, 0.2);
    border-radius: 4px;
    bottom: 15px;
    left: 50%;
    transform: translateX(-50%) translateY(10px);
    opacity: 0;
    transition: all 0.4s ease;
}

.passport-doc::before {
    content: '';
    position: absolute;
    top: 8px;
    left: 6px;
    right: 6px;
    height: 2px;
    background: rgba(255, 255, 255, 0.3);
    box-shadow: 0 6px 0 rgba(255, 255, 255, 0.3), 0 12px 0 rgba(255, 255, 255, 0.3);
}

.process-step:hover .passport-back,
.process-step:hover .passport-tab {
    border-color: var(--accent-purple);
    background: rgba(139, 92, 246, 0.3);
}

.process-step:hover .passport-doc {
    opacity: 1;
    transform: translateX(-50%) translateY(-5px);
}

.process-step:hover .passport-folder {
    animation: folderGlow 1.5s ease-in-out infinite;
}

@keyframes folderGlow {
    0%, 100% { filter: drop-shadow(0 0 5px rgba(139, 92, 246, 0.3)); }
    50% { filter: drop-shadow(0 0 15px rgba(139, 92, 246, 0.6)); }
}

/* Center button in process section */
.process-cta {
    display: flex;
    justify-content: center;
    margin-top: 60px;
}

/* Responsive */
@media (max-width: 768px) {
    .process-step {
        grid-template-columns: 50px 1fr;
        gap: 15px;
        margin: 0;
        padding-left: 0;
        padding-right: 0;
    }

    .step-line {
        display: none;
    }

    .step-info {
        text-align: left;
        min-width: auto;
    }

    .step-animation {
        display: none;
    }

    .process-tabs {
        flex-wrap: wrap;
        border-radius: 12px;
    }

    .process-tabs-indicator {
        display: none;
    }

    .process-tab {
        padding: 12px 20px;
        font-size: 13px;
    }

    .process-tab.active {
        background: linear-gradient(135deg, rgba(139, 92, 246, 0.3), rgba(236, 72, 153, 0.3));
        border-radius: 10px;
    }
}

/* ========================================
   STATS SECTION
======================================== */
.stats {
    position: relative;
    padding: 80px 50px;
    background: var(--bg-dark);
    z-index: 2;
    border-top: 1px solid rgba(255, 255, 255, 0.05);
    border-bottom: 1px solid rgba(255, 255, 255, 0.05);
}

.stats-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 40px;
    text-align: center;
}

.stat-item {
    display: flex;
    flex-direction: column;
    align-items: center;
}

.stat-number {
    font-size: 56px;
    font-weight: 700;
    color: var(--text-white);
    line-height: 1;
    display: inline;
}

.stat-suffix {
    font-size: 24px;
    font-weight: 600;
    color: var(--accent-purple);
    display: inline;
    margin-left: 5px;
}

.stat-label {
    font-size: 15px;
    color: var(--text-gray);
    margin-top: 10px;
}

/* ========================================
   CONTACT SECTION
======================================== */
.contact {
    position: relative;
    padding: 120px 50px;
    background: var(--bg-section);
    z-index: 2;
}

.contact-wrapper {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 80px;
    align-items: start;
}

.contact-info .section-title {
    font-size: clamp(28px, 4vw, 40px);
    margin-bottom: 20px;
}

.contact-description {
    font-size: 16px;
    line-height: 1.8;
    color: var(--text-gray);
    margin-bottom: 40px;
}

.contact-details {
    display: flex;
    flex-direction: column;
    gap: 20px;
    margin-bottom: 40px;
}

.contact-item {
    display: flex;
    align-items: center;
    gap: 15px;
    color: var(--text-gray);
    font-size: 16px;
}

.contact-item svg {
    color: var(--accent-purple);
}

.copy-email-btn {
    background: none;
    border: none;
    cursor: pointer;
    color: var(--accent-purple);
    opacity: 0.4;
    padding: 2px;
    margin-left: 6px;
    transition: opacity 0.2s;
    display: inline-flex;
    align-items: center;
}
.copy-email-btn:hover {
    opacity: 1;
}
.copy-email-btn svg {
    color: inherit;
}

.copy-toast {
    position: fixed;
    bottom: 30px;
    left: 50%;
    transform: translateX(-50%) translateY(20px);
    background: rgba(139, 92, 246, 0.9);
    color: #fff;
    padding: 8px 20px;
    border-radius: 8px;
    font-size: 13px;
    opacity: 0;
    transition: opacity 0.3s, transform 0.3s;
    z-index: 10000;
    pointer-events: none;
}
.copy-toast.visible {
    opacity: 1;
    transform: translateX(-50%) translateY(0);
}

.contact-social {
    display: flex;
    gap: 15px;
}

.social-btn {
    width: 45px;
    height: 45px;
    border: 1px solid rgba(255, 255, 255, 0.15);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 12px;
    font-weight: 600;
    color: var(--text-gray);
    transition: var(--transition);
}

.social-btn:hover {
    border-color: var(--accent-purple);
    color: var(--accent-purple);
}

/* Contact Form - Floating Labels + Minimal */
.contact-form {
    background: rgba(255, 255, 255, 0.02);
    border: 1px solid rgba(255, 255, 255, 0.08);
    border-radius: 20px;
    padding: 40px;
}

.contact-form-floating {
    background: linear-gradient(145deg, rgba(20, 20, 30, 0.8), rgba(10, 10, 15, 0.9));
    border: 1px solid rgba(255, 255, 255, 0.05);
    border-radius: 20px;
    padding: 30px 35px;
}

.contact-form-floating .form-header {
    margin-bottom: 25px;
}

.contact-form-floating .form-badge {
    display: inline-block;
    padding: 5px 12px;
    background: rgba(139, 92, 246, 0.15);
    border: 1px solid rgba(139, 92, 246, 0.3);
    border-radius: 50px;
    font-size: 10px;
    letter-spacing: 1.5px;
    text-transform: uppercase;
    color: var(--accent-purple);
    margin-bottom: 12px;
}

.contact-form-floating .form-title {
    font-family: 'DM Sans', sans-serif;
    font-size: 22px;
    font-weight: 700;
    line-height: 1.3;
    color: var(--text-white);
}

.contact-form-floating .form-title span {
    background: linear-gradient(135deg, var(--accent-purple), var(--accent-pink));
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.contact-form-floating .form-subtitle {
    font-size: 14px;
    color: rgba(255,255,255,0.5);
    margin-top: 6px;
}

.contact-form-floating .form-privacy {
    font-size: 11px;
    color: rgba(255,255,255,0.3);
    text-align: center;
    margin-top: 12px;
    line-height: 1.4;
}

/* ========================================
   Pricing Section
======================================== */
.pricing {
    padding: 100px 0;
    background: var(--bg-section);
    position: relative;
    z-index: 2;
    overflow: hidden;
}

.pricing-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 20px;
    align-items: start;
    max-width: 1340px;
    margin: 40px auto 0;
}

.pricing-card {
    background: rgba(255, 255, 255, 0.03);
    border: 1px solid rgba(255, 255, 255, 0.06);
    border-radius: 20px;
    padding: 40px 32px;
    position: relative;
    transition: var(--transition);
}

.pricing-card:hover {
    border-color: rgba(139, 92, 246, 0.25);
    transform: translateY(-4px);
}

.pricing-card.featured {
    border-color: rgba(139, 92, 246, 0.4);
    background: rgba(139, 92, 246, 0.06);
    transform: scale(1.03);
}

.pricing-card.featured:hover {
    transform: scale(1.03) translateY(-4px);
}

.pricing-badge {
    position: absolute;
    top: -12px;
    left: 50%;
    transform: translateX(-50%);
    background: linear-gradient(135deg, #8b5cf6, #f472b6);
    color: #fff;
    font-size: 11px;
    font-weight: 600;
    padding: 4px 18px;
    border-radius: 20px;
    white-space: nowrap;
}

.pricing-name {
    font-family: 'Orbitron', sans-serif;
    font-size: 22px;
    font-weight: 700;
    color: var(--text-white);
    margin-bottom: 6px;
}

.pricing-audience {
    font-size: 13px;
    color: var(--text-gray);
    margin-bottom: 20px;
}

.pricing-price {
    font-size: 36px;
    font-weight: 700;
    color: var(--accent-purple);
    margin-bottom: 4px;
}

.pricing-price-sub {
    font-size: 13px;
    color: rgba(255, 255, 255, 0.35);
    margin-bottom: 28px;
}

.pricing-divider {
    height: 1px;
    background: rgba(255, 255, 255, 0.06);
    margin-bottom: 24px;
}

.pricing-section-title {
    font-size: 11px;
    font-weight: 600;
    color: var(--accent-purple);
    text-transform: uppercase;
    letter-spacing: 2px;
    margin-bottom: 12px;
    margin-top: 20px;
}

.pricing-section-title:first-of-type {
    margin-top: 0;
}

.pricing-features {
    list-style: none;
    margin-bottom: 8px;
}

.pricing-features li {
    padding: 5px 0;
    font-size: 14px;
    color: var(--text-light-gray);
    display: flex;
    align-items: flex-start;
    gap: 8px;
}

.pricing-features li::before {
    content: "\2713";
    color: var(--accent-purple);
    font-weight: 700;
    flex-shrink: 0;
}

.pricing-cta {
    width: 100%;
    justify-content: center;
    margin-top: 24px;
}

@media (max-width: 1200px) {
    .pricing-grid {
        grid-template-columns: repeat(2, 1fr);
        max-width: 700px;
    }
}

@media (max-width: 700px) {
    .pricing-grid {
        grid-template-columns: 1fr;
        max-width: 440px;
    }
    .pricing-card.featured {
        transform: none;
    }
    .pricing-card.featured:hover {
        transform: translateY(-4px);
    }
    .pricing {
        padding: 60px 0;
    }
}

/* ========================================
   FAQ Section
======================================== */
.faq {
    padding: 100px 0;
    background: var(--bg-section);
    position: relative;
    z-index: 2;
    overflow: hidden;
}

.faq-grid {
    max-width: 800px;
    margin: 40px auto 0;
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.faq-item {
    background: rgba(255, 255, 255, 0.03);
    border: 1px solid rgba(255, 255, 255, 0.06);
    border-radius: 12px;
    overflow: hidden;
    transition: var(--transition);
}

.faq-item:hover {
    border-color: rgba(139, 92, 246, 0.2);
}

.faq-item.active {
    border-color: rgba(139, 92, 246, 0.3);
    background: rgba(139, 92, 246, 0.05);
}

.faq-question {
    width: 100%;
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 20px 24px;
    background: none;
    border: none;
    color: var(--text-white);
    font-family: var(--font-main);
    font-size: 16px;
    font-weight: 500;
    cursor: pointer;
    text-align: left;
    gap: 16px;
    transition: var(--transition);
}

.faq-question:hover {
    color: var(--accent-purple);
}

.faq-icon {
    flex-shrink: 0;
    transition: transform 0.3s ease;
    color: var(--text-gray);
}

.faq-item.active .faq-icon {
    transform: rotate(180deg);
    color: var(--accent-purple);
}

.faq-answer {
    max-height: 0;
    overflow: hidden;
    transition: max-height 0.35s ease, padding 0.35s ease;
}

.faq-item.active .faq-answer {
    max-height: 200px;
}

.faq-answer p {
    padding: 0 24px 20px;
    color: var(--text-light-gray);
    font-size: 15px;
    line-height: 1.7;
}

@media (max-width: 768px) {
    .faq {
        padding: 60px 0;
    }

    .faq-question {
        padding: 16px 18px;
        font-size: 14px;
    }

    .faq-answer p {
        padding: 0 18px 16px;
        font-size: 14px;
    }
}

/* Floating input groups */
.floating-group {
    position: relative;
    margin-bottom: 20px;
}

.floating-input {
    width: 100%;
    padding: 16px 0 8px;
    background: transparent;
    border: none;
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
    color: var(--text-white);
    font-family: inherit;
    font-size: 14px;
    outline: none;
    transition: all 0.3s;
}

.floating-label {
    position: absolute;
    left: 0;
    top: 14px;
    color: var(--text-gray);
    font-size: 13px;
    pointer-events: none;
    transition: all 0.3s ease;
}

.floating-input:focus,
.floating-input:not(:placeholder-shown) {
    border-bottom-color: transparent;
}

.floating-input:focus + .floating-label,
.floating-input:not(:placeholder-shown) + .floating-label {
    top: -5px;
    font-size: 11px;
    color: var(--accent-purple);
    letter-spacing: 1px;
    text-transform: uppercase;
}

.floating-line {
    position: absolute;
    bottom: 0;
    left: 0;
    width: 0;
    height: 2px;
    background: linear-gradient(90deg, var(--accent-purple), var(--accent-pink));
    transition: width 0.3s ease;
}

.floating-input:focus ~ .floating-line {
    width: 100%;
}

/* File Upload in Contact Form */
.file-upload-group {
    margin-bottom: 20px;
}

.file-upload-area {
    display: flex;
    align-items: center;
    padding: 14px 16px;
    border: 1px dashed rgba(139, 92, 246, 0.3);
    border-radius: 12px;
    cursor: pointer;
    transition: all 0.3s ease;
    background: rgba(139, 92, 246, 0.03);
}

.file-upload-area:hover {
    border-color: rgba(139, 92, 246, 0.6);
    background: rgba(139, 92, 246, 0.06);
}

.file-upload-input {
    display: none;
}

.file-upload-content {
    display: flex;
    align-items: center;
    gap: 10px;
    color: var(--text-gray);
    font-size: 13px;
}

.file-upload-content svg {
    color: var(--accent-purple);
    flex-shrink: 0;
}

.file-upload-text {
    color: var(--text-gray);
}

.file-upload-hint {
    color: rgba(255, 255, 255, 0.25);
    font-size: 12px;
    margin-left: auto;
}

.file-upload-selected {
    display: flex;
    align-items: center;
    gap: 8px;
    width: 100%;
    color: var(--text-white);
    font-size: 13px;
}

.file-upload-selected svg {
    color: var(--accent-purple);
    flex-shrink: 0;
}

.file-upload-name {
    flex: 1;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.file-upload-remove {
    background: none;
    border: none;
    color: var(--text-gray);
    font-size: 20px;
    cursor: pointer;
    padding: 0 4px;
    line-height: 1;
    transition: color 0.2s;
    flex-shrink: 0;
}

.file-upload-remove:hover {
    color: #ef4444;
}

.file-upload-area.has-file {
    border-style: solid;
    border-color: rgba(139, 92, 246, 0.4);
    background: rgba(139, 92, 246, 0.05);
}

.file-upload-area.error {
    border-color: #ef4444;
}

/* Form Validation Styles */
.floating-group.error .floating-input {
    border-bottom-color: #ef4444;
}

.floating-group.error .floating-line {
    width: 100%;
    background: #ef4444;
}

.floating-group.error .floating-label {
    color: #ef4444;
}

.floating-group.valid .floating-input {
    border-bottom-color: transparent;
}

.floating-group.valid .floating-line {
    width: 100%;
    background: linear-gradient(90deg, var(--accent-purple), var(--accent-pink));
}

.floating-group.valid .floating-label {
    color: var(--accent-purple);
}

.floating-input:-webkit-autofill,
.floating-input:-webkit-autofill:hover,
.floating-input:-webkit-autofill:focus {
    -webkit-box-shadow: 0 0 0 30px rgba(10, 10, 15, 1) inset !important;
    -webkit-text-fill-color: var(--text-white) !important;
    transition: background-color 5000s ease-in-out 0s;
}

.field-error {
    position: absolute;
    bottom: -18px;
    left: 0;
    font-size: 11px;
    color: #ef4444;
    animation: errorShake 0.3s ease;
}

@keyframes errorShake {
    0%, 100% { transform: translateX(0); }
    25% { transform: translateX(-5px); }
    75% { transform: translateX(5px); }
}

/* Valid checkmark icon */
.floating-group.valid::after {
    content: '✓';
    position: absolute;
    right: 0;
    top: 14px;
    color: #10b981;
    font-size: 14px;
    font-weight: bold;
    animation: checkmarkPop 0.3s ease;
}

@keyframes checkmarkPop {
    0% { transform: scale(0); opacity: 0; }
    50% { transform: scale(1.2); }
    100% { transform: scale(1); opacity: 1; }
}

/* Error icon */
.floating-group.error::after {
    content: '!';
    position: absolute;
    right: 0;
    top: 14px;
    width: 16px;
    height: 16px;
    background: #ef4444;
    color: white;
    font-size: 11px;
    font-weight: bold;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    animation: errorPop 0.3s ease;
}

@keyframes errorPop {
    0% { transform: scale(0); }
    50% { transform: scale(1.2); }
    100% { transform: scale(1); }
}

textarea.floating-input {
    min-height: 70px;
    resize: none;
}

/* Submit button for floating form */
.contact-form-floating .btn-submit {
    width: 100%;
    padding: 14px 28px;
    margin-top: 10px;
    background: var(--text-white);
    color: var(--bg-dark);
    border: none;
    border-radius: 50px;
    font-family: inherit;
    font-size: 14px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
}

.contact-form-floating .btn-submit:hover {
    background: linear-gradient(135deg, var(--accent-purple), var(--accent-pink));
    color: white;
    transform: translateY(-2px);
    box-shadow: 0 15px 40px rgba(139, 92, 246, 0.3);
}

/* Legacy form styles */
.form-group {
    margin-bottom: 20px;
}

.form-group input,
.form-group textarea {
    width: 100%;
    padding: 16px 20px;
    background: rgba(255, 255, 255, 0.03);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 12px;
    color: var(--text-white);
    font-family: inherit;
    font-size: 14px;
    transition: var(--transition);
}

.form-group input::placeholder,
.form-group textarea::placeholder {
    color: var(--text-gray);
}

.form-group input:focus,
.form-group textarea:focus {
    outline: none;
    border-color: var(--accent-purple);
    background: rgba(139, 92, 246, 0.05);
}

.form-group textarea {
    resize: vertical;
    min-height: 120px;
}

.btn-submit {
    width: 100%;
    padding: 16px;
    font-size: 14px;
}

/* ========================================
   FOOTER - GEOMETRIC SHAPES VARIANT
======================================== */
.footer {
    position: relative;
    padding: 80px 50px 30px;
    background: var(--bg-darker);
    z-index: 2;
    overflow: hidden;
}

/* Geometric decorative shapes */
.footer-geo .geo-shape {
    position: absolute;
    border: 1px solid rgba(139, 92, 246, 0.15);
    pointer-events: none;
}

.footer-geo .geo-1 {
    width: 200px;
    height: 200px;
    top: 20px;
    right: 10%;
    border-radius: 50%;
    opacity: 0.3;
}

.footer-geo .geo-2 {
    width: 100px;
    height: 100px;
    bottom: 100px;
    left: 5%;
    transform: rotate(45deg);
    opacity: 0.2;
}

.footer-geo .geo-3 {
    width: 150px;
    height: 150px;
    top: 50%;
    right: 5%;
    clip-path: polygon(50% 0%, 100% 25%, 100% 75%, 50% 100%, 0% 75%, 0% 25%);
    background: rgba(139, 92, 246, 0.05);
    border: none;
    opacity: 0.5;
}

.footer-content {
    display: grid;
    grid-template-columns: 1.5fr 1fr 1fr 1fr;
    gap: 60px;
    margin-bottom: 60px;
    position: relative;
}

.footer-brand {
    padding-right: 40px;
}

.footer-logo {
    display: flex;
    align-items: center;
    gap: 6px;
    font-size: 20px;
    font-weight: 600;
    letter-spacing: 3px;
    color: var(--text-white);
    margin-bottom: 20px;
}

.footer-tagline {
    font-size: 16px;
    line-height: 1.7;
    color: var(--text-gray);
    margin-bottom: 30px;
}

/* Footer social buttons with gradient */
.footer .footer-social {
    display: flex;
    gap: 12px;
}

.footer .social-btn {
    width: 44px;
    height: 44px;
    border-radius: 50%;
    background: linear-gradient(135deg, rgba(139, 92, 246, 0.2), rgba(236, 72, 153, 0.1));
    border: 1px solid rgba(139, 92, 246, 0.3);
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--text-white);
    text-decoration: none;
    font-size: 12px;
    font-weight: 500;
    transition: all 0.3s;
}

.footer .social-btn:hover {
    transform: scale(1.1) rotate(5deg);
    box-shadow: 0 0 25px rgba(139, 92, 246, 0.4);
}

/* Footer columns with gradient accent */
.footer-column h4 {
    font-size: 13px;
    font-weight: 600;
    letter-spacing: 1px;
    color: var(--text-white);
    margin-bottom: 25px;
    display: flex;
    align-items: center;
    gap: 10px;
}

.footer-column h4::before {
    content: '';
    width: 20px;
    height: 2px;
    background: linear-gradient(90deg, var(--accent-purple), var(--accent-pink));
    border-radius: 1px;
}

.footer-column ul {
    display: flex;
    flex-direction: column;
    gap: 14px;
    list-style: none;
}

.footer-column li,
.footer-column a,
.footer-column span {
    font-size: 16px;
    color: var(--text-gray);
    transition: all 0.3s;
}

.footer-column a:hover {
    color: var(--accent-purple);
    padding-left: 5px;
}

.footer-bottom {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding-top: 30px;
    border-top: 1px solid rgba(255, 255, 255, 0.08);
    position: relative;
}

.copyright {
    font-size: 15px;
    color: var(--text-gray);
}

/* Footer legal links */
.footer-legal {
    display: flex;
    gap: 25px;
}

.footer-legal a {
    color: var(--text-gray);
    text-decoration: none;
    font-size: 15px;
    transition: color 0.3s;
}

.footer-legal a:hover {
    color: var(--text-white);
}

/* Legacy footer social (fallback) */
.footer-social {
    display: flex;
    gap: 20px;
}

.footer-social a {
    font-size: 15px;
    color: var(--text-gray);
    font-weight: 500;
}

.footer-social a:hover {
    color: var(--text-white);
}

/* ========================================
   MOBILE MENU - Big Typography Style
======================================== */
.mobile-menu-btn {
    display: none;
    flex-direction: column;
    gap: 6px;
    background: none;
    border: none;
    cursor: pointer;
    padding: 5px;
    z-index: 1001;
}

.mobile-menu-btn span {
    width: 26px;
    height: 2px;
    background: var(--text-white);
    transition: all 0.3s ease;
    transform-origin: center;
}

.mobile-menu-btn.active span:nth-child(1) {
    transform: rotate(45deg) translate(6px, 6px);
}

.mobile-menu-btn.active span:nth-child(2) {
    opacity: 0;
    transform: scaleX(0);
}

.mobile-menu-btn.active span:nth-child(3) {
    transform: rotate(-45deg) translate(6px, -6px);
}

.mobile-menu {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(135deg, #0a0a0f 0%, #1a1025 100%);
    z-index: 999;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    padding: 40px 30px;
    opacity: 0;
    visibility: hidden;
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
}

.mobile-menu.active {
    opacity: 1;
    visibility: visible;
}

/* Logo hidden - header stays visible above menu */
.mobile-menu-logo {
    display: none;
}

/* Mobile header phone button */
.mobile-header-phone {
    display: none;
    width: 40px;
    height: 40px;
    border-radius: 50%;
    border: 1px solid rgba(255, 255, 255, 0.2);
    background: rgba(255, 255, 255, 0.03);
    align-items: center;
    justify-content: center;
    color: var(--text-white);
    transition: var(--transition);
    margin-right: 10px;
}

.mobile-header-phone:hover {
    border-color: rgba(139, 92, 246, 0.5);
    background: rgba(139, 92, 246, 0.1);
}

@media (max-width: 768px) {
    .mobile-header-phone {
        display: flex;
    }
}

/* ========================================
   MOBILE QUICK FORM MODAL
======================================== */
.mobile-form-modal {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    z-index: 10000;
    align-items: center;
    justify-content: center;
    padding: 20px;
}

.mobile-form-modal.active {
    display: flex;
}

.mobile-form-overlay {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(0, 0, 0, 0.7);
    backdrop-filter: blur(8px);
}

.mobile-form-content {
    position: relative;
    width: 100%;
    max-width: 380px;
    background: linear-gradient(145deg, rgba(20, 15, 35, 0.98), rgba(10, 8, 20, 0.98));
    border: 1px solid rgba(139, 92, 246, 0.2);
    border-radius: 24px;
    padding: 32px 28px;
    box-shadow: 0 25px 60px rgba(0, 0, 0, 0.6), 0 0 40px rgba(139, 92, 246, 0.1);
    animation: mobileFormIn 0.3s ease;
}

@keyframes mobileFormIn {
    from { opacity: 0; transform: scale(0.92) translateY(20px); }
    to { opacity: 1; transform: scale(1) translateY(0); }
}

.mobile-form-close {
    position: absolute;
    top: 16px;
    right: 16px;
    background: none;
    border: none;
    color: var(--text-gray);
    cursor: pointer;
    padding: 4px;
    transition: var(--transition);
}

.mobile-form-close:hover {
    color: var(--text-white);
}

.mobile-form-header {
    text-align: center;
    margin-bottom: 24px;
}

.mobile-form-badge {
    display: inline-block;
    font-size: 11px;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 2px;
    color: #10b981;
    background: rgba(16, 185, 129, 0.1);
    border: 1px solid rgba(16, 185, 129, 0.2);
    border-radius: 20px;
    padding: 4px 14px;
    margin-bottom: 12px;
}

.mobile-form-title {
    font-family: 'Space Grotesk', sans-serif;
    font-size: 22px;
    font-weight: 700;
    color: var(--text-white);
    margin-bottom: 6px;
}

.mobile-form-title span {
    background: var(--gradient-primary);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.mobile-form-sub {
    font-size: 13px;
    color: var(--text-gray);
}

.mobile-form-group {
    margin-bottom: 14px;
}

.mobile-form-input {
    width: 100%;
    padding: 14px 18px;
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 14px;
    color: var(--text-white);
    font-family: var(--font-main);
    font-size: 15px;
    outline: none;
    transition: var(--transition);
}

.mobile-form-input::placeholder {
    color: var(--text-gray);
}

.mobile-form-input:focus {
    border-color: rgba(139, 92, 246, 0.5);
    background: rgba(139, 92, 246, 0.05);
    box-shadow: 0 0 20px rgba(139, 92, 246, 0.1);
}

.mobile-form-submit {
    width: 100%;
    padding: 14px;
    margin-top: 4px;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    background: var(--gradient-primary);
    border: none;
    border-radius: 14px;
    color: #fff;
    font-family: var(--font-main);
    font-size: 15px;
    font-weight: 600;
    cursor: pointer;
    transition: var(--transition);
}

.mobile-form-submit:hover {
    opacity: 0.9;
    transform: translateY(-1px);
}

.mobile-form-submit:disabled {
    opacity: 0.6;
    cursor: not-allowed;
}

.mobile-form-privacy {
    text-align: center;
    font-size: 11px;
    color: var(--text-gray);
    margin-top: 12px;
    opacity: 0.7;
}

/* Hide modal on desktop — form at bottom is fine */
@media (min-width: 769px) {
    .mobile-form-modal {
        display: none !important;
    }
}

/* Navigation links - Big Typography */
.mobile-nav-links {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 12px;
    list-style: none;
}

.mobile-nav-link {
    font-family: 'Orbitron', sans-serif;
    font-size: 28px;
    font-weight: 700;
    color: var(--text-gray);
    text-decoration: none;
    transition: all 0.3s ease;
    position: relative;
    padding: 8px 0;
    opacity: 0;
    transform: translateY(30px);
}

.mobile-menu.active .mobile-nav-link {
    opacity: 1;
    transform: translateY(0);
}

.mobile-menu.active .mobile-nav-link:nth-child(1) { transition-delay: 0.1s; }
.mobile-menu.active .mobile-nav-link:nth-child(2) { transition-delay: 0.15s; }
.mobile-menu.active .mobile-nav-link:nth-child(3) { transition-delay: 0.2s; }
.mobile-menu.active .mobile-nav-link:nth-child(4) { transition-delay: 0.25s; }
.mobile-menu.active .mobile-nav-link:nth-child(5) { transition-delay: 0.3s; }
.mobile-menu.active .mobile-nav-link:nth-child(6) { transition-delay: 0.35s; }

.mobile-nav-link:hover,
.mobile-nav-link.active {
    color: var(--text-white);
}

/* Animated line before active/hover item */
.mobile-nav-link::before {
    content: '';
    position: absolute;
    left: -35px;
    top: 50%;
    transform: translateY(-50%);
    width: 0;
    height: 3px;
    background: linear-gradient(90deg, var(--accent-purple), var(--accent-pink));
    border-radius: 2px;
    transition: width 0.3s ease;
}

.mobile-nav-link:hover::before,
.mobile-nav-link.active::before {
    width: 22px;
}

/* Active link gradient text */
.mobile-nav-link.active {
    background: linear-gradient(135deg, var(--accent-purple), var(--accent-pink));
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

/* CTA button at bottom */
.mobile-cta-btn {
    position: absolute;
    bottom: 40px;
    left: 30px;
    right: 30px;
    padding: 18px 30px;
    background: linear-gradient(135deg, var(--accent-purple), var(--accent-pink));
    border-radius: 50px;
    color: white;
    text-align: center;
    font-weight: 600;
    font-size: 15px;
    text-decoration: none;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    opacity: 0;
    transform: translateY(20px);
    transition: all 0.4s ease 0.35s;
    box-shadow: 0 10px 40px rgba(139, 92, 246, 0.3);
}

.mobile-menu.active .mobile-cta-btn {
    opacity: 1;
    transform: translateY(0);
}

.mobile-cta-btn:hover {
    transform: translateY(-3px);
    box-shadow: 0 15px 50px rgba(139, 92, 246, 0.4);
}

.mobile-cta-btn svg {
    transition: transform 0.3s ease;
}

.mobile-cta-btn:hover svg {
    transform: translateX(5px);
}

/* ========================================
   RESPONSIVE - NEW SECTIONS
======================================== */
@media (max-width: 1024px) {
    .mobile-menu-btn {
        display: flex;
    }

    .nav-cta,
    .nav-contacts {
        display: none;
    }

    .services-grid {
        grid-template-columns: 1fr;
    }

    .portfolio-grid {
        grid-template-columns: 1fr 1fr;
    }

    .portfolio-item.large {
        grid-column: span 1;
    }

    .process-step {
        grid-template-columns: 40px 60px 1fr;
        gap: 20px;
    }

    .process-step:has(.step-animation) {
        grid-template-columns: 40px 60px 1fr 100px;
    }

    .step-code {
        font-size: 40px;
    }

    .stats-grid {
        grid-template-columns: repeat(2, 1fr);
    }

    .contact-wrapper {
        grid-template-columns: 1fr;
        gap: 50px;
    }

    .footer-content {
        grid-template-columns: 1fr 1fr;
        gap: 40px;
    }

    .footer-brand {
        grid-column: span 2;
    }

    .footer-geo .geo-1 {
        width: 150px;
        height: 150px;
    }

    .footer-geo .geo-3 {
        width: 100px;
        height: 100px;
    }

    /* Energy Flow Animation - Tablet */
    .process-step.energy-active {
        background: rgba(59, 130, 246, 0.06);
    }

    .process-step.energy-active .step-number {
        font-size: 32px;
    }
}

@media (max-width: 768px) {
    .services,
    .portfolio,
    .process,
    .contact,
    .footer {
        padding-left: 30px;
        padding-right: 30px;
    }

    .portfolio-grid {
        grid-template-columns: 1fr;
    }

    .process-step {
        grid-template-columns: 1fr;
        gap: 12px;
        text-align: left;
        padding: 20px 15px;
    }

    .process-step:has(.step-animation) {
        grid-template-columns: 1fr;
    }

    .step-animation {
        display: none;
    }

    .step-index {
        display: none;
    }

    .step-code {
        font-size: 32px;
    }

    .step-line {
        display: none;
    }

    .step-content {
        text-align: left;
    }

    .step-info {
        width: 100%;
    }

    .stats-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 30px;
    }

    .stat-number {
        font-size: 40px;
    }

    .footer-content {
        grid-template-columns: 1fr;
        gap: 30px;
    }

    .footer-brand {
        grid-column: span 1;
    }

    .footer-geo .geo-shape {
        display: none;
    }

    .footer-bottom {
        flex-direction: column;
        gap: 20px;
        text-align: center;
    }

    .footer-legal {
        flex-wrap: wrap;
        justify-content: center;
    }

    /* Energy Flow Animation - Mobile */
    .process-step.energy-active {
        background: rgba(59, 130, 246, 0.1);
        border-left: 3px solid var(--accent-blue);
        box-shadow: 0 0 20px rgba(59, 130, 246, 0.15);
    }

    .process-step.energy-active .step-number {
        font-size: 24px;
    }

    .process-step.energy-active + .process-step::before {
        display: none;
    }
}

/* ========================================
   CHAT WIDGET
======================================== */
.chat-widget {
    position: fixed;
    bottom: 30px;
    right: 30px;
    width: 380px;
    max-height: 500px;
    background: var(--bg-darker);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 20px;
    display: flex;
    flex-direction: column;
    z-index: 10000;
    opacity: 0;
    visibility: hidden;
    transform: translateY(20px) scale(0.95);
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.5);
}

.chat-widget.active {
    opacity: 1;
    visibility: visible;
    transform: translateY(0) scale(1);
}

.chat-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 18px 20px;
    border-bottom: 1px solid rgba(255, 255, 255, 0.08);
}

.chat-header-info {
    display: flex;
    align-items: center;
    gap: 12px;
}

.chat-avatar {
    width: 40px;
    height: 40px;
    background: linear-gradient(135deg, var(--accent-purple), var(--accent-pink));
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
}

.chat-avatar .logo-icon {
    font-size: 14px;
    color: white;
}

.chat-header-text {
    display: flex;
    flex-direction: column;
}

.chat-title {
    font-size: 14px;
    font-weight: 600;
    color: var(--text-white);
}

.chat-status {
    font-size: 11px;
    color: #10b981;
}

.chat-close {
    width: 36px;
    height: 36px;
    background: rgba(255, 255, 255, 0.05);
    border: none;
    border-radius: 50%;
    color: var(--text-gray);
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: var(--transition);
}

.chat-close:hover {
    background: rgba(255, 255, 255, 0.1);
    color: var(--text-white);
}

.chat-messages {
    flex: 1;
    padding: 20px;
    overflow-y: auto;
    display: flex;
    flex-direction: column;
    gap: 15px;
    max-height: 320px;
    min-height: 200px;
}

.chat-message {
    max-width: 85%;
    padding: 12px 16px;
    border-radius: 16px;
    font-size: 13px;
    line-height: 1.5;
}

.chat-message.bot {
    background: rgba(139, 92, 246, 0.15);
    border: 1px solid rgba(139, 92, 246, 0.2);
    align-self: flex-start;
    border-bottom-left-radius: 4px;
}

.chat-message.user {
    background: rgba(255, 255, 255, 0.1);
    align-self: flex-end;
    border-bottom-right-radius: 4px;
}

.chat-message p {
    margin: 0;
    color: var(--text-white);
}

.chat-input-form {
    display: flex;
    gap: 10px;
    padding: 15px 20px;
    border-top: 1px solid rgba(255, 255, 255, 0.08);
}

.chat-input {
    flex: 1;
    padding: 12px 16px;
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 25px;
    color: var(--text-white);
    font-family: inherit;
    font-size: 13px;
    transition: var(--transition);
}

.chat-input::placeholder {
    color: var(--text-gray);
}

.chat-input:focus {
    outline: none;
    border-color: var(--accent-purple);
    background: rgba(139, 92, 246, 0.05);
}

.chat-send {
    width: 44px;
    height: 44px;
    background: linear-gradient(135deg, var(--accent-purple), var(--accent-pink));
    border: none;
    border-radius: 50%;
    color: white;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: var(--transition);
}

.chat-send:hover {
    transform: scale(1.05);
    box-shadow: 0 5px 20px rgba(139, 92, 246, 0.4);
}

/* Chat typing indicator */
.typing-dots {
    display: inline-flex;
    gap: 4px;
    align-items: center;
    padding: 4px 0;
}

.typing-dots span {
    width: 6px;
    height: 6px;
    background: var(--text-gray);
    border-radius: 50%;
    animation: typingBounce 1.4s ease-in-out infinite both;
}

.typing-dots span:nth-child(1) {
    animation-delay: 0s;
}

.typing-dots span:nth-child(2) {
    animation-delay: 0.2s;
}

.typing-dots span:nth-child(3) {
    animation-delay: 0.4s;
}

@keyframes typingBounce {
    0%, 80%, 100% {
        transform: scale(0.8);
        opacity: 0.5;
    }
    40% {
        transform: scale(1.2);
        opacity: 1;
    }
}

.chat-message.typing-indicator {
    opacity: 0.7;
}

@media (max-width: 480px) {
    .chat-widget {
        width: calc(100% - 30px);
        right: 15px;
        bottom: 15px;
        max-height: 70vh;
    }

    /* Process section - small screens */
    .process {
        padding-left: 15px;
        padding-right: 15px;
    }

    .process-step {
        padding: 20px 10px;
        margin: 0 -5px;
    }

    .step-number {
        font-size: 22px;
        min-width: auto;
    }

    .step-info {
        width: 100%;
        overflow: visible;
        word-wrap: break-word;
    }

    .step-title {
        font-size: 17px;
        word-wrap: break-word;
        overflow-wrap: break-word;
    }

    .step-desc {
        font-size: 14px;
        line-height: 1.6;
    }

    /* Process tabs - small screens */
    .process-tabs-wrapper {
        padding: 0 5px;
    }

    .process-tabs {
        flex-wrap: wrap;
        gap: 6px;
        justify-content: center;
    }

    .process-tab {
        padding: 8px 12px;
        font-size: 12px;
    }

    .process-tabs-indicator {
        display: none;
    }

    /* Hero - small screens */
    .hero {
        padding: 100px 20px 60px;
    }

    .hero-title {
        font-size: 36px;
    }

    .hero-description {
        font-size: 14px;
    }

    /* Nav contacts - hide on very small */
    .nav-contacts {
        display: none;
    }

    /* Contact section - small screens */
    .contact {
        padding: 60px 15px;
    }

    .contact-form-floating {
        padding: 25px 20px;
    }

    .contact-form-floating .form-title {
        font-size: 18px;
    }

    .floating-input {
        font-size: 16px; /* Prevent zoom on iOS */
    }

    .contact-details {
        gap: 15px;
    }

    .contact-social {
        justify-content: center;
    }

    /* Section headers - small screens */
    .section-header {
        margin-bottom: 40px;
    }

    .section-label {
        font-size: 10px;
    }

    /* Portfolio - small screens */
    .portfolio {
        padding: 60px 15px;
    }

    .scroll-wall-wrapper {
        height: 400px;
    }

    .scroll-column {
        width: 150px;
        gap: 12px;
    }

    .scroll-item-image {
        height: 120px;
    }

    .scroll-item-content {
        padding: 10px;
    }

    .scroll-item-title {
        font-size: 0.85rem;
    }

    .scroll-item-category {
        font-size: 0.65rem;
    }
}

/* ========================================
   IMAGE LIGHTBOX (Fullscreen)
======================================== */
.image-lightbox {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(0, 0, 0, 0.95);
    z-index: 20000;
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 0;
    visibility: hidden;
    transition: all 0.3s ease;
}

.image-lightbox.active {
    opacity: 1;
    visibility: visible;
}

.lightbox-close {
    position: absolute;
    top: 20px;
    right: 20px;
    background: rgba(255, 255, 255, 0.1);
    border: none;
    border-radius: 50%;
    width: 50px;
    height: 50px;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    color: white;
    transition: all 0.3s;
    z-index: 10;
}

.lightbox-close:hover {
    background: rgba(255, 255, 255, 0.2);
    transform: rotate(90deg);
}

.lightbox-nav {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    background: rgba(255, 255, 255, 0.1);
    border: none;
    border-radius: 50%;
    width: 60px;
    height: 60px;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    color: white;
    transition: all 0.3s;
    z-index: 10;
}

.lightbox-nav:hover {
    background: rgba(255, 255, 255, 0.2);
}

.lightbox-prev {
    left: 20px;
}

.lightbox-next {
    right: 20px;
}

.lightbox-content {
    max-width: 90vw;
    max-height: 85vh;
    display: flex;
    align-items: center;
    justify-content: center;
}

.lightbox-content img {
    max-width: 100%;
    max-height: 85vh;
    object-fit: contain;
    border-radius: 8px;
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.5);
    transform: scale(0.9);
    transition: transform 0.3s ease;
}

.image-lightbox.active .lightbox-content img {
    transform: scale(1);
}

.lightbox-counter {
    position: absolute;
    bottom: 20px;
    left: 50%;
    transform: translateX(-50%);
    background: rgba(255, 255, 255, 0.1);
    padding: 8px 20px;
    border-radius: 20px;
    color: white;
    font-size: 0.9rem;
    backdrop-filter: blur(10px);
}

/* Скрыть навигацию если одно изображение */
.image-lightbox.single-image .lightbox-nav,
.image-lightbox.single-image .lightbox-counter {
    display: none;
}

/* ========================================
   PROJECT MODAL
======================================== */
.project-modal-overlay {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(0, 0, 0, 0.9);
    backdrop-filter: blur(10px);
    z-index: 10000;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 20px;
    opacity: 0;
    visibility: hidden;
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
}

.project-modal-overlay.active {
    opacity: 1;
    visibility: visible;
}

.project-modal {
    background: linear-gradient(145deg, #12121a 0%, #0a0a0f 100%);
    border-radius: 24px;
    max-width: 1200px;
    width: 100%;
    max-height: 90vh;
    overflow: hidden;
    position: relative;
    border: 1px solid rgba(255, 255, 255, 0.1);
    box-shadow: 0 50px 100px rgba(0, 0, 0, 0.5);
    transform: scale(0.9) translateY(30px);
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
}

.project-modal-overlay.active .project-modal {
    transform: scale(1) translateY(0);
}

.project-modal-close {
    position: absolute;
    top: 20px;
    right: 20px;
    width: 44px;
    height: 44px;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.1);
    border: 1px solid rgba(255, 255, 255, 0.1);
    color: var(--text-white);
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.3s ease;
    z-index: 10;
}

.project-modal-close:hover {
    background: rgba(255, 255, 255, 0.2);
    transform: rotate(90deg);
}

.project-modal-content {
    display: grid;
    grid-template-columns: 1fr 1fr;
    height: 85vh;
    max-height: 85vh;
}

/* Gallery */
.project-modal-gallery {
    background: rgba(0, 0, 0, 0.3);
    padding: 30px;
    display: flex;
    flex-direction: column;
    gap: 15px;
    overflow-y: auto;
}

.project-gallery-main {
    flex: 1;
    border-radius: 16px;
    overflow: hidden;
    background: rgba(0, 0, 0, 0.5);
    display: flex;
    align-items: center;
    justify-content: center;
    min-height: 300px;
    cursor: pointer;
    position: relative;
}

.project-gallery-main::after {
    content: '';
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 60px;
    height: 60px;
    background: rgba(255, 255, 255, 0.1);
    border-radius: 50%;
    opacity: 0;
    transition: opacity 0.3s;
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='24' height='24' viewBox='0 0 24 24' fill='none' stroke='white' stroke-width='2'%3E%3Cpolyline points='15 3 21 3 21 9'/%3E%3Cpolyline points='9 21 3 21 3 15'/%3E%3Cline x1='21' y1='3' x2='14' y2='10'/%3E%3Cline x1='3' y1='21' x2='10' y2='14'/%3E%3C/svg%3E");
    background-repeat: no-repeat;
    background-position: center;
    pointer-events: none;
}

.project-gallery-main:hover::after {
    opacity: 1;
}

.project-gallery-main img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.5s ease;
}

.project-gallery-main:hover img {
    transform: scale(1.02);
}

.project-gallery-thumbs {
    display: flex;
    gap: 10px;
    overflow-x: auto;
    padding-bottom: 5px;
}

.project-gallery-thumbs::-webkit-scrollbar {
    height: 4px;
}

.project-gallery-thumbs::-webkit-scrollbar-thumb {
    background: var(--accent-purple);
    border-radius: 4px;
}

.project-thumb {
    width: 80px;
    height: 60px;
    border-radius: 8px;
    overflow: hidden;
    cursor: pointer;
    border: 2px solid transparent;
    transition: all 0.3s ease;
    flex-shrink: 0;
    opacity: 0.6;
}

.project-thumb:hover,
.project-thumb.active {
    opacity: 1;
    border-color: var(--accent-purple);
}

.project-thumb img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

/* Info Side */
.project-modal-info {
    padding: 40px;
    padding-right: 30px;
    overflow-y: auto;
    display: flex;
    flex-direction: column;
    gap: 24px;
    max-height: 85vh;
}

.project-modal-info::-webkit-scrollbar {
    width: 6px;
}

.project-modal-info::-webkit-scrollbar-thumb {
    background: var(--accent-purple);
    border-radius: 6px;
}

.project-modal-header {
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
    padding-bottom: 20px;
}

.project-modal-category {
    display: inline-block;
    font-size: 11px;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 2px;
    color: var(--accent-purple);
    background: rgba(139, 92, 246, 0.15);
    padding: 6px 14px;
    border-radius: 20px;
    margin-bottom: 12px;
}

.project-modal-title {
    font-size: 2rem;
    font-weight: 700;
    color: var(--text-white);
    margin-bottom: 16px;
    line-height: 1.2;
}

.project-modal-meta {
    display: flex;
    flex-wrap: wrap;
    gap: 20px;
}

.project-meta-item {
    display: flex;
    align-items: center;
    gap: 8px;
    font-size: 13px;
    color: var(--text-gray);
}

.project-meta-item svg {
    color: var(--accent-purple);
    opacity: 0.8;
}

/* Sections */
.project-modal-section {
    padding-bottom: 20px;
    border-bottom: 1px solid rgba(255, 255, 255, 0.05);
}

.project-section-title {
    display: flex;
    align-items: center;
    gap: 10px;
    font-size: 14px;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 1px;
    color: var(--text-white);
    margin-bottom: 12px;
}

.project-section-title svg {
    color: var(--accent-purple);
}

.project-section-text {
    font-size: 14px;
    line-height: 1.7;
    color: var(--text-light-gray);
}

/* Results */
.project-modal-results {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 15px;
    padding: 20px 0;
}

.project-result-card {
    background: linear-gradient(135deg, rgba(139, 92, 246, 0.1) 0%, rgba(236, 72, 153, 0.1) 100%);
    border: 1px solid rgba(139, 92, 246, 0.2);
    border-radius: 16px;
    padding: 20px;
    text-align: center;
    transition: all 0.3s ease;
}

.project-result-card:hover {
    transform: translateY(-3px);
    border-color: rgba(139, 92, 246, 0.4);
    box-shadow: 0 10px 30px rgba(139, 92, 246, 0.2);
}

.project-result-value {
    font-size: 1.8rem;
    font-weight: 700;
    background: var(--gradient-primary);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    margin-bottom: 6px;
}

.project-result-label {
    font-size: 12px;
    color: var(--text-gray);
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

/* Technologies */
.project-technologies {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
}

.project-tech-tag {
    font-size: 12px;
    font-weight: 500;
    color: var(--text-white);
    background: rgba(255, 255, 255, 0.1);
    border: 1px solid rgba(255, 255, 255, 0.1);
    padding: 8px 16px;
    border-radius: 20px;
    transition: all 0.3s ease;
}

.project-tech-tag:hover {
    background: rgba(139, 92, 246, 0.2);
    border-color: rgba(139, 92, 246, 0.3);
}

/* CTA */
.project-modal-cta {
    margin-top: auto;
    padding-top: 20px;
}

.project-modal-cta .btn-opticore {
    width: 100%;
    justify-content: center;
}

/* Theme variations */
.project-modal.emerald-theme .project-modal-category {
    color: #10b981;
    background: rgba(16, 185, 129, 0.15);
}

.project-modal.emerald-theme .project-section-title svg,
.project-modal.emerald-theme .project-meta-item svg {
    color: #10b981;
}

.project-modal.emerald-theme .project-result-card {
    background: linear-gradient(135deg, rgba(16, 185, 129, 0.1) 0%, rgba(6, 182, 212, 0.1) 100%);
    border-color: rgba(16, 185, 129, 0.2);
}

.project-modal.emerald-theme .project-result-card:hover {
    border-color: rgba(16, 185, 129, 0.4);
    box-shadow: 0 10px 30px rgba(16, 185, 129, 0.2);
}

.project-modal.emerald-theme .project-result-value {
    background: linear-gradient(135deg, #10b981, #06b6d4);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.project-modal.aicreatix-theme .project-modal-category {
    color: #a855f7;
    background: rgba(168, 85, 247, 0.15);
}

.project-modal.aicreatix-theme .project-section-title svg,
.project-modal.aicreatix-theme .project-meta-item svg {
    color: #a855f7;
}

.project-modal.aicreatix-theme .project-result-card {
    background: linear-gradient(135deg, rgba(168, 85, 247, 0.1) 0%, rgba(236, 72, 153, 0.1) 100%);
    border-color: rgba(168, 85, 247, 0.2);
}

.project-modal.aicreatix-theme .project-result-value {
    background: linear-gradient(135deg, #a855f7, #ec4899);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.project-modal.orange-theme .project-modal-category {
    color: #f59e0b;
    background: rgba(245, 158, 11, 0.15);
}

.project-modal.orange-theme .project-section-title svg,
.project-modal.orange-theme .project-meta-item svg {
    color: #f59e0b;
}

.project-modal.orange-theme .project-result-card {
    background: linear-gradient(135deg, rgba(245, 158, 11, 0.1) 0%, rgba(239, 68, 68, 0.1) 100%);
    border-color: rgba(245, 158, 11, 0.2);
}

.project-modal.orange-theme .project-result-value {
    background: linear-gradient(135deg, #f59e0b, #ef4444);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

/* Purple theme (alias for aicreatix) */
.project-modal.purple-theme .project-modal-category {
    color: #a855f7;
    background: rgba(168, 85, 247, 0.15);
}

.project-modal.purple-theme .project-section-title svg,
.project-modal.purple-theme .project-meta-item svg {
    color: #a855f7;
}

.project-modal.purple-theme .project-result-card {
    background: linear-gradient(135deg, rgba(168, 85, 247, 0.1) 0%, rgba(236, 72, 153, 0.1) 100%);
    border-color: rgba(168, 85, 247, 0.2);
}

.project-modal.purple-theme .project-result-value {
    background: linear-gradient(135deg, #a855f7, #ec4899);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

/* Blue theme */
.project-modal.blue-theme .project-modal-category {
    color: #3b82f6;
    background: rgba(59, 130, 246, 0.15);
}

.project-modal.blue-theme .project-section-title svg,
.project-modal.blue-theme .project-meta-item svg {
    color: #3b82f6;
}

.project-modal.blue-theme .project-result-card {
    background: linear-gradient(135deg, rgba(59, 130, 246, 0.1) 0%, rgba(99, 102, 241, 0.1) 100%);
    border-color: rgba(59, 130, 246, 0.2);
}

.project-modal.blue-theme .project-result-value {
    background: linear-gradient(135deg, #3b82f6, #6366f1);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

/* Cyan theme */
.project-modal.cyan-theme .project-modal-category {
    color: #06b6d4;
    background: rgba(6, 182, 212, 0.15);
}

.project-modal.cyan-theme .project-section-title svg,
.project-modal.cyan-theme .project-meta-item svg {
    color: #06b6d4;
}

.project-modal.cyan-theme .project-result-card {
    background: linear-gradient(135deg, rgba(6, 182, 212, 0.1) 0%, rgba(34, 211, 238, 0.1) 100%);
    border-color: rgba(6, 182, 212, 0.2);
}

.project-modal.cyan-theme .project-result-value {
    background: linear-gradient(135deg, #06b6d4, #22d3ee);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

/* Pink theme */
.project-modal.pink-theme .project-modal-category {
    color: #ec4899;
    background: rgba(236, 72, 153, 0.15);
}

.project-modal.pink-theme .project-section-title svg,
.project-modal.pink-theme .project-meta-item svg {
    color: #ec4899;
}

.project-modal.pink-theme .project-result-card {
    background: linear-gradient(135deg, rgba(236, 72, 153, 0.1) 0%, rgba(244, 114, 182, 0.1) 100%);
    border-color: rgba(236, 72, 153, 0.2);
}

.project-modal.pink-theme .project-result-value {
    background: linear-gradient(135deg, #ec4899, #f472b6);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

/* Red theme */
.project-modal.red-theme .project-modal-category {
    color: #ef4444;
    background: rgba(239, 68, 68, 0.15);
}

.project-modal.red-theme .project-section-title svg,
.project-modal.red-theme .project-meta-item svg {
    color: #ef4444;
}

.project-modal.red-theme .project-result-card {
    background: linear-gradient(135deg, rgba(239, 68, 68, 0.1) 0%, rgba(248, 113, 113, 0.1) 100%);
    border-color: rgba(239, 68, 68, 0.2);
}

.project-modal.red-theme .project-result-value {
    background: linear-gradient(135deg, #ef4444, #f87171);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

/* Yellow theme */
.project-modal.yellow-theme .project-modal-category {
    color: #eab308;
    background: rgba(234, 179, 8, 0.15);
}

.project-modal.yellow-theme .project-section-title svg,
.project-modal.yellow-theme .project-meta-item svg {
    color: #eab308;
}

.project-modal.yellow-theme .project-result-card {
    background: linear-gradient(135deg, rgba(234, 179, 8, 0.1) 0%, rgba(250, 204, 21, 0.1) 100%);
    border-color: rgba(234, 179, 8, 0.2);
}

.project-modal.yellow-theme .project-result-value {
    background: linear-gradient(135deg, #eab308, #facc15);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

/* Teal theme */
.project-modal.teal-theme .project-modal-category {
    color: #14b8a6;
    background: rgba(20, 184, 166, 0.15);
}

.project-modal.teal-theme .project-section-title svg,
.project-modal.teal-theme .project-meta-item svg {
    color: #14b8a6;
}

.project-modal.teal-theme .project-result-card {
    background: linear-gradient(135deg, rgba(20, 184, 166, 0.1) 0%, rgba(45, 212, 191, 0.1) 100%);
    border-color: rgba(20, 184, 166, 0.2);
}

.project-modal.teal-theme .project-result-value {
    background: linear-gradient(135deg, #14b8a6, #2dd4bf);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

/* Responsive */
@media (max-width: 992px) {
    .project-modal-content {
        grid-template-columns: 1fr;
        height: auto;
        max-height: 90vh;
        overflow-y: auto;
    }

    .project-modal-gallery {
        max-height: 300px;
        min-height: 250px;
        overflow: hidden;
    }

    .project-modal-info {
        padding: 30px;
        max-height: none;
        overflow-y: visible;
    }

    .project-modal-title {
        font-size: 1.5rem;
    }

    .project-modal-results {
        grid-template-columns: repeat(3, 1fr);
    }
}

@media (max-width: 768px) {
    .project-modal {
        max-height: 95vh;
        border-radius: 16px;
    }

    .project-modal-content {
        max-height: 95vh;
    }

    .project-modal-gallery {
        padding: 20px;
        min-height: 200px;
        max-height: 250px;
    }

    .project-modal-info {
        padding: 20px;
        gap: 16px;
    }

    .project-modal-title {
        font-size: 1.3rem;
    }

    .project-modal-results {
        grid-template-columns: 1fr;
        gap: 10px;
    }

    .project-result-card {
        padding: 15px;
        display: flex;
        align-items: center;
        justify-content: space-between;
        text-align: left;
    }

    .project-result-value {
        font-size: 1.4rem;
        margin-bottom: 0;
    }

    .project-modal-meta {
        gap: 12px;
    }

    .project-modal-close {
        width: 36px;
        height: 36px;
        top: 15px;
        right: 15px;
    }
}

/* ==========================================
   Legal Modals (Privacy Policy & Terms)
   ========================================== */

.legal-modal {
    position: fixed;
    inset: 0;
    z-index: 10000;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 20px;
    background: rgba(0, 0, 0, 0.8);
    backdrop-filter: blur(8px);
    opacity: 0;
    visibility: hidden;
    transition: all 0.3s ease;
}

.legal-modal.active {
    opacity: 1;
    visibility: visible;
}

.legal-modal-content {
    position: relative;
    width: 100%;
    max-width: 700px;
    max-height: 85vh;
    background: var(--bg-card);
    border: 1px solid rgba(255, 255, 255, 0.08);
    border-radius: 20px;
    overflow: hidden;
    transform: translateY(30px) scale(0.95);
    transition: transform 0.3s ease;
}

.legal-modal.active .legal-modal-content {
    transform: translateY(0) scale(1);
}

.legal-modal-content h2 {
    position: sticky;
    top: 0;
    padding: 30px 60px 20px 30px;
    margin: 0;
    font-size: 1.5rem;
    font-weight: 600;
    color: var(--text-white);
    background: var(--bg-card);
    border-bottom: 1px solid rgba(255, 255, 255, 0.06);
    z-index: 1;
}

.legal-modal-close {
    position: absolute;
    top: 20px;
    right: 20px;
    width: 44px;
    height: 44px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 12px;
    color: var(--text-muted);
    cursor: pointer;
    transition: all 0.3s ease;
    z-index: 2;
}

.legal-modal-close:hover {
    background: rgba(239, 68, 68, 0.15);
    border-color: rgba(239, 68, 68, 0.3);
    color: #ef4444;
    transform: rotate(90deg);
}

.legal-modal-body {
    padding: 25px 30px 30px;
    max-height: calc(85vh - 90px);
    overflow-y: auto;
}

.legal-modal-body::-webkit-scrollbar {
    width: 6px;
}

.legal-modal-body::-webkit-scrollbar-track {
    background: rgba(255, 255, 255, 0.02);
}

.legal-modal-body::-webkit-scrollbar-thumb {
    background: rgba(139, 92, 246, 0.3);
    border-radius: 3px;
}

.legal-modal-body::-webkit-scrollbar-thumb:hover {
    background: rgba(139, 92, 246, 0.5);
}

.legal-date {
    display: inline-block;
    padding: 6px 14px;
    margin-bottom: 25px;
    font-size: 13px;
    color: var(--text-muted);
    background: rgba(139, 92, 246, 0.1);
    border: 1px solid rgba(139, 92, 246, 0.2);
    border-radius: 20px;
}

.legal-modal-body h3 {
    margin: 25px 0 12px;
    font-size: 1.1rem;
    font-weight: 600;
    color: var(--text-white);
}

.legal-modal-body h3:first-of-type {
    margin-top: 0;
}

.legal-modal-body p {
    margin: 0 0 12px;
    font-size: 17px;
    line-height: 1.7;
    color: var(--text-muted);
}

.legal-modal-body ul {
    margin: 0 0 15px;
    padding-left: 0;
    list-style: none;
}

.legal-modal-body li {
    position: relative;
    padding-left: 24px;
    margin-bottom: 8px;
    font-size: 15px;
    line-height: 1.6;
    color: var(--text-muted);
}

.legal-modal-body li::before {
    content: '';
    position: absolute;
    left: 0;
    top: 10px;
    width: 8px;
    height: 8px;
    background: linear-gradient(135deg, var(--accent-purple), var(--accent-pink));
    border-radius: 50%;
}

/* Mobile */
@media (max-width: 600px) {
    .legal-modal {
        padding: 10px;
    }

    .legal-modal-content {
        max-height: 90vh;
        border-radius: 16px;
    }

    .legal-modal-content h2 {
        font-size: 1.25rem;
        padding: 20px 50px 15px 20px;
    }

    .legal-modal-body {
        padding: 20px;
        max-height: calc(90vh - 70px);
    }

    .legal-modal-close {
        top: 12px;
        right: 12px;
        width: 38px;
        height: 38px;
    }

    .legal-modal-body h3 {
        font-size: 1rem;
    }

    .legal-modal-body p,
    .legal-modal-body li {
        font-size: 16px;
    }
}

/* ==============================================
   NEURAL BRAIN - AI Solutions Section
   ============================================== */

.ai-solutions {
    position: relative;
    z-index: 2;
    padding: 80px 0 40px;
    background:
        radial-gradient(ellipse at 20% 30%, rgba(139, 92, 246, 0.07) 0%, transparent 50%),
        radial-gradient(ellipse at 80% 60%, rgba(59, 130, 246, 0.05) 0%, transparent 50%),
        radial-gradient(ellipse at 50% 80%, rgba(236, 72, 153, 0.04) 0%, transparent 40%),
        #0a0a0f;
    overflow: visible;
}

.neural-header {
    text-align: center;
    margin-bottom: 24px;
}

.neural-label {
    font-family: 'Orbitron', sans-serif;
    font-size: 12px;
    font-weight: 500;
    letter-spacing: 4px;
    color: var(--accent-purple);
    text-transform: uppercase;
    margin-bottom: 16px;
}

.neural-title {
    font-family: 'Orbitron', sans-serif;
    font-size: clamp(36px, 5.5vw, 56px);
    font-weight: 800;
    letter-spacing: 2px;
    text-transform: uppercase;
    background: linear-gradient(135deg, #ffffff 0%, #a78bfa 50%, #f472b6 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    margin-bottom: 16px;
}

.neural-subtitle {
    font-size: 18px;
    color: var(--text-gray);
    max-width: 550px;
    margin: 0 auto;
    line-height: 1.7;
}

/* ---- Platform Description ---- */
.platform-desc {
    max-width: 720px;
    margin: 28px auto 36px;
    display: flex;
    flex-direction: column;
    gap: 14px;
}
.platform-desc-item {
    font-size: 16px;
    color: var(--text-light-gray);
    line-height: 1.8;
    padding: 16px 22px;
    background: rgba(139, 92, 246, 0.04);
    border: 1px solid rgba(139, 92, 246, 0.1);
    border-radius: 14px;
}
.platform-desc-item strong {
    color: #fff;
    font-weight: 600;
}
.platform-desc-accent {
    color: var(--accent-purple);
    font-weight: 600;
}
.platform-desc-footer {
    margin-top: 6px;
    padding: 18px 22px;
    background: rgba(139, 92, 246, 0.08);
    border: 1px solid rgba(139, 92, 246, 0.15);
    border-radius: 14px;
    font-size: 16px;
    color: #c4b5fd;
    font-weight: 500;
    line-height: 1.7;
    text-align: center;
}

/* ---- Cover Flow Cards ---- */
.cf-wrapper {
    position: relative;
    max-width: 1200px;
    margin: 0 auto 16px;
    perspective: 1200px;
    height: 520px;
    overflow: visible;
    -webkit-user-select: none;
    user-select: none;
}

.cf-track {
    position: relative;
    width: 100%;
    height: 100%;
    transform-style: preserve-3d;
}

.cf-card {
    position: absolute;
    width: 408px;
    top: 50%;
    left: 50%;
    padding: 50px 34px;
    background: rgba(15, 12, 30, 0.85);
    border: 1px solid rgba(139, 92, 246, 0.2);
    border-radius: 20px;
    cursor: pointer;
    transition: transform 0.3s ease-out, opacity 0.3s ease-out;
    transform-origin: center center;
    overflow: hidden;
    will-change: transform, opacity;
    -webkit-backface-visibility: hidden;
    backface-visibility: hidden;
}

.cf-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 2px;
    background: linear-gradient(90deg, transparent, var(--accent-purple), var(--accent-pink), transparent);
    opacity: 0;
    transition: opacity 0.4s;
}

.cf-card.cf-center {
    z-index: 5;
    border-color: rgba(139, 92, 246, 0.35);
    box-shadow: 0 20px 60px rgba(139, 92, 246, 0.15), 0 0 0 1px rgba(139, 92, 246, 0.05);
}

.cf-card.cf-center::before {
    opacity: 1;
}

.cf-card.cf-center:hover {
    border-color: rgba(139, 92, 246, 0.5);
    box-shadow: 0 20px 60px rgba(139, 92, 246, 0.25), 0 0 0 1px rgba(139, 92, 246, 0.1);
    transform: translate(-50%, -50%) scale(1.03) !important;
}

/* Card icon */
.cf-card-icon {
    width: 72px;
    height: 72px;
    border-radius: 18px;
    background: linear-gradient(135deg, rgba(139, 92, 246, 0.15), rgba(236, 72, 153, 0.08));
    border: 1px solid rgba(139, 92, 246, 0.15);
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 20px;
    transition: all 0.3s;
}

.cf-card-icon svg {
    width: 32px;
    height: 32px;
    stroke: var(--accent-purple);
}

.cf-card.cf-center .cf-card-icon {
    background: linear-gradient(135deg, rgba(139, 92, 246, 0.2), rgba(236, 72, 153, 0.12));
    border-color: rgba(139, 92, 246, 0.25);
    box-shadow: 0 4px 20px rgba(139, 92, 246, 0.15);
}

/* Card text */
.cf-card-title {
    font-family: 'Rubik', 'Space Grotesk', sans-serif;
    font-size: 22px;
    font-weight: 600;
    color: #e2dff6;
    margin-bottom: 8px;
}

.cf-card-short {
    font-size: 17px;
    color: var(--text-gray);
    line-height: 1.6;
}

/* Result on card face */
.cf-card-result-row {
    display: flex;
    align-items: center;
    gap: 12px;
    margin-top: 16px;
}
.cf-card-result-icon {
    width: 36px;
    height: 36px;
    background: rgba(139, 92, 246, 0.12);
    border: 1px solid rgba(139, 92, 246, 0.15);
    border-radius: 10px;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
}
.cf-card-result-icon svg {
    width: 18px;
    height: 18px;
    stroke: var(--accent-purple);
}
.cf-card-result {
    font-size: 16px;
    font-weight: 600;
    color: #c4b5fd;
    line-height: 1.4;
}
.cf-card-result-plus {
    margin-top: 6px;
    padding-left: 48px;
    font-size: 14px;
    color: #a78bfa;
    line-height: 1.5;
}
.cf-card-result-plus span {
    display: block;
}
.cf-card-result-plus span::before {
    content: '+ ';
    color: var(--accent-purple);
    font-weight: 600;
}

/* Expandable detail */
.cf-card-detail {
    max-height: 0;
    overflow: hidden;
    opacity: 0;
    transition: max-height 0.4s ease, opacity 0.3s ease, margin 0.3s ease;
    margin-top: 0;
}

.cf-card.expanded .cf-card-detail {
    max-height: 500px;
    opacity: 1;
    margin-top: 14px;
}

.cf-card-detail p {
    font-size: 15px;
    line-height: 1.7;
    color: #a5a3b8;
    margin-bottom: 16px;
}

.cf-card-cta {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 10px 20px;
    border-radius: 12px;
    background: linear-gradient(135deg, var(--accent-purple), var(--accent-pink));
    color: #fff;
    font-family: 'Rubik', sans-serif;
    font-size: 15px;
    font-weight: 500;
    text-decoration: none;
    transition: transform 0.2s, box-shadow 0.2s;
}

.cf-card-cta:hover {
    transform: scale(1.05);
    box-shadow: 0 6px 20px rgba(139, 92, 246, 0.4);
}

.cf-card-cta svg {
    stroke: #fff;
}

/* Navigation — side arrows */
.cf-prev, .cf-next {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    width: 48px;
    height: 48px;
    border-radius: 50%;
    border: 1px solid rgba(139, 92, 246, 0.3);
    background: rgba(15, 12, 30, 0.7);
    backdrop-filter: blur(8px);
    color: #c4b5fd;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.25s;
    z-index: 20;
}

.cf-prev { left: 8px; }
.cf-next { right: 8px; }

.cf-prev:hover, .cf-next:hover {
    background: rgba(139, 92, 246, 0.2);
    border-color: rgba(139, 92, 246, 0.5);
    box-shadow: 0 0 16px rgba(139, 92, 246, 0.25);
}

.cf-prev svg, .cf-next svg {
    stroke: #c4b5fd;
}

/* Dots — below cards */
.cf-dots {
    display: flex;
    gap: 8px;
    justify-content: center;
    margin-top: 12px;
}

.cf-dots span {
    width: 8px;
    height: 8px;
    border-radius: 50%;
    background: rgba(139, 92, 246, 0.2);
    cursor: pointer;
    transition: all 0.3s;
}

.cf-dots span.active {
    background: var(--accent-purple);
    box-shadow: 0 0 10px rgba(139, 92, 246, 0.5);
    transform: scale(1.2);
}

/* Overlay for expanded card */
.cf-overlay {
    display: none;
}

@media (max-width: 768px) {
    .cf-wrapper.cf-expanded-active {
        perspective: none;
    }

    .ai-solutions:has(.cf-expanded-active) {
        z-index: 10002;
    }

    .cf-overlay {
        display: block;
        position: fixed;
        inset: 0;
        background: rgba(0, 0, 0, 0.5);
        z-index: 10000;
        opacity: 0;
        pointer-events: none;
        transition: opacity 0.3s;
    }
    .cf-overlay.visible {
        opacity: 1;
        pointer-events: auto;
    }
}

/* ---- Cover Flow Mobile ---- */
@media (max-width: 768px) {
    .ai-solutions {
        padding: 40px 0 24px;
    }

    .neural-header {
        margin-bottom: 12px;
    }

    .neural-label {
        font-size: 10px;
        letter-spacing: 3px;
        margin-bottom: 8px;
    }

    .neural-title {
        margin-bottom: 8px;
    }

    .neural-subtitle {
        font-size: 15px;
        line-height: 1.5;
    }

    .platform-desc {
        margin: 16px auto 20px;
        gap: 10px;
        padding: 0 4px;
    }
    .platform-desc-item {
        font-size: 14px;
        padding: 12px 16px;
        line-height: 1.6;
        border-radius: 12px;
    }
    .platform-desc-footer {
        margin-top: 4px;
        padding: 14px 16px;
        font-size: 14px;
        border-radius: 12px;
        line-height: 1.6;
    }

    .cf-wrapper {
        height: 280px;
        margin-bottom: 8px;
    }

    .cf-card {
        width: 240px;
        padding: 20px 16px;
    }

    .cf-card-icon {
        width: 40px;
        height: 40px;
        border-radius: 12px;
        margin-bottom: 10px;
    }

    .cf-card-icon svg {
        width: 18px;
        height: 18px;
    }

    .cf-card-title {
        font-size: 15px;
        margin-bottom: 4px;
    }

    .cf-card-short {
        font-size: 14px;
    }

    .cf-card-result-row {
        margin-top: 10px;
        gap: 8px;
    }
    .cf-card-result-icon {
        width: 28px;
        height: 28px;
        border-radius: 8px;
    }
    .cf-card-result-icon svg {
        width: 14px;
        height: 14px;
    }
    .cf-card-result {
        font-size: 13px;
        font-weight: 600;
    }
    .cf-card-result-plus {
        padding-left: 36px;
        font-size: 12px;
    }

    .cf-card.expanded {
        z-index: 10001 !important;
        position: fixed;
        top: 50%;
        left: 50%;
        transform: translate(-50%, -50%) !important;
        width: calc(100vw - 32px);
        max-width: 400px;
        max-height: 70vh;
        max-height: 70dvh;
        overflow-y: auto;
        opacity: 1 !important;
        background: rgb(35, 30, 60);
        border: 1px solid rgba(139, 92, 246, 0.6);
        box-shadow: 0 20px 60px rgba(0, 0, 0, 0.5), 0 0 50px rgba(139, 92, 246, 0.3);
        padding-bottom: 24px;
    }

    .cf-card.expanded .cf-card-title {
        color: #fff;
    }

    .cf-card.expanded .cf-card-short {
        color: #c4b5fd;
    }

    .cf-card.expanded .cf-card-detail p {
        color: #d0cde4;
    }

    .cf-card.expanded .cf-card-detail {
        max-height: none;
    }

    .cf-card-detail p {
        font-size: 14px;
        line-height: 1.6;
    }

    .cf-dots {
        margin-top: 4px;
    }

    .cf-prev, .cf-next {
        display: none;
    }
}

@media (max-width: 400px) {
    .ai-solutions {
        padding: 32px 0 16px;
    }

    .cf-card {
        width: 210px;
        padding: 16px 14px;
    }

    .cf-wrapper {
        height: 260px;
    }
}

