/* Reset and Base Styles */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

:root {
    /* Updated colors - teal and new burgundy */
    --primary-color: #3fc1cc;
    --secondary-color: #b62257; /* New burgundy color */
    --primary-light: rgba(63, 193, 204, 0.12);
    --secondary-light: rgba(182, 34, 87, 0.12);
    --bg-light: #f8f9fb;
    --bg-white: #ffffff;
    --bg-section: #f0f2f5;
    --text-primary: #1a1a2e;
    --text-secondary: #5a5a7a;
    --text-muted: #8a8aa0;
    --border-color: rgba(0, 0, 0, 0.08);
    --gradient-1: linear-gradient(135deg, #3fc1cc 0%, #2da8b3 100%);
    --gradient-2: linear-gradient(135deg, #b62257 0%, #9a1d49 100%); /* New burgundy gradient */
    --gradient-mixed: linear-gradient(135deg, #3fc1cc 0%, #b62257 100%);
    --glass-bg: rgba(255, 255, 255, 0.6);
    --glass-bg-hover: rgba(255, 255, 255, 0.92);
    --glass-border: rgba(255, 255, 255, 0.4);
    --shadow-soft: 0 8px 32px rgba(0, 0, 0, 0.08);
    --shadow-glow: 0 8px 40px rgba(63, 193, 204, 0.25);
    --shadow-glow-secondary: 0 8px 40px rgba(182, 34, 87, 0.25);
}

html {
    scroll-behavior: smooth;
}

body {
    font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
    background-color: var(--bg-light);
    color: var(--text-primary);
    line-height: 1.6;
    overflow-x: hidden;
}

/* Control Panel - removed */

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

/* Navigation - Floating Island Style */
.navbar {
    position: fixed;
    top: 20px;
    left: 50%;
    transform: translateX(-50%);
    width: auto;
    max-width: 90%;
    z-index: 9999;
    background: rgba(255, 255, 255, 0.98);
    backdrop-filter: blur(25px);
    -webkit-backdrop-filter: blur(25px);
    border: 1px solid rgba(255, 255, 255, 0.9);
    border-radius: 20px;
    box-shadow: 
        0 4px 24px rgba(0, 0, 0, 0.08),
        0 8px 48px rgba(0, 0, 0, 0.04),
        inset 0 1px 0 rgba(255, 255, 255, 1);
    transition: all 0.3s ease;
    padding: 0.75rem 1.8rem;
}

.navbar.scrolled {
    background: rgba(255, 255, 255, 0.99);
    box-shadow: 
        0 8px 32px rgba(0, 0, 0, 0.12),
        0 16px 64px rgba(0, 0, 0, 0.06),
        inset 0 1px 0 rgba(255, 255, 255, 1);
}

.nav-content {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 3rem;
    min-height: 40px;
}

.logo-img {
    height: 32px;
    width: auto;
    display: block;
}

.nav-menu {
    display: flex;
    list-style: none;
    gap: 2rem;
}

.nav-link {
    color: var(--text-primary);
    text-decoration: none;
    font-weight: 500;
    font-size: 0.95rem;
    transition: color 0.3s ease;
    position: relative;
}

.nav-link:hover {
    color: var(--secondary-color);
}

.nav-actions {
    display: flex;
    align-items: center;
    gap: 1.5rem;
}

/* Phone Icon with Tooltip */
.phone-icon-wrapper {
    position: relative;
}

.phone-icon-btn {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 40px;
    height: 40px;
    background: var(--primary-light);
    border-radius: 10px;
    transition: all 0.3s ease;
}

.phone-icon-btn svg {
    width: 20px;
    height: 20px;
    stroke: var(--primary-color);
    transition: stroke 0.3s ease;
}

.phone-icon-btn:hover {
    background: var(--primary-color);
}

.phone-icon-btn:hover svg {
    stroke: #ffffff;
}

.phone-tooltip {
    position: absolute;
    top: calc(100% + 10px);
    right: 0;
    background: rgba(255, 255, 255, 0.98);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    border-radius: 16px;
    padding: 1.25rem;
    min-width: 220px;
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.12);
    border: 1px solid rgba(255, 255, 255, 0.9);
    opacity: 0;
    visibility: hidden;
    transform: translateY(-10px);
    transition: all 0.3s ease;
    z-index: 1001;
}

.phone-icon-wrapper:hover .phone-tooltip {
    opacity: 1;
    visibility: visible;
    transform: translateY(0);
}

.phone-tooltip h4 {
    margin-bottom: 0.75rem;
    color: var(--text-primary);
    font-size: 0.95rem;
}

.phone-tooltip p {
    color: var(--text-secondary);
    margin-bottom: 0.4rem;
    font-size: 0.9rem;
}

.phone-tooltip a {
    color: var(--primary-color);
    text-decoration: none;
    font-weight: 600;
}

.phone-tooltip a:hover {
    color: var(--secondary-color);
}

.navbar .btn-primary {
    padding: 0.6rem 1.25rem;
    font-size: 0.9rem;
    border-radius: 12px;
}

.navbar .btn-primary:hover {
    transform: translateY(-2px) scale(1.02);
}

/* Buttons - using new burgundy color */
.btn-primary {
    background: var(--gradient-2);
    color: #ffffff;
    border: none;
    padding: 0.75rem 1.5rem;
    border-radius: 12px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    font-size: 0.95rem;
    text-decoration: none;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    white-space: nowrap;
    position: relative;
    overflow: hidden;
}

.btn-primary::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255,255,255,0.3), transparent);
    transition: left 0.5s ease;
}

.btn-primary:hover {
    transform: translateY(-3px) scale(1.02);
    filter: brightness(1.1);
}

.btn-primary:hover::before {
    left: 100%;
}

.btn-primary:active {
    transform: translateY(-1px) scale(0.98);
}

.btn-secondary {
    background: transparent;
    color: var(--secondary-color);
    border: 2px solid var(--secondary-color);
    padding: 0.75rem 1.5rem;
    border-radius: 12px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    font-size: 0.95rem;
    text-decoration: none;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    white-space: nowrap;
    position: relative;
    overflow: hidden;
}

.btn-secondary::before {
    content: '';
    position: absolute;
    top: 50%;
    left: 50%;
    width: 0;
    height: 0;
    background: var(--secondary-color);
    border-radius: 50%;
    transform: translate(-50%, -50%);
    transition: width 0.4s ease, height 0.4s ease;
    z-index: -1;
}

.btn-secondary:hover {
    color: #ffffff !important;
    transform: translateY(-3px) scale(1.02);
    border-color: var(--secondary-color);
}

.btn-secondary:hover span,
.btn-secondary:hover * {
    color: #ffffff !important;
}

.btn-secondary:hover::before {
    width: 300%;
    height: 300%;
}

.btn-secondary:active {
    transform: translateY(-1px) scale(0.98);
}

/* Teal variant for btn-secondary */
.btn-secondary.btn-teal {
    color: var(--primary-color);
    border-color: var(--primary-color);
}

.btn-secondary.btn-teal::before {
    background: var(--primary-color);
}

.btn-secondary.btn-teal:hover {
    border-color: var(--primary-color);
}

.btn-large {
    padding: 1rem 2rem;
    font-size: 1.1rem;
}

/* Responsive buttons */
@media (max-width: 480px) {
    .btn-large {
        padding: 0.85rem 1.5rem;
        font-size: 0.95rem;
    }
    
    .hero-actions {
        gap: 1rem;
    }
}

.btn-block {
    width: 100%;
}

.menu-toggle {
    display: none;
    flex-direction: column;
    background: transparent;
    border: none;
    cursor: pointer;
    gap: 5px;
}

.menu-toggle span {
    width: 25px;
    height: 3px;
    background: var(--text-primary);
    border-radius: 3px;
    transition: all 0.3s ease;
}

/* Burger Menu Button in nav-actions */
.burger-menu-btn {
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    width: 40px;
    height: 40px;
    background: var(--bg-section);
    border: 1px solid var(--border-color);
    border-radius: 10px;
    cursor: pointer;
    gap: 5px;
    padding: 10px;
    transition: all 0.3s ease;
}

.burger-menu-btn span {
    width: 18px;
    height: 2px;
    background: var(--text-primary);
    border-radius: 2px;
    transition: all 0.3s ease;
}

.burger-menu-btn:hover {
    background: var(--secondary-color);
    border-color: var(--secondary-color);
}

.burger-menu-btn:hover span {
    background: #ffffff;
}

/* Side Menu Toggle - single line, burgundy */
.side-menu-toggle {
    position: fixed;
    right: 0;
    top: 50%;
    transform: translateY(-50%);
    z-index: 1003;
    width: 40px;
    height: 100px;
    background: var(--gradient-2);
    border-radius: 12px 0 0 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: right 0.4s cubic-bezier(0.4, 0, 0.2, 1), width 0.3s ease;
    box-shadow: -4px 0 20px rgba(182, 34, 87, 0.3);
    writing-mode: vertical-rl;
    text-orientation: mixed;
}

.side-menu-toggle:hover {
    width: 48px;
}

.side-menu-toggle span {
    color: #ffffff;
    font-weight: 600;
    font-size: 0.85rem;
    letter-spacing: 1px;
}

/* When menu is open, move the main toggle with the menu */
.side-menu-toggle.menu-open {
    right: 380px;
}

/* Side menu toggle inside - hidden, we use main toggle only */
.side-menu-toggle-inside {
    display: none;
}

.side-menu {
    position: fixed;
    right: -420px;
    top: 0;
    bottom: 0;
    width: 380px;
    background: rgba(255, 255, 255, 0.98);
    backdrop-filter: blur(20px);
    z-index: 1002;
    transition: right 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    box-shadow: -10px 0 50px rgba(0, 0, 0, 0.15);
    overflow-y: auto;
}

.side-menu.active {
    right: 0;
}

/* Body menu-active - prevent scrolling */
body.menu-active {
    overflow: hidden;
}

.side-menu-content {
    padding: 2rem;
    padding-left: 60px;
}

.side-menu-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 2rem;
    padding-bottom: 1rem;
    border-bottom: 1px solid var(--border-color);
}

.side-menu-close {
    width: 40px;
    height: 40px;
    border-radius: 10px;
    background: var(--bg-section);
    border: none;
    cursor: pointer;
    font-size: 1.5rem;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.3s ease;
    color: var(--text-primary);
}

.side-menu-close:hover {
    background: var(--secondary-color);
    color: #ffffff;
}

.side-menu-nav {
    list-style: none;
    margin-bottom: 2rem;
}

.side-menu-nav li {
    margin-bottom: 0.25rem;
}

.side-menu-nav li.submenu-item {
    padding-left: 1rem;
}

.side-menu-nav a {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    padding: 0.85rem 1rem;
    color: var(--text-primary);
    text-decoration: none;
    font-weight: 500;
    border-radius: 12px;
    transition: all 0.3s ease;
}

.side-menu-nav a:hover {
    background: var(--secondary-light);
    color: var(--secondary-color);
    transform: translateX(5px);
}

/* Beautiful colored arrows */
.nav-arrow {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 24px;
    height: 24px;
    background: var(--gradient-2);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    font-weight: 700;
    font-size: 1rem;
}

