/* ===================================
   VARIABLES & RESET
   =================================== */

:root {
    /* Palette Cyan #31E2C2 */
    --color-primary: #31E2C2;
    --color-primary-light: #6EEEDD;
    --color-primary-dark: #1AB89E;
    --color-secondary: #6366F1;

    /* Neutrals */
    --color-bg: #FAFAFA;
    --color-bg-alt: #F5F5F5;
    --color-text: #1A1A1A;
    --color-text-muted: #6B7280;
    --color-border: #E5E7EB;
    --color-white: #FFFFFF;

    /* Spacing */
    --container-max-width: 1200px;
    --section-padding: 180px;
    --section-padding-mobile: 100px;

    /* Shadows */
    --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);

    /* Border radius */
    --radius-sm: 6px;
    --radius-md: 12px;
    --radius-lg: 16px;

    /* Transitions */
    --transition-base: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    --transition-slow: all 0.5s cubic-bezier(0.4, 0, 0.2, 1);
}

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

html {
    scroll-behavior: smooth;
}

body {
    font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
    font-size: 16px;
    line-height: 1.6;
    color: var(--color-text);
    background-color: var(--color-bg);
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
    overflow-x: hidden;
}

/* ===================================
   DECORATIVE BACKGROUND
   =================================== */

.decorative-bg {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: -1;
    pointer-events: none;
    overflow: hidden;
}

.floating-shape {
    position: absolute;
    border-radius: 50%;
    opacity: 0.08;
    animation: float 20s ease-in-out infinite;
}

.shape-1 {
    width: 400px;
    height: 400px;
    background: linear-gradient(135deg, var(--color-primary), var(--color-secondary));
    top: -100px;
    right: -100px;
    animation-delay: 0s;
}

.shape-2 {
    width: 300px;
    height: 300px;
    background: linear-gradient(225deg, var(--color-primary-light), var(--color-primary));
    bottom: 10%;
    left: -50px;
    animation-delay: -7s;
}

.shape-3 {
    width: 250px;
    height: 250px;
    background: linear-gradient(45deg, var(--color-secondary), var(--color-primary-dark));
    top: 50%;
    right: 5%;
    animation-delay: -14s;
}

.grid-pattern {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-image:
        linear-gradient(var(--color-border) 1px, transparent 1px),
        linear-gradient(90deg, var(--color-border) 1px, transparent 1px);
    background-size: 50px 50px;
    opacity: 0.3;
}

@keyframes float {
    0%, 100% {
        transform: translate(0, 0) rotate(0deg);
    }
    33% {
        transform: translate(30px, -30px) rotate(120deg);
    }
    66% {
        transform: translate(-20px, 20px) rotate(240deg);
    }
}

/* ===================================
   TYPOGRAPHY
   =================================== */

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

h1 {
    font-size: clamp(2.5rem, 5vw, 4rem);
}

h2 {
    font-size: clamp(2rem, 4vw, 3rem);
}

h3 {
    font-size: clamp(1.5rem, 3vw, 2rem);
}

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

/* ===================================
   LAYOUT
   =================================== */

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

.section {
    padding: var(--section-padding) 0;
    position: relative;
}

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

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

.section-title {
    margin-bottom: 12px;
}

.section-subtitle {
    font-size: 1.125rem;
    color: var(--color-text-muted);
    max-width: 600px;
    margin: 0 auto;
}

/* ===================================
   NAVIGATION
   =================================== */

.nav {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    background-color: rgba(255, 255, 255, 0.8);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    border-bottom: 1px solid var(--color-border);
    z-index: 1000;
    transition: var(--transition-base);
}

.nav-content {
    display: flex;
    align-items: center;
    justify-content: space-between;
    height: 70px;
}

.nav-logo {
    font-size: 1.5rem;
    font-weight: 700;
    color: var(--color-primary);
    text-decoration: none;
    transition: var(--transition-base);
}

.nav-logo:hover {
    transform: scale(1.05);
}

.nav-links {
    display: flex;
    gap: 32px;
    align-items: center;
}

.nav-link {
    color: var(--color-text);
    text-decoration: none;
    font-weight: 500;
    font-size: 0.9375rem;
    transition: var(--transition-base);
    position: relative;
}

.nav-link::after {
    content: '';
    position: absolute;
    bottom: -4px;
    left: 0;
    width: 0;
    height: 2px;
    background: linear-gradient(90deg, var(--color-primary), var(--color-secondary));
    transition: var(--transition-base);
}

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

