/* =========================
   Design System
   ========================= */

:root {
    /* Colors - Dark Modern Tech Palette */
    --bg-primary: #0A0B0F;
    --bg-secondary: #111318;
    --bg-card: #16181D;
    --bg-elevated: #1C1F26;

    --primary: #3B82F6;
    --primary-light: #60A5FA;
    --primary-dark: #2563EB;
    --accent: #06B6D4;
    --accent-purple: #A855F7;
    --success: #10B981;

    --text-primary: #F9FAFB;
    --text-secondary: #D1D5DB;
    --text-muted: #9CA3AF;
    --text-dim: #6B7280;

    --border: rgba(255, 255, 255, 0.08);
    --border-hover: rgba(255, 255, 255, 0.16);
    --border-focus: rgba(59, 130, 246, 0.5);

    --shadow: rgba(0, 0, 0, 0.3);
    --shadow-lg: rgba(0, 0, 0, 0.5);
    --glow-primary: rgba(59, 130, 246, 0.4);
    --glow-accent: rgba(6, 182, 212, 0.4);

    --gradient-primary: linear-gradient(135deg, #3B82F6 0%, #2563EB 100%);
    --gradient-accent: linear-gradient(135deg, #06B6D4 0%, #3B82F6 100%);
    --gradient-bg: radial-gradient(circle at 20% 50%, rgba(59, 130, 246, 0.08) 0%, transparent 50%),
        radial-gradient(circle at 80% 50%, rgba(168, 85, 247, 0.06) 0%, transparent 50%);

    --logo-filter: brightness(0) invert(1) drop-shadow(0 4px 16px var(--glow-primary));

    /* Typography */
    --font-display: 'Fraunces', serif;
    --font-body: 'Work Sans', sans-serif;

    /* Spacing */
    --spacing-xs: 0.5rem;
    --spacing-sm: 1rem;
    --spacing-md: 2rem;
    --spacing-lg: 4rem;
    --spacing-xl: 6rem;

    /* Borders */
    --radius-sm: 12px;
    --radius-md: 16px;
    --radius-lg: 24px;
    --radius-xl: 32px;
    --radius-full: 999px;

    /* Animation */
    --duration-fast: 0.2s;
    --duration-normal: 0.3s;
    --duration-slow: 0.5s;
    --easing-bounce: cubic-bezier(0.175, 0.885, 0.32, 1.275);
    --easing-smooth: cubic-bezier(0.4, 0, 0.2, 1);
}

/* Light Mode */
[data-theme="light"] {
    --bg-primary: #FFFFFF;
    --bg-secondary: #F8F9FA;
    --bg-card: #FFFFFF;
    --bg-elevated: #F1F3F5;

    --text-primary: #1A1A2E;
    --text-secondary: #4B5563;
    --text-muted: #6B7280;
    --text-dim: #9CA3AF;

    --border: rgba(0, 0, 0, 0.1);
    --border-hover: rgba(0, 0, 0, 0.2);
    --border-focus: rgba(59, 130, 246, 0.5);

    --shadow: rgba(0, 0, 0, 0.08);
    --shadow-lg: rgba(0, 0, 0, 0.15);
    --glow-primary: rgba(59, 130, 246, 0.3);
    --glow-accent: rgba(6, 182, 212, 0.3);

    --gradient-bg: radial-gradient(circle at 20% 50%, rgba(59, 130, 246, 0.05) 0%, transparent 50%),
        radial-gradient(circle at 80% 50%, rgba(168, 85, 247, 0.03) 0%, transparent 50%);

    --logo-filter: drop-shadow(0 2px 8px var(--glow-primary));
}

/* =========================
   Reset & Base
   ========================= */

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

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

body {
    font-family: var(--font-body);
    background-color: var(--bg-primary);
    color: var(--text-primary);
    line-height: 1.7;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
    background-image: var(--gradient-bg);
    background-attachment: fixed;
    transition: background-color 0.3s ease, color 0.3s ease;
}

/* Noise Texture Overlay */
body::before {
    content: '';
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    pointer-events: none;
    opacity: 0.03;
    z-index: 9999;
    background-image: url("data:image/svg+xml,%3Csvg viewBox='0 0 256 256' xmlns='http://www.w3.org/2000/svg'%3E%3Cfilter id='noiseFilter'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.85' numOctaves='4' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23noiseFilter)'/%3E%3C/svg%3E");
}

/* Cursor Glow */
.cursor-glow {
    position: fixed;
    width: 400px;
    height: 400px;
    background: radial-gradient(circle, rgba(59, 130, 246, 0.08) 0%, transparent 70%);
    border-radius: 50%;
    pointer-events: none;
    transform: translate(-50%, -50%);
    z-index: 0;
    transition: opacity 0.3s ease;
    opacity: 0;
}

.cursor-glow.active {
    opacity: 1;
}

.container {
    max-width: 1280px;
    margin: 0 auto;
    padding: 0 2rem;
}

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

.nav {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    background: rgba(16, 19, 24, 0.8);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    border-bottom: 1px solid var(--border);
    z-index: 1000;
    transition: all 0.3s ease, background 0.3s ease;
}

[data-theme="light"] .nav {
    background: rgba(255, 255, 255, 0.9);
}

[data-theme="light"] .nav.scrolled {
    background: rgba(255, 255, 255, 0.95);
}

.nav.scrolled {
    background: rgba(16, 19, 24, 0.95);
    box-shadow: 0 8px 32px var(--shadow-lg);
}

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

.logo {
    position: relative;
    z-index: 10;
}

.logo img {
    height: 44px;
    filter: var(--logo-filter);
    transition: all 0.3s ease;
}

.logo:hover img {
    transform: scale(1.08) translateY(-2px);
    filter: var(--logo-filter);
}

[data-theme="light"] .logo:hover img {
    filter: drop-shadow(0 4px 16px var(--glow-primary));
}

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

.nav-links a {
    text-decoration: none;
    color: var(--text-secondary);
    font-weight: 600;
    font-size: 0.95rem;
    transition: all 0.3s ease;
    position: relative;
}

.nav-links a::after {
    content: '';
    position: absolute;
    bottom: -4px;
    left: 0;
    width: 0;
    height: 2px;
    background: var(--gradient-primary);
    transition: width 0.3s ease;
    border-radius: 2px;
}

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

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

.nav-cta {
    background: var(--gradient-primary) !important;
    color: var(--text-primary) !important;
    padding: 0.75rem 1.75rem;
    border-radius: var(--radius-full);
    transition: all 0.3s ease;
    font-weight: 600 !important;
    box-shadow: 0 4px 16px var(--glow-primary);
    position: relative;
    overflow: hidden;
}

.nav-cta::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;
}

.nav-cta:hover::before {
    left: 100%;
}

.nav-cta::after {
    display: none !important;
}

.nav-cta:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 24px var(--glow-primary);
}