.nav-arrow.sub {
    font-size: 0.6rem;
    background: var(--gradient-1);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.side-menu-contacts {
    background: var(--bg-section);
    border-radius: 16px;
    padding: 1.5rem;
}

.side-menu-contacts h4 {
    margin-bottom: 1rem;
    color: var(--text-primary);
}

.side-menu-contacts p {
    color: var(--text-secondary);
    margin-bottom: 0.5rem;
    font-size: 0.95rem;
}

.side-menu-contacts a {
    color: var(--secondary-color);
    text-decoration: none;
    font-weight: 600;
}

.side-menu-overlay {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(0, 0, 0, 0.5);
    z-index: 1001;
    opacity: 0;
    visibility: hidden;
    transition: all 0.3s ease;
}

.side-menu-overlay.active {
    opacity: 1;
    visibility: visible;
}

/* Hero Section */
.hero {
    position: relative;
    min-height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 120px 0 80px;
    overflow: hidden;
    background: linear-gradient(180deg, #f8f9fb 0%, #e8f4f5 100%);
    transition: background 0.5s ease;
}

.hero.no-bg {
    background: #ffffff;
}

.hero-background {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    z-index: 0;
    overflow: hidden;
}

/* When no-bg is active, hide only the gradient pattern, not the spheres */
.hero.no-bg .hero-background::before {
    opacity: 0;
}

/* Abstract Background Pattern */
.hero-background::before {
    content: '';
    position: absolute;
    top: -50%;
    left: -50%;
    width: 200%;
    height: 200%;
    background: 
        radial-gradient(circle at 20% 30%, rgba(63, 193, 204, var(--bg-intensity, 0.06)) 0%, transparent 40%),
        radial-gradient(circle at 80% 70%, rgba(182, 34, 87, var(--bg-intensity, 0.06)) 0%, transparent 40%),
        radial-gradient(circle at 60% 20%, rgba(63, 193, 204, var(--bg-intensity-secondary, 0.04)) 0%, transparent 30%);
    animation: bgMove 30s linear infinite;
    transition: opacity 0.5s ease;
}

/* Background brightness levels */
.hero[data-brightness="1"] {
    --bg-intensity: 0.02;
    --bg-intensity-secondary: 0.01;
    background: linear-gradient(180deg, #fcfcfc 0%, #f5f9fa 100%);
}

.hero[data-brightness="2"] {
    --bg-intensity: 0.04;
    --bg-intensity-secondary: 0.025;
    background: linear-gradient(180deg, #fafbfc 0%, #eef5f6 100%);
}

.hero[data-brightness="3"] {
    --bg-intensity: 0.05;
    --bg-intensity-secondary: 0.035;
    background: linear-gradient(180deg, #f9fafb 0%, #ebf2f3 100%);
}

.hero[data-brightness="4"] {
    --bg-intensity: 0.06;
    --bg-intensity-secondary: 0.04;
    background: linear-gradient(180deg, #f8f9fb 0%, #e8f4f5 100%);
}

.hero[data-brightness="5"] {
    --bg-intensity: 0.09;
    --bg-intensity-secondary: 0.06;
    background: linear-gradient(180deg, #f5f8fa 0%, #dceef0 100%);
}

@keyframes bgMove {
    0% { transform: rotate(0deg); }
    100% { transform: rotate(360deg); }
}

/* Floating Spheres - glass effect */
.floating-spheres {
    position: absolute;
    width: 100%;
    height: 100%;
    pointer-events: none;
}

.sphere {
    position: absolute;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
    font-weight: 600;
    font-size: 0.85rem;
    text-align: center;
    padding: 1rem;
    cursor: default;
    pointer-events: auto;
    will-change: transform;
    transition: box-shadow 0.3s ease;
    /* Glass effect */
    background: linear-gradient(135deg, 
        rgba(255, 255, 255, 0.95) 0%, 
        rgba(255, 255, 255, 0.7) 50%, 
        rgba(255, 255, 255, 0.85) 100%);
    border: 1px solid rgba(255, 255, 255, 0.6);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
}

/* Glare removed - clean glass spheres */

.sphere::after {
    content: '';
    position: absolute;
    inset: 0;
    border-radius: 50%;
    pointer-events: none;
}

.sphere:hover {
    box-shadow: 
        0 8px 30px rgba(63, 193, 204, 0.25),
        inset 0 0 40px rgba(255, 255, 255, 0.5);
}

/* Overlap mode - spheres can overlap with glass transparency */
.floating-spheres.overlap-mode .sphere {
    background: linear-gradient(135deg, 
        rgba(255, 255, 255, 0.3) 0%, 
        rgba(255, 255, 255, 0.15) 50%, 
        rgba(255, 255, 255, 0.25) 100%);
    backdrop-filter: blur(6px);
    -webkit-backdrop-filter: blur(6px);
}

/* Keep soft colored borders in overlap mode */
.floating-spheres.overlap-mode .sphere-primary {
    border: 1px solid rgba(63, 193, 204, 0.25);
    box-shadow: 
        0 4px 20px rgba(63, 193, 204, 0.12),
        inset 0 0 20px rgba(63, 193, 204, 0.06);
}

.floating-spheres.overlap-mode .sphere-secondary {
    border: 1px solid rgba(182, 34, 87, 0.25);
    box-shadow: 
        0 4px 20px rgba(182, 34, 87, 0.12),
        inset 0 0 20px rgba(182, 34, 87, 0.06);
}

.floating-spheres.overlap-mode .sphere-mixed {
    border: 1px solid rgba(100, 80, 120, 0.25);
    box-shadow: 
        0 4px 20px rgba(100, 80, 120, 0.12),
        inset 0 0 20px rgba(100, 80, 120, 0.06);
}

/* Remove glares in overlap mode */
.floating-spheres.overlap-mode .sphere::before,
.floating-spheres.overlap-mode .sphere::after {
    display: none;
}

.sphere-primary {
    color: var(--primary-color);
    box-shadow: 
        0 4px 20px rgba(63, 193, 204, 0.15),
        inset 0 0 30px rgba(63, 193, 204, 0.08),
        inset -5px -5px 20px rgba(63, 193, 204, 0.1);
    border-color: rgba(63, 193, 204, 0.3);
}

.sphere-primary::after {
    box-shadow: inset 2px 2px 10px rgba(63, 193, 204, 0.15);
}

.sphere-secondary {
    color: var(--secondary-color);
    box-shadow: 
        0 4px 20px rgba(182, 34, 87, 0.15),
        inset 0 0 30px rgba(182, 34, 87, 0.08),
        inset -5px -5px 20px rgba(182, 34, 87, 0.1);
    border-color: rgba(182, 34, 87, 0.3);
}

.sphere-secondary::after {
    box-shadow: inset 2px 2px 10px rgba(182, 34, 87, 0.15);
}

.sphere-mixed {
    color: #7a5a8a;
    box-shadow: 
        0 4px 20px rgba(100, 80, 120, 0.15),
        inset 0 0 30px rgba(100, 80, 120, 0.08),
        inset -5px -5px 20px rgba(100, 80, 120, 0.1);
    border-color: rgba(100, 80, 120, 0.3);
}

.sphere-mixed::after {
    box-shadow: inset 2px 2px 10px rgba(100, 80, 120, 0.15);
}

.sphere-large { 
    width: 150px; 
    height: 150px; 
    font-size: 0.75rem;
}
.sphere-medium { 
    width: 120px; 
    height: 120px; 
    font-size: 0.7rem;
}
.sphere-small { 
    width: 100px; 
    height: 100px; 
    font-size: 0.65rem; 
}

/* Inner page spheres - main sphere larger */
.sphere-main {
    width: 200px;
    height: 200px;
    font-size: 1.2rem;
    font-weight: 800;
    z-index: 2;
}

.sphere-satellite {
    width: 90px;
    height: 90px;
    font-size: 0.65rem;
}

/* Text fitting in spheres */
.sphere {
    word-break: break-word;
    hyphens: auto;
    line-height: 1.2;
}

/* Page spheres - behind text, free movement */
.page-spheres {
    z-index: 0;
}

.page-spheres .sphere {
    z-index: 0;
}

.hero-content {
    text-align: center;
    z-index: 1;
    max-width: 800px;
    margin: 0 auto;
    position: relative;
    padding: 2rem;
    padding-top: 80px; /* Push content lower */
}

@media (max-width: 1280px) {
    .hero-content {
        max-width: 700px;
        padding: 1.75rem;
    }
}

@media (max-width: 1024px) {
    .hero-content {
        max-width: 600px;
        padding: 1.5rem;
    }
    
    .hero-title {
        font-size: clamp(2rem, 5vw, 3.5rem);
    }
    
    .hero-subtitle {
        font-size: 1rem;
    }
}

/* Hero logo and animated text */
.hero-logo {
    height: 80px;
    width: auto;
    margin-bottom: 2.5rem;
    margin-top: -2rem;
    animation: fadeInUp 1s ease;
    transition: opacity 0.3s ease, height 0.3s ease, margin 0.3s ease;
}

.hero-logo.hidden {
    opacity: 0;
    height: 0;
    margin: 0;
    pointer-events: none;
}

.hero-title {
    font-size: clamp(2.5rem, 6vw, 4.5rem);
    font-weight: 800;
    line-height: 1.1;
    margin-bottom: 1.5rem;
    animation: fadeInUp 1s ease 0.2s both;
}

/* Animated text container - vertical flip animation */
.title-animated {
    display: block;
    position: relative;
    width: 100%;
    height: 1.15em;
    text-align: center;
    overflow: hidden;
}

.cube-wrapper {
    position: absolute;
    left: 0;
    right: 0;
    height: 100%;
    display: flex;
    flex-direction: column;
    transition: transform 0.7s cubic-bezier(0.4, 0, 0.2, 1);
}

.cube-face {
    flex-shrink: 0;
    width: 100%;
    height: 1.15em;
    line-height: 1.15;
    display: flex;
    align-items: center;
    justify-content: center;
    background: var(--gradient-mixed);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    transition: all 0.3s ease;
}

/* No Gradient Mode */
.cube-face.no-gradient {
    background: none;
    -webkit-background-clip: initial;
    -webkit-text-fill-color: initial;
    color: var(--secondary-color);
}

/* Slide positions - each face moves up by its height */
.cube-wrapper[data-position="0"] { transform: translateY(0); }
.cube-wrapper[data-position="1"] { transform: translateY(-1.15em); }
.cube-wrapper[data-position="2"] { transform: translateY(-2.3em); }
.cube-wrapper[data-position="3"] { transform: translateY(-3.45em); }
.cube-wrapper[data-position="4"] { transform: translateY(-4.6em); }

.title-line {
    display: block;
    transition: opacity 0.3s ease, height 0.3s ease;
}

/* Horizontal layout mode */
.hero-content.horizontal-mode {
    display: flex;
    flex-direction: column;
    align-items: center;
}

.hero-content.horizontal-mode .hero-logo-title-wrapper {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 1rem;
    margin-bottom: 1.5rem;
}

.hero-content.horizontal-mode .hero-logo {
    height: 70px;
    margin: 0;
    flex-shrink: 0;
}

.hero-content.horizontal-mode .hero-title {
    margin-bottom: 0;
    display: flex;
    align-items: center;
}

.hero-content.horizontal-mode .title-animated {
    display: block;
    position: relative;
    min-width: 600px;
    height: 1.2em;
    overflow: hidden;
    text-align: left;
}

.hero-content.horizontal-mode .cube-wrapper {
    position: absolute;
    left: 0;
    right: 0;
}

.hero-content.horizontal-mode .cube-face {
    justify-content: flex-start;
    white-space: nowrap;
}

.hero-content.horizontal-mode .title-line {
    display: none;
}

@media (max-width: 1280px) {
    .hero-content.horizontal-mode .title-animated {
        min-width: 500px;
    }
    
    .hero-content.horizontal-mode .hero-logo {
        height: 60px;
    }
    
    .hero-content.horizontal-mode .hero-title {
        font-size: clamp(2rem, 5vw, 3.5rem);
    }
}

@media (max-width: 1024px) {
    .hero-content.horizontal-mode .title-animated {
        min-width: 420px;
    }
    
    .hero-content.horizontal-mode .hero-logo {
        height: 50px;
    }
    
    .hero-content.horizontal-mode .hero-title {
        font-size: clamp(1.8rem, 4.5vw, 3rem);
    }
    
    .hero-content.horizontal-mode .hero-logo-title-wrapper {
        gap: 0.75rem;
    }
}

@media (max-width: 900px) {
    .hero-content.horizontal-mode .title-animated {
        min-width: 350px;
    }
    
    .hero-content.horizontal-mode .hero-logo {
        height: 45px;
    }
    
    .hero-content.horizontal-mode .hero-title {
        font-size: clamp(1.6rem, 4vw, 2.5rem);
    }
}

@media (max-width: 600px) {
    .hero-content.horizontal-mode .title-animated {
        min-width: 260px;
    }
    
    .hero-content.horizontal-mode .hero-logo {
        height: 35px;
    }
    
    .hero-content.horizontal-mode .hero-title {
        font-size: clamp(1.3rem, 5vw, 1.8rem);
    }
    
    .hero-content.horizontal-mode .hero-logo-title-wrapper {
        gap: 0.5rem;
    }
}

.hero-subtitle {
    font-size: clamp(1rem, 2vw, 1.3rem);
    color: var(--text-secondary);
    margin-top: 2rem;
    margin-bottom: 2.5rem;
    line-height: 1.8;
    animation: fadeInUp 1s ease 0.4s both;
}

.hero-actions {
    display: flex;
    gap: 1.5rem;
    justify-content: center;
    margin-top: 1rem;
    margin-bottom: 3rem;
    flex-wrap: wrap;
    animation: fadeInUp 1s ease 0.6s both;
}

.hero-stats {
    display: flex;
    justify-content: center;
    gap: 3rem;
    flex-wrap: wrap;
    animation: fadeInUp 1s ease 0.8s both;
}

.stat-item {
    text-align: center;
}

.stat-number {
    font-size: 2.5rem;
    font-weight: 800;
    background: var(--gradient-1);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    margin-bottom: 0.25rem;
}

.stat-label {
    color: var(--text-secondary);
    font-size: 0.9rem;
    font-weight: 500;
}

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

/* Section Styles */
section {
    padding: 100px 0;
    position: relative;
}

.section-header {
    text-align: center;
    margin-bottom: 4rem;
}

.section-tag {
    display: inline-block;
    padding: 0.5rem 1.5rem;
    background: var(--primary-light);
    border-radius: 50px;
    color: var(--primary-color);
    font-size: 0.9rem;
    font-weight: 600;
    margin-bottom: 1rem;
}

.section-title {
    font-size: clamp(2rem, 4vw, 3rem);
    font-weight: 800;
    margin-bottom: 1rem;
    line-height: 1.2;
    color: var(--text-primary);
}

.section-description {
    font-size: 1.1rem;
    color: var(--text-secondary);
    max-width: 600px;
    margin: 0 auto;
}

/* Abstract Section Backgrounds */
.services {
    background: var(--bg-section);
    position: relative;
}

.services::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: 
        radial-gradient(ellipse at 10% 20%, rgba(63, 193, 204, 0.05) 0%, transparent 50%),
        radial-gradient(ellipse at 90% 80%, rgba(182, 34, 87, 0.05) 0%, transparent 50%);
    pointer-events: none;
}

/* Glass Card */
.glass-card {
    background: var(--glass-bg);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    border: 1px solid var(--glass-border);
    border-radius: 20px;
    padding: 2rem;
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    position: relative;
    overflow: hidden;
}

.glass-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 4px;
    background: var(--gradient-1);
    opacity: 0;
    transition: opacity 0.3s ease;
}

.glass-card:hover {
    background: var(--glass-bg-hover);
    transform: translateY(-8px);
    box-shadow: var(--shadow-glow);
}

.glass-card:hover::before {
    opacity: 1;
}

/* Services Grid */
.services-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 2rem;
    position: relative;
    z-index: 1;
}

.service-card {
    cursor: pointer;
    text-decoration: none;
    color: inherit;
    display: block;
}

.service-icon {
    width: 60px;
    height: 60px;
    background: var(--gradient-1);
    border-radius: 16px;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 1.5rem;
}

.service-icon svg {
    width: 28px;
    height: 28px;
    stroke: #ffffff;
}

.service-title {
    font-size: 1.4rem;
    font-weight: 700;
    margin-bottom: 0.75rem;
    color: var(--text-primary);
}

.service-description {
    color: var(--text-secondary);
    margin-bottom: 1.5rem;
    line-height: 1.7;
}

.service-features {
    list-style: none;
}

.service-features li {
    color: var(--text-secondary);
    padding: 0.4rem 0;
    padding-left: 1.5rem;
    position: relative;
    font-size: 0.95rem;
}

.service-features li::before {
    content: '→';
    position: absolute;
    left: 0;
    color: var(--primary-color);
    font-weight: bold;
}

.service-link {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    color: var(--secondary-color);
    font-weight: 600;
    margin-top: 1rem;
    transition: gap 0.3s ease;
}

.service-link:hover {
    gap: 0.75rem;
}

/* Cases Section */
.cases {
    position: relative;
    background: var(--bg-white);
}

.cases::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: 
        radial-gradient(ellipse at 80% 20%, rgba(63, 193, 204, 0.04) 0%, transparent 40%),
        radial-gradient(ellipse at 20% 80%, rgba(182, 34, 87, 0.04) 0%, transparent 40%);
    pointer-events: none;
}

/* ============================================
   NETFLIX-STYLE HORIZONTAL SCROLL CASES
   ============================================ */

/* Turquoise to Burgundy color palette */
:root {
    --case-color-1: rgba(0, 137, 123, 0.85);    /* Turquoise */
    --case-color-2: rgba(0, 128, 128, 0.85);    /* Teal */
    --case-color-3: rgba(64, 106, 128, 0.85);   /* Steel blue */
    --case-color-4: rgba(102, 85, 128, 0.85);   /* Slate purple */
    --case-color-5: rgba(128, 64, 96, 0.85);    /* Mauve */
    --case-color-6: rgba(153, 51, 85, 0.85);    /* Rose */
    --case-color-7: rgba(178, 34, 64, 0.85);    /* Crimson */
    --case-color-8: rgba(128, 0, 32, 0.85);     /* Burgundy */
}

.cases-grid {
    display: flex;
    gap: 1.5rem;
    overflow-x: auto;
    overflow-y: visible;
    scroll-snap-type: x mandatory;
    scroll-behavior: smooth;
    padding: 2rem 0 3rem 0;
    margin: 0 -2rem;
    padding-left: 2rem;
    padding-right: 2rem;
    -webkit-overflow-scrolling: touch;
    scrollbar-width: none;
    -ms-overflow-style: none;
}

.cases-grid::-webkit-scrollbar {
    display: none;
}

/* Base case card - White background with colored glow */
.case-card {
    flex: 0 0 340px;
    min-height: 420px;
    scroll-snap-align: start;
    cursor: pointer;
    text-decoration: none;
    color: var(--card-text, #1a1a2e);
    display: flex;
    flex-direction: column;
    position: relative;
    border-radius: 24px;
    padding: 2rem;
    background: rgba(255, 255, 255, 0.95);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    border: 2px solid var(--card-border, var(--case-color-1));
    box-shadow: 0 0 30px var(--card-glow, rgba(0, 137, 123, 0.2)),
                0 8px 32px rgba(0, 0, 0, 0.08);
    transition: transform 0.4s ease, box-shadow 0.4s ease, border-color 0.4s ease;
    animation: cardBreathe 5s ease-in-out infinite;
    animation-delay: var(--breathe-delay, 0s);
    overflow: hidden;
}

/* Color assignment for cards - colored border and glow */
.case-card:nth-child(1) { --card-border: var(--case-color-1); --card-glow: rgba(0, 137, 123, 0.25); --card-accent: var(--case-color-1); --breathe-delay: 0s; }
.case-card:nth-child(2) { --card-border: var(--case-color-2); --card-glow: rgba(0, 128, 128, 0.25); --card-accent: var(--case-color-2); --breathe-delay: 0.4s; }
.case-card:nth-child(3) { --card-border: var(--case-color-3); --card-glow: rgba(64, 106, 128, 0.25); --card-accent: var(--case-color-3); --breathe-delay: 0.8s; }
.case-card:nth-child(4) { --card-border: var(--case-color-4); --card-glow: rgba(102, 85, 128, 0.25); --card-accent: var(--case-color-4); --breathe-delay: 0.2s; }
.case-card:nth-child(5) { --card-border: var(--case-color-5); --card-glow: rgba(128, 64, 96, 0.25); --card-accent: var(--case-color-5); --breathe-delay: 0.6s; }
.case-card:nth-child(6) { --card-border: var(--case-color-6); --card-glow: rgba(153, 51, 85, 0.25); --card-accent: var(--case-color-6); --breathe-delay: 1s; }
.case-card:nth-child(7) { --card-border: var(--case-color-7); --card-glow: rgba(178, 34, 64, 0.25); --card-accent: var(--case-color-7); --breathe-delay: 0.3s; }
.case-card:nth-child(8) { --card-border: var(--case-color-8); --card-glow: rgba(128, 0, 32, 0.25); --card-accent: var(--case-color-8); --breathe-delay: 0.7s; }
.case-card:nth-child(9) { --card-border: var(--case-color-1); --card-glow: rgba(0, 137, 123, 0.25); --card-accent: var(--case-color-1); --breathe-delay: 1.1s; }
.case-card:nth-child(10) { --card-border: var(--case-color-2); --card-glow: rgba(0, 128, 128, 0.25); --card-accent: var(--case-color-2); --breathe-delay: 0.5s; }
.case-card:nth-child(11) { --card-border: var(--case-color-3); --card-glow: rgba(64, 106, 128, 0.25); --card-accent: var(--case-color-3); --breathe-delay: 0.9s; }
.case-card:nth-child(12) { --card-border: var(--case-color-4); --card-glow: rgba(102, 85, 128, 0.25); --card-accent: var(--case-color-4); --breathe-delay: 0.1s; }
.case-card:nth-child(13) { --card-border: var(--case-color-5); --card-glow: rgba(128, 64, 96, 0.25); --card-accent: var(--case-color-5); --breathe-delay: 0.45s; }
.case-card:nth-child(14) { --card-border: var(--case-color-6); --card-glow: rgba(153, 51, 85, 0.25); --card-accent: var(--case-color-6); --breathe-delay: 0.85s; }
.case-card:nth-child(15) { --card-border: var(--case-color-7); --card-glow: rgba(178, 34, 64, 0.25); --card-accent: var(--case-color-7); --breathe-delay: 0.25s; }
.case-card:nth-child(16) { --card-border: var(--case-color-8); --card-glow: rgba(128, 0, 32, 0.25); --card-accent: var(--case-color-8); --breathe-delay: 0.65s; }
.case-card:nth-child(17) { --card-border: var(--case-color-1); --card-glow: rgba(0, 137, 123, 0.25); --card-accent: var(--case-color-1); --breathe-delay: 1.05s; }
.case-card:nth-child(18) { --card-border: var(--case-color-2); --card-glow: rgba(0, 128, 128, 0.25); --card-accent: var(--case-color-2); --breathe-delay: 0.35s; }

/* Breathing animation - subtle movement only */
@keyframes cardBreathe {
    0%, 100% { transform: translateY(0); }
    50% { transform: translateY(-6px); }
}

/* Hover blur effect background - follows mouse */
.case-card::after {
    content: '';
    position: absolute;
    inset: 0;
    border-radius: 24px;
    background: radial-gradient(
        circle 150px at var(--mouse-x, 50%) var(--mouse-y, 50%),
        var(--card-glow, rgba(0, 137, 123, 0.25)) 0%,
        transparent 100%
    );
    opacity: 0;
    transition: opacity 0.3s ease;
    pointer-events: none;
    z-index: 0;
}

.case-card:hover::after {
    opacity: 1;
}

/* Hover glow effect */
.case-card:hover {
    transform: translateY(-10px) scale(1.02);
    box-shadow: 0 0 40px var(--card-glow, rgba(0, 137, 123, 0.35)),
                0 20px 60px rgba(0, 0, 0, 0.15);
    border-color: var(--card-border, var(--case-color-1));
}

/* Scroll navigation container */
.cases-scroll-wrapper {
    position: relative;
}

/* Navigation arrows */
.cases-nav {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 1rem;
    margin-top: 2rem;
}

.cases-nav-arrow {
    width: 48px;
    height: 48px;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.9);
    border: 2px solid var(--primary-color);
    color: var(--primary-color);
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.25rem;
    transition: all 0.3s ease;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.1);
}

.cases-nav-arrow:hover {
    background: var(--primary-color);
    color: #fff;
    transform: scale(1.1);
}

.cases-nav-arrow:disabled {
    opacity: 0.4;
    cursor: not-allowed;
}

/* Dot indicators */
.cases-dots {
    display: flex;
    gap: 0.5rem;
    align-items: center;
}

.cases-dot {
    width: 10px;
    height: 10px;
    border-radius: 50%;
    background: rgba(0, 0, 0, 0.15);
    cursor: pointer;
    transition: all 0.3s ease;
}

.cases-dot.active {
    background: var(--primary-color);
    transform: scale(1.2);
}

.cases-dot:hover {
    background: var(--primary-color);
    opacity: 0.7;
}

/* Remove bento classes effect */
.case-card.bento-featured,
.case-card.bento-wide {
    flex: 0 0 340px;
}

/* Hide old case-image structure */
.case-image {
    display: none;
}

/* Unified card content structure */
.case-card .case-content {
    display: flex;
    flex-direction: column;
    flex: 1;
    position: relative;
    z-index: 1;
    padding: 0;
}

/* Force correct order of elements */
.case-card .case-content .case-client-name { order: 1; }
.case-card .case-content .case-title { order: 2; }
.case-card .case-content .case-description { order: 3; }
.case-card .case-content .case-tech { order: 4; }
.case-card .case-content .case-stats { order: 5; }

/* Client name header - badge left, name right on same line */
.case-card .case-content .case-client-name {
    display: flex !important;
    flex-direction: row-reverse !important;
    align-items: center !important;
    justify-content: flex-end !important;
    gap: 0.75rem !important;
    margin-bottom: 0.75rem !important;
}

/* Badge */
.case-card .case-content .case-client-name .case-badge {
    display: inline-flex !important;
    background: var(--card-accent, var(--primary-color)) !important;
    color: #fff !important;
    padding: 0.35rem 0.75rem !important;
    border-radius: 20px !important;
    font-size: 0.65rem !important;
    font-weight: 600 !important;
    text-transform: uppercase !important;
    letter-spacing: 0.5px !important;
    flex-shrink: 0 !important;
    white-space: nowrap !important;
}

/* Name */
.case-card .case-content .case-client-name > span:not(.case-badge) {
    font-size: 1.3rem !important;
    font-weight: 800 !important;
    color: var(--card-accent, var(--primary-color)) !important;
    text-transform: uppercase !important;
    letter-spacing: 0.05em !important;
    line-height: 1.2 !important;
}

/* Title - what was done */
.case-card .case-title {
    font-size: 1.2rem;
    font-weight: 600;
    color: #1a1a2e;
    margin-bottom: 0.75rem;
    line-height: 1.3;
}

/* Description */
.case-card .case-description {
    font-size: 0.9rem;
    color: #555;
    line-height: 1.6;
    margin-bottom: 1rem;
    flex-grow: 1;
}

/* Tech tags */
.case-card .case-tech {
    display: flex;
    flex-wrap: wrap;
    gap: 0.5rem;
    margin-bottom: 1rem;
}

.case-card .tech-tag {
    background: rgba(0, 0, 0, 0.05);
    color: #444;
    padding: 0.35rem 0.75rem;
    border-radius: 12px;
    font-size: 0.75rem;
    font-weight: 500;
    border: 1px solid rgba(0, 0, 0, 0.1);
}

/* Stats block */
.case-card .case-stats {
    display: flex;
    gap: 1rem;
    padding: 1rem;
    margin-top: auto;
    background: rgba(0, 0, 0, 0.03);
    border-radius: 12px;
    border: 1px solid rgba(0, 0, 0, 0.08);
}

.case-card .case-stat {
    text-align: left;
}

.case-card .case-stat-value {
    font-size: 1.25rem;
    font-weight: 700;
    color: var(--card-accent, var(--primary-color));
}

.case-card .case-stat-label {
    font-size: 0.7rem;
    color: #777;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

/* Responsive styles for horizontal scroll */
@media (max-width: 1200px) {
    .case-card {
        flex: 0 0 320px;
        min-height: 400px;
    }
}

@media (max-width: 992px) {
    .case-card {
        flex: 0 0 300px;
        min-height: 380px;
        padding: 1.5rem;
    }
    
    .case-card .case-client-name > span:first-child {
        font-size: 1.5rem;
    }
    
    .case-title {
        font-size: 1.1rem;
    }
}

@media (max-width: 768px) {
    .cases-grid {
        gap: 1rem;
        padding-left: 1rem;
        padding-right: 1rem;
        margin: 0 -1rem;
    }
    
    .case-card {
        flex: 0 0 280px;
        min-height: 360px;
        padding: 1.25rem;
    }
    
    .case-card .case-client-name > span:first-child {
        font-size: 1.25rem;
    }
    
    .case-card .case-badge {
        font-size: 0.65rem;
        padding: 0.25rem 0.6rem;
    }
    
    .case-title {
        font-size: 1rem;
    }
    
    .case-description {
        font-size: 0.85rem;
    }
    
    .tech-tag {
        font-size: 0.7rem;
        padding: 0.25rem 0.5rem;
    }
    
    .case-stat-value {
        font-size: 1rem;
    }
    
    .case-stat-label {
        font-size: 0.65rem;
    }
}

@media (max-width: 480px) {
    .case-card {
        flex: 0 0 260px;
        min-height: 340px;
        padding: 1rem;
    }
    
    .case-card .case-client-name > span:first-child {
        font-size: 1.1rem;
    }
    
    .case-card .case-title {
        font-size: 0.95rem;
    }
    
    .case-stats {
        gap: 1rem;
    }
}

/* CTA card - separate styling - always outside scroll */

.case-image {
    position: relative;
    height: 200px;
    background: var(--gradient-1);
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: hidden;
    border-radius: 16px 16px 0 0;
    margin: -2rem -2rem 1.5rem -2rem;
}

/* Screenshot image in case card */
.case-screenshot {
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: center top;
    transition: transform 0.5s cubic-bezier(0.25, 0.46, 0.45, 0.94);
}

.case-card:hover .case-screenshot {
    transform: scale(1.05);
}

/* Featured card screenshot adjustments */
.case-card.bento-featured .case-screenshot {
    object-position: center center;
}

/* Client Logo in Case Card */
.case-logo {
    width: 140px;
    height: 70px;
    object-fit: contain;
    filter: brightness(0) invert(1);
    opacity: 0.95;
    z-index: 2;
    transition: all 0.4s ease;
    position: relative;
}

.case-logo.dark {
    filter: none;
}

.case-logo.light {
    filter: brightness(0) invert(1);
}

.case-card:hover .case-logo {
    transform: scale(1.08);
    opacity: 1;
}

/* Category Patterns */
.case-pattern {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    opacity: 0.15;
    z-index: 1;
    transition: opacity 0.4s ease;
}

.case-card:hover .case-pattern {
    opacity: 0.25;
}

/* Screenshot Placeholder */
/* ============================================
   CREATIVE CASE CARD DESIGN - No Screenshots
   Animated Mesh + Typography + Floating Orbs
   ============================================ */

/* Case visual container */
.case-visual {
    position: absolute;
    inset: 0;
    overflow: hidden;
    z-index: 1;
}

/* White background with subtle gradient */
.case-mesh {
    position: absolute;
    inset: 0;
    background: linear-gradient(135deg, #fafafa 0%, #f5f5f5 100%);
    opacity: 1;
}

/* Floating orbs in case card */
.case-orbs {
    position: absolute;
    inset: 0;
    pointer-events: none;
    z-index: 2;
}

.case-orb {
    position: absolute;
    border-radius: 50%;
    background: var(--orb-color, rgba(0, 137, 123, 0.25));
    backdrop-filter: blur(8px);
    border: 1px solid var(--orb-border, rgba(0, 137, 123, 0.3));
    box-shadow: 0 4px 20px var(--orb-shadow, rgba(0, 137, 123, 0.15));
    animation: orbFloat 6s ease-in-out infinite;
}

/* Category-specific orb colors */
[data-category="saas"] .case-orb { 
    --orb-color: rgba(102, 126, 234, 0.3); 
    --orb-border: rgba(102, 126, 234, 0.4);
    --orb-shadow: rgba(102, 126, 234, 0.2);
}
[data-category="crm"] .case-orb { 
    --orb-color: rgba(240, 147, 251, 0.3); 
    --orb-border: rgba(240, 147, 251, 0.4);
    --orb-shadow: rgba(240, 147, 251, 0.2);
}
[data-category="landing"] .case-orb { 
    --orb-color: rgba(79, 172, 254, 0.3); 
    --orb-border: rgba(79, 172, 254, 0.4);
    --orb-shadow: rgba(79, 172, 254, 0.2);
}
[data-category="web"] .case-orb { 
    --orb-color: rgba(67, 233, 123, 0.3); 
    --orb-border: rgba(67, 233, 123, 0.4);
    --orb-shadow: rgba(67, 233, 123, 0.2);
}
[data-category="marketing"] .case-orb { 
    --orb-color: rgba(250, 112, 154, 0.3); 
    --orb-border: rgba(250, 112, 154, 0.4);
    --orb-shadow: rgba(250, 112, 154, 0.2);
}
[data-category="analytics"] .case-orb { 
    --orb-color: rgba(161, 140, 209, 0.3); 
    --orb-border: rgba(161, 140, 209, 0.4);
    --orb-shadow: rgba(161, 140, 209, 0.2);
}
[data-category="automation"] .case-orb { 
    --orb-color: rgba(48, 207, 208, 0.3); 
    --orb-border: rgba(48, 207, 208, 0.4);
    --orb-shadow: rgba(48, 207, 208, 0.2);
}
[data-category="mobile"] .case-orb { 
    --orb-color: rgba(94, 231, 223, 0.3); 
    --orb-border: rgba(94, 231, 223, 0.4);
    --orb-shadow: rgba(94, 231, 223, 0.2);
}
[data-category="ai"] .case-orb { 
    --orb-color: rgba(196, 113, 245, 0.3); 
    --orb-border: rgba(196, 113, 245, 0.4);
    --orb-shadow: rgba(196, 113, 245, 0.2);
}
[data-category="design"] .case-orb { 
    --orb-color: rgba(12, 52, 131, 0.25); 
    --orb-border: rgba(12, 52, 131, 0.35);
    --orb-shadow: rgba(12, 52, 131, 0.15);
}
[data-category="fitness"] .case-orb { 
    --orb-color: rgba(255, 107, 107, 0.3); 
    --orb-border: rgba(255, 107, 107, 0.4);
    --orb-shadow: rgba(255, 107, 107, 0.2);
}
[data-category="bot"] .case-orb { 
    --orb-color: rgba(0, 136, 204, 0.3); 
    --orb-border: rgba(0, 136, 204, 0.4);
    --orb-shadow: rgba(0, 136, 204, 0.2);
}

.case-orb:nth-child(1) {
    width: 60px;
    height: 60px;
    top: 15%;
    left: 10%;
    animation-delay: 0s;
}

.case-orb:nth-child(2) {
    width: 40px;
    height: 40px;
    top: 60%;
    left: 70%;
    animation-delay: -2s;
}

.case-orb:nth-child(3) {
    width: 30px;
    height: 30px;
    top: 25%;
    right: 15%;
    animation-delay: -4s;
}

.case-orb:nth-child(4) {
    width: 50px;
    height: 50px;
    bottom: 20%;
    left: 25%;
    animation-delay: -1s;
}

.case-orb:nth-child(5) {
    width: 25px;
    height: 25px;
    top: 50%;
    left: 50%;
    animation-delay: -3s;
}

@keyframes orbFloat {
    0%, 100% { transform: translate(0, 0); }
    25% { transform: translate(8px, -12px); }
    50% { transform: translate(-5px, 8px); }
    75% { transform: translate(10px, 5px); }
}

.case-card:hover .case-orb {
    animation-duration: 3s;
}

/* OLD CLIENT NAME STYLES REMOVED - Now using new horizontal scroll styles */

/* Category-specific gradients */
.case-image[data-category="saas"] { --case-gradient: linear-gradient(135deg, #667eea 0%, #764ba2 100%); }
.case-image[data-category="crm"] { --case-gradient: linear-gradient(135deg, #f093fb 0%, #f5576c 100%); }
.case-image[data-category="landing"] { --case-gradient: linear-gradient(135deg, #4facfe 0%, #00f2fe 100%); }
.case-image[data-category="web"] { --case-gradient: linear-gradient(135deg, #43e97b 0%, #38f9d7 100%); }
.case-image[data-category="marketing"] { --case-gradient: linear-gradient(135deg, #fa709a 0%, #fee140 100%); }
.case-image[data-category="analytics"] { --case-gradient: linear-gradient(135deg, #a18cd1 0%, #fbc2eb 100%); }
.case-image[data-category="automation"] { --case-gradient: linear-gradient(135deg, #30cfd0 0%, #330867 100%); }
.case-image[data-category="mobile"] { --case-gradient: linear-gradient(135deg, #5ee7df 0%, #b490ca 100%); }
.case-image[data-category="ai"] { --case-gradient: linear-gradient(135deg, #c471f5 0%, #fa71cd 100%); }
.case-image[data-category="design"] { --case-gradient: linear-gradient(135deg, #0c3483 0%, #a2b6df 100%); }
.case-image[data-category="fitness"] { --case-gradient: linear-gradient(135deg, #ff6b6b 0%, #feca57 100%); }
.case-image[data-category="bot"] { --case-gradient: linear-gradient(135deg, #0088cc 0%, #00d4aa 100%); }

/* Keep placeholder for fallback */
.case-screenshot-placeholder {
    display: none;
}

/* Hide placeholder when real screenshot is present */
.case-image img.case-screenshot {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    z-index: 2;
    opacity: 0;
    transition: opacity 0.4s ease;
}

.case-card:hover .case-screenshot {
    opacity: 1;
}

/* CTA Card - compact version */
.case-cta-card {
    background: rgba(0, 137, 123, 0.15);
    border: 2px solid rgba(0, 137, 123, 0.3);
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 2.5rem 3rem;
    border-radius: 24px;
    margin-top: 2rem;
}

.case-cta-content {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 1.5rem;
    text-align: center;
}

.case-cta-title {
    font-size: 1.75rem;
    font-weight: 700;
    color: var(--primary-color);
    display: flex;
    align-items: center;
    gap: 0.5rem;
    flex-wrap: wrap;
    justify-content: center;
    margin: 0;
}

.cta-animated-word {
    display: inline-block;
    min-width: 150px;
    padding: 0.25rem 0.75rem;
    background: rgba(0, 137, 123, 0.15);
    border-radius: 8px;
    color: var(--secondary-color);
}

.case-cta-btn {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    padding: 1rem 2rem;
    background: var(--primary-color);
    color: white;
    border-radius: 50px;
    font-weight: 600;
    font-size: 1rem;
    text-decoration: none;
    transition: all 0.3s ease;
    box-shadow: 0 4px 15px rgba(0, 137, 123, 0.3);
}

.case-cta-btn:hover {
    transform: translateY(-3px);
    background: var(--secondary-color);
    box-shadow: 0 8px 25px rgba(0, 137, 123, 0.4);
}

.case-cta-content {
    text-align: center;
    color: white;
}

.case-cta-title {
    font-size: 2rem;
    font-weight: 700;
    color: white;
    margin-bottom: 0.75rem;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
    flex-wrap: wrap;
}

.cta-animated-word {
    display: inline-block;
    min-width: 180px;
    padding: 0.25rem 0.75rem;
    background: rgba(255, 255, 255, 0.2);
    border-radius: 8px;
    animation: ctaWordFade 0.5s ease;
}

@keyframes ctaWordFade {
    0% { opacity: 0; transform: translateY(10px); }
    100% { opacity: 1; transform: translateY(0); }
}

.case-cta-description {
    font-size: 1rem;
    color: rgba(255, 255, 255, 0.9);
    margin-bottom: 1.5rem;
}

.case-cta-form {
    display: flex;
    flex-direction: column;
    gap: 0.75rem;
    max-width: 300px;
    margin: 0 auto;
}

.case-cta-form input,
.case-cta-form textarea {
    width: 100%;
    padding: 0.875rem 1rem;
    border: 2px solid rgba(255, 255, 255, 0.3);
    border-radius: 10px;
    background: rgba(255, 255, 255, 0.1);
    color: white;
    font-size: 0.95rem;
    font-family: inherit;
    transition: all 0.3s ease;
}

.case-cta-form input::placeholder,
.case-cta-form textarea::placeholder {
    color: rgba(255, 255, 255, 0.6);
}

.case-cta-form input:focus,
.case-cta-form textarea:focus {
    outline: none;
    border-color: white;
    background: rgba(255, 255, 255, 0.2);
}

.case-cta-form textarea {
    resize: vertical;
    min-height: 80px;
}

.case-cta-form .btn-primary {
    background: white;
    color: var(--primary-color);
    border: none;
    font-weight: 600;
    margin-top: 0.5rem;
}

.case-cta-form .btn-primary:hover {
    background: rgba(255, 255, 255, 0.9);
    transform: translateY(-2px);
}

/* Case Page Screenshot Hero */
.case-screenshot-hero {
    max-width: 900px;
    margin: 0 auto;
    padding: 2rem;
}

.screenshot-placeholder-large {
    width: 100%;
    height: 400px;
    background: linear-gradient(135deg, #f0f0f0 0%, #e0e0e0 100%);
    border: 3px dashed #ccc;
    border-radius: 16px;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 1rem;
    transition: all 0.3s ease;
}

.screenshot-placeholder-large span {
    font-size: 4rem;
    opacity: 0.5;
}

.screenshot-placeholder-large p {
    font-size: 1rem;
    color: var(--text-secondary);
    text-transform: uppercase;
    letter-spacing: 2px;
}

.screenshot-placeholder-large:hover {
    border-color: var(--primary-color);
    background: linear-gradient(135deg, #e8f5f5 0%, #d0eded 100%);
}

/* Tech Stack Grid on Case Pages */
.tech-stack-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(120px, 1fr));
    gap: 1.5rem;
    max-width: 800px;
    margin: 0 auto;
}

.tech-item {
    text-align: center;
}

.tech-item .tech-tag {
    display: inline-block;
    margin-bottom: 0.5rem;
    font-size: 0.95rem;
}

.tech-item p {
    font-size: 0.8rem;
    color: var(--text-secondary);
}

/* Marketing Pattern - Charts & Growth */
.pattern-marketing {
    background-image: 
        linear-gradient(90deg, rgba(255,255,255,0.08) 1px, transparent 1px),
        linear-gradient(rgba(255,255,255,0.08) 1px, transparent 1px),
        url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='80' height='80' viewBox='0 0 80 80'%3E%3Cpath d='M10 65 L10 45 L25 50 L40 30 L55 38 L70 15' stroke='%23fff' stroke-width='2' fill='none'/%3E%3Ccircle cx='10' cy='65' r='4' fill='%23fff' opacity='0.6'/%3E%3Ccircle cx='25' cy='50' r='4' fill='%23fff' opacity='0.6'/%3E%3Ccircle cx='40' cy='30' r='4' fill='%23fff' opacity='0.6'/%3E%3Ccircle cx='55' cy='38' r='4' fill='%23fff' opacity='0.6'/%3E%3Ccircle cx='70' cy='15' r='4' fill='%23fff' opacity='0.6'/%3E%3Cpath d='M10 65 L10 75 L25 75 L25 58 M40 75 L40 40 M55 75 L55 48 M70 75 L70 25' stroke='%23fff' stroke-width='3' opacity='0.3'/%3E%3C/svg%3E");
    background-size: 25px 25px, 25px 25px, 120px 120px;
}

/* SaaS/SEO Pattern - Data Bars */
.pattern-saas {
    background-image: 
        url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='60' height='60' viewBox='0 0 60 60'%3E%3Crect x='8' y='15' width='10' height='40' rx='2' fill='%23fff' opacity='0.25'/%3E%3Crect x='25' y='25' width='10' height='30' rx='2' fill='%23fff' opacity='0.35'/%3E%3Crect x='42' y='8' width='10' height='47' rx='2' fill='%23fff' opacity='0.45'/%3E%3Ccircle cx='13' cy='8' r='3' fill='%23fff' opacity='0.5'/%3E%3Ccircle cx='30' cy='18' r='3' fill='%23fff' opacity='0.5'/%3E%3Ccircle cx='47' cy='3' r='3' fill='%23fff' opacity='0.5'/%3E%3Cpath d='M13 8 L30 18 L47 3' stroke='%23fff' stroke-width='1' fill='none' opacity='0.4'/%3E%3C/svg%3E"),
        linear-gradient(45deg, transparent 48%, rgba(255,255,255,0.03) 48%, rgba(255,255,255,0.03) 52%, transparent 52%);
    background-size: 80px 80px, 12px 12px;
}

/* Design Pattern - UI Elements */
.pattern-design {
    background-image: 
        url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='100' height='100' viewBox='0 0 100 100'%3E%3Crect x='5' y='5' width='40' height='40' rx='6' stroke='%23fff' stroke-width='1.5' fill='none' opacity='0.5'/%3E%3Crect x='55' y='5' width='40' height='18' rx='4' stroke='%23fff' stroke-width='1' fill='none' opacity='0.4'/%3E%3Crect x='55' y='28' width='40' height='17' rx='4' stroke='%23fff' stroke-width='1' fill='none' opacity='0.4'/%3E%3Crect x='5' y='55' width='90' height='40' rx='6' stroke='%23fff' stroke-width='1.5' fill='none' opacity='0.5'/%3E%3Ccircle cx='80' cy='70' r='12' stroke='%23fff' stroke-width='1' fill='none' opacity='0.6'/%3E%3Ccircle cx='25' cy='25' r='8' fill='%23fff' opacity='0.2'/%3E%3C/svg%3E");
    background-size: 130px 130px;
}

/* Web Development Pattern - Code Brackets */
.pattern-web {
    background-image: 
        url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='80' height='50' viewBox='0 0 80 50'%3E%3Ctext x='5' y='20' fill='%23fff' font-family='monospace' font-size='14' opacity='0.5'%3E%26lt;/%26gt;%3C/text%3E%3Ctext x='45' y='20' fill='%23fff' font-family='monospace' font-size='12' opacity='0.35'%3E{ }%3C/text%3E%3Ctext x='5' y='40' fill='%23fff' font-family='monospace' font-size='10' opacity='0.4'%3Efunction%3C/text%3E%3Ctext x='50' y='40' fill='%23fff' font-family='monospace' font-size='10' opacity='0.3'%3E=&gt;%3C/text%3E%3C/svg%3E"),
        repeating-linear-gradient(0deg, transparent, transparent 10px, rgba(255,255,255,0.02) 10px, rgba(255,255,255,0.02) 11px);
    background-size: 100px 65px, 100% 100%;
}

/* Automation Pattern - Gears & Process */
.pattern-automation {
    background-image: 
        url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='80' height='80' viewBox='0 0 80 80'%3E%3Ccircle cx='40' cy='40' r='18' stroke='%23fff' stroke-width='2' fill='none' opacity='0.5'/%3E%3Ccircle cx='40' cy='40' r='8' stroke='%23fff' stroke-width='1.5' fill='none' opacity='0.6'/%3E%3Cpath d='M40 5 L40 22 M40 58 L40 75 M5 40 L22 40 M58 40 L75 40' stroke='%23fff' stroke-width='2' opacity='0.4'/%3E%3Cpath d='M18 18 L28 28 M52 52 L62 62 M18 62 L28 52 M52 28 L62 18' stroke='%23fff' stroke-width='1.5' opacity='0.3'/%3E%3C/svg%3E");
    background-size: 100px 100px;
}

/* E-commerce Pattern - Shopping */
.pattern-ecommerce {
    background-image: 
        url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='70' height='70' viewBox='0 0 70 70'%3E%3Cpath d='M15 20 L20 20 L28 45 L55 45 L62 25 L25 25' stroke='%23fff' stroke-width='2' fill='none' opacity='0.5'/%3E%3Ccircle cx='32' cy='55' r='5' stroke='%23fff' stroke-width='1.5' fill='none' opacity='0.5'/%3E%3Ccircle cx='50' cy='55' r='5' stroke='%23fff' stroke-width='1.5' fill='none' opacity='0.5'/%3E%3Crect x='35' y='8' width='20' height='12' rx='2' stroke='%23fff' stroke-width='1' fill='none' opacity='0.3'/%3E%3C/svg%3E"),
        linear-gradient(90deg, rgba(255,255,255,0.03) 1px, transparent 1px);
    background-size: 90px 90px, 20px 20px;
}

/* Analytics Pattern - Charts */
.pattern-analytics {
    background-image: 
        url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='100' height='80' viewBox='0 0 100 80'%3E%3Cpath d='M5 70 Q25 50 45 55 T85 25' stroke='%23fff' stroke-width='2.5' fill='none' opacity='0.5'/%3E%3Cpath d='M5 60 Q30 70 50 45 T95 30' stroke='%23fff' stroke-width='1.5' fill='none' opacity='0.3'/%3E%3Ccircle cx='45' cy='55' r='4' fill='%23fff' opacity='0.6'/%3E%3Ccircle cx='85' cy='25' r='4' fill='%23fff' opacity='0.6'/%3E%3Crect x='10' y='10' width='25' height='18' rx='3' stroke='%23fff' stroke-width='1' fill='none' opacity='0.3'/%3E%3C/svg%3E");
    background-size: 130px 100px;
}

/* FitTech Pattern - Fitness */
.pattern-fitness {
    background-image: 
        url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='70' height='70' viewBox='0 0 70 70'%3E%3Cellipse cx='35' cy='35' rx='20' ry='10' stroke='%23fff' stroke-width='2' fill='none' transform='rotate(-25 35 35)' opacity='0.5'/%3E%3Ccircle cx='18' cy='22' r='6' stroke='%23fff' stroke-width='1.5' fill='none' opacity='0.4'/%3E%3Ccircle cx='52' cy='48' r='6' stroke='%23fff' stroke-width='1.5' fill='none' opacity='0.4'/%3E%3Cpath d='M35 15 L35 5 M35 65 L35 55' stroke='%23fff' stroke-width='1.5' opacity='0.3'/%3E%3C/svg%3E");
    background-size: 90px 90px;
}

/* Badge styling is now handled in the horizontal scroll section */

.case-overlay {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(0, 0, 0, 0.6);
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 0;
    transition: opacity 0.3s ease;
}

.case-card:hover .case-overlay {
    opacity: 1;
}

.case-btn {
    background: #ffffff;
    color: var(--text-primary);
    border: none;
    padding: 0.75rem 2rem;
    border-radius: 12px;
    font-weight: 600;
    cursor: pointer;
    transition: transform 0.3s ease;
}

.case-btn:hover {
    transform: scale(1.05);
}

.case-content {
    padding-top: 0;
}

.case-title {
    font-size: 1.3rem;
    font-weight: 700;
    margin-bottom: 0.75rem;
    color: var(--text-primary);
}

.case-description {
    color: var(--text-secondary);
    margin-bottom: 1.25rem;
    line-height: 1.7;
    font-size: 0.95rem;
}

.case-tech {
    display: flex;
    flex-wrap: wrap;
    gap: 0.5rem;
    margin-bottom: 1.25rem;
}

.tech-tag {
    padding: 0.35rem 0.85rem;
    background: var(--primary-light);
    border-radius: 20px;
    font-size: 0.8rem;
    color: var(--primary-color);
    font-weight: 500;
}

.case-stats {
    display: flex;
    gap: 0.75rem;
    padding: 1rem;
    margin-top: auto;
    border: 2px solid var(--primary-color);
    border-radius: 12px;
    background: rgba(63, 193, 204, 0.05);
}

.case-stat {
    flex: 1;
    text-align: center;
    padding: 0.5rem 0.25rem;
}

.case-stat-value {
    font-size: 1.4rem;
    font-weight: 800;
    color: var(--secondary-color);
    margin-bottom: 0.25rem;
    line-height: 1;
}

.case-stat-label {
    font-size: 0.7rem;
    color: var(--text-secondary);
    line-height: 1.2;
}

/* Ensure case cards have equal height and stats at bottom */
.case-card.glass-card {
    display: flex;
    flex-direction: column;
    /* Add volume/depth to case cards */
    background: linear-gradient(145deg, rgba(255, 255, 255, 0.95), rgba(248, 249, 251, 0.9));
    box-shadow: 
        0 4px 16px rgba(0, 0, 0, 0.08),
        0 8px 32px rgba(0, 0, 0, 0.05),
        inset 0 1px 0 rgba(255, 255, 255, 0.8);
    border: 1px solid rgba(255, 255, 255, 0.6);
}

.case-card.glass-card:hover {
    box-shadow: 
        0 8px 32px rgba(63, 193, 204, 0.15),
        0 16px 48px rgba(0, 0, 0, 0.1),
        inset 0 1px 0 rgba(255, 255, 255, 1);
    transform: translateY(-8px);
}

.case-content {
    display: flex;
    flex-direction: column;
    flex: 1;
}

.case-description {
    flex: 1;
}

/* About Section */
.about {
    background: var(--bg-section);
    position: relative;
}

.about::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: 
        radial-gradient(circle at 30% 50%, rgba(63, 193, 204, 0.05) 0%, transparent 40%),
        radial-gradient(circle at 70% 50%, rgba(182, 34, 87, 0.05) 0%, transparent 40%);
    pointer-events: none;
}

.about-content {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 4rem;
    align-items: center;
    position: relative;
    z-index: 1;
}

.about-description {
    color: var(--text-secondary);
    margin-bottom: 1.5rem;
    line-height: 1.8;
    font-size: 1.05rem;
}

.about-features {
    margin-top: 2rem;
}

.about-feature {
    display: flex;
    gap: 1rem;
    margin-bottom: 1.5rem;
}

.feature-icon {
    width: 40px;
    height: 40px;
    background: var(--gradient-1);
    border-radius: 10px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: bold;
    color: #ffffff;
    flex-shrink: 0;
}

.feature-text h4 {
    margin-bottom: 0.25rem;
    font-size: 1.05rem;
    color: var(--text-primary);
}

.feature-text p {
    color: var(--text-secondary);
    line-height: 1.6;
    font-size: 0.95rem;
}

.about-visual {
    display: flex;
    flex-direction: column;
    gap: 1.5rem;
}

.visual-card {
    text-align: center;
}

.visual-number {
    font-size: 3rem;
    font-weight: 800;
    background: var(--gradient-1);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    margin-bottom: 0.25rem;
}

.visual-label {
    color: var(--text-secondary);
    font-size: 0.95rem;
}

/* Contacts Section */
.contacts {
    background: var(--bg-white);
    position: relative;
}

.contacts::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: radial-gradient(ellipse at 50% 100%, rgba(63, 193, 204, 0.06) 0%, transparent 50%);
    pointer-events: none;
}

.contacts-content {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 4rem;
    position: relative;
    z-index: 1;
}

.contact-info {
    display: flex;
    flex-direction: column;
    gap: 1.5rem;
}

.contact-item {
    display: flex;
    gap: 1.25rem;
    padding: 1.25rem;
    transition: all 0.3s ease;
}

.contact-item:hover {
    transform: translateX(10px);
}

.contact-icon {
    width: 50px;
    height: 50px;
    background: var(--gradient-1);
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
}

.contact-icon svg {
    width: 24px;
    height: 24px;
    stroke: #ffffff;
}

.contact-details h4 {
    margin-bottom: 0.25rem;
    font-size: 1rem;
    color: var(--text-primary);
}

.contact-details a {
    color: var(--secondary-color);
    text-decoration: none;
    font-weight: 500;
    transition: color 0.3s ease;
}

.contact-details a:hover {
    color: var(--primary-color);
}

.contact-details p {
    color: var(--text-secondary);
}

.contact-form-wrapper {
    padding: 2.5rem;
}

.form-group {
    margin-bottom: 1.25rem;
}

.form-group input,
.form-group textarea {
    width: 100%;
    padding: 1rem 1.25rem;
    background: var(--bg-white);
    border: 1px solid var(--border-color);
    border-radius: 12px;
    color: var(--text-primary);
    font-family: inherit;
    font-size: 1rem;
    transition: all 0.3s ease;
}

.form-group input:focus,
.form-group textarea:focus {
    outline: none;
    border-color: var(--secondary-color);
    box-shadow: 0 0 0 3px var(--secondary-light);
}

.form-group textarea {
    resize: vertical;
}

.checkbox-group {
    display: flex;
    align-items: flex-start;
    gap: 0.75rem;
}

.checkbox-group input[type="checkbox"] {
    width: auto;
    margin-top: 0.25rem;
    cursor: pointer;
    accent-color: var(--secondary-color);
}

.checkbox-group label {
    color: var(--text-secondary);
    font-size: 0.9rem;
    line-height: 1.6;
}

.policy-link {
    color: var(--secondary-color);
    text-decoration: none;
}

.policy-link:hover {
    text-decoration: underline;
}

/* Footer - Light theme */
.footer {
    background: var(--bg-section);
    color: var(--text-primary);
    padding: 4rem 0 2rem;
    border-top: 1px solid var(--border-color);
}

.footer-content {
    display: grid;
    grid-template-columns: 1fr 2fr;
    gap: 4rem;
    margin-bottom: 3rem;
}

.footer-logo {
    height: 40px;
    width: auto;
    margin-bottom: 1rem;
}

.footer-brand p {
    color: var(--text-secondary);
}

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

.footer-column h4 {
    margin-bottom: 1rem;
    font-size: 1rem;
    color: var(--text-primary);
}

.footer-column ul {
    list-style: none;
}

.footer-column ul li {
    margin-bottom: 0.6rem;
}

.footer-column ul li a {
    color: var(--text-secondary);
    text-decoration: none;
    transition: color 0.3s ease;
    font-size: 0.95rem;
}

.footer-column ul li a:hover {
    color: var(--secondary-color);
}

.footer-bottom {
    text-align: center;
    padding-top: 2rem;
    border-top: 1px solid var(--border-color);
    color: var(--text-muted);
}

/* Page Header with spheres */
.page-header {
    padding: 140px 0 60px;
    background: linear-gradient(180deg, var(--bg-light) 0%, var(--bg-section) 100%);
    position: relative;
    overflow: hidden;
}

.page-header::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: 
        radial-gradient(circle at 20% 30%, rgba(63, 193, 204, 0.06) 0%, transparent 40%),
        radial-gradient(circle at 80% 70%, rgba(182, 34, 87, 0.06) 0%, transparent 40%);
    pointer-events: none;
}

.page-spheres {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    pointer-events: none;
    overflow: hidden;
}

.page-header-content {
    position: relative;
    z-index: 1;
}

.breadcrumb {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    margin-bottom: 1.5rem;
}

.breadcrumb a {
    color: var(--text-secondary);
    text-decoration: none;
    transition: color 0.3s ease;
}

.breadcrumb a:hover {
    color: var(--secondary-color);
}

.breadcrumb span {
    color: var(--text-muted);
}

.page-title {
    font-size: clamp(2rem, 5vw, 3.5rem);
    font-weight: 800;
    margin-bottom: 1rem;
    color: var(--text-primary);
}

.page-subtitle {
    font-size: 1.2rem;
    color: var(--text-secondary);
    max-width: 700px;
    line-height: 1.8;
}

.page-badge {
    display: inline-block;
    padding: 0.5rem 1.5rem;
    background: var(--primary-light);
    border-radius: 50px;
    color: var(--primary-color);
    font-size: 0.9rem;
    font-weight: 600;
    margin-bottom: 1rem;
}

/* Page Content Sections */
.page-section {
    padding: 80px 0;
    position: relative;
}

.page-section.alt-bg {
    background: var(--bg-section);
}

.page-section::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: 
        radial-gradient(ellipse at 10% 50%, rgba(63, 193, 204, 0.03) 0%, transparent 40%),
        radial-gradient(ellipse at 90% 50%, rgba(182, 34, 87, 0.03) 0%, transparent 40%);
    pointer-events: none;
}

.page-section-content {
    position: relative;
    z-index: 1;
}

/* Feature Grid */
.features-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 2rem;
}

.feature-card {
    padding: 2rem;
}

.feature-card-icon {
    width: 56px;
    height: 56px;
    background: var(--gradient-1);
    border-radius: 14px;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 1.25rem;
}

.feature-card-icon svg {
    width: 26px;
    height: 26px;
    stroke: #ffffff;
}

.feature-card h4 {
    font-size: 1.2rem;
    font-weight: 700;
    margin-bottom: 0.5rem;
    color: var(--text-primary);
}

.feature-card p {
    color: var(--text-secondary);
    line-height: 1.7;
}

/* Stats Row */
.stats-row {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 2rem;
    margin-top: 3rem;
}

.stats-card {
    text-align: center;
    padding: 2rem;
}

.stats-card-value {
    font-size: 2.5rem;
    font-weight: 800;
    background: var(--gradient-1);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    margin-bottom: 0.25rem;
}

.stats-card-label {
    color: var(--text-secondary);
    font-size: 0.95rem;
}

/* Styled List for Case Pages */
.styled-list {
    list-style: none;
    padding: 0;
    margin: 0;
}

.styled-list li {
    position: relative;
    padding-left: 1.5rem;
    margin-bottom: 0.75rem;
    line-height: 1.6;
}

.styled-list li::before {
    content: '✓';
    position: absolute;
    left: 0;
    color: var(--primary-color);
    font-weight: 700;
}

/* Work List Card */
.work-list {
    padding: 2rem;
}

.work-list .styled-list li {
    padding: 0.75rem 0 0.75rem 2rem;
    border-bottom: 1px solid var(--border-color);
}

.work-list .styled-list li:last-child {
    border-bottom: none;
}

/* Results Details Card */
.results-details {
    padding: 2rem;
}

.results-details h4 {
    margin-bottom: 1rem;
    color: var(--text-primary);
}

.results-details p {
    color: var(--text-secondary);
    line-height: 1.7;
}

/* Challenge Details Card */
.challenge-details {
    padding: 2rem;
}

.challenge-details h4 {
    margin-bottom: 1rem;
    color: var(--text-primary);
}

/* Tech Stack */
.tech-stack {
    padding: 2rem;
}

.tech-items {
    display: flex;
    flex-wrap: wrap;
    gap: 1.5rem;
    justify-content: center;
}

.tech-item {
    display: flex;
    flex-direction: column;
    align-items: center;
    padding: 1rem 1.5rem;
    background: var(--bg-section);
    border-radius: 12px;
    min-width: 100px;
}

.tech-name {
    font-weight: 700;
    font-size: 1.1rem;
    color: var(--primary-color);
}

.tech-desc {
    font-size: 0.8rem;
    color: var(--text-secondary);
    margin-top: 0.25rem;
}

/* Feature Card Variations */
.feature-card.featured {
    grid-column: span 2;
}

.feature-card.problem h4 {
    color: var(--secondary-color);
}

@media (max-width: 768px) {
    .feature-card.featured {
        grid-column: span 1;
    }
    
    .tech-items {
        gap: 1rem;
    }
    
    .tech-item {
        min-width: 80px;
        padding: 0.75rem 1rem;
    }
}

/* Pricing */
.pricing-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 2rem;
}

.pricing-card {
    padding: 2.5rem;
    text-align: center;
}

.pricing-card.featured {
    background: var(--gradient-2);
    color: #ffffff;
}

.pricing-card.featured .pricing-label,
.pricing-card.featured .pricing-features li {
    color: rgba(255, 255, 255, 0.9);
}

.pricing-card.featured .pricing-price {
    color: #ffffff;
    -webkit-text-fill-color: #ffffff;
}

.pricing-card.featured .btn-secondary {
    background: #ffffff;
    color: var(--secondary-color);
    border-color: #ffffff;
}

.pricing-label {
    font-size: 0.9rem;
    font-weight: 600;
    color: var(--text-secondary);
    margin-bottom: 0.5rem;
    text-transform: uppercase;
    letter-spacing: 1px;
}

.pricing-title {
    font-size: 1.5rem;
    font-weight: 700;
    margin-bottom: 0.5rem;
}

.pricing-price {
    font-size: 2.5rem;
    font-weight: 800;
    background: var(--gradient-2);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    margin-bottom: 0.25rem;
}

.pricing-period {
    font-size: 0.9rem;
    color: var(--text-muted);
    margin-bottom: 1.5rem;
}

.pricing-features {
    list-style: none;
    margin-bottom: 2rem;
    text-align: left;
}

.pricing-features li {
    padding: 0.6rem 0;
    padding-left: 1.5rem;
    position: relative;
    color: var(--text-secondary);
}

.pricing-features li::before {
    content: '✓';
    position: absolute;
    left: 0;
    color: var(--primary-color);
    font-weight: bold;
}

.pricing-card.featured .pricing-features li::before {
    color: #ffffff;
}

/* Interface Examples */
.interface-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 2rem;
}

.interface-card {
    overflow: hidden;
}

.interface-image {
    height: 200px;
    background: var(--gradient-1);
    border-radius: 16px 16px 0 0;
    margin: -2rem -2rem 1.5rem -2rem;
    display: flex;
    align-items: center;
    justify-content: center;
}

.interface-placeholder {
    color: rgba(255, 255, 255, 0.8);
    font-size: 0.9rem;
}

.interface-title {
    font-size: 1.1rem;
    font-weight: 700;
    margin-bottom: 0.5rem;
    color: var(--text-primary);
}

.interface-description {
    color: var(--text-secondary);
    font-size: 0.95rem;
    line-height: 1.7;
}

/* CTA Section */
.cta-section {
    background: var(--gradient-1);
    padding: 80px 0;
    text-align: center;
    color: #ffffff;
}

.cta-title {
    font-size: clamp(1.75rem, 4vw, 2.5rem);
    font-weight: 800;
    margin-bottom: 1rem;
}

.cta-description {
    font-size: 1.1rem;
    opacity: 0.9;
    margin-bottom: 2rem;
    max-width: 600px;
    margin-left: auto;
    margin-right: auto;
}

.cta-section .btn-primary {
    background: #ffffff;
    color: var(--primary-color);
}

.cta-section .btn-primary:hover {
    box-shadow: 0 8px 30px rgba(0, 0, 0, 0.2);
}

/* Related Items */
.related-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 2rem;
}

/* Toast */
.toast {
    position: fixed;
    bottom: 2rem;
    right: 2rem;
    background: var(--bg-white);
    border: 1px solid var(--secondary-color);
    border-radius: 16px;
    padding: 1rem 1.5rem;
    box-shadow: var(--shadow-glow-secondary);
    z-index: 3000;
    transform: translateY(200px);
    opacity: 0;
    transition: all 0.3s ease;
}

.toast.show {
    transform: translateY(0);
    opacity: 1;
}

.toast-message {
    color: var(--text-primary);
    font-weight: 500;
}

/* Responsive Design */
@media (max-width: 968px) {
    .navbar {
        top: 12px;
        left: 50%;
        transform: translateX(-50%);
        width: auto;
        max-width: 95%;
        border-radius: 16px;
        border: 1px solid rgba(255, 255, 255, 0.9);
        padding: 0.5rem 1rem;
    }
    
    .nav-content {
        gap: 1.5rem;
    }
    
    .phone-icon-wrapper {
        display: none;
    }
    
    .navbar .btn-primary {
        padding: 0.5rem 1rem;
        font-size: 0.85rem;
    }

    .nav-menu {
        position: fixed;
        top: 80px;
        left: 50%;
        transform: translateX(-50%);
        flex-direction: column;
        background: rgba(255, 255, 255, 0.98);
        backdrop-filter: blur(20px);
        width: 90%;
        max-width: 400px;
        padding: 1.5rem;
        border-radius: 20px;
        box-shadow: 0 8px 32px rgba(0, 0, 0, 0.12);
        opacity: 0;
        visibility: hidden;
        transition: all 0.3s ease;
    }

    .nav-menu.active {
        opacity: 1;
        visibility: visible;
    }

    .menu-toggle {
        display: none;
    }

    .side-menu-toggle {
        display: none;
    }
    
    .burger-menu-btn {
        display: flex;
    }
    

    .about-content,
    .contacts-content {
        grid-template-columns: 1fr;
    }

    .footer-content {
        grid-template-columns: 1fr;
    }

    .footer-links {
        grid-template-columns: 1fr;
    }

    .cases-grid {
        grid-template-columns: 1fr;
    }
}

@media (max-width: 768px) {
    .hero-actions {
        flex-direction: column;
        width: 100%;
        max-width: 280px;
        margin-left: auto;
        margin-right: auto;
    }

    .hero-actions .btn-primary,
    .hero-actions .btn-secondary {
        width: 100%;
    }
    
    .hero-content {
        padding: 1.5rem;
    }
    
    .hero-title {
        font-size: clamp(1.8rem, 5vw, 2.5rem);
    }
    
    .hero-subtitle {
        font-size: 0.95rem;
    }

    .hero-stats {
        gap: 1.5rem;
    }

    .stat-number {
        font-size: 2rem;
    }

    section {
        padding: 60px 0;
    }

    .services-grid {
        grid-template-columns: 1fr;
    }

    .sphere {
        display: none;
    }

    .side-menu {
        width: 100%;
        right: -100%;
    }

    .side-menu-content {
        padding-left: 2rem;
    }
}

/* ============================================
   DISCRIPT.AI CHAT WIDGET
   ============================================ */

/* Chat FAB Button - hidden by default, only hero button shown */
.chat-fab {
    display: none !important;
}

/* Hero Chat Button - Vibrant with shimmer effect */
.hero-chat-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    margin-top: 1.5rem;
    padding: 14px 28px;
    background: var(--gradient-1);
    color: #fff;
    border: none;
    border-radius: 50px;
    cursor: pointer;
    font-family: inherit;
    font-size: 0.95rem;
    font-weight: 600;
    transition: all 0.3s ease;
    position: relative;
    overflow: hidden;
    box-shadow: 0 4px 20px rgba(63, 193, 204, 0.4);
    z-index: 10;
}

.hero-chat-btn svg {
    width: 20px;
    height: 20px;
    stroke: currentColor;
}

/* Shimmer effect */
.hero-chat-btn::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(
        90deg,
        transparent,
        rgba(255, 255, 255, 0.4),
        transparent
    );
    transition: left 0.6s ease;
    pointer-events: none;
}

.hero-chat-btn:hover::before {
    left: 100%;
}

.hero-chat-btn:hover {
    transform: translateY(-3px);
    box-shadow: 0 8px 30px rgba(63, 193, 204, 0.5);
}

@media (max-width: 600px) {
    .hero-chat-btn {
        width: 100%;
        max-width: 280px;
    }
}

/* Chat Widget */
.discript-chat {
    position: fixed;
    bottom: 24px;
    right: 24px;
    z-index: 1001;
    width: 400px;
    max-width: calc(100vw - 48px);
    height: 550px;
    max-height: calc(100vh - 100px);
    background: rgba(255, 255, 255, 0.98);
    backdrop-filter: blur(20px);
    border-radius: 16px;
    box-shadow: -10px 0 50px rgba(0, 0, 0, 0.15), 0 10px 40px rgba(0, 0, 0, 0.1);
    display: flex;
    flex-direction: column;
    overflow: hidden;
    opacity: 0;
    border: 1px solid rgba(255, 255, 255, 0.5);
    pointer-events: none;
    transform: translateY(20px) scale(0.95);
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

.discript-chat.open {
    opacity: 1;
    pointer-events: all;
    transform: translateY(0) scale(1);
}

/* Chat Header */
.chat-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 16px 20px;
    background: var(--gradient-1);
    color: #fff;
}

.chat-header-info {
    display: flex;
    align-items: center;
    gap: 12px;
}

.chat-avatar {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.2);
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: hidden;
}

.chat-avatar img {
    width: 28px;
    height: 28px;
    object-fit: contain;
}

.chat-avatar-fallback {
    font-size: 1.2rem;
    font-weight: 700;
    color: #fff;
}

.chat-header-text {
    display: flex;
    flex-direction: column;
}

.chat-title {
    font-weight: 600;
    font-size: 1rem;
}

.chat-status {
    font-size: 0.75rem;
    opacity: 0.9;
}

.chat-close {
    width: 32px;
    height: 32px;
    border: none;
    background: rgba(255, 255, 255, 0.2);
    color: #fff;
    border-radius: 50%;
    font-size: 1.5rem;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: background 0.2s;
}

.chat-close:hover {
    background: rgba(255, 255, 255, 0.3);
}

/* Chat Messages */
.chat-messages {
    flex: 1;
    overflow-y: auto;
    padding: 20px;
    display: flex;
    flex-direction: column;
    gap: 16px;
    background: rgba(248, 249, 250, 0.7);
}

.chat-message {
    display: flex;
    max-width: 85%;
}

.chat-message.user {
    align-self: flex-end;
}

.chat-message.assistant {
    align-self: flex-start;
}

.chat-message-content {
    padding: 12px 16px;
    border-radius: 18px;
    font-size: 0.9rem;
    line-height: 1.5;
}

.chat-message.user .chat-message-content {
    background: var(--gradient-1);
    color: #fff;
    border-bottom-right-radius: 4px;
}

.chat-message.assistant .chat-message-content {
    background: #fff;
    color: var(--text-primary);
    border-bottom-left-radius: 4px;
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.1);
}

.chat-message-content strong {
    font-weight: 600;
}

.chat-message-content code {
    background: rgba(0, 0, 0, 0.1);
    padding: 2px 6px;
    border-radius: 4px;
    font-family: monospace;
    font-size: 0.85em;
}

/* Typing Indicator */
.chat-message.typing .chat-message-content {
    padding: 16px 20px;
}

.typing-dots {
    display: flex;
    gap: 4px;
}

.typing-dots span {
    width: 8px;
    height: 8px;
    background: var(--primary-color);
    border-radius: 50%;
    animation: typingBounce 1.4s ease-in-out infinite;
}

.typing-dots span:nth-child(2) {
    animation-delay: 0.2s;
}

.typing-dots span:nth-child(3) {
    animation-delay: 0.4s;
}

@keyframes typingBounce {
    0%, 60%, 100% {
        transform: translateY(0);
        opacity: 0.4;
    }
    30% {
        transform: translateY(-8px);
        opacity: 1;
    }
}

/* Chat Input */
.chat-input-container {
    display: flex;
    align-items: flex-end;
    gap: 10px;
    padding: 16px 20px;
    background: #fff;
    border-top: 1px solid var(--border-color);
}

.chat-input {
    flex: 1;
    padding: 12px 16px;
    border: 1px solid var(--border-color);
    border-radius: 24px;
    font-family: inherit;
    font-size: 0.9rem;
    resize: none;
    max-height: 120px;
    line-height: 1.4;
    transition: border-color 0.2s;
}

.chat-input:focus {
    outline: none;
    border-color: var(--primary-color);
}

.chat-input::placeholder {
    color: var(--text-muted);
}

.chat-send {
    width: 44px;
    height: 44px;
    border: none;
    background: var(--gradient-1);
    color: #fff;
    border-radius: 50%;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.2s;
    flex-shrink: 0;
}

.chat-send:hover:not(:disabled) {
    transform: scale(1.05);
    box-shadow: 0 4px 15px rgba(63, 193, 204, 0.4);
}

.chat-send:disabled {
    opacity: 0.6;
    cursor: not-allowed;
}

.chat-send svg {
    width: 20px;
    height: 20px;
}

/* AI Toggle in Side Panel */
.ai-chat-toggle {
    position: fixed;
    right: 0;
    top: calc(50% + 110px);
    transform: translateY(-50%);
    z-index: 1002;
    width: 40px;
    height: 100px;
    background: var(--gradient-1);
    border-radius: 12px 0 0 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: right 0.4s cubic-bezier(0.4, 0, 0.2, 1), width 0.3s ease;
    box-shadow: -4px 0 20px rgba(63, 193, 204, 0.3);
    writing-mode: vertical-rl;
    text-orientation: mixed;
}

.ai-chat-toggle:hover {
    width: 48px;
}

.ai-chat-toggle span {
    color: #fff;
    font-size: 0.85rem;
    font-weight: 600;
    letter-spacing: 0.5px;
}

.side-menu.active ~ .ai-chat-toggle {
    right: 380px;
}

@media (max-width: 768px) {
    .ai-chat-toggle {
        display: none;
    }
}

/* Mobile Chat Adjustments */
@media (max-width: 480px) {
    .discript-chat {
        bottom: 0;
        right: 0;
        width: 100%;
        max-width: 100%;
        height: 100%;
        max-height: 100%;
        border-radius: 0;
    }
    
    .chat-fab {
        bottom: 16px;
        right: 16px;
    }
}

/* ============================================
   RESPONSIVE DESIGN - 5 BREAKPOINTS
   ============================================ */

/* 1. Large Monitor (>1440px) */
@media (min-width: 1441px) {
    .container {
        max-width: 1400px;
    }
    
    .hero-title {
        font-size: 5rem;
    }
    
    .hero-subtitle {
        font-size: 1.4rem;
    }
    
    .services-grid {
        grid-template-columns: repeat(3, 1fr);
        gap: 2.5rem;
    }
    
    .cases-grid {
        grid-template-columns: repeat(4, 1fr);
        grid-auto-rows: minmax(280px, auto);
        gap: 1.5rem;
    }
    
    .sphere-large {
        width: 180px;
        height: 180px;
    }
    
    .sphere-medium {
        width: 140px;
        height: 140px;
    }
}

/* 2. Laptop (1024px - 1440px) */
@media (min-width: 1024px) and (max-width: 1440px) {
    .container {
        max-width: 1100px;
        padding: 0 30px;
    }
    
    .hero-title {
        font-size: clamp(2.5rem, 5vw, 4rem);
    }
    
    .services-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 1.75rem;
    }
    
    .cases-grid {
        grid-template-columns: repeat(3, 1fr);
        grid-auto-rows: minmax(260px, auto);
        gap: 1.25rem;
    }
    
    /* Adjust bento sizes for laptop */
    .case-card.bento-featured {
        grid-column: span 2;
        grid-row: span 2;
    }
    
    .case-card.bento-wide {
        grid-column: span 2;
    }
    
    .case-card.bento-tall {
        grid-row: span 2;
    }
    
    .nav-menu {
        gap: 1.5rem;
    }
    
    .nav-link {
        font-size: 0.9rem;
    }
    
    .navbar {
        padding: 0.6rem 1.5rem;
    }
    
    .about-content {
        gap: 3rem;
    }
}

/* 3. Tablet (768px - 1024px) */
@media (min-width: 768px) and (max-width: 1024px) {
    .container {
        padding: 0 24px;
    }
    
    .navbar {
        padding: 0.5rem 1.25rem;
        max-width: 95%;
    }
    
    .nav-menu {
        display: none;
    }
    
    .nav-content {
        gap: 1rem;
    }
    
    .hero {
        padding: 100px 0 60px;
    }
    
    .hero-title {
        font-size: clamp(2rem, 6vw, 3rem);
    }
    
    .hero-subtitle {
        font-size: 1rem;
        margin-top: 1.5rem;
        margin-bottom: 2rem;
    }
    
    .hero-content {
        padding-top: 40px;
    }
    
    .hero-logo {
        height: 60px;
    }
    
    .services-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 1.5rem;
    }
    
    .cases-grid {
        grid-template-columns: repeat(2, 1fr);
        grid-auto-rows: minmax(240px, auto);
        gap: 1.25rem;
    }
    
    /* Bento adjustments for tablet - all cards same size */
    .case-card.bento-featured,
    .case-card.bento-wide,
    .case-card.bento-tall {
        grid-column: span 1;
        grid-row: span 1;
    }
    
    /* Featured still gets 2 columns on tablet */
    .case-card.bento-featured {
        grid-column: span 2;
    }
    
    .case-card.bento-featured .case-image {
        height: 200px;
        min-height: 200px;
    }
    
    .case-card.bento-featured .case-title {
        font-size: 1.25rem;
    }
    
    .about-content {
        grid-template-columns: 1fr;
        gap: 2rem;
    }
    
    .contacts-content {
        grid-template-columns: 1fr;
        gap: 2rem;
    }
    
    .footer-content {
        grid-template-columns: 1fr;
        gap: 2rem;
    }
    
    .footer-links {
        grid-template-columns: repeat(3, 1fr);
    }
    
    section {
        padding: 60px 0;
    }
    
    .section-title {
        font-size: clamp(1.75rem, 4vw, 2.5rem);
    }
    
    .sphere-large {
        width: 120px;
        height: 120px;
        font-size: 0.7rem;
    }
    
    .sphere-medium {
        width: 100px;
        height: 100px;
        font-size: 0.65rem;
    }
    
    .sphere-small {
        width: 80px;
        height: 80px;
        font-size: 0.6rem;
    }
    
    .side-menu-toggle,
    .ai-chat-toggle {
        display: none;
    }
    
    .btn-large {
        padding: 0.85rem 1.75rem;
        font-size: 1rem;
    }
    
    .phone-icon-wrapper {
        display: flex;
    }
}

/* 4. Large Phone (480px - 768px) */
@media (min-width: 480px) and (max-width: 767px) {
    .container {
        padding: 0 16px;
    }
    
    .navbar {
        top: 10px;
        padding: 0.5rem 1rem;
        border-radius: 14px;
        max-width: 96%;
    }
    
    .nav-menu {
        display: none;
    }
    
    .nav-content {
        gap: 0.75rem;
    }
    
    .logo-img {
        height: 28px;
    }
    
    .navbar .btn-primary {
        padding: 0.5rem 1rem;
        font-size: 0.8rem;
    }
    
    .phone-icon-wrapper {
        display: none;
    }
    
    .hero {
        padding: 90px 0 50px;
        min-height: auto;
    }
    
    .hero-content {
        padding: 1rem;
        padding-top: 20px;
    }
    
    .hero-logo {
        height: 50px;
        margin-bottom: 1.5rem;
    }
    
    .hero-title {
        font-size: clamp(1.75rem, 7vw, 2.5rem);
        margin-bottom: 1rem;
    }
    
    .hero-subtitle {
        font-size: 0.95rem;
        margin-top: 1rem;
        margin-bottom: 1.5rem;
        line-height: 1.6;
    }
    
    .hero-actions {
        flex-direction: column;
        gap: 1rem;
        max-width: 100%;
    }
    
    .hero-actions .btn-primary,
    .hero-actions .btn-secondary {
        width: 100%;
        max-width: 300px;
    }
    
    .btn-large {
        padding: 0.85rem 1.5rem;
        font-size: 0.95rem;
    }
    
    .hero-stats {
        gap: 1.5rem;
        margin-top: 2rem;
    }
    
    .stat-number {
        font-size: 2rem;
    }
    
    .stat-label {
        font-size: 0.8rem;
    }
    
    section {
        padding: 50px 0;
    }
    
    .section-header {
        margin-bottom: 2.5rem;
    }
    
    .section-tag {
        font-size: 0.8rem;
        padding: 0.4rem 1rem;
    }
    
    .section-title {
        font-size: clamp(1.5rem, 5vw, 2rem);
    }
    
    .section-description {
        font-size: 0.95rem;
    }
    
    .services-grid {
        grid-template-columns: 1fr;
        gap: 1.25rem;
    }
    
    .service-card {
        padding: 1.5rem;
    }
    
    .service-icon {
        width: 50px;
        height: 50px;
        margin-bottom: 1rem;
    }
    
    .service-title {
        font-size: 1.2rem;
    }
    
    .cases-grid {
        grid-template-columns: 1fr;
        grid-auto-rows: minmax(auto, auto);
        gap: 1.25rem;
    }
    
    /* Reset bento sizes for large phone - all cards single column */
    .case-card.bento-featured,
    .case-card.bento-wide,
    .case-card.bento-tall {
        grid-column: span 1;
        grid-row: span 1;
    }
    
    .case-card.bento-featured .case-image,
    .case-card.bento-tall .case-image {
        height: 180px;
        min-height: 180px;
    }
    
    .case-card.bento-featured .case-title {
        font-size: 1.25rem;
    }
    
    /* Disable float animation on mobile for performance */
    .case-card {
        animation: none;
    }
    
    .case-card.glass-card {
        padding: 1.5rem;
    }
    
    .case-image {
        height: 160px;
        margin: -1.5rem -1.5rem 1rem -1.5rem;
    }
    
    .case-title {
        font-size: 1.15rem;
    }
    
    .case-stats {
        gap: 0.5rem;
        padding: 0.75rem;
    }
    
    .case-stat-value {
        font-size: 1.2rem;
    }
    
    .case-stat-label {
        font-size: 0.65rem;
    }
    
    .about-content {
        grid-template-columns: 1fr;
        gap: 2rem;
    }
    
    .about-visual {
        display: grid;
        grid-template-columns: repeat(3, 1fr);
        gap: 1rem;
    }
    
    .visual-card {
        padding: 1rem;
    }
    
    .visual-number {
        font-size: 2rem;
    }
    
    .contacts-content {
        grid-template-columns: 1fr;
        gap: 1.5rem;
    }
    
    .contact-item {
        padding: 1rem;
    }
    
    .contact-form-wrapper {
        padding: 1.5rem;
    }
    
    .footer-content {
        grid-template-columns: 1fr;
        gap: 2rem;
    }
    
    .footer-links {
        grid-template-columns: repeat(2, 1fr);
        gap: 1.5rem;
    }
    
    .side-menu {
        width: 100%;
    }
    
    .sphere {
        display: none;
    }
    
    .side-menu-toggle,
    .ai-chat-toggle {
        display: none;
    }
}

/* 5. Small Phone (<480px) */
@media (max-width: 479px) {
    .container {
        padding: 0 12px;
    }
    
    .navbar {
        top: 8px;
        padding: 0.4rem 0.75rem;
        border-radius: 12px;
        max-width: 97%;
    }
    
    .nav-menu {
        display: none;
    }
    
    .nav-content {
        gap: 0.5rem;
    }
    
    .logo-img {
        height: 24px;
    }
    
    .navbar .btn-primary {
        padding: 0.4rem 0.75rem;
        font-size: 0.75rem;
        border-radius: 8px;
    }
    
    .burger-menu-btn {
        width: 34px;
        height: 34px;
        padding: 8px;
    }
    
    .burger-menu-btn span {
        width: 16px;
    }
    
    .phone-icon-wrapper {
        display: none;
    }
    
    .hero {
        padding: 80px 0 40px;
        min-height: auto;
    }
    
    .hero-content {
        padding: 0.75rem;
        padding-top: 10px;
    }
    
    .hero-logo {
        height: 40px;
        margin-bottom: 1rem;
    }
    
    .hero-title {
        font-size: clamp(1.5rem, 8vw, 2rem);
        margin-bottom: 0.75rem;
        line-height: 1.2;
    }
    
    .title-animated {
        height: 1.25em;
    }
    
    .cube-face {
        height: 1.25em;
        line-height: 1.25;
    }
    
    .title-line {
        font-size: 0.9em;
    }
    
    .hero-subtitle {
        font-size: 0.85rem;
        margin-top: 0.75rem;
        margin-bottom: 1.25rem;
        line-height: 1.5;
    }
    
    .hero-actions {
        flex-direction: column;
        gap: 0.75rem;
        max-width: 100%;
        margin-bottom: 2rem;
    }
    
    .hero-actions .btn-primary,
    .hero-actions .btn-secondary {
        width: 100%;
    }
    
    .btn-large {
        padding: 0.75rem 1.25rem;
        font-size: 0.9rem;
    }
    
    .hero-stats {
        gap: 1rem;
        flex-wrap: wrap;
        justify-content: center;
    }
    
    .stat-item {
        min-width: 80px;
    }
    
    .stat-number {
        font-size: 1.75rem;
    }
    
    .stat-label {
        font-size: 0.75rem;
    }
    
    section {
        padding: 40px 0;
    }
    
    .section-header {
        margin-bottom: 2rem;
    }
    
    .section-tag {
        font-size: 0.75rem;
        padding: 0.35rem 0.85rem;
    }
    
    .section-title {
        font-size: clamp(1.25rem, 6vw, 1.75rem);
        margin-bottom: 0.75rem;
    }
    
    .section-description {
        font-size: 0.9rem;
    }
    
    .services-grid {
        grid-template-columns: 1fr;
        gap: 1rem;
    }
    
    .glass-card {
        padding: 1.25rem;
        border-radius: 16px;
        overflow: visible;
    }
    
    .service-card.glass-card {
        overflow: visible;
    }
    
    .service-icon {
        width: 45px;
        height: 45px;
        border-radius: 12px;
        margin-bottom: 0.75rem;
    }
    
    .service-icon svg {
        width: 22px;
        height: 22px;
    }
    
    .service-title {
        font-size: 1.1rem;
        margin-bottom: 0.5rem;
    }
    
    .service-description {
        font-size: 0.9rem;
        margin-bottom: 1rem;
    }
    
    .service-features li {
        font-size: 0.85rem;
        padding: 0.3rem 0;
    }
    
    .cases-grid {
        grid-template-columns: 1fr;
        grid-auto-rows: auto;
        gap: 1rem;
    }
    
    /* Reset all bento sizes for small phone */
    .case-card.bento-featured,
    .case-card.bento-wide,
    .case-card.bento-tall {
        grid-column: span 1;
        grid-row: span 1;
    }
    
    .case-card.bento-featured .case-image,
    .case-card.bento-tall .case-image {
        height: 160px;
        min-height: 160px;
    }
    
    .case-card.bento-featured .case-title {
        font-size: 1.15rem;
    }
    
    .case-card {
        animation: none;
    }
    
    .case-card.glass-card {
        padding: 1.25rem;
    }
    
    .case-image {
        height: 140px;
        margin: -1.25rem -1.25rem 1rem -1.25rem;
        border-radius: 14px 14px 0 0;
    }
    
    .case-badge {
        font-size: 0.75rem;
        padding: 0.4rem 0.75rem;
    }
    
    .case-title {
        font-size: 1.05rem;
        margin-bottom: 0.5rem;
    }
    
    .case-description {
        font-size: 0.85rem;
        margin-bottom: 1rem;
    }
    
    .case-tech {
        gap: 0.35rem;
        margin-bottom: 1rem;
    }
    
    .tech-tag {
        font-size: 0.7rem;
        padding: 0.25rem 0.6rem;
    }
    
    .case-stats {
        gap: 0.5rem;
        padding: 0.65rem;
        border-radius: 10px;
    }
    
    .case-stat {
        padding: 0.25rem;
    }
    
    .case-stat-value {
        font-size: 1.1rem;
    }
    
    .case-stat-label {
        font-size: 0.6rem;
    }
    
    .about-content {
        grid-template-columns: 1fr;
        gap: 1.5rem;
    }
    
    .about-description {
        font-size: 0.95rem;
        margin-bottom: 1rem;
    }
    
    .about-feature {
        gap: 0.75rem;
        margin-bottom: 1rem;
    }
    
    .feature-icon {
        width: 36px;
        height: 36px;
        font-size: 0.9rem;
    }
    
    .feature-text h4 {
        font-size: 0.95rem;
    }
    
    .feature-text p {
        font-size: 0.85rem;
    }
    
    .about-visual {
        display: grid;
        grid-template-columns: repeat(3, 1fr);
        gap: 0.75rem;
    }
    
    .visual-card {
        padding: 0.75rem;
    }
    
    .visual-number {
        font-size: 1.5rem;
    }
    
    .visual-label {
        font-size: 0.7rem;
    }
    
    .contacts-content {
        grid-template-columns: 1fr;
        gap: 1rem;
    }
    
    .contact-item {
        padding: 0.85rem;
        gap: 0.75rem;
    }
    
    .contact-icon {
        width: 42px;
        height: 42px;
    }
    
    .contact-icon svg {
        width: 20px;
        height: 20px;
    }
    
    .contact-details h4 {
        font-size: 0.9rem;
    }
    
    .contact-details a,
    .contact-details p {
        font-size: 0.85rem;
    }
    
    .contact-form-wrapper {
        padding: 1.25rem;
    }
    
    .form-group input,
    .form-group textarea {
        padding: 0.85rem 1rem;
        font-size: 0.9rem;
    }
    
    .checkbox-group label {
        font-size: 0.8rem;
    }
    
    .footer {
        padding: 2.5rem 0 1.5rem;
    }
    
    .footer-content {
        grid-template-columns: 1fr;
        gap: 1.5rem;
        margin-bottom: 1.5rem;
    }
    
    .footer-logo {
        height: 32px;
    }
    
    .footer-brand p {
        font-size: 0.85rem;
    }
    
    .footer-links {
        grid-template-columns: repeat(2, 1fr);
        gap: 1.25rem;
    }
    
    .footer-column h4 {
        font-size: 0.9rem;
        margin-bottom: 0.75rem;
    }
    
    .footer-column ul li {
        margin-bottom: 0.4rem;
    }
    
    .footer-column ul li a {
        font-size: 0.85rem;
    }
    
    .footer-bottom {
        padding-top: 1.25rem;
        font-size: 0.8rem;
    }
    
    .side-menu {
        width: 100%;
    }
    
    .side-menu-content {
        padding: 1.5rem;
        padding-left: 1.5rem;
    }
    
    .side-menu-header {
        margin-bottom: 1.5rem;
    }
    
    .side-menu-nav a {
        padding: 0.75rem 0.85rem;
        font-size: 0.95rem;
    }
    
    .side-menu-contacts {
        padding: 1rem;
    }
    
    .side-menu-contacts h4 {
        font-size: 0.95rem;
    }
    
    .side-menu-contacts p {
        font-size: 0.85rem;
    }
    
    .sphere {
        display: none;
    }
    
    .side-menu-toggle,
    .ai-chat-toggle {
        display: none;
    }
    
    .toast {
        bottom: 1rem;
        right: 1rem;
        left: 1rem;
        padding: 0.85rem 1rem;
    }
}

/* Hero Chat Button responsive */
@media (max-width: 768px) {
    .hero-chat-btn {
        padding: 12px 20px;
        font-size: 0.9rem;
    }
}

@media (max-width: 480px) {
    .hero-chat-btn {
        width: 100%;
        max-width: 100%;
        padding: 12px 16px;
        font-size: 0.85rem;
    }
}
