/* ========================================
   KJC Digital 2026 Redesign
   Forward-thinking design system
   ======================================== */

/* ========================================
   CSS Variables - Expanded Color System
   ======================================== */
:root {
    /* Brand Colors - Enhanced */
    --brand-violet: #7B6EF6;
    --brand-violet-light: #9D8FFF;
    --brand-violet-dark: #5A4FD4;
    --brand-blue: #3AA0FF;
    --brand-blue-light: #6BB8FF;
    --brand-blue-dark: #1880E8;

    /* Accent Colors (Aliases) */
    --accent-primary: #7B6EF6;
    --accent-secondary: #3AA0FF;

    /* Backgrounds - True Dark + OLED */
    --bg-base: #0A0A0F;
    --bg-elevated: #141419;
    --bg-surface: #1C1C24;
    --bg-overlay: #26262F;

    /* Surface (Alias for compatibility) */
    --surface-elevated: #141419;

    /* Text - Enhanced Hierarchy */
    --text-primary: #FFFFFF;
    --text-secondary: #B8B8C0;
    --text-tertiary: #808088;
    --text-muted: #4A4A52;

    /* Borders & Dividers */
    --border-subtle: rgba(255, 255, 255, 0.06);
    --border-medium: rgba(255, 255, 255, 0.12);
    --border-strong: rgba(255, 255, 255, 0.18);

    /* Shadows - Layered Depth */
    --shadow-sm: 0 2px 8px rgba(0, 0, 0, 0.12), 0 1px 4px rgba(0, 0, 0, 0.08);
    --shadow-md: 0 4px 16px rgba(0, 0, 0, 0.16), 0 2px 8px rgba(0, 0, 0, 0.12);
    --shadow-lg: 0 8px 32px rgba(0, 0, 0, 0.24), 0 4px 16px rgba(0, 0, 0, 0.16);
    --shadow-xl: 0 16px 64px rgba(0, 0, 0, 0.32), 0 8px 32px rgba(0, 0, 0, 0.24);

    /* Glow Effects */
    --glow-violet: 0 0 24px rgba(123, 110, 246, 0.4), 0 0 48px rgba(123, 110, 246, 0.2);
    --glow-blue: 0 0 24px rgba(58, 160, 255, 0.4), 0 0 48px rgba(58, 160, 255, 0.2);

    /* Fluid Typography - Responsive Scaling */
    --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.95rem + 0.25vw, 1.125rem);
    --text-lg: clamp(1.125rem, 1rem + 0.625vw, 1.375rem);
    --text-xl: clamp(1.25rem, 1.1rem + 0.75vw, 1.625rem);
    --text-2xl: clamp(1.5rem, 1.3rem + 1vw, 2rem);
    --text-3xl: clamp(1.875rem, 1.5rem + 1.875vw, 2.75rem);
    --text-4xl: clamp(2.25rem, 1.75rem + 2.5vw, 3.5rem);
    --text-5xl: clamp(2.75rem, 2rem + 3.75vw, 4.5rem);

    /* Spacing System - Consistent Scale */
    --space-1: clamp(0.25rem, 0.2rem + 0.25vw, 0.375rem);
    --space-2: clamp(0.5rem, 0.45rem + 0.25vw, 0.625rem);
    --space-3: clamp(0.75rem, 0.65rem + 0.5vw, 1rem);
    --space-4: clamp(1rem, 0.85rem + 0.75vw, 1.375rem);
    --space-5: clamp(1.25rem, 1rem + 1.25vw, 1.875rem);
    --space-6: clamp(1.5rem, 1.2rem + 1.5vw, 2.25rem);
    --space-8: clamp(2rem, 1.5rem + 2.5vw, 3.25rem);
    --space-10: clamp(2.5rem, 1.75rem + 3.75vw, 4.375rem);
    --space-12: clamp(3rem, 2rem + 5vw, 5.625rem);
    --space-16: clamp(4rem, 3rem + 5vw, 7rem);

    /* Animation Timing */
    --duration-fast: 150ms;
    --duration-base: 250ms;
    --duration-slow: 400ms;
    --ease-out: cubic-bezier(0.16, 1, 0.3, 1);
    --ease-in-out: cubic-bezier(0.65, 0, 0.35, 1);
    --ease-spring: cubic-bezier(0.34, 1.56, 0.64, 1);

    /* Border Radius */
    --radius-sm: 8px;
    --radius-md: 12px;
    --radius-lg: 16px;
    --radius-xl: 24px;
    --radius-full: 9999px;
}

/* ========================================
   OLED Dark Mode (Optional)
   ======================================== */
@media (prefers-contrast: high) {
    :root {
        --bg-base: #000000;
        --bg-elevated: #0A0A0A;
        --bg-surface: #141414;
        --text-primary: #FFFFFF;
    }
}

/* ========================================
   Reduced Motion Support
   ======================================== */
@media (prefers-reduced-motion: reduce) {
    *, *::before, *::after {
        animation-duration: 0.01ms !important;
        animation-iteration-count: 1 !important;
        transition-duration: 0.01ms !important;
    }
}

