/* ===================================
   ReddSpring - CSS Architecture
   Featuring: CSS Custom Properties,
   Theme System, Animations, and
   Modern CSS Techniques
   =================================== */

/* CSS Reset & Base */
*, *::before, *::after {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

/* ===================================
   Theme System - CSS Custom Properties
   =================================== */

:root {
    /* Brand Colors - Derived from logo */
    --brand-red: #B33A3A;
    --brand-red-light: #C94A4A;
    --brand-red-dark: #8B2E2E;
    --brand-gray: #6B7280;
    
    /* Gradient - subtle red variations */
    --gradient-primary: linear-gradient(135deg, var(--brand-red-light) 0%, var(--brand-red) 50%, var(--brand-red-dark) 100%);
    --gradient-text: linear-gradient(135deg, var(--brand-red-light) 0%, var(--brand-red) 100%);
    
    /* Timing Functions */
    --ease-out-expo: cubic-bezier(0.16, 1, 0.3, 1);
    --ease-in-out-circ: cubic-bezier(0.85, 0, 0.15, 1);
    --spring: cubic-bezier(0.175, 0.885, 0.32, 1.275);
    
    /* Spacing */
    --space-xs: 0.25rem;
    --space-sm: 0.5rem;
    --space-md: 1rem;
    --space-lg: 1.5rem;
    --space-xl: 2rem;
    --space-2xl: 3rem;
    --space-3xl: 4rem;
    --space-4xl: 6rem;
    
    /* Border Radius */
    --radius-sm: 0.375rem;
    --radius-md: 0.5rem;
    --radius-lg: 0.75rem;
    --radius-xl: 1rem;
    --radius-2xl: 1.5rem;
    --radius-full: 9999px;
    
    /* Typography */
    --font-sans: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
    --font-mono: 'JetBrains Mono', 'Fira Code', monospace;
    
    /* Font Sizes - Fluid Typography */
    --text-xs: clamp(0.75rem, 0.7rem + 0.25vw, 0.875rem);
    --text-sm: clamp(0.875rem, 0.8rem + 0.375vw, 1rem);
    --text-base: clamp(1rem, 0.9rem + 0.5vw, 1.125rem);
    --text-lg: clamp(1.125rem, 1rem + 0.625vw, 1.25rem);
    --text-xl: clamp(1.25rem, 1.1rem + 0.75vw, 1.5rem);
    --text-2xl: clamp(1.5rem, 1.25rem + 1.25vw, 2rem);
    --text-3xl: clamp(2rem, 1.5rem + 2.5vw, 3rem);
    --text-4xl: clamp(2.5rem, 1.75rem + 3.75vw, 4rem);
    --text-5xl: clamp(3rem, 2rem + 5vw, 5rem);
    
    /* Shadows */
    --shadow-sm: 0 1px 2px 0 rgb(0 0 0 / 0.05);
    --shadow-md: 0 4px 6px -1px rgb(0 0 0 / 0.1), 0 2px 4px -2px rgb(0 0 0 / 0.1);
    --shadow-lg: 0 10px 15px -3px rgb(0 0 0 / 0.1), 0 4px 6px -4px rgb(0 0 0 / 0.1);
    --shadow-xl: 0 20px 25px -5px rgb(0 0 0 / 0.1), 0 8px 10px -6px rgb(0 0 0 / 0.1);
    --shadow-glow: 0 0 40px -10px var(--brand-red);
    
    /* Z-Index Scale */
    --z-base: 1;
    --z-dropdown: 100;
    --z-sticky: 200;
    --z-fixed: 300;
    --z-modal: 400;
    --z-tooltip: 500;
}

/* Dark Theme (Default) */
[data-theme="dark"] {
    --bg-primary: #0a0a0f;
    --bg-secondary: #12121a;
    --bg-tertiary: #1a1a24;
    --bg-elevated: #22222e;
    
    --text-primary: #ffffff;
    --text-secondary: #a1a1aa;
    --text-tertiary: #71717a;
    --text-inverse: #0a0a0f;
    
    --border-primary: rgba(255, 255, 255, 0.1);
    --border-secondary: rgba(255, 255, 255, 0.05);
    
    --surface-glass: rgba(255, 255, 255, 0.03);
    --surface-glass-hover: rgba(255, 255, 255, 0.06);
    
    --code-bg: #1e1e2e;
    --code-text: #cdd6f4;
}

/* Light Theme */
[data-theme="light"] {
    --bg-primary: #ffffff;
    --bg-secondary: #f8f9fa;
    --bg-tertiary: #f1f3f4;
    --bg-elevated: #ffffff;
    
    --text-primary: #111827;
    --text-secondary: #4b5563;
    --text-tertiary: #9ca3af;
    --text-inverse: #ffffff;
    
    --border-primary: rgba(0, 0, 0, 0.1);
    --border-secondary: rgba(0, 0, 0, 0.05);
    
    --surface-glass: rgba(0, 0, 0, 0.02);
    --surface-glass-hover: rgba(0, 0, 0, 0.04);
    
    --code-bg: #f6f8fa;
    --code-text: #24292f;
    
    --shadow-glow: 0 0 40px -10px rgba(179, 58, 58, 0.4);
}

/* ===================================
   Base Styles
   =================================== */

html {
    scroll-behavior: smooth;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
}

body {
    font-family: var(--font-sans);
    font-size: var(--text-base);
    line-height: 1.6;
    color: var(--text-primary);
    background-color: var(--bg-primary);
    overflow-x: hidden;
    transition: background-color 0.3s ease, color 0.3s ease;
}

html {
    overflow-x: hidden;
}

/* ===================================
   Background Effects
   =================================== */

.bg-gradient {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    width: 100%;
    background: 
        radial-gradient(ellipse 80% 50% at 50% -20%, rgba(179, 58, 58, 0.12), transparent),
        radial-gradient(ellipse 60% 40% at 100% 0%, rgba(179, 58, 58, 0.08), transparent),
        radial-gradient(ellipse 50% 30% at 0% 100%, rgba(139, 46, 46, 0.06), transparent);
    pointer-events: none;
    z-index: -2;
}

[data-theme="light"] .bg-gradient {
    background: 
        radial-gradient(ellipse 80% 50% at 50% -20%, rgba(179, 58, 58, 0.06), transparent),
        radial-gradient(ellipse 60% 40% at 100% 0%, rgba(179, 58, 58, 0.04), transparent),
        radial-gradient(ellipse 50% 30% at 0% 100%, rgba(139, 46, 46, 0.03), transparent);
}

.bg-grid {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    width: 100%;
    background-image: 
        linear-gradient(var(--border-secondary) 1px, transparent 1px),
        linear-gradient(90deg, var(--border-secondary) 1px, transparent 1px);
    background-size: 60px 60px;
    mask-image: radial-gradient(ellipse 80% 60% at 50% 30%, black, transparent);
    pointer-events: none;
    z-index: -1;
}

/* Floating Orbs */
.floating-orbs {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    width: 100%;
    pointer-events: none;
    z-index: -1;
    overflow: hidden;
}

.orb {
    position: absolute;
    border-radius: 50%;
    filter: blur(80px);
    opacity: 0.4;
    animation: float 20s ease-in-out infinite;
}

.orb-1 {
    width: min(400px, 80vw);
    height: min(400px, 80vw);
    background: var(--brand-red);
    top: -100px;
    right: -100px;
    animation-delay: 0s;
}

.orb-2 {
    width: min(300px, 60vw);
    height: min(300px, 60vw);
    background: var(--brand-red-light);
    bottom: 20%;
    left: -50px;
    animation-delay: -7s;
}

.orb-3 {
    width: min(250px, 50vw);
    height: min(250px, 50vw);
    background: var(--brand-red-dark);
    bottom: -50px;
    right: 20%;
    animation-delay: -14s;
}

@keyframes float {
    0%, 100% { transform: translate(0, 0) scale(1); }
    25% { transform: translate(30px, -30px) scale(1.05); }
    50% { transform: translate(-20px, 20px) scale(0.95); }
    75% { transform: translate(20px, 10px) scale(1.02); }
}

/* ===================================
   Navigation
   =================================== */

.navbar {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    z-index: var(--z-fixed);
    padding: var(--space-md) var(--space-xl);
    transition: all 0.3s ease;
}

.navbar::before {
    content: '';
    position: absolute;
    inset: 0;
    background: var(--bg-primary);
    opacity: 0.8;
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    border-bottom: 1px solid var(--border-primary);
    z-index: -1;
}

.nav-container {
    max-width: 1400px;
    margin: 0 auto;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: var(--space-xl);
}

.logo {
    display: flex;
    align-items: center;
    gap: var(--space-sm);
    text-decoration: none;
    color: var(--text-primary);
    font-weight: 600;
    font-size: var(--text-lg);
}

.logo-icon {
    transition: transform 0.3s var(--spring);
}

.logo:hover .logo-icon {
    transform: scale(1.1);
}

/* Spring Logo Animation */
.logo-icon .spring-coil {
    transform-origin: center center;
    transition: transform 0.3s var(--spring);
}

.logo:hover .logo-icon .spring-coil {
    animation: springBounce 0.6s var(--spring);
}

@keyframes springBounce {
    0% { transform: scaleY(1) translateY(0); }
    30% { transform: scaleY(0.7) translateY(8px); }
    50% { transform: scaleY(1.15) translateY(-5px); }
    70% { transform: scaleY(0.95) translateY(2px); }
    100% { transform: scaleY(1) translateY(0); }
}

/* Subtle idle animation for the spring */
.logo-icon .spring-coil {
    animation: springIdle 4s ease-in-out infinite;
}

@keyframes springIdle {
    0%, 100% { transform: scaleY(1); }
    50% { transform: scaleY(0.97); }
}

.nav-links {
    display: flex;
    gap: var(--space-lg);
}

.nav-link {
    color: var(--text-secondary);
    text-decoration: none;
    font-size: var(--text-sm);
    font-weight: 500;
    padding: var(--space-sm) var(--space-md);
    border-radius: var(--radius-md);
    transition: all 0.2s ease;
    position: relative;
}

.nav-link::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 50%;
    width: 0;
    height: 2px;
    background: var(--gradient-primary);
    transition: all 0.3s var(--ease-out-expo);
    transform: translateX(-50%);
}

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