.nav-link-cta {
    background: linear-gradient(135deg, var(--color-primary), var(--color-secondary));
    color: var(--color-white);
    padding: 8px 20px;
    border-radius: var(--radius-sm);
}

.nav-link-cta::after {
    display: none;
}

.nav-link-cta:hover {
    transform: translateY(-2px);
    box-shadow: var(--shadow-md);
}

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

.mobile-menu-btn span {
    width: 24px;
    height: 2px;
    background-color: var(--color-text);
    transition: var(--transition-base);
    border-radius: 2px;
}

.mobile-menu {
    position: fixed;
    top: 70px;
    left: 0;
    width: 100%;
    height: 0;
    background-color: var(--color-white);
    overflow: hidden;
    transition: var(--transition-base);
    z-index: 999;
    border-bottom: 1px solid var(--color-border);
}

.mobile-menu.active {
    height: auto;
}

.mobile-menu-content {
    display: flex;
    flex-direction: column;
    padding: 20px 24px;
    gap: 16px;
}

.mobile-menu-link {
    color: var(--color-text);
    text-decoration: none;
    font-weight: 500;
    font-size: 1.125rem;
    padding: 12px 0;
    border-bottom: 1px solid var(--color-border);
    transition: var(--transition-base);
}

.mobile-menu-link:hover {
    color: var(--color-primary);
    padding-left: 8px;
}

/* ===================================
   BUTTONS
   =================================== */

.btn {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 14px 28px;
    border-radius: var(--radius-md);
    font-weight: 600;
    font-size: 1rem;
    text-decoration: none;
    transition: var(--transition-base);
    cursor: pointer;
    border: none;
}

.btn-primary {
    background: linear-gradient(135deg, var(--color-primary), var(--color-secondary));
    color: var(--color-white);
    box-shadow: var(--shadow-md);
}

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

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

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

/* ===================================
   HERO SECTION
   =================================== */

.hero {
    min-height: 100vh;
    display: flex;
    align-items: center;
    padding-top: 100px;
    padding-bottom: 60px;
}

.hero .container {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 60px;
    align-items: center;
}

.hero-content {
    display: flex;
    flex-direction: column;
    gap: 24px;
}

.hero-badge {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 8px 16px;
    background-color: var(--color-white);
    border: 1px solid var(--color-border);
    border-radius: 100px;
    width: fit-content;
    font-size: 0.875rem;
    font-weight: 500;
    color: var(--color-text);
}

.badge-icon {
    color: #10B981;
    animation: pulse 2s ease-in-out infinite;
}

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

.hero-title {
    margin: 0;
}

.hero-description {
    font-size: 1.25rem;
    color: var(--color-text-muted);
    line-height: 1.7;
    max-width: 540px;
}

.hero-cta {
    display: flex;
    gap: 16px;
    flex-wrap: wrap;
}

.hero-stats {
    display: flex;
    gap: 32px;
    margin-top: 20px;
    flex-wrap: wrap;
}

.stat {
    display: flex;
    align-items: center;
    gap: 12px;
}

.stat-icon {
    width: 40px;
    height: 40px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: linear-gradient(135deg, var(--color-primary-light), var(--color-primary));
    color: var(--color-white);
    border-radius: var(--radius-sm);
}

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

.stat-label {
    font-size: 0.875rem;
    color: var(--color-text-muted);
}

/* Hero Visual - Code Window */
.hero-visual {
    display: flex;
    justify-content: center;
    align-items: center;
}

.code-window {
    background: var(--color-white);
    border-radius: var(--radius-lg);
    box-shadow: var(--shadow-xl);
    overflow: hidden;
    width: 100%;
    max-width: 500px;
    border: 1px solid var(--color-border);
}