/* Theme Toggle */
.theme-toggle {
    background: rgba(59, 130, 246, 0.1);
    border: 1px solid var(--border);
    border-radius: var(--radius-full);
    width: 44px;
    height: 44px;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: all 0.3s ease;
    position: relative;
    overflow: hidden;
    margin-left: 1rem;
}

.theme-toggle:hover {
    background: rgba(59, 130, 246, 0.15);
    border-color: var(--primary);
    transform: scale(1.05);
}

.theme-toggle svg {
    position: absolute;
    transition: all 0.3s ease;
}

.theme-toggle .sun-icon {
    opacity: 0;
    transform: rotate(90deg) scale(0);
    color: var(--primary);
}

.theme-toggle .moon-icon {
    opacity: 1;
    transform: rotate(0deg) scale(1);
    color: var(--primary-light);
}

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

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

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

.hero {
    min-height: 100vh;
    display: flex;
    align-items: center;
    padding: 140px 0 80px;
    position: relative;
    overflow: hidden;
}

.hero::before {
    content: '';
    position: absolute;
    top: -50%;
    left: -20%;
    width: 60%;
    height: 150%;
    background: radial-gradient(circle, rgba(59, 130, 246, 0.15) 0%, transparent 70%);
    filter: blur(80px);
    animation: pulse 8s ease-in-out infinite;
}

.hero::after {
    content: '';
    position: absolute;
    bottom: -50%;
    right: -20%;
    width: 60%;
    height: 150%;
    background: radial-gradient(circle, rgba(168, 85, 247, 0.12) 0%, transparent 70%);
    filter: blur(80px);
    animation: pulse 10s ease-in-out infinite reverse;
}

