/* =========================================
   SGL Tech - Premium CSS Stylesheet
   ========================================= */

/* CSS Variables */
:root {
    --primary: #6366f1;
    --primary-dark: #4f46e5;
    --primary-light: #818cf8;
    --secondary: #0ea5e9;
    --accent: #22d3ee;
    --purple: #a855f7;
    --pink: #ec4899;
    --dark: #030712;
    --dark-lighter: #111827;
    --dark-card: #0a0f1a;
    --gray-900: #111827;
    --gray-800: #1f2937;
    --gray-700: #374151;
    --gray-600: #4b5563;
    --gray-500: #6b7280;
    --gray-400: #9ca3af;
    --gray-300: #d1d5db;
    --gray-200: #e5e7eb;
    --gray-100: #f3f4f6;
    --white: #ffffff;
    --gradient-1: linear-gradient(135deg, #6366f1 0%, #8b5cf6 50%, #a855f7 100%);
    --gradient-2: linear-gradient(135deg, #0ea5e9 0%, #6366f1 100%);
    --gradient-3: linear-gradient(135deg, #6366f1 0%, #ec4899 100%);
    --gradient-text: linear-gradient(135deg, #6366f1 0%, #0ea5e9 50%, #22d3ee 100%);
    --shadow-glow: 0 0 60px rgba(99, 102, 241, 0.3);
    --shadow-glow-sm: 0 0 30px rgba(99, 102, 241, 0.2);
    --radius: 12px;
    --radius-lg: 24px;
    --radius-xl: 32px;
    --transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    --transition-fast: all 0.2s cubic-bezier(0.4, 0, 0.2, 1);
}

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

html {
    scroll-padding-top: 100px;
}

body {
    font-family: 'Inter', -apple-system, BlinkMacSystemFont, sans-serif;
    background-color: var(--dark);
    color: var(--gray-300);
    line-height: 1.7;
    overflow-x: hidden;
    -webkit-overflow-scrolling: touch;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
    text-rendering: optimizeLegibility;
}

/* Selection */
::selection {
    background: rgba(99, 102, 241, 0.3);
    color: var(--white);
}

/* =========================================
   Background Effects - Aurora & Floating Orbs
   ========================================= */
.bg-effects {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    pointer-events: none;
    z-index: 0;
    overflow: hidden;
}

/* Aurora Effect */
.aurora {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    filter: blur(80px);
    opacity: 0.5;
}

.aurora-layer {
    position: absolute;
    width: 200%;
    height: 200%;
    background: linear-gradient(
        45deg,
        transparent 0%,
        rgba(99, 102, 241, 0.15) 20%,
        transparent 40%,
        rgba(14, 165, 233, 0.1) 60%,
        transparent 80%,
        rgba(168, 85, 247, 0.12) 100%
    );
    animation: aurora-flow 20s ease-in-out infinite;
}

.aurora-1 {
    top: -50%;
    left: -50%;
    animation-delay: 0s;
}

.aurora-2 {
    top: -50%;
    left: -50%;
    background: linear-gradient(
        135deg,
        transparent 0%,
        rgba(168, 85, 247, 0.12) 25%,
        transparent 50%,
        rgba(99, 102, 241, 0.1) 75%,
        transparent 100%
    );
    animation-delay: -7s;
    animation-duration: 25s;
}

.aurora-3 {
    top: -50%;
    left: -50%;
    background: linear-gradient(
        -45deg,
        transparent 0%,
        rgba(14, 165, 233, 0.1) 30%,
        transparent 60%,
        rgba(34, 211, 238, 0.08) 90%,
        transparent 100%
    );
    animation-delay: -14s;
    animation-duration: 30s;
}

@keyframes aurora-flow {
    0%, 100% {
        transform: translate(0, 0) rotate(0deg);
    }
    25% {
        transform: translate(5%, 5%) rotate(5deg);
    }
    50% {
        transform: translate(-5%, 10%) rotate(-5deg);
    }
    75% {
        transform: translate(-10%, 5%) rotate(3deg);
    }
}

/* Floating Orbs - Parallax Effect */
.floating-orbs {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
}

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

.orb-1 {
    width: 400px;
    height: 400px;
    background: radial-gradient(circle, rgba(99, 102, 241, 0.2) 0%, transparent 70%);
    top: 10%;
    left: 10%;
    animation-delay: 0s;
}

.orb-2 {
    width: 300px;
    height: 300px;
    background: radial-gradient(circle, rgba(14, 165, 233, 0.15) 0%, transparent 70%);
    top: 60%;
    right: 10%;
    animation-delay: -3s;
    animation-duration: 18s;
}

.orb-3 {
    width: 250px;
    height: 250px;
    background: radial-gradient(circle, rgba(168, 85, 247, 0.18) 0%, transparent 70%);
    top: 30%;
    right: 25%;
    animation-delay: -6s;
    animation-duration: 20s;
}

.orb-4 {
    width: 350px;
    height: 350px;
    background: radial-gradient(circle, rgba(34, 211, 238, 0.12) 0%, transparent 70%);
    bottom: 20%;
    left: 20%;
    animation-delay: -9s;
    animation-duration: 22s;
}

.orb-5 {
    width: 200px;
    height: 200px;
    background: radial-gradient(circle, rgba(236, 72, 153, 0.1) 0%, transparent 70%);
    top: 50%;
    left: 50%;
    animation-delay: -12s;
    animation-duration: 17s;
}

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

/* Parallax scroll effect for orbs */
.orb-1 { --parallax-speed: 0.02; }
.orb-2 { --parallax-speed: 0.03; }
.orb-3 { --parallax-speed: 0.015; }
.orb-4 { --parallax-speed: 0.025; }
.orb-5 { --parallax-speed: 0.035; }

/* Cursor Glow Effect */
.cursor-glow {
    position: fixed;
    width: 600px;
    height: 600px;
    background: radial-gradient(circle, rgba(99, 102, 241, 0.15) 0%, transparent 70%);
    pointer-events: none;
    z-index: 0;
    backface-visibility: hidden;
}

/* Reduce motion for users who prefer it */
@media (prefers-reduced-motion: reduce) {
    html {
        scroll-behavior: auto;
    }

    *, *::before, *::after {
        animation-duration: 0.01ms !important;
        animation-iteration-count: 1 !important;
        transition-duration: 0.01ms !important;
    }

    .cursor-glow {
        display: none;
    }
}


/* Typography */
h1, h2, h3, h4, h5, h6 {
    color: var(--white);
    font-weight: 700;
    line-height: 1.1;
    letter-spacing: -0.02em;
}

h1 {
    font-size: clamp(2.75rem, 7vw, 5rem);
    font-weight: 800;
}

h2 {
    font-size: clamp(2rem, 5vw, 3.5rem);
    font-weight: 700;
}

h3 {
    font-size: clamp(1.25rem, 2.5vw, 1.75rem);
    font-weight: 600;
}

p {
    color: var(--gray-400);
    font-size: 1.125rem;
    line-height: 1.8;
}

a {
    color: inherit;
    text-decoration: none;
    transition: var(--transition-fast);
}

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

/* Container */
.container {
    max-width: 1280px;
    margin: 0 auto;
    padding: 0 32px;
}

/* =========================================
   Navigation
   ========================================= */
.navbar {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    z-index: 1000;
    padding: 16px 0;
    transition: var(--transition);
}

.navbar::before {
    content: '';
    position: absolute;
    inset: 0;
    background: rgba(3, 7, 18, 0.8);
    backdrop-filter: blur(20px);
    border-bottom: 1px solid rgba(255, 255, 255, 0.05);
    opacity: 0;
    transition: var(--transition);
}

.navbar.scrolled::before {
    opacity: 1;
}

.nav-container {
    max-width: 1280px;
    margin: 0 auto;
    padding: 0 32px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    position: relative;
}

/* Logo */
.logo {
    display: flex;
    align-items: center;
    gap: 6px;
    z-index: 10;
}

.logo-icon {
    display: block;
    flex-shrink: 0;
    transition: all 0.3s ease;
}

.logo:hover .logo-icon {
    filter: drop-shadow(0 0 15px rgba(99, 102, 241, 0.6)) drop-shadow(0 0 30px rgba(139, 92, 246, 0.4));
    transform: scale(1.05);
}

.logo-text {
    font-size: 1.5rem;
    font-weight: 700;
    color: var(--white);
}

.nav-links {
    display: flex;
    align-items: center;
    gap: 40px;
    list-style: none;
}

.nav-links a {
    color: var(--gray-400);
    font-weight: 500;
    font-size: 0.95rem;
    position: relative;
}

.nav-links a:not(.btn-nav):hover {
    color: var(--white);
}

.nav-links a:not(.btn-nav)::after {
    content: '';
    position: absolute;
    bottom: -4px;
    left: 0;
    width: 0;
    height: 2px;
    background: var(--gradient-1);
    transition: var(--transition);
}

.nav-links a:not(.btn-nav):hover::after {
    width: 100%;
}

.btn-nav {
    padding: 12px 24px;
    background: var(--gradient-1);
    border-radius: 10px;
    color: var(--white) !important;
    font-weight: 600;
    box-shadow: 0 4px 20px rgba(99, 102, 241, 0.3);
}

.btn-nav:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 30px rgba(99, 102, 241, 0.4);
}

.mobile-menu-btn {
    display: none;
    flex-direction: column;
    gap: 6px;
    background: none;
    border: none;
    cursor: pointer;
    padding: 8px;
    z-index: 10;
}

.mobile-menu-btn span {
    display: block;
    width: 28px;
    height: 2px;
    background: var(--white);
    transition: var(--transition);
    border-radius: 2px;
}

/* =========================================
   Hero Section
   ========================================= */
.hero {
    position: relative;
    min-height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 140px 32px 100px;
    overflow: hidden;
}

.hero-bg {
    position: absolute;
    inset: 0;
    overflow: hidden;
}

.hero-grid {
    position: absolute;
    inset: 0;
    background-image:
        linear-gradient(rgba(99, 102, 241, 0.05) 1px, transparent 1px),
        linear-gradient(90deg, rgba(99, 102, 241, 0.05) 1px, transparent 1px);
    background-size: 60px 60px;
    mask-image: radial-gradient(ellipse 80% 50% at 50% 50%, black 40%, transparent 100%);
    animation: grid-pulse 4s ease-in-out infinite;
}

@keyframes grid-pulse {
    0%, 100% { opacity: 0.6; }
    50% { opacity: 1; }
}

/* Animated circuit lines overlay */
.hero-bg::after {
    content: '';
    position: absolute;
    inset: 0;
    background:
        linear-gradient(90deg, transparent 0%, transparent 49%, rgba(99, 102, 241, 0.1) 50%, transparent 51%, transparent 100%),
        linear-gradient(0deg, transparent 0%, transparent 49%, rgba(6, 182, 212, 0.08) 50%, transparent 51%, transparent 100%);
    background-size: 120px 120px;
    animation: circuit-flow 8s linear infinite;
    mask-image: radial-gradient(ellipse 60% 60% at 50% 50%, black 20%, transparent 80%);
}

@keyframes circuit-flow {
    0% { background-position: 0 0, 0 0; }
    100% { background-position: 120px 0, 0 120px; }
}

/* Data stream particles */
.hero-bg::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background-image: radial-gradient(circle at center, rgba(99, 102, 241, 0.8) 0%, transparent 2px);
    background-size: 80px 80px;
    animation: data-stream 20s linear infinite;
    opacity: 0.3;
}

@keyframes data-stream {
    0% { transform: translateY(0); }
    100% { transform: translateY(-80px); }
}

.hero-glow {
    position: absolute;
    border-radius: 50%;
    filter: blur(80px);
    opacity: 0.4;
    /* GPU acceleration */
    backface-visibility: hidden;
    transform: translateZ(0);
}

.hero-glow-1 {
    width: 600px;
    height: 600px;
    background: rgba(99, 102, 241, 0.3);
    top: -200px;
    left: -100px;
}

.hero-glow-2 {
    width: 500px;
    height: 500px;
    background: rgba(14, 165, 233, 0.2);
    bottom: -100px;
    right: -100px;
}

.hero-glow-3 {
    width: 400px;
    height: 400px;
    background: rgba(168, 85, 247, 0.2);
    top: 50%;
    left: 50%;
    transform: translate3d(-50%, -50%, 0);
}

.hero-content {
    position: relative;
    text-align: center;
    max-width: 900px;
    z-index: 1;
}

.hero-badge {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    padding: 10px 20px;
    background: rgba(99, 102, 241, 0.1);
    border: 1px solid rgba(99, 102, 241, 0.2);
    border-radius: 50px;
    color: var(--primary-light);
    font-size: 0.875rem;
    font-weight: 500;
    margin-bottom: 32px;
    animation: fadeInUp 0.6s ease-out;
}

.badge-dot {
    width: 8px;
    height: 8px;
    background: var(--accent);
    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 h1 {
    margin-bottom: 28px;
    animation: fadeInUp 0.6s ease-out 0.1s backwards;
}

.hero-subtitle {
    max-width: 700px;
    margin: 0 auto 40px;
    font-size: 1.25rem;
    color: var(--gray-400);
    animation: fadeInUp 0.6s ease-out 0.2s backwards;
}

.hero-buttons {
    display: flex;
    gap: 16px;
    justify-content: center;
    flex-wrap: wrap;
    animation: fadeInUp 0.6s ease-out 0.3s backwards;
}

/* Buttons */
.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    padding: 16px 32px;
    font-size: 1rem;
    font-weight: 600;
    border-radius: 12px;
    border: none;
    cursor: pointer;
    transition: var(--transition);
    position: relative;
    overflow: hidden;
}

.btn svg {
    width: 20px;
    height: 20px;
    transition: var(--transition);
}

.btn-primary {
    background: var(--gradient-1);
    color: var(--white);
    box-shadow: 0 4px 20px rgba(99, 102, 241, 0.3);
}

.btn-primary:hover {
    transform: translateY(-3px);
    box-shadow: 0 12px 40px rgba(99, 102, 241, 0.4);
}

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

.btn-secondary {
    background: rgba(255, 255, 255, 0.03);
    color: var(--white);
    border: 1px solid rgba(255, 255, 255, 0.1);
    backdrop-filter: blur(10px);
}

.btn-secondary:hover {
    background: rgba(255, 255, 255, 0.08);
    border-color: rgba(255, 255, 255, 0.2);
    transform: translateY(-3px);
}

.btn-outline {
    background: transparent;
    color: var(--white);
    border: 1px solid rgba(255, 255, 255, 0.2);
    padding: 14px 28px;
}

.btn-outline:hover {
    background: rgba(255, 255, 255, 0.05);
    border-color: var(--primary);
}

.btn-large {
    padding: 20px 40px;
    font-size: 1.1rem;
}

.btn-full {
    width: 100%;
}

.btn:disabled {
    opacity: 0.6;
    cursor: not-allowed;
    transform: none !important;
}

/* Hero Scroll Indicator */
.hero-scroll {
    position: absolute;
    bottom: 30px;
    left: 50%;
    transform: translateX(-50%);
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 12px;
    animation: fadeInUp 0.6s ease-out 0.5s backwards;
}

.hero-scroll span {
    font-size: 0.8rem;
    color: var(--gray-500);
    text-transform: uppercase;
    letter-spacing: 2px;
}

.scroll-indicator {
    width: 24px;
    height: 40px;
    border: 2px solid rgba(255, 255, 255, 0.2);
    border-radius: 12px;
    display: flex;
    justify-content: center;
    padding-top: 8px;
}

.scroll-dot {
    width: 4px;
    height: 8px;
    background: var(--primary);
    border-radius: 2px;
    animation: scrollDown 2s ease-in-out infinite;
}

@keyframes scrollDown {
    0%, 100% { transform: translateY(0); opacity: 1; }
    50% { transform: translateY(12px); opacity: 0.3; }
}

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

/* =========================================
   Marquee Banner
   ========================================= */
.marquee-container {
    padding: 24px 0;
    background: linear-gradient(90deg, var(--dark) 0%, var(--dark-lighter) 50%, var(--dark) 100%);
    border-top: 1px solid rgba(255, 255, 255, 0.05);
    border-bottom: 1px solid rgba(255, 255, 255, 0.05);
    overflow: hidden;
}

.marquee {
    display: flex;
    width: fit-content;
    backface-visibility: hidden;
    transform: translateZ(0);
    animation: marquee 40s linear infinite;
}

.marquee-content {
    display: flex;
    align-items: center;
    gap: 48px;
    padding-right: 48px;
}

.marquee-content span {
    font-size: 1.1rem;
    font-weight: 600;
    color: var(--gray-500);
    white-space: nowrap;
    text-transform: uppercase;
    letter-spacing: 2px;
}

.marquee-dot {
    width: 6px;
    height: 6px;
    background: var(--primary);
    border-radius: 50%;
}

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

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

.section-header {
    margin-bottom: 48px;
}

.section-header.centered {
    text-align: center;
}

.section-number {
    display: block;
    font-size: 0.875rem;
    font-weight: 700;
    color: var(--primary);
    margin-bottom: 16px;
    letter-spacing: 2px;
}

.section-tag {
    display: inline-block;
    padding: 10px 20px;
    background: linear-gradient(135deg, rgba(99, 102, 241, 0.15) 0%, rgba(6, 182, 212, 0.1) 100%);
    border: 1px solid rgba(99, 102, 241, 0.3);
    border-radius: 50px;
    color: var(--primary-light);
    font-size: 0.8rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 1.5px;
    margin-bottom: 20px;
    position: relative;
    box-shadow: 0 0 20px rgba(99, 102, 241, 0.2), inset 0 1px 0 rgba(255, 255, 255, 0.1);
    animation: tag-glow 3s ease-in-out infinite;
}

@keyframes tag-glow {
    0%, 100% { box-shadow: 0 0 20px rgba(99, 102, 241, 0.2), inset 0 1px 0 rgba(255, 255, 255, 0.1); }
    50% { box-shadow: 0 0 30px rgba(99, 102, 241, 0.35), inset 0 1px 0 rgba(255, 255, 255, 0.15); }
}

.section-header h2 {
    margin-bottom: 20px;
}

.section-header p {
    max-width: 600px;
}

.section-header.centered p {
    margin: 0 auto;
}

.section-subtitle {
    color: rgba(255, 255, 255, 0.7);
    font-size: 1.1rem;
    line-height: 1.6;
    margin-top: 16px;
}

/* =========================================
   Services Section
   ========================================= */
.services {
    background: var(--dark);
}

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

.service-card {
    position: relative;
    padding: 40px;
    background: linear-gradient(135deg, rgba(17, 24, 39, 0.8) 0%, rgba(10, 15, 26, 0.8) 100%);
    border: 1px solid rgba(255, 255, 255, 0.05);
    border-radius: var(--radius-lg);
    transition: var(--transition);
    overflow: hidden;
    display: -webkit-flex;
    display: flex;
    -webkit-flex-direction: column;
    flex-direction: column;
    -webkit-align-items: center;
    align-items: center;
    text-align: center;
}

.service-card > * {
    position: relative;
    text-align: center;
    width: 100%;
    display: -webkit-flex;
    display: flex;
    -webkit-flex-direction: column;
    flex-direction: column;
    -webkit-align-items: center;
    align-items: center;
}

.service-card .service-icon {
    margin-left: auto;
    margin-right: auto;
}

.service-card::before {
    content: '';
    position: absolute;
    inset: 0;
    background: var(--gradient-1);
    opacity: 0;
    transition: var(--transition);
}

.service-card:hover {
    transform: translateY(-8px);
    border-color: rgba(99, 102, 241, 0.3);
    box-shadow: var(--shadow-glow);
}

.service-card:hover::before {
    opacity: 0.05;
}

.service-number {
    position: absolute;
    top: 24px;
    right: 24px;
    font-size: 4rem;
    font-weight: 900;
    color: rgba(255, 255, 255, 0.02);
    line-height: 1;
}

.service-icon {
    position: relative;
    width: 64px;
    height: 64px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: var(--gradient-1);
    border-radius: 16px;
    margin: 0 auto 24px;
    box-shadow: 0 8px 32px rgba(99, 102, 241, 0.3);
}

.service-icon svg {
    width: 32px;
    height: 32px;
    color: var(--white);
}

.service-card h3 {
    position: relative;
    margin-bottom: 16px;
}

.service-card p {
    position: relative;
    font-size: 1rem;
    color: var(--gray-500);
    margin-bottom: 24px;
}

.service-tags {
    position: relative;
    display: -webkit-flex;
    display: flex;
    -webkit-flex-direction: row;
    flex-direction: row;
    -webkit-flex-wrap: wrap;
    flex-wrap: wrap;
    gap: 8px;
    -webkit-justify-content: flex-start;
    justify-content: flex-start;
    -webkit-align-items: flex-start;
    align-items: flex-start;
    width: 100%;
}

.service-tags span {
    padding: 6px 14px;
    background: rgba(99, 102, 241, 0.1);
    border-radius: 6px;
    font-size: 0.8rem;
    font-weight: 500;
    color: var(--primary-light);
}

/* Services Tabs */
.services-tabs {
    max-width: 1000px;
    margin: 0 auto;
}

.tabs-nav {
    display: flex;
    justify-content: center;
    gap: 8px;
    margin-bottom: 48px;
    flex-wrap: wrap;
}

.tab-btn {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 14px 24px;
    background: rgba(255, 255, 255, 0.03);
    border: 1px solid rgba(255, 255, 255, 0.08);
    border-radius: 50px;
    color: var(--gray-500);
    font-size: 0.95rem;
    font-weight: 500;
    cursor: pointer;
    transition: all 0.3s ease;
}

.tab-btn svg {
    width: 20px;
    height: 20px;
}

.tab-btn:hover {
    background: rgba(99, 102, 241, 0.1);
    border-color: rgba(99, 102, 241, 0.2);
    color: var(--white);
}

.tab-btn.active {
    background: var(--gradient-1);
    border-color: transparent;
    color: var(--white);
    box-shadow: 0 8px 24px rgba(99, 102, 241, 0.3);
}

.tabs-content {
    position: relative;
    min-height: 400px;
}

.tab-panel {
    display: none;
    animation: fadeIn 0.4s ease;
}

.tab-panel.active {
    display: block;
}

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

.tab-panel-inner {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 60px;
    align-items: center;
    padding: 48px;
    background: linear-gradient(135deg, rgba(10, 15, 26, 0.9) 0%, rgba(17, 24, 39, 0.9) 100%);
    border: 1px solid rgba(255, 255, 255, 0.08);
    border-radius: var(--radius-xl);
}

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

.tab-info h3 {
    font-size: 1.75rem;
    margin-bottom: 16px;
}

.tab-info p {
    color: var(--gray-500);
    line-height: 1.7;
    margin-bottom: 24px;
}

.tab-features {
    list-style: none;
    padding: 0;
    margin: 0 0 24px;
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 12px;
}

.tab-features li {
    display: flex;
    align-items: center;
    gap: 8px;
    color: var(--gray-400);
    font-size: 0.9rem;
}

.tab-features li::before {
    content: '';
    width: 6px;
    height: 6px;
    background: var(--primary);
    border-radius: 50%;
    flex-shrink: 0;
}

.tab-tags {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
}

.tab-tags span {
    padding: 6px 14px;
    background: rgba(99, 102, 241, 0.1);
    border: 1px solid rgba(99, 102, 241, 0.2);
    border-radius: 6px;
    font-size: 0.8rem;
    font-weight: 500;
    color: var(--primary-light);
}

/* Code Window Visual */
.code-window {
    background: #1a1a2e;
    border-radius: 12px;
    overflow: hidden;
    border: 1px solid rgba(255, 255, 255, 0.1);
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.4);
    width: 100%;
    max-width: 320px;
}

.code-header {
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 12px 16px;
    background: rgba(255, 255, 255, 0.03);
    border-bottom: 1px solid rgba(255, 255, 255, 0.05);
}

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

.code-header .dot.red { background: #ff5f57; }
.code-header .dot.yellow { background: #ffbd2e; }
.code-header .dot.green { background: #28ca41; }

.code-header .filename {
    margin-left: auto;
    font-size: 0.75rem;
    color: var(--gray-500);
}

.code-body {
    padding: 20px;
    font-family: 'Monaco', 'Menlo', monospace;
    font-size: 0.8rem;
    line-height: 1.8;
}

.code-body code {
    display: block;
    color: var(--gray-400);
}

.code-body .keyword { color: #c678dd; }
.code-body .tag { color: #e06c75; }
.code-body .attr { color: #d19a66; }
.code-body .string { color: #98c379; }

/* Cutting-Edge Tech Visuals */
.tech-visual {
    position: relative;
    width: 100%;
    max-width: 100%;
    min-height: 280px;
    border-radius: 16px;
    background: linear-gradient(135deg, rgba(10, 15, 26, 0.9) 0%, rgba(17, 24, 39, 0.9) 100%);
    border: 1px solid rgba(255, 255, 255, 0.08);
    overflow: hidden;
    display: flex;
    align-items: center;
    justify-content: center;
}

.visual-glow {
    position: absolute;
    width: 200px;
    height: 200px;
    background: radial-gradient(circle, rgba(99, 102, 241, 0.3) 0%, transparent 70%);
    filter: blur(40px);
    animation: glowPulse 4s ease-in-out infinite;
}

.visual-glow.cyan {
    background: radial-gradient(circle, rgba(6, 182, 212, 0.3) 0%, transparent 70%);
}

.visual-glow.purple {
    background: radial-gradient(circle, rgba(139, 92, 246, 0.3) 0%, transparent 70%);
}

@keyframes glowPulse {
    0%, 100% { opacity: 0.5; transform: scale(1); }
    50% { opacity: 0.8; transform: scale(1.1); }
}

/* Web Apps Visual - Floating Cards */
.floating-elements {
    position: absolute;
    inset: 0;
    z-index: 2;
}

.float-card {
    position: absolute;
    padding: 10px 14px;
    background: rgba(255, 255, 255, 0.03);
    backdrop-filter: blur(10px);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 10px;
    display: flex;
    align-items: center;
    gap: 8px;
    animation: float 6s ease-in-out infinite;
}

.float-card .card-shine {
    position: absolute;
    inset: 0;
    background: linear-gradient(135deg, rgba(255,255,255,0.1) 0%, transparent 50%);
    border-radius: 10px;
    opacity: 0;
    transition: opacity 0.3s;
}

.float-card:hover .card-shine {
    opacity: 1;
}

.float-icon {
    width: 24px;
    height: 24px;
    color: var(--primary-light);
}

.float-icon svg {
    width: 100%;
    height: 100%;
}

.float-label {
    font-size: 0.75rem;
    font-weight: 600;
    color: var(--gray-300);
}

.float-card.f1 { top: 15%; left: 5%; animation-delay: 0s; }
.float-card.f2 { top: 15%; right: 5%; animation-delay: 1.5s; }
.float-card.f3 { bottom: 15%; left: 5%; animation-delay: 3s; }
.float-card.f4 { bottom: 15%; right: 5%; animation-delay: 4.5s; }

@keyframes float {
    0%, 100% { transform: translateY(0); }
    50% { transform: translateY(-8px); }
}

.center-orb {
    position: relative;
    width: 70px;
    height: 70px;
    z-index: 3;
}

.orb-ring {
    position: absolute;
    inset: -10px;
    border: 2px solid rgba(99, 102, 241, 0.3);
    border-radius: 50%;
    animation: orbRotate 8s linear infinite;
}

.orb-ring.r2 {
    inset: -20px;
    border-color: rgba(6, 182, 212, 0.2);
    animation-duration: 12s;
    animation-direction: reverse;
}

@keyframes orbRotate {
    from { transform: rotate(0deg); }
    to { transform: rotate(360deg); }
}

.orb-core {
    width: 100%;
    height: 100%;
    background: var(--gradient-1);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0 0 30px rgba(99, 102, 241, 0.4);
}

.orb-core svg {
    width: 32px;
    height: 32px;
    color: white;
}

.connection-lines {
    position: absolute;
    inset: 0;
    z-index: 1;
    opacity: 0.6;
}

.connection-lines svg {
    width: 100%;
    height: 100%;
}

.conn-line {
    stroke-dasharray: 100;
    stroke-dashoffset: 100;
    animation: drawLine 3s ease-in-out infinite;
}

.conn-line.l2 { animation-delay: 0.5s; }
.conn-line.l3 { animation-delay: 1s; }
.conn-line.l4 { animation-delay: 1.5s; }

@keyframes drawLine {
    0%, 100% { stroke-dashoffset: 100; }
    50% { stroke-dashoffset: 0; }
}

/* Extension Visual - Browser Frame */
.browser-frame {
    width: 100%;
    max-width: 280px;
    background: #0f1119;
    border-radius: 10px;
    overflow: hidden;
    border: 1px solid rgba(255, 255, 255, 0.1);
    z-index: 2;
}

.browser-chrome {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 10px 12px;
    background: rgba(255, 255, 255, 0.02);
    border-bottom: 1px solid rgba(255, 255, 255, 0.05);
}

.browser-dots {
    display: flex;
    gap: 5px;
}

.browser-dots span {
    width: 8px;
    height: 8px;
    border-radius: 50%;
}

.browser-dots span:first-child { background: #ff5f57; }
.browser-dots span:nth-child(2) { background: #ffbd2e; }
.browser-dots span:last-child { background: #28ca41; }

.tab-strip {
    flex: 1;
}

.browser-tab {
    display: inline-block;
    padding: 6px 12px;
    background: rgba(255, 255, 255, 0.05);
    border-radius: 6px 6px 0 0;
    font-size: 0.7rem;
    color: var(--gray-400);
}

.extension-icons {
    display: flex;
    gap: 6px;
}

.ext-icon-slot {
    width: 22px;
    height: 22px;
    border-radius: 4px;
    background: rgba(255, 255, 255, 0.05);
}

.ext-icon-slot.active {
    background: var(--gradient-1);
    display: flex;
    align-items: center;
    justify-content: center;
}

.ext-icon-slot svg {
    width: 14px;
    height: 14px;
    color: white;
}

.pulse-glow {
    animation: pulseGlow 2s ease-in-out infinite;
}

@keyframes pulseGlow {
    0%, 100% { box-shadow: 0 0 0 0 rgba(99, 102, 241, 0.4); }
    50% { box-shadow: 0 0 12px 4px rgba(99, 102, 241, 0.3); }
}

.browser-viewport {
    padding: 20px;
    position: relative;
}

.page-content {
    display: flex;
    flex-direction: column;
    gap: 8px;
    opacity: 0.3;
}

.content-line {
    height: 8px;
    background: rgba(255, 255, 255, 0.1);
    border-radius: 4px;
}

.content-line.short {
    width: 60%;
}

.extension-action {
    position: absolute;
    right: 20px;
    top: 50%;
    transform: translateY(-50%);
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 10px 14px;
    background: rgba(34, 197, 94, 0.15);
    border: 1px solid rgba(34, 197, 94, 0.3);
    border-radius: 8px;
    color: #4ade80;
    font-size: 0.8rem;
    font-weight: 600;
}

.extension-action svg {
    width: 16px;
    height: 16px;
}

.action-ripple {
    position: absolute;
    inset: 0;
    border: 2px solid #4ade80;
    border-radius: 8px;
    animation: ripple 2s ease-out infinite;
}

@keyframes ripple {
    0% { transform: scale(1); opacity: 0.5; }
    100% { transform: scale(1.3); opacity: 0; }
}

/* Custom Software Visual - Neural Network */
.neural-network {
    position: relative;
    width: 100%;
    height: 100%;
    z-index: 2;
}

.neural-layer {
    position: absolute;
    display: flex;
    flex-direction: column;
    gap: 20px;
    justify-content: center;
    height: 100%;
}

.neural-layer.input { left: 30px; }
.neural-layer.hidden { left: 50%; transform: translateX(-50%); }
.neural-layer.output { right: 30px; }

.neuron {
    width: 16px;
    height: 16px;
    border-radius: 50%;
    background: var(--gradient-1);
    box-shadow: 0 0 15px rgba(99, 102, 241, 0.5);
    animation: neuronPulse 2s ease-in-out infinite;
}

.neuron:nth-child(2) { animation-delay: 0.3s; }
.neuron:nth-child(3) { animation-delay: 0.6s; }
.neuron:nth-child(4) { animation-delay: 0.9s; }

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

.neural-connections {
    position: absolute;
    inset: 0;
    z-index: 1;
}

.neural-connections line {
    animation: connectionFlow 3s linear infinite;
}

@keyframes connectionFlow {
    0% { stroke-opacity: 0.1; }
    50% { stroke-opacity: 0.5; }
    100% { stroke-opacity: 0.1; }
}

.ai-badge {
    position: absolute;
    bottom: 15px;
    left: 50%;
    transform: translateX(-50%);
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 8px 16px;
    background: rgba(139, 92, 246, 0.15);
    border: 1px solid rgba(139, 92, 246, 0.3);
    border-radius: 20px;
    z-index: 3;
}

.ai-pulse {
    width: 8px;
    height: 8px;
    background: #8b5cf6;
    border-radius: 50%;
    animation: aiPulse 1.5s ease-in-out infinite;
}

@keyframes aiPulse {
    0%, 100% { opacity: 0.5; }
    50% { opacity: 1; box-shadow: 0 0 10px #8b5cf6; }
}

.ai-text {
    font-size: 0.75rem;
    font-weight: 600;
    color: #a78bfa;
    text-transform: uppercase;
    letter-spacing: 1px;
}

/* Bleeding Edge AI Brain Visual */
.custom-visual {
    display: flex;
    flex-direction: column;
    align-items: center;
    padding: 20px;
    min-height: 280px;
}

.ai-brain-visual {
    position: relative;
    width: 180px;
    height: 180px;
    margin: 0 auto 20px;
}

.brain-ring {
    position: absolute;
    border-radius: 50%;
    border: 2px solid transparent;
}

.ring-outer {
    width: 100%;
    height: 100%;
    top: 0;
    left: 0;
    border: 2px dashed rgba(139, 92, 246, 0.4);
    animation: ringRotate 20s linear infinite;
}

.ring-middle {
    width: 70%;
    height: 70%;
    top: 15%;
    left: 15%;
    border: 1px solid rgba(6, 182, 212, 0.5);
    animation: ringPulse 3s ease-in-out infinite;
}

@keyframes ringRotate {
    from { transform: rotate(0deg); }
    to { transform: rotate(360deg); }
}

@keyframes ringPulse {
    0%, 100% { transform: scale(1); opacity: 0.4; }
    50% { transform: scale(1.05); opacity: 0.8; }
}

.ring-particle {
    position: absolute;
    width: 8px;
    height: 8px;
    background: linear-gradient(135deg, #8b5cf6, #06b6d4);
    border-radius: 50%;
    box-shadow: 0 0 12px rgba(139, 92, 246, 0.8);
}

.ring-particle.p1 { top: -4px; left: 50%; transform: translateX(-50%); }
.ring-particle.p2 { bottom: -4px; left: 50%; transform: translateX(-50%); }
.ring-particle.p3 { left: -4px; top: 50%; transform: translateY(-50%); }
.ring-particle.p4 { right: -4px; top: 50%; transform: translateY(-50%); }

.brain-core {
    position: absolute;
    width: 70px;
    height: 70px;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    background: linear-gradient(135deg, rgba(139, 92, 246, 0.3), rgba(6, 182, 212, 0.3));
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    border: 2px solid rgba(139, 92, 246, 0.5);
}

.core-glow {
    position: absolute;
    width: 100%;
    height: 100%;
    border-radius: 50%;
    background: radial-gradient(circle, rgba(139, 92, 246, 0.4) 0%, transparent 70%);
    animation: coreGlow 2s ease-in-out infinite;
}

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

.brain-icon {
    width: 32px;
    height: 32px;
    color: #a78bfa;
    z-index: 2;
    animation: brainPulse 3s ease-in-out infinite;
}

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

.data-stream {
    position: absolute;
    padding: 4px 8px;
    background: rgba(17, 24, 39, 0.95);
    border: 1px solid rgba(139, 92, 246, 0.5);
    border-radius: 4px;
    font-size: 0.6rem;
    font-weight: 700;
    font-family: 'SF Mono', 'Monaco', monospace;
    color: #06b6d4;
    letter-spacing: 1px;
    animation: streamFloat 4s ease-in-out infinite;
}

.stream-1 { top: -5px; left: 0; animation-delay: 0s; }
.stream-2 { top: -5px; right: 0; animation-delay: 1s; }
.stream-3 { bottom: -5px; left: 0; animation-delay: 2s; }
.stream-4 { bottom: -5px; right: 0; animation-delay: 3s; }

@keyframes streamFloat {
    0%, 100% { transform: translateY(0); opacity: 0.7; }
    50% { transform: translateY(-3px); opacity: 1; }
}

.custom-visual .ai-badge.bleeding-edge {
    position: relative;
    bottom: auto;
    left: auto;
    transform: none;
    margin-bottom: 12px;
    background: linear-gradient(135deg, rgba(139, 92, 246, 0.2), rgba(6, 182, 212, 0.2));
    border: 1px solid rgba(139, 92, 246, 0.4);
    padding: 6px 14px;
}

.ai-badge.bleeding-edge .ai-text {
    font-size: 0.65rem;
    background: linear-gradient(90deg, #a78bfa, #06b6d4);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.custom-visual .ai-metrics {
    position: relative;
    bottom: auto;
    left: auto;
    transform: none;
    display: flex;
    gap: 16px;
    margin-top: 0;
}

.ai-metrics .metric {
    text-align: center;
    padding: 6px 12px;
    background: rgba(17, 24, 39, 0.8);
    border-radius: 6px;
    border: 1px solid rgba(99, 102, 241, 0.3);
}

.ai-metrics .metric-value {
    display: block;
    font-size: 0.85rem;
    font-weight: 700;
    color: #06b6d4;
    font-family: 'SF Mono', 'Monaco', monospace;
}

.ai-metrics .metric-label {
    font-size: 0.55rem;
    color: var(--gray-500);
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

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

.popup-stat .num {
    display: block;
    font-size: 1.5rem;
    font-weight: 700;
    color: var(--primary-light);
}

.popup-stat .lbl {
    font-size: 0.75rem;
    color: var(--gray-500);
}

/* Architecture Diagram Visual */
.architecture-diagram {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 16px;
    padding: 24px;
}

.arch-node {
    padding: 12px 24px;
    border-radius: 8px;
    font-size: 0.85rem;
    font-weight: 500;
    text-align: center;
}

.arch-node.client {
    background: rgba(99, 102, 241, 0.2);
    border: 1px solid rgba(99, 102, 241, 0.3);
    color: var(--primary-light);
}

.arch-node.api {
    background: rgba(139, 92, 246, 0.2);
    border: 1px solid rgba(139, 92, 246, 0.3);
    color: #a78bfa;
}

.arch-node.service {
    background: rgba(6, 182, 212, 0.15);
    border: 1px solid rgba(6, 182, 212, 0.3);
    color: var(--accent);
    font-size: 0.75rem;
    padding: 8px 16px;
}

.arch-node.db {
    background: rgba(34, 197, 94, 0.15);
    border: 1px solid rgba(34, 197, 94, 0.3);
    color: #4ade80;
    font-size: 0.75rem;
    padding: 8px 16px;
}

.arch-line {
    width: 2px;
    height: 24px;
    background: linear-gradient(180deg, rgba(99, 102, 241, 0.5) 0%, rgba(139, 92, 246, 0.5) 100%);
}

.arch-branches {
    display: flex;
    gap: 16px;
    position: relative;
}

.arch-branches::before {
    content: '';
    position: absolute;
    top: -16px;
    left: 50%;
    transform: translateX(-50%);
    width: 80%;
    height: 2px;
    background: rgba(139, 92, 246, 0.3);
}

.arch-branch {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 8px;
}

.arch-branch::before {
    content: '';
    width: 2px;
    height: 16px;
    background: rgba(139, 92, 246, 0.3);
}

/* Consulting Visual - Infrastructure Theme */
.visual-glow.emerald {
    background: radial-gradient(circle, rgba(16, 185, 129, 0.3) 0%, transparent 70%);
}

.consulting-visual {
    position: relative;
    max-width: 420px;
    height: 320px;
}

.infra-orbit {
    position: absolute;
    width: 100%;
    height: 100%;
    top: 0;
    left: 0;
}

.orbit-ring {
    display: none;
}

.orbit-ring.r2 {
    display: none;
}

.orbit-icon {
    position: absolute;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 8px;
    padding: 16px 20px;
    background: linear-gradient(135deg, rgba(16, 185, 129, 0.15) 0%, rgba(6, 95, 70, 0.1) 100%);
    border: 1px solid rgba(16, 185, 129, 0.4);
    border-radius: 14px;
    backdrop-filter: blur(10px);
    box-shadow: 0 0 20px rgba(16, 185, 129, 0.2), inset 0 1px 0 rgba(255,255,255,0.05);
    animation: float 6s ease-in-out infinite, glow-pulse 3s ease-in-out infinite;
    transition: all 0.3s ease;
}

@keyframes glow-pulse {
    0%, 100% { box-shadow: 0 0 20px rgba(16, 185, 129, 0.2), inset 0 1px 0 rgba(255,255,255,0.05); }
    50% { box-shadow: 0 0 30px rgba(16, 185, 129, 0.4), inset 0 1px 0 rgba(255,255,255,0.1); }
}

.orbit-icon:hover {
    background: rgba(16, 185, 129, 0.2);
    border-color: rgba(16, 185, 129, 0.5);
    transform: scale(1.1);
}

.orbit-icon svg {
    width: 32px;
    height: 32px;
    color: #10b981;
}

.orbit-icon span {
    font-size: 0.75rem;
    color: var(--gray-400);
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.orbit-icon.o1 { top: 10%; left: 10%; animation-delay: 0s; }
.orbit-icon.o2 { top: 10%; right: 10%; animation-delay: 1.5s; }
.orbit-icon.o3 { bottom: 10%; left: 10%; animation-delay: 3s; }
.orbit-icon.o4 { bottom: 10%; right: 10%; animation-delay: 4.5s; }

.server-core {
    display: none;
}

.core-pulse {
    position: absolute;
    width: 100px;
    height: 100px;
    background: radial-gradient(circle, rgba(16, 185, 129, 0.3) 0%, transparent 70%);
    border-radius: 50%;
    animation: core-glow 2s ease-in-out infinite;
}

@keyframes core-glow {
    0%, 100% { transform: scale(1); opacity: 0.5; }
    50% { transform: scale(1.3); opacity: 1; }
}

.server-icon {
    width: 64px;
    height: 64px;
    background: linear-gradient(135deg, rgba(16, 185, 129, 0.2) 0%, rgba(6, 95, 70, 0.2) 100%);
    border: 1px solid rgba(16, 185, 129, 0.4);
    border-radius: 16px;
    display: flex;
    align-items: center;
    justify-content: center;
    position: relative;
    z-index: 1;
}

.server-icon svg {
    width: 32px;
    height: 32px;
    color: #10b981;
}

.exp-badge-floating {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 12px 24px;
    background: linear-gradient(135deg, rgba(16, 185, 129, 0.25) 0%, rgba(6, 95, 70, 0.15) 100%);
    border: 1px solid rgba(16, 185, 129, 0.5);
    border-radius: 25px;
    backdrop-filter: blur(12px);
    box-shadow: 0 0 30px rgba(16, 185, 129, 0.3), 0 4px 20px rgba(0,0,0,0.3);
    z-index: 5;
    animation: badge-glow 2s ease-in-out infinite;
}

@keyframes badge-glow {
    0%, 100% { box-shadow: 0 0 30px rgba(16, 185, 129, 0.3), 0 4px 20px rgba(0,0,0,0.3); }
    50% { box-shadow: 0 0 40px rgba(16, 185, 129, 0.5), 0 4px 25px rgba(0,0,0,0.4); }
}

.exp-pulse {
    width: 10px;
    height: 10px;
    background: #10b981;
    border-radius: 50%;
    box-shadow: 0 0 10px #10b981;
    animation: badge-pulse 2s ease-in-out infinite;
}

@keyframes badge-pulse {
    0%, 100% { opacity: 0.5; box-shadow: 0 0 0 0 rgba(16, 185, 129, 0.4); }
    50% { opacity: 1; box-shadow: 0 0 0 8px rgba(16, 185, 129, 0); }
}

.exp-content {
    font-size: 0.8rem;
    font-weight: 700;
    color: #34d399;
    text-transform: uppercase;
    letter-spacing: 1px;
    text-shadow: 0 0 10px rgba(16, 185, 129, 0.5);
}

.infra-connections {
    display: none;
}

.infra-connections svg {
    width: 100%;
    height: 100%;
}

.infra-connections .conn-line {
    stroke-dasharray: 100;
    stroke-dashoffset: 100;
    animation: draw-line 3s ease-in-out infinite;
}

.infra-connections .conn-line.c1 { animation-delay: 0s; }
.infra-connections .conn-line.c2 { animation-delay: 0.5s; }
.infra-connections .conn-line.c3 { animation-delay: 1s; }
.infra-connections .conn-line.c4 { animation-delay: 1.5s; }

@keyframes draw-line {
    0%, 100% { stroke-dashoffset: 100; opacity: 0.3; }
    50% { stroke-dashoffset: 0; opacity: 1; }
}

/* Tabs responsive */
@media (max-width: 900px) {
    .tab-panel-inner {
        grid-template-columns: 1fr;
        gap: 32px;
        padding: 32px;
    }

    .tab-visual {
        order: -1;
    }

    .tab-features {
        grid-template-columns: 1fr;
    }
}

@media (max-width: 600px) {
    .tabs-nav {
        gap: 6px;
    }

    .tab-btn {
        padding: 10px 16px;
        font-size: 0.85rem;
    }

    .tab-btn span {
        display: none;
    }

    .tab-btn svg {
        width: 24px;
        height: 24px;
    }

    .tab-panel-inner {
        padding: 24px;
    }
}

/* =========================================
   Projects Section
   ========================================= */
.projects {
    background: var(--dark-lighter);
}

.projects-showcase {
    display: flex;
    flex-direction: column;
    gap: 40px;
}

.project-card-large {
    display: -ms-grid;
    display: grid;
    grid-template-columns: 1.2fr 1fr;
    -ms-grid-columns: 1.2fr 1fr;
    gap: 60px;
    -webkit-box-align: center;
    -ms-flex-align: center;
    align-items: center;
    justify-items: center;
    padding: 48px;
    background: linear-gradient(135deg, rgba(10, 15, 26, 0.9) 0%, rgba(17, 24, 39, 0.9) 100%);
    border: 1px solid rgba(255, 255, 255, 0.05);
    border-radius: var(--radius-xl);
    transition: var(--transition);
}

.project-card-large:hover {
    border-color: rgba(99, 102, 241, 0.2);
    box-shadow: var(--shadow-glow-sm);
}

.project-visual {
    position: relative;
    width: 100%;
}

.project-mockup {
    position: relative;
    z-index: 1;
    display: -webkit-flex;
    display: flex;
    -webkit-justify-content: center;
    justify-content: center;
    -webkit-align-items: center;
    align-items: center;
    width: 100%;
}

.project-mockup svg {
    max-width: 100%;
    height: auto;
    border-radius: 20px;
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.5);
}

.mockup-browser {
    background: var(--dark);
    border-radius: 12px;
    overflow: hidden;
    border: 1px solid rgba(255, 255, 255, 0.1);
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.5);
}

.browser-dots {
    display: flex;
    gap: 8px;
    padding: 16px 20px;
    background: rgba(255, 255, 255, 0.03);
    border-bottom: 1px solid rgba(255, 255, 255, 0.05);
}

.browser-dots span {
    width: 12px;
    height: 12px;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.1);
}

.browser-dots span:first-child { background: #ff5f57; }
.browser-dots span:nth-child(2) { background: #ffbd2e; }
.browser-dots span:nth-child(3) { background: #28ca41; }

.browser-content {
    padding: 24px;
    min-height: 280px;
}

.mockup-ui {
    display: grid;
    grid-template-columns: 60px 1fr;
    gap: 16px;
    height: 100%;
}

.ui-sidebar {
    background: rgba(99, 102, 241, 0.1);
    border-radius: 8px;
}

.ui-main {
    display: flex;
    flex-direction: column;
    gap: 16px;
}

.ui-header {
    height: 40px;
    background: rgba(255, 255, 255, 0.05);
    border-radius: 8px;
}

.ui-cards {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 12px;
    flex: 1;
}

.ui-card {
    background: linear-gradient(135deg, rgba(99, 102, 241, 0.1) 0%, rgba(99, 102, 241, 0.05) 100%);
    border-radius: 8px;
    border: 1px solid rgba(99, 102, 241, 0.1);
}

.project-glow {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 80%;
    height: 80%;
    background: radial-gradient(circle, rgba(99, 102, 241, 0.2) 0%, transparent 70%);
    filter: blur(40px);
    z-index: 0;
}

/* EJH Mockup Styles */
.ejh-mockup {
    background: var(--dark);
    border-radius: 16px;
    overflow: hidden;
    border: 1px solid rgba(255, 255, 255, 0.1);
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.5);
}

.ejh-header {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 16px 20px;
    background: rgba(99, 102, 241, 0.1);
    border-bottom: 1px solid rgba(255, 255, 255, 0.05);
}

.ejh-logo {
    width: 36px;
    height: 36px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: var(--gradient-1);
    border-radius: 8px;
}

.ejh-logo svg {
    width: 20px;
    height: 20px;
    color: var(--white);
}

.ejh-title {
    font-weight: 600;
    color: var(--white);
    font-size: 1rem;
}

.ejh-body {
    padding: 20px;
}

.ejh-stats {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 12px;
    margin-bottom: 20px;
}

.ejh-stat {
    text-align: center;
    padding: 16px 8px;
    background: rgba(255, 255, 255, 0.03);
    border-radius: 10px;
    border: 1px solid rgba(255, 255, 255, 0.05);
}

.ejh-stat-value {
    font-size: 1.5rem;
    font-weight: 700;
    color: var(--white);
    line-height: 1;
    margin-bottom: 6px;
}

.ejh-stat-label {
    font-size: 0.7rem;
    color: var(--gray-500);
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.ejh-jobs {
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.ejh-job {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 14px 16px;
    background: rgba(255, 255, 255, 0.03);
    border-radius: 10px;
    border: 1px solid rgba(255, 255, 255, 0.05);
}

.ejh-job-info {
    display: flex;
    flex-direction: column;
    gap: 2px;
}

.ejh-job-title {
    font-weight: 600;
    color: var(--white);
    font-size: 0.9rem;
}

.ejh-job-company {
    font-size: 0.8rem;
    color: var(--gray-500);
}

.ejh-status {
    padding: 5px 12px;
    border-radius: 6px;
    font-size: 0.7rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.status-interviewing {
    background: rgba(59, 130, 246, 0.15);
    color: #60a5fa;
    border: 1px solid rgba(59, 130, 246, 0.3);
}

.status-offered {
    background: rgba(34, 197, 94, 0.15);
    color: #4ade80;
    border: 1px solid rgba(34, 197, 94, 0.3);
}

.status-applied {
    background: rgba(168, 85, 247, 0.15);
    color: #c084fc;
    border: 1px solid rgba(168, 85, 247, 0.3);
}

.project-info {
    display: flex;
    flex-direction: column;
    gap: 20px;
}

.project-tag {
    display: inline-block;
    width: fit-content;
    padding: 6px 14px;
    background: rgba(99, 102, 241, 0.1);
    border: 1px solid rgba(99, 102, 241, 0.2);
    border-radius: 6px;
    color: var(--primary-light);
    font-size: 0.75rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 1px;
}

.project-info h3 {
    font-size: 2rem;
}

.project-info p {
    color: var(--gray-400);
}

.project-features {
    list-style: none;
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.project-features li {
    display: flex;
    align-items: center;
    gap: 12px;
    color: var(--gray-400);
    font-size: 0.95rem;
}

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

.projects-grid-small {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 24px;
}

.project-card-small {
    padding: 36px;
    background: linear-gradient(135deg, rgba(10, 15, 26, 0.9) 0%, rgba(17, 24, 39, 0.9) 100%);
    border: 1px solid rgba(255, 255, 255, 0.05);
    border-radius: var(--radius-lg);
    transition: var(--transition);
}

.project-card-small > * {
    text-align: center;
    width: 100%;
}

.project-card-small .project-icon-wrap {
    margin-left: auto;
    margin-right: auto;
}

.project-card-small:hover {
    transform: translateY(-8px);
    border-color: rgba(99, 102, 241, 0.3);
    box-shadow: var(--shadow-glow-sm);
}

.project-icon-wrap {
    width: 56px;
    height: 56px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: var(--gradient-1);
    border-radius: 14px;
    margin: 0 auto 24px;
}

.project-icon-wrap svg {
    width: 28px;
    height: 28px;
    color: var(--white);
}

.project-card-small h3 {
    margin: 16px 0 12px;
}

.project-card-small p {
    font-size: 0.95rem;
    color: var(--gray-500);
    margin-bottom: 20px;
}

.project-link {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    color: var(--primary-light);
    font-weight: 600;
    font-size: 0.95rem;
}

.project-link:hover {
    color: var(--white);
}

.project-link span {
    transition: var(--transition);
}

.project-link:hover span {
    transform: translateX(4px);
}

/* Bento Grid Layout */
.bento-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 32px;
}

.bento-tile {
    background: linear-gradient(135deg, rgba(10, 15, 26, 0.98) 0%, rgba(17, 24, 39, 0.98) 100%);
    border-radius: var(--radius-xl);
    overflow: hidden;
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    position: relative;
    border: 1px solid transparent;
    background-clip: padding-box;
}

/* Animated gradient border */
.bento-tile::before {
    content: '';
    position: absolute;
    inset: 0;
    border-radius: var(--radius-xl);
    padding: 1px;
    background: linear-gradient(135deg, rgba(99, 102, 241, 0.3), rgba(6, 182, 212, 0.2), rgba(139, 92, 246, 0.3));
    -webkit-mask: linear-gradient(#fff 0 0) content-box, linear-gradient(#fff 0 0);
    mask: linear-gradient(#fff 0 0) content-box, linear-gradient(#fff 0 0);
    -webkit-mask-composite: xor;
    mask-composite: exclude;
    opacity: 0.6;
    transition: opacity 0.4s ease;
}

/* Inner glow effect */
.bento-tile::after {
    content: '';
    position: absolute;
    inset: 0;
    background: radial-gradient(ellipse 80% 50% at 50% 0%, rgba(99, 102, 241, 0.15) 0%, transparent 60%);
    pointer-events: none;
    opacity: 0;
    transition: opacity 0.4s ease;
}

.bento-tile:hover {
    transform: translateY(-8px) scale(1.01);
    box-shadow:
        0 25px 50px rgba(0, 0, 0, 0.4),
        0 0 80px rgba(99, 102, 241, 0.15),
        inset 0 1px 0 rgba(255, 255, 255, 0.1);
}

.bento-tile:hover::before {
    opacity: 1;
    background: linear-gradient(135deg, rgba(99, 102, 241, 0.6), rgba(6, 182, 212, 0.4), rgba(139, 92, 246, 0.6));
    animation: border-glow 3s ease-in-out infinite;
}

.bento-tile:hover::after {
    opacity: 1;
}

@keyframes border-glow {
    0%, 100% { filter: brightness(1); }
    50% { filter: brightness(1.3); }
}

.bento-tile-inner {
    position: relative;
    z-index: 1;
    padding: 32px;
    height: 100%;
    display: flex;
    flex-direction: column;
}

/* Featured tile - spans full width */
.bento-featured {
    grid-column: 1 / -1;
}

.bento-featured .bento-tile-inner {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 40px;
    align-items: center;
    padding: 40px;
}

.bento-visual {
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 16px;
}

.bento-visual svg {
    width: 100%;
    max-width: 520px;
    height: auto;
    border-radius: 16px;
    box-shadow:
        0 25px 80px rgba(0, 0, 0, 0.6),
        0 0 60px rgba(99, 102, 241, 0.15),
        0 0 120px rgba(99, 102, 241, 0.08);
    transition: all 0.4s ease;
}

.bento-featured:hover .bento-visual svg {
    transform: scale(1.02);
    box-shadow:
        0 30px 100px rgba(0, 0, 0, 0.7),
        0 0 80px rgba(99, 102, 241, 0.2),
        0 0 150px rgba(99, 102, 241, 0.1);
}

.bento-content {
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.bento-content h3 {
    font-size: 1.75rem;
    margin: 0;
}

.bento-content p {
    color: var(--gray-400);
    line-height: 1.7;
    margin: 0;
}

.project-lead {
    font-size: 1.15rem;
    font-weight: 500;
    color: var(--gray-200) !important;
    margin-bottom: 4px !important;
}

.project-why {
    font-size: 0.9rem;
    color: var(--gray-400);
    margin-top: 8px;
    line-height: 1.6;
}

.project-why strong {
    color: var(--primary);
    font-weight: 600;
}

.project-tech {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    margin: 16px 0;
}

.project-tech span {
    padding: 4px 10px;
    background: rgba(99, 102, 241, 0.1);
    border: 1px solid rgba(99, 102, 241, 0.2);
    border-radius: 4px;
    font-size: 0.75rem;
    font-weight: 500;
    color: var(--primary-light);
    font-family: 'SF Mono', 'Monaco', 'Inconsolata', 'Fira Code', monospace;
}

.bento-standard .project-why {
    text-align: center;
}

.bento-standard .project-tech {
    justify-content: center;
}

.project-highlights {
    display: flex;
    flex-direction: column;
    gap: 10px;
    margin: 8px 0;
}

.highlight {
    display: flex;
    align-items: center;
    gap: 12px;
    font-size: 0.9rem;
    color: var(--gray-300);
}

.highlight-icon {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 20px;
    height: 20px;
    color: var(--accent);
    flex-shrink: 0;
}

.highlight-icon svg {
    width: 100%;
    height: 100%;
}

.bento-tag-row {
    display: flex;
    gap: 8px;
    flex-wrap: wrap;
}

.bento-tag.accent {
    background: rgba(6, 182, 212, 0.15);
    border-color: rgba(6, 182, 212, 0.25);
    color: var(--accent);
}

.game-formats {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    margin: 12px 0;
}

.format-badge {
    font-size: 0.75rem;
    font-weight: 500;
    padding: 6px 12px;
    background: rgba(139, 92, 246, 0.1);
    border: 1px solid rgba(139, 92, 246, 0.2);
    border-radius: 6px;
    color: var(--purple);
    transition: all 0.3s ease;
    cursor: default;
}

.format-badge:hover {
    background: rgba(139, 92, 246, 0.2);
    border-color: rgba(139, 92, 246, 0.4);
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(139, 92, 246, 0.2);
}

.bento-tile:hover .format-badge {
    animation: badge-wave 0.6s ease forwards;
}

.bento-tile:hover .format-badge:nth-child(1) { animation-delay: 0s; }
.bento-tile:hover .format-badge:nth-child(2) { animation-delay: 0.05s; }
.bento-tile:hover .format-badge:nth-child(3) { animation-delay: 0.1s; }
.bento-tile:hover .format-badge:nth-child(4) { animation-delay: 0.15s; }
.bento-tile:hover .format-badge:nth-child(5) { animation-delay: 0.2s; }

@keyframes badge-wave {
    0% { transform: translateY(0); }
    50% { transform: translateY(-4px); }
    100% { transform: translateY(0); }
}

.mini-features {
    display: flex;
    flex-wrap: wrap;
    gap: 16px;
    margin: 8px 0;
}

.mini-features span {
    font-size: 0.85rem;
    color: var(--gray-400);
    position: relative;
    padding-left: 16px;
    transition: color 0.3s ease;
}

.bento-tile:hover .mini-features span {
    color: var(--gray-300);
}

.mini-features span::before {
    content: '';
    position: absolute;
    left: 0;
    top: 50%;
    transform: translateY(-50%);
    width: 6px;
    height: 6px;
    border-radius: 50%;
    background: var(--primary);
    transition: all 0.3s ease;
    box-shadow: 0 0 0 0 rgba(99, 102, 241, 0);
}

.bento-tile:hover .mini-features span::before {
    background: var(--accent);
    box-shadow: 0 0 8px 2px rgba(6, 182, 212, 0.4);
    animation: dot-pulse 1.5s ease-in-out infinite;
}

.bento-tile:hover .mini-features span:nth-child(1)::before { animation-delay: 0s; }
.bento-tile:hover .mini-features span:nth-child(2)::before { animation-delay: 0.2s; }
.bento-tile:hover .mini-features span:nth-child(3)::before { animation-delay: 0.4s; }

@keyframes dot-pulse {
    0%, 100% { transform: translateY(-50%) scale(1); opacity: 1; }
    50% { transform: translateY(-50%) scale(1.3); opacity: 0.8; }
}

.game-count {
    display: flex;
    align-items: baseline;
    gap: 12px;
    margin: 8px 0;
    padding: 16px 20px;
    background: rgba(99, 102, 241, 0.08);
    border-radius: 12px;
    border: 1px solid rgba(99, 102, 241, 0.15);
    transition: all 0.4s ease;
    position: relative;
    overflow: hidden;
}

.game-count::before {
    content: '';
    position: absolute;
    inset: 0;
    background: linear-gradient(135deg, rgba(99, 102, 241, 0.1) 0%, rgba(6, 182, 212, 0.1) 100%);
    opacity: 0;
    transition: opacity 0.4s ease;
}

.bento-tile:hover .game-count {
    border-color: rgba(99, 102, 241, 0.3);
    box-shadow: 0 8px 24px rgba(99, 102, 241, 0.15);
}

.bento-tile:hover .game-count::before {
    opacity: 1;
}

.count-number {
    font-size: 2rem;
    font-weight: 800;
    background: linear-gradient(135deg, var(--primary) 0%, var(--accent) 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    position: relative;
    z-index: 1;
    transition: all 0.4s ease;
}

.bento-tile:hover .count-number {
    transform: scale(1.1);
    filter: drop-shadow(0 0 8px rgba(99, 102, 241, 0.4));
}

.count-label {
    font-size: 0.9rem;
    color: var(--gray-400);
    position: relative;
    z-index: 1;
}

.bento-features {
    list-style: none;
    padding: 0;
    margin: 8px 0;
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
}

.bento-features li {
    font-size: 0.85rem;
    color: var(--gray-400);
    padding: 6px 12px;
    background: rgba(99, 102, 241, 0.1);
    border-radius: 20px;
    border: 1px solid rgba(99, 102, 241, 0.2);
}

.bento-features.compact {
    gap: 6px;
    margin: 12px 0;
}

.bento-features.compact li {
    font-size: 0.75rem;
    padding: 4px 10px;
}

.bento-tech {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    margin: 12px 0;
}

.bento-tech span {
    font-size: 0.7rem;
    font-weight: 600;
    color: var(--gray-500);
    padding: 4px 8px;
    background: rgba(255, 255, 255, 0.05);
    border-radius: 4px;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

/* Tall tile styling */
.bento-tall {
    grid-row: span 2;
}

.bento-tall .bento-tile-inner {
    justify-content: flex-start;
    align-items: center;
    text-align: center;
    min-height: 420px;
    gap: 16px;
}

.bento-tall h3,
.bento-tall p,
.bento-tall .project-lead {
    text-align: center;
}

.bento-tall .bento-tag-row {
    justify-content: center;
}

.bento-tall .game-formats {
    justify-content: center;
}

.bento-tall .bento-link {
    align-self: center;
}

/* Standard tile styling */
.bento-standard .bento-tile-inner {
    gap: 12px;
    align-items: center;
    text-align: center;
}

.bento-standard h3,
.bento-standard p,
.bento-standard .project-lead {
    text-align: center;
}

.bento-standard .mini-features {
    justify-content: center;
}

.bento-standard .game-count {
    align-self: stretch;
    justify-content: center;
}

.bento-standard .bento-link {
    align-self: center;
}

.bento-tag {
    display: inline-block;
    padding: 6px 12px;
    background: rgba(99, 102, 241, 0.15);
    border: 1px solid rgba(99, 102, 241, 0.25);
    border-radius: 20px;
    font-size: 0.75rem;
    font-weight: 600;
    color: var(--primary-light);
    text-transform: uppercase;
    letter-spacing: 0.5px;
    width: fit-content;
    position: relative;
    overflow: hidden;
    transition: all 0.3s ease;
}

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

.bento-tile:hover .bento-tag::before {
    left: 100%;
}

.bento-tile:hover .bento-tag {
    border-color: rgba(99, 102, 241, 0.4);
    box-shadow: 0 0 12px rgba(99, 102, 241, 0.2);
}

.bento-icon {
    width: 56px;
    height: 56px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: var(--gradient-1);
    border-radius: 14px;
    margin-bottom: 8px;
    position: relative;
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    box-shadow: 0 8px 24px rgba(99, 102, 241, 0.25);
    animation: icon-float 3s ease-in-out infinite;
}

@keyframes icon-float {
    0%, 100% { transform: translateY(0); }
    50% { transform: translateY(-4px); }
}

.bento-icon::before {
    content: '';
    position: absolute;
    inset: -3px;
    border-radius: 17px;
    background: linear-gradient(135deg, rgba(99, 102, 241, 0.5), rgba(6, 182, 212, 0.5), rgba(139, 92, 246, 0.5));
    opacity: 0;
    transition: opacity 0.4s ease;
    z-index: -1;
    filter: blur(8px);
}

.bento-tile:hover .bento-icon {
    transform: scale(1.1) rotate(5deg);
    box-shadow: 0 12px 32px rgba(99, 102, 241, 0.4);
    animation: none;
}

.bento-tile:hover .bento-icon::before {
    opacity: 1;
    animation: icon-glow-pulse 2s ease-in-out infinite;
}

@keyframes icon-glow-pulse {
    0%, 100% { opacity: 0.6; transform: scale(1); }
    50% { opacity: 1; transform: scale(1.15); }
}

.bento-icon svg {
    width: 24px;
    height: 24px;
    color: var(--white);
    transition: transform 0.3s ease;
}

.bento-tile:hover .bento-icon svg {
    transform: scale(1.1);
}

.bento-icon-large {
    width: 80px;
    height: 80px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: linear-gradient(135deg, rgba(99, 102, 241, 0.15) 0%, rgba(139, 92, 246, 0.15) 100%);
    border: 1px solid rgba(99, 102, 241, 0.2);
    border-radius: 20px;
    margin-bottom: 16px;
    position: relative;
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    overflow: hidden;
    animation: icon-float 4s ease-in-out infinite;
}

.bento-icon-large::before {
    content: '';
    position: absolute;
    inset: 0;
    background: linear-gradient(135deg, rgba(99, 102, 241, 0.3) 0%, rgba(139, 92, 246, 0.3) 100%);
    opacity: 0;
    transition: opacity 0.4s ease;
}

.bento-icon-large::after {
    content: '';
    position: absolute;
    top: -50%;
    left: -50%;
    width: 200%;
    height: 200%;
    background: conic-gradient(from 0deg, transparent, rgba(99, 102, 241, 0.3), transparent 30%);
    animation: rotate-gradient 4s linear infinite paused;
}

.bento-tile:hover .bento-icon-large {
    transform: scale(1.08);
    border-color: rgba(99, 102, 241, 0.4);
    box-shadow: 0 0 40px rgba(99, 102, 241, 0.3);
    animation: none;
}

.bento-tile:hover .bento-icon-large::before {
    opacity: 1;
}

.bento-tile:hover .bento-icon-large::after {
    animation-play-state: running;
}

@keyframes rotate-gradient {
    from { transform: rotate(0deg); }
    to { transform: rotate(360deg); }
}

.bento-icon-large svg {
    width: 48px;
    height: 48px;
    color: var(--primary-light);
    position: relative;
    z-index: 1;
    transition: all 0.4s ease;
}

.bento-tile:hover .bento-icon-large svg {
    transform: scale(1.1);
    filter: drop-shadow(0 0 8px rgba(99, 102, 241, 0.5));
}

.bento-tile h3 {
    font-size: 1.25rem;
    margin: 8px 0;
    color: var(--white);
}

.bento-tile p {
    color: var(--gray-500);
    font-size: 0.95rem;
    line-height: 1.6;
    flex-grow: 1;
}

.bento-stats {
    display: flex;
    gap: 24px;
    margin: 16px 0;
}

.bento-stat {
    display: flex;
    flex-direction: column;
    gap: 4px;
}

.bento-stat .stat-number {
    font-size: 1.5rem;
    font-weight: 700;
    color: var(--primary-light);
}

.bento-stat .stat-label {
    font-size: 0.75rem;
    color: var(--gray-500);
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.bento-badge {
    display: inline-flex;
    align-items: center;
    padding: 8px 16px;
    background: linear-gradient(135deg, rgba(6, 182, 212, 0.15) 0%, rgba(99, 102, 241, 0.15) 100%);
    border: 1px solid rgba(6, 182, 212, 0.3);
    border-radius: 8px;
    font-size: 0.9rem;
    font-weight: 600;
    color: var(--accent);
    margin: 8px 0;
}

.bento-link {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    color: var(--white);
    font-weight: 600;
    font-size: 0.9rem;
    margin-top: auto;
    padding: 12px 24px;
    background: linear-gradient(135deg, rgba(99, 102, 241, 0.2) 0%, rgba(139, 92, 246, 0.2) 100%);
    border: 1px solid rgba(99, 102, 241, 0.3);
    border-radius: 10px;
    transition: all 0.3s ease;
}

.bento-link:hover {
    background: linear-gradient(135deg, rgba(99, 102, 241, 0.35) 0%, rgba(139, 92, 246, 0.35) 100%);
    border-color: rgba(99, 102, 241, 0.5);
    transform: translateY(-2px);
    box-shadow: 0 8px 20px rgba(99, 102, 241, 0.2);
}

.bento-link svg {
    width: 18px;
    height: 18px;
    transition: transform 0.3s ease;
}

.bento-link:hover svg {
    transform: translateX(4px);
}

/* Bento grid responsive */
@media (max-width: 768px) {
    .bento-grid {
        grid-template-columns: 1fr;
    }

    .bento-featured {
        grid-column: span 1;
    }

    .bento-featured .bento-tile-inner {
        grid-template-columns: 1fr;
        gap: 24px;
        padding: 24px;
    }

    .bento-visual svg {
        max-width: 280px;
    }

    .bento-tall .bento-tile-inner {
        min-height: auto;
    }
}

/* =========================================
   Why Us Section
   ========================================= */
.why-us {
    background: var(--dark);
    position: relative;
    overflow: hidden;
}

.why-us::before {
    content: '';
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 800px;
    height: 800px;
    background: radial-gradient(circle, rgba(99, 102, 241, 0.05) 0%, transparent 70%);
    pointer-events: none;
}

.differentiators {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 24px;
    position: relative;
}

.diff-card {
    text-align: center;
    padding: 48px 32px;
    background: linear-gradient(180deg, rgba(17, 24, 39, 0.5) 0%, rgba(10, 15, 26, 0.5) 100%);
    border: 1px solid rgba(255, 255, 255, 0.05);
    border-radius: var(--radius-lg);
    transition: var(--transition);
}

.diff-card:hover {
    transform: translateY(-8px);
    border-color: rgba(99, 102, 241, 0.3);
    box-shadow: var(--shadow-glow-sm);
}

.diff-icon {
    width: 72px;
    height: 72px;
    margin: 0 auto 24px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: rgba(99, 102, 241, 0.1);
    border: 1px solid rgba(99, 102, 241, 0.2);
    border-radius: 20px;
    transition: var(--transition);
}

.diff-card:hover .diff-icon {
    background: var(--gradient-1);
    border-color: transparent;
    box-shadow: 0 8px 32px rgba(99, 102, 241, 0.3);
}

.diff-icon svg {
    width: 32px;
    height: 32px;
    color: var(--primary-light);
    transition: var(--transition);
}

.diff-card:hover .diff-icon svg {
    color: var(--white);
}

.diff-card h3 {
    font-size: 1.25rem;
    margin-bottom: 12px;
}

.diff-card p {
    font-size: 0.95rem;
    color: var(--gray-500);
}

/* New Interactive Diff Cards */
.diff-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 24px;
    position: relative;
}

.diff-card-new {
    position: relative;
    height: 320px;
    perspective: 1000px;
    cursor: pointer;
}

.diff-front,
.diff-back {
    position: absolute;
    inset: 0;
    border-radius: var(--radius-lg);
    padding: 32px;
    backface-visibility: hidden;
    transition: all 0.6s cubic-bezier(0.4, 0, 0.2, 1);
    display: flex;
    flex-direction: column;
}

.diff-front {
    background: linear-gradient(180deg, rgba(17, 24, 39, 0.8) 0%, rgba(10, 15, 26, 0.8) 100%);
    border: 1px solid rgba(255, 255, 255, 0.08);
    align-items: center;
    justify-content: center;
    text-align: center;
}

.diff-back {
    background: linear-gradient(135deg, rgba(99, 102, 241, 0.15) 0%, rgba(139, 92, 246, 0.1) 100%);
    border: 1px solid rgba(99, 102, 241, 0.3);
    transform: rotateY(180deg);
    justify-content: center;
}

.diff-card-new:hover .diff-front {
    transform: rotateY(-180deg);
}

.diff-card-new:hover .diff-back {
    transform: rotateY(0deg);
}

.diff-number {
    position: absolute;
    top: 20px;
    right: 20px;
    font-size: 2.5rem;
    font-weight: 900;
    background: var(--gradient-1);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    opacity: 0.3;
}

.diff-icon-new {
    width: 64px;
    height: 64px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: var(--gradient-1);
    border-radius: 16px;
    margin-bottom: 20px;
    box-shadow: 0 8px 32px rgba(99, 102, 241, 0.3);
}

.diff-icon-new svg {
    width: 32px;
    height: 32px;
    color: var(--white);
}

.diff-front h3 {
    font-size: 1.2rem;
    margin-bottom: 8px;
    color: var(--white);
}

.diff-hint {
    font-size: 0.75rem;
    color: var(--gray-500);
    margin-top: 12px;
    display: flex;
    align-items: center;
    gap: 6px;
}

.diff-hint::after {
    content: '↻';
    font-size: 1rem;
    animation: spin-hint 2s ease-in-out infinite;
}

@keyframes spin-hint {
    0%, 100% { transform: rotate(0deg); }
    50% { transform: rotate(180deg); }
}

.diff-back p {
    font-size: 0.95rem;
    color: var(--gray-400);
    line-height: 1.6;
    margin-bottom: 20px;
}

.diff-details {
    list-style: none;
    padding: 0;
    margin: 0;
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.diff-details li {
    display: flex;
    align-items: center;
    gap: 10px;
    font-size: 0.85rem;
    color: var(--gray-400);
}

.diff-details li::before {
    content: '✓';
    color: #4ade80;
    font-weight: 600;
}

/* Diff Grid responsive */
@media (max-width: 1100px) {
    .diff-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}

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

    .diff-card-new {
        height: 280px;
    }

    /* On touch devices, show back on tap */
    .diff-card-new.flipped .diff-front {
        transform: rotateY(-180deg);
    }

    .diff-card-new.flipped .diff-back {
        transform: rotateY(0deg);
    }
}

/* =========================================
   Testimonials Section
   ========================================= */
.testimonials {
    background: var(--dark-lighter);
}

.testimonials-grid {
    display: grid;
    grid-template-columns: 1.5fr 1fr 1fr;
    gap: 24px;
}

.testimonial-card {
    padding: 36px;
    background: linear-gradient(135deg, rgba(10, 15, 26, 0.9) 0%, rgba(17, 24, 39, 0.9) 100%);
    border: 1px solid rgba(255, 255, 255, 0.05);
    border-radius: var(--radius-lg);
    display: flex;
    flex-direction: column;
    transition: var(--transition);
}

.testimonial-card:hover {
    border-color: rgba(99, 102, 241, 0.2);
    transform: translateY(-4px);
}

.featured-testimonial {
    grid-row: span 2;
}

.testimonial-content {
    flex: 1;
}

.quote-icon {
    width: 48px;
    height: 48px;
    color: var(--primary);
    opacity: 0.3;
    margin-bottom: 20px;
}

.testimonial-text {
    font-size: 1.1rem;
    color: var(--gray-300);
    line-height: 1.8;
    margin-bottom: 24px;
}

.featured-testimonial .testimonial-text {
    font-size: 1.25rem;
}

.testimonial-author {
    display: flex;
    align-items: center;
    gap: 16px;
    padding-top: 24px;
    border-top: 1px solid rgba(255, 255, 255, 0.05);
    margin-top: auto;
}

.author-avatar {
    width: 48px;
    height: 48px;
    background: var(--gradient-1);
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 700;
    color: var(--white);
    font-size: 0.9rem;
}

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

.author-info strong {
    color: var(--white);
    font-weight: 600;
}

.author-info span {
    font-size: 0.85rem;
    color: var(--gray-500);
}

.testimonials-note {
    text-align: center;
    margin-top: 40px;
    font-size: 0.85rem;
    color: var(--gray-600);
    font-style: italic;
}

/* =========================================
   About Section
   ========================================= */
.about {
    background: var(--dark);
}

.about-layout {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 80px;
    align-items: center;
}

.about-visual-side {
    position: relative;
    height: 500px;
}

.about-card-stack {
    position: relative;
    height: 100%;
}

.floating-card {
    position: absolute;
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 16px 24px;
    background: linear-gradient(135deg, rgba(17, 24, 39, 0.95) 0%, rgba(10, 15, 26, 0.95) 100%);
    border: 1px solid rgba(99, 102, 241, 0.2);
    border-radius: 12px;
    box-shadow: var(--shadow-glow-sm);
    z-index: 10;
}

.floating-card .card-icon {
    width: 40px;
    height: 40px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: var(--gradient-1);
    border-radius: 10px;
}

.floating-card .card-icon svg {
    width: 20px;
    height: 20px;
    color: var(--white);
}

.floating-card span {
    font-weight: 600;
    color: var(--white);
}

.card-1 {
    top: 60px;
    left: 40px;
}

.card-2 {
    top: 140px;
    right: -30px;
}

.card-3 {
    bottom: 30px;
    left: 20px;
}

.card-4 {
    bottom: 80px;
    right: 100px;
}

.card-5 {
    top: 260px;
    left: -50px;
}

.about-main-visual {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 380px;
    padding: 40px 32px;
    background: linear-gradient(135deg, rgba(10, 15, 26, 0.98) 0%, rgba(17, 24, 39, 0.98) 100%);
    border: 1px solid rgba(99, 102, 241, 0.3);
    border-radius: var(--radius-lg);
    box-shadow: var(--shadow-glow);
}

.visual-code {
    font-family: 'Fira Code', 'Monaco', monospace;
    font-size: 0.9rem;
    line-height: 2;
}

.code-line {
    display: block;
    color: var(--gray-400);
}

.code-keyword { color: var(--purple); }
.code-string { color: var(--accent); }
.code-number { color: var(--pink); }

/* Journey Visual for Our Story */
.journey-visual {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    height: 100%;
    padding: 20px;
}

.journey-path {
    display: flex;
    align-items: center;
    gap: 8px;
}

.journey-node {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 12px;
}

.node-dot {
    width: 20px;
    height: 20px;
    border-radius: 50%;
    background: var(--gray-600);
    border: 3px solid var(--gray-500);
    position: relative;
    transition: all 0.3s ease;
}

.node-dot.active {
    background: var(--primary);
    border-color: var(--primary);
    box-shadow: 0 0 20px rgba(99, 102, 241, 0.5);
}

.node-dot.active::after {
    content: '';
    position: absolute;
    inset: -6px;
    border-radius: 50%;
    border: 2px solid var(--primary);
    opacity: 0.3;
    animation: pulse-ring 2s ease-in-out infinite;
}

.node-dot.future {
    background: transparent;
    border-color: var(--accent);
    border-style: dashed;
}

.node-label {
    font-size: 0.75rem;
    font-weight: 600;
    color: var(--gray-400);
    text-transform: uppercase;
    letter-spacing: 0.5px;
    white-space: nowrap;
}

.journey-node:nth-child(3) .node-label {
    color: var(--accent);
}

.journey-line {
    width: 40px;
    height: 3px;
    background: linear-gradient(90deg, var(--gray-600), var(--primary));
    border-radius: 2px;
    margin-bottom: 32px;
}

.journey-node:nth-child(3) ~ .journey-line,
.journey-path .journey-line:last-of-type {
    background: linear-gradient(90deg, var(--primary), var(--accent));
}

.journey-tagline {
    margin-top: 24px;
    font-size: 0.85rem;
    font-weight: 500;
    color: var(--gray-300);
    text-align: center;
    padding: 8px 16px;
    background: rgba(99, 102, 241, 0.1);
    border-radius: 20px;
    border: 1px solid rgba(99, 102, 241, 0.2);
}

@keyframes pulse-ring {
    0%, 100% { transform: scale(1); opacity: 0.3; }
    50% { transform: scale(1.1); opacity: 0.5; }
}

.about-content-side .section-number {
    margin-bottom: 8px;
}

.about-content-side h2 {
    margin-bottom: 28px;
}

.about-lead {
    font-size: 1.25rem;
    color: var(--gray-300);
    margin-bottom: 20px;
}

.about-content-side p {
    margin-bottom: 16px;
}

.about-stats {
    display: flex;
    gap: 48px;
    margin-top: 40px;
    padding-top: 40px;
    border-top: 1px solid rgba(255, 255, 255, 0.05);
}

.about-stat {
    text-align: left;
}

.stat-value {
    display: block;
    font-size: 2.5rem;
    font-weight: 800;
    background: var(--gradient-text);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    line-height: 1;
    margin-bottom: 8px;
}

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

/* =========================================
   CTA Section
   ========================================= */
.cta-section {
    padding: 80px 0;
    background: var(--dark-lighter);
}

.cta-card {
    position: relative;
    padding: 80px;
    border-radius: var(--radius-xl);
    overflow: hidden;
    text-align: center;
}

.cta-bg {
    position: absolute;
    inset: 0;
    background: var(--gradient-1);
    opacity: 0.1;
}

.cta-card::before {
    content: '';
    position: absolute;
    inset: 0;
    border-radius: var(--radius-xl);
    padding: 1px;
    background: var(--gradient-1);
    mask: linear-gradient(#fff 0 0) content-box, linear-gradient(#fff 0 0);
    mask-composite: xor;
    -webkit-mask-composite: xor;
}

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

.cta-content h2 {
    margin-bottom: 20px;
}

.cta-content p {
    max-width: 600px;
    margin: 0 auto 32px;
    font-size: 1.1rem;
}

/* =========================================
   Contact Section
   ========================================= */
.contact {
    background: var(--dark);
}

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

.contact-info .section-number {
    margin-bottom: 8px;
}

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

.contact-info > p {
    margin-bottom: 40px;
}

.contact-details {
    margin-bottom: 40px;
}

.contact-item {
    display: flex;
    align-items: flex-start;
    gap: 16px;
    padding: 20px;
    background: rgba(255, 255, 255, 0.02);
    border: 1px solid rgba(255, 255, 255, 0.05);
    border-radius: 12px;
}

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

.contact-icon svg {
    width: 24px;
    height: 24px;
    color: var(--white);
}

.contact-item strong {
    display: block;
    color: var(--white);
    margin-bottom: 4px;
}

.contact-item a {
    color: var(--gray-400);
}

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

.social-links {
    display: flex;
    flex-direction: column;
    gap: 16px;
}

.social-links > span {
    font-size: 0.9rem;
    color: var(--gray-500);
    font-weight: 500;
}

.social-icons {
    display: flex;
    gap: 12px;
}

.social-icon {
    width: 48px;
    height: 48px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: rgba(255, 255, 255, 0.03);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 12px;
    color: var(--gray-400);
    transition: var(--transition);
}

.social-icon svg {
    width: 20px;
    height: 20px;
}

.social-icon:hover {
    background: var(--gradient-1);
    border-color: transparent;
    color: var(--white);
    transform: translateY(-4px);
}

/* Contact Form */
.contact-form {
    position: relative;
    padding: 48px;
    background: linear-gradient(135deg, rgba(17, 24, 39, 0.8) 0%, rgba(10, 15, 26, 0.8) 100%);
    border: 1px solid rgba(255, 255, 255, 0.05);
    border-radius: var(--radius-xl);
}

.form-row {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 20px;
}

.form-group {
    margin-bottom: 24px;
}

.form-group label {
    display: block;
    margin-bottom: 10px;
    font-weight: 500;
    color: var(--gray-300);
    font-size: 0.95rem;
}

.form-group input,
.form-group textarea {
    width: 100%;
    padding: 16px 20px;
    background: var(--dark);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 12px;
    color: var(--white);
    font-family: inherit;
    font-size: 1rem;
    transition: var(--transition);
}

.form-group input::placeholder,
.form-group textarea::placeholder {
    color: var(--gray-600);
}

.form-group input:focus,
.form-group textarea:focus {
    outline: none;
    border-color: var(--primary);
    box-shadow: 0 0 0 4px rgba(99, 102, 241, 0.15);
}

.form-group textarea {
    resize: vertical;
    min-height: 140px;
}

/* Form status messages */
.form-status {
    margin-top: 20px;
    padding: 0;
    border-radius: 12px;
    font-size: 0.95rem;
    text-align: center;
    transition: var(--transition);
}

.form-status:empty {
    display: none;
}

.form-status.success {
    display: block;
    padding: 16px 20px;
    background: rgba(34, 197, 94, 0.1);
    border: 1px solid rgba(34, 197, 94, 0.3);
    color: #22c55e;
}

.form-status.error {
    display: block;
    padding: 16px 20px;
    background: rgba(239, 68, 68, 0.1);
    border: 1px solid rgba(239, 68, 68, 0.3);
    color: #ef4444;
}

/* =========================================
   Footer
   ========================================= */
.footer {
    background: var(--dark);
    padding: 80px 0 0;
    border-top: 1px solid rgba(255, 255, 255, 0.05);
}

.footer-main {
    display: grid;
    grid-template-columns: 1.5fr 2fr;
    gap: 80px;
    padding-bottom: 60px;
}

.footer-brand .logo {
    margin-bottom: 20px;
}

.footer-brand .logo.logo-large {
    align-items: center;
    gap: 12px;
}

.footer-brand .logo.logo-large .logo-text {
    font-size: 3.5rem !important;
    font-weight: 700 !important;
    letter-spacing: -0.02em;
}

.footer-brand > p {
    font-size: 1rem;
    color: var(--gray-500);
    max-width: 300px;
    margin-bottom: 24px;
}

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

.footer-social a {
    width: 40px;
    height: 40px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: rgba(255, 255, 255, 0.03);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 10px;
    color: var(--gray-400);
    transition: var(--transition);
}

.footer-social a svg {
    width: 18px;
    height: 18px;
}

.footer-social a:hover {
    background: var(--gradient-1);
    border-color: transparent;
    color: var(--white);
    transform: translateY(-2px);
}

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

.footer-column h4 {
    font-size: 0.95rem;
    font-weight: 600;
    margin-bottom: 24px;
    color: var(--white);
}

.footer-column ul {
    list-style: none;
    display: flex;
    flex-direction: column;
    gap: 16px;
}

.footer-column a {
    color: var(--gray-500);
    font-size: 0.95rem;
    transition: var(--transition);
}

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

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

.footer-bottom p {
    font-size: 0.9rem;
    color: var(--gray-600);
}

.footer-tagline {
    color: var(--gray-500) !important;
    font-style: italic;
}

/* =========================================
   Responsive Design
   ========================================= */
@media (max-width: 1200px) {
    .differentiators {
        grid-template-columns: repeat(2, 1fr);
    }

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

    .featured-testimonial {
        grid-column: span 2;
        grid-row: auto;
    }
}

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

    .project-card-large {
        grid-template-columns: 1fr;
        gap: 40px;
    }

    .projects-grid-small {
        grid-template-columns: 1fr;
    }

    .about-layout {
        grid-template-columns: 1fr;
        gap: 60px;
    }

    .about-visual-side {
        display: none;
    }

    .contact-layout {
        grid-template-columns: 1fr;
        gap: 60px;
    }

    .footer-main {
        grid-template-columns: 1fr;
        gap: 48px;
    }

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

@media (max-width: 768px) {
    .nav-links {
        display: none;
        position: absolute;
        top: 100%;
        left: 0;
        right: 0;
        flex-direction: column;
        background: rgba(3, 7, 18, 0.98);
        backdrop-filter: blur(20px);
        -webkit-backdrop-filter: blur(20px);
        padding: 24px 32px;
        gap: 0;
        border-bottom: 1px solid rgba(255, 255, 255, 0.05);
    }

    .nav-links.active {
        display: flex;
    }

    .nav-links li {
        padding: 16px 0;
        border-bottom: 1px solid rgba(255, 255, 255, 0.05);
    }

    .nav-links li:last-child {
        border-bottom: none;
        padding-top: 24px;
    }

    .nav-links a {
        font-size: 1.1rem;
    }

    .mobile-menu-btn {
        display: flex;
    }

    .hero {
        padding: 120px 24px 80px;
        min-height: auto;
    }

    .hero h1 {
        font-size: 2.25rem;
        line-height: 1.15;
    }

    .hero-subtitle {
        font-size: 1.05rem;
    }

    .hero-badge {
        font-size: 0.75rem;
        padding: 8px 16px;
    }

    section {
        padding: 60px 0;
    }

    .section-header {
        margin-bottom: 40px;
    }

    .section-header h2 {
        font-size: 1.75rem;
    }

    .differentiators {
        grid-template-columns: 1fr;
        gap: 16px;
    }

    .diff-card {
        padding: 32px 24px;
    }

    .diff-card h3 {
        font-size: 1.1rem;
    }

    .testimonials-grid {
        grid-template-columns: 1fr;
        gap: 16px;
    }

    .featured-testimonial {
        grid-column: auto;
    }

    .testimonial-card {
        padding: 28px;
    }

    .testimonial-text {
        font-size: 1rem;
    }

    .featured-testimonial .testimonial-text {
        font-size: 1.1rem;
    }

    .about-stats {
        flex-wrap: wrap;
        gap: 24px;
        justify-content: space-between;
    }

    .about-stat {
        flex: 1;
        min-width: 80px;
        text-align: center;
    }

    .stat-value {
        font-size: 1.75rem;
    }

    .cta-card {
        padding: 40px 20px;
    }

    .cta-content h2 {
        font-size: 1.5rem;
    }

    .cta-content p {
        font-size: 1rem;
    }

    .contact-form {
        padding: 24px;
    }

    .form-row {
        grid-template-columns: 1fr;
    }

    .form-group input,
    .form-group textarea {
        padding: 14px 16px;
        font-size: 16px; /* Prevents iOS zoom on focus */
    }

    .service-card {
        padding: 28px;
    }

    .service-card h3 {
        font-size: 1.25rem;
    }

    .service-card p {
        font-size: 0.95rem;
    }

    .project-card-large {
        padding: 24px;
    }

    .project-info h3 {
        font-size: 1.5rem;
    }

    .project-card-small {
        padding: 24px;
    }

    .project-card-small h3 {
        font-size: 1.25rem;
    }

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

    .footer-column h4 {
        font-size: 0.9rem;
        margin-bottom: 16px;
    }

    .footer-column ul {
        gap: 12px;
    }

    .footer-bottom {
        flex-direction: column;
        gap: 16px;
        text-align: center;
    }

    /* Hide hero glows on mobile for performance */
    .hero-glow {
        opacity: 0.3;
    }

    /* Simpler marquee on mobile */
    .marquee-content span {
        font-size: 0.9rem;
        letter-spacing: 1px;
    }
}

@media (max-width: 480px) {
    .container {
        padding: 0 16px;
    }

    .nav-container {
        padding: 0 16px;
    }

    .logo-icon {
        width: 36px;
        height: 36px;
    }

    .logo-text {
        font-size: 1.25rem;
    }

    .hero {
        padding: 100px 16px 60px;
    }

    .hero h1 {
        font-size: 1.875rem;
    }

    .hero-subtitle {
        font-size: 1rem;
        margin-bottom: 32px;
    }

    .hero-buttons {
        flex-direction: column;
        width: 100%;
        gap: 12px;
    }

    .btn {
        width: 100%;
        padding: 14px 24px;
    }

    .hero-scroll {
        display: none;
    }

    section {
        padding: 48px 0;
    }

    .section-header h2 {
        font-size: 1.5rem;
    }

    .service-card {
        padding: 24px 20px;
    }

    .service-icon {
        width: 52px;
        height: 52px;
    }

    .service-icon svg {
        width: 26px;
        height: 26px;
    }

    .service-tags {
        gap: 6px;
    }

    .service-tags span {
        padding: 4px 10px;
        font-size: 0.7rem;
    }

    .project-card-large {
        padding: 20px;
    }

    .project-info h3 {
        font-size: 1.35rem;
    }

    .project-features li {
        font-size: 0.9rem;
    }

    .project-card-small {
        padding: 20px;
    }

    .diff-card {
        padding: 28px 20px;
    }

    .diff-icon {
        width: 60px;
        height: 60px;
    }

    .diff-icon svg {
        width: 28px;
        height: 28px;
    }

    .testimonial-card {
        padding: 24px 20px;
    }

    .about-stats {
        gap: 16px;
    }

    .stat-value {
        font-size: 1.5rem;
    }

    .stat-label {
        font-size: 0.8rem;
    }

    .cta-card {
        padding: 32px 16px;
    }

    .cta-content h2 {
        font-size: 1.35rem;
    }

    .btn-large {
        padding: 16px 28px;
        font-size: 1rem;
    }

    .contact-form {
        padding: 20px 16px;
    }

    .social-icons {
        gap: 10px;
    }

    .social-icon {
        width: 44px;
        height: 44px;
    }

    .footer {
        padding: 48px 0 0;
    }

    .footer-main {
        gap: 32px;
        padding-bottom: 32px;
    }

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

    .footer-social {
        gap: 10px;
    }

    .footer-social a {
        width: 36px;
        height: 36px;
    }

    /* Footer logo - scale down but keep icon proportional to text */
    .footer-brand .logo.logo-large .logo-icon {
        width: 60px !important;
        height: 60px !important;
    }

    .footer-brand .logo.logo-large .logo-text {
        font-size: 2rem !important;
    }

    /* EJH project card - stack vertically and make mockup larger */
    .project-card-large {
        grid-template-columns: 1fr !important;
        gap: 24px !important;
    }

    .project-card-large .project-visual {
        order: -1;
    }

    .ejh-dashboard-mockup {
        width: 100% !important;
        height: auto !important;
        max-width: 350px;
    }

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

    .project-features {
        text-align: left;
    }

    /* Disable complex animations on small screens */
    .hero-glow {
        display: none;
    }

    .marquee-container {
        padding: 16px 0;
    }

    .marquee-content {
        gap: 32px;
    }

    .marquee-content span {
        font-size: 0.8rem;
    }
}

/* Extra small screens */
@media (max-width: 360px) {
    .hero h1 {
        font-size: 1.625rem;
    }

    .section-header h2 {
        font-size: 1.375rem;
    }

    .logo-icon {
        width: 32px;
        height: 32px;
    }

    .logo-text {
        font-size: 1.1rem;
    }
}

/* =========================================
   Animations
   ========================================= */
.animate-on-scroll {
    opacity: 0;
    transform: translate3d(0, 40px, 0);
    transition: opacity 0.6s cubic-bezier(0.4, 0, 0.2, 1),
                transform 0.6s cubic-bezier(0.4, 0, 0.2, 1);
    backface-visibility: hidden;
}

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

/* Stagger animation delays */
.animate-on-scroll:nth-child(1) { transition-delay: 0s; }
.animate-on-scroll:nth-child(2) { transition-delay: 0.1s; }
.animate-on-scroll:nth-child(3) { transition-delay: 0.2s; }
.animate-on-scroll:nth-child(4) { transition-delay: 0.3s; }

/* Performance: Remove will-change after animation completes */
.animate-on-scroll.visible {
    will-change: auto;
}

/* =========================================
   Touch Device Optimizations
   ========================================= */

/* Touch device class added by JavaScript */
.touch-device .btn:hover,
.touch-device .service-card:hover,
.touch-device .project-card-large:hover,
.touch-device .project-card-small:hover,
.touch-device .diff-card:hover,
.touch-device .testimonial-card:hover,
.touch-device .social-icon:hover,
.touch-device .footer-social a:hover {
    transform: none;
}

/* Active states for touch devices */
.touch-device .btn:active {
    transform: scale(0.98);
}

.touch-device .service-card:active,
.touch-device .project-card-small:active,
.touch-device .diff-card:active {
    transform: scale(0.99);
    border-color: rgba(99, 102, 241, 0.3);
}

/* Prevent tap highlight on iOS */
.touch-device * {
    -webkit-tap-highlight-color: transparent;
}

/* =========================================
   iOS Safari Compatibility
   ========================================= */

/* Fix iOS Safari 100vh issue */
@supports (-webkit-touch-callout: none) {
    .hero {
        min-height: -webkit-fill-available;
    }
}

/* Safe area insets for notched devices */
@supports (padding: max(0px)) {
    .navbar {
        padding-left: max(16px, env(safe-area-inset-left));
        padding-right: max(16px, env(safe-area-inset-right));
    }

    .nav-container {
        padding-left: max(32px, env(safe-area-inset-left));
        padding-right: max(32px, env(safe-area-inset-right));
    }

    .container {
        padding-left: max(32px, env(safe-area-inset-left));
        padding-right: max(32px, env(safe-area-inset-right));
    }

    .footer-bottom {
        padding-bottom: max(32px, env(safe-area-inset-bottom));
    }
}

/* Fix iOS Safari input zoom */
@media screen and (-webkit-min-device-pixel-ratio: 0) {
    select,
    textarea,
    input {
        font-size: 16px;
    }
}

/* Fix iOS Safari backdrop-filter */
@supports (-webkit-backdrop-filter: none) or (backdrop-filter: none) {
    .navbar::before {
        -webkit-backdrop-filter: blur(20px);
        backdrop-filter: blur(20px);
    }

    .nav-links {
        -webkit-backdrop-filter: blur(20px);
        backdrop-filter: blur(20px);
    }

    .btn-secondary {
        -webkit-backdrop-filter: blur(10px);
        backdrop-filter: blur(10px);
    }
}

/* Fix for iOS momentum scrolling */
.nav-links {
    -webkit-overflow-scrolling: touch;
}

/* =========================================
   Hardware Acceleration Helpers
   ========================================= */

/* Optimize paint operations - use contain for layout isolation */
.service-card,
.project-card-large,
.project-card-small,
.diff-card,
.testimonial-card,
.cta-card,
.contact-form {
    contain: layout style;
}

/* =========================================
   High Contrast Mode Support
   ========================================= */
@media (prefers-contrast: high) {
    :root {
        --gray-400: #b5b5b5;
        --gray-500: #909090;
    }

    .service-card,
    .project-card-large,
    .project-card-small,
    .diff-card,
    .testimonial-card {
        border-color: rgba(255, 255, 255, 0.2);
    }
}

/* =========================================
   Print Styles
   ========================================= */
@media print {
    .cursor-glow,
    .hero-glow,
    .scroll-progress,
    .navbar,
    .hero-scroll {
        display: none !important;
    }

    body {
        background: white;
        color: black;
    }

    .container {
        max-width: 100%;
    }

    section {
        padding: 20px 0;
        page-break-inside: avoid;
    }
}

/* Force center cards */
.service-card,
.project-card-small {
    text-align: center !important;
}

.service-icon,
.project-icon-wrap {
    margin-left: auto !important;
    margin-right: auto !important;
}

.service-card > .service-tags {
    -webkit-flex-direction: row !important;
    flex-direction: row !important;
    -webkit-flex-wrap: wrap !important;
    flex-wrap: wrap !important;
    -webkit-justify-content: flex-start !important;
    justify-content: flex-start !important;
    -webkit-align-items: flex-start !important;
    align-items: flex-start !important;
}

/* =========================================
   Page Header (for subpages)
   ========================================= */
.page-header {
    padding: 180px 0 80px;
    text-align: center;
    position: relative;
}

.page-header h1 {
    font-size: clamp(2.5rem, 5vw, 4rem);
    font-weight: 800;
    line-height: 1.1;
    margin-bottom: 20px;
}

.page-subtitle {
    font-size: 1.25rem;
    color: var(--gray-400);
    max-width: 600px;
    margin: 0 auto;
}

/* Active nav link */
.nav-links a.active {
    color: var(--primary-light);
}

/* =========================================
   About Page Styles
   ========================================= */
.about-story {
    padding: 80px 0;
}

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

.story-content h2 {
    font-size: 2.5rem;
    font-weight: 700;
    margin-bottom: 24px;
}

.story-content .lead {
    font-size: 1.25rem;
    color: var(--gray-300);
    margin-bottom: 24px;
    line-height: 1.7;
}

.story-content p {
    color: var(--gray-400);
    margin-bottom: 20px;
    line-height: 1.8;
}

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

.story-card {
    padding: 32px;
    background: linear-gradient(180deg, rgba(17, 24, 39, 0.5) 0%, rgba(10, 15, 26, 0.5) 100%);
    border: 1px solid rgba(255, 255, 255, 0.05);
    border-radius: var(--radius-lg);
    transition: var(--transition);
}

.story-card:hover {
    border-color: rgba(99, 102, 241, 0.3);
    transform: translateY(-4px);
}

.story-icon {
    width: 56px;
    height: 56px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: rgba(99, 102, 241, 0.1);
    border: 1px solid rgba(99, 102, 241, 0.2);
    border-radius: 16px;
    margin-bottom: 20px;
}

.story-icon svg {
    width: 28px;
    height: 28px;
    color: var(--primary-light);
}

.story-card h3 {
    font-size: 1.25rem;
    font-weight: 600;
    margin-bottom: 12px;
    color: var(--white);
}

.story-card p {
    color: var(--gray-400);
    font-size: 0.95rem;
    line-height: 1.6;
}

/* Mission Section */
.mission-section {
    padding: 80px 0;
    background: linear-gradient(180deg, rgba(99, 102, 241, 0.03) 0%, transparent 100%);
}

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

.section-header.centered h2 {
    font-size: 2.5rem;
    font-weight: 700;
}

.values-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 24px;
}

.value-card {
    padding: 40px 32px;
    background: linear-gradient(180deg, rgba(17, 24, 39, 0.5) 0%, rgba(10, 15, 26, 0.5) 100%);
    border: 1px solid rgba(255, 255, 255, 0.05);
    border-radius: var(--radius-lg);
    transition: var(--transition);
}

.value-card:hover {
    border-color: rgba(99, 102, 241, 0.3);
    transform: translateY(-4px);
}

.value-number {
    font-size: 3rem;
    font-weight: 800;
    background: var(--gradient-text);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    margin-bottom: 20px;
    opacity: 0.5;
}

.value-card h3 {
    font-size: 1.25rem;
    font-weight: 600;
    margin-bottom: 16px;
    color: var(--white);
}

.value-card p {
    color: var(--gray-400);
    font-size: 0.95rem;
    line-height: 1.7;
}

/* Founder Section */
.founder-section {
    padding: 80px 0;
}

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

.founder-image {
    position: sticky;
    top: 120px;
}

.founder-placeholder {
    width: 100%;
    aspect-ratio: 1;
    background: linear-gradient(180deg, rgba(17, 24, 39, 0.8) 0%, rgba(10, 15, 26, 0.8) 100%);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: var(--radius-xl);
    display: flex;
    align-items: center;
    justify-content: center;
}

.founder-placeholder svg {
    width: 80px;
    height: 80px;
    color: var(--gray-600);
}

.founder-content .section-tag {
    margin-bottom: 16px;
}

.founder-content h2 {
    font-size: 2.5rem;
    font-weight: 700;
    margin-bottom: 8px;
}

.founder-title {
    font-size: 1.1rem;
    color: var(--primary-light);
    margin-bottom: 32px;
}

.founder-content p {
    color: var(--gray-400);
    margin-bottom: 20px;
    line-height: 1.8;
}

.founder-stats {
    display: flex;
    gap: 48px;
    margin-top: 40px;
    padding-top: 40px;
    border-top: 1px solid rgba(255, 255, 255, 0.1);
}

.founder-stat {
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.founder-stat .stat-value {
    font-size: 1.5rem;
    font-weight: 700;
    color: var(--white);
}

.founder-stat .stat-label {
    font-size: 0.9rem;
    color: var(--gray-500);
}

/* =========================================
   Blog Page Styles
   ========================================= */
.blog-filter {
    padding: 0 0 40px;
}

.filter-tabs {
    display: flex;
    gap: 12px;
    flex-wrap: wrap;
    justify-content: center;
}

.filter-tab {
    padding: 12px 24px;
    background: rgba(255, 255, 255, 0.03);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 100px;
    color: var(--gray-400);
    font-size: 0.95rem;
    font-weight: 500;
    cursor: pointer;
    transition: var(--transition);
}

.filter-tab:hover {
    background: rgba(255, 255, 255, 0.05);
    color: var(--white);
}

.filter-tab.active {
    background: var(--gradient-1);
    border-color: transparent;
    color: var(--white);
}

.blog-posts {
    padding: 0 0 80px;
}

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

.blog-card {
    background: linear-gradient(180deg, rgba(17, 24, 39, 0.5) 0%, rgba(10, 15, 26, 0.5) 100%);
    border: 1px solid rgba(255, 255, 255, 0.05);
    border-radius: var(--radius-lg);
    overflow: hidden;
    transition: var(--transition);
}

.blog-card:hover {
    border-color: rgba(99, 102, 241, 0.3);
    transform: translateY(-4px);
}

.blog-card-featured {
    grid-column: span 3;
    display: grid;
    grid-template-columns: 1fr 1fr;
}

.blog-card-featured .blog-card-image {
    height: 100%;
    min-height: 300px;
}

.blog-card-image {
    position: relative;
    height: 200px;
    background: rgba(99, 102, 241, 0.05);
    display: flex;
    align-items: center;
    justify-content: center;
}

.blog-placeholder-image {
    width: 64px;
    height: 64px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.blog-placeholder-image svg {
    width: 100%;
    height: 100%;
    color: var(--gray-600);
}

.blog-category {
    position: absolute;
    top: 16px;
    left: 16px;
    padding: 6px 14px;
    background: var(--gradient-1);
    border-radius: 100px;
    font-size: 0.8rem;
    font-weight: 600;
    color: var(--white);
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.blog-card-content {
    padding: 28px;
}

.blog-card-featured .blog-card-content {
    display: flex;
    flex-direction: column;
    justify-content: center;
    padding: 40px;
}

.blog-meta {
    display: flex;
    gap: 16px;
    margin-bottom: 16px;
    font-size: 0.85rem;
    color: var(--gray-500);
}

.blog-card h2,
.blog-card h3 {
    font-weight: 600;
    margin-bottom: 12px;
    color: var(--white);
    line-height: 1.4;
}

.blog-card h2 {
    font-size: 1.75rem;
}

.blog-card h3 {
    font-size: 1.15rem;
}

.blog-card p {
    color: var(--gray-400);
    font-size: 0.95rem;
    line-height: 1.7;
    margin-bottom: 20px;
}

.blog-read-more {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    color: var(--primary-light);
    font-weight: 600;
    font-size: 0.95rem;
    transition: var(--transition);
}

.blog-read-more:hover {
    color: var(--white);
}

.blog-read-more svg {
    width: 18px;
    height: 18px;
    transition: var(--transition);
}

.blog-read-more:hover svg {
    transform: translateX(4px);
}

.blog-empty {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    padding: 80px 20px;
    text-align: center;
}

.blog-empty-icon {
    width: 80px;
    height: 80px;
    margin-bottom: 24px;
}

.blog-empty-icon svg {
    width: 100%;
    height: 100%;
    color: var(--gray-600);
}

.blog-empty h3 {
    font-size: 1.5rem;
    font-weight: 600;
    margin-bottom: 12px;
    color: var(--white);
}

.blog-empty p {
    color: var(--gray-500);
}

/* =========================================
   Newsletter Section
   ========================================= */
.newsletter-section {
    padding: 80px 0;
}

.newsletter-card {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 60px;
    align-items: center;
    padding: 60px;
    background: linear-gradient(180deg, rgba(17, 24, 39, 0.8) 0%, rgba(10, 15, 26, 0.8) 100%);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: var(--radius-xl);
}

.newsletter-content h2 {
    font-size: 2rem;
    font-weight: 700;
    margin-bottom: 16px;
}

.newsletter-content p {
    color: var(--gray-400);
    line-height: 1.7;
}

.newsletter-form .form-group {
    display: flex;
    gap: 12px;
}

.newsletter-form input {
    flex: 1;
    padding: 16px 20px;
    background: var(--dark);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 12px;
    color: var(--white);
    font-size: 1rem;
    transition: var(--transition);
}

.newsletter-form input:focus {
    outline: none;
    border-color: var(--primary);
    box-shadow: 0 0 0 4px rgba(99, 102, 241, 0.15);
}

.newsletter-form input::placeholder {
    color: var(--gray-600);
}

.newsletter-note {
    margin-top: 12px;
    font-size: 0.85rem;
    color: var(--gray-500);
}

.newsletter-form .form-status {
    margin-top: 16px;
}

.newsletter-form .form-status p {
    margin: 0;
    padding: 12px 16px;
    border-radius: 8px;
    font-size: 0.9rem;
}

.newsletter-form .form-status p.success {
    background: rgba(34, 197, 94, 0.1);
    border: 1px solid rgba(34, 197, 94, 0.3);
    color: #22c55e;
}

.newsletter-form .form-status p.error {
    background: rgba(239, 68, 68, 0.1);
    border: 1px solid rgba(239, 68, 68, 0.3);
    color: #ef4444;
}

/* =========================================
   About & Blog Page Responsive
   ========================================= */
@media (max-width: 1024px) {
    .story-grid {
        grid-template-columns: 1fr;
        gap: 48px;
    }

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

    .founder-grid {
        grid-template-columns: 1fr;
        gap: 48px;
    }

    .founder-image {
        position: static;
        max-width: 250px;
        margin: 0 auto;
    }

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

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

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

    .blog-card-featured {
        grid-column: span 2;
        grid-template-columns: 1fr;
    }

    .blog-card-featured .blog-card-image {
        min-height: 200px;
    }

    .newsletter-card {
        grid-template-columns: 1fr;
        gap: 40px;
        padding: 40px;
        text-align: center;
    }
}

@media (max-width: 768px) {
    .page-header {
        padding: 140px 0 60px;
    }

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

    .founder-stats {
        flex-direction: column;
        gap: 24px;
        align-items: center;
    }

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

    .blog-card-featured {
        grid-column: span 1;
    }

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

    .newsletter-form .btn {
        width: 100%;
        justify-content: center;
    }
}

/* ── New sections added in April 2026 redesign ── */
.bento-tag.orange { background:rgba(245,158,11,0.12); border-color:rgba(245,158,11,0.25); color:#fbbf24; }

/* ======== STACK SECTION (NEW) ======== */
.stack-section { background:var(--dark-lighter); }

.stack-grid { display:grid; grid-template-columns:repeat(3,1fr); gap:24px; margin-top:16px; }

.stack-card { padding:28px; background:linear-gradient(135deg,rgba(10,15,26,0.95),rgba(17,24,39,0.9)); border:1px solid rgba(255,255,255,0.06); border-radius:var(--radius-lg); transition:var(--transition); }

.stack-card:hover { border-color:rgba(99,102,241,0.3); transform:translateY(-4px); box-shadow:var(--shadow-glow-sm); }

.stack-category { font-size:0.7rem; font-weight:700; color:var(--primary); text-transform:uppercase; letter-spacing:2px; margin-bottom:10px; }

.stack-tags { display:flex; flex-wrap:wrap; gap:6px; }

.stack-proof { font-size:0.75rem; color:var(--accent); margin-top:10px; font-style:italic; }

/* ── About Visual: Cool Factor ──────────────────────────── */
/* Background orb */
.about-orb { position:absolute; width:360px; height:360px; top:50%; left:50%; transform:translate(-50%,-50%); background:radial-gradient(circle, rgba(99,102,241,0.18) 0%, rgba(6,182,212,0.08) 40%, transparent 70%); border-radius:50%; filter:blur(40px); animation:orbPulse 6s ease-in-out infinite; pointer-events:none; z-index:1; }

/* Particle dots */
.about-particle { position:absolute; width:4px; height:4px; border-radius:50%; animation:particleDrift 8s ease-in-out infinite; pointer-events:none; z-index:3; }

.ap1 { top:15%; left:55%; background:rgba(99,102,241,0.7); animation-delay:0s; }

.ap2 { top:70%; left:75%; background:rgba(6,182,212,0.7); animation-delay:2s; }

.ap3 { top:45%; left:20%; background:rgba(139,92,246,0.7); animation-delay:4s; }

.ap4 { top:80%; left:40%; background:rgba(16,185,129,0.7); animation-delay:6s; }

.about-content-side { display:flex; flex-direction:column; gap:20px; }

/* ======== MID-PAGE CTA (Option A) ======== */
.cta-mid { background:var(--dark); padding:80px 0; }

.cta-mid-card {
    position:relative;
    padding:72px 80px;
    border-radius:var(--radius-xl);
    overflow:hidden;
    display:grid;
    grid-template-columns:1fr auto;
    gap:60px;
    align-items:center;
    background:linear-gradient(135deg,rgba(99,102,241,0.12) 0%,rgba(6,182,212,0.06) 100%);
}

/* Gradient border */
.cta-mid-card::before {
    content:'';
    position:absolute;
    inset:0;
    border-radius:var(--radius-xl);
    padding:1.5px;
    background:linear-gradient(135deg,#6366f1,#0ea5e9,#22d3ee);
    mask:linear-gradient(#fff 0 0) content-box,linear-gradient(#fff 0 0);
    mask-composite:xor;
    -webkit-mask-composite:xor;
}

/* Background glow orbs */
.cta-mid-card::after {
    content:'';
    position:absolute;
    width:500px;
    height:500px;
    top:50%;
    left:30%;
    transform:translate(-50%,-50%);
    background:radial-gradient(circle,rgba(99,102,241,0.2) 0%,rgba(6,182,212,0.08) 40%,transparent 70%);
    filter:blur(60px);
    pointer-events:none;
}

.cta-mid-text { position:relative; z-index:1; }

.cta-mid-action { position:relative; z-index:1; display:flex; flex-direction:column; align-items:center; gap:16px; min-width:220px; }

.cta-mid-note { font-size:0.8rem; color:var(--gray-600); text-align:center; }

@media (max-width:900px) { .cta-mid-card { grid-template-columns:1fr; padding:48px 32px; } .cta-mid-action { align-items:flex-start; } }

/* ======== RESPONSIVE ======== */
@media (max-width:1024px) {
    .bento-grid { grid-template-columns:1fr; }
    .bento-featured .bento-tile-inner { grid-template-columns:1fr; }
    .tab-panel-inner { grid-template-columns:1fr; gap:32px; padding:32px; }
    .about-layout { grid-template-columns:1fr; }
    .contact-layout { grid-template-columns:1fr; }
    .footer-main { grid-template-columns:1fr; gap:40px; }
    .diff-grid { grid-template-columns:repeat(2,1fr); }
    .stack-grid { grid-template-columns:repeat(2,1fr); }
}

@media (max-width:768px) {
    .nav-links { display:none; }
    .diff-grid { grid-template-columns:1fr; }
    .stack-grid { grid-template-columns:1fr; }
    .testimonials-grid { grid-template-columns:1fr; }
    .featured-testimonial { grid-column:span 1; }
    .form-row { grid-template-columns:1fr; }
    .about-stats { grid-template-columns:1fr; }
    .footer-links { grid-template-columns:1fr 1fr; }
    .cta-card { padding:40px 24px; }
}


/* ── Flip card faces (diff-card-new redesign) ── */
.diff-card-new { position:relative; height:320px; cursor:pointer; perspective:1000px; }

.diff-front,.diff-back { position:absolute; inset:0; padding:32px; border-radius:var(--radius-lg); backface-visibility:hidden; transition:all 0.6s cubic-bezier(0.4,0,0.2,1); display:flex; flex-direction:column; }

.diff-front { background:linear-gradient(180deg,rgba(17,24,39,0.8) 0%,rgba(10,15,26,0.8) 100%); border:1px solid rgba(255,255,255,0.08); align-items:center; justify-content:center; text-align:center; }

.diff-back { background:linear-gradient(135deg,rgba(99,102,241,0.15) 0%,rgba(139,92,246,0.1) 100%); border:1px solid rgba(99,102,241,0.3); transform:rotateY(180deg); justify-content:center; }

.diff-card-new:hover .diff-front { transform:rotateY(-180deg); }

.diff-card-new:hover .diff-back { transform:rotateY(0); }

.diff-number { position:absolute; top:20px; right:20px; font-size:2.5rem; font-weight:900; background:var(--gradient-text); -webkit-background-clip:text; -webkit-text-fill-color:transparent; background-clip:text; opacity:0.3; }

.diff-icon-new { width:40px; height:40px; display:flex; align-items:center; justify-content:center; background:rgba(99,102,241,0.15); border-radius:10px; }

.diff-icon-new svg { width:22px; height:22px; color:var(--primary-light); }

.diff-icon-new { width:64px; height:64px; display:flex; align-items:center; justify-content:center; background:var(--gradient-text); border-radius:16px; margin-bottom:20px; box-shadow:0 8px 32px rgba(99,102,241,0.3); }

.diff-icon-new svg { width:32px; height:32px; color:#fff; }

.diff-front h3 { font-size:1.2rem; margin-bottom:8px; }

.diff-back p { font-size:0.95rem; color:var(--gray-400); line-height:1.6; margin-bottom:20px; }
/* ── Stack card inner elements (missed in prior append) ── */
.stack-card h4 { font-size:1.05rem; color:var(--white); margin-bottom:12px; font-weight:600; }
.stack-card p { font-size:0.875rem; color:var(--gray-500); line-height:1.6; margin-bottom:16px; }
.stack-tags span { padding:4px 10px; background:rgba(99,102,241,0.1); border:1px solid rgba(99,102,241,0.2); border-radius:4px; font-size:0.7rem; font-weight:600; color:var(--primary-light); font-family:'SF Mono','Monaco',monospace; }