/* ========================================
   Base Reset & Modern Defaults
   ======================================== */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html {
    font-size: 16px;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
    text-rendering: optimizeLegibility;
}

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

/* ========================================
   Enhanced Typography System
   ======================================== */
h1, h2, h3, h4, h5, h6 {
    font-weight: 700;
    line-height: 1.2;
    color: var(--text-primary);
    letter-spacing: -0.02em;
}

h1 { font-size: var(--text-5xl); }
h2 { font-size: var(--text-4xl); }
h3 { font-size: var(--text-3xl); }
h4 { font-size: var(--text-2xl); }
h5 { font-size: var(--text-xl); }
h6 { font-size: var(--text-lg); }

.gradient-text {
    background: linear-gradient(135deg, var(--brand-violet) 0%, var(--brand-blue) 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

/* ========================================
   Hero Section - 3D Depth
   ======================================== */
.hero-2026 {
    min-height: 100vh;
    display: flex;
    align-items: center;
    position: relative;
    overflow: hidden;
    padding: var(--space-8) 0;
}

.hero-gradient-mesh {
    position: absolute;
    inset: 0;
    background:
        radial-gradient(circle at 20% 50%, rgba(123, 110, 246, 0.15) 0%, transparent 50%),
        radial-gradient(circle at 80% 80%, rgba(58, 160, 255, 0.12) 0%, transparent 50%),
        radial-gradient(circle at 40% 20%, rgba(157, 143, 255, 0.08) 0%, transparent 50%);
    filter: blur(80px);
    opacity: 0;
    animation: meshFadeIn 2s var(--ease-out) 0.5s forwards;
}

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

.hero-content {
    position: relative;
    z-index: 2;
}

.hero-title {
    font-size: var(--text-5xl);
    margin-bottom: var(--space-5);
    animation: slideUp 0.8s var(--ease-out);
}

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

.hero-subtitle {
    font-size: var(--text-xl);
    color: var(--text-secondary);
    max-width: 600px;
    margin-bottom: var(--space-6);
    animation: slideUp 0.8s var(--ease-out) 0.2s both;
}

/* ========================================
   Universal Page Hero - Clean Header Style
   ======================================== */
.page-hero-2026 {
    background: var(--bg-base);
    padding: var(--space-16) 0 var(--space-12);
    position: relative;
    overflow: hidden;
}

.page-hero-2026::before {
    content: '';
    position: absolute;
    inset: 0;
    background: radial-gradient(circle at 50% 0%, rgba(123, 110, 246, 0.15) 0%, transparent 60%);
    pointer-events: none;
}

.page-hero-content {
    position: relative;
    z-index: 2;
    max-width: 700px;
    margin: 0 auto;
    text-align: center;
}

.page-hero-category {
    font-size: var(--text-sm);
    color: var(--text-tertiary);
    text-transform: uppercase;
    letter-spacing: 0.1em;
    margin-bottom: var(--space-3);
    font-weight: 600;
}

.page-hero-title {
    font-size: var(--text-5xl);
    font-weight: 800;
    margin-bottom: var(--space-4);
    line-height: 1.1;
    color: var(--text-primary);
}

.page-hero-description {
    font-size: var(--text-lg);
    color: var(--text-secondary);
    margin: 0;
    line-height: 1.6;
}

/* ========================================
   3D Stats Card - Spatial Computing
   ======================================== */
.stats-card-3d {
    background: var(--bg-elevated);
    border: 1px solid var(--border-medium);
    border-radius: var(--radius-xl);
    padding: var(--space-6);
    position: relative;
    transform-style: preserve-3d;
    transition: transform var(--duration-slow) var(--ease-out);
    box-shadow: var(--shadow-lg);
}

.stats-card-3d::before {
    content: '';
    position: absolute;
    inset: -1px;
    background: linear-gradient(135deg,
        rgba(123, 110, 246, 0.2) 0%,
        rgba(58, 160, 255, 0.2) 100%);
    border-radius: var(--radius-xl);
    opacity: 0;
    transition: opacity var(--duration-base);
    z-index: -1;
}

.stats-card-3d:hover {
    transform: translateZ(20px) rotateX(2deg) rotateY(-2deg);
}

.stats-card-3d:hover::before {
    opacity: 1;
}

.stat-item {
    margin-bottom: var(--space-5);
}

.stat-item:last-child {
    margin-bottom: 0;
}

.stat-number {
    font-size: var(--text-4xl);
    font-weight: 800;
    color: var(--brand-violet);
    display: block;
    margin-bottom: var(--space-2);
    font-variant-numeric: tabular-nums;
}

.stat-label {
    font-size: var(--text-sm);
    color: var(--text-tertiary);
    text-transform: uppercase;
    letter-spacing: 0.05em;
    font-weight: 600;
}

/* ========================================
   Magnetic Button - Micro-interaction
   ======================================== */
.btn-magnetic {
    position: relative;
    display: inline-flex;
    align-items: center;
    gap: var(--space-2);
    padding: var(--space-4) var(--space-6);
    font-size: var(--text-base);
    font-weight: 600;
    border-radius: var(--radius-full);
    border: none;
    cursor: pointer;
    transition: all var(--duration-base) var(--ease-out);
    overflow: hidden;
}

.btn-magnetic-primary {
    background: linear-gradient(135deg, var(--brand-violet) 0%, var(--brand-violet-dark) 100%);
    color: white;
    box-shadow: var(--shadow-md);
}

.btn-magnetic-primary:hover {
    box-shadow: var(--shadow-lg), var(--glow-violet);
    transform: translateY(-2px);
}

.btn-magnetic-secondary {
    background: transparent;
    color: var(--text-primary);
    border: 1.5px solid var(--border-strong);
}

.btn-magnetic-secondary:hover {
    border-color: var(--brand-violet);
    box-shadow: 0 0 0 4px rgba(123, 110, 246, 0.1);
}

.btn-magnetic::before {
    content: '';
    position: absolute;
    inset: 0;
    background: linear-gradient(135deg, rgba(255, 255, 255, 0.1) 0%, transparent 100%);
    opacity: 0;
    transition: opacity var(--duration-fast);
}

.btn-magnetic:hover::before {
    opacity: 1;
}

/* Button as link styling */
a.btn-magnetic {
    text-decoration: none;
}

/* ========================================
   Portfolio Cards - Stacked Carousel (Homepage only)
   ======================================== */
.portfolio-stack {
    position: relative;
    min-height: 500px;
    perspective: 1500px;
}

.portfolio-stack .portfolio-card {
    background: var(--bg-surface);
    border: 1px solid var(--border-medium);
    border-radius: var(--radius-lg);
    padding: var(--space-6);
    position: absolute;
    width: 100%;
    max-width: 400px;
    transition: all var(--duration-slow) var(--ease-spring);
    cursor: pointer;
}

.portfolio-stack .portfolio-card:nth-child(1) {
    z-index: 3;
    transform: translateY(0) scale(1);
}

.portfolio-stack .portfolio-card:nth-child(2) {
    z-index: 2;
    transform: translateY(20px) scale(0.95);
    opacity: 0.8;
}

.portfolio-stack .portfolio-card:nth-child(3) {
    z-index: 1;
    transform: translateY(40px) scale(0.9);
    opacity: 0.6;
}

.portfolio-stack .portfolio-card:hover {
    transform: translateY(-10px) scale(1.02);
    box-shadow: var(--shadow-xl), var(--glow-violet);
}

.portfolio-header {
    display: flex;
    align-items: center;
    gap: var(--space-3);
    margin-bottom: var(--space-4);
}

.portfolio-logo {
    width: 48px;
    height: 48px;
    border-radius: var(--radius-md);
    background: var(--bg-elevated);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: var(--text-2xl);
}

.portfolio-title {
    font-size: var(--text-xl);
    font-weight: 700;
    color: var(--text-primary);
    margin: 0;
}

.portfolio-description {
    font-size: var(--text-sm);
    color: var(--text-tertiary);
    margin-bottom: var(--space-4);
    line-height: 1.6;
}

.stage-badge-2026 {
    display: inline-flex;
    align-items: center;
    gap: var(--space-2);
    padding: var(--space-2) var(--space-3);
    font-size: var(--text-xs);
    font-weight: 600;
    border-radius: var(--radius-full);
    background: rgba(123, 110, 246, 0.15);
    border: 1px solid rgba(123, 110, 246, 0.3);
    color: var(--brand-violet-light);
    text-transform: uppercase;
    letter-spacing: 0.05em;
}

.stage-indicator {
    width: 6px;
    height: 6px;
    border-radius: 50%;
    background: currentColor;
    animation: pulse 2s ease-in-out infinite;
}

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

/* ========================================
   Process Timeline - Horizontal Scroll
   ======================================== */
.process-timeline {
    display: flex;
    gap: var(--space-6);
    overflow-x: auto;
    scroll-snap-type: x mandatory;
    padding: var(--space-6) 0;
    -webkit-overflow-scrolling: touch;
    scrollbar-width: thin;
    scrollbar-color: var(--brand-violet) var(--bg-surface);
}

.process-timeline::-webkit-scrollbar {
    height: 8px;
}

.process-timeline::-webkit-scrollbar-track {
    background: var(--bg-surface);
    border-radius: var(--radius-full);
}

.process-timeline::-webkit-scrollbar-thumb {
    background: var(--brand-violet);
    border-radius: var(--radius-full);
}

.process-step {
    flex: 0 0 300px;
    scroll-snap-align: start;
    background: var(--bg-surface);
    border: 1px solid var(--border-subtle);
    border-radius: var(--radius-lg);
    padding: var(--space-6);
    position: relative;
}

.process-step::before {
    content: '';
    position: absolute;
    top: 50%;
    right: -24px;
    width: 24px;
    height: 2px;
    background: linear-gradient(90deg, var(--border-medium) 0%, transparent 100%);
}

.process-step:last-child::before {
    display: none;
}

.process-number {
    width: 40px;
    height: 40px;
    border-radius: var(--radius-md);
    background: linear-gradient(135deg, var(--brand-violet) 0%, var(--brand-blue) 100%);
    color: white;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 700;
    margin-bottom: var(--space-3);
}

.process-title {
    font-size: var(--text-lg);
    font-weight: 700;
    color: var(--text-primary);
    margin-bottom: var(--space-2);
}

.process-duration {
    font-size: var(--text-xs);
    color: var(--text-muted);
    text-transform: uppercase;
    letter-spacing: 0.05em;
    margin-bottom: var(--space-3);
}

.process-description {
    font-size: var(--text-sm);
    color: var(--text-tertiary);
    line-height: 1.6;
}

/* ========================================
   Data Viz - Mini Sparklines
   ======================================== */
.sparkline-container {
    margin-top: var(--space-3);
    height: 32px;
}

.sparkline {
    width: 100%;
    height: 100%;
}

.sparkline-path {
    fill: none;
    stroke: var(--brand-violet);
    stroke-width: 2;
    stroke-linecap: round;
    stroke-linejoin: round;
    opacity: 0.6;
}

.sparkline-area {
    fill: url(#sparklineGradient);
    opacity: 0.3;
}

/* ========================================
   Glass Morphism 2.0 - Enhanced Depth
   ======================================== */
.glass-surface {
    background: rgba(255, 255, 255, 0.03);
    backdrop-filter: blur(20px) saturate(180%);
    -webkit-backdrop-filter: blur(20px) saturate(180%);
    border: 1px solid var(--border-subtle);
    box-shadow:
        inset 0 1px 0 rgba(255, 255, 255, 0.05),
        var(--shadow-lg);
}

/* ========================================
   Container Queries Support
   ======================================== */
@container (min-width: 400px) {
    .portfolio-card {
        padding: var(--space-8);
    }
}

/* ========================================
   Focus Styles - Accessibility 2.0
   ======================================== */
:focus-visible {
    outline: 2px solid var(--brand-violet);
    outline-offset: 4px;
    border-radius: var(--radius-sm);
}

/* ========================================
   Utility Classes
   ======================================== */
.container-2026 {
    max-width: 1280px;
    margin: 0 auto;
    padding: 0 var(--space-6);
}

.section-2026 {
    padding: var(--space-12) 0;
}

.grid-auto {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: var(--space-6);
}

.flex-center {
    display: flex;
    align-items: center;
    justify-content: center;
}

.text-balance {
    text-wrap: balance;
}

/* ========================================
   Responsive Breakpoints
   ======================================== */
@media (min-width: 768px) {
    .hero-2026 {
        padding: var(--space-12) 0;
    }

    .stats-card-3d {
        padding: var(--space-8);
    }
}

@media (min-width: 1024px) {
    .portfolio-stack {
        min-height: 600px;
    }
}

/* ========================================
   Navbar 2026
   ======================================== */
.navbar-2026 {
    position: sticky;
    top: 0;
    z-index: 1000;
    background: rgba(10, 10, 15, 0.8);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    border-bottom: 1px solid var(--border-subtle);
}

.navbar-content {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: var(--space-4) 0;
}

.navbar-logo {
    display: flex;
    align-items: center;
    text-decoration: none;
    z-index: 2;
}

.navbar-links {
    display: none;
    list-style: none;
    margin: 0;
    padding: 0;
    gap: var(--space-6);
}

@media (min-width: 1024px) {
    .navbar-links {
        display: flex;
    }
}

.navbar-link {
    color: var(--text-secondary);
    text-decoration: none;
    font-size: var(--text-sm);
    font-weight: 500;
    padding: var(--space-2) 0;
    position: relative;
    transition: color var(--duration-base);
    display: flex;
    align-items: center;
}

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

.navbar-link.active {
    color: var(--brand-violet);
}

.navbar-link.active::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    height: 2px;
    background: linear-gradient(90deg, var(--brand-violet) 0%, var(--brand-blue) 100%);
    border-radius: var(--radius-full);
}

.navbar-dropdown {
    position: relative;
}

.navbar-dropdown-menu {
    position: absolute;
    top: calc(100% + 12px);
    left: 0;
    background: var(--bg-surface);
    border: 1px solid var(--border-medium);
    border-radius: var(--radius-md);
    padding: var(--space-3);
    min-width: 200px;
    box-shadow: var(--shadow-lg);
    opacity: 0;
    visibility: hidden;
    transform: translateY(-10px);
    transition: all var(--duration-base) var(--ease-out);
}

.navbar-dropdown:hover .navbar-dropdown-menu {
    opacity: 1;
    visibility: visible;
    transform: translateY(0);
}

.navbar-dropdown-item {
    display: block;
    color: var(--text-secondary);
    text-decoration: none;
    font-size: var(--text-sm);
    padding: var(--space-2) var(--space-3);
    border-radius: var(--radius-sm);
    transition: all var(--duration-fast);
}

.navbar-dropdown-item:hover {
    background: var(--bg-elevated);
    color: var(--text-primary);
}

.navbar-cta {
    display: none;
}

@media (min-width: 1024px) {
    .navbar-cta {
        display: block;
    }
}

.btn-sm {
    padding: var(--space-3) var(--space-5);
    font-size: var(--text-sm);
}

/* Mobile Menu */
.navbar-mobile-toggle {
    display: flex;
    flex-direction: column;
    gap: 6px;
    background: none;
    border: none;
    cursor: pointer;
    padding: var(--space-2);
    z-index: 1001;
}

@media (min-width: 1024px) {
    .navbar-mobile-toggle {
        display: none;
    }
}

.hamburger-line {
    width: 24px;
    height: 2px;
    background: var(--text-primary);
    border-radius: var(--radius-full);
    transition: all var(--duration-base) var(--ease-out);
}

.navbar-mobile-toggle.active .hamburger-line:nth-child(1) {
    transform: translateY(8px) rotate(45deg);
}

.navbar-mobile-toggle.active .hamburger-line:nth-child(2) {
    opacity: 0;
}

.navbar-mobile-toggle.active .hamburger-line:nth-child(3) {
    transform: translateY(-8px) rotate(-45deg);
}

.navbar-mobile-menu {
    position: fixed;
    top: 0;
    right: -100%;
    width: 100%;
    max-width: 400px;
    height: 100vh;
    background: var(--bg-surface);
    border-left: 1px solid var(--border-medium);
    padding: var(--space-8) var(--space-6);
    padding-top: 80px;
    overflow-y: auto;
    transition: right var(--duration-slow) var(--ease-out);
    z-index: 999;
    box-shadow: var(--shadow-xl);
}

.navbar-mobile-menu.active {
    right: 0;
}

.navbar-mobile-links {
    display: flex;
    flex-direction: column;
    gap: var(--space-1);
}

.navbar-mobile-link {
    color: var(--text-secondary);
    text-decoration: none;
    font-size: var(--text-base);
    font-weight: 500;
    padding: var(--space-3) var(--space-4);
    border-radius: var(--radius-md);
    transition: all var(--duration-fast);
}

.navbar-mobile-link:hover,
.navbar-mobile-link.active {
    background: var(--bg-elevated);
    color: var(--brand-violet);
}

.navbar-mobile-divider {
    height: 1px;
    background: var(--border-subtle);
    margin: var(--space-4) 0;
}

.navbar-mobile-section-title {
    font-size: var(--text-xs);
    color: var(--text-muted);
    text-transform: uppercase;
    letter-spacing: 0.1em;
    font-weight: 600;
    padding: var(--space-2) var(--space-4);
}

body.menu-open {
    overflow: hidden;
}

/* ========================================
   Footer 2026
   ======================================== */
.footer-2026 {
    background: var(--bg-elevated);
    border-top: 1px solid var(--border-subtle);
    padding: var(--space-12) 0 var(--space-6);
    position: relative;
    overflow: hidden;
}

.footer-gradient {
    position: absolute;
    top: 0;
    left: 50%;
    transform: translateX(-50%);
    width: 100%;
    max-width: 1200px;
    height: 200px;
    background: radial-gradient(circle at 50% 0%, rgba(123, 110, 246, 0.08) 0%, transparent 70%);
    filter: blur(60px);
    pointer-events: none;
}

.footer-grid {
    display: grid;
    grid-template-columns: 1fr;
    gap: var(--space-8);
    position: relative;
    z-index: 2;
}

@media (min-width: 640px) {
    .footer-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (min-width: 1024px) {
    .footer-grid {
        grid-template-columns: 2fr 1fr 1fr 1.5fr;
    }
}

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

.footer-logo {
    margin-bottom: var(--space-4);
}

.footer-description {
    font-size: var(--text-sm);
    color: var(--text-tertiary);
    line-height: 1.6;
    margin-bottom: var(--space-4);
}

.footer-company-name {
    font-weight: 600;
    color: var(--text-secondary);
    font-size: var(--text-sm);
}

.footer-heading {
    font-size: var(--text-base);
    font-weight: 600;
    color: var(--text-primary);
    margin-bottom: var(--space-4);
}

.footer-links {
    list-style: none;
    padding: 0;
    margin: 0;
    display: flex;
    flex-direction: column;
    gap: var(--space-3);
}

.footer-links a {
    color: var(--text-tertiary);
    text-decoration: none;
    font-size: var(--text-sm);
    transition: color var(--duration-base);
}

.footer-links a:hover {
    color: var(--brand-violet);
}

.footer-contact {
    margin-bottom: var(--space-4);
}

.footer-contact-label {
    font-size: var(--text-xs);
    color: var(--text-muted);
    text-transform: uppercase;
    letter-spacing: 0.05em;
    margin-bottom: var(--space-2);
}

.footer-contact-link {
    color: var(--text-secondary);
    text-decoration: none;
    font-size: var(--text-base);
    font-weight: 600;
    transition: color var(--duration-base);
}

.footer-contact-link:hover {
    color: var(--brand-violet);
}

.footer-bottom {
    margin-top: var(--space-8);
    padding-top: var(--space-6);
    border-top: 1px solid var(--border-subtle);
    text-align: center;
}

.footer-copyright {
    font-size: var(--text-sm);
    color: var(--text-muted);
    margin: 0;
}

/* ========================================
   Cookie Banner 2026
   ======================================== */
.cookie-banner-2026 {
    position: fixed;
    bottom: 0;
    left: 0;
    right: 0;
    background: var(--bg-surface);
    border-top: 1px solid var(--border-medium);
    padding: var(--space-4) 0;
    z-index: 1000;
    box-shadow: var(--shadow-xl);
}

.cookie-content {
    display: flex;
    flex-direction: column;
    gap: var(--space-4);
    align-items: flex-start;
}

@media (min-width: 768px) {
    .cookie-content {
        flex-direction: row;
        align-items: center;
        justify-content: space-between;
    }
}

.cookie-text {
    font-size: var(--text-sm);
    color: var(--text-secondary);
    margin: 0;
}

.cookie-link {
    color: var(--brand-violet);
    text-decoration: underline;
}

.cookie-actions {
    display: flex;
    gap: var(--space-3);
    flex-shrink: 0;
}

/* ========================================
   Progress Scroll Button (Legacy Support)
   ======================================== */
.progress-wrap {
    position: fixed;
    right: 30px;
    bottom: 30px;
    height: 50px;
    width: 50px;
    cursor: pointer;
    display: block;
    border-radius: 50%;
    box-shadow: var(--shadow-lg);
    z-index: 999;
    opacity: 0;
    visibility: hidden;
    transform: translateY(20px);
    transition: all var(--duration-base) var(--ease-out);
    background: var(--bg-surface);
    border: 1px solid var(--border-medium);
}

.progress-wrap.active-progress {
    opacity: 1;
    visibility: visible;
    transform: translateY(0);
}

.progress-wrap:hover {
    box-shadow: var(--shadow-xl), var(--glow-violet);
}

.progress-wrap::after {
    content: '';
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 16px;
    height: 16px;
    border-left: 2px solid var(--brand-violet);
    border-top: 2px solid var(--brand-violet);
    transform: translate(-50%, -50%) rotate(45deg);
}

.progress-wrap svg {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
}

.progress-wrap svg path {
    fill: none;
    stroke: var(--brand-violet);
    stroke-width: 2;
    stroke-dasharray: 307.919;
    stroke-dashoffset: 307.919;
    transition: stroke-dashoffset 10ms linear;
}

/* Loading Spinner */
.loading {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: var(--bg-base);
    z-index: 99999;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: var(--space-2);
    transition: opacity 0.3s ease-out;
}

.loading span {
    font-size: var(--text-2xl);
    font-weight: 700;
    color: var(--brand-violet);
    animation: loadingBounce 1.4s infinite ease-in-out both;
}

.loading span:nth-child(1) { animation-delay: -0.32s; }
.loading span:nth-child(2) { animation-delay: -0.16s; }
.loading span:nth-child(3) { animation-delay: 0s; }
.loading span:nth-child(5) { animation-delay: -0.32s; }
.loading span:nth-child(6) { animation-delay: -0.16s; }
.loading span:nth-child(7) { animation-delay: 0s; }
.loading span:nth-child(8) { animation-delay: -0.32s; }
.loading span:nth-child(9) { animation-delay: -0.16s; }
.loading span:nth-child(10) { animation-delay: 0s; }
.loading span:nth-child(11) { animation-delay: -0.32s; }

@keyframes loadingBounce {
    0%, 80%, 100% {
        transform: scale(0.8);
        opacity: 0.5;
    }
    40% {
        transform: scale(1);
        opacity: 1;
    }
}

#preloader {
    display: none;
}

/* Mouse Cursor */
.mouse-cursor {
    position: fixed;
    pointer-events: none;
    z-index: 9999;
    display: none;
}

@media (min-width: 1024px) {
    .mouse-cursor {
        display: block;
    }
}

.cursor-outer {
    width: 40px;
    height: 40px;
    border: 2px solid rgba(123, 110, 246, 0.3);
    border-radius: 50%;
    transform: translate(-50%, -50%);
    transition: all 0.1s ease-out;
}

.cursor-inner {
    width: 8px;
    height: 8px;
    background: var(--brand-violet);
    border-radius: 50%;
    transform: translate(-50%, -50%);
    transition: all 0.05s ease-out;
}

/* ========================================
   Bootstrap Grid Compatibility
   ======================================== */
.row {
    display: flex;
    flex-wrap: wrap;
    margin-right: -15px;
    margin-left: -15px;
}

.col, .col-lg-8, .col-lg-10 {
    position: relative;
    width: 100%;
    padding-right: 15px;
    padding-left: 15px;
}

.col-lg-8 {
    flex: 0 0 66.666667%;
    max-width: 66.666667%;
}

.col-lg-10 {
    flex: 0 0 83.333333%;
    max-width: 83.333333%;
}

.justify-content-center {
    justify-content: center;
}

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

@media (max-width: 992px) {
    .col-lg-8, .col-lg-10 {
        flex: 0 0 100%;
        max-width: 100%;
    }
}

/* Legal page specific styles */
.legal-notice-box,
.legal-section,
.legal-contact-box {
    margin-bottom: var(--space-8);
}

.legal-notice-box {
    background: rgba(123, 110, 246, 0.1);
    border: 1px solid rgba(123, 110, 246, 0.3);
    border-left: 4px solid var(--brand-violet);
    border-radius: var(--radius-md);
    padding: var(--space-6);
}

.legal-section h2 {
    color: var(--text-primary);
    margin-bottom: var(--space-4);
}

.legal-section p {
    margin-bottom: var(--space-4);
    line-height: 1.8;
}

.legal-list {
    list-style: none;
    padding-left: 0;
    margin: var(--space-4) 0;
}

.legal-list li {
    padding: var(--space-2) 0 var(--space-2) var(--space-6);
    position: relative;
    line-height: 1.8;
}

.legal-list li::before {
    content: "•";
    color: var(--brand-violet);
    font-weight: bold;
    position: absolute;
    left: var(--space-3);
}

.legal-contact-box {
    background: var(--bg-surface);
    border: 1px solid var(--border-medium);
    border-radius: var(--radius-lg);
    padding: var(--space-6);
}

.mb-0 { margin-bottom: 0 !important; }
.mb-10 { margin-bottom: 10px !important; }
.mb-15 { margin-bottom: 15px !important; }
.mb-20 { margin-bottom: 20px !important; }
.mb-30 { margin-bottom: 30px !important; }
.mb-50 { margin-bottom: 50px !important; }

/* Old template classes that might still be used */
.mobile-app.valign {
    min-height: 50vh;
    display: flex;
    align-items: center;
    position: relative;
    overflow: hidden;
    padding: var(--space-12) 0;
}

.caption {
    position: relative;
    z-index: 2;
}

.stit {
    font-size: var(--text-sm);
    color: var(--text-tertiary);
    text-transform: uppercase;
    letter-spacing: 0.1em;
    font-weight: 600;
}

.stit .left,
.stit .right {
    display: inline-block;
    width: 30px;
    height: 2px;
    background: var(--brand-violet);
    vertical-align: middle;
    margin: 0 10px;
}

.circle-blur {
    position: absolute;
    width: 400px;
    height: 400px;
    background: radial-gradient(circle, rgba(123, 110, 246, 0.15) 0%, transparent 70%);
    filter: blur(80px);
    pointer-events: none;
    z-index: 1;
}

.circle-blur:nth-of-type(1) {
    top: -100px;
    left: -100px;
}

.circle-blur.two {
    bottom: -100px;
    right: -100px;
    background: radial-gradient(circle, rgba(58, 160, 255, 0.12) 0%, transparent 70%);
}

/* ========================================
   Portfolio Page Specific Styles
   ======================================== */
.portfolio-section {
    padding: var(--space-8) 0;
}

.portfolio-section .portfolio-card {
    position: static;
    display: grid;
    grid-template-columns: auto 1fr;
    gap: var(--space-8);
    align-items: start;
    padding: var(--space-8);
    margin-bottom: var(--space-8);
    width: 100%;
    max-width: 100%;
    transform: none;
    opacity: 1;
    background: var(--bg-surface);
    border: 1px solid var(--border-medium);
    border-radius: var(--radius-lg);
}

.portfolio-card.reverse {
    grid-template-columns: 1fr auto;
}

.portfolio-card.reverse .portfolio-card-icon {
    order: 2;
}

.portfolio-card.reverse .portfolio-card-content {
    order: 1;
}

.portfolio-card-icon {
    display: flex;
    align-items: center;
    justify-content: center;
}

.venture-icon-box {
    width: 120px;
    height: 120px;
    border-radius: var(--radius-lg);
    background: var(--bg-elevated);
    display: flex;
    align-items: center;
    justify-content: center;
    border: 1px solid var(--border-medium);
}

.venture-icon-box .icon {
    font-size: 64px;
    color: var(--brand-violet);
}

.venture-icon-box.gradient-box {
    background: linear-gradient(135deg, rgba(123, 110, 246, 0.15) 0%, rgba(58, 160, 255, 0.15) 100%);
}

.venture-icon-box.gradient-box-alt {
    background: linear-gradient(135deg, rgba(246, 190, 84, 0.15) 0%, rgba(123, 110, 246, 0.15) 100%);
}

.venture-icon-box.gradient-box-blue {
    background: linear-gradient(135deg, rgba(58, 160, 255, 0.15) 0%, rgba(76, 201, 240, 0.15) 100%);
}

.portfolio-card-content {
    flex: 1;
}

.portfolio-card-title {
    color: var(--text-primary);
    font-size: var(--text-3xl);
    font-weight: 700;
}

.portfolio-card-lead {
    font-size: var(--text-lg);
    color: var(--text-secondary);
}

.portfolio-card-details {
    color: var(--text-secondary);
    line-height: 1.8;
}

.detail-heading {
    color: var(--text-primary);
    font-weight: 600;
    font-size: var(--text-base);
}

.tech-tags {
    display: flex;
    gap: var(--space-2);
    flex-wrap: wrap;
}

.tech-tags .badge {
    font-size: var(--text-xs);
    padding: var(--space-2) var(--space-3);
    border-radius: var(--radius-sm);
    font-weight: 500;
}

.badge.bg-dark {
    background: var(--bg-elevated);
    color: var(--text-tertiary);
    border: 1px solid var(--border-subtle);
}

.stage-badge-2026.stage-1 {
    background: rgba(246, 190, 84, 0.15);
    border-color: rgba(246, 190, 84, 0.3);
    color: #f6be54;
}

.stage-badge-2026.stage-2 {
    background: rgba(76, 201, 240, 0.15);
    border-color: rgba(76, 201, 240, 0.3);
    color: #6BB8FF;
}

.stage-badge-2026.stage-3 {
    background: rgba(123, 110, 246, 0.15);
    border-color: rgba(123, 110, 246, 0.3);
    color: var(--brand-violet-light);
}

/* Portfolio stats section */
.stats-section {
    background: var(--bg-elevated);
}

.stats-header {
    text-align: center;
    margin-bottom: var(--space-10);
}

.stats-title {
    color: var(--text-primary);
    font-size: var(--text-4xl);
}

.stats-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: var(--space-6);
    max-width: 1000px;
    margin: 0 auto;
}

.stat-card {
    text-align: center;
    padding: var(--space-6);
}

.stat-card .stat-number {
    color: var(--brand-violet);
    font-size: var(--text-4xl);
    font-weight: 800;
}

.stat-card .stat-label {
    color: var(--text-tertiary);
    font-size: var(--text-sm);
}

/* Portfolio CTA */
.cta-section {
    background: var(--bg-base);
}

.cta-box {
    text-align: center;
    padding: var(--space-10);
    max-width: 800px;
    margin: 0 auto;
}

.cta-title {
    color: var(--text-primary);
    font-size: var(--text-4xl);
    margin-bottom: var(--space-4);
}

.cta-description {
    font-size: var(--text-lg);
    color: var(--text-secondary);
}

.cta-buttons {
    display: flex;
    gap: var(--space-4);
    justify-content: center;
    flex-wrap: wrap;
}

.btn-primary {
    background: linear-gradient(135deg, var(--brand-violet) 0%, var(--brand-violet-dark) 100%);
    color: white;
    padding: var(--space-4) var(--space-6);
    border-radius: var(--radius-full);
    text-decoration: none;
    font-weight: 600;
    display: inline-flex;
    align-items: center;
    transition: all var(--duration-base) var(--ease-out);
    box-shadow: var(--shadow-md);
}

.btn-primary:hover {
    box-shadow: var(--shadow-lg), var(--glow-violet);
    transform: translateY(-2px);
}

.btn-secondary {
    background: transparent;
    color: var(--text-primary);
    padding: var(--space-4) var(--space-6);
    border: 1.5px solid var(--border-strong);
    border-radius: var(--radius-full);
    text-decoration: none;
    font-weight: 600;
    display: inline-flex;
    align-items: center;
    transition: all var(--duration-base) var(--ease-out);
}

.btn-secondary:hover {
    border-color: var(--brand-violet);
    box-shadow: 0 0 0 4px rgba(123, 110, 246, 0.1);
}

/* Responsive portfolio layout */
@media (max-width: 1024px) {
    .portfolio-card {
        grid-template-columns: 1fr;
        text-align: center;
    }

    .portfolio-card.reverse {
        grid-template-columns: 1fr;
    }

    .portfolio-card-icon {
        justify-content: center;
        margin-bottom: var(--space-4);
    }

    .portfolio-card.reverse .portfolio-card-icon {
        order: 1;
    }

    .portfolio-card.reverse .portfolio-card-content {
        order: 2;
    }

    .stats-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (max-width: 768px) {
    .stats-grid {
        grid-template-columns: 1fr;
    }
}

/* ========================================
   Responsive Grid Utilities
   ======================================== */
@media (max-width: 1024px) {
    /* Make 4-column grids responsive */
    [style*="grid-template-columns: repeat(4, 1fr)"] {
        grid-template-columns: repeat(2, 1fr) !important;
    }

    /* Make 3-column grids responsive */
    [style*="grid-template-columns: repeat(3, 1fr)"] {
        grid-template-columns: repeat(2, 1fr) !important;
    }
}

@media (max-width: 768px) {
    /* Make all multi-column grids single column on mobile */
    [style*="grid-template-columns: 1fr 1fr"],
    [style*="grid-template-columns: repeat(2, 1fr)"],
    [style*="grid-template-columns: repeat(3, 1fr)"],
    [style*="grid-template-columns: repeat(4, 1fr)"] {
        grid-template-columns: 1fr !important;
    }

    /* Adjust hero title */
    .hero-2026 .hero-title {
        font-size: var(--text-3xl);
    }

    /* Adjust section padding on mobile */
    .section-2026 {
        padding: var(--space-8) 0;
    }
}