@keyframes pulse {

    0%,
    100% {
        opacity: 0.5;
        transform: scale(1);
    }

    50% {
        opacity: 1;
        transform: scale(1.1);
    }
}

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

.hero-badge {
    display: inline-block;
    padding: 0.5rem 1.25rem;
    background: rgba(59, 130, 246, 0.1);
    border: 1px solid rgba(59, 130, 246, 0.3);
    border-radius: var(--radius-full);
    font-size: 0.8rem;
    font-weight: 700;
    color: var(--primary-light);
    margin-bottom: 2rem;
    animation: fadeInUp 0.6s ease forwards, badgePulse 3s ease-in-out infinite 1s;
    text-transform: uppercase;
    letter-spacing: 1px;
    backdrop-filter: blur(10px);
}

@keyframes badgePulse {

    0%,
    100% {
        box-shadow: 0 0 20px rgba(59, 130, 246, 0.2);
    }

    50% {
        box-shadow: 0 0 30px rgba(59, 130, 246, 0.5);
    }
}

.hero-title {
    font-family: var(--font-display);
    font-size: clamp(2.75rem, 6vw, 5.5rem);
    line-height: 1.1;
    font-weight: 800;
    margin-bottom: 1.5rem;
    animation: fadeInUp 0.6s ease 0.1s forwards;
    animation-fill-mode: backwards;
    color: var(--text-primary);
    letter-spacing: -0.02em;
}

.title-accent {
    background: linear-gradient(135deg, #3B82F6 0%, #06B6D4 25%, #A855F7 50%, #3B82F6 75%, #06B6D4 100%);
    background-size: 200% 200%;
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    font-style: italic;
    position: relative;
    animation: gradientShift 4s ease-in-out infinite;
    display: inline-block;
    padding-right: 0.1em;
}

@keyframes gradientShift {

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

    50% {
        background-position: 100% 50%;
    }
}

.hero-subtitle {
    font-size: 1.2rem;
    color: var(--text-secondary);
    line-height: 1.8;
    max-width: 540px;
    margin-bottom: 2.5rem;
    animation: fadeInUp 0.6s ease 0.2s forwards;
    animation-fill-mode: backwards;
    font-weight: 400;
}

.hero-cta {
    display: flex;
    gap: 1rem;
    animation: fadeInUp 0.6s ease 0.3s forwards;
    animation-fill-mode: backwards;
}

.btn-primary {
    background: var(--gradient-primary);
    color: var(--text-primary);
    padding: 1.1rem 2.5rem;
    border-radius: var(--radius-full);
    text-decoration: none;
    font-weight: 700;
    transition: all var(--duration-normal) var(--easing-bounce);
    display: inline-block;
    box-shadow: 0 4px 20px var(--glow-primary);
    font-size: 1rem;
    position: relative;
    overflow: hidden;
    border: none;
    cursor: pointer;
}

.btn-primary::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;
}

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

.btn-primary:hover {
    transform: translateY(-3px);
    box-shadow: 0 8px 30px var(--glow-primary);
}

.btn-secondary {
    background: transparent;
    color: var(--text-primary);
    padding: 1.1rem 2.5rem;
    border: 2px solid var(--border-hover);
    border-radius: var(--radius-full);
    text-decoration: none;
    font-weight: 700;
    transition: all 0.3s ease;
    display: inline-block;
    font-size: 1rem;
    backdrop-filter: blur(10px);
}

.btn-secondary:hover {
    background: rgba(59, 130, 246, 0.1);
    border-color: var(--primary);
    color: var(--primary-light);
    transform: translateY(-4px);
    box-shadow: 0 8px 30px rgba(59, 130, 246, 0.2);
}

/* Hero Visual - Floating Cards */
.hero-visual {
    position: relative;
    height: 500px;
}

/* Tech Stack Card */
.tech-stack-card {
    position: absolute;
    top: 0;
    right: 0;
    background: rgba(22, 24, 29, 0.8);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    padding: 1.75rem;
    border-radius: var(--radius-lg);
    box-shadow: 0 8px 32px var(--shadow-lg), inset 0 1px 0 rgba(255, 255, 255, 0.05);
    border: 1px solid var(--border);
    min-width: 220px;
    max-width: 240px;
    animation: float 4s ease-in-out infinite;
    z-index: 15;
    transition: background 0.3s ease, box-shadow 0.3s ease;
}

