/* ========================================
   Modern Professional Design System
======================================== */

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

:root {
    /* Colors */
    --color-primary: #3B82F6;
    --color-primary-dark: #2563EB;
    --color-primary-light: #60A5FA;
    --color-dark: #0F172A;
    --color-dark-light: #1E293B;
    --color-gray: #64748B;
    --color-gray-light: #94A3B8;
    --color-gray-lighter: #E2E8F0;
    --color-white: #FFFFFF;
    --color-bg: #F8FAFC;
    --color-bg-light: #F1F5F9;
    
    /* Typography */
    --font-main: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
    
    /* Spacing */
    --space-xs: 0.5rem;
    --space-sm: 1rem;
    --space-md: 1.5rem;
    --space-lg: 2rem;
    --space-xl: 3rem;
    --space-2xl: 4rem;
    --space-3xl: 6rem;
    
    /* Effects */
    --shadow-sm: 0 1px 2px 0 rgba(0, 0, 0, 0.05);
    --shadow-md: 0 4px 6px -1px rgba(0, 0, 0, 0.1), 0 2px 4px -1px rgba(0, 0, 0, 0.06);
    --shadow-lg: 0 10px 15px -3px rgba(0, 0, 0, 0.1), 0 4px 6px -2px rgba(0, 0, 0, 0.05);
    --shadow-xl: 0 20px 25px -5px rgba(0, 0, 0, 0.1), 0 10px 10px -5px rgba(0, 0, 0, 0.04);
    --shadow-2xl: 0 25px 50px -12px rgba(0, 0, 0, 0.25);
    
    --transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    --transition-slow: all 0.5s cubic-bezier(0.4, 0, 0.2, 1);
}

html {
    scroll-behavior: smooth;
}

body {
    font-family: var(--font-main);
    color: var(--color-dark);
    line-height: 1.6;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
    background: var(--color-white);
    overflow-x: hidden;
    /* Better text rendering on mobile */
    text-rendering: optimizeLegibility;
    -webkit-text-size-adjust: 100%;
}

/* Touch optimization for mobile */
@media (hover: none) and (pointer: coarse) {
    * {
        -webkit-tap-highlight-color: transparent;
        -webkit-touch-callout: none;
    }

    .btn:active,
    .nav-link:active,
    .project-card:active,
    .service-card:active,
    .tech-logo:active {
        transform: scale(0.98);
        transition: transform 0.1s ease;
    }

    /* Larger tap targets */
    .btn,
    .nav-link {
        min-height: 44px;
        padding: 0.875rem 1.5rem;
    }

    /* Smooth scrolling on mobile */
    html {
        scroll-behavior: smooth;
        -webkit-overflow-scrolling: touch;
    }
}

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

/* ========================================
   Typography
======================================== */

h1, h2, h3, h4, h5, h6 {
    font-weight: 700;
    line-height: 1.2;
    color: var(--color-dark);
}

h1 { font-size: clamp(2.5rem, 5vw, 4rem); }
h2 { font-size: clamp(2rem, 4vw, 3rem); }
h3 { font-size: clamp(1.5rem, 3vw, 2rem); }

p {
    font-size: 1.0625rem;
    line-height: 1.7;
    color: var(--color-gray);
}

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

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

.navbar {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    z-index: 1000;
    background: rgba(255, 255, 255, 0.9);
    backdrop-filter: blur(20px);
    border-bottom: 1px solid var(--color-gray-lighter);
    transition: var(--transition);
}

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

.logo {
    display: flex;
    align-items: center;
    gap: var(--space-sm);
    font-size: 1.25rem;
    font-weight: 700;
    color: var(--color-dark);
}

.logo svg {
    flex-shrink: 0;
}

.nav-menu {
    display: flex;
    list-style: none;
    gap: var(--space-xl);
}

.nav-link {
    font-size: 0.9375rem;
    font-weight: 500;
    color: var(--color-gray);
    position: relative;
}

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

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

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

.btn-nav {
    padding: 0.625rem 1.5rem;
    background: var(--color-dark);
    color: var(--color-white);
    border-radius: 8px;
    font-size: 0.9375rem;
    font-weight: 600;
    transition: var(--transition);
}

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

.hamburger {
    display: none;
    flex-direction: column;
    gap: 6px;
    cursor: pointer;
    padding: var(--space-xs);
    z-index: 1001;
}

.hamburger span {
    width: 24px;
    height: 2px;
    background: var(--color-dark);
    transition: all 0.3s ease;
    transform-origin: center;
}

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

.hamburger.active span:nth-child(2) {
    transform: translateY(-8px) rotate(-45deg);
}

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

.btn {
    display: inline-flex;
    align-items: center;
    gap: var(--space-sm);
    padding: 1rem 2rem;
    font-size: 1rem;
    font-weight: 600;
    border-radius: 12px;
    border: none;
    cursor: pointer;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    text-align: center;
    justify-content: center;
    position: relative;
    overflow: hidden;
}

.btn::before {
    content: '';
    position: absolute;
    top: 50%;
    left: 50%;
    width: 0;
    height: 0;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.4);
    transform: translate(-50%, -50%);
    transition: width 0.6s ease, height 0.6s ease;
}

.btn:hover::before {
    width: 300px;
    height: 300px;
}

.btn-primary {
    background: linear-gradient(135deg, var(--color-primary) 0%, var(--color-primary-dark) 100%);
    color: var(--color-white);
    box-shadow: 0 4px 14px 0 rgba(59, 130, 246, 0.4);
}

.btn-primary:hover {
    transform: translateY(-3px);
    box-shadow: 0 10px 25px 0 rgba(59, 130, 246, 0.5);
}

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

.btn-outline {
    background: transparent;
    color: var(--color-dark);
    border: 2px solid var(--color-gray-lighter);
}

.btn-outline:hover {
    border-color: var(--color-primary);
    background: linear-gradient(135deg, rgba(59, 130, 246, 0.1) 0%, rgba(37, 99, 235, 0.05) 100%);
    color: var(--color-primary);
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(59, 130, 246, 0.2);
}

.btn i {
    transition: transform 0.3s ease;
}

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

.btn-full {
    width: 100%;
}

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

.hero {
    padding: calc(80px + var(--space-3xl)) 0 var(--space-3xl);
    background: linear-gradient(180deg, var(--color-bg) 0%, var(--color-white) 100%);
    position: relative;
    overflow: hidden;
}

.hero::before {
    content: '';
    position: absolute;
    top: -50%;
    right: -20%;
    width: 800px;
    height: 800px;
    background: radial-gradient(circle, rgba(59, 130, 246, 0.1) 0%, transparent 70%);
    border-radius: 50%;
    animation: float 20s ease-in-out infinite;
}