.nav-link:hover::after {
    width: 80%;
}

.nav-actions {
    display: flex;
    align-items: center;
    gap: var(--space-md);
}

/* Theme Toggle */
.theme-toggle {
    position: relative;
    width: 40px;
    height: 40px;
    border: none;
    background: var(--surface-glass);
    border-radius: var(--radius-md);
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--text-secondary);
    transition: all 0.2s ease;
    overflow: hidden;
}

.theme-toggle:hover {
    background: var(--surface-glass-hover);
    color: var(--text-primary);
}

.sun-icon, .moon-icon {
    position: absolute;
    transition: all 0.3s var(--spring);
}

[data-theme="dark"] .sun-icon {
    opacity: 1;
    transform: rotate(0deg) scale(1);
}

[data-theme="dark"] .moon-icon {
    opacity: 0;
    transform: rotate(90deg) scale(0.5);
}

[data-theme="light"] .sun-icon {
    opacity: 0;
    transform: rotate(-90deg) scale(0.5);
}

[data-theme="light"] .moon-icon {
    opacity: 1;
    transform: rotate(0deg) scale(1);
}

/* Mobile Menu Button */
.mobile-menu-btn {
    display: none;
    flex-direction: column;
    gap: 5px;
    padding: var(--space-sm);
    background: none;
    border: none;
    cursor: pointer;
}