[data-theme="light"] .tech-stack-card {
    background: var(--bg-card);
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.08), 0 1px 3px rgba(0, 0, 0, 0.05);
    border: 1px solid rgba(0, 0, 0, 0.08);
}

[data-theme="light"] .stack-badge {
    color: var(--primary);
}

[data-theme="light"] .tech-item {
    background: rgba(59, 130, 246, 0.08);
    color: var(--text-secondary);
    border: 1px solid rgba(59, 130, 246, 0.15);
}

.stack-badge {
    font-size: 0.75rem;
    font-weight: 800;
    color: var(--primary-light);
    text-transform: uppercase;
    letter-spacing: 1.2px;
    margin-bottom: 1rem;
}

.tech-items {
    display: flex;
    flex-wrap: wrap;
    gap: 0.6rem;
}

.tech-item {
    background: rgba(59, 130, 246, 0.1);
    color: var(--text-secondary);
    padding: 0.5rem 1rem;
    border-radius: var(--radius-full);
    font-size: 0.8rem;
    font-weight: 700;
    border: 1px solid rgba(59, 130, 246, 0.2);
    transition: all 0.3s ease;
}

.tech-item:hover {
    background: var(--gradient-primary);
    color: var(--text-primary);
    border-color: var(--primary);
    transform: translateY(-3px);
    box-shadow: 0 4px 16px var(--glow-primary);
}

.floating-card {
    position: absolute;
    background: rgba(22, 24, 29, 0.8);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    padding: 1.5rem 2rem;
    border-radius: var(--radius-lg);
    box-shadow: 0 8px 32px var(--shadow-lg), inset 0 1px 0 rgba(255, 255, 255, 0.05);
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 0.5rem;
    animation: float 3s ease-in-out infinite;
    border: 1px solid var(--border);
    min-width: 140px;
    transition: all 0.3s ease, background 0.3s ease;
}

[data-theme="light"] .floating-card {
    background: var(--bg-card);
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.08), 0 1px 3px rgba(0, 0, 0, 0.05);
    border: 1px solid rgba(0, 0, 0, 0.08);
}

[data-theme="light"] .floating-card:hover {
    box-shadow: 0 8px 30px rgba(0, 0, 0, 0.12), 0 2px 6px rgba(0, 0, 0, 0.08);
    border-color: rgba(59, 130, 246, 0.3);
}

.floating-card:hover {
    border-color: var(--border-hover);
    box-shadow: 0 12px 40px var(--shadow-lg), inset 0 1px 0 rgba(255, 255, 255, 0.1);
}

.card-icon {
    font-size: 2.25rem;
}

.card-text {
    font-weight: 700;
    color: var(--text-secondary);
    font-size: 0.85rem;
    white-space: nowrap;
}

.card-1 {
    top: 5%;
    left: 0;
    animation-delay: 0s;
    z-index: 10;
}

.card-2 {
    bottom: 35%;
    left: 5%;
    animation-delay: 0.5s;
    z-index: 11;
}

.card-3 {
    bottom: 5%;
    left: 35%;
    animation-delay: 1s;
    z-index: 12;
}

@keyframes float {

    0%,
    100% {
        transform: translateY(0px);
    }

    50% {
        transform: translateY(-20px);
    }
}

/* Scroll Indicator */
.scroll-indicator {
    position: absolute;
    bottom: 2rem;
    left: 50%;
    transform: translateX(-50%);
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 0.5rem;
    opacity: 0.7;
    z-index: 2;
}

.scroll-indicator span {
    font-size: 0.75rem;
    text-transform: uppercase;
    letter-spacing: 1px;
    font-weight: 600;
    color: var(--text-muted);
}

.scroll-line {
    width: 2px;
    height: 40px;
    background: linear-gradient(to bottom, var(--primary), transparent);
    animation: scrollPulse 2s ease-in-out infinite;
}