.code-window-header {
    background: linear-gradient(135deg, #f8f9fa, #e9ecef);
    padding: 12px 16px;
    display: flex;
    align-items: center;
    gap: 12px;
    border-bottom: 1px solid var(--color-border);
}

.code-dots {
    display: flex;
    gap: 6px;
}

.code-dots span {
    width: 12px;
    height: 12px;
    border-radius: 50%;
    background-color: #ddd;
}

.code-dots span:nth-child(1) {
    background-color: #ff5f56;
}

.code-dots span:nth-child(2) {
    background-color: #ffbd2e;
}

.code-dots span:nth-child(3) {
    background-color: #27c93f;
}

.code-title {
    font-size: 0.875rem;
    color: var(--color-text-muted);
    font-weight: 500;
}

.code-content {
    padding: 24px;
    font-family: 'Courier New', monospace;
    font-size: 0.875rem;
    line-height: 1.8;
    background-color: #1e1e1e;
    color: #d4d4d4;
    overflow-x: auto;
}

.code-keyword {
    color: #569cd6;
}

.code-class {
    color: #4ec9b0;
}

.code-function {
    color: #dcdcaa;
}

.code-variable {
    color: #9cdcfe;
}

.code-string {
    color: #ce9178;
}

.code-comment {
    color: #6a9955;
    font-style: italic;
}

/* ===================================
   SERVICES SECTION
   =================================== */

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

.service-card {
    background: var(--color-white);
    padding: 32px;
    border-radius: var(--radius-lg);
    border: 1px solid var(--color-border);
    transition: var(--transition-base);
    display: flex;
    flex-direction: column;
}

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

.service-icon {
    width: 56px;
    height: 56px;
    background: linear-gradient(135deg, var(--color-primary-light), var(--color-primary));
    border-radius: var(--radius-md);
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 20px;
    color: var(--color-white);
}

.service-title {
    font-size: 1.5rem;
    margin-bottom: 12px;
}

.service-description {
    color: var(--color-text-muted);
    margin-bottom: 20px;
    line-height: 1.7;
}

.service-features {
    list-style: none;
    display: flex;
    flex-direction: column;
    gap: 10px;
    margin-top: auto;
}

.service-features li {
    padding-left: 24px;
    position: relative;
    color: var(--color-text-muted);
    font-size: 0.9375rem;
}

.service-features li::before {
    content: '✓';
    position: absolute;
    left: 0;
    color: var(--color-primary);
    font-weight: 700;
}

/* ===================================
   PROCESS SECTION
   =================================== */

.process-timeline {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 48px;
    max-width: 900px;
    margin: 0 auto;
}

.process-step {
    position: relative;
    display: flex;
    gap: 24px;
    align-items: flex-start;
}

.process-step-number {
    font-size: 2.5rem;
    font-weight: 700;
    color: var(--color-primary);
    line-height: 1;
    flex-shrink: 0;
    opacity: 0.3;
}

.process-step-content {
    flex: 1;
}

.process-step-icon {
    width: 48px;
    height: 48px;
    background: var(--color-bg);
    border-radius: var(--radius-md);
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 16px;
    color: var(--color-primary);
    border: 2px solid var(--color-border);
    transition: var(--transition-base);
}

.process-step:hover .process-step-icon {
    background: linear-gradient(135deg, var(--color-primary-light), var(--color-primary));
    color: var(--color-white);
    border-color: transparent;
    transform: scale(1.05);
}

.process-step-title {
    font-size: 1.25rem;
    margin-bottom: 12px;
    color: var(--color-text);
    font-weight: 600;
}

.process-step-description {
    color: var(--color-text-muted);
    line-height: 1.7;
    font-size: 0.9375rem;
}

/* Responsive */
@media (max-width: 768px) {
    .process-timeline {
        grid-template-columns: 1fr;
        gap: 40px;
    }

    .process-step {
        flex-direction: column;
        gap: 16px;
    }

    .process-step-number {
        font-size: 2rem;
    }
}

/* ===================================
   PROJECTS SECTION
   =================================== */

.projects-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(350px, 1fr));
    gap: 32px;
}

.project-card {
    background: var(--color-white);
    border-radius: var(--radius-lg);
    overflow: hidden;
    border: 1px solid var(--color-border);
    transition: var(--transition-base);
    display: flex;
    flex-direction: column;
}

.project-card:hover {
    transform: translateY(-6px);
    box-shadow: var(--shadow-xl);
}

.project-image {
    position: relative;
    overflow: hidden;
    aspect-ratio: 16/10;
    background-color: var(--color-bg-alt);
}

.project-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: var(--transition-slow);
}

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

.project-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(135deg, rgba(49, 226, 194, 0.9), rgba(99, 102, 241, 0.9));
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 0;
    transition: var(--transition-base);
}

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