.mobile-menu-btn span {
    display: block;
    width: 24px;
    height: 2px;
    background: var(--text-primary);
    border-radius: var(--radius-full);
    transition: all 0.3s ease;
}

.mobile-menu-btn.active span:nth-child(1) {
    transform: rotate(45deg) translate(5px, 5px);
}

.mobile-menu-btn.active span:nth-child(2) {
    opacity: 0;
}

.mobile-menu-btn.active span:nth-child(3) {
    transform: rotate(-45deg) translate(5px, -5px);
}

/* Mobile Menu */
.mobile-menu {
    display: none;
    position: fixed;
    top: 70px;
    left: 0;
    right: 0;
    background: var(--bg-secondary);
    border-bottom: 1px solid var(--border-primary);
    padding: var(--space-lg);
    flex-direction: column;
    gap: var(--space-md);
    z-index: var(--z-sticky);
    transform: translateY(-100%);
    opacity: 0;
    transition: all 0.3s var(--ease-out-expo);
}

.mobile-menu.active {
    transform: translateY(0);
    opacity: 1;
}

.mobile-link {
    color: var(--text-secondary);
    text-decoration: none;
    font-size: var(--text-lg);
    font-weight: 500;
    padding: var(--space-md);
    border-radius: var(--radius-md);
    transition: all 0.2s ease;
}

