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

:root {
    /* Professional Color Palette - Deep Navy & Teal */
    --primary-color: #0ea5e9;           /* Professional Cyan/Teal */
    --primary-dark: #0284c7;            /* Darker Teal */
    --primary-light: #38bdf8;           /* Light Teal */
    --secondary-color: #f59e0b;         /* Professional Amber/Gold */
    --accent-color: #8b5cf6;            /* Purple accent */
    --success-color: #10b981;           /* Emerald green */
    
    /* Professional Dark Backgrounds */
    --dark-bg: #0a0e27;                 /* Deep navy background */
    --dark-surface: #151b33;            /* Slightly lighter navy */
    --dark-elevated: #1e2640;           /* Elevated surfaces */
    
    /* Professional Text Colors */
    --text-primary: #f8fafc;            /* Almost white */
    --text-secondary: #cbd5e1;          /* Light gray */
    --text-muted: #94a3b8;              /* Muted gray */
    --text-accent: #e0e7ff;             /* Soft accent text */
    
    /* Professional Gradients */
    --gradient-1: linear-gradient(135deg, #0ea5e9 0%, #0284c7 50%, #0369a1 100%);
    --gradient-2: linear-gradient(135deg, #8b5cf6 0%, #6366f1 50%, #4f46e5 100%);
    --gradient-3: linear-gradient(135deg, #0ea5e9 0%, #06b6d4 50%, #14b8a6 100%);
    --gradient-hero: linear-gradient(135deg, #0ea5e9 0%, #8b5cf6 50%, #f59e0b 100%);
    --gradient-accent: linear-gradient(135deg, #f59e0b 0%, #f97316 100%);
    
    /* Professional Shadows */
    --shadow-sm: 0 2px 4px rgba(14, 165, 233, 0.1);
    --shadow-md: 0 4px 6px rgba(14, 165, 233, 0.15);
    --shadow-lg: 0 10px 25px rgba(14, 165, 233, 0.2);
    --shadow-xl: 0 20px 40px rgba(14, 165, 233, 0.3);
    --shadow-glow: 0 0 20px rgba(14, 165, 233, 0.4);
    
    /* Smooth transition variables */
    --transition-fast: 0.2s cubic-bezier(0.4, 0, 0.2, 1);
    --transition-base: 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    --transition-smooth: 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    --transition-slow: 0.6s cubic-bezier(0.4, 0, 0.2, 1);
    --ease-out-smooth: cubic-bezier(0.16, 1, 0.3, 1);
    --ease-in-out-smooth: cubic-bezier(0.4, 0, 0.2, 1);
}

/* Screen reader only class for accessibility */
.sr-only {
    position: absolute;
    width: 1px;
    height: 1px;
    padding: 0;
    margin: -1px;
    overflow: hidden;
    clip: rect(0, 0, 0, 0);
    white-space: nowrap;
    border-width: 0;
}

html {
    scroll-behavior: smooth;
    scroll-padding-top: 80px; /* Account for fixed navbar */
}

/* Ensure page starts at top on load */
html, body {
    scroll-behavior: auto; /* Disable smooth scroll on initial load */
}

/* Re-enable smooth scroll after page load */
html.loaded, body.loaded {
    scroll-behavior: smooth;
}

body {
    font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
    background-color: var(--dark-bg);
    color: var(--text-primary);
    line-height: 1.6;
    overflow-x: hidden;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
    text-rendering: optimizeLegibility;
    word-wrap: break-word;
    overflow-wrap: break-word;
    word-break: break-word;
    hyphens: auto;
}

/* Global smooth transitions for common properties */
* {
    transition-property: background-color, border-color, color, fill, stroke, opacity, box-shadow, transform, filter, backdrop-filter;
    transition-timing-function: cubic-bezier(0.4, 0, 0.2, 1);
    transition-duration: 0.3s;
}

/* Disable transitions for performance-critical elements during initial load */
.loading * {
    transition: none !important;
    animation: none !important;
}

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

/* Mobile-first improvements */
@media (max-width: 480px) {
    .container {
        padding: 0 16px;
    }
}

/* Navigation */
.navbar {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    background: rgba(15, 23, 42, 0.85);
    backdrop-filter: blur(20px) saturate(180%);
    -webkit-backdrop-filter: blur(20px) saturate(180%);
    z-index: 1000;
    padding: 1.25rem 0;
    transition: all var(--transition-smooth), backdrop-filter var(--transition-base), background-color var(--transition-smooth);
    border-bottom: 1px solid rgba(255, 255, 255, 0.08);
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.1);
    will-change: padding, box-shadow, background-color, backdrop-filter;
}

.navbar::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(180deg, rgba(14, 165, 233, 0.05) 0%, transparent 100%);
    opacity: 0;
    transition: opacity var(--transition-smooth);
    pointer-events: none;
}

.navbar.scrolled {
    padding: 0.875rem 0;
    background: rgba(15, 23, 42, 0.95);
    backdrop-filter: blur(24px) saturate(180%);
    -webkit-backdrop-filter: blur(24px) saturate(180%);
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.2), 0 0 0 1px rgba(255, 255, 255, 0.05);
    border-bottom: 1px solid rgba(255, 255, 255, 0.12);
}

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

.nav-wrapper {
    display: flex;
    justify-content: space-between;
    align-items: center;
    position: relative;
    z-index: 1;
}

.logo {
    display: flex;
    align-items: center;
    gap: 0.875rem;
    font-size: 1.5rem;
    font-weight: 700;
    color: var(--text-primary);
    text-decoration: none;
    transition: all var(--transition-base);
    position: relative;
    padding: 0.25rem 0;
}

a.logo {
    text-decoration: none;
    color: inherit;
}

a.logo:hover {
    opacity: 1;
}

.logo:hover {
    transform: translateY(-2px);
}

.logo:active {
    transform: translateY(0);
}

.logo-icon-img {
    width: 42px;
    height: 42px;
    display: block;
    animation: logoPulse 4s ease-in-out infinite;
    filter: drop-shadow(0 2px 8px rgba(14, 165, 233, 0.4));
    transition: all var(--transition-smooth);
    will-change: transform, filter;
    border-radius: 10px;
}

.logo:hover .logo-icon-img {
    filter: drop-shadow(0 4px 16px rgba(14, 165, 233, 0.6)) drop-shadow(0 0 20px rgba(245, 158, 11, 0.3));
    transform: rotate(5deg) scale(1.05);
    animation: logoPulseHover 2s ease-in-out infinite;
}

.logo-text {
    background: linear-gradient(135deg, #0ea5e9 0%, #38bdf8 50%, #f59e0b 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    letter-spacing: -0.5px;
    transition: all var(--transition-base);
    background-size: 200% 200%;
    animation: textShine 3s ease-in-out infinite;
    font-weight: 800;
}

.logo:hover .logo-text {
    background-position: 100% 50%;
    filter: brightness(1.15);
    transform: scale(1.02);
}

@keyframes logoPulse {
    0%, 100% { 
        transform: scale(1);
        filter: drop-shadow(0 2px 8px rgba(14, 165, 233, 0.4));
    }
    50% { 
        transform: scale(1.03);
        filter: drop-shadow(0 3px 10px rgba(14, 165, 233, 0.5));
    }
}

@keyframes logoPulseHover {
    0%, 100% { 
        transform: rotate(5deg) scale(1.05);
        filter: drop-shadow(0 4px 16px rgba(14, 165, 233, 0.6)) drop-shadow(0 0 20px rgba(245, 158, 11, 0.3));
    }
    50% { 
        transform: rotate(7deg) scale(1.07);
        filter: drop-shadow(0 5px 18px rgba(14, 165, 233, 0.7)) drop-shadow(0 0 25px rgba(245, 158, 11, 0.4));
    }
}

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

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

.nav-menu ul {
    display: flex;
    list-style: none;
    gap: 0.5rem;
    margin: 0;
    padding: 0;
}

.nav-menu li {
    position: relative;
}

.nav-link {
    color: var(--text-secondary);
    text-decoration: none;
    font-weight: 500;
    font-size: 0.95rem;
    padding: 0.625rem 1.125rem;
    border-radius: 8px;
    transition: all var(--transition-base), transform var(--transition-fast);
    position: relative;
    display: inline-block;
    letter-spacing: 0.2px;
}

.nav-link::before {
    content: '';
    position: absolute;
    inset: 0;
    border-radius: 8px;
    background: rgba(14, 165, 233, 0.1);
    opacity: 0;
    transition: opacity var(--transition-base);
    z-index: -1;
}

.nav-link::after {
    content: '';
    position: absolute;
    bottom: 0.375rem;
    left: 50%;
    transform: translateX(-50%);
    width: 0;
    height: 2px;
    background: linear-gradient(90deg, var(--primary-color), var(--primary-light));
    border-radius: 2px;
    transition: width var(--transition-base), left var(--transition-base);
    box-shadow: 0 0 8px rgba(14, 165, 233, 0.5);
}

.nav-link:hover {
    color: var(--text-primary);
    transform: translateY(-1px);
}

.nav-link:hover::before {
    opacity: 1;
}

.nav-link:hover::after {
    width: calc(100% - 2.25rem);
}

.nav-link:active {
    transform: translateY(0);
}

/* Active nav link state */
.nav-link.active {
    color: var(--text-primary);
}

.nav-link.active::before {
    opacity: 1;
    background: rgba(14, 165, 233, 0.15);
}

.nav-link.active::after {
    width: calc(100% - 2.25rem);
}

.hamburger {
    display: none;
    flex-direction: column;
    gap: 5px;
    cursor: pointer;
    padding: 0.5rem;
    border-radius: 8px;
    transition: all var(--transition-base);
    position: relative;
    z-index: 1001;
}

.hamburger:hover {
    background: rgba(255, 255, 255, 0.05);
}

.hamburger:active {
    transform: scale(0.95);
}

.hamburger span {
    width: 26px;
    height: 3px;
    background: var(--text-primary);
    transition: all var(--transition-base);
    border-radius: 2px;
    transform-origin: center;
}

.hamburger:hover span {
    background: var(--primary-color);
    box-shadow: 0 0 8px rgba(14, 165, 233, 0.5);
}

/* Hero Section */
.hero {
    position: relative;
    min-height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: hidden;
    padding-top: 80px;
    background: 
        radial-gradient(ellipse at top, rgba(14, 165, 233, 0.15) 0%, transparent 50%),
        radial-gradient(ellipse at bottom right, rgba(139, 92, 246, 0.1) 0%, transparent 50%);
    isolation: isolate;
}

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

.gradient-overlay {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: 
        radial-gradient(circle at 20% 50%, rgba(14, 165, 233, 0.15) 0%, transparent 50%),
        radial-gradient(circle at 80% 80%, rgba(139, 92, 246, 0.15) 0%, transparent 50%),
        radial-gradient(circle at 40% 20%, rgba(245, 158, 11, 0.1) 0%, transparent 50%);
    animation: gradientShift 15s ease infinite;
}

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

.grid-pattern {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background-image: 
        linear-gradient(rgba(14, 165, 233, 0.03) 1px, transparent 1px),
        linear-gradient(90deg, rgba(14, 165, 233, 0.03) 1px, transparent 1px);
    background-size: 50px 50px;
    animation: gridMove 20s linear infinite;
    opacity: 0.5;
}

@keyframes gridMove {
    0% {
        transform: translate(0, 0);
    }
    100% {
        transform: translate(50px, 50px);
    }
}

.animated-shapes {
    position: absolute;
    width: 100%;
    height: 100%;
    overflow: hidden;
}

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

.shape-1 {
    width: 400px;
    height: 400px;
    background: var(--primary-color);
    top: 10%;
    left: 5%;
    animation-delay: 0s;
}

.shape-2 {
    width: 300px;
    height: 300px;
    background: var(--secondary-color);
    top: 50%;
    right: 5%;
    animation-delay: 5s;
}

.shape-3 {
    width: 250px;
    height: 250px;
    background: var(--primary-light);
    bottom: 15%;
    left: 45%;
    animation-delay: 10s;
}

.shape-4 {
    width: 200px;
    height: 200px;
    background: rgba(139, 92, 246, 0.6);
    top: 30%;
    right: 30%;
    animation-delay: 15s;
}

.shape-5 {
    width: 180px;
    height: 180px;
    background: rgba(245, 158, 11, 0.4);
    bottom: 10%;
    right: 20%;
    animation-delay: 20s;
}

@keyframes float {
    0%, 100% {
        transform: translate(0, 0) rotate(0deg) scale(1);
    }
    25% {
        transform: translate(40px, -40px) rotate(90deg) scale(1.1);
    }
    50% {
        transform: translate(-30px, 30px) rotate(180deg) scale(0.9);
    }
    75% {
        transform: translate(30px, 20px) rotate(270deg) scale(1.05);
    }
}

.glow-effect {
    position: absolute;
    border-radius: 50%;
    filter: blur(80px);
    opacity: 0.3;
    animation: glowPulse 8s ease-in-out infinite;
}

.glow-1 {
    width: 500px;
    height: 500px;
    background: var(--primary-color);
    top: -200px;
    right: -200px;
    animation-delay: 0s;
}

.glow-2 {
    width: 400px;
    height: 400px;
    background: rgba(139, 92, 246, 0.8);
    bottom: -150px;
    left: -150px;
    animation-delay: 4s;
}

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

.particles {
    position: absolute;
    width: 100%;
    height: 100%;
    overflow: hidden;
    opacity: 0.6;
}

.particles::before,
.particles::after {
    content: '';
    position: absolute;
    width: 4px;
    height: 4px;
    background: var(--primary-color);
    border-radius: 50%;
    box-shadow: 
        100px 200px var(--primary-color),
        300px 100px var(--primary-light),
        500px 300px var(--secondary-color),
        700px 150px var(--primary-color),
        900px 250px var(--primary-light),
        200px 400px var(--secondary-color),
        600px 450px var(--primary-color),
        800px 350px var(--primary-light),
        400px 500px var(--secondary-color),
        1000px 100px var(--primary-color);
    animation: particlesFloat 20s linear infinite;
}

.particles::after {
    animation-delay: 10s;
    box-shadow: 
        150px 250px var(--primary-light),
        350px 150px var(--primary-color),
        550px 350px var(--secondary-color),
        750px 200px var(--primary-light),
        950px 300px var(--primary-color),
        250px 450px var(--primary-light),
        650px 500px var(--primary-color),
        850px 400px var(--secondary-color),
        450px 550px var(--primary-light),
        1050px 150px var(--primary-color);
}

@keyframes particlesFloat {
    0% {
        transform: translateY(0) translateX(0);
        opacity: 0;
    }
    10% {
        opacity: 1;
    }
    90% {
        opacity: 1;
    }
    100% {
        transform: translateY(-100vh) translateX(50px);
        opacity: 0;
    }
}

.hero-content {
    text-align: center;
    z-index: 1;
    animation: fadeInUp 1s ease-out;
    position: relative;
    width: 100%;
    max-width: 900px;
    margin: 0 auto;
    padding: 0 20px;
    transform: translateZ(0); /* Force hardware acceleration */
    will-change: transform;
}

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

.hero-badge {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.75rem 1.5rem;
    background: rgba(14, 165, 233, 0.1);
    backdrop-filter: blur(10px);
    border: 1px solid rgba(14, 165, 233, 0.2);
    border-radius: 50px;
    font-size: 0.9rem;
    color: var(--text-secondary);
    margin-bottom: 2rem;
    animation: fadeInUp 1s var(--ease-out-smooth) 0.2s both;
    transition: all var(--transition-base), backdrop-filter var(--transition-base);
    position: relative;
    overflow: hidden;
    will-change: transform, background-color, border-color;
}

.hero-badge::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(14, 165, 233, 0.3), transparent);
    transition: left var(--transition-smooth);
}

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

.hero-badge:hover {
    background: rgba(14, 165, 233, 0.15);
    border-color: rgba(14, 165, 233, 0.3);
    transform: translateY(-2px);
}

.badge-icon {
    font-size: 1.2rem;
    animation: sparkle 2s ease-in-out infinite;
}

@keyframes sparkle {
    0%, 100% {
        transform: scale(1) rotate(0deg);
    }
    50% {
        transform: scale(1.2) rotate(180deg);
    }
}

.hero-title {
    font-size: clamp(2.5rem, 6vw, 5rem);
    font-weight: 900;
    margin-bottom: 1.5rem;
    line-height: 1.1;
    letter-spacing: -0.02em;
    transform: translateZ(0); /* Force hardware acceleration */
    will-change: transform, opacity;
    backface-visibility: hidden;
    -webkit-font-smoothing: antialiased;
    text-rendering: optimizeLegibility;
}

.title-line {
    display: block;
    opacity: 0;
    transform: translateY(40px) translateZ(0);
    animation: smoothFadeInUp 1.2s cubic-bezier(0.16, 1, 0.3, 1) forwards;
    margin-bottom: 0.5rem;
    will-change: transform, opacity;
    backface-visibility: hidden; /* Prevent flickering */
    -webkit-font-smoothing: antialiased; /* Better text rendering */
}

.title-line:nth-child(1) {
    animation-delay: 0.2s;
}

.title-line:nth-child(2) {
    animation-delay: 0.5s;
}

@keyframes smoothFadeInUp {
    0% {
        opacity: 0;
        transform: translateY(40px) translateZ(0) scale(0.95);
    }
    60% {
        opacity: 0.8;
        transform: translateY(5px) translateZ(0) scale(1);
    }
    100% {
        opacity: 1;
        transform: translateY(0) translateZ(0) scale(1);
    }
}

.title-highlight {
    background: linear-gradient(135deg, #ffffff 0%, #cbd5e1 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    position: relative;
    display: inline-block;
    transform: translateZ(0); /* Hardware acceleration */
}

.title-gradient {
    background: linear-gradient(135deg, #0ea5e9 0%, #8b5cf6 50%, #f59e0b 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    background-size: 200% 200%;
    animation: smoothGradientShine 5s ease-in-out infinite;
    display: inline-block;
    transform: translateZ(0); /* Hardware acceleration */
    will-change: background-position;
    backface-visibility: hidden;
}

@keyframes smoothGradientShine {
    0% {
        background-position: 0% 50%;
    }
    50% {
        background-position: 100% 50%;
    }
    100% {
        background-position: 0% 50%;
    }
}

.hero-subtitle {
    font-size: clamp(1rem, 2vw, 1.35rem);
    color: var(--text-secondary);
    margin-bottom: 2.5rem;
    max-width: 700px;
    margin-left: auto;
    margin-right: auto;
    line-height: 1.7;
    animation: fadeInUp 1s var(--ease-out-smooth) 0.5s both;
}

.hero-buttons {
    display: flex;
    gap: 1rem;
    justify-content: center;
    flex-wrap: wrap;
    animation: fadeInUp 1s var(--ease-out-smooth) 0.7s both;
    margin-bottom: 3rem;
}

.hero-buttons .btn {
    display: inline-flex;
    align-items: center;
    gap: 0.75rem;
    padding: 1.125rem 2.25rem;
    font-size: 1.05rem;
    position: relative;
    overflow: hidden;
    transition: all var(--transition-base), transform var(--transition-fast), box-shadow var(--transition-base);
    will-change: transform, box-shadow;
}

.hero-buttons .btn svg {
    transition: transform var(--transition-base);
}

.hero-buttons .btn:hover svg {
    transform: translateX(5px);
}

.hero-buttons .btn-primary {
    background: linear-gradient(135deg, var(--primary-color) 0%, var(--primary-dark) 100%);
    box-shadow: 0 10px 30px rgba(14, 165, 233, 0.4), 0 0 0 0 rgba(14, 165, 233, 0.7);
    position: relative;
    overflow: hidden;
}

.hero-buttons .btn-primary:hover {
    box-shadow: 0 15px 40px rgba(14, 165, 233, 0.6), 0 0 0 8px rgba(14, 165, 233, 0.1);
    transform: translateY(-3px) scale(1.02);
}

.hero-buttons .btn-primary:active {
    transform: translateY(-1px) scale(0.98);
    transition: transform var(--transition-fast);
}

.hero-buttons .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 var(--transition-smooth);
}

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

.hero-buttons .btn-secondary {
    background: rgba(255, 255, 255, 0.05);
    backdrop-filter: blur(10px);
    border: 2px solid rgba(255, 255, 255, 0.2);
    position: relative;
    overflow: hidden;
}

.hero-buttons .btn-secondary::before {
    content: '';
    position: absolute;
    top: 50%;
    left: 50%;
    width: 0;
    height: 0;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.1);
    transform: translate(-50%, -50%);
    transition: width var(--transition-slow), height var(--transition-slow);
}

.hero-buttons .btn-secondary:hover::before {
    width: 300px;
    height: 300px;
}

.hero-buttons .btn-secondary:hover {
    background: rgba(255, 255, 255, 0.1);
    border-color: rgba(255, 255, 255, 0.3);
    transform: translateY(-3px) scale(1.02);
    box-shadow: 0 10px 30px rgba(255, 255, 255, 0.1);
}

.hero-buttons .btn-secondary:active {
    transform: translateY(-1px) scale(0.98);
    transition: transform var(--transition-fast);
}

.hero-features {
    display: flex;
    gap: 1.5rem;
    justify-content: center;
    flex-wrap: wrap;
    animation: fadeInUp 1s var(--ease-out-smooth) 0.9s both;
}

.feature-badge {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.6rem 1.25rem;
    background: rgba(255, 255, 255, 0.05);
    backdrop-filter: blur(10px);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 50px;
    font-size: 0.85rem;
    color: var(--text-secondary);
    transition: all var(--transition-base), backdrop-filter var(--transition-base);
    will-change: transform, background-color, border-color;
}

.feature-badge:hover {
    background: rgba(255, 255, 255, 0.08);
    border-color: rgba(14, 165, 233, 0.3);
    color: var(--text-primary);
    transform: translateY(-2px);
}

.feature-badge svg {
    color: var(--primary-color);
    width: 14px;
    height: 14px;
}

.btn {
    padding: 1rem 2rem;
    border-radius: 8px;
    font-weight: 600;
    text-decoration: none;
    transition: all var(--transition-base), transform var(--transition-fast), box-shadow var(--transition-base);
    display: inline-block;
    border: none;
    cursor: pointer;
    font-size: 1rem;
    will-change: transform, box-shadow;
}

.btn-primary {
    background: var(--primary-color);
    color: var(--text-primary);
    box-shadow: 0 4px 15px rgba(14, 165, 233, 0.4);
}

.btn-primary:hover {
    background: var(--primary-dark);
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(14, 165, 233, 0.6);
}

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

.btn-secondary:hover {
    background: var(--primary-color);
    transform: translateY(-2px);
}

.btn-full {
    width: 100%;
}

.hero-stats {
    display: flex;
    justify-content: center;
    gap: 3rem;
    margin-top: 6rem;
    flex-wrap: wrap;
    animation: fadeInUp 1s var(--ease-out-smooth) 1.1s both;
    padding: 2rem 0;
}

.stat-item {
    text-align: center;
    padding: 2rem 2.5rem;
    background: rgba(255, 255, 255, 0.03);
    backdrop-filter: blur(10px);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 20px;
    transition: all var(--transition-smooth), transform var(--transition-base), box-shadow var(--transition-base), border-color var(--transition-base), backdrop-filter var(--transition-base);
    position: relative;
    overflow: hidden;
    min-width: 180px;
    will-change: transform, box-shadow, border-color;
}

.stat-item::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 3px;
    background: linear-gradient(90deg, var(--primary-color), var(--primary-light));
    transform: scaleX(0);
    transition: transform var(--transition-base);
    transform-origin: left;
}