/* Work In Progress Project Styles */
.project-image-wip {
    background: linear-gradient(135deg,
        rgba(49, 226, 194, 0.1) 0%,
        rgba(99, 102, 241, 0.1) 100%),
        linear-gradient(45deg,
        var(--color-bg-alt) 25%,
        transparent 25%,
        transparent 75%,
        var(--color-bg-alt) 75%,
        var(--color-bg-alt)),
        linear-gradient(45deg,
        var(--color-bg-alt) 25%,
        transparent 25%,
        transparent 75%,
        var(--color-bg-alt) 75%,
        var(--color-bg-alt));
    background-size: 100% 100%, 40px 40px, 40px 40px;
    background-position: 0 0, 0 0, 20px 20px;
}

.project-wip-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
    backdrop-filter: blur(8px);
    -webkit-backdrop-filter: blur(8px);
}

.project-wip-badge {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 12px;
    padding: 24px 32px;
    background: linear-gradient(135deg, var(--color-primary-light), var(--color-primary));
    border-radius: var(--radius-lg);
    color: var(--color-white);
    font-weight: 700;
    font-size: 1.25rem;
    letter-spacing: 0.1em;
    box-shadow: var(--shadow-xl);
    animation: pulse-wip 2s ease-in-out infinite;
}

.project-wip-badge svg {
    width: 32px;
    height: 32px;
}

@keyframes pulse-wip {
    0%, 100% {
        transform: scale(1);
        box-shadow: var(--shadow-xl);
    }
    50% {
        transform: scale(1.05);
        box-shadow: 0 25px 30px -5px rgba(49, 226, 194, 0.3), 0 15px 15px -5px rgba(49, 226, 194, 0.2);
    }
}

.project-link {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 12px 24px;
    background: var(--color-white);
    color: var(--color-primary);
    text-decoration: none;
    font-weight: 600;
    border-radius: var(--radius-md);
    transition: var(--transition-base);
}

.project-link:hover {
    transform: scale(1.05);
}

.project-content {
    padding: 24px;
    display: flex;
    flex-direction: column;
    flex: 1;
}

.project-tags {
    display: flex;
    gap: 8px;
    margin-bottom: 12px;
    flex-wrap: wrap;
}

.project-tag {
    padding: 4px 12px;
    background-color: var(--color-bg);
    border-radius: var(--radius-sm);
    font-size: 0.75rem;
    font-weight: 600;
    color: var(--color-primary);
}

.project-title {
    font-size: 1.5rem;
    margin-bottom: 8px;
}

.project-description {
    color: var(--color-text-muted);
    line-height: 1.7;
    margin-bottom: 16px;
}

.project-metrics {
    display: flex;
    gap: 24px;
    padding-top: 16px;
    border-top: 1px solid var(--color-border);
    margin-top: auto;
}

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

.metric-value {
    font-size: 1.25rem;
    font-weight: 700;
    color: var(--color-primary);
}

.metric-label {
    font-size: 0.875rem;
    color: var(--color-text-muted);
}

/* ===================================
   CONTACT SECTION
   =================================== */

.contact-wrapper {
    display: grid;
    grid-template-columns: 1.2fr 1fr;
    gap: 60px;
    align-items: center;
}

.contact-content {
    display: flex;
    flex-direction: column;
    gap: 24px;
}

.contact-description {
    font-size: 1.125rem;
    color: var(--color-text-muted);
    line-height: 1.7;
}

.contact-info {
    display: flex;
    flex-direction: column;
    gap: 16px;
    margin-top: 12px;
}

.contact-item {
    display: flex;
    align-items: center;
    gap: 12px;
    color: var(--color-text);
}

.contact-item svg {
    color: var(--color-primary);
    flex-shrink: 0;
}

.contact-link {
    color: var(--color-text);
    text-decoration: none;
    font-weight: 500;
    transition: var(--transition-base);
}

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

.social-links {
    display: flex;
    gap: 12px;
    margin-top: 12px;
}

.social-link {
    width: 44px;
    height: 44px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: var(--color-bg);
    border: 1px solid var(--color-border);
    border-radius: var(--radius-sm);
    color: var(--color-text);
    transition: var(--transition-base);
}

.social-link:hover {
    background: linear-gradient(135deg, var(--color-primary), var(--color-secondary));
    color: var(--color-white);
    transform: translateY(-2px);
    border-color: transparent;
}

/* Contact Card */
.contact-visual {
    display: flex;
    justify-content: center;
}

.contact-card {
    background: var(--color-white);
    padding: 28px;
    border-radius: var(--radius-lg);
    border: 1px solid var(--color-border);
    box-shadow: var(--shadow-lg);
    width: 100%;
    max-width: 400px;
}

