/* ===== RESET & BASE STYLES ===== */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

*::before,
*::after {
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
    font-size: 16px;
}

body {
    font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
    background: #000000;
    color: #ffffff;
    line-height: 1.6;
    overflow-x: hidden;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
    cursor: url('data:image/svg+xml;utf8,<svg xmlns="http://www.w3.org/2000/svg" width="24" height="24" viewBox="0 0 24 24"><circle cx="12" cy="12" r="8" fill="%2364d4ff" opacity="0.8"/><circle cx="12" cy="12" r="2" fill="%2364d4ff"/></svg>') 12 12, auto;
}

.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 40px;
}

/* ===== CUSTOM CURSOR ===== */
.cursor-follower {
    display: none !important;
}

/* ===== PARTICLES BACKGROUND ===== */
#particles-js {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: -1;
}

/* ===== TYPOGRAPHY ===== */
.gradient-text {
    background: linear-gradient(135deg, #64d4ff 0%, #9b5de5 50%, #f15bb5 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    background-size: 200% 200%;
    animation: gradientShift 4s ease-in-out infinite;
}

@keyframes gradientShift {
    0%, 100% { background-position: 0% 50%; }
    50% { background-position: 100% 50%; }
}

/* ===== NAVIGATION ===== */
.navbar {
    position: fixed;
    top: 20px;
    left: 50%;
    transform: translateX(-50%);
    z-index: 1000;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    background: rgba(0, 0, 0, 0.2);
    backdrop-filter: blur(20px) saturate(180%);
    border-radius: 50px;
    box-shadow: 
        0 8px 32px rgba(0, 0, 0, 0.15),
        inset 0 1px 0 rgba(255, 255, 255, 0.05);
    width: calc(100% - 80px);
    max-width: 1280px;
}

.navbar::before {
    content: '';
    position: absolute;
    inset: 0;
    padding: 1px;
    background: linear-gradient(135deg, #64d4ff 0%, #9b5de5 50%, #f15bb5 100%);
    background-size: 200% 200%;
    border-radius: 50px;
    mask: linear-gradient(#fff 0 0) content-box, linear-gradient(#fff 0 0);
    mask-composite: xor;
    -webkit-mask: linear-gradient(#fff 0 0) content-box, linear-gradient(#fff 0 0);
    -webkit-mask-composite: xor;
    animation: gradientShift 4s ease-in-out infinite;
    pointer-events: none;
}

.nav-container {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 16px 40px;
    white-space: nowrap;
    min-width: fit-content;
    width: 100%;
    max-width: 1200px;
    margin: 0 auto;
    box-sizing: border-box;
    position: relative;
}

.logo {
    font-family: 'JetBrains Mono', monospace;
    font-size: 18px;
    font-weight: 700;
}

.logo-bracket {
    color: #64d4ff;
}

.logo-text {
    color: #ffffff;
}

.logo-dot {
    color: #f15bb5;
}

.nav-links {
    display: flex;
    list-style: none;
    gap: 24px;
    white-space: nowrap;
    position: absolute;
    left: 50%;
    transform: translateX(-50%);
}

.nav-links a {
    position: relative;
    color: rgba(255, 255, 255, 0.8);
    text-decoration: none;
    font-weight: 500;
    font-size: 16px;
    transition: all 0.3s ease;
    padding: 8px 0;
    white-space: nowrap;
}

.nav-links a:hover {
    color: #64d4ff;
}

.nav-links a::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 0;
    height: 2px;
    background: linear-gradient(90deg, #64d4ff, #9b5de5);
    transition: width 0.3s ease;
}

.nav-links a:hover::after {
    width: 100%;
}

.nav-right {
    display: flex;
    align-items: center;
    gap: 16px;
}

.cta-button {
    position: relative;
    background: linear-gradient(135deg, #64d4ff, #9b5de5);
    border: none;
    padding: 12px 24px;
    border-radius: 25px;
    color: white;
    font-weight: 600;
    font-size: 14px;
    cursor: pointer;
    overflow: hidden;
    transition: all 0.3s ease;
    display: flex;
    align-items: center;
    gap: 8px;
}

.cta-button:hover {
    transform: translateY(-2px);
    box-shadow: 0 12px 40px rgba(100, 212, 255, 0.4);
}

.button-bg {
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.2), transparent);
    transition: left 0.5s ease;
}

.cta-button:hover .button-bg {
    left: 100%;
}

/* Show mobile CTA button only on mobile */
.mobile-cta {
    display: none; /* Hide by default on desktop */
}



.game-button {
    width: 48px;
    height: 48px;
    border-radius: 50%;
    background: transparent;
    border: none;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.3s ease;
    position: relative;
    overflow: hidden;
}

.game-button:hover {
    transform: translateY(-2px) scale(1.1);
}

.game-button:active {
    transform: translateY(0) scale(0.95);
}

.rocket-icon {
    width: 32px;
    height: 32px;
    animation: rocketFloat 2s ease-in-out infinite;
}

@keyframes rocketFloat {
    0%, 100% { transform: translateY(0px) rotate(0deg); }
    50% { transform: translateY(-3px) rotate(-2deg); }
}

.mobile-nav-buttons {
    display: none;
    align-items: center;
    gap: 12px;
}

.mobile-game-button {
    width: 40px;
    height: 40px;
    background: transparent;
    border: none;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.3s ease;
}

.mobile-game-button:hover {
    transform: scale(1.1);
}

.mobile-rocket-icon {
    width: 28px;
    height: 28px;
    animation: rocketFloat 2s ease-in-out infinite;
}

.mobile-menu-toggle {
    display: flex;
    flex-direction: column;
    gap: 4px;
    cursor: pointer;
}

.mobile-menu-toggle span {
    width: 20px;
    height: 2px;
    background: #64d4ff;
    border-radius: 1px;
    transition: all 0.3s ease;
}

/* ===== HERO SECTION ===== */
.hero {
    min-height: 100vh;
    position: relative;
    padding: 120px 0 80px;
    background: radial-gradient(ellipse at center, rgba(100, 212, 255, 0.05) 0%, transparent 70%);
    overflow: hidden;
}

.hero-container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 40px;
    display: grid;
    grid-template-columns: 3fr 2fr;
    align-items: center;
    gap: 80px;
    min-height: calc(100vh - 200px);
}

.hero-grid {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-image: 
        linear-gradient(rgba(100, 212, 255, 0.03) 1px, transparent 1px),
        linear-gradient(90deg, rgba(100, 212, 255, 0.03) 1px, transparent 1px);
    background-size: 50px 50px;
    animation: gridMove 20s linear infinite;
}

@keyframes gridMove {
    0% { transform: translate(0, 0); }
    100% { transform: translate(50px, 50px); }
}

.hero-content {
    z-index: 2;
    max-width: 600px;
    padding-right: 20px;
}

.hero-badge {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    background: rgba(100, 212, 255, 0.1);
    border: 1px solid rgba(100, 212, 255, 0.3);
    padding: 8px 16px;
    border-radius: 20px;
    font-size: 14px;
    font-weight: 500;
    margin-bottom: 32px;
    animation: fadeInUp 0.8s ease-out;
}

.badge-dot {
    width: 8px;
    height: 8px;
    background: #64d4ff;
    border-radius: 50%;
    animation: pulse 2s infinite;
}

@keyframes pulse {
    0%, 100% { opacity: 1; }
    50% { opacity: 0.5; }
}

.hero-title {
    font-size: clamp(2rem, 5vw, 3.2rem);
    font-weight: 800;
    line-height: 1.1;
    margin-bottom: 24px;
    letter-spacing: -0.02em;
}

.title-line {
    display: block;
    animation: fadeInUp 0.8s ease-out forwards;
    opacity: 0;
}

.title-line:nth-child(1) { animation-delay: 0.2s; }
.title-line:nth-child(2) { animation-delay: 0.4s; }
.title-line:nth-child(3) { animation-delay: 0.6s; }

.title-subtitle {
    font-size: 0.75em;
    font-weight: 500;
    opacity: 0.9;
}

.hero-subtitle {
    font-size: 1.25rem;
    color: rgba(255, 255, 255, 0.8);
    margin-bottom: 40px;
    line-height: 1.6;
    animation: fadeInUp 0.8s ease-out 0.8s both;
}

.hero-buttons {
    display: flex;
    gap: 16px;
    margin-bottom: 60px;
    animation: fadeInUp 0.8s ease-out 1s both;
}

.btn-primary,
.btn-secondary {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 16px 32px;
    border-radius: 30px;
    font-weight: 600;
    font-size: 16px;
    cursor: pointer;
    transition: all 0.3s ease;
    border: none;
    text-decoration: none;
}

.btn-primary {
    background: linear-gradient(135deg, #64d4ff, #9b5de5);
    color: white;
    box-shadow: 0 8px 30px rgba(100, 212, 255, 0.3);
}

.btn-primary:hover {
    transform: translateY(-3px);
    box-shadow: 0 20px 60px rgba(100, 212, 255, 0.4);
}

.btn-secondary {
    background: transparent;
    border: 2px solid rgba(100, 212, 255, 0.5);
    color: #64d4ff;
}

.btn-secondary:hover {
    background: rgba(100, 212, 255, 0.1);
    border-color: #64d4ff;
    transform: translateY(-3px);
}

.hero-stats {
    display: flex;
    gap: 40px;
    animation: fadeInUp 0.8s ease-out 1.2s both;
}

.stat {
    text-align: left;
}

.stat-number {
    font-size: 2rem;
    font-weight: 800;
    color: #64d4ff;
    font-family: 'JetBrains Mono', monospace;
    line-height: 1;
}

.stat-label {
    font-size: 0.875rem;
    color: rgba(255, 255, 255, 0.6);
    font-weight: 500;
    margin-top: 4px;
}

.hero-visual {
    position: relative;
    height: 450px;
    z-index: 1;
    animation: fadeInUp 0.8s ease-out 0.6s both;
    padding-left: 20px;
}

/* Enhanced floating cards - removed floating animation, arranged horizontally */
.floating-card {
    position: absolute;
    background: linear-gradient(135deg, rgba(10, 10, 30, 0.95), rgba(20, 20, 40, 0.8));
    backdrop-filter: blur(25px);
    border: 1px solid rgba(100, 212, 255, 0.15);
    border-radius: 16px;
    padding: 14px;
    box-shadow: 
        0 25px 50px rgba(0, 0, 0, 0.4),
        inset 0 1px 0 rgba(255, 255, 255, 0.1);
    transition: all 0.3s ease;
    overflow: hidden;
}

.floating-card:hover {
    transform: translateY(-8px) scale(1.02);
    border-color: rgba(100, 212, 255, 0.4);
    box-shadow: 
        0 35px 70px rgba(0, 0, 0, 0.5),
        0 0 30px rgba(100, 212, 255, 0.2);
}

/* Arrange cards vertically (one below another) - made wider */
.floating-card.card-1 {
    width: 320px;
    height: 140px;
    top: 0;
    left: 30%;
    transform: translateX(-50%);
    transition: all 1s ease;
}

.floating-card.card-2 {
    width: 320px;
    height: 140px;
    top: 160px;
    left: 40%;
    transform: translateX(-50%);
    transition: all 1s ease;
}

.floating-card.card-3 {
    width: 320px;
    height: 140px;
    top: 320px;
    left: 50%;
    transform: translateX(-50%);
    transition: all 1s ease;
}

/* Hide cards during fusion */
.floating-card.fusion-hide {
    opacity: 0;
    transform: translateX(-50%) scale(0.8);
    pointer-events: none;
}

.card-header {
    display: flex;
    align-items: center;
    gap: 8px;
    font-size: 14px;
    font-weight: 600;
    color: #64d4ff;
    margin-bottom: 12px;
    font-family: 'JetBrains Mono', monospace;
    opacity: 0;
    animation: fadeInHeader 0.8s ease-out 0.5s forwards;
}

@keyframes fadeInHeader {
    to { opacity: 1; }
}

.card-header::before {
    content: '';
    width: 8px;
    height: 8px;
    background: #64d4ff;
    border-radius: 50%;
    box-shadow: 0 0 8px rgba(100, 212, 255, 0.6);
    animation: pulse 2s infinite;
}

@keyframes pulse {
    0%, 100% { opacity: 1; transform: scale(1); }
    50% { opacity: 0.7; transform: scale(1.1); }
}

.card-body {
    flex: 1;
    animation: hideCode 0.5s ease-out 6s forwards;
}

/* ===== EPIC CODE FUSION ANIMATION ===== */

/* Reset all cards to have unified structure */
.card-1 .card-body,
.card-2 .card-body,
.card-3 .card-body {
    display: block;
    position: relative;
    height: 100%;
    font-family: 'JetBrains Mono', monospace;
    font-size: 10px;
    line-height: 1.3;
    overflow: hidden;
}

/* Code lines that will be typed */
.code-line {
    position: absolute;
    left: 8px;
    height: 14px;
    display: flex;
    align-items: center;
    opacity: 1;
    transform: translateX(0);
    transition: none;
    white-space: nowrap;
    z-index: 2;
}

.code-line.typing {
    opacity: 1;
    transform: translateX(0);
}

.code-line.fusion-mode {
    transition: all 3s cubic-bezier(0.25, 0.46, 0.45, 0.94);
    z-index: 1;
}

/* Language-specific syntax highlighting */
/* JavaScript */
.card-1 .keyword { color: #ff79c6; }
.card-1 .string { color: #f1fa8c; }
.card-1 .function { color: #8be9fd; }
.card-1 .variable { color: #64d4ff; }

/* PHP */
.card-2 .keyword { color: #9b5de5; }
.card-2 .string { color: #a9dc76; }
.card-2 .function { color: #64d4ff; }
.card-2 .variable { color: #f15bb5; }
.card-2 .php-tag { color: #ff6188; }

/* SQL */
.card-3 .keyword { color: #f15bb5; }
.card-3 .string { color: #f1fa8c; }
.card-3 .function { color: #64d4ff; }
.card-3 .table { color: #a9dc76; }

/* Typing cursor */
.typing-cursor {
    position: absolute;
    width: 1px;
    height: 12px;
    background: #64d4ff;
    animation: cursorBlink 1s infinite;
    transition: all 0.5s ease;
    z-index: 3;
}

@keyframes cursorBlink {
    0%, 50% { opacity: 1; }
    51%, 100% { opacity: 0; }
}

/* Fusion container - clean app window structure */
.fusion-container {
    position: absolute;
    top: 53%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 550px;
    height: 450px;
    background: linear-gradient(135deg, rgba(15, 15, 35, 0.95), rgba(25, 25, 45, 0.9));
    backdrop-filter: blur(25px);
    border: 2px solid rgba(100, 212, 255, 0.3);
    border-radius: 16px;
    padding: 0;
    box-shadow: 
        0 25px 50px rgba(0, 0, 0, 0.5),
        inset 0 1px 0 rgba(255, 255, 255, 0.1);
    opacity: 0;
    transform: translate(-50%, -50%) scale(0.3);
    transition: all 2s cubic-bezier(0.25, 0.46, 0.45, 0.94);
    z-index: 10;
    overflow: hidden;
    display: grid;
    grid-template-rows: 50px 1fr 40px;
    grid-template-columns: 180px 1fr 200px;
    grid-template-areas: 
        "titlebar titlebar titlebar"
        "sidebar content panel"
        "statusbar statusbar statusbar";
}

.fusion-container.active {
    opacity: 1;
    transform: translate(-50%, -50%) scale(1);
}

/* App titlebar - like a real window */
.fusion-header {
    grid-area: titlebar;
    background: linear-gradient(135deg, #64d4ff, #9b5de5);
    display: flex;
    align-items: center;
    padding: 0 16px;
    border-radius: 14px 14px 0 0;
    position: relative;
    overflow: hidden;
}

.fusion-header::before {
    content: '';
    position: absolute;
    left: 16px;
    top: 50%;
    transform: translateY(-50%);
    width: 12px;
    height: 12px;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.9);
    box-shadow: 
        20px 0 0 rgba(255, 255, 255, 0.7),
        40px 0 0 rgba(255, 255, 255, 0.5);
    opacity: 0;
    animation: slideInFromLeft 1s ease-out 0.5s both;
}

/* App sidebar - navigation panel */
.fusion-sidebar {
    grid-area: sidebar;
    background: linear-gradient(180deg, rgba(155, 93, 229, 0.1), rgba(100, 212, 255, 0.05));
    border-right: 1px solid rgba(155, 93, 229, 0.2);
    padding: 16px 12px;
    display: flex;
    flex-direction: column;
    gap: 12px;
    animation: slideInFromLeft 1s ease-out 1s both;
}

.sidebar-item {
    height: 100px;
    background: rgba(155, 93, 229, 0.15);
    border: 1px solid rgba(155, 93, 229, 0.3);
    border-radius: 6px;
    opacity: 0;
    animation: fadeInUp 0.6s ease-out calc(1.2s + var(--delay, 0) * 0.1s) both;
}

/* App content area - main workspace */
.fusion-content {
    grid-area: content;
    background: linear-gradient(135deg, rgba(241, 91, 181, 0.05), rgba(100, 212, 255, 0.03));
    border-radius: 8px;
    padding: 16px;
    display: flex;
    flex-direction: column;
    gap: 12px;
    animation: slideInFromRight 1s ease-out 1.5s both;
    position: relative;
}

.content-block {
    height: 55px;
    background: rgba(241, 91, 181, 0.1);
    border: 1px solid rgba(241, 91, 181, 0.2);
    border-radius: 6px;
    opacity: 0;
    animation: fadeInUp 0.6s ease-out calc(1.7s + var(--delay, 0) * 0.1s) both;
}

/* App right panel */
.fusion-panel {
    grid-area: panel;
    background: linear-gradient(180deg, rgba(100, 212, 255, 0.08), rgba(155, 93, 229, 0.05));
    border-left: 1px solid rgba(100, 212, 255, 0.2);
    padding: 16px 12px;
    display: flex;
    flex-direction: column;
    gap: 12px;
    animation: slideInFromRight 1s ease-out 1.8s both;
}

.panel-item {
    height: 155px;
    background: rgba(100, 212, 255, 0.1);
    border: 1px solid rgba(100, 212, 255, 0.25);
    border-radius: 6px;
    opacity: 0;
    animation: fadeInUp 0.6s ease-out calc(2s + var(--delay, 0) * 0.1s) both;
}

/* App statusbar */
.fusion-footer {
    grid-area: statusbar;
    background: rgba(100, 212, 255, 0.08);
    border-top: 1px solid rgba(100, 212, 255, 0.2);
    border-radius: 0 0 14px 14px;
    display: flex;
    align-items: center;
    padding: 0 16px;
    animation: slideInFromBottom 1s ease-out 2s both;
}

.fusion-footer::before {
    content: '';
    position: absolute;
    left: 16px;
    top: 50%;
    transform: translateY(-50%);
    width: 8px;
    height: 8px;
    border-radius: 50%;
    background: #64d4ff;
    box-shadow: 0 0 8px rgba(100, 212, 255, 0.6);
    opacity: 0;
    animation: fadeIn 0.5s ease-out 2.5s both;
}

.fusion-footer::after {
    display: none;
}

/* Enhanced animations for structured appearance */
@keyframes slideInFromLeft {
    from {
        opacity: 0;
        transform: translateX(-30px);
    }
    to {
        opacity: 1;
        transform: translateX(0);
    }
}

@keyframes slideInFromRight {
    from {
        opacity: 0;
        transform: translateX(30px);
    }
    to {
        opacity: 1;
        transform: translateX(0);
    }
}

@keyframes slideInFromBottom {
    from {
        opacity: 0;
        transform: translateY(20px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* Mini components inside fusion elements */
.fusion-header::before {
    content: '';
    position: absolute;
    left: 16px;
    top: 50%;
    transform: translateY(-50%);
    width: 12px;
    height: 12px;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.9);
    box-shadow: 
        20px 0 0 rgba(255, 255, 255, 0.7),
        40px 0 0 rgba(255, 255, 255, 0.5);
    opacity: 0;
    animation: slideInFromLeft 1s ease-out 0.5s both;
}

.fusion-sidebar::before {
    content: '';
    position: absolute;
    top: 8px;
    left: 8px;
    font-family: 'Inter', sans-serif;
    font-size: 11px;
    font-weight: 500;
    color: rgba(255, 255, 255, 0.9);
    white-space: pre;
    opacity: 0;
    animation: fadeIn 0.5s ease-out 1.5s both;
}

.fusion-content::before {
    content: '';
    position: absolute;
    top: 8px;
    left: 8px;
    font-family: 'Inter', sans-serif;
    font-size: 11px;
    font-weight: 500;
    color: rgba(255, 255, 255, 0.9);
    white-space: pre;
    opacity: 0;
    animation: fadeIn 0.5s ease-out 2s both;
}

.fusion-footer::before {
    content: '';
    position: absolute;
    left: 16px;
    top: 50%;
    transform: translateY(-50%);
    width: 8px;
    height: 8px;
    border-radius: 50%;
    background: #64d4ff;
    box-shadow: 0 0 8px rgba(100, 212, 255, 0.6);
    opacity: 0;
    animation: fadeIn 0.5s ease-out 2.5s both;
}

@keyframes fadeIn {
    from { opacity: 0; transform: translateY(10px); }
    to { opacity: 1; transform: translateY(0); }
}

/* Sparkle effects */
.sparkles {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    pointer-events: none;
    z-index: 4;
}

.sparkle {
    position: absolute;
    width: 3px;
    height: 3px;
    background: #64d4ff;
    border-radius: 50%;
    opacity: 0;
    animation: sparkleEffect 1.5s ease-out;
    box-shadow: 0 0 6px rgba(100, 212, 255, 0.8);
}

@keyframes sparkleEffect {
    0% { 
        opacity: 0; 
        transform: scale(0) rotate(0deg); 
    }
    50% { 
        opacity: 1; 
        transform: scale(1) rotate(180deg); 
    }
    100% { 
        opacity: 0; 
        transform: scale(0) rotate(360deg); 
    }
}

/* Different sparkle colors for each card */
.card-1 .sparkle {
    background: #64d4ff;
    box-shadow: 0 0 6px rgba(100, 212, 255, 0.8);
}

.card-2 .sparkle {
    background: #9b5de5;
    box-shadow: 0 0 6px rgba(155, 93, 229, 0.8);
}

.card-3 .sparkle {
    background: #f15bb5;
    box-shadow: 0 0 6px rgba(241, 91, 181, 0.8);
}

/* Card positions for different code lines */
.card-1 .code-line:nth-child(1) { top: 12px; }
.card-1 .code-line:nth-child(2) { top: 28px; }
.card-1 .code-line:nth-child(3) { top: 44px; }
.card-1 .code-line:nth-child(4) { top: 60px; }

.card-2 .code-line:nth-child(1) { top: 12px; }
.card-2 .code-line:nth-child(2) { top: 28px; }
.card-2 .code-line:nth-child(3) { top: 44px; }
.card-2 .code-line:nth-child(4) { top: 60px; }

.card-3 .code-line:nth-child(1) { top: 12px; }
.card-3 .code-line:nth-child(2) { top: 28px; }
.card-3 .code-line:nth-child(3) { top: 44px; }
.card-3 .code-line:nth-child(4) { top: 60px; }

/* ===== ANIMATIONS ===== */
@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(30px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* ===== SECTIONS ===== */
.about,
.cases,
.pricing,
.clients,
.contact {
    padding: 120px 0;
    position: relative;
}

.section-header {
    text-align: center;
    margin-bottom: 80px;
}

.section-badge {
    display: inline-block;
    background: rgba(100, 212, 255, 0.1);
    border: 1px solid rgba(100, 212, 255, 0.3);
    padding: 8px 16px;
    border-radius: 20px;
    font-size: 14px;
    font-weight: 600;
    color: #64d4ff;
    margin-bottom: 20px;
}

.section-title {
    font-size: clamp(2rem, 5vw, 3.5rem);
    font-weight: 800;
    line-height: 1.2;
    letter-spacing: -0.02em;
}

/* ===== ABOUT SECTION ===== */
.about {
    background: linear-gradient(180deg, #000000 0%, #0a0a0a 100%);
}

.services-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 32px;
}

.service-card {
    background: rgba(255, 255, 255, 0.02);
    border: 1px solid rgba(255, 255, 255, 0.08);
    border-radius: 20px;
    padding: 32px;
    transition: all 0.3s ease;
    backdrop-filter: blur(10px);
}

.service-card:hover {
    background: rgba(100, 212, 255, 0.05);
    border-color: rgba(100, 212, 255, 0.3);
    transform: translateY(-8px);
    box-shadow: 0 25px 50px rgba(100, 212, 255, 0.1);
}

.service-icon {
    width: 64px;
    height: 64px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: linear-gradient(135deg, rgba(100, 212, 255, 0.1), rgba(155, 93, 229, 0.1));
    border-radius: 16px;
    margin-bottom: 24px;
    color: #64d4ff;
}

.service-card h3 {
    font-size: 1.5rem;
    font-weight: 700;
    margin-bottom: 16px;
    color: #ffffff;
}

.service-card p {
    color: rgba(255, 255, 255, 0.7);
    margin-bottom: 20px;
    line-height: 1.6;
}

.service-tech {
    display: flex;
    gap: 8px;
    flex-wrap: wrap;
    font-size: 12px;
    font-weight: 500;
    color: #64d4ff;
    font-family: 'JetBrains Mono', monospace;
}

/* ===== PROCESS SECTION ===== */
.process {
    background: #0a0a0a;
    padding: 120px 0;
    position: relative;
}

.section-subtitle {
    font-size: 1.125rem;
    color: rgba(255, 255, 255, 0.7);
    margin-top: 20px;
    max-width: 800px;
    margin-left: auto;
    margin-right: auto;
    line-height: 1.6;
}

.process-steps {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 32px;
    margin-top: 80px;
    position: relative;
}

.process-step {
    background: rgba(255, 255, 255, 0.02);
    border: 1px solid rgba(255, 255, 255, 0.08);
    border-radius: 20px;
    padding: 32px 24px;
    transition: all 0.3s ease;
    backdrop-filter: blur(10px);
    position: relative;
    overflow: hidden;
    display: flex;
    flex-direction: column;
    text-align: left;
}

.process-step::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 2px;
    background: linear-gradient(90deg, #64d4ff, #9b5de5, #f15bb5);
    opacity: 0;
    transition: opacity 0.3s ease;
}

.process-step:hover {
    background: rgba(100, 212, 255, 0.05);
    border-color: rgba(100, 212, 255, 0.3);
    transform: translateY(-4px);
    box-shadow: 0 20px 40px rgba(100, 212, 255, 0.1);
}

.process-step:hover::before {
    opacity: 1;
}

.step-number {
    position: relative;
    margin-bottom: 20px;
    display: flex;
    align-items: center;
}

.step-number .number {
    font-size: 3rem;
    font-weight: 900;
    font-family: 'JetBrains Mono', monospace;
    background: linear-gradient(135deg, #64d4ff, #9b5de5);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    position: relative;
    z-index: 2;
    line-height: 1;
}

.number-glow {
    display: none;
}

.step-content {
    flex: 1;
}

.step-content h3 {
    font-size: 1.25rem;
    font-weight: 700;
    margin-bottom: 12px;
    color: #ffffff;
    line-height: 1.3;
}

.step-content p {
    color: rgba(255, 255, 255, 0.7);
    line-height: 1.6;
    font-size: 0.95rem;
}

.step-icon {
    display: none;
}

.process-connector {
    display: none;
}

/* ===== CASES SECTION ===== */
.cases {
    background: #0a0a0a;
}

.cases-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(400px, 1fr));
    gap: 40px;
}

.case-card {
    background: rgba(255, 255, 255, 0.02);
    border: 1px solid rgba(255, 255, 255, 0.08);
    border-radius: 24px;
    overflow: hidden;
    transition: transform 0.3s ease, box-shadow 0.3s ease, border-color 0.3s ease;
    will-change: transform;
    transform: translateZ(0);
}

.case-card:hover {
    transform: translateY(-8px) scale(1.02) translateZ(0);
    box-shadow: 0 20px 40px rgba(100, 212, 255, 0.1);
    border-color: rgba(100, 212, 255, 0.3);
}

.case-image {
    height: 320px;
    background: linear-gradient(135deg, rgba(100, 212, 255, 0.1), rgba(155, 93, 229, 0.1));
    display: flex;
    align-items: center;
    justify-content: center;
    position: relative;
    overflow: hidden;
}

.case-preview {
    position: relative;
    display: flex;
    align-items: center;
    justify-content: center;
    width: 100%;
    height: 100%;
}

.preview-phone {
    width: 60px;
    height: 120px;
    background: #1a1a2e;
    border-radius: 12px;
    padding: 8px;
    border: 2px solid rgba(100, 212, 255, 0.3);
}

.phone-screen {
    width: 100%;
    height: 100%;
    background: #000;
    border-radius: 8px;
    padding: 4px;
}

.preview-desktop {
    width: 120px;
    height: 80px;
    background: #1a1a2e;
    border-radius: 8px;
    padding: 6px;
    border: 2px solid rgba(100, 212, 255, 0.3);
}

.desktop-screen {
    width: 100%;
    height: 100%;
    background: #000;
    border-radius: 4px;
}

.case-content {
    padding: 32px;
}

.case-category {
    font-size: 12px;
    font-weight: 600;
    color: #64d4ff;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    margin-bottom: 12px;
}

.case-content h3 {
    font-size: 1.5rem;
    font-weight: 700;
    margin-bottom: 16px;
    color: #ffffff;
}

.case-content p {
    color: rgba(255, 255, 255, 0.7);
    line-height: 1.6;
    margin-bottom: 20px;
}

.case-tech {
    display: flex;
    gap: 8px;
    flex-wrap: wrap;
    margin-bottom: 24px;
}

.case-tech span {
    background: rgba(100, 212, 255, 0.1);
    border: 1px solid rgba(100, 212, 255, 0.3);
    padding: 4px 12px;
    border-radius: 12px;
    font-size: 12px;
    font-weight: 500;
    color: #64d4ff;
    font-family: 'JetBrains Mono', monospace;
}

.case-buttons {
    display: flex;
    gap: 12px;
}

.btn-case-primary,
.btn-case-secondary {
    padding: 10px 20px;
    border-radius: 20px;
    font-size: 14px;
    font-weight: 600;
    cursor: pointer;
    border: none;
    transition: all 0.3s ease;
    display: flex;
    align-items: center;
    gap: 6px;
}

.btn-case-primary {
    background: linear-gradient(135deg, #64d4ff, #9b5de5);
    color: white;
}

.btn-case-secondary {
    background: rgba(100, 212, 255, 0.1);
    color: #64d4ff;
    border: 1px solid rgba(100, 212, 255, 0.3);
}

.btn-case-demo,
button.btn-case-demo {
    background: rgba(255, 255, 255, 0.1) !important;
    color: #ffffff !important;
    border: 1px solid rgba(255, 255, 255, 0.3);
    padding: 10px 20px;
    border-radius: 20px;
    font-size: 14px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
    display: flex;
    align-items: center;
    gap: 6px;
    text-decoration: none !important;
}

.btn-case-demo:link,
.btn-case-demo:visited,
.btn-case-demo:hover,
.btn-case-demo:active,
button.btn-case-demo:hover,
button.btn-case-demo:active {
    color: #ffffff !important;
    text-decoration: none !important;
}

.btn-case-primary:hover,
.btn-case-secondary:hover,
.btn-case-demo:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 25px rgba(100, 212, 255, 0.3);
}

.btn-case-demo:hover,
button.btn-case-demo:hover {
    box-shadow: 0 8px 25px rgba(255, 255, 255, 0.3) !important;
    color: #ffffff !important;
    text-decoration: none !important;
}

/* ===== PRICING SECTION ===== */
.pricing {
    background: linear-gradient(180deg, #0a0a0a 0%, #000000 100%);
}

.pricing-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 32px;
    max-width: 1200px;
    margin: 0 auto;
    align-items: stretch;
}

.pricing-card {
    background: rgba(255, 255, 255, 0.02);
    border: 1px solid rgba(255, 255, 255, 0.08);
    border-radius: 24px;
    padding: 40px 32px;
    transition: all 0.4s ease;
    position: relative;
    backdrop-filter: blur(10px);
    display: flex;
    flex-direction: column;
    height: auto;
}

.pricing-card.featured {
    border: 2px solid #64d4ff;
    background: rgba(100, 212, 255, 0.03);
}

.pricing-card:hover {
    transform: translateY(-8px) scale(1.02);
    box-shadow: 0 25px 50px rgba(100, 212, 255, 0.15);
    border-color: rgba(100, 212, 255, 0.5);
}

.pricing-card.featured:hover {
    transform: translateY(-8px) scale(1.02);
}

.popular-badge {
    position: absolute;
    top: -12px;
    left: 50%;
    transform: translateX(-50%);
    background: linear-gradient(135deg, #64d4ff, #9b5de5);
    color: white;
    padding: 6px 20px;
    border-radius: 20px;
    font-size: 12px;
    font-weight: 600;
}

.pricing-header {
    text-align: center;
    margin-bottom: 32px;
}

.pricing-category {
    font-size: 14px;
    font-weight: 600;
    color: #64d4ff;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    margin-bottom: 8px;
}

.pricing-title {
    font-size: 1.25rem;
    font-weight: 700;
    color: #ffffff;
    margin-bottom: 16px;
}

.pricing-price {
    display: flex;
    align-items: baseline;
    justify-content: center;
    gap: 4px;
    font-family: 'JetBrains Mono', monospace;
}

.currency {
    font-size: 1rem;
    color: rgba(255, 255, 255, 0.6);
}

.amount {
    font-size: 2rem;
    font-weight: 800;
    color: #64d4ff;
}

.pricing-features {
    margin-bottom: 32px;
    flex: 1;
}

.feature {
    display: flex;
    align-items: center;
    gap: 12px;
    margin-bottom: 16px;
    color: rgba(255, 255, 255, 0.8);
}

.feature svg {
    color: #64d4ff;
    flex-shrink: 0;
}

.pricing-button {
    width: 100%;
    padding: 16px;
    background: linear-gradient(135deg, #64d4ff, #9b5de5);
    border: none;
    border-radius: 12px;
    color: white;
    font-weight: 600;
    font-size: 16px;
    cursor: pointer;
    transition: all 0.3s ease;
}

.pricing-button:hover {
    transform: translateY(-2px);
    box-shadow: 0 12px 30px rgba(100, 212, 255, 0.4);
}

/* ===== CLIENTS SECTION ===== */
.clients {
    background: #0a0a0a;
    padding: 80px 0;
}

.clients-marquee {
    overflow: hidden;
    margin-top: 40px;
    width: 100%;
}

.marquee-content {
    display: flex;
    gap: 40px;
    animation: marquee 20s linear infinite;
    width: max-content;
}

.clients-marquee:hover .marquee-content {
    animation-play-state: paused;
}

@keyframes marquee {
    0% { transform: translateX(0); }
    100% { transform: translateX(-50%); }
}

.client-logo {
    background: rgba(255, 255, 255, 0.03);
    border: 1px solid rgba(255, 255, 255, 0.08);
    border-radius: 20px;
    padding: 20px;
    white-space: nowrap;
    backdrop-filter: blur(15px);
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    display: flex;
    align-items: center;
    justify-content: center;
    min-width: 280px;
    height: 120px;
    flex-shrink: 0;
    position: relative;
    overflow: hidden;
}

.client-logo::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(100, 212, 255, 0.1), transparent);
    transition: left 0.6s ease;
}

.client-logo img {
    max-width: 100%;
    max-height: 100%;
    width: auto;
    height: auto;
    object-fit: contain;
    filter: brightness(0.7) saturate(0.8) opacity(0.9);
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    position: relative;
    z-index: 1;
}

.client-logo:hover {
    background: rgba(255, 255, 255, 0.08);
    border-color: rgba(100, 212, 255, 0.2);
    box-shadow: 0 8px 32px rgba(100, 212, 255, 0.15);
}

.client-logo:hover::before {
    left: 100%;
}

.client-logo:hover img {
    filter: brightness(1) saturate(1) opacity(1);
}

/* ===== CONTACT SECTION ===== */
.contact {
    background: linear-gradient(180deg, #000000 0%, #0a0a0a 100%);
}

.contact-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 80px;
    align-items: start;
}

.contact-info .section-badge {
    margin-bottom: 20px;
}

.contact-info .section-title {
    text-align: left;
    margin-bottom: 24px;
}

.contact-info p {
    color: rgba(255, 255, 255, 0.7);
    font-size: 1.125rem;
    margin-bottom: 40px;
}

.contact-items {
    display: flex;
    flex-direction: column;
    gap: 24px;
}

.contact-item {
    display: flex;
    align-items: center;
    gap: 16px;
}

.contact-icon {
    width: 48px;
    height: 48px;
    background: rgba(100, 212, 255, 0.1);
    border: 1px solid rgba(100, 212, 255, 0.3);
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #64d4ff;
    flex-shrink: 0;
}

.contact-label {
    font-size: 14px;
    color: rgba(255, 255, 255, 0.6);
    margin-bottom: 4px;
}

.contact-value {
    font-weight: 600;
    color: #ffffff;
}

.contact-value a {
    color: #ffffff;
    text-decoration: none;
    transition: color 0.3s ease;
}

.contact-value a:hover {
    color: #64d4ff;
    text-decoration: underline;
}

.contact-form {
    background: rgba(255, 255, 255, 0.02);
    border: 1px solid rgba(255, 255, 255, 0.08);
    border-radius: 24px;
    padding: 40px;
    backdrop-filter: blur(10px);
}

.form {
    display: flex;
    flex-direction: column;
    gap: 24px;
}

.form-group {
    display: flex;
    flex-direction: column;
}

.form-input {
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 12px;
    padding: 16px;
    color: #ffffff;
    font-size: 16px;
    transition: all 0.3s ease;
    font-family: inherit;
}

.form-input:focus {
    outline: none;
    border-color: #64d4ff;
    background: rgba(100, 212, 255, 0.05);
    box-shadow: 0 0 0 3px rgba(100, 212, 255, 0.1);
}

.form-input::placeholder {
    color: rgba(255, 255, 255, 0.4);
}

.form-submit {
    background: linear-gradient(135deg, #64d4ff, #9b5de5);
    border: none;
    border-radius: 12px;
    padding: 16px;
    color: white;
    font-weight: 600;
    font-size: 16px;
    cursor: pointer;
    transition: all 0.3s ease;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
}

.form-submit:hover {
    transform: translateY(-2px);
    box-shadow: 0 12px 30px rgba(100, 212, 255, 0.4);
}

/* ===== FOOTER ===== */
.footer {
    background: #000000;
    border-top: 1px solid rgba(255, 255, 255, 0.05);
    padding: 60px 0 30px;
}

.footer-content {
    display: grid;
    grid-template-columns: 1fr 2fr;
    gap: 60px;
    margin-bottom: 40px;
}

.footer-brand p {
    color: rgba(255, 255, 255, 0.6);
    margin-top: 16px;
}

.footer-links {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 40px;
}

.footer-section h4 {
    color: #ffffff;
    font-weight: 600;
    margin-bottom: 16px;
}

.footer-section a {
    display: block;
    color: rgba(255, 255, 255, 0.6);
    text-decoration: none;
    margin-bottom: 8px;
    transition: color 0.3s ease;
}

.footer-section a:hover {
    color: #64d4ff;
}

.footer-bottom {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding-top: 30px;
    border-top: 1px solid rgba(255, 255, 255, 0.05);
}

.footer-copyright {
    color: rgba(255, 255, 255, 0.4);
    font-size: 14px;
}

.footer-social {
    display: flex;
    gap: 16px;
}

.social-link {
    width: 40px;
    height: 40px;
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 10px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: rgba(255, 255, 255, 0.6);
    transition: all 0.3s ease;
}

.social-link:hover {
    background: rgba(100, 212, 255, 0.1);
    border-color: rgba(100, 212, 255, 0.3);
    color: #64d4ff;
    transform: translateY(-2px);
}

/* ===== MODALS ===== */
.modal {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 2000;
}

.modal-backdrop {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.8);
    backdrop-filter: blur(10px);
}

.modal-content {
    position: relative;
    background: rgba(10, 10, 10, 0.95);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 24px;
    margin: 2% auto;
    width: 95%;
    max-width: 800px;
    max-height: 94vh;
    overflow-y: auto;
    backdrop-filter: blur(20px);
}

.modal-close {
    position: absolute;
    top: 20px;
    right: 20px;
    background: none;
    border: none;
    color: rgba(255, 255, 255, 0.6);
    font-size: 2rem;
    cursor: pointer;
    transition: color 0.3s ease;
    z-index: 1;
}

.modal-close:hover {
    color: #64d4ff;
}

.modal-header {
    padding: 40px 40px 20px;
    border-bottom: 1px solid rgba(255, 255, 255, 0.05);
}

.modal-header h2 {
    color: #ffffff;
    font-size: 2rem;
    font-weight: 700;
    margin-bottom: 8px;
}

.modal-header h3 {
    color: #64d4ff;
    font-size: 18px;
    font-weight: 600;
    margin: 0;
}

.modal-category {
    color: #64d4ff;
    font-size: 14px;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.modal-body {
    padding: 30px 40px 40px;
}

.modal-body p {
    color: rgba(255, 255, 255, 0.8);
    line-height: 1.6;
    margin-bottom: 24px;
}

.modal-body h3 {
    color: #ffffff;
    font-size: 1.25rem;
    font-weight: 600;
    margin: 24px 0 16px;
}

.modal-body ul {
    list-style: none;
    margin-bottom: 32px;
}

.modal-body li {
    color: rgba(255, 255, 255, 0.8);
    padding: 8px 0;
    padding-left: 24px;
    position: relative;
}

.modal-body li::before {
    content: '▶';
    position: absolute;
    left: 0;
    color: #64d4ff;
    font-size: 12px;
}



.video-modal .modal-content {
    max-width: 900px;
    max-height: 600px;
}

.video-container {
    position: relative;
    width: 100%;
    height: 0;
    padding-bottom: 56.25%; /* 16:9 aspect ratio */
    overflow: hidden;
    border-radius: 8px;
}

.video-container iframe {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    border-radius: 8px;
}

/* ===== RESPONSIVE DESIGN ===== */

/* Tablet Styles */
@media (max-width: 1024px) {
    .container {
        padding: 0 30px;
    }
    
    .hero-container {
        grid-template-columns: 2fr 1fr;
        gap: 60px;
        padding: 0 30px;
    }
    
    .nav-container {
        gap: 16px;
        padding: 14px 30px;
        justify-content: space-between;
    }
    
    .nav-links {
        gap: 20px;
    }
    
    .nav-links a {
        font-size: 13px;
    }
    
    .hero-visual {
        height: 400px;
    }
    
    .floating-card.card-1 {
        width: 140px;
        height: 110px;
        top: 0;
        right: 20px;
    }
    
    .floating-card.card-2 {
        width: 120px;
        height: 100px;
        top: 130px;
        right: 0;
    }
    
    .floating-card.card-3 {
        width: 160px;
        height: 120px;
        top: 70px;
        right: 160px;
    }
    
    .contact-grid {
        grid-template-columns: 1fr;
        gap: 60px;
    }
    
    .footer-content {
        grid-template-columns: 1fr;
        gap: 40px;
        text-align: center;
    }
    
    .footer-links {
        grid-template-columns: repeat(3, 1fr);
    }
    
    .services-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 24px;
    }
    
    /* Process section for tablets */
    .process-steps {
        grid-template-columns: repeat(2, 1fr);
        gap: 24px;
    }
    
    .process-step {
        padding: 28px 20px;
    }
}

/* Mobile Styles */
@media (max-width: 768px) {
    .container {
        padding: 0 20px;
    }
    
    /* Navigation */
    .nav-container {
        padding: 12px 20px;
        gap: 12px;
        max-width: none;
        width: 100%;
        justify-content: space-between;
    }
    
    .nav-links {
        position: fixed;
        top: 80px;
        left: 0;
        right: 0;
        width: 100%;
        transform: translateY(-20px);
        background: rgba(0, 0, 0, 0.95);
        backdrop-filter: blur(20px);
        border: none;
        border-bottom: 1px solid rgba(255, 255, 255, 0.1);
        border-radius: 0;
        padding: 30px 20px;
        flex-direction: column;
        gap: 5px;
        opacity: 0;
        visibility: hidden;
        transition: all 0.3s ease;
        z-index: 999;
        box-shadow: 0 20px 40px rgba(0, 0, 0, 0.5);
        white-space: normal;
        margin: 0;
    }
    
    .nav-links.active {
        opacity: 1;
        visibility: visible;
        transform: translateY(0);
    }
    
    .nav-links li {
        text-align: left;
        width: 100%;
    }
    
    .nav-links a {
        display: block;
        padding: 20px 24px;
        border-radius: 12px;
        white-space: normal;
        font-size: 20px;
        font-weight: 700;
        border: 1px solid transparent;
        width: 100%;
        text-align: left;
        color: #ffffff !important;
        text-transform: uppercase;
        letter-spacing: 0.5px;
    }
    
    /* Show mobile CTA button in menu */
    .mobile-cta {
        display: block !important;
    }
    

    
    .mobile-nav-buttons {
        display: flex;
        flex-shrink: 0;
    }
    
    .mobile-menu-toggle.active span:nth-child(1) {
        transform: rotate(45deg) translate(5px, 5px);
    }
    
    .mobile-menu-toggle.active span:nth-child(2) {
        opacity: 0;
    }
    
    .mobile-menu-toggle.active span:nth-child(3) {
        transform: rotate(-45deg) translate(7px, -6px);
    }
    
    .logo {
        font-size: 15px;
        flex-shrink: 0;
    }
    
    .nav-right {
        display: none; /* Hide nav-right container on mobile */
    }
    
    /* Hero */
    .hero-container {
        grid-template-columns: 1fr;
        gap: 40px;
        padding: 0 20px;
        text-align: center;
    }
    
    .hero-content {
        max-width: 100%;
        order: 1;
        padding-right: 0;
    }
    
    /* Hide the animation block on mobile */
    .hero-visual {
        display: none !important;
        visibility: hidden !important;
        opacity: 0 !important;
        overflow: hidden !important;
        width: 0 !important;
        height: 0 !important;
    }
    
    /* Hide all animation elements completely on mobile */
    .floating-card,
    .floating-card *,
    .fusion-container,
    .fusion-container *,
    .sparkles,
    .sparkles *,
    .typing-cursor,
    .card-header,
    .card-body,
    .code-line,
    .fusion-header,
    .fusion-sidebar,
    .fusion-content,
    .fusion-panel,
    .fusion-footer,
    .sidebar-item,
    .content-block,
    .panel-item {
        display: none !important;
        visibility: hidden !important;
        opacity: 0 !important;
    }
    
    /* Hide pseudo-elements from animation */
    .floating-card::before,
    .floating-card::after,
    .card-header::before,
    .card-header::after,
    .fusion-header::before,
    .fusion-header::after,
    .fusion-sidebar::before,
    .fusion-sidebar::after,
    .fusion-content::before,
    .fusion-content::after,
    .fusion-footer::before,
    .fusion-footer::after {
        display: none !important;
        visibility: hidden !important;
        opacity: 0 !important;
    }
    
    .hero-title {
        font-size: 2rem;
    }
    
    .hero-subtitle {
        font-size: 1.125rem;
    }
    
    .hero-buttons {
        flex-direction: column;
        align-items: center;
    }
    
    .btn-primary,
    .btn-secondary {
        width: 100%;
        max-width: 280px;
        justify-content: center;
    }
    
    .hero-stats {
        display: none;
    }
    
    .stat {
        text-align: center;
    }
    
    /* Sections */
    .about,
    .cases,
    .process,
    .contact {
        padding: 80px 0;
    }
    
    .section-header {
        margin-bottom: 60px;
    }
    
    .section-title {
        font-size: 2rem;
    }
    
    .section-subtitle {
        font-size: 1rem;
        padding: 0 20px;
    }
    
    /* Process section mobile */
    .process-steps {
        grid-template-columns: 1fr;
        gap: 24px;
        margin-top: 60px;
    }
    
    .process-step {
        padding: 28px 20px;
    }
    
    .step-number .number {
        font-size: 2.5rem;
    }
    
    .step-content h3 {
        font-size: 1.125rem;
        margin-bottom: 12px;
    }
    
    .step-content p {
        font-size: 0.9rem;
    }
    
    /* Services */
    .services-grid {
        grid-template-columns: 1fr;
        gap: 24px;
    }
    
    .service-card {
        padding: 24px;
    }
    
    /* Cases */
    .cases-grid {
        grid-template-columns: 1fr;
        gap: 32px;
    }
    
    .case-card {
        border-radius: 20px;
    }
    
    .case-content {
        padding: 24px;
    }
    
    .case-buttons {
        flex-direction: column;
    }
    
    .btn-case-primary,
    .btn-case-secondary,
    .btn-case-demo {
        justify-content: center;
    }
    
    /* Pricing */
    .pricing-grid {
        grid-template-columns: 1fr;
        gap: 24px;
    }
    
    .pricing-card {
        padding: 32px 24px;
    }
    
    .pricing-card.featured {
        transform: none;
    }
    
    .pricing-card:hover,
    .pricing-card.featured:hover {
        transform: translateY(-4px);
    }
    
    /* Contact */
    .contact-info .section-title {
        text-align: center;
    }
    
    .contact-form {
        padding: 32px 24px;
    }
    
    /* Footer */
    .footer-links {
        grid-template-columns: 1fr;
        gap: 32px;
        text-align: center;
    }
    
    /* Clients section mobile */
    .client-logo {
        min-width: 200px;
        height: 100px;
        padding: 10px 10px;
    }
    
    .marquee-content {
        gap: 24px;
        animation: marquee 20s linear infinite;
    }
    
    .footer-bottom {
        flex-direction: column;
        gap: 20px;
        text-align: center;
    }
    
    /* Modals */
    .modal-content {
        margin: 10% auto;
        width: 95%;
        max-height: 70vh;
    }
    
    .modal-header,
    .modal-body {
        padding: 30px 24px;
    }
    
    .modal-header {
        padding-bottom: 20px;
    }
    
    .modal-header h2 {
        font-size: 1.5rem;
    }
}

/* Small Mobile */
@media (max-width: 480px) {
    .hero-title {
        font-size: 2rem;
    }
    
    .section-title {
        font-size: 1.75rem;
    }
    
    .pricing-card {
        padding: 24px 20px;
    }
    
    .contact-form {
        padding: 24px 20px;
    }
    
    .modal-content {
        width: 98%;
        margin: 1% auto;
        max-height: 98vh;
        border-radius: 12px;
    }
    
    .modal-header,
    .modal-body {
        padding: 16px 12px;
    }
    
    .modal-header {
        padding-bottom: 12px;
    }
    
    .modal-header h2 {
        font-size: 1.125rem;
    }
    
    .modal-close {
        top: 8px;
        right: 8px;
        font-size: 1.25rem;
    }
}

/* ===== UTILITY CLASSES ===== */
.text-center { text-align: center; }
.text-left { text-align: left; }
.text-right { text-align: right; }

.mb-0 { margin-bottom: 0; }
.mb-1 { margin-bottom: 8px; }
.mb-2 { margin-bottom: 16px; }
.mb-3 { margin-bottom: 24px; }
.mb-4 { margin-bottom: 32px; }

.hidden { display: none; }
.visible { display: block; }

/* ===== SCROLL ANIMATIONS ===== */
.scroll-fade-in {
    opacity: 0;
    transform: translateY(30px) translateZ(0);
    transition: opacity 0.6s ease, transform 0.6s ease;
    will-change: opacity, transform;
}

.scroll-fade-in.in-view {
    opacity: 1;
    transform: translateY(0) translateZ(0);
}

/* ===== HIGH CONTRAST MODE ===== */
@media (prefers-contrast: high) {
    .service-card,
    .case-card,
    .pricing-card {
        border-width: 2px;
    }
    
    .btn-primary,
    .btn-secondary {
        border-width: 2px;
    }
}

/* ===== REDUCED MOTION ===== */
@media (prefers-reduced-motion: reduce) {
    *,
    *::before,
    *::after {
        animation-duration: 0.01ms !important;
        animation-iteration-count: 1 !important;
        transition-duration: 0.01ms !important;
    }
    
    .floating-card {
        animation: none;
    }
    
    .hero-grid {
        animation: none;
    }
    
    .marquee-content {
        animation: none;
    }
}

/* ===== CUSTOM CURSOR STYLES ===== */
a, button, .btn-primary, .btn-secondary, .cta-button, .nav-links a, .case-card, .service-card, .pricing-card, .btn-case-demo {
    cursor: url('data:image/svg+xml;utf8,<svg xmlns="http://www.w3.org/2000/svg" width="28" height="28" viewBox="0 0 28 28"><circle cx="14" cy="14" r="10" fill="%2364d4ff" opacity="0.6"/><circle cx="14" cy="14" r="3" fill="%2364d4ff"/></svg>') 14 14, pointer;
}

input, textarea, select {
    cursor: url('data:image/svg+xml;utf8,<svg xmlns="http://www.w3.org/2000/svg" width="24" height="24" viewBox="0 0 24 24"><rect x="11" y="4" width="2" height="16" fill="%2364d4ff"/><rect x="8" y="6" width="8" height="2" fill="%2364d4ff" opacity="0.6"/><rect x="8" y="16" width="8" height="2" fill="%2364d4ff" opacity="0.6"/></svg>') 12 12, text;
}

.mobile-cta-button {
    width: 100%;
    background: linear-gradient(135deg, #64d4ff, #9b5de5);
    border: none;
    padding: 16px 24px;
    border-radius: 16px;
    color: white;
    font-weight: 600;
    font-size: 16px;
    cursor: pointer;
    transition: all 0.3s ease;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    box-shadow: 0 4px 20px rgba(100, 212, 255, 0.2);
}

.mobile-cta-button:hover {
    transform: translateY(-3px);
    box-shadow: 0 12px 30px rgba(100, 212, 255, 0.4);
    background: linear-gradient(135deg, #5bc3e8, #8a4bd1);
}

/* Mobile CTA button styles */
.mobile-cta {
    margin-top: 12px;
    padding-top: 20px;
    border-top: 1px solid rgba(255, 255, 255, 0.15);
}

/* ===== SPECIFIC CASE STYLES ===== */

/* Measure (Замерщик) card specific styles */
.case-card[data-case="measure"] .case-image {
    background-image: url('img/zamer1.jpg');
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
    height: 280px;
}

.case-card[data-case="measure"] .case-preview {
    justify-content: flex-end;
    align-items: flex-end;
    padding: 15px;
}

.case-card[data-case="measure"] .preview-phone {
    cursor: pointer;
    transition: all 0.3s ease;
    position: relative;
    z-index: 2;
    width: 104px;
    height: 208px;
    padding: 0;
    border: 3px solid rgba(100, 212, 255, 0.3);
    border-radius: 16px;
    overflow: hidden;
}

.case-card[data-case="measure"] .preview-phone:hover {
    transform: scale(1.08);
    box-shadow: 0 15px 40px rgba(100, 212, 255, 0.4);
}

.case-card[data-case="measure"] .phone-screen {
    background-image: url('img/zamer-mob.jpg');
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
    width: 100%;
    height: 100%;
    border-radius: 13px;
    padding: 0 !important;
    margin: 0;
    background-color: transparent;
}

.case-card[data-case="measure"] .measure-preview {
    background: transparent;
    width: 100%;
    height: 100%;
    padding: 0;
    margin: 0;
}

/* HeadHunter card specific styles */
.case-card[data-case="hh"] .case-image {
    background-image: url('img/hh.jpg');
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
    height: 280px;
}

.case-card[data-case="hh"] .case-preview {
    justify-content: flex-end;
    align-items: flex-end;
    padding: 15px;
}

.case-card[data-case="hh"] .preview-tablet {
    cursor: pointer;
    transition: all 0.3s ease;
    position: relative;
    z-index: 2;
    width: 240px;
    height: 140px;
    background: #1a1a2e;
    padding: 0px;
    border: 3px solid rgba(100, 212, 255, 0.3);
    border-radius: 16px;
    overflow: hidden;
}

.case-card[data-case="hh"] .preview-tablet:hover {
    transform: scale(1.08);
    box-shadow: 0 15px 40px rgba(100, 212, 255, 0.4);
}

.case-card[data-case="hh"] .tablet-screen {
    background-image: url('img/hh-pk.jpg');
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
    width: 100%;
    height: 100%;
    border-radius: 13px;
    padding: 0 !important;
    margin: 0;
    background-color: transparent;
}

.case-card[data-case="hh"] .hh-preview {
    background: transparent;
    width: 100%;
    height: 100%;
    padding: 0;
    margin: 0;
}

/* Driver calendar card specific styles */
.case-card[data-case="driver"] .case-image {
    background-image: url('img/drivers.jpg');
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
    height: 280px;
}

/* Ucet integration card specific styles */
.case-card[data-case="ucet"] .case-image {
    background-image: url('img/uchet.jpg');
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
    height: 280px;
}

/* Calendar payment card specific styles */
.case-card[data-case="calendar"] .case-image {
    background-image: url('img/Cal.jpg');
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
    height: 280px;
}



/* Phone enlargement modal */
.phone-modal {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 2000;
    background: rgba(0, 0, 0, 0.8);
    backdrop-filter: blur(10px);
    opacity: 0;
    transition: opacity 0.3s ease;
}

.phone-modal-content {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    background: #1a1a2e;
    border-radius: 24px;
    padding: 16px;
    border: 4px solid rgba(100, 212, 255, 0.3);
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.5);
}

.phone-modal-screen {
    width: 360px;
    height: 720px;
    background-image: url('img/zamer-mob.jpg');
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
    border-radius: 24px;
    border: 3px solid #000;
}

.phone-modal-close {
    position: absolute;
    top: -10px;
    right: -10px;
    width: 40px;
    height: 40px;
    background: rgba(100, 212, 255, 0.9);
    border: none;
    border-radius: 50%;
    color: white;
    font-size: 20px;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.3s ease;
}

.phone-modal-close:hover {
    background: rgba(100, 212, 255, 1);
    transform: scale(1.1);
}

/* Tablet enlargement modal */
.tablet-modal {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 2000;
    background: rgba(0, 0, 0, 0.8);
    backdrop-filter: blur(10px);
    opacity: 0;
    transition: opacity 0.3s ease;
}

.tablet-modal-content {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    background: #1a1a2e;
    border-radius: 24px;
    padding: 16px;
    border: 4px solid rgba(100, 212, 255, 0.3);
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.5);
}

.tablet-modal-screen {
    width: 800px;
    height: 450px;
    background-image: url('img/hh-pk.jpg');
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
    border-radius: 16px;
    border: 3px solid #000;
}

.tablet-modal-screen.driver-screen {
    background-image: url('img/drivers.jpg');
}

.tablet-modal-close {
    position: absolute;
    top: -10px;
    right: -10px;
    width: 40px;
    height: 40px;
    background: rgba(100, 212, 255, 0.9);
    border: none;
    border-radius: 50%;
    color: white;
    font-size: 20px;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.3s ease;
}

.tablet-modal-close:hover {
    background: rgba(100, 212, 255, 1);
    transform: scale(1.1);
}

.case-timeline {
    margin-bottom: 24px;
}

.timeline-item {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 12px 16px;
    background: rgba(100, 212, 255, 0.08);
    border: 1px solid rgba(100, 212, 255, 0.2);
    border-radius: 12px;
    font-size: 14px;
    font-weight: 500;
    color: #64d4ff;
}

.timeline-icon {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 24px;
    height: 24px;
    background: rgba(100, 212, 255, 0.15);
    border-radius: 50%;
    color: #64d4ff;
    flex-shrink: 0;
}

.timeline-item span {
    color: rgba(255, 255, 255, 0.9);
    font-weight: 600;
}

/* ===== MOBILE PORTFOLIO OPTIMIZATIONS ===== */
@media (max-width: 768px) {
    /* Case images height for mobile */
    .case-card[data-case="measure"] .case-image,
    .case-card[data-case="hh"] .case-image,
    .case-card[data-case="driver"] .case-image,
    .case-card[data-case="ucet"] .case-image,
    .case-card[data-case="calendar"] .case-image {
        height: 180px;
    }
    
    /* Mobile phone preview size for mobile */
    .case-card[data-case="measure"] .preview-phone {
        width: 70px;
        height: 150px;
    }
    
    /* Phone modal screen size for mobile */
    .phone-modal-screen {
        width: 240px;
        height: 480px;
    }
    
    .phone-modal-content {
        padding: 12px;
        border-radius: 16px;
    }
    
    /* Tablet modal for mobile - make it smaller */
    .tablet-modal-screen {
        width: 320px;
        height: 200px;
    }
    
    .tablet-modal-content {
        padding: 12px;
        border-radius: 16px;
    }
    
    /* Adjust HH tablet preview for mobile */
    .case-card[data-case="hh"] .preview-tablet {
        width: 180px;
        height: 105px;
    }
    

}

/* Demo Modal Styles */
.demo-modal {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    z-index: 10000;
    display: none;
    opacity: 0;
    transition: opacity 0.3s ease-in-out;
}

.demo-modal.active {
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 1;
}

.demo-modal-backdrop {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(0, 0, 0, 0.8);
    backdrop-filter: blur(10px);
}

.demo-modal-content {
    position: relative;
    width: 95vw;
    height: 90vh;
    max-width: 1400px;
    max-height: 650px;
    background: #1a1a1a;
    border-radius: 16px;
    border: 1px solid rgba(100, 212, 255, 0.2);
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.5);
    display: flex;
    flex-direction: column;
    overflow: hidden;
}

/* Desktop larger max height for demo modal */
@media (min-width: 769px) {
    .demo-modal-content {
        max-height: 850px;
    }
}

.demo-modal-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 20px 24px;
    border-bottom: 1px solid rgba(100, 212, 255, 0.1);
    background: rgba(100, 212, 255, 0.05);
}

.demo-modal-header h3 {
    color: #64d4ff;
    font-size: 18px;
    font-weight: 600;
    margin: 0;
}

.demo-modal-close {
    background: none;
    border: none;
    color: #64d4ff;
    font-size: 24px;
    cursor: pointer;
    padding: 8px;
    border-radius: 6px;
    transition: all 0.2s ease;
}

.demo-modal-close:hover {
    background: rgba(100, 212, 255, 0.1);
    transform: scale(1.1);
}

.demo-modal-body {
    flex: 1;
    padding: 0;
    position: relative;
}

.demo-modal-body iframe {
    width: 100%;
    height: 100%;
    border: none;
    border-radius: 0 0 16px 16px;
}



/* Mobile responsiveness for demo modal */
@media (max-width: 768px) {
    .demo-modal-content {
        width: 98vw;
        height: 95vh;
        border-radius: 12px;
    }
    
    .demo-modal-header {
        padding: 16px 20px;
    }
    
    .demo-modal-header h3 {
        font-size: 16px;
    }
    
    .demo-modal-close {
        font-size: 20px;
        padding: 6px;
    }
}

/* Game Modal Styles */
.game-modal {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.8);
    display: none;
    align-items: center;
    justify-content: center;
    z-index: 10000;
    backdrop-filter: blur(5px);
}

.game-modal.active {
    display: flex;
    animation: fadeIn 0.3s ease-out;
}

.game-modal-backdrop {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    cursor: pointer;
}

.game-modal-content {
    background: #1a1a1a;
    border-radius: 20px;
    width: 98%;
    max-width: 1400px;
    height: 95vh;
    max-height: 1000px;
    position: relative;
    overflow: hidden;
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.5);
    border: 1px solid rgba(100, 212, 255, 0.2);
    animation: scaleIn 0.3s ease-out;
}

@keyframes scaleIn {
    from {
        transform: scale(0.9);
        opacity: 0;
    }
    to {
        transform: scale(1);
        opacity: 1;
    }
}

.game-modal-header {
    padding: 15px 25px;
    border-bottom: 1px solid rgba(100, 212, 255, 0.2);
    display: flex;
    justify-content: space-between;
    align-items: center;
    background: linear-gradient(135deg, rgba(100, 212, 255, 0.1) 0%, rgba(155, 93, 229, 0.1) 100%);
    min-height: 60px;
}

.game-modal-header h3 {
    color: #64d4ff;
    font-size: 20px;
    font-weight: 700;
    margin: 0;
}

.game-modal-close {
    background: none;
    border: none;
    color: #64d4ff;
    font-size: 28px;
    cursor: pointer;
    padding: 6px;
    transition: all 0.3s ease;
    border-radius: 50%;
    width: 40px;
    height: 40px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.game-modal-close:hover {
    background: rgba(100, 212, 255, 0.1);
    transform: scale(1.1);
}

.game-modal-body {
    height: calc(100% - 60px);
    padding: 0;
}

.game-modal-body iframe {
    width: 100%;
    height: 100%;
    border: none;
    background: #0a0a0a;
}

@media (max-width: 768px) {
    .game-modal-content {
        width: 100vw;
        height: 100vh;
        border-radius: 0;
        max-width: none;
        max-height: none;
        overflow: visible;
        display: flex;
        flex-direction: column;
        padding-top: env(safe-area-inset-top, 20px);
    }
    
    .game-modal-header {
        padding: 8px 12px;
        min-height: 44px;
        flex-shrink: 0;
        position: relative;
        z-index: 1;
        display: flex;
        justify-content: space-between;
        align-items: center;
    }
    
    .game-modal-header h3 {
        font-size: 16px;
    }
    
    .game-modal-close {
        font-size: 20px;
        width: 32px;
        height: 32px;
    }
    
    .game-modal-body {
        flex: 1;
        padding: 0;
        overflow: hidden;
    }
    
    .game-modal-body iframe {
        width: 100%;
        height: 100%;
        border: none;
    }
    
    .game-button {
        width: 40px;
        height: 40px;
    }
}

/* Дополнительные стили для очень маленьких экранов */
@media (max-width: 480px) {
    .game-modal-content {
        padding-top: env(safe-area-inset-top, 25px);
    }
    
    .game-modal-header {
        padding: 6px 10px;
        min-height: 36px;
        flex-shrink: 0;
    }
    
    .game-modal-header h3 {
        font-size: 14px;
    }
    
    .game-modal-close {
        font-size: 18px;
        width: 28px;
        height: 28px;
    }
}