.stat-item:hover {
    transform: translateY(-8px);
    background: rgba(255, 255, 255, 0.05);
    border-color: rgba(14, 165, 233, 0.3);
    box-shadow: 0 10px 30px rgba(14, 165, 233, 0.2);
}

.stat-item:hover::before {
    transform: scaleX(1);
}

.stat-icon {
    font-size: 2rem;
    margin-bottom: 0.75rem;
    display: block;
    animation: float-icon 3s ease-in-out infinite;
    filter: drop-shadow(0 4px 8px rgba(14, 165, 233, 0.3));
}

.stat-item:nth-child(1) .stat-icon {
    animation-delay: 0s;
}

.stat-item:nth-child(2) .stat-icon {
    animation-delay: 0.5s;
}

.stat-item:nth-child(3) .stat-icon {
    animation-delay: 1s;
}

@keyframes float-icon {
    0%, 100% {
        transform: translateY(0) rotate(0deg);
    }
    50% {
        transform: translateY(-10px) rotate(5deg);
    }
}

.stat-number {
    font-size: 3.5rem;
    font-weight: 900;
    background: linear-gradient(135deg, var(--primary-color) 0%, var(--primary-light) 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    margin-bottom: 0.5rem;
    line-height: 1;
    display: block;
}

.stat-label {
    color: var(--text-secondary);
    font-size: 0.95rem;
    text-transform: uppercase;
    letter-spacing: 1.5px;
    font-weight: 600;
    margin-top: 0.5rem;
}

.scroll-indicator {
    position: absolute;
    bottom: 2rem;
    left: 50%;
    transform: translateX(-50%);
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 0.75rem;
    z-index: 10;
}

.scroll-text {
    font-size: 0.85rem;
    color: var(--text-muted);
    text-transform: uppercase;
    letter-spacing: 2px;
    animation: fadeInOut 3s ease-in-out infinite;
}

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

.mouse {
    width: 32px;
    height: 52px;
    border: 2px solid var(--text-secondary);
    border-radius: 18px;
    position: relative;
    animation: bounce 2s infinite;
}

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

.mouse::before {
    content: '';
    position: absolute;
    top: 12px;
    left: 50%;
    transform: translateX(-50%);
    width: 5px;
    height: 10px;
    background: var(--primary-color);
    border-radius: 3px;
    animation: scroll 2s infinite;
    box-shadow: 0 0 10px rgba(14, 165, 233, 0.5);
}

@keyframes scroll {
    0% {
        opacity: 1;
        transform: translateX(-50%) translateY(0);
    }
    100% {
        opacity: 0;
        transform: translateX(-50%) translateY(20px);
    }
}

/* Section Styles */
section {
    padding: 6rem 0;
}

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

.section-tag {
    display: inline-block;
    padding: 0.5rem 1.5rem;
    background: rgba(99, 102, 241, 0.1);
    color: var(--primary-light);
    border-radius: 50px;
    font-size: 0.9rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 1px;
    margin-bottom: 1rem;
}

.section-title {
    font-size: clamp(2rem, 4vw, 3rem);
    font-weight: 700;
    margin-bottom: 1rem;
}

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

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

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

.service-card {
    background: rgba(30, 41, 59, 0.5);
    padding: 2.5rem;
    border-radius: 16px;
    border: 1px solid rgba(255, 255, 255, 0.1);
    transition: all var(--transition-smooth), transform var(--transition-base), box-shadow var(--transition-base), border-color var(--transition-base);
    position: relative;
    overflow: hidden;
    will-change: transform, box-shadow, border-color;
}

.service-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 4px;
    background: var(--gradient-1);
    transform: scaleX(0);
    transition: transform var(--transition-base);
    transform-origin: left;
}