.contact-card-header {
    display: flex;
    align-items: center;
    gap: 16px;
    margin-bottom: 20px;
}

.contact-card-avatar {
    width: 56px;
    height: 56px;
    background: linear-gradient(135deg, var(--color-primary-light), var(--color-primary));
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--color-white);
}

.contact-card-name {
    font-size: 1.125rem;
    font-weight: 700;
    color: var(--color-text);
}

.contact-card-role {
    font-size: 0.875rem;
    color: var(--color-text-muted);
}

.contact-card-stats {
    display: flex;
    flex-direction: column;
    gap: 12px;
    padding-top: 20px;
    border-top: 1px solid var(--color-border);
}

.contact-card-stat {
    display: flex;
    align-items: center;
    gap: 8px;
    font-size: 0.9375rem;
    color: var(--color-text-muted);
}

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

/* ===================================
   FOOTER
   =================================== */

.footer {
    background-color: var(--color-white);
    border-top: 1px solid var(--color-border);
    padding: 40px 0;
}

.footer-content {
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
    gap: 20px;
}

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

.footer-links {
    display: flex;
    gap: 24px;
}

.footer-links a {
    color: var(--color-text-muted);
    text-decoration: none;
    font-size: 0.9375rem;
    transition: var(--transition-base);
}

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

/* ===================================
   SCROLL ANIMATIONS
   =================================== */

/* Initial state - elements hidden */
.section-header,
.service-card,
.process-step,
.project-card,
.contact-wrapper,
.hero-stats {
    opacity: 0;
    transform: translateY(30px);
    transition: opacity 0.6s cubic-bezier(0.4, 0, 0.2, 1),
                transform 0.6s cubic-bezier(0.4, 0, 0.2, 1);
}

/* Stagger animation delays */
.service-card,
.process-step,
.project-card {
    transition-delay: calc(var(--animation-order) * 0.1s);
}

/* Animated state - elements visible */
.animate-in {
    opacity: 1;
    transform: translateY(0);
}

/* Alternative animation for section headers */
.section-header {
    transform: translateY(20px);
}

/* Hero stats fade in from sides */
.hero-stats .stat:nth-child(1) {
    transform: translateX(-30px);
}

.hero-stats .stat:nth-child(2) {
    transform: translateX(30px);
}

.hero-stats.animate-in .stat {
    transform: translateX(0);
}

/* ===================================
   RESPONSIVE
   =================================== */

@media (max-width: 1024px) {
    .hero .container {
        grid-template-columns: 1fr;
        gap: 40px;
    }

    .hero-visual {
        order: -1;
    }

    .contact-wrapper {
        grid-template-columns: 1fr;
        gap: 40px;
    }

    .contact-visual {
        order: -1;
    }
}

@media (max-width: 768px) {
    :root {
        --section-padding: 100px;
    }

    .nav-links {
        display: none;
    }

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

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

    .hero-cta {
        flex-direction: column;
    }

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

    .hero-stats {
        flex-direction: column;
        gap: 20px;
    }

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

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

    .hero {
        padding-top: 80px;
    }

    .code-window {
        max-width: 100%;
    }

    .code-content {
        font-size: 0.75rem;
        padding: 16px;
    }

    .project-metrics {
        flex-direction: column;
        gap: 12px;
    }
}

/* ===================================
   ACCESSIBILITY
   =================================== */

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

    /* Disable scroll animations for reduced motion */
    .section-header,
    .service-card,
    .process-step,
    .project-card,
    .contact-wrapper,
    .hero-stats {
        opacity: 1 !important;
        transform: none !important;
    }
}

/* ===================================
   SUBTLE CONTINUOUS ANIMATIONS
   =================================== */

/* Breathing animation on buttons - permanent */
.btn-primary {
    animation: breathe 2.5s ease-in-out infinite;
}

@keyframes breathe {
    0%, 100% {
        box-shadow: 0 4px 14px 0 rgba(49, 226, 194, 0.4);
        transform: translateY(0px);
    }
    50% {
        box-shadow: 0 6px 20px 0 rgba(49, 226, 194, 0.6);
        transform: translateY(-3px);
    }
}

/* Floating animation for cards - permanent */
.service-card {
    animation: float-card 3s ease-in-out infinite;
    will-change: transform;
}

.service-card:nth-child(1) {
    animation-delay: 0s;
}