@keyframes scrollPulse {

    0%,
    100% {
        opacity: 0.4;
        transform: translateY(0);
    }

    50% {
        opacity: 1;
        transform: translateY(10px);
    }
}

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

.section-header {
    text-align: center;
    max-width: 700px;
    margin: 0 auto 4rem;
}

.section-label {
    display: inline-block;
    padding: 0.5rem 1.25rem;
    background: rgba(59, 130, 246, 0.1);
    border: 1px solid rgba(59, 130, 246, 0.3);
    color: var(--primary-light);
    border-radius: var(--radius-full);
    font-size: 0.8rem;
    font-weight: 800;
    text-transform: uppercase;
    letter-spacing: 1px;
    margin-bottom: 1rem;
}

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

.section-subtitle {
    font-size: 1.15rem;
    color: var(--text-secondary);
    line-height: 1.8;
}

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

.services {
    padding: var(--spacing-xl) 0;
    background: var(--bg-primary);
}

.services-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(340px, 1fr));
    gap: 2rem;
}

.service-card {
    background: rgba(22, 24, 29, 0.6);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    padding: 3rem;
    border-radius: var(--radius-lg);
    position: relative;
    overflow: hidden;
    transition: all 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275), background 0.3s ease;
    border: 1px solid var(--border);
    box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.05);
}

[data-theme="light"] .service-card {
    background: var(--bg-card);
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.06), 0 1px 3px rgba(0, 0, 0, 0.04);
    border: 1px solid rgba(0, 0, 0, 0.06);
}

[data-theme="light"] .service-card:hover {
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.1), 0 4px 12px rgba(0, 0, 0, 0.08);
    border-color: rgba(59, 130, 246, 0.4);
    background: var(--bg-card);
}

[data-theme="light"] .service-card::after {
    background: radial-gradient(circle at var(--mouse-x, 50%) var(--mouse-y, 50%),
            rgba(59, 130, 246, 0.08) 0%, transparent 60%);
}

.service-card:hover {
    transform: translateY(-12px) scale(1.02);
    box-shadow: 0 25px 80px var(--shadow-lg),
        0 0 40px rgba(59, 130, 246, 0.15),
        inset 0 1px 0 rgba(255, 255, 255, 0.1);
    border-color: transparent;
    background: linear-gradient(var(--bg-card), var(--bg-card)) padding-box,
        linear-gradient(135deg, var(--primary), var(--accent-purple), var(--accent)) border-box;
}

.service-card::after {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: radial-gradient(circle at var(--mouse-x, 50%) var(--mouse-y, 50%),
            rgba(59, 130, 246, 0.15) 0%, transparent 60%);
    pointer-events: none;
    opacity: 0;
    transition: opacity var(--duration-normal) ease;
    border-radius: var(--radius-lg);
}

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

.service-card.featured {
    background: var(--gradient-primary);
    color: var(--text-primary);
    border-color: var(--primary);
}

.service-card.featured .service-number,
.service-card.featured .service-title,
.service-card.featured .service-description,
.service-card.featured .service-features li {
    color: var(--text-primary);
}

.service-card.featured .service-decoration {
    background: rgba(255, 255, 255, 0.1);
}

.service-number {
    font-family: var(--font-display);
    font-size: 1.1rem;
    font-weight: 800;
    color: var(--primary-light);
    margin-bottom: 1.5rem;
    letter-spacing: 0.5px;
}

.service-title {
    font-family: var(--font-display);
    font-size: 1.85rem;
    font-weight: 800;
    margin-bottom: 1rem;
    color: var(--text-primary);
}

.service-description {
    color: var(--text-secondary);
    margin-bottom: 2rem;
    line-height: 1.8;
    font-size: 1rem;
}

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

.service-features li {
    padding: 0.85rem 0;
    color: var(--text-secondary);
    border-bottom: 1px solid var(--border);
    font-size: 0.95rem;
    font-weight: 500;
    transition: all 0.3s ease;
}

.service-features li:last-child {
    border-bottom: none;
}

.service-card:hover .service-features li {
    padding-left: 0.75rem;
}

.service-card.featured .service-features li {
    border-bottom-color: rgba(255, 255, 255, 0.2);
}