.service-card:hover {
    transform: translateY(-10px);
    border-color: var(--primary-color);
    box-shadow: var(--shadow-xl);
}

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

.service-icon {
    width: 60px;
    height: 60px;
    background: rgba(14, 165, 233, 0.1);
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 1.5rem;
    color: var(--primary-color);
    transition: all var(--transition-base), transform var(--transition-base);
    will-change: transform, background-color, color;
}

.service-card:hover .service-icon {
    background: var(--primary-color);
    color: var(--text-primary);
    transform: rotate(5deg) scale(1.1);
}

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

.service-card h3 {
    font-size: 1.5rem;
    margin-bottom: 1rem;
    font-weight: 600;
}

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

.service-link {
    color: var(--primary-color);
    text-decoration: none;
    font-weight: 600;
    transition: all var(--transition-base), transform var(--transition-fast);
    display: inline-block;
    will-change: transform;
}

.service-link:hover {
    transform: translateX(5px);
}

/* Technologies Section */
.technologies {
    background: var(--dark-bg);
    position: relative;
    overflow: hidden;
}

.technologies::before {
    content: '';
    position: absolute;
    top: -50%;
    right: -10%;
    width: 500px;
    height: 500px;
    background: radial-gradient(circle, rgba(14, 165, 233, 0.1) 0%, transparent 70%);
    border-radius: 50%;
    animation: pulse-glow 4s ease-in-out infinite;
}

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