.service-card:nth-child(2) {
    animation-delay: 1s;
}

.service-card:nth-child(3) {
    animation-delay: 2s;
}

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

/* Project cards floating - permanent */
.project-card {
    animation: float-card-project 3.5s ease-in-out infinite;
    will-change: transform;
}

.project-card:nth-child(1) {
    animation-delay: 0s;
}

.project-card:nth-child(2) {
    animation-delay: 1.2s;
}

.project-card:nth-child(3) {
    animation-delay: 2.4s;
}

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

/* Subtle rotation on icons - permanent */
.service-icon {
    animation: rotate-subtle 4s ease-in-out infinite;
    will-change: transform;
}

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

.service-card:nth-child(2) .service-icon {
    animation-delay: 1.3s;
}

.service-card:nth-child(3) .service-icon {
    animation-delay: 2.6s;
}

@keyframes rotate-subtle {
    0%, 100% {
        transform: rotate(0deg) scale(1);
    }
    25% {
        transform: rotate(-5deg) scale(1.08);
    }
    75% {
        transform: rotate(5deg) scale(1.08);
    }
}

/* Shimmer effect on "Disponible" badge */
.hero-badge {
    position: relative;
    overflow: hidden;
}

.hero-badge::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.5), transparent);
    animation: shimmer 2.5s ease-in-out infinite;
}

@keyframes shimmer {
    0% {
        left: -100%;
    }
    100% {
        left: 100%;
    }
}

/* Gentle animation on code window */
.code-window {
    animation: float-code 3s ease-in-out infinite;
    will-change: transform;
}

@keyframes float-code {
    0%, 100% {
        transform: translateY(0px) scale(1);
    }
    50% {
        transform: translateY(-12px) scale(1.02);
    }
}

/* Continuous fade for grid pattern */
.grid-pattern {
    animation: fade-grid 3s ease-in-out infinite;
}

@keyframes fade-grid {
    0%, 100% {
        opacity: 0.2;
    }
    50% {
        opacity: 0.45;
    }
}

/* Subtle wave animation on process steps */
.process-step-number {
    animation: wave-number 2.5s ease-in-out infinite;
    will-change: transform, opacity;
}

.process-step:nth-child(1) .process-step-number {
    animation-delay: 0s;
}

.process-step:nth-child(2) .process-step-number {
    animation-delay: 0.6s;
}

.process-step:nth-child(3) .process-step-number {
    animation-delay: 1.2s;
}

.process-step:nth-child(4) .process-step-number {
    animation-delay: 1.8s;
}

@keyframes wave-number {
    0%, 100% {
        opacity: 0.3;
        transform: scale(1);
    }
    50% {
        opacity: 0.7;
        transform: scale(1.12);
    }
}

/* Floating shapes - enhanced animation */
.shape-1 {
    animation: float-shape-1 15s ease-in-out infinite;
    will-change: transform;
}

.shape-2 {
    animation: float-shape-2 18s ease-in-out infinite;
    will-change: transform;
}

.shape-3 {
    animation: float-shape-3 20s ease-in-out infinite;
    will-change: transform;
}

@keyframes float-shape-1 {
    0%, 100% {
        transform: translate(0, 0) rotate(0deg);
    }
    33% {
        transform: translate(50px, -50px) rotate(120deg);
    }
    66% {
        transform: translate(-40px, 40px) rotate(240deg);
    }
}

@keyframes float-shape-2 {
    0%, 100% {
        transform: translate(0, 0) rotate(0deg);
    }
    33% {
        transform: translate(-60px, 40px) rotate(-120deg);
    }
    66% {
        transform: translate(50px, -50px) rotate(-240deg);
    }
}

@keyframes float-shape-3 {
    0%, 100% {
        transform: translate(0, 0) rotate(0deg) scale(1);
    }
    50% {
        transform: translate(40px, -60px) rotate(180deg) scale(1.15);
    }
}

/* Stats animation - disabled for stability */

/* Contact card animation */
.contact-card {
    animation: float-contact 3.5s ease-in-out infinite;
    will-change: transform;
}

@keyframes float-contact {
    0%, 100% {
        transform: translateY(0px) scale(1);
    }
    50% {
        transform: translateY(-10px) scale(1.015);
    }
}

/* Focus styles for keyboard navigation */
a:focus-visible,
button:focus-visible {
    outline: 2px solid var(--color-primary);
    outline-offset: 2px;
}