.mobile-link:hover {
    color: var(--text-primary);
    background: var(--surface-glass);
}

/* ===================================
   Buttons
   =================================== */

.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: var(--space-sm);
    padding: var(--space-sm) var(--space-lg);
    font-family: var(--font-sans);
    font-size: var(--text-sm);
    font-weight: 500;
    text-decoration: none;
    border-radius: var(--radius-md);
    border: none;
    cursor: pointer;
    transition: all 0.2s ease;
    white-space: nowrap;
}

.btn-primary {
    background: var(--gradient-primary);
    color: white;
    box-shadow: 0 4px 15px rgba(179, 58, 58, 0.3);
}

.btn-primary:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(179, 58, 58, 0.4);
}

.btn-primary:active {
    transform: translateY(0);
}

.btn-secondary {
    background: var(--surface-glass);
    color: var(--text-primary);
    border: 1px solid var(--border-primary);
}

.btn-secondary:hover {
    background: var(--surface-glass-hover);
    border-color: var(--brand-red);
}

.btn-large {
    padding: var(--space-md) var(--space-xl);
    font-size: var(--text-base);
}

.btn-full {
    width: 100%;
}

.btn svg {
    transition: transform 0.2s ease;
}

.btn:hover svg {
    transform: translateX(4px);
}

/* ===================================
   Hero Section
   =================================== */

.hero {
    min-height: calc(100vh - 80px);
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: var(--space-2xl);
    align-items: center;
    padding: calc(80px + var(--space-xl)) var(--space-xl) var(--space-lg);
    max-width: 1400px;
    margin: 0 auto;
}

.hero-content {
    animation: fadeInUp 0.8s var(--ease-out-expo) forwards;
}

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

.hero-badge {
    display: inline-flex;
    align-items: center;
    gap: var(--space-sm);
    padding: var(--space-xs) var(--space-md);
    background: var(--surface-glass);
    border: 1px solid var(--border-primary);
    border-radius: var(--radius-full);
    font-size: var(--text-sm);
    color: var(--text-secondary);
    margin-bottom: var(--space-md);
}

.badge-pulse {
    width: 8px;
    height: 8px;
    background: var(--brand-red);
    border-radius: 50%;
    animation: pulse 2s ease-in-out infinite;
}

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

.hero-title {
    font-size: var(--text-4xl);
    font-weight: 700;
    line-height: 1.1;
    margin-bottom: var(--space-md);
    letter-spacing: -0.02em;
}

.title-line {
    display: block;
}