.tech-item {
    background: rgba(30, 41, 59, 0.4);
    padding: 2.5rem 2rem;
    border-radius: 20px;
    border: 1px solid rgba(255, 255, 255, 0.1);
    text-align: center;
    transition: all var(--transition-smooth), transform var(--transition-base), box-shadow var(--transition-base);
    position: relative;
    overflow: hidden;
    will-change: transform, box-shadow, border-color;
}

.tech-item::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 4px;
    background: var(--gradient-1);
    transform: scaleX(0);
    transition: transform var(--transition-base);
    transform-origin: left;
}

.tech-item:hover {
    transform: translateY(-10px);
    border-color: var(--primary-color);
    box-shadow: 0 15px 40px rgba(14, 165, 233, 0.3);
    background: rgba(30, 41, 59, 0.6);
}

.tech-item:hover::before {
    transform: scaleX(1);
}

.tech-icon {
    width: 70px;
    height: 70px;
    background: rgba(14, 165, 233, 0.1);
    border-radius: 16px;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 1.5rem;
    color: var(--primary-color);
    transition: all var(--transition-base), transform var(--transition-base);
    position: relative;
    will-change: transform, background-color, color;
}

.tech-icon::after {
    content: '';
    position: absolute;
    inset: -2px;
    border-radius: 16px;
    padding: 2px;
    background: linear-gradient(135deg, var(--primary-color), var(--primary-light));
    -webkit-mask: linear-gradient(#fff 0 0) content-box, linear-gradient(#fff 0 0);
    -webkit-mask-composite: xor;
    mask-composite: exclude;
    opacity: 0;
    transition: opacity var(--transition-base);
}

.tech-item:hover .tech-icon {
    background: var(--primary-color);
    color: var(--text-primary);
    transform: rotate(5deg) scale(1.1);
}

.tech-item:hover .tech-icon::after {
    opacity: 1;
}

.tech-icon svg {
    width: 36px;
    height: 36px;
    z-index: 1;
    position: relative;
}

.tech-item h3 {
    font-size: 1.5rem;
    font-weight: 700;
    margin-bottom: 0.75rem;
    color: var(--text-primary);
    background: linear-gradient(135deg, #ffffff 0%, #cbd5e1 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

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

/* About Section */
.about-content {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 4rem;
    align-items: center;
}

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

.about-features {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 1rem;
    margin-top: 2rem;
}

.feature-item {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    color: var(--text-secondary);
}

.feature-check {
    width: 24px;
    height: 24px;
    background: var(--primary-color);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--text-primary);
    font-weight: bold;
    flex-shrink: 0;
}

.about-visual {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 1.5rem;
    position: relative;
}

.visual-card {
    background: var(--gradient-1);
    border-radius: 16px;
    padding: 2rem;
    min-height: 200px;
    display: flex;
    align-items: flex-end;
    position: relative;
    overflow: hidden;
    transition: all 0.3s ease;
}

.visual-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(0, 0, 0, 0.2);
    transition: opacity 0.3s ease;
}

.visual-card:hover::before {
    opacity: 0;
}

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

.card-1 {
    background: var(--gradient-1);
}

.card-2 {
    background: var(--gradient-2);
    grid-column: 2;
    grid-row: 1 / 3;
}

.card-3 {
    background: var(--gradient-3);
}

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

.card-content h4 {
    font-size: 1.5rem;
    margin-bottom: 0.5rem;
    font-weight: 700;
}

.card-content p {
    color: rgba(255, 255, 255, 0.9);
}

/* Portfolio Section */
.portfolio {
    background: var(--dark-surface);
    position: relative;
    overflow: hidden;
}

.portfolio::before {
    content: '';
    position: absolute;
    top: -50%;
    right: -10%;
    width: 500px;
    height: 500px;
    background: radial-gradient(circle, rgba(99, 102, 241, 0.1) 0%, transparent 70%);
    border-radius: 50%;
    animation: pulse-glow 4s ease-in-out infinite;
}

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

.portfolio-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
    gap: 2.5rem;
    position: relative;
    z-index: 1;
}

.portfolio-item {
    border-radius: 24px;
    overflow: hidden;
    position: relative;
    aspect-ratio: 4/5;
    cursor: pointer;
    background: rgba(30, 41, 59, 0.6);
    border: 1px solid rgba(255, 255, 255, 0.1);
    transition: all var(--transition-slow), transform var(--transition-smooth), box-shadow var(--transition-smooth), border-color var(--transition-base);
    transform-style: preserve-3d;
    perspective: 1000px;
    will-change: transform, box-shadow, border-color;
}

.portfolio-item::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(135deg, rgba(99, 102, 241, 0.1) 0%, rgba(139, 92, 246, 0.1) 100%);
    opacity: 0;
    transition: opacity var(--transition-smooth);
    z-index: 1;
}

.portfolio-item:hover {
    transform: translateY(-12px) rotateX(2deg);
    box-shadow: 0 25px 50px rgba(0, 0, 0, 0.4), 0 0 0 1px rgba(99, 102, 241, 0.3);
    border-color: rgba(14, 165, 233, 0.5);
}

.portfolio-item:hover::before {
    opacity: 1;
}

.portfolio-image {
    width: 100%;
    height: 100%;
    position: relative;
    transition: all var(--transition-smooth), transform var(--transition-smooth);
    overflow: hidden;
    will-change: transform;
}

.portfolio-item:nth-child(1) .portfolio-image {
    background: linear-gradient(135deg, #0ea5e9 0%, #0284c7 50%, #0369a1 100%);
}

.portfolio-item:nth-child(2) .portfolio-image {
    background: linear-gradient(135deg, #8b5cf6 0%, #6366f1 50%, #4f46e5 100%);
}

.portfolio-item:nth-child(3) .portfolio-image {
    background: linear-gradient(135deg, #0ea5e9 0%, #06b6d4 50%, #14b8a6 100%);
}

.portfolio-item:nth-child(4) .portfolio-image {
    background: linear-gradient(135deg, #f59e0b 0%, #f97316 50%, #ef4444 100%);
}

.portfolio-item:hover .portfolio-image {
    transform: scale(1.1);
}

.portfolio-badge {
    position: absolute;
    top: 1.5rem;
    left: 1.5rem;
    padding: 0.5rem 1rem;
    background: rgba(15, 23, 42, 0.8);
    backdrop-filter: blur(10px);
    border: 1px solid rgba(255, 255, 255, 0.2);
    border-radius: 50px;
    font-size: 0.75rem;
    font-weight: 600;
    color: var(--text-primary);
    text-transform: uppercase;
    letter-spacing: 0.5px;
    z-index: 2;
    transition: all 0.3s ease;
}

.portfolio-item:hover .portfolio-badge {
    background: rgba(14, 165, 233, 0.9);
    border-color: rgba(14, 165, 233, 0.5);
    transform: scale(1.05);
}

.portfolio-content {
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    padding: 2rem;
    background: linear-gradient(to top, rgba(15, 23, 42, 0.95) 0%, rgba(15, 23, 42, 0.7) 50%, transparent 100%);
    z-index: 2;
    transition: all 0.5s ease;
}

.portfolio-icon {
    font-size: 3rem;
    margin-bottom: 1rem;
    display: inline-block;
    animation: float-icon 3s ease-in-out infinite;
    filter: drop-shadow(0 4px 8px rgba(0, 0, 0, 0.3));
}

@keyframes float-icon {
    0%, 100% {
        transform: translateY(0) rotate(0deg);
    }
    50% {
        transform: translateY(-10px) rotate(5deg);
    }
}

.portfolio-content h3 {
    font-size: 1.75rem;
    font-weight: 700;
    margin-bottom: 0.75rem;
    line-height: 1.2;
}

.portfolio-content p {
    color: var(--text-secondary);
    font-size: 0.95rem;
    line-height: 1.6;
    margin-bottom: 1.5rem;
}

.portfolio-stats {
    display: flex;
    gap: 2rem;
    margin-top: 1.5rem;
}

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

.portfolio-stats .stat-value {
    font-size: 1.5rem;
    font-weight: 700;
    color: var(--primary-light);
    line-height: 1;
}

.portfolio-stats .stat-label {
    font-size: 0.75rem;
    color: var(--text-muted);
    text-transform: uppercase;
    letter-spacing: 0.5px;
    margin-top: 0.25rem;
}

.portfolio-overlay {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(15, 23, 42, 0.95);
    backdrop-filter: blur(20px);
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 2.5rem;
    opacity: 0;
    visibility: hidden;
    transition: all var(--transition-smooth), opacity var(--transition-smooth), visibility var(--transition-fast), backdrop-filter var(--transition-base);
    z-index: 3;
    will-change: opacity, visibility;
}

.portfolio-item:hover .portfolio-overlay {
    opacity: 1;
    visibility: visible;
}

.overlay-content {
    text-align: center;
    width: 100%;
    transform: translateY(20px);
    transition: transform var(--transition-smooth) 0.1s;
    will-change: transform;
}

.portfolio-item:hover .overlay-content {
    transform: translateY(0);
}

.project-tag {
    display: inline-block;
    padding: 0.4rem 1rem;
    background: rgba(99, 102, 241, 0.2);
    border: 1px solid rgba(99, 102, 241, 0.3);
    border-radius: 50px;
    font-size: 0.75rem;
    font-weight: 600;
    color: var(--primary-light);
    margin-bottom: 1.5rem;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.portfolio-overlay h3 {
    font-size: 2rem;
    font-weight: 700;
    margin-bottom: 1rem;
    background: linear-gradient(135deg, #ffffff 0%, #cbd5e1 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.portfolio-overlay p {
    color: var(--text-secondary);
    font-size: 1rem;
    line-height: 1.7;
    margin-bottom: 2rem;
    max-width: 500px;
    margin-left: auto;
    margin-right: auto;
}

.portfolio-actions {
    display: flex;
    gap: 1rem;
    justify-content: center;
    align-items: center;
}

.portfolio-link {
    display: inline-flex;
    align-items: center;
    gap: 0.75rem;
    padding: 1rem 2rem;
    background: var(--primary-color);
    color: var(--text-primary);
    text-decoration: none;
    font-weight: 600;
    border-radius: 12px;
    transition: all var(--transition-base), transform var(--transition-fast), box-shadow var(--transition-base);
    box-shadow: 0 4px 15px rgba(14, 165, 233, 0.4);
    will-change: transform, box-shadow, background-color;
}

.portfolio-link:hover {
    background: var(--primary-dark);
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(14, 165, 233, 0.6);
}

.portfolio-link svg {
    transition: transform var(--transition-base);
}

.portfolio-link:hover svg {
    transform: translateX(5px);
}

.portfolio-link-secondary {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 48px;
    height: 48px;
    background: rgba(255, 255, 255, 0.1);
    border: 1px solid rgba(255, 255, 255, 0.2);
    border-radius: 12px;
    color: var(--text-primary);
    text-decoration: none;
    transition: all var(--transition-base), transform var(--transition-base), backdrop-filter var(--transition-base);
    backdrop-filter: blur(10px);
    will-change: transform, background-color, border-color;
}

.portfolio-link-secondary:hover {
    background: rgba(255, 255, 255, 0.2);
    border-color: rgba(255, 255, 255, 0.3);
    transform: translateY(-2px) rotate(45deg);
}

/* Animated background pattern for portfolio items */
.portfolio-image::before {
    content: '';
    position: absolute;
    top: -50%;
    left: -50%;
    width: 200%;
    height: 200%;
    background: repeating-linear-gradient(
        45deg,
        transparent,
        transparent 10px,
        rgba(255, 255, 255, 0.03) 10px,
        rgba(255, 255, 255, 0.03) 20px
    );
    animation: slide 20s linear infinite;
    opacity: 0;
    transition: opacity 0.5s ease;
}

.portfolio-item:hover .portfolio-image::before {
    opacity: 1;
}

@keyframes slide {
    0% {
        transform: translate(0, 0);
    }
    100% {
        transform: translate(50px, 50px);
    }
}

/* Contact Section */
.contact-content {
    display: grid;
    grid-template-columns: 1fr 1.5fr;
    gap: 4rem;
}

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

.info-item {
    display: flex;
    gap: 1.5rem;
}

.info-icon {
    width: 50px;
    height: 50px;
    background: rgba(99, 102, 241, 0.1);
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--primary-color);
    flex-shrink: 0;
}

.info-icon svg {
    width: 24px;
    height: 24px;
}

.info-content h4 {
    font-size: 1.2rem;
    margin-bottom: 0.5rem;
    font-weight: 600;
}

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

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

.form-group {
    position: relative;
}

.form-group input,
.form-group textarea {
    width: 100%;
    padding: 1rem;
    background: rgba(30, 41, 59, 0.5);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 8px;
    color: var(--text-primary);
    font-family: inherit;
    font-size: 1rem;
    transition: all 0.3s ease;
}

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

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

/* Form Messages */
.form-message {
    padding: 1rem;
    border-radius: 8px;
    margin-bottom: 1rem;
    font-size: 0.95rem;
    text-align: center;
    animation: fadeInUp 0.3s ease-out;
}

.form-message.success {
    background: rgba(16, 185, 129, 0.1);
    border: 1px solid rgba(16, 185, 129, 0.3);
    color: #10b981;
}

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

/* Footer */
.footer {
    background: var(--dark-surface);
    padding: 4rem 0 2rem;
    border-top: 1px solid rgba(255, 255, 255, 0.1);
}

.footer-content {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 3rem;
    margin-bottom: 3rem;
}

.footer-section h4 {
    margin-bottom: 1.5rem;
    font-weight: 600;
}

.footer-section p {
    color: var(--text-secondary);
    line-height: 1.7;
    margin-bottom: 1.5rem;
}

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

.footer-section ul li {
    margin-bottom: 0.75rem;
}

.footer-section ul li a {
    color: var(--text-secondary);
    text-decoration: none;
    transition: color 0.3s ease;
}

.footer-section ul li a:hover {
    color: var(--primary-color);
}

.social-links {
    display: flex;
    gap: 1rem;
    flex-wrap: wrap;
}

.social-links a {
    padding: 0.5rem 1rem;
    background: rgba(99, 102, 241, 0.1);
    border-radius: 8px;
    color: var(--text-secondary);
    text-decoration: none;
    transition: all 0.3s ease;
    font-size: 0.9rem;
}

.social-links a:hover {
    background: var(--primary-color);
    color: var(--text-primary);
    transform: translateY(-2px);
}

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

.newsletter-form input {
    padding: 0.75rem;
    background: rgba(30, 41, 59, 0.5);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 8px;
    color: var(--text-primary);
    font-family: inherit;
}

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

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

/* Animations */
.fade-in {
    animation: fadeIn 1s ease-out;
}

@keyframes fadeIn {
    from {
        opacity: 0;
    }
    to {
        opacity: 1;
    }
}

.slide-in-left {
    animation: slideInLeft 0.8s ease-out;
}

@keyframes slideInLeft {
    from {
        opacity: 0;
        transform: translateX(-50px);
    }
    to {
        opacity: 1;
        transform: translateX(0);
    }
}

.slide-in-right {
    animation: slideInRight 0.8s ease-out;
}

@keyframes slideInRight {
    from {
        opacity: 0;
        transform: translateX(50px);
    }
    to {
        opacity: 1;
        transform: translateX(0);
    }
}

/* Responsive Design */

/* Tablet and below (1024px) */
@media (max-width: 1024px) {
    .portfolio-grid {
        grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    }

    .services-grid {
        grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    }

    .about-visual {
        grid-template-columns: 1fr;
    }

    .card-2 {
        grid-column: 1;
        grid-row: 2;
    }
}

/* Mobile and Tablet (768px) */
@media (max-width: 768px) {
    /* Navigation */
    .nav-menu {
        position: fixed;
        top: 70px;
        left: -100%;
        flex-direction: column;
        background: rgba(15, 23, 42, 0.98);
        backdrop-filter: blur(24px) saturate(180%);
        -webkit-backdrop-filter: blur(24px) saturate(180%);
        width: 100%;
        text-align: center;
        transition: left var(--transition-smooth);
        padding: 1.5rem 0 2.5rem;
        border-top: 1px solid rgba(255, 255, 255, 0.1);
        box-shadow: 0 10px 40px rgba(0, 0, 0, 0.4), inset 0 1px 0 rgba(255, 255, 255, 0.05);
        z-index: 999;
    }

    .nav-menu::before {
        content: '';
        position: absolute;
        top: 0;
        left: 0;
        right: 0;
        height: 1px;
        background: linear-gradient(90deg, transparent, rgba(14, 165, 233, 0.5), transparent);
    }

    .nav-menu.active {
        left: 0;
    }

    .nav-menu ul {
        flex-direction: column;
        gap: 0.5rem;
        width: 100%;
    }

    .nav-menu li {
        width: 100%;
    }

    .nav-link {
        padding: 1rem 1.5rem;
        display: block;
        font-size: 1.05rem;
        width: 100%;
        text-align: center;
        border-radius: 0;
        margin: 0 1rem;
        width: calc(100% - 2rem);
        border-radius: 10px;
    }

    .nav-link::after {
        bottom: 0.5rem;
        left: 50%;
        transform: translateX(-50%);
    }

    .nav-link:hover::after {
        width: calc(100% - 3rem);
    }

    .nav-link.active::after {
        width: calc(100% - 3rem);
    }

    .hamburger {
        display: flex;
        z-index: 1001;
    }

    .hamburger.active {
        background: rgba(14, 165, 233, 0.1);
    }

    .hamburger.active span:nth-child(1) {
        transform: rotate(45deg) translate(8px, 8px);
        background: var(--primary-color);
        box-shadow: 0 0 8px rgba(14, 165, 233, 0.5);
    }

    .hamburger.active span:nth-child(2) {
        opacity: 0;
        transform: scale(0);
    }

    .hamburger.active span:nth-child(3) {
        transform: rotate(-45deg) translate(7px, -7px);
        background: var(--primary-color);
        box-shadow: 0 0 8px rgba(14, 165, 233, 0.5);
    }

    .logo {
        font-size: 1.25rem;
    }

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

    /* Hero Section */
    .hero {
        min-height: 90vh;
        padding-top: 80px;
    }

    .hero-badge {
        font-size: 0.8rem;
        padding: 0.6rem 1.25rem;
        margin-bottom: 1.5rem;
    }

    .hero-title {
        font-size: clamp(2rem, 6vw, 3rem);
        margin-bottom: 1rem;
    }

    .hero-subtitle {
        font-size: 1rem;
        padding: 0 1rem;
        margin-bottom: 2rem;
    }

    .hero-buttons {
        flex-direction: column;
        width: 100%;
        max-width: 300px;
        margin: 0 auto 2rem;
    }

    .hero-buttons .btn {
        width: 100%;
        padding: 1rem 2rem;
        font-size: 1rem;
        min-height: 48px;
    }

    .hero-features {
        gap: 1rem;
        margin-bottom: 2rem;
    }

    .feature-badge {
        font-size: 0.75rem;
        padding: 0.5rem 1rem;
    }

    .hero-stats {
        gap: 1.5rem;
        flex-wrap: wrap;
        margin-top: 3rem;
        padding: 1.5rem 0;
    }

    .stat-item {
        flex: 1 1 calc(50% - 0.75rem);
        min-width: 140px;
        padding: 1.5rem 1.25rem;
    }

    .stat-icon {
        font-size: 1.5rem;
        margin-bottom: 0.5rem;
    }

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

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

    .scroll-indicator {
        display: none; /* Hide on mobile */
    }

    .glow-effect {
        display: none; /* Hide glow effects on mobile */
    }

    /* Sections */
    section {
        padding: 4rem 0;
    }

    .section-header {
        margin-bottom: 3rem;
    }

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

    .section-description {
        font-size: 1rem;
        padding: 0 1rem;
    }

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

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

    .tech-item {
        padding: 2rem 1.5rem;
    }

    .tech-icon {
        width: 60px;
        height: 60px;
        margin-bottom: 1.25rem;
    }

    .tech-icon svg {
        width: 30px;
        height: 30px;
    }

    .tech-item h3 {
        font-size: 1.25rem;
    }

    .service-card {
        padding: 2rem 1.5rem;
    }

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

    /* About */
    .about-content {
        grid-template-columns: 1fr;
        gap: 2rem;
    }

    .about-visual {
        margin-top: 2rem;
        grid-template-columns: 1fr;
    }

    .visual-card {
        min-height: 180px;
        padding: 1.5rem;
    }

    .card-2 {
        grid-column: 1;
        grid-row: 2;
    }

    .about-features {
        grid-template-columns: 1fr;
        gap: 1rem;
    }

    /* Portfolio */
    .portfolio-grid {
        grid-template-columns: 1fr;
        gap: 1.5rem;
    }

    .portfolio-item {
        aspect-ratio: 4/5;
        /* Disable 3D transforms on mobile for better performance */
        transform-style: flat;
    }

    .portfolio-item:hover {
        transform: translateY(-8px);
    }

    .portfolio-badge {
        top: 1rem;
        left: 1rem;
        padding: 0.4rem 0.8rem;
        font-size: 0.7rem;
    }

    .portfolio-content {
        padding: 1.5rem;
    }

    .portfolio-icon {
        font-size: 2.5rem;
        margin-bottom: 0.75rem;
    }

    .portfolio-content h3 {
        font-size: 1.5rem;
        margin-bottom: 0.5rem;
    }

    .portfolio-content p {
        font-size: 0.9rem;
        margin-bottom: 1rem;
    }

    .portfolio-stats {
        gap: 1.5rem;
        flex-wrap: wrap;
    }

    .portfolio-stats .stat {
        flex: 1 1 calc(50% - 0.75rem);
        min-width: 100px;
    }

    .portfolio-stats .stat-value {
        font-size: 1.25rem;
    }

    .portfolio-stats .stat-label {
        font-size: 0.7rem;
    }

    .portfolio-overlay {
        padding: 2rem 1.5rem;
        backdrop-filter: blur(15px);
    }

    .portfolio-overlay h3 {
        font-size: 1.5rem;
        margin-bottom: 0.75rem;
    }

    .portfolio-overlay p {
        font-size: 0.9rem;
        margin-bottom: 1.5rem;
    }

    .project-tag {
        font-size: 0.7rem;
        padding: 0.3rem 0.8rem;
        margin-bottom: 1rem;
    }

    .portfolio-actions {
        flex-direction: column;
        width: 100%;
        gap: 0.75rem;
    }

    .portfolio-link {
        width: 100%;
        justify-content: center;
        padding: 0.875rem 1.5rem;
        min-height: 48px;
    }

    .portfolio-link-secondary {
        width: 100%;
        min-height: 48px;
    }

    /* Contact */
    .contact-content {
        grid-template-columns: 1fr;
        gap: 2rem;
    }

    .contact-info {
        gap: 1.5rem;
    }

    .info-item {
        flex-direction: column;
        text-align: center;
        gap: 1rem;
    }

    .info-icon {
        margin: 0 auto;
    }

    .contact-form {
        gap: 1.25rem;
    }

    .form-group input,
    .form-group textarea {
        padding: 1rem;
        font-size: 16px; /* Prevents zoom on iOS */
        min-height: 48px; /* Better touch target */
    }

    /* Footer */
    .footer-content {
        grid-template-columns: 1fr;
        gap: 2rem;
        text-align: center;
    }

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

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

    .newsletter-form {
        max-width: 100%;
    }

    .newsletter-form input {
        font-size: 16px; /* Prevents zoom on iOS */
        min-height: 48px;
    }

    .newsletter-form .btn {
        min-height: 48px;
    }

    /* Animations - Reduce on mobile for performance */
    .shape {
        display: none; /* Hide animated shapes on mobile */
    }

    .portfolio-image::before {
        display: none; /* Disable animated patterns on mobile */
    }
}

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

    /* Navigation */
    .navbar {
        padding: 0.75rem 0;
    }

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

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

    /* Hero */
    .hero {
        min-height: 85vh;
        padding-top: 70px;
    }

    .hero-badge {
        font-size: 0.75rem;
        padding: 0.5rem 1rem;
        margin-bottom: 1.25rem;
    }

    .badge-icon {
        font-size: 1rem;
    }

    .hero-title {
        font-size: 1.75rem;
        line-height: 1.3;
        margin-bottom: 0.75rem;
    }

    .title-line {
        display: block;
        margin-bottom: 0.25rem;
    }

    .hero-subtitle {
        font-size: 0.95rem;
        padding: 0;
        margin-bottom: 1.75rem;
    }

    .hero-buttons {
        gap: 0.75rem;
        margin-bottom: 1.5rem;
    }

    .hero-buttons .btn {
        padding: 0.875rem 1.5rem;
        font-size: 0.95rem;
    }

    .hero-features {
        gap: 0.75rem;
        margin-bottom: 1.5rem;
    }

    .feature-badge {
        font-size: 0.7rem;
        padding: 0.45rem 0.875rem;
    }

    .feature-badge svg {
        width: 12px;
        height: 12px;
    }

    .hero-stats {
        gap: 1rem;
        margin-top: 2.5rem;
        padding: 1.25rem 0;
    }

    .stat-item {
        flex: 1 1 100%;
        padding: 1.25rem 1rem;
        min-width: auto;
    }

    .stat-icon {
        font-size: 1.25rem;
        margin-bottom: 0.5rem;
    }

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

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

    /* Sections */
    section {
        padding: 3rem 0;
    }

    .section-header {
        margin-bottom: 2rem;
    }

    .section-tag {
        font-size: 0.75rem;
        padding: 0.4rem 1rem;
    }

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

    .section-description {
        font-size: 0.95rem;
    }

    /* Services */
    .service-card {
        padding: 1.75rem 1.25rem;
    }

    .tech-item {
        padding: 1.75rem 1.25rem;
    }

    .tech-icon {
        width: 55px;
        height: 55px;
        margin-bottom: 1rem;
    }

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

    .tech-item h3 {
        font-size: 1.15rem;
    }

    .tech-item p {
        font-size: 0.9rem;
    }

    .service-icon {
        width: 50px;
        height: 50px;
        margin-bottom: 1.25rem;
    }

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

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

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

    /* About */
    .about-description {
        font-size: 0.95rem;
    }

    .visual-card {
        min-height: 160px;
        padding: 1.25rem;
    }

    .card-content h4 {
        font-size: 1.25rem;
    }

    .card-content p {
        font-size: 0.9rem;
    }

    /* Portfolio */
    .portfolio-item {
        border-radius: 20px;
    }

    .portfolio-badge {
        top: 0.75rem;
        left: 0.75rem;
        padding: 0.35rem 0.7rem;
        font-size: 0.65rem;
    }

    .portfolio-content {
        padding: 1.25rem;
    }

    .portfolio-icon {
        font-size: 2rem;
    }

    .portfolio-content h3 {
        font-size: 1.25rem;
    }

    .portfolio-content p {
        font-size: 0.85rem;
    }

    .portfolio-stats {
        gap: 1rem;
    }

    .portfolio-stats .stat-value {
        font-size: 1.1rem;
    }

    .portfolio-stats .stat-label {
        font-size: 0.65rem;
    }

    .portfolio-overlay {
        padding: 1.5rem 1.25rem;
    }

    .portfolio-overlay h3 {
        font-size: 1.25rem;
    }

    .portfolio-overlay p {
        font-size: 0.85rem;
    }

    /* Contact */
    .info-content h4 {
        font-size: 1.1rem;
    }

    .info-content p {
        font-size: 0.9rem;
    }

    /* Footer */
    .footer {
        padding: 3rem 0 1.5rem;
    }

    .footer-content {
        gap: 1.5rem;
    }

    .footer-section h4 {
        font-size: 1.1rem;
    }

    .footer-section p {
        font-size: 0.9rem;
    }
}

/* Extra Small Mobile (360px) */
@media (max-width: 360px) {
    .container {
        padding: 0 12px;
    }

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

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

    .btn {
        padding: 0.75rem 1.25rem;
        font-size: 0.9rem;
    }

    .logo-icon-img {
        width: 28px;
        height: 28px;
    }

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

/* Landscape Mobile */
@media (max-width: 768px) and (orientation: landscape) {
    .hero {
        min-height: auto;
        padding: 6rem 0 4rem;
    }

    .hero-stats {
        margin-top: 2rem;
    }

    section {
        padding: 3rem 0;
    }
}

/* Touch device optimizations */
@media (hover: none) and (pointer: coarse) {
    /* Remove hover effects on touch devices */
    .service-card:hover {
        transform: none;
    }

    .portfolio-item:hover {
        transform: none;
    }

    /* Increase touch targets */
    .nav-link {
        min-height: 44px;
        display: flex;
        align-items: center;
        justify-content: center;
    }

    .service-link,
    .portfolio-link {
        min-height: 44px;
    }

    /* Disable 3D transforms on touch devices */
    .portfolio-item {
        transform-style: flat;
    }
}