.service-decoration {
    position: absolute;
    bottom: -60px;
    right: -60px;
    width: 180px;
    height: 180px;
    background: radial-gradient(circle, rgba(59, 130, 246, 0.2) 0%, transparent 70%);
    border-radius: 50%;
    z-index: 0;
}

/* =========================
   Stats Section
   ========================= */

.stats {
    padding: var(--spacing-xl) 0;
    background: var(--bg-secondary);
    position: relative;
}

.stats::before {
    content: '';
    position: absolute;
    inset: 0;
    background: radial-gradient(circle at 50% 50%, rgba(59, 130, 246, 0.1) 0%, transparent 70%);
    pointer-events: none;
}

.stats-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
    gap: 3rem;
    text-align: center;
    position: relative;
    z-index: 1;
}

.stat-number {
    font-family: var(--font-display);
    font-size: clamp(2.75rem, 5vw, 4.5rem);
    font-weight: 900;
    background: var(--gradient-primary);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    margin-bottom: 0.75rem;
    line-height: 1;
}

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

/* =========================
   About Section
   ========================= */

.about {
    padding: var(--spacing-xl) 0;
    background: var(--bg-primary);
}

.about-layout {
    display: grid;
    grid-template-columns: 1.2fr 1fr;
    gap: 5rem;
    align-items: center;
}

.about-content .section-label {
    text-align: left;
}

.about-content .section-title {
    text-align: left;
    margin-bottom: 2rem;
}

.about-text {
    font-size: 1.1rem;
    line-height: 1.9;
    color: var(--text-secondary);
    margin-bottom: 1.75rem;
}

.about-values {
    margin-top: 3rem;
    display: flex;
    flex-direction: column;
    gap: 2.25rem;
}

.value-item {
    display: flex;
    gap: 1.5rem;
    align-items: flex-start;
    padding: 1.5rem;
    background: rgba(22, 24, 29, 0.6);
    backdrop-filter: blur(20px);
    border-radius: var(--radius-md);
    border: 1px solid var(--border);
    transition: all 0.3s ease;
}

.value-item:hover {
    border-color: var(--primary);
    transform: translateX(8px);
    box-shadow: 0 8px 24px var(--shadow);
}

.value-icon {
    font-size: 2.25rem;
    flex-shrink: 0;
}

.value-item h4 {
    font-family: var(--font-display);
    font-size: 1.2rem;
    margin-bottom: 0.5rem;
    color: var(--text-primary);
    font-weight: 700;
}

.value-item p {
    color: var(--text-secondary);
    font-size: 0.975rem;
    line-height: 1.6;
}

[data-theme="light"] .value-item {
    background: var(--bg-card);
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.06), 0 1px 3px rgba(0, 0, 0, 0.04);
    border: 1px solid rgba(0, 0, 0, 0.06);
}

[data-theme="light"] .value-item:hover {
    box-shadow: 0 8px 30px rgba(0, 0, 0, 0.1);
    border-color: rgba(59, 130, 246, 0.3);
}

/* About Visual Shapes */
.about-visual {
    position: relative;
    height: 500px;
}

.visual-shape {
    position: absolute;
    border-radius: var(--radius-xl);
    background: var(--gradient-primary);
    opacity: 0.15;
    filter: blur(40px);
}

.shape-1 {
    width: 250px;
    height: 250px;
    top: 0;
    left: 0;
    animation: float 4s ease-in-out infinite;
}

.shape-2 {
    width: 200px;
    height: 200px;
    top: 40%;
    right: 0;
    animation: float 5s ease-in-out infinite;
    animation-delay: 0.5s;
}

.shape-3 {
    width: 180px;
    height: 180px;
    bottom: 0;
    left: 30%;
    animation: float 6s ease-in-out infinite;
    animation-delay: 1s;
}

/* =========================
   Contact Section
   ========================= */

.contact {
    padding: var(--spacing-xl) 0;
    background: var(--bg-secondary);
}

.contact-layout {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 5rem;
    align-items: start;
}

.contact-info .section-label {
    text-align: left;
}

.contact-info .section-title {
    text-align: left;
    margin-bottom: 1.5rem;
}

.contact-description {
    font-size: 1.1rem;
    color: var(--text-secondary);
    line-height: 1.9;
    margin-bottom: 3rem;
}

.contact-details {
    display: flex;
    flex-direction: column;
    gap: 2rem;
}