.gradient-text {
    background: var(--gradient-text);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.hero-description {
    font-size: var(--text-base);
    color: var(--text-secondary);
    margin-bottom: var(--space-lg);
    max-width: 540px;
    line-height: 1.6;
}

.hero-cta {
    display: flex;
    gap: var(--space-md);
    margin-bottom: var(--space-xl);
    flex-wrap: wrap;
}

/* Hero Stats */
.hero-stats {
    display: flex;
    gap: var(--space-2xl);
}

.stat {
    display: flex;
    flex-direction: column;
}

.stat-value {
    font-size: var(--text-2xl);
    font-weight: 700;
    color: var(--text-primary);
    line-height: 1;
}

.stat-suffix {
    color: var(--brand-red);
}

.stat-label {
    font-size: var(--text-sm);
    color: var(--text-tertiary);
    margin-top: var(--space-xs);
}

/* Hero Visual - Code Window */
.hero-visual {
    animation: fadeInUp 0.8s var(--ease-out-expo) 0.2s backwards;
}

.code-window {
    background: var(--code-bg);
    border: 1px solid var(--border-primary);
    border-radius: var(--radius-xl);
    overflow: hidden;
    box-shadow: var(--shadow-xl), var(--shadow-glow);
    transform: perspective(1000px) rotateY(-5deg) rotateX(5deg);
    transition: transform 0.5s var(--ease-out-expo);
    max-width: 100%;
}

.code-window:hover {
    transform: perspective(1000px) rotateY(0deg) rotateX(0deg);
}

.window-header {
    display: flex;
    align-items: center;
    gap: var(--space-md);
    padding: var(--space-md) var(--space-lg);
    background: var(--bg-tertiary);
    border-bottom: 1px solid var(--border-primary);
}

.window-dots {
    display: flex;
    gap: var(--space-sm);
}

.dot {
    width: 12px;
    height: 12px;
    border-radius: 50%;
}

.dot.red { background: #ff5f57; }
.dot.yellow { background: #febc2e; }
.dot.green { background: #28c840; }

.window-title {
    font-size: var(--text-sm);
    color: var(--text-tertiary);
    font-family: var(--font-mono);
}

.code-content {
    padding: var(--space-lg);
    overflow-x: auto;
    max-width: 100%;
}

.code-content pre {
    margin: 0;
    font-family: var(--font-mono);
    font-size: var(--text-sm);
    line-height: 1.8;
}

.code-content code {
    color: var(--code-text);
}

/* Syntax Highlighting */
.keyword { color: #cba6f7; }
.variable { color: #89b4fa; }
.function { color: #f9e2af; }
.string { color: #a6e3a1; }
.property { color: #89dceb; }
.cursor {
    animation: blink 1s step-end infinite;
}

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

[data-theme="light"] .keyword { color: #8839ef; }
[data-theme="light"] .variable { color: #1e66f5; }
[data-theme="light"] .function { color: #df8e1d; }
[data-theme="light"] .string { color: #40a02b; }
[data-theme="light"] .property { color: #04a5e5; }

/* ===================================
   Section Styles
   =================================== */

.section-container {
    max-width: 1200px;
    margin: 0 auto;
    padding: var(--space-4xl) var(--space-xl);
}

.section-header {
    text-align: center;
    max-width: 700px;
    margin: 0 auto var(--space-4xl);
}

.section-tag {
    display: inline-block;
    padding: var(--space-xs) var(--space-md);
    background: var(--surface-glass);
    border: 1px solid var(--border-primary);
    border-radius: var(--radius-full);
    font-size: var(--text-sm);
    color: var(--brand-red);
    font-weight: 500;
    margin-bottom: var(--space-md);
}

.section-title {
    font-size: var(--text-4xl);
    font-weight: 700;
    margin-bottom: var(--space-md);
    letter-spacing: -0.02em;
}

.section-description {
    font-size: var(--text-lg);
    color: var(--text-secondary);
    line-height: 1.7;
}

/* ===================================
   Services Section
   =================================== */

.services {
    position: relative;
}

.services-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: var(--space-lg);
}

.service-card {
    position: relative;
    padding: var(--space-xl);
    background: var(--surface-glass);
    border: 1px solid var(--border-primary);
    border-radius: var(--radius-xl);
    transition: all 0.3s var(--ease-out-expo);
    overflow: hidden;
}

.service-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 3px;
    background: var(--gradient-primary);
    transform: scaleX(0);
    transform-origin: left;
    transition: transform 0.3s var(--ease-out-expo);
}

.service-card:hover {
    transform: translateY(-5px);
    border-color: var(--brand-red);
    box-shadow: var(--shadow-lg);
}

.service-card:hover::before {
    transform: scaleX(1);
}

.service-card.featured {
    border-color: var(--brand-red);
}

.service-card.featured::before {
    transform: scaleX(1);
}

.card-glow {
    position: absolute;
    top: -50%;
    left: -50%;
    width: 200%;
    height: 200%;
    background: radial-gradient(circle, rgba(179, 58, 58, 0.1) 0%, transparent 50%);
    pointer-events: none;
}

.service-icon {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 60px;
    height: 60px;
    background: var(--gradient-primary);
    border-radius: var(--radius-lg);
    margin-bottom: var(--space-lg);
    color: white;
}

.service-title {
    font-size: var(--text-xl);
    font-weight: 600;
    margin-bottom: var(--space-sm);
}

.service-description {
    color: var(--text-secondary);
    margin-bottom: var(--space-lg);
    line-height: 1.6;
}

.service-features {
    list-style: none;
    display: flex;
    flex-direction: column;
    gap: var(--space-sm);
}

.service-features li {
    display: flex;
    align-items: center;
    gap: var(--space-sm);
    color: var(--text-secondary);
    font-size: var(--text-sm);
}

.service-features li::before {
    content: '';
    width: 6px;
    height: 6px;
    background: var(--brand-red);
    border-radius: 50%;
}

/* ===================================
   Approach Section
   =================================== */

.approach {
    background: var(--bg-secondary);
    position: relative;
    overflow: hidden;
}

.approach::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 1px;
    background: linear-gradient(90deg, transparent, var(--border-primary), transparent);
}

.approach-timeline {
    position: relative;
    max-width: 700px;
    margin: 0 auto;
    padding-left: var(--space-md);
}

.approach-step {
    display: flex;
    gap: var(--space-xl);
    margin-bottom: var(--space-2xl);
    opacity: 0;
    transform: translateX(-20px);
    animation: slideIn 0.6s var(--ease-out-expo) forwards;
}

.approach-step:nth-child(2) { animation-delay: 0.1s; }
.approach-step:nth-child(3) { animation-delay: 0.2s; }
.approach-step:nth-child(4) { animation-delay: 0.3s; }
.approach-step:nth-child(5) { animation-delay: 0.4s; }

@keyframes slideIn {
    to {
        opacity: 1;
        transform: translateX(0);
    }
}

.step-number {
    flex-shrink: 0;
    width: 56px;
    height: 56px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: var(--bg-secondary);
    border: 3px solid var(--brand-red);
    border-radius: var(--radius-full);
    font-size: var(--text-lg);
    font-weight: 700;
    color: var(--brand-red);
    position: relative;
    z-index: 1;
}

/* Line connecting step numbers */
.approach-step:not(:last-child) .step-number::after {
    content: '';
    position: absolute;
    top: 100%;
    left: 50%;
    transform: translateX(-50%);
    width: 2px;
    height: calc(var(--space-2xl) + 8px);
    background: var(--brand-red);
    opacity: 0.3;
}

.step-content h3 {
    font-size: var(--text-xl);
    font-weight: 600;
    margin-bottom: var(--space-sm);
}

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

/* ===================================
   Tech Stack Marquee
   =================================== */

.tech-stack {
    padding: var(--space-3xl) 0;
    overflow: hidden;
    border-top: 1px solid var(--border-primary);
    border-bottom: 1px solid var(--border-primary);
}

.tech-title {
    text-align: center;
    font-size: var(--text-sm);
    color: var(--text-tertiary);
    text-transform: uppercase;
    letter-spacing: 0.1em;
    margin-bottom: var(--space-xl);
}

.tech-marquee {
    position: relative;
    overflow: hidden;
    mask-image: linear-gradient(90deg, transparent, black 10%, black 90%, transparent);
}

.tech-track {
    display: flex;
    gap: var(--space-2xl);
    animation: marquee 30s linear infinite;
    width: max-content;
}

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

.tech-item {
    font-size: var(--text-lg);
    font-weight: 500;
    color: var(--text-tertiary);
    white-space: nowrap;
    transition: color 0.2s ease;
}

.tech-item:hover {
    color: var(--text-primary);
}

/* ===================================
   Work/Testimonials Section
   =================================== */

.work {
    position: relative;
}

.testimonials-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: var(--space-lg);
}

.testimonial-card {
    padding: var(--space-xl);
    background: var(--surface-glass);
    border: 1px solid var(--border-primary);
    border-radius: var(--radius-xl);
    transition: all 0.3s var(--ease-out-expo);
}

.testimonial-card:hover {
    transform: translateY(-5px);
    box-shadow: var(--shadow-lg);
}

.testimonial-content {
    margin-bottom: var(--space-lg);
}

.quote-icon {
    margin-bottom: var(--space-md);
    color: var(--brand-red);
}

.testimonial-content p {
    color: var(--text-secondary);
    font-style: italic;
    line-height: 1.7;
}

.testimonial-author {
    display: flex;
    align-items: center;
    gap: var(--space-md);
}

.author-avatar {
    width: 48px;
    height: 48px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: var(--gradient-primary);
    border-radius: var(--radius-full);
    color: white;
    font-weight: 600;
    font-size: var(--text-sm);
}

.author-info {
    display: flex;
    flex-direction: column;
}

.author-name {
    font-weight: 600;
    font-size: var(--text-sm);
}

.author-title {
    color: var(--text-tertiary);
    font-size: var(--text-xs);
}

/* ===================================
   CTA Section
   =================================== */

.cta {
    position: relative;
    background: var(--bg-secondary);
    overflow: hidden;
    overflow-x: clip;
}

.cta::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 1px;
    background: linear-gradient(90deg, transparent, var(--border-primary), transparent);
}

.cta-glow {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: min(600px, 100vw);
    height: min(600px, 100vw);
    background: radial-gradient(circle, rgba(179, 58, 58, 0.15) 0%, transparent 60%);
    pointer-events: none;
}

.cta-content {
    position: relative;
    max-width: 600px;
    margin: 0 auto;
    text-align: center;
}

.cta-title {
    font-size: var(--text-3xl);
    font-weight: 700;
    margin-bottom: var(--space-md);
}

.cta-description {
    color: var(--text-secondary);
    margin-bottom: var(--space-2xl);
    line-height: 1.7;
}

/* Contact Form */
.contact-form {
    text-align: left;
}

.form-row {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: var(--space-md);
}

.form-group {
    position: relative;
    margin-bottom: var(--space-md);
}

.form-group input,
.form-group textarea {
    width: 100%;
    padding: var(--space-lg) var(--space-md);
    background: var(--bg-elevated);
    border: 1px solid var(--border-primary);
    border-radius: var(--radius-md);
    color: var(--text-primary);
    font-family: var(--font-sans);
    font-size: var(--text-base);
    transition: all 0.2s ease;
    resize: none;
}

.form-group input:focus,
.form-group textarea:focus {
    outline: none;
    border-color: var(--brand-red);
    box-shadow: 0 0 0 3px rgba(179, 58, 58, 0.1);
}

.form-group label {
    position: absolute;
    left: var(--space-md);
    top: 50%;
    transform: translateY(-50%);
    color: var(--text-tertiary);
    font-size: var(--text-base);
    pointer-events: none;
    transition: all 0.2s ease;
    background: var(--bg-elevated);
    padding: 0 var(--space-xs);
}

.form-group textarea ~ label {
    top: var(--space-lg);
    transform: translateY(0);
}

.form-group input:focus ~ label,
.form-group input:not(:placeholder-shown) ~ label,
.form-group textarea:focus ~ label,
.form-group textarea:not(:placeholder-shown) ~ label {
    top: 0;
    transform: translateY(-50%);
    font-size: var(--text-xs);
    color: var(--brand-red);
}

/* ===================================
   Footer
   =================================== */

.footer {
    background: var(--bg-primary);
    border-top: 1px solid var(--border-primary);
}

.footer-container {
    max-width: 1200px;
    margin: 0 auto;
    padding: var(--space-4xl) var(--space-xl) var(--space-xl);
}

.footer-main {
    display: grid;
    grid-template-columns: 1fr 2fr;
    gap: var(--space-4xl);
    margin-bottom: var(--space-3xl);
}

.footer-brand {
    max-width: 300px;
}

.footer-tagline {
    color: var(--text-tertiary);
    margin-top: var(--space-md);
    font-size: var(--text-sm);
}

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

.footer-column h4 {
    font-size: var(--text-sm);
    font-weight: 600;
    margin-bottom: var(--space-md);
    color: var(--text-primary);
}

.footer-column a {
    display: block;
    color: var(--text-tertiary);
    text-decoration: none;
    font-size: var(--text-sm);
    padding: var(--space-xs) 0;
    transition: color 0.2s ease;
}

.footer-column a:hover {
    color: var(--brand-red);
}

.footer-bottom {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding-top: var(--space-xl);
    border-top: 1px solid var(--border-primary);
    font-size: var(--text-sm);
    color: var(--text-tertiary);
}

.footer-legal {
    display: flex;
    gap: var(--space-lg);
}

.footer-legal a {
    color: var(--text-tertiary);
    text-decoration: none;
    transition: color 0.2s ease;
}

.footer-legal a:hover {
    color: var(--brand-red);
}

/* ===================================
   Responsive Design
   =================================== */

@media (max-width: 1024px) {
    .hero {
        grid-template-columns: 1fr;
        text-align: center;
        padding-top: calc(80px + var(--space-3xl));
    }
    
    .hero-content {
        order: 1;
    }
    
    .hero-description {
        margin-left: auto;
        margin-right: auto;
    }
    
    .hero-cta {
        justify-content: center;
    }
    
    .hero-stats {
        justify-content: center;
    }
    
    .hero-visual {
        order: 2;
        max-width: 600px;
        margin: 0 auto;
    }
    
    .code-window {
        transform: none;
    }
    
    .services-grid {
        grid-template-columns: 1fr;
    }
    
    .testimonials-grid {
        grid-template-columns: 1fr;
    }
    
    .footer-main {
        grid-template-columns: 1fr;
        gap: var(--space-2xl);
    }
    
    .footer-brand {
        max-width: 100%;
        text-align: center;
    }
}

@media (max-width: 768px) {
    .nav-links,
    .nav-actions .btn {
        display: none;
    }
    
    .mobile-menu-btn {
        display: flex;
    }
    
    .mobile-menu {
        display: flex;
    }
    
    .hero-stats {
        flex-direction: column;
        gap: var(--space-lg);
    }
    
    .form-row {
        grid-template-columns: 1fr;
    }
    
    .approach-timeline {
        padding-left: var(--space-md);
    }
    
    .approach-step {
        gap: var(--space-md);
    }
    
    .step-number {
        width: 48px;
        height: 48px;
        font-size: var(--text-base);
        flex-shrink: 0;
    }
    
    .footer-links {
        grid-template-columns: 1fr;
        text-align: center;
    }
    
    .footer-bottom {
        flex-direction: column;
        gap: var(--space-md);
        text-align: center;
    }
    
    .tech-stack .section-container {
        padding-left: 0;
        padding-right: 0;
    }
}

@media (max-width: 480px) {
    .hero {
        padding: calc(80px + var(--space-xl)) var(--space-md) var(--space-xl);
    }
    
    .section-container {
        padding: var(--space-2xl) var(--space-md);
    }
    
    .approach-step {
        flex-direction: column;
        gap: var(--space-md);
        padding-left: 0;
    }
    
    .approach-timeline {
        padding-left: 0;
    }
    
    .step-number {
        width: 50px;
        height: 50px;
        font-size: var(--text-lg);
    }
    
    .step-number::after {
        display: none;
    }
    
    .code-content {
        padding: var(--space-md);
    }
    
    .code-content pre {
        font-size: var(--text-xs);
    }
    
    .navbar {
        padding: var(--space-md);
    }
    
    .hero-visual {
        margin: 0 calc(-1 * var(--space-md));
        width: calc(100% + var(--space-md) * 2);
    }
    
    .code-window {
        border-radius: 0;
    }
}

/* ===================================
   Scroll Animations (Intersection Observer)
   =================================== */

.animate-on-scroll {
    opacity: 0;
    transform: translateY(20px);
    transition: opacity 0.6s var(--ease-out-expo), transform 0.6s var(--ease-out-expo);
}

.animate-on-scroll.visible {
    opacity: 1;
    transform: translateY(0);
}

/* ===================================
   Custom Scrollbar
   =================================== */

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

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

::-webkit-scrollbar-thumb {
    background: var(--border-primary);
    border-radius: var(--radius-full);
    border: 2px solid var(--bg-secondary);
}

::-webkit-scrollbar-thumb:hover {
    background: var(--text-tertiary);
}

/* ===================================
   Selection Styling
   =================================== */

::selection {
    background: rgba(179, 58, 58, 0.3);
    color: var(--text-primary);
}

/* ===================================
   Focus Styles (Accessibility)
   =================================== */

:focus-visible {
    outline: 2px solid var(--brand-red);
    outline-offset: 2px;
}

/* ===================================
   Reduced Motion
   =================================== */

@media (prefers-reduced-motion: reduce) {
    *,
    *::before,
    *::after {
        animation-duration: 0.01ms !important;
        animation-iteration-count: 1 !important;
        transition-duration: 0.01ms !important;
    }
    
    .tech-track {
        animation: none;
    }
}