.hero::after {
    content: '';
    position: absolute;
    bottom: -30%;
    left: -10%;
    width: 600px;
    height: 600px;
    background: radial-gradient(circle, rgba(59, 130, 246, 0.08) 0%, transparent 70%);
    border-radius: 50%;
    animation: float 15s ease-in-out infinite reverse;
}

@keyframes float {
    0%, 100% {
        transform: translate(0, 0) scale(1);
    }
    50% {
        transform: translate(30px, -30px) scale(1.1);
    }
}

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

.hero-badge {
    display: inline-flex;
    align-items: center;
    gap: var(--space-sm);
    padding: 0.5rem 1rem;
    background: var(--color-white);
    border: 1px solid var(--color-gray-lighter);
    border-radius: 50px;
    font-size: 0.875rem;
    font-weight: 500;
    color: var(--color-gray);
    margin-bottom: var(--space-lg);
    animation: fadeInUp 0.6s ease-out;
}

.badge-dot {
    width: 8px;
    height: 8px;
    background: #10B981;
    border-radius: 50%;
    animation: pulse 2s infinite;
}

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

.hero-title {
    margin-bottom: var(--space-lg);
    letter-spacing: -0.02em;
    animation: fadeInUp 0.8s ease-out 0.2s both;
}

.hero-description {
    font-size: 1.25rem;
    max-width: 700px;
    margin-bottom: var(--space-xl);
    animation: fadeInUp 1s ease-out 0.4s both;
}

.hero-actions {
    display: flex;
    gap: var(--space-md);
    margin-bottom: var(--space-lg);
    animation: fadeInUp 1.2s ease-out 0.6s both;
}

.hero-trust {
    margin-bottom: var(--space-xl);
    padding-bottom: var(--space-xl);
    animation: fadeInUp 1s ease-out 0.6s both;
}

.trust-text {
    color: var(--color-gray);
    font-size: 0.9375rem;
    font-weight: 500;
    display: flex;
    align-items: center;
    gap: var(--space-md);
    flex-wrap: wrap;
}

.hero-stats {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: var(--space-xl);
    padding-top: var(--space-xl);
    border-top: 1px solid var(--color-gray-lighter);
    animation: fadeInUp 1.4s ease-out 0.8s both;
}

.stat {
    text-align: center;
}

.stat-number {
    font-size: 2.5rem;
    font-weight: 700;
    color: var(--color-dark);
    margin-bottom: 0.25rem;
}

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

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

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

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

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

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

@keyframes scaleIn {
    from {
        opacity: 0;
        transform: scale(0.8);
    }
    to {
        opacity: 1;
        transform: scale(1);
    }
}

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

section {
    padding: var(--space-3xl) 0;
}

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

.section-label {
    display: inline-block;
    padding: 0.5rem 1rem;
    background: linear-gradient(135deg, rgba(59, 130, 246, 0.1) 0%, rgba(37, 99, 235, 0.1) 100%);
    color: var(--color-primary);
    font-size: 0.875rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    border-radius: 50px;
    margin-bottom: var(--space-md);
    border: 1px solid rgba(59, 130, 246, 0.2);
}

.section-title {
    margin-bottom: var(--space-md);
    background: linear-gradient(135deg, var(--color-dark) 0%, #334155 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.section-description {
    font-size: 1.125rem;
    color: var(--color-gray);
    line-height: 1.7;
    max-width: 700px;
}

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

.services {
    background: var(--color-white);
}

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

.service-card {
    padding: var(--space-xl);
    background: var(--color-white);
    border: 1px solid var(--color-gray-lighter);
    border-radius: 20px;
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    position: relative;
    cursor: pointer;
    overflow: hidden;
}

.service-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 4px;
    background: linear-gradient(90deg, var(--color-primary) 0%, var(--color-primary-light) 100%);
    transform: scaleX(0);
    transform-origin: left;
    transition: transform 0.4s ease;
}

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

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

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

.service-card:hover .service-number {
    color: var(--color-primary);
}

.service-number {
    position: absolute;
    top: var(--space-lg);
    right: var(--space-lg);
    font-size: 3rem;
    font-weight: 700;
    color: var(--color-gray-lighter);
    line-height: 1;
    transition: var(--transition);
}

.service-icon {
    width: 60px;
    height: 60px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: linear-gradient(135deg, rgba(59, 130, 246, 0.1) 0%, rgba(37, 99, 235, 0.15) 100%);
    border-radius: 16px;
    margin-bottom: var(--space-md);
    color: var(--color-primary);
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    position: relative;
}

.service-icon::before {
    content: '';
    position: absolute;
    inset: -2px;
    background: linear-gradient(135deg, var(--color-primary) 0%, var(--color-primary-light) 100%);
    border-radius: 16px;
    opacity: 0;
    transition: opacity 0.4s ease;
    z-index: -1;
}

.service-card:hover .service-icon::before {
    opacity: 1;
}

.service-card h3 {
    font-size: 1.5rem;
    margin-bottom: var(--space-sm);
    transition: var(--transition);
}

.service-card:hover h3 {
    color: var(--color-primary);
}

.service-card p {
    margin-bottom: var(--space-md);
    line-height: 1.7;
}

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

.service-list li {
    padding: 0.375rem 0.75rem;
    background: var(--color-bg);
    color: var(--color-gray);
    font-size: 0.875rem;
    border-radius: 6px;
    transition: var(--transition);
}

.service-card:hover .service-list li {
    background: rgba(59, 130, 246, 0.1);
    color: var(--color-primary);
}

/* ========================================
   Portfolio Section
======================================== */

.portfolio {
    background: var(--color-bg);
}

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

.project-card {
    grid-column: span 6;
    background: var(--color-white);
    border-radius: 16px;
    overflow: hidden;
    transition: all 0.5s cubic-bezier(0.4, 0, 0.2, 1);
    border: 1px solid var(--color-gray-lighter);
    cursor: pointer;
    position: relative;
}

.project-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(135deg, rgba(59, 130, 246, 0.1), rgba(59, 130, 246, 0));
    opacity: 0;
    transition: opacity 0.5s ease;
    pointer-events: none;
    z-index: 1;
}

.project-card:hover::before {
    opacity: 1;
}

.project-card.large {
    grid-column: span 12;
    display: grid;
    grid-template-columns: 1fr 1fr;
}

.project-card:hover {
    box-shadow: var(--shadow-2xl);
    transform: translateY(-10px);
    border-color: rgba(59, 130, 246, 0.4);
}

.project-image {
    position: relative;
    overflow: hidden;
    height: 300px;
    background: linear-gradient(135deg, var(--color-gray-lighter) 0%, var(--color-bg-light) 100%);
}

.project-card.large .project-image {
    height: 100%;
}

.project-image::after {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(to bottom, transparent 0%, rgba(0,0,0,0.05) 100%);
    opacity: 0;
    transition: opacity 0.5s ease;
}

.project-card:hover .project-image::after {
    opacity: 1;
}

.project-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.8s cubic-bezier(0.4, 0, 0.2, 1);
}

.project-card:hover .project-image img {
    transform: scale(1.08);
}

.project-content {
    padding: var(--space-xl);
    position: relative;
    z-index: 2;
}

.project-tags {
    display: flex;
    gap: var(--space-sm);
    margin-bottom: var(--space-md);
}

.tag {
    padding: 0.375rem 0.75rem;
    background: var(--color-bg);
    color: var(--color-gray);
    font-size: 0.8125rem;
    font-weight: 500;
    border-radius: 6px;
    transition: var(--transition);
}

.project-card:hover .tag {
    background: rgba(59, 130, 246, 0.1);
    color: var(--color-primary);
}

.project-content h3 {
    font-size: 1.5rem;
    margin-bottom: var(--space-sm);
    transition: var(--transition);
}

.project-card:hover .project-content h3 {
    color: var(--color-primary);
}

.project-content p {
    margin-bottom: var(--space-md);
}

.project-link {
    display: inline-flex;
    align-items: center;
    gap: var(--space-sm);
    color: var(--color-primary);
    font-weight: 600;
    font-size: 0.9375rem;
    transition: var(--transition);
}

.project-link:hover {
    gap: var(--space-md);
}

.project-link i {
    transition: transform 0.3s ease;
}

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

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

.about {
    background: var(--color-white);
}

.about-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: var(--space-3xl);
    align-items: center;
}

.about-content {
    animation: slideInLeft 0.8s ease-out forwards;
    opacity: 0;
}

.about-content p {
    margin-bottom: var(--space-md);
}

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

.feature {
    display: flex;
    align-items: center;
    gap: var(--space-sm);
    font-weight: 500;
    transition: all 0.3s ease;
    padding: var(--space-sm);
    border-radius: 8px;
    opacity: 0;
    animation: fadeInUp 0.6s ease-out forwards;
}

.feature:nth-child(1) {
    animation-delay: 0.3s;
}

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

.feature:nth-child(3) {
    animation-delay: 0.7s;
}

.feature:nth-child(4) {
    animation-delay: 0.9s;
}

.feature:hover {
    background: var(--color-bg);
    transform: translateX(8px);
}

.feature i {
    color: var(--color-primary);
    font-size: 1.25rem;
    transition: all 0.3s ease;
}

.feature:hover i {
    transform: scale(1.2) rotate(5deg);
}

.about-image {
    position: relative;
    animation: slideInRight 0.8s ease-out forwards;
    opacity: 0;
}

.about-image img {
    width: 100%;
    height: 600px;
    object-fit: cover;
    border-radius: 16px;
    position: relative;
    z-index: 1;
    transition: all 0.5s ease;
}

.about-image:hover img {
    transform: scale(1.02);
    box-shadow: var(--shadow-lg);
}

.image-decoration {
    position: absolute;
    top: -20px;
    right: -20px;
    width: 100%;
    height: 100%;
    border: 2px solid var(--color-primary);
    border-radius: 16px;
    z-index: 0;
}

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

.cta-section {
    background: linear-gradient(135deg, var(--color-primary) 0%, #2563EB 100%);
    padding: var(--space-3xl) 0;
    text-align: center;
    position: relative;
    overflow: hidden;
}

.cta-section::before {
    content: '';
    position: absolute;
    top: -50%;
    right: -10%;
    width: 500px;
    height: 500px;
    background: radial-gradient(circle, rgba(255,255,255,0.1) 0%, transparent 70%);
    border-radius: 50%;
    animation: float 6s ease-in-out infinite;
}

.cta-section::after {
    content: '';
    position: absolute;
    bottom: -50%;
    left: -10%;
    width: 400px;
    height: 400px;
    background: radial-gradient(circle, rgba(255,255,255,0.08) 0%, transparent 70%);
    border-radius: 50%;
    animation: float 8s ease-in-out infinite reverse;
}

.cta-content {
    position: relative;
    z-index: 1;
    max-width: 800px;
    margin: 0 auto;
}

.cta-title {
    font-size: 2.5rem;
    font-weight: 700;
    color: var(--color-white);
    margin-bottom: var(--space-md);
    letter-spacing: -0.02em;
}

.cta-description {
    font-size: 1.25rem;
    color: rgba(255, 255, 255, 0.9);
    margin-bottom: var(--space-xl);
    line-height: 1.6;
}

.btn-large {
    padding: 1.25rem 2.5rem;
    font-size: 1.125rem;
    background: var(--color-white);
    color: var(--color-primary);
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.2);
}

.btn-large:hover {
    background: var(--color-white);
    transform: translateY(-4px);
    box-shadow: 0 15px 40px rgba(0, 0, 0, 0.3);
}

.cta-guarantee {
    margin-top: var(--space-md);
    color: rgba(255, 255, 255, 0.8);
    font-size: 0.9375rem;
}

/* ========================================
   Tech Stack & Trust Section
======================================== */

/* ========================================
   Tech Stack & Trust Section - Premium Design
======================================== */

.tech-trust {
    background: linear-gradient(180deg, #f8fafc 0%, #ffffff 50%, #f8fafc 100%);
    padding: var(--space-3xl) 0;
    position: relative;
    overflow: hidden;
}

.tech-trust::before {
    content: '';
    position: absolute;
    top: 0;
    left: 50%;
    transform: translateX(-50%);
    width: 80%;
    height: 400px;
    background: radial-gradient(circle, rgba(59, 130, 246, 0.05) 0%, transparent 70%);
    pointer-events: none;
}

/* Tech Showcase Grid */
.tech-showcase {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: var(--space-2xl);
    margin: var(--space-3xl) 0;
    position: relative;
    z-index: 1;
}

/* Tech Cards */
.tech-card {
    background: var(--color-white);
    border-radius: 24px;
    padding: 28px;
    border: 2px solid var(--color-gray-lighter);
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    position: relative;
    overflow: visible;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.02);
    min-height: 340px;
    display: flex;
    flex-direction: column;
}

.tech-card::after {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 6px;
    background: linear-gradient(90deg, var(--color-gray-light) 0%, var(--color-gray-light) 100%);
    transition: all 0.4s ease;
    border-radius: 24px 24px 0 0;
}

.tech-card:hover {
    transform: translateY(-8px);
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.1);
    border-color: var(--color-primary);
}

.tech-card:hover::after {
    background: linear-gradient(90deg, var(--color-primary) 0%, var(--color-primary-light) 100%);
    height: 6px;
}

/* Featured Card (AI) */
.tech-card.featured {
    background: linear-gradient(135deg, 
        rgba(59, 130, 246, 0.02) 0%, 
        rgba(147, 51, 234, 0.02) 100%
    );
    border: 2px solid rgba(59, 130, 246, 0.3);
    box-shadow: 0 8px 24px rgba(59, 130, 246, 0.08);
}

.tech-card.featured::after {
    background: linear-gradient(90deg, #3B82F6 0%, #9333EA 100%);
    height: 6px;
}

.tech-card.featured:hover {
    box-shadow: 0 24px 48px rgba(59, 130, 246, 0.2);
    border-color: var(--color-primary);
}

/* Card Header */
.tech-card-header {
    display: flex;
    align-items: center;
    gap: var(--space-md);
    margin-bottom: var(--space-lg);
    position: relative;
    padding-bottom: var(--space-md);
    border-bottom: 2px solid var(--color-gray-lighter);
    flex-shrink: 0;
}

.tech-card-header h3 {
    font-size: 1.125rem;
    font-weight: 700;
    color: var(--color-dark);
    margin: 0;
    flex: 1;
    line-height: 1.3;
    word-wrap: break-word;
}

.featured-badge {
    position: absolute;
    top: -10px;
    right: -10px;
    background: linear-gradient(135deg, #3B82F6 0%, #9333EA 100%);
    color: white;
    padding: 6px 14px;
    border-radius: 20px;
    font-size: 0.75rem;
    font-weight: 700;
    box-shadow: 0 6px 12px rgba(59, 130, 246, 0.4);
    animation: float 3s ease-in-out infinite;
    letter-spacing: 0.3px;
    white-space: nowrap;
}

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

/* Tech Icons */
.tech-icon {
    width: 64px;
    height: 64px;
    border-radius: 18px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 2rem;
    transition: all 0.4s ease;
    flex-shrink: 0;
    box-shadow: 0 6px 12px rgba(0, 0, 0, 0.1);
    position: relative;
}

.tech-icon::before {
    content: '';
    position: absolute;
    inset: -2px;
    border-radius: 20px;
    padding: 2px;
    background: linear-gradient(135deg, rgba(255,255,255,0.4) 0%, transparent 100%);
    -webkit-mask: linear-gradient(#fff 0 0) content-box, linear-gradient(#fff 0 0);
    mask: linear-gradient(#fff 0 0) content-box, linear-gradient(#fff 0 0);
    -webkit-mask-composite: xor;
    mask-composite: exclude;
    opacity: 0.5;
}

.frontend-icon {
    background: linear-gradient(135deg, #3B82F6 0%, #60A5FA 100%);
    color: white;
}

.backend-icon {
    background: linear-gradient(135deg, #10B981 0%, #34D399 100%);
    color: white;
}

.ai-icon {
    background: linear-gradient(135deg, #8B5CF6 0%, #A78BFA 100%);
    color: white;
}

.cloud-icon {
    background: linear-gradient(135deg, #F59E0B 0%, #FBBF24 100%);
    color: white;
}

.tech-card:hover .tech-icon {
    transform: scale(1.1) rotate(-5deg);
    box-shadow: 0 12px 24px rgba(0, 0, 0, 0.15);
}

/* Tech Logos Grid */
.tech-logos {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: var(--space-md);
    flex: 1;
}

.tech-logo {
    display: flex;
    align-items: center;
    gap: var(--space-sm);
    padding: 12px 14px;
    background: var(--color-bg);
    border-radius: 14px;
    border: 2px solid var(--color-gray-lighter);
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    cursor: pointer;
    position: relative;
    overflow: hidden;
    min-height: 56px;
}

.tech-logo::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, 
        transparent 0%, 
        rgba(59, 130, 246, 0.08) 50%, 
        transparent 100%
    );
    transition: left 0.5s ease;
}

.tech-logo:hover::before {
    left: 100%;
}

.tech-logo:hover {
    transform: translateY(-3px);
    border-color: var(--color-primary);
    background: linear-gradient(135deg, 
        rgba(59, 130, 246, 0.03) 0%, 
        rgba(59, 130, 246, 0.01) 100%
    );
    box-shadow: 0 6px 16px rgba(59, 130, 246, 0.12);
}

.tech-logo i {
    font-size: 2rem;
    color: var(--color-primary);
    transition: all 0.3s ease;
    position: relative;
    z-index: 1;
    flex-shrink: 0;
}

.tech-logo:hover i {
    transform: scale(1.1);
    filter: brightness(1.1);
}

.tech-logo span {
    font-weight: 600;
    font-size: 0.9375rem;
    color: var(--color-dark);
    position: relative;
    z-index: 1;
    letter-spacing: 0.2px;
    line-height: 1.3;
    word-wrap: break-word;
}

/* Trust Stats */
.trust-stats {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: var(--space-lg);
    margin-top: var(--space-3xl);
    padding-top: var(--space-3xl);
    border-top: 2px solid var(--color-gray-lighter);
    position: relative;
}

.trust-stats::before {
    content: '';
    position: absolute;
    top: -2px;
    left: 50%;
    transform: translateX(-50%);
    width: 100px;
    height: 4px;
    background: linear-gradient(90deg, var(--color-primary) 0%, var(--color-primary-light) 100%);
    border-radius: 2px;
}

.trust-stat {
    display: flex;
    align-items: center;
    gap: var(--space-md);
    padding: var(--space-lg);
    background: var(--color-white);
    border-radius: 18px;
    border: 2px solid var(--color-gray-lighter);
    transition: all 0.4s ease;
    position: relative;
    overflow: hidden;
}

.trust-stat::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(135deg, rgba(59, 130, 246, 0.02) 0%, transparent 100%);
    opacity: 0;
    transition: opacity 0.3s ease;
}

.trust-stat:hover::before {
    opacity: 1;
}

.trust-stat:hover {
    transform: translateY(-6px);
    box-shadow: 0 12px 24px rgba(0, 0, 0, 0.08);
    border-color: var(--color-primary);
}

.stat-icon {
    width: 64px;
    height: 64px;
    border-radius: 16px;
    background: linear-gradient(135deg, var(--color-primary) 0%, var(--color-primary-light) 100%);
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
    position: relative;
    box-shadow: 0 6px 12px rgba(59, 130, 246, 0.2);
    transition: all 0.3s ease;
}

.trust-stat:hover .stat-icon {
    transform: scale(1.08) rotate(3deg);
    box-shadow: 0 10px 20px rgba(59, 130, 246, 0.3);
}

.stat-icon i {
    font-size: 1.75rem;
    color: white;
    position: relative;
    z-index: 1;
}

.stat-content {
    position: relative;
    z-index: 1;
    flex: 1;
    min-width: 0;
}

.stat-content h4 {
    font-size: 1.375rem;
    font-weight: 800;
    color: var(--color-dark);
    margin: 0 0 2px 0;
    background: linear-gradient(135deg, var(--color-primary) 0%, var(--color-primary-dark) 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    line-height: 1.2;
}

.stat-content p {
    font-size: 0.875rem;
    color: var(--color-gray);
    margin: 0;
    font-weight: 600;
    letter-spacing: 0.2px;
    line-height: 1.3;
    word-wrap: break-word;
}

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

.contact {
    background: var(--color-dark);
    color: var(--color-white);
}

.contact .section-label {
    background: var(--color-dark-light);
    color: var(--color-white);
}

.contact .section-title {
    color: var(--color-white);
}

.contact-description {
    color: var(--color-gray-light);
}

.contact-wrapper {
    display: grid;
    grid-template-columns: 1fr 1.5fr;
    gap: var(--space-3xl);
}

.contact-details {
    margin: var(--space-xl) 0;
}

.contact-detail {
    display: flex;
    gap: var(--space-md);
    margin-bottom: var(--space-lg);
    opacity: 0;
    animation: fadeInUp 0.6s ease-out forwards;
}

.contact-detail:nth-child(1) {
    animation-delay: 0.2s;
}

.contact-detail:nth-child(2) {
    animation-delay: 0.4s;
}

.contact-detail:nth-child(3) {
    animation-delay: 0.6s;
}

.detail-icon {
    width: 48px;
    height: 48px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: var(--color-dark-light);
    border-radius: 12px;
    color: var(--color-primary);
    flex-shrink: 0;
    transition: all 0.3s ease;
}

.contact-detail:hover .detail-icon {
    background: var(--color-primary);
    color: var(--color-white);
    transform: scale(1.1) rotate(5deg);
}

.detail-content h4 {
    font-size: 0.875rem;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    color: var(--color-gray-light);
    margin-bottom: 0.25rem;
}

.detail-content a {
    color: var(--color-white);
    font-size: 1.125rem;
}

.detail-content a:hover {
    color: var(--color-primary);
}

.detail-content p {
    color: var(--color-white);
    font-size: 1.125rem;
}

.social-links {
    display: flex;
    gap: var(--space-sm);
}

.social-links a {
    width: 44px;
    height: 44px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: var(--color-dark-light);
    border-radius: 8px;
    color: var(--color-white);
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    opacity: 0;
    animation: scaleIn 0.4s ease-out forwards;
}

.social-links a:nth-child(1) {
    animation-delay: 0.8s;
}

.social-links a:nth-child(2) {
    animation-delay: 0.9s;
}

.social-links a:nth-child(3) {
    animation-delay: 1s;
}

.social-links a:nth-child(4) {
    animation-delay: 1.1s;
}

.social-links a:hover {
    background: var(--color-primary);
    transform: translateY(-4px) scale(1.1);
    box-shadow: 0 8px 16px rgba(59, 130, 246, 0.3);
}

/* ========================================
   Contact Form
======================================== */

.contact-form {
    background: var(--color-dark-light);
    padding: var(--space-2xl);
    border-radius: 24px;
    opacity: 0;
    animation: slideInRight 0.8s ease-out 0.3s forwards;
    border: 1px solid rgba(255, 255, 255, 0.1);
    backdrop-filter: blur(10px);
}

/* Form Sections */
.form-section {
    margin-bottom: var(--space-xl);
    padding-bottom: var(--space-xl);
    border-bottom: 1px solid rgba(255, 255, 255, 0.08);
}

.form-section:last-of-type {
    border-bottom: none;
    margin-bottom: var(--space-lg);
    padding-bottom: 0;
}

.form-section-title {
    display: flex;
    align-items: center;
    gap: var(--space-sm);
    font-size: 1.125rem;
    font-weight: 600;
    color: var(--color-white);
    margin-bottom: var(--space-lg);
}

.form-section-title i {
    color: var(--color-primary);
    font-size: 1.25rem;
}

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

.form-group {
    margin-bottom: var(--space-md);
    opacity: 0;
    animation: fadeInUp 0.5s ease-out forwards;
    position: relative;
}

.form-row .form-group:nth-child(1) {
    animation-delay: 0.5s;
}

.form-row .form-group:nth-child(2) {
    animation-delay: 0.6s;
}

.form-group:nth-of-type(3) {
    animation-delay: 0.7s;
}

.form-group:nth-of-type(4) {
    animation-delay: 0.8s;
}

.form-group:last-child {
    animation-delay: 0.9s;
}

.form-group label {
    display: block;
    margin-bottom: var(--space-sm);
    font-size: 0.875rem;
    font-weight: 500;
    color: var(--color-gray-light);
    text-transform: uppercase;
    letter-spacing: 0.05em;
}

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

.form-group select {
    cursor: pointer;
    appearance: none;
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='12' viewBox='0 0 12 12'%3E%3Cpath fill='%23FFFFFF' d='M6 9L1 4h10z'/%3E%3C/svg%3E");
    background-repeat: no-repeat;
    background-position: right 1rem center;
    background-size: 12px;
    padding-right: 2.5rem;
}

.form-group select option {
    background: var(--color-dark);
    color: var(--color-white);
    padding: 0.5rem;
}

.form-group input::placeholder,
.form-group textarea::placeholder {
    color: rgba(255, 255, 255, 0.4);
}

.form-group input:focus,
.form-group textarea:focus,
.form-group select:focus {
    outline: none;
    border-color: var(--color-primary);
    background: rgba(59, 130, 246, 0.05);
    box-shadow: 0 0 0 4px rgba(59, 130, 246, 0.15);
    transform: translateY(-2px);
}

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

/* Form Hints & Errors */
.form-hint {
    display: block;
    margin-top: var(--space-xs);
    font-size: 0.8125rem;
    color: rgba(255, 255, 255, 0.5);
}

.form-error {
    display: none;
    margin-top: var(--space-xs);
    font-size: 0.8125rem;
    color: #ef4444;
}

.form-group.error input,
.form-group.error textarea,
.form-group.error select {
    border-color: #ef4444;
    background: rgba(239, 68, 68, 0.05);
}

.form-group.error .form-error {
    display: block;
}

.form-group.success input,
.form-group.success textarea,
.form-group.success select {
    border-color: #10b981;
}

/* Radio Buttons */
.radio-group {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: var(--space-sm);
    margin-top: var(--space-sm);
}

.radio-option {
    display: flex;
    align-items: center;
    gap: var(--space-sm);
    padding: 0.875rem 1rem;
    background: var(--color-dark);
    border: 2px solid rgba(255, 255, 255, 0.1);
    border-radius: 12px;
    cursor: pointer;
    transition: all 0.3s ease;
    position: relative;
}

.radio-option:hover {
    border-color: rgba(59, 130, 246, 0.5);
    background: rgba(59, 130, 246, 0.05);
    transform: translateY(-2px);
}

.radio-option input[type="radio"] {
    position: absolute;
    opacity: 0;
    width: 0;
    height: 0;
}

.radio-custom {
    width: 20px;
    height: 20px;
    border: 2px solid rgba(255, 255, 255, 0.3);
    border-radius: 50%;
    position: relative;
    flex-shrink: 0;
    transition: all 0.3s ease;
}

.radio-custom::after {
    content: '';
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%) scale(0);
    width: 10px;
    height: 10px;
    border-radius: 50%;
    background: var(--color-primary);
    transition: transform 0.3s ease;
}

.radio-option input[type="radio"]:checked ~ .radio-custom {
    border-color: var(--color-primary);
    background: rgba(59, 130, 246, 0.1);
}

.radio-option input[type="radio"]:checked ~ .radio-custom::after {
    transform: translate(-50%, -50%) scale(1);
}

.radio-option input[type="radio"]:checked ~ .radio-label {
    color: var(--color-primary);
    font-weight: 600;
}

.radio-label {
    font-size: 0.9375rem;
    color: var(--color-gray-light);
    transition: all 0.3s ease;
}

/* Checkbox Options */
.checkbox-group {
    display: grid;
    gap: var(--space-sm);
    margin-top: var(--space-sm);
}

.checkbox-option {
    display: flex;
    align-items: flex-start;
    gap: var(--space-sm);
    padding: 1rem 1.125rem;
    background: var(--color-dark);
    border: 2px solid rgba(255, 255, 255, 0.1);
    border-radius: 12px;
    cursor: pointer;
    transition: all 0.3s ease;
    position: relative;
}

.checkbox-option:hover {
    border-color: rgba(59, 130, 246, 0.5);
    background: rgba(59, 130, 246, 0.05);
    transform: translateX(4px);
}

.checkbox-option input[type="checkbox"] {
    position: absolute;
    opacity: 0;
    width: 0;
    height: 0;
}

.checkbox-custom {
    width: 22px;
    height: 22px;
    border: 2px solid rgba(255, 255, 255, 0.3);
    border-radius: 6px;
    position: relative;
    flex-shrink: 0;
    transition: all 0.3s ease;
    margin-top: 2px;
}

.checkbox-custom::after {
    content: '';
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%) scale(0) rotate(45deg);
    width: 6px;
    height: 10px;
    border: solid white;
    border-width: 0 2px 2px 0;
    transition: transform 0.3s ease;
}

.checkbox-option input[type="checkbox"]:checked ~ .checkbox-custom {
    border-color: var(--color-primary);
    background: var(--color-primary);
}

.checkbox-option input[type="checkbox"]:checked ~ .checkbox-custom::after {
    transform: translate(-50%, -50%) scale(1) rotate(45deg);
}

.checkbox-label {
    display: flex;
    flex-direction: column;
    gap: 4px;
    font-size: 0.9375rem;
    color: var(--color-gray-light);
    line-height: 1.4;
}

.checkbox-label strong {
    color: var(--color-white);
    font-weight: 600;
}

.checkbox-label small {
    font-size: 0.8125rem;
    color: rgba(255, 255, 255, 0.5);
}

/* Form Footer */
.form-footer {
    margin-top: var(--space-xl);
    padding-top: var(--space-lg);
    border-top: 1px solid rgba(255, 255, 255, 0.08);
}

.consent-checkbox {
    margin-bottom: var(--space-lg);
    padding: 0;
    background: transparent;
    border: none;
}

.consent-checkbox:hover {
    background: transparent;
    transform: none;
}

.consent-checkbox .checkbox-label {
    font-size: 0.875rem;
    line-height: 1.6;
}

.form-notice {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: var(--space-xs);
    margin-top: var(--space-md);
    font-size: 0.8125rem;
    color: rgba(255, 255, 255, 0.6);
    text-align: center;
}

.form-notice i {
    color: #10b981;
}

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

.footer {
    background: var(--color-dark);
    color: var(--color-white);
    padding: var(--space-3xl) 0 var(--space-lg);
    border-top: 1px solid rgba(255, 255, 255, 0.1);
}

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

.footer-logo {
    display: flex;
    align-items: center;
    gap: var(--space-sm);
    font-size: 1.25rem;
    font-weight: 700;
    margin-bottom: var(--space-md);
}

.footer-column p {
    color: var(--color-gray-light);
    margin-bottom: var(--space-md);
}

.footer-social {
    display: flex;
    gap: var(--space-sm);
}

.footer-social a {
    width: 40px;
    height: 40px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: var(--color-dark-light);
    border-radius: 8px;
    transition: var(--transition);
}

.footer-social a:hover {
    background: var(--color-primary);
}

.footer-column h4 {
    font-size: 0.875rem;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    margin-bottom: var(--space-md);
    color: var(--color-white);
}

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

.footer-column ul li {
    margin-bottom: var(--space-sm);
}

.footer-column ul li a {
    color: var(--color-gray-light);
    font-size: 0.9375rem;
}

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

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

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

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

.footer-links a {
    color: var(--color-gray-light);
    font-size: 0.875rem;
}

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

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

@media (max-width: 968px) {
    .hamburger {
        display: flex;
        z-index: 1001;
    }

    .nav-menu {
        position: fixed;
        left: -100%;
        top: 80px;
        flex-direction: column;
        background: var(--color-white);
        width: 100%;
        height: calc(100vh - 80px);
        padding: var(--space-xl) var(--space-lg);
        box-shadow: var(--shadow-lg);
        transition: left 0.3s ease;
        z-index: 1000;
        overflow-y: auto;
    }

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

    .nav-menu.active::before {
        content: '';
        position: fixed;
        top: 80px;
        left: 0;
        right: 0;
        bottom: 0;
        background: rgba(0, 0, 0, 0.5);
        z-index: -1;
        animation: fadeIn 0.3s ease;
    }

    .nav-menu li {
        margin-bottom: var(--space-md);
        opacity: 0;
        transform: translateX(-20px);
        transition: all 0.3s ease;
    }

    .nav-menu.active li {
        opacity: 1;
        transform: translateX(0);
    }

    .nav-menu.active li:nth-child(1) { transition-delay: 0.1s; }
    .nav-menu.active li:nth-child(2) { transition-delay: 0.15s; }
    .nav-menu.active li:nth-child(3) { transition-delay: 0.2s; }
    .nav-menu.active li:nth-child(4) { transition-delay: 0.25s; }
    .nav-menu.active li:nth-child(5) { transition-delay: 0.3s; }

    .nav-link {
        font-size: 1.125rem;
        padding: var(--space-sm) 0;
        display: block;
    }

    .btn-nav {
        display: none;
    }

    /* Typography adjustments */
    h1 {
        font-size: 2.25rem;
        line-height: 1.2;
    }

    h2 {
        font-size: 1.875rem;
        line-height: 1.3;
    }

    .hero-title {
        font-size: 2.25rem;
        line-height: 1.2;
    }

    .hero-description {
        font-size: 1.0625rem;
        line-height: 1.6;
    }

    /* Hero section mobile optimization */
    .hero {
        padding: calc(100px + var(--space-2xl)) 0 var(--space-2xl);
        min-height: auto;
    }

    .hero-content {
        max-width: 100%;
        text-align: center;
    }

    .hero-actions {
        flex-direction: column;
        gap: var(--space-md);
        width: 100%;
    }

    .hero-actions .btn {
        width: 100%;
        justify-content: center;
    }

    /* Services section */
    .services-grid {
        grid-template-columns: 1fr;
        gap: var(--space-lg);
    }

    .service-card {
        padding: var(--space-xl);
    }

    /* Portfolio adjustments */
    .portfolio-grid {
        gap: var(--space-md);
        grid-template-columns: repeat(2, 1fr);
    }

    .project-card,
    .project-card.large {
        grid-column: span 1;
        display: block;
    }

    .project-image {
        height: 250px;
    }

    .project-card.large .project-image {
        height: 250px;
    }

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

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

/* Tablet & Mobile Responsive */
@media (max-width: 768px) {
    .hero-actions {
        flex-direction: column;
        width: 100%;
    }

    .hero-actions .btn {
        width: 100%;
    }

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

    .trust-text {
        justify-content: center;
        font-size: 0.875rem;
        flex-wrap: wrap;
    }

    .hero-stats {
        grid-template-columns: 1fr;
        gap: var(--space-lg);
        text-align: center;
    }

    .stat {
        text-align: center;
    }

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

    /* Portfolio mobile */
    .portfolio-grid {
        grid-template-columns: 1fr;
        gap: var(--space-md);
    }

    .project-card,
    .project-card.large {
        grid-column: span 1;
        display: block;
    }

    .project-image {
        height: 220px;
    }

    .project-card.large .project-image {
        height: 220px;
    }

    .project-content {
        padding: var(--space-lg);
    }

    .project-content h3 {
        font-size: 1.125rem;
    }

    .tech-showcase {
        grid-template-columns: 1fr;
        gap: var(--space-lg);
    }

    .tech-card {
        padding: var(--space-lg);
        min-height: auto;
    }

    .tech-card-header {
        flex-direction: column;
        align-items: flex-start;
        gap: var(--space-sm);
    }

    .tech-icon {
        width: 56px;
        height: 56px;
        font-size: 1.75rem;
    }

    .tech-card-header h3 {
        font-size: 1.125rem;
    }

    .tech-logos {
        gap: var(--space-sm);
    }

    .tech-logo {
        padding: 10px 12px;
        min-height: 50px;
    }

    .tech-logo i {
        font-size: 1.75rem;
    }

    .tech-logo span {
        font-size: 0.875rem;
    }

    .featured-badge {
        position: static;
        display: inline-block;
        margin-top: var(--space-xs);
        font-size: 0.6875rem;
        padding: 4px 10px;
    }

    .trust-stats {
        grid-template-columns: repeat(2, 1fr);
        gap: var(--space-md);
    }

    .trust-stat {
        flex-direction: column;
        text-align: center;
        padding: var(--space-md);
        gap: var(--space-sm);
    }

    .stat-icon {
        width: 56px;
        height: 56px;
    }

    .stat-icon i {
        font-size: 1.5rem;
    }

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

    .stat-content p {
        font-size: 0.8125rem;
    }

    .cta-title {
        font-size: 2rem;
    }

    .cta-description {
        font-size: 1.125rem;
    }

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

    .project-card,
    .project-card.large {
        grid-column: span 12;
        grid-template-columns: 1fr;
    }

    .project-image {
        height: 250px;
    }

    .about-grid {
        grid-template-columns: 1fr;
        gap: var(--space-xl);
    }

    .about-image {
        order: -1;
    }

    .about-image img {
        height: 400px;
    }

    .contact-wrapper {
        grid-template-columns: 1fr;
        gap: var(--space-xl);
    }

    .footer-content {
        grid-template-columns: 1fr 1fr;
        gap: var(--space-xl);
    }

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

    .radio-group {
        grid-template-columns: 1fr;
    }

    .contact-form {
        padding: var(--space-lg);
    }

    .form-section-title {
        font-size: 1rem;
    }

    .footer-bottom {
        flex-direction: column;
        gap: var(--space-md);
        text-align: center;
    }

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

@media (min-width: 641px) and (max-width: 968px) {
    .tech-showcase {
        grid-template-columns: repeat(2, 1fr);
        gap: var(--space-lg);
    }

    .tech-card {
        padding: var(--space-lg);
    }

    .tech-card-header h3 {
        font-size: 1.0625rem;
    }

    .tech-icon {
        width: 56px;
        height: 56px;
        font-size: 1.875rem;
    }

    .tech-logo {
        padding: 10px 12px;
    }

    .tech-logo i {
        font-size: 1.75rem;
    }

    .tech-logo span {
        font-size: 0.875rem;
    }

    .trust-stats {
        grid-template-columns: repeat(2, 1fr);
        gap: var(--space-md);
    }

    .trust-stat {
        flex-direction: column;
        text-align: center;
        gap: var(--space-sm);
    }

    .stat-icon {
        width: 56px;
        height: 56px;
    }

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

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

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

    .project-card,
    .project-card.large {
        grid-column: span 1;
    }

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

@media (max-width: 640px) {
    :root {
        --space-3xl: 3rem;
        --space-2xl: 2.5rem;
    }

    .container {
        padding: 0 var(--space-md);
    }

    .hero {
        padding: calc(120px + var(--space-xl)) 0 var(--space-xl);
    }

    section {
        padding: var(--space-2xl) 0;
    }

    h1, .hero-title {
        font-size: 2rem;
        line-height: 1.2;
    }

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

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

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

    .cta-description {
        font-size: 1rem;
    }

    .service-card {
        padding: var(--space-lg);
    }

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

    .testimonial-card {
        padding: var(--space-lg);
    }

    .tech-logos {
        grid-template-columns: 1fr;
        gap: var(--space-sm);
    }

    .tech-logo {
        padding: 10px 12px;
        min-height: 48px;
    }

    .tech-logo i {
        font-size: 1.5rem;
    }

    .tech-logo span {
        font-size: 0.8125rem;
    }

    .trust-stats {
        grid-template-columns: 1fr;
        gap: var(--space-md);
    }

    .trust-stat {
        flex-direction: row;
        padding: var(--space-md);
    }

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

    .stat-icon i {
        font-size: 1.375rem;
    }

    .stat-content h4 {
        font-size: 1.125rem;
    }

    .stat-content p {
        font-size: 0.8125rem;
    }

    .project-image {
        height: 200px;
    }

    .footer-content {
        grid-template-columns: 1fr;
        gap: var(--space-lg);
    }

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

    .about-image img {
        height: 300px;
    }

    .contact-form {
        padding: var(--space-lg);
    }

    .btn {
        padding: 0.875rem 1.5rem;
        font-size: 0.9375rem;
    }

    .btn-large {
        padding: 1rem 1.75rem;
        font-size: 1rem;
    }

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

    .stat {
        text-align: center;
    }

    .trust-text {
        font-size: 0.8125rem;
        gap: var(--space-sm);
    }

    /* Disable heavy animations on mobile for performance */
    .hero::before,
    .hero::after,
    .cta-section::before,
    .cta-section::after {
        animation: none;
    }

    .image-decoration {
        display: none;
    }
}

@media (max-width: 480px) {
    /* Root spacing adjustments */
    :root {
        --space-3xl: 2.5rem;
        --space-2xl: 2rem;
    }

    /* Container padding */
    .container {
        padding: 0 var(--space-md);
    }

    /* Typography extra small */
    h1, .hero-title {
        font-size: 1.75rem;
        line-height: 1.2;
    }

    h2, .section-title {
        font-size: 1.5rem;
        line-height: 1.3;
    }

    .section-description {
        font-size: 0.9375rem;
        line-height: 1.6;
    }

    /* Hero mobile optimization */
    .hero {
        padding: calc(100px + var(--space-xl)) 0 var(--space-xl);
    }

    .hero-title {
        font-size: 1.75rem;
        margin-bottom: var(--space-md);
    }

    .hero-description {
        font-size: 0.9375rem;
        margin-bottom: var(--space-lg);
    }

    .hero-stats {
        padding-top: var(--space-lg);
        gap: var(--space-md);
    }

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

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

    /* Buttons touch-friendly */
    .btn {
        padding: 0.875rem 1.5rem;
        font-size: 0.9375rem;
        min-height: 44px;
    }

    .btn-large {
        padding: 1rem 1.75rem;
        font-size: 1rem;
        min-height: 48px;
    }

    /* Trust text mobile */
    .trust-text {
        font-size: 0.75rem;
        gap: 6px;
    }

    /* Service cards */
    .service-card {
        padding: var(--space-lg);
    }

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

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

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

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

    /* CTA Section */
    .cta-title {
        font-size: 1.5rem;
    }

    .cta-description {
        font-size: 0.9375rem;
    }

    /* Contact section */
    .detail-icon {
        width: 40px;
        height: 40px;
    }

    .contact-form {
        padding: var(--space-md);
    }

    .form-section {
        margin-bottom: var(--space-lg);
        padding-bottom: var(--space-lg);
    }

    .form-section-title {
        font-size: 0.9375rem;
    }

    .form-section-title i {
        font-size: 1rem;
    }

    .form-group label {
        font-size: 0.8125rem;
    }

    .form-group input,
    .form-group textarea,
    .form-group select {
        font-size: 0.9375rem;
        padding: 0.875rem 1rem;
    }

    .radio-option,
    .checkbox-option {
        padding: 0.75rem 0.875rem;
    }

    .radio-label,
    .checkbox-label {
        font-size: 0.875rem;
    }

    .checkbox-label strong {
        font-size: 0.875rem;
    }

    .checkbox-label small {
        font-size: 0.75rem;
    }

    .form-notice {
        font-size: 0.75rem;
    }

    /* Social links */
    .social-links a {
        width: 40px;
        height: 40px;
        font-size: 1rem;
    }

    /* Project cards */
    .portfolio-grid {
        grid-template-columns: 1fr;
        gap: var(--space-sm);
    }

    .project-card,
    .project-card.large {
        grid-column: span 1;
        display: block;
    }

    .project-content {
        padding: var(--space-md);
    }

    .project-content h3 {
        font-size: 1rem;
        margin-bottom: var(--space-sm);
    }

    .project-content p {
        font-size: 0.875rem;
        line-height: 1.5;
    }

    .project-image {
        height: 200px;
    }

    .project-card.large .project-image {
        height: 200px;
    }

    .project-tags {
        margin-bottom: var(--space-sm);
        gap: 6px;
    }

    .tag {
        font-size: 0.75rem;
        padding: 4px 10px;
    }

    .project-link {
        font-size: 0.875rem;
    }

    /* About section */
    .about-image img {
        height: 300px;
    }

    .about-features {
        grid-template-columns: 1fr;
        gap: var(--space-sm);
    }

    .feature {
        font-size: 0.875rem;
    }

    /* Footer */
    .footer-content {
        grid-template-columns: 1fr;
        gap: var(--space-lg);
    }

    .footer-links li a {
        font-size: 0.875rem;
    }

    /* Tech section extra small mobile */
    .tech-card {
        padding: var(--space-md);
    }

    .tech-icon {
        width: 48px;
        height: 48px;
        font-size: 1.5rem;
    }

    .tech-card-header h3 {
        font-size: 1rem;
    }

    .tech-logo {
        padding: 8px 10px;
        gap: 8px;
    }

    .tech-logo i {
        font-size: 1.375rem;
    }

    .tech-logo span {
        font-size: 0.75rem;
    }

    .trust-stat {
        flex-direction: column;
        text-align: center;
        padding: var(--space-sm);
    }

    .stat-icon {
        width: 48px;
        height: 48px;
    }

    .stat-icon i {
        font-size: 1.25rem;
    }

    .stat-content h4 {
        font-size: 1rem;
    }

    .stat-content p {
        font-size: 0.75rem;
    }

    .featured-badge {
        font-size: 0.625rem;
        padding: 3px 8px;
    }
}