.contact-item {
    display: flex;
    flex-direction: column;
    gap: 0.75rem;
    padding: 1.5rem;
    background: rgba(22, 24, 29, 0.6);
    backdrop-filter: blur(20px);
    border-radius: var(--radius-md);
    border: 1px solid var(--border);
    transition: all 0.3s ease;
}

.contact-item:hover {
    border-color: var(--primary);
    box-shadow: 0 4px 16px var(--shadow);
}

.contact-label {
    font-size: 0.8rem;
    font-weight: 800;
    text-transform: uppercase;
    letter-spacing: 1px;
    color: var(--primary-light);
}

.contact-item a {
    font-size: 1.3rem;
    color: var(--text-primary);
    text-decoration: none;
    font-weight: 700;
    transition: color 0.3s ease;
}

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

[data-theme="light"] .contact-item {
    background: var(--bg-card);
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.06), 0 1px 3px rgba(0, 0, 0, 0.04);
    border: 1px solid rgba(0, 0, 0, 0.06);
}

[data-theme="light"] .contact-item:hover {
    box-shadow: 0 8px 30px rgba(0, 0, 0, 0.1);
    border-color: rgba(59, 130, 246, 0.3);
}

[data-theme="light"] .contact-label {
    color: var(--primary);
}

/* Contact Form */
.contact-form-wrapper {
    background: rgba(22, 24, 29, 0.6);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    padding: 3rem;
    border-radius: var(--radius-lg);
    box-shadow: 0 8px 32px var(--shadow-lg), inset 0 1px 0 rgba(255, 255, 255, 0.05);
    border: 1px solid var(--border);
}

.contact-form {
    display: flex;
    flex-direction: column;
    gap: 1.75rem;
}

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

.form-group label {
    font-weight: 700;
    font-size: 0.95rem;
    color: var(--text-primary);
}

.form-group input,
.form-group textarea {
    padding: 1.1rem;
    border: 1px solid var(--border);
    border-radius: var(--radius-sm);
    font-family: var(--font-body);
    font-size: 1rem;
    background: rgba(0, 0, 0, 0.3);
    transition: all 0.3s ease;
    color: var(--text-primary);
}

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

.form-group input:focus,
.form-group textarea:focus {
    outline: none;
    border-color: var(--primary);
    box-shadow: 0 0 0 3px rgba(59, 130, 246, 0.2);
    background: rgba(0, 0, 0, 0.4);
}

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

.contact-form .btn-primary {
    width: 100%;
    cursor: pointer;
    border: none;
    font-size: 1.05rem;
}

[data-theme="light"] .contact-form-wrapper {
    background: var(--bg-card);
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.08), 0 1px 3px rgba(0, 0, 0, 0.05);
    border: 1px solid rgba(0, 0, 0, 0.08);
}

[data-theme="light"] .form-group input,
[data-theme="light"] .form-group textarea {
    background: var(--bg-secondary);
    border: 1px solid rgba(0, 0, 0, 0.1);
    color: var(--text-primary);
}

[data-theme="light"] .form-group input:focus,
[data-theme="light"] .form-group textarea:focus {
    background: var(--bg-card);
    border-color: var(--primary);
}

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

.footer {
    padding: 5rem 0 3rem;
    background: var(--bg-secondary);
    color: var(--text-primary);
    border-top: 1px solid var(--border);
}

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

.footer-logo {
    height: 42px;
    filter: var(--logo-filter);
    margin-bottom: 1.5rem;
}

.footer-brand p {
    color: var(--text-secondary);
    line-height: 1.8;
    font-size: 1rem;
}

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

.footer-column h4 {
    font-family: var(--font-display);
    font-size: 1.2rem;
    margin-bottom: 1.25rem;
    color: var(--text-primary);
    font-weight: 700;
}

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

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

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

.footer-column ul li a:hover {
    color: var(--primary);
    padding-left: 0.5rem;
}

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

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

/* =========================
   Animations
   ========================= */

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

    to {
        opacity: 1;
        transform: translateY(0);
    }
}

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

.mobile-menu-toggle {
    display: none;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    width: 44px;
    height: 44px;
    background: transparent;
    border: none;
    cursor: pointer;
    z-index: 1001;
    gap: 5px;
    padding: 0;
}

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

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

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

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

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

@media (max-width: 1024px) {
    .hero .container {
        grid-template-columns: 1fr;
        gap: 3rem;
        text-align: center;
    }

    .hero-content {
        max-width: 600px;
        margin: 0 auto;
    }

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

    .hero-visual {
        order: -1;
        height: 300px;
        margin: 0 auto;
    }

    .tech-stack-card {
        position: relative;
        top: 0;
        right: 0;
        margin: 0 auto 2rem;
        max-width: 280px;
    }

    .floating-card {
        display: none;
    }

    .about-layout,
    .contact-layout {
        grid-template-columns: 1fr;
        gap: 3rem;
    }

    .about-visual {
        order: -1;
        height: 280px;
    }

    .section-header {
        max-width: 100%;
    }
}

@media (max-width: 768px) {
    .container {
        padding: 0 1.25rem;
    }

    .nav-container {
        padding: 1rem 1.25rem;
    }

    /* Mobile Navigation */
    .nav-links {
        position: fixed;
        top: 0;
        right: -100%;
        width: 80%;
        max-width: 320px;
        height: 100vh;
        background: var(--bg-secondary);
        border-left: 1px solid var(--border);
        flex-direction: column;
        justify-content: flex-start;
        align-items: flex-start;
        padding: 100px 2rem 2rem;
        gap: 0;
        transition: right 0.3s ease;
        z-index: 999;
        box-shadow: -10px 0 40px rgba(0, 0, 0, 0.3);
    }

    .nav-links.active {
        right: 0;
    }

    .nav-links li {
        width: 100%;
        border-bottom: 1px solid var(--border);
    }

    .nav-links a {
        display: block;
        padding: 1.25rem 0;
        font-size: 1.1rem;
    }

    .nav-links a::after {
        display: none;
    }

    .nav-cta {
        margin-top: 1rem;
        text-align: center;
        width: 100%;
    }

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

    /* Mobile Overlay */
    .mobile-overlay {
        position: fixed;
        top: 0;
        left: 0;
        width: 100%;
        height: 100%;
        background: rgba(0, 0, 0, 0.5);
        z-index: 998;
        opacity: 0;
        visibility: hidden;
        transition: all 0.3s ease;
    }

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

    .hero {
        padding: 100px 0 60px;
        min-height: auto;
    }

    .hero-title {
        font-size: clamp(2rem, 8vw, 2.75rem);
    }

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

    .hero-cta {
        flex-direction: column;
        gap: 1rem;
    }

    .btn-primary,
    .btn-secondary {
        width: 100%;
        text-align: center;
        padding: 1rem 2rem;
    }

    .hero-visual {
        height: 250px;
    }

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

    .service-card {
        padding: 2rem;
    }

    .service-title {
        font-size: 1.5rem;
    }

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

    .stat-number {
        font-size: clamp(2rem, 6vw, 3rem);
    }

    .section-title {
        font-size: clamp(1.75rem, 5vw, 2.5rem);
    }

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

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

    :root {
        --spacing-lg: 3rem;
        --spacing-xl: 4rem;
    }

    /* Hide cursor glow on touch devices */
    .cursor-glow {
        display: none;
    }
}

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

    .hero-title {
        font-size: 1.75rem;
    }

    .hero-badge {
        font-size: 0.7rem;
        padding: 0.4rem 1rem;
    }

    .tech-stack-card {
        padding: 1.25rem;
        min-width: auto;
        width: 100%;
    }

    .tech-item {
        font-size: 0.75rem;
        padding: 0.4rem 0.75rem;
    }

    .service-card {
        padding: 1.5rem;
    }

    .stats-grid {
        grid-template-columns: 1fr;
        gap: 1.5rem;
    }

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

    .contact-form {
        padding: 1.5rem;
    }

    .value-item {
        padding: 1.5rem;
    }
}

/* Touch device optimizations */
@media (hover: none) and (pointer: coarse) {
    .cursor-glow {
        display: none !important;
    }

    .service-card:hover {
        transform: none;
    }

    .btn-primary:hover,
    .btn-secondary:hover {
        transform: none;
    }

    .nav-cta:hover {
        transform: none;
    }
}