/* Reset y Variables */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

:root {
    /* Paleta de colores pastel verde con mejor contraste */
    --primary-color: #4a9960;
    --primary-dark: #2d5a3d;
    --primary-light: #7dd3a0;
    --secondary-color: #1a3d26;
    --secondary-light: #2d5a3d;
    --accent-color: #5cb85c;
    --accent-dark: #4a7c59;
    --success-color: #4a9960;
    --warning-color: #b8860b;
    --error-color: #cd5c5c;
    
    /* Textos con mejor contraste */
    --text-primary: #1a3d26;
    --text-secondary: #2d5a3d;
    --text-muted: #4a7c59;
    --text-light: #6b8e6b;
    --text-white: #ffffff;
    
    /* Fondos más suaves */
    --bg-primary: #ffffff;
    --bg-secondary: #f8fdf8;
    --bg-tertiary: #f0f8f0;
    --bg-dark: #1a3d26;
    --bg-gradient: linear-gradient(135deg, #4a9960 0%, #5cb85c 100%);
    --bg-gradient-dark: linear-gradient(135deg, #2d5a3d 0%, #1a3d26 100%);
    
    /* Bordes y sombras */
    --border-color: #e0f2e0;
    --border-light: #f0f8f0;
    --shadow-sm: 0 1px 2px 0 rgba(26, 61, 38, 0.05);
    --shadow-md: 0 4px 6px -1px rgba(26, 61, 38, 0.1), 0 2px 4px -1px rgba(26, 61, 38, 0.06);
    --shadow-lg: 0 10px 15px -3px rgba(26, 61, 38, 0.1), 0 4px 6px -2px rgba(26, 61, 38, 0.05);
    --shadow-xl: 0 20px 25px -5px rgba(26, 61, 38, 0.1), 0 10px 10px -5px rgba(26, 61, 38, 0.04);
    --shadow-2xl: 0 25px 50px -12px rgba(26, 61, 38, 0.25);
    --shadow-colored: 0 10px 25px -5px rgba(74, 153, 96, 0.2);
    
    /* Radios */
    --radius-sm: 4px;
    --radius-md: 6px;
    --radius-lg: 8px;
    --radius-xl: 12px;
    --radius-2xl: 16px;
    --radius-full: 9999px;
    
    /* Transiciones */
    --transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    --transition-fast: all 0.15s cubic-bezier(0.4, 0, 0.2, 1);
    --transition-slow: all 0.5s cubic-bezier(0.4, 0, 0.2, 1);
    
    /* Espaciado */
    --spacing-xs: 0.25rem;
    --spacing-sm: 0.5rem;
    --spacing-md: 1rem;
    --spacing-lg: 1.5rem;
    --spacing-xl: 2rem;
    --spacing-2xl: 3rem;
    --spacing-3xl: 4rem;
    
    /* Tipografía avanzada */
    --font-primary: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
    --font-display: 'Playfair Display', Georgia, serif;
    --font-mono: 'JetBrains Mono', 'Fira Code', Consolas, monospace;
    
    /* Escalas tipográficas */
    --text-xs: 0.75rem;     /* 12px */
    --text-sm: 0.875rem;    /* 14px */
    --text-base: 1rem;      /* 16px */
    --text-lg: 1.125rem;    /* 18px */
    --text-xl: 1.25rem;     /* 20px */
    --text-2xl: 1.5rem;     /* 24px */
    --text-3xl: 1.875rem;   /* 30px */
    --text-4xl: 2.25rem;    /* 36px */
    --text-5xl: 3rem;       /* 48px */
    --text-6xl: 3.75rem;    /* 60px */
    --text-7xl: 4.5rem;     /* 72px */
    
    /* Pesos de fuente */
    --font-light: 300;
    --font-normal: 400;
    --font-medium: 500;
    --font-semibold: 600;
    --font-bold: 700;
    --font-extrabold: 800;
    --font-black: 900;
    
    /* Alturas de línea */
    --leading-none: 1;
    --leading-tight: 1.25;
    --leading-snug: 1.375;
    --leading-normal: 1.5;
    --leading-relaxed: 1.625;
    --leading-loose: 2;
}

/* Importar fuentes profesionales */
@import url('https://fonts.googleapis.com/css2?family=Inter:wght@300;400;500;600;700;800;900&family=Playfair+Display:wght@400;500;600;700;800&family=JetBrains+Mono:wght@300;400;500;600&display=swap');

body {
    font-family: var(--font-primary);
    font-size: var(--text-base);
    font-weight: var(--font-normal);
    line-height: var(--leading-normal);
    color: var(--text-primary);
    background-color: var(--bg-primary);
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
    text-rendering: optimizeLegibility;
    scroll-behavior: smooth;
}

/* Jerarquía tipográfica profesional */
h1, .h1 {
    font-family: var(--font-display);
    font-size: var(--text-6xl);
    font-weight: var(--font-bold);
    line-height: var(--leading-tight);
    letter-spacing: -0.025em;
    color: var(--text-primary);
    margin-bottom: var(--spacing-lg);
}

h2, .h2 {
    font-family: var(--font-display);
    font-size: var(--text-4xl);
    font-weight: var(--font-semibold);
    line-height: var(--leading-tight);
    letter-spacing: -0.025em;
    color: var(--text-primary);
    margin-bottom: var(--spacing-md);
}

h3, .h3 {
    font-family: var(--font-primary);
    font-size: var(--text-2xl);
    font-weight: var(--font-semibold);
    line-height: var(--leading-snug);
    color: var(--text-primary);
    margin-bottom: var(--spacing-md);
}

h4, .h4 {
    font-family: var(--font-primary);
    font-size: var(--text-xl);
    font-weight: var(--font-medium);
    line-height: var(--leading-snug);
    color: var(--text-primary);
    margin-bottom: var(--spacing-sm);
}

h5, .h5 {
    font-family: var(--font-primary);
    font-size: var(--text-lg);
    font-weight: var(--font-medium);
    line-height: var(--leading-normal);
    color: var(--text-primary);
    margin-bottom: var(--spacing-sm);
}

h6, .h6 {
    font-family: var(--font-primary);
    font-size: var(--text-base);
    font-weight: var(--font-medium);
    line-height: var(--leading-normal);
    color: var(--text-primary);
    margin-bottom: var(--spacing-sm);
}

p {
    margin-bottom: var(--spacing-md);
    color: var(--text-secondary);
    line-height: var(--leading-relaxed);
}

/* Utilidades tipográficas */
.lead-text {
    font-size: var(--text-lg);
    font-weight: var(--font-light);
    line-height: var(--leading-relaxed);
    color: var(--text-secondary);
}

.small-text {
    font-size: var(--text-sm);
    line-height: var(--leading-normal);
}

.caption {
    font-size: var(--text-xs);
    font-weight: var(--font-medium);
    text-transform: uppercase;
    letter-spacing: 0.05em;
    color: var(--text-muted);
}

.mono {
    font-family: var(--font-mono);
    font-size: var(--text-sm);
}

/* Pesos de fuente */
.font-light { font-weight: var(--font-light); }
.font-normal { font-weight: var(--font-normal); }
.font-medium { font-weight: var(--font-medium); }
.font-semibold { font-weight: var(--font-semibold); }
.font-bold { font-weight: var(--font-bold); }
.font-extrabold { font-weight: var(--font-extrabold); }
.font-black { font-weight: var(--font-black); }

/* Alineación de texto */
.text-center { text-align: center; }
.text-left { text-align: left; }
.text-right { text-align: right; }
.text-justify { text-align: justify; }

/* Transformaciones de texto */
.uppercase { text-transform: uppercase; }
.lowercase { text-transform: lowercase; }
.capitalize { text-transform: capitalize; }

/* Espaciado de letras */
.tracking-tight { letter-spacing: -0.025em; }
.tracking-normal { letter-spacing: 0; }
.tracking-wide { letter-spacing: 0.025em; }
.tracking-wider { letter-spacing: 0.05em; }
.tracking-widest { letter-spacing: 0.1em; }

/* Tamaños de texto responsivos */
.text-responsive-sm {
    font-size: var(--text-sm);
}

.text-responsive-base {
    font-size: var(--text-base);
}

.text-responsive-lg {
    font-size: var(--text-lg);
}

.text-responsive-xl {
    font-size: var(--text-xl);
}

.text-responsive-2xl {
    font-size: var(--text-2xl);
}

/* ===== SISTEMA DE ANIMACIONES FLUIDAS ===== */

/* Variables de animación */
:root {
    --animation-duration: 0.8s;
    --animation-delay: 0.1s;
    --animation-easing: cubic-bezier(0.25, 0.46, 0.45, 0.94);
    --animation-bounce: cubic-bezier(0.68, -0.55, 0.265, 1.55);
    --stagger-delay: 0.1s;
}

/* Keyframes para efectos de revelación - más sutiles */
@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(60px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

@keyframes fadeInDown {
    from {
        opacity: 0;
        transform: translateY(-60px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

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

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

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

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

@keyframes rotateIn {
    from {
        opacity: 0;
        transform: rotate(-10deg) scale(0.9);
    }
    to {
        opacity: 1;
        transform: rotate(0deg) scale(1);
    }
}

@keyframes bounceIn {
    0% {
        opacity: 0;
        transform: scale(0.3);
    }
    50% {
        opacity: 1;
        transform: scale(1.05);
    }
    70% {
        transform: scale(0.9);
    }
    100% {
        opacity: 1;
        transform: scale(1);
    }
}

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

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

@keyframes shimmer {
    0% {
        background-position: -200% 0;
    }
    100% {
        background-position: 200% 0;
    }
}

/* Clases base para animaciones - MODIFIED FOR INSTANT LOADING */
.animate-element {
    opacity: 1 !important; /* Force visibility with !important */
    transform: translateY(0) !important; /* Force no transform with !important */
    transition: opacity 0.6s ease-out, transform 0.6s ease-out;
}

.animate-element.visible {
    opacity: 1 !important;
    transform: translateY(0) !important;
}

/* Efectos de revelación direccionales - MODIFIED FOR INSTANT LOADING */
.fade-up {
    opacity: 1 !important; /* Force visibility with !important */
    transform: translateY(0) !important; /* Force no transform with !important */
    transition: opacity 0.4s ease-out, transform 0.4s ease-out;
}

.fade-up.visible {
    opacity: 1 !important;
    transform: translateY(0) !important;
}

.fade-down {
    opacity: 1 !important; /* Force visibility with !important */
    transform: translateY(0) !important; /* Force no transform with !important */
    transition: opacity 0.4s ease-out, transform 0.4s ease-out;
}

.fade-down.visible {
    opacity: 1 !important;
    transform: translateY(0) !important;
}

.fade-left {
    opacity: 1 !important; /* Force visibility with !important */
    transform: translateX(0) !important; /* Force no transform with !important */
    transition: opacity 0.4s ease-out, transform 0.4s ease-out;
}

.fade-left.visible {
    opacity: 1 !important;
    transform: translateX(0) !important;
}

.fade-right {
    opacity: 1 !important; /* Force visibility with !important */
    transform: translateX(0) !important; /* Force no transform with !important */
    transition: opacity 0.4s ease-out, transform 0.4s ease-out;
}

.fade-right.visible {
    opacity: 1 !important;
    transform: translateX(0) !important;
}

.scale-in {
    opacity: 1 !important; /* Force visibility with !important */
    transform: scale(1) !important; /* Force no transform with !important */
    transition: opacity 0.4s ease-out, transform 0.4s ease-out;
}

.scale-in.visible {
    opacity: 1 !important;
    transform: scale(1) !important;
}

/* Fallback para elementos sin animación - asegurar visibilidad */
.fade-up:not(.visible),
.fade-down:not(.visible),
.fade-left:not(.visible),
.fade-right:not(.visible),
.scale-in:not(.visible) {
    opacity: 1 !important;
    transform: none !important;
}

/* Disable animations when JavaScript is available - INSTANT LOADING */
.js-enabled .fade-up:not(.visible) {
    opacity: 1 !important; /* Force visibility with !important */
    transform: translateY(0) !important; /* Force no transform with !important */
}

.js-enabled .fade-down:not(.visible) {
    opacity: 1 !important; /* Force visibility with !important */
    transform: translateY(0) !important; /* Force no transform with !important */
}

.js-enabled .fade-left:not(.visible) {
    opacity: 1 !important; /* Force visibility with !important */
    transform: translateX(0) !important; /* Force no transform with !important */
}

.js-enabled .fade-right:not(.visible) {
    opacity: 1 !important; /* Force visibility with !important */
    transform: translateX(0) !important; /* Force no transform with !important */
}

/* Hero text elements - Force visibility */
.hero-title,
.hero-subtitle,
.project-breadcrumb,
.project-technologies,
.project-meta {
    opacity: 1 !important;
    transform: none !important;
    visibility: visible !important;
}

/* Additional safety for hero content */
.hero-content,
.hero-text {
    opacity: 1 !important;
    transform: none !important;
    visibility: visible !important;
}

.js-enabled .scale-in:not(.visible) {
    opacity: 1 !important; /* Force visibility with !important */
    transform: scale(1) !important; /* Force no transform with !important */
}
}

/* Efectos de stagger (escalonados) - MODIFIED FOR INSTANT LOADING */
.stagger-item {
    opacity: 1; /* Changed from 0 to 1 for instant visibility */
    transform: translateY(0); /* Changed from 10px to 0 */
    transition: opacity 0.3s ease-out, transform 0.3s ease-out;
}

.stagger-item.visible {
    opacity: 1;
    transform: translateY(0);
}

.stagger-item:nth-child(1) { transition-delay: calc(var(--stagger-delay) * 1); }
.stagger-item:nth-child(2) { transition-delay: calc(var(--stagger-delay) * 2); }
.stagger-item:nth-child(3) { transition-delay: calc(var(--stagger-delay) * 3); }
.stagger-item:nth-child(4) { transition-delay: calc(var(--stagger-delay) * 4); }
.stagger-item:nth-child(5) { transition-delay: calc(var(--stagger-delay) * 5); }
.stagger-item:nth-child(6) { transition-delay: calc(var(--stagger-delay) * 6); }

.stagger-item.visible {
    opacity: 1;
    transform: translateY(0);
}

/* Transiciones suaves mejoradas */
.smooth-transition {
    transition: all var(--transition);
}

.smooth-transition-slow {
    transition: all var(--transition-slow);
}

.smooth-transition-fast {
    transition: all var(--transition-fast);
}

/* ===== EFECTOS DE HOVER Y INTERACTIVIDAD ===== */

/* Efectos de hover para botones */
.btn, .header-cta {
    position: relative;
    overflow: hidden;
    transition: all 0.3s var(--animation-easing);
    transform: translateZ(0);
    backface-visibility: hidden;
}

.btn:hover, .header-cta:hover {
    transform: translateY(-2px) scale(1.02);
    box-shadow: var(--shadow-lg);
}

.btn:active, .header-cta:active {
    transform: translateY(0) scale(0.98);
    transition-duration: 0.1s;
}

/* Efecto de ondas para botones */
.btn::before, .header-cta::before {
    content: '';
    position: absolute;
    top: 50%;
    left: 50%;
    width: 0;
    height: 0;
    background: rgba(255, 255, 255, 0.2);
    border-radius: 50%;
    transform: translate(-50%, -50%);
    transition: width 0.6s, height 0.6s;
}

.btn:hover::before, .header-cta:hover::before {
    width: 300px;
    height: 300px;
}

/* Efectos para tarjetas de proyecto */
.project-card {
    transition: all 0.4s var(--animation-easing);
    transform: translateZ(0);
    backface-visibility: hidden;
}

.project-card:hover {
    transform: translateY(-8px) scale(1.02);
    box-shadow: var(--shadow-2xl);
}

.project-card:hover .project-image img {
    transform: scale(1.1);
    transition: transform 0.6s var(--animation-easing);
}

.project-card .project-image {
    overflow: hidden;
}

.project-card .project-image img {
    transition: transform 0.6s var(--animation-easing);
    will-change: transform;
}

/* Efectos para enlaces de navegación */
.nav-link {
    position: relative;
    transition: all 0.3s var(--animation-easing);
}

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

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

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

/* Efectos para badges de tecnología */
.tech-badge {
    transition: all 0.3s var(--animation-easing);
    transform: translateZ(0);
}

.tech-badge:hover {
    transform: translateY(-3px) scale(1.05);
    box-shadow: var(--shadow-md);
}

/* Efectos de shimmer para elementos de carga */
.shimmer-effect {
    background: linear-gradient(
        90deg,
        rgba(255, 255, 255, 0) 0%,
        rgba(255, 255, 255, 0.2) 20%,
        rgba(255, 255, 255, 0.5) 60%,
        rgba(255, 255, 255, 0)
    );
    background-size: 200% auto;
    animation: shimmer 2s linear infinite;
}

/* Efectos de float para elementos decorativos */
.float-element {
    animation: float 6s ease-in-out infinite;
}

.float-element:nth-child(2n) {
    animation-delay: -2s;
    animation-duration: 8s;
}

.float-element:nth-child(3n) {
    animation-delay: -4s;
    animation-duration: 7s;
}

/* Efectos de pulse para elementos de llamada a la acción */
.pulse-element {
    animation: pulse 2s ease-in-out infinite;
}

/* Efectos de hover para el header */
.header {
    transition: all 0.3s var(--animation-easing);
}

.header.scrolled {
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
}

/* Efectos para formularios */
.form-input, .form-textarea {
    transition: all 0.3s var(--animation-easing);
    transform: translateZ(0);
}

.form-input:focus, .form-textarea:focus {
    transform: translateY(-2px);
    box-shadow: var(--shadow-md);
}

/* Efectos de hover mejorados */
.hover-lift {
    transition: all 0.3s var(--animation-easing);
    transform: translateZ(0);
}

.hover-lift:hover {
    transform: translateY(-4px);
    box-shadow: var(--shadow-lg);
}

.hover-scale {
    transition: transform 0.3s var(--animation-easing);
    transform: translateZ(0);
}

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

.hover-rotate {
    transition: transform 0.3s var(--animation-easing);
    transform: translateZ(0);
}

.hover-rotate:hover {
    transform: rotate(5deg);
}

/* Efectos de focus mejorados para accesibilidad */
.focus-visible {
    outline: 2px solid var(--primary-color);
    outline-offset: 2px;
    border-radius: var(--radius-sm);
}

/* Efectos de loading */
.loading-spinner {
    animation: spin 1s linear infinite;
}

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

/* Efecto de ondas (ripple) para botones */
.ripple-effect {
    position: absolute;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.6);
    transform: scale(0);
    animation: ripple-animation 0.6s linear;
    pointer-events: none;
}

@keyframes ripple-animation {
    to {
        transform: scale(4);
        opacity: 0;
    }
}

/* ===== OPTIMIZACIONES RESPONSIVAS Y ACCESIBILIDAD ===== */

/* Optimizaciones para dispositivos móviles */
@media (max-width: 768px) {
    :root {
        --animation-duration: 0.6s;
        --stagger-delay: 0.08s;
    }
    
    .project-card:hover {
        transform: translateY(-4px) scale(1.01);
    }
    
    .hover-lift:hover {
        transform: translateY(-2px);
    }
    
    /* Desactivar efectos 3D en móviles para mejor rendimiento */
    .project-card {
        transform: none !important;
    }
}

/* Optimizaciones para dispositivos táctiles */
@media (hover: none) and (pointer: coarse) {
    .hover-lift:hover,
    .hover-scale:hover,
    .hover-rotate:hover {
        transform: none;
    }
    
    .project-card:hover {
        transform: none;
        box-shadow: var(--shadow-md);
    }
    
    .nav-link:hover {
        transform: none;
    }
}

/* Respeto por las preferencias de movimiento reducido */
@media (prefers-reduced-motion: reduce) {
    *,
    *::before,
    *::after {
        animation-duration: 0.01ms !important;
        animation-iteration-count: 1 !important;
        transition-duration: 0.01ms !important;
        scroll-behavior: auto !important;
    }
    
    .float-element,
    .pulse-element,
    .shimmer-effect {
        animation: none !important;
    }
}

/* Optimizaciones de rendimiento */
.animate-element,
.fade-up,
.fade-down,
.fade-left,
.fade-right,
.scale-in,
.rotate-in,
.stagger-item {
    will-change: opacity, transform;
}

.animate-element.visible,
.fade-up.visible,
.fade-down.visible,
.fade-left.visible,
.fade-right.visible,
.scale-in.visible,
.rotate-in.visible,
.stagger-item.visible {
    will-change: auto;
}

/* Mejoras de contraste para accesibilidad */
@media (prefers-contrast: high) {
    .nav-link::after {
        height: 3px;
        background: var(--text-primary);
    }
    
    .focus-visible {
        outline: 3px solid var(--primary-color);
        outline-offset: 3px;
    }
}

/* Soporte para modo oscuro */
@media (prefers-color-scheme: dark) {
    .ripple-effect {
        background: rgba(255, 255, 255, 0.3);
    }
    
    .shimmer-effect {
        background: linear-gradient(
            90deg,
            rgba(255, 255, 255, 0) 0%,
            rgba(255, 255, 255, 0.1) 20%,
            rgba(255, 255, 255, 0.3) 60%,
            rgba(255, 255, 255, 0)
        );
    }
}

/* Efectos de Cursor Personalizado */
.hover-glow {
    position: relative;
}

.hover-glow::after {
    content: '';
    position: absolute;
    width: 20px;
    height: 20px;
    border-radius: 50%;
    background: radial-gradient(circle, var(--primary-color), transparent);
    opacity: 0;
    pointer-events: none;
    transition: var(--transition);
    transform: translate(-50%, -50%);
    left: var(--mouse-x, 50%);
    top: var(--mouse-y, 50%);
}

.hover-glow:hover::after {
    opacity: 0.3;
    transform: translate(-50%, -50%) scale(3);
}

/* Texto simple */
.simple-text {
    opacity: 1;
    transform: translateY(0);
}

/* Animación de Contador */
@keyframes countUp {
    from { opacity: 0; transform: translateY(20px); }
    to { opacity: 1; transform: translateY(0); }
}

.counter {
    animation: countUp 0.8s ease-out;
}

/* Imágenes básicas */
.image-basic {
    transition: var(--transition);
}

.image-basic img {
    width: 100%;
    height: auto;
}

/* Contenedores básicos */
.basic-container {
    position: relative;
    padding: var(--spacing-lg);
}

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

/* Efectos de Scroll Suaves */
.smooth-scroll {
    scroll-behavior: smooth;
}

.scroll-indicator {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 4px;
    background: var(--bg-secondary);
    z-index: 9999;
}

.scroll-progress {
    height: 100%;
    background: linear-gradient(90deg, var(--primary-color), var(--secondary-color));
    width: 0%;
    transition: width 0.1s ease-out;
}

/* Elementos básicos */
.basic-element {
    opacity: 1;
    transform: translateY(0);
}

.basic-bg {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: -1;
}

/* Efectos de Scroll Horizontal */
.horizontal-scroll {
    display: flex;
    overflow-x: auto;
    scroll-snap-type: x mandatory;
    scrollbar-width: none;
    -ms-overflow-style: none;
}

.horizontal-scroll::-webkit-scrollbar {
    display: none;
}

.horizontal-scroll-item {
    flex: 0 0 auto;
    scroll-snap-align: start;
    margin-right: var(--spacing-lg);
}

/* Scroll básico */
.basic-scroll {
    scroll-behavior: smooth;
}

/* Transiciones de Página */
.page-transition {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: var(--primary-color);
    z-index: 10000;
    transform: translateX(-100%);
    transition: transform 0.6s cubic-bezier(0.4, 0, 0.2, 1);
}

.page-transition.active {
    transform: translateX(0);
}

.page-transition.exit {
    transform: translateX(100%);
}

/* Efectos Básicos Simplificados */
.basic-transition {
    transition: var(--transition);
}

/* ===== INTERACCIONES BÁSICAS ===== */

/* Botones con efectos simples */
.btn-hover {
    transition: var(--transition);
}

.btn-hover:hover {
    transform: translateY(-1px);
    box-shadow: var(--shadow-md);
}

/* Cursor básico */
.pointer {
    cursor: pointer;
}

/* Texto con hover simple */
.text-hover {
    transition: var(--transition);
}

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

/* Efectos de tarjetas flotantes */
.floating-card {
    transition: all 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275);
    transform-style: preserve-3d;
}

.floating-card:hover {
    transform: translateY(-10px) rotateX(5deg) rotateY(5deg);
    box-shadow: 
        0 20px 40px rgba(0,0,0,0.1),
        0 0 0 1px rgba(255,255,255,0.1);
}

/* Efectos de iconos animados */
.animated-icon {
    transition: all 0.3s cubic-bezier(0.68, -0.55, 0.265, 1.55);
    transform-origin: center;
}

.animated-icon:hover {
    transform: scale(1.2) rotate(10deg);
    filter: drop-shadow(0 5px 15px rgba(0,0,0,0.3));
}

.pulse-icon {
    animation: pulse-glow 2s infinite;
}

@keyframes pulse-glow {
    0%, 100% {
        transform: scale(1);
        filter: drop-shadow(0 0 5px rgba(37, 99, 235, 0.5));
    }
    50% {
        transform: scale(1.05);
        filter: drop-shadow(0 0 20px rgba(37, 99, 235, 0.8));
    }
}

/* Efectos de loading elegantes */
.elegant-loader {
    display: inline-block;
    width: 40px;
    height: 40px;
    border: 3px solid rgba(37, 99, 235, 0.3);
    border-radius: 50%;
    border-top-color: var(--accent-color);
    animation: elegant-spin 1s ease-in-out infinite;
}

@keyframes elegant-spin {
    to {
        transform: rotate(360deg);
    }
}

/* Efectos de progreso interactivo */
.progress-ring {
    transform: rotate(-90deg);
    transition: all 0.3s ease;
}

.progress-ring:hover {
    transform: rotate(-90deg) scale(1.1);
}

.progress-circle {
    fill: none;
    stroke: rgba(37, 99, 235, 0.2);
    stroke-width: 4;
}

.progress-circle.active {
    stroke: var(--accent-color);
    stroke-dasharray: 283;
    stroke-dashoffset: 283;
    animation: progress-fill 2s ease-in-out forwards;
}

@keyframes progress-fill {
    to {
        stroke-dashoffset: 0;
    }
}

/* Efectos de tooltip elegantes */
.elegant-tooltip {
    position: relative;
    cursor: help;
}

.elegant-tooltip::before {
    content: attr(data-tooltip);
    position: absolute;
    bottom: 100%;
    left: 50%;
    transform: translateX(-50%) translateY(-5px);
    background: rgba(0, 0, 0, 0.9);
    color: white;
    padding: 8px 12px;
    border-radius: 6px;
    font-size: 14px;
    white-space: nowrap;
    opacity: 0;
    visibility: hidden;
    transition: all 0.3s cubic-bezier(0.68, -0.55, 0.265, 1.55);
    z-index: 1000;
}

.elegant-tooltip::after {
    content: '';
    position: absolute;
    bottom: 100%;
    left: 50%;
    transform: translateX(-50%);
    border: 5px solid transparent;
    border-top-color: rgba(0, 0, 0, 0.9);
    opacity: 0;
    visibility: hidden;
    transition: all 0.3s cubic-bezier(0.68, -0.55, 0.265, 1.55);
}

.elegant-tooltip:hover::before,
.elegant-tooltip:hover::after {
    opacity: 1;
    visibility: visible;
    transform: translateX(-50%) translateY(-10px);
}

/* Efectos de partículas flotantes */
.particle-container {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    overflow: hidden;
    pointer-events: none;
}

.particle {
    position: absolute;
    width: 4px;
    height: 4px;
    background: var(--accent-color);
    border-radius: 50%;
    opacity: 0.6;
    animation: float-particle 6s infinite linear;
}

@keyframes float-particle {
    0% {
        transform: translateY(100vh) rotate(0deg);
        opacity: 0;
    }
    10% {
        opacity: 0.6;
    }
    90% {
        opacity: 0.6;
    }
    100% {
        transform: translateY(-100px) rotate(360deg);
        opacity: 0;
    }
}

/* Efectos de morphing en formas */
.morphing-shape {
    transition: all 0.6s cubic-bezier(0.175, 0.885, 0.32, 1.275);
}

.morphing-shape:hover {
    border-radius: 50% 20% 80% 30%;
    transform: rotate(5deg) scale(1.05);
}

/* Efectos de texto que se revela */
.reveal-text {
    position: relative;
    overflow: hidden;
}

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

.reveal-text:hover::before {
    left: 100%;
}

/* Efectos de sombras dinámicas */
.dynamic-shadow {
    transition: all 0.3s ease;
    position: relative;
}

.dynamic-shadow:hover {
    transform: translateY(-5px);
}

.dynamic-shadow::after {
    content: '';
    position: absolute;
    top: 100%;
    left: 50%;
    width: 80%;
    height: 20px;
    background: radial-gradient(ellipse, rgba(0,0,0,0.2) 0%, transparent 70%);
    transform: translateX(-50%);
    transition: all 0.3s ease;
    z-index: -1;
}

.dynamic-shadow:hover::after {
    width: 90%;
    height: 25px;
    opacity: 0.6;
}

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

/* Header Moderno y Profesional con Mejor Contraste */
.header {
    background: rgba(255, 255, 255, 0.95);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    border-bottom: 1px solid rgba(74, 153, 96, 0.2);
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    z-index: 1000;
    transition: var(--transition-slow);
    box-shadow: 0 2px 20px rgba(0, 0, 0, 0.1);
}

.header.scrolled {
    background: rgba(255, 255, 255, 0.98);
    box-shadow: 0 4px 32px rgba(0, 0, 0, 0.15);
    border-bottom: 1px solid rgba(74, 153, 96, 0.25);
}

.header-content {
    display: flex;
    align-items: center;
    justify-content: space-between;
    height: 80px;
    position: relative;
}

/* Logo Premium */
.logo {
    position: relative;
    z-index: 10;
    display: flex;
    align-items: center;
    gap: 1rem;
}

.profile-photo {
    width: 60px;
    height: 60px;
    border-radius: 50%;
    overflow: hidden;
    border: 3px solid var(--primary-color);
    box-shadow: 0 4px 12px rgba(74, 153, 96, 0.3);
    transition: none; /* Removida transición que puede causar problemas */
    will-change: auto; /* Removido will-change */
    opacity: 1 !important; /* Forzar visibilidad */
    display: block !important; /* Asegurar que se muestre */
    transform: none !important; /* Sin transformaciones */
    position: relative; /* Posicionamiento normal */
    cursor: default; /* Cursor normal, no clickeable */
}

.profile-photo:hover {
    /* Removidos todos los efectos hover que pueden causar problemas */
    transform: none !important;
    box-shadow: 0 4px 12px rgba(74, 153, 96, 0.3);
}

.profile-photo img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: center;
    opacity: 1 !important; /* Forzar visibilidad de la imagen */
    display: block !important; /* Asegurar que la imagen se muestre */
    transform: none !important; /* Sin transformaciones */
    transition: none; /* Sin transiciones */
    cursor: default; /* Cursor normal */
}

.logo-text {
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    gap: 0.25rem;
}

.logo-main {
    display: flex;
    align-items: center;
}

.logo h1 {
    font-size: 1.6rem;
    font-weight: 800;
    font-family: 'Inter', sans-serif;
    color: #1a202c;
    position: relative;
    transition: var(--transition);
    letter-spacing: -0.02em;
    margin: 0;
    text-shadow: 0 1px 2px rgba(0, 0, 0, 0.1);
}

.logo h1:hover {
    color: var(--primary-color);
}

.logo-sub {
    margin-left: 0;
}

.logo-subtitle {
    display: block;
    font-size: 0.8rem;
    color: #4a5568;
    font-weight: 500;
    opacity: 0.9;
    letter-spacing: 0.01em;
}



/* Navegación Sofisticada */
.nav {
    display: flex;
    align-items: center;
    gap: var(--spacing-xl);
    position: relative;
}

.nav-link {
    text-decoration: none;
    color: #2d3748;
    font-weight: 600;
    font-size: 0.95rem;
    transition: var(--transition);
    display: flex;
    align-items: center;
    gap: var(--spacing-sm);
    padding: var(--spacing-sm) var(--spacing-md);
    border-radius: var(--radius-lg);
    position: relative;
    overflow: hidden;
}

.nav-link::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(74, 153, 96, 0.1), transparent);
    transition: var(--transition-slow);
}

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

.nav-link::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 50%;
    width: 0;
    height: 2px;
    background: var(--bg-gradient);
    border-radius: var(--radius-full);
    transition: var(--transition);
    transform: translateX(-50%);
}

.nav-link:hover,
.nav-link.active {
    color: var(--primary-color);
    background: rgba(74, 153, 96, 0.08);
    transform: translateY(-2px);
}

.nav-link:hover::after,
.nav-link.active::after {
    width: 80%;
}

/* Botón CTA en Header */
.header-cta {
    background: var(--bg-gradient);
    color: var(--text-white);
    padding: var(--spacing-sm) var(--spacing-lg);
    border-radius: var(--radius-full);
    text-decoration: none;
    font-weight: 600;
    font-size: 0.9rem;
    transition: var(--transition);
    box-shadow: var(--shadow-colored);
    position: relative;
    overflow: hidden;
}

.header-cta::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.2), transparent);
    transition: var(--transition-slow);
}

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

.header-cta:hover {
    transform: translateY(-2px);
    box-shadow: var(--shadow-xl);
}

.header-actions {
    display: flex;
    align-items: center;
    gap: var(--spacing-lg);
}

.filter-toggle {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    background: var(--bg-secondary);
    border: 1px solid var(--border-color);
    padding: 0.5rem 1rem;
    border-radius: var(--radius-md);
    cursor: pointer;
    transition: var(--transition);
    font-weight: 500;
    color: var(--text-secondary);
}

.filter-toggle:hover {
    background: var(--bg-tertiary);
    border-color: var(--primary-color);
    color: var(--primary-color);
}

/* Hero Section */
.hero {
    background: var(--bg-gradient);
    color: white;
    padding: 140px 0 100px;
    position: relative;
    overflow: hidden;
    min-height: 100vh;
    display: flex;
    align-items: center;
}

.hero::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: 
        radial-gradient(circle at 20% 80%, rgba(125, 211, 160, 0.3) 0%, transparent 50%),
        radial-gradient(circle at 80% 20%, rgba(74, 153, 96, 0.2) 0%, transparent 50%),
        linear-gradient(135deg, rgba(125, 211, 160, 0.05) 0%, rgba(74, 153, 96, 0.1) 100%);
    opacity: 0.8;
}

/* Animación para el fondo */
@keyframes backgroundShift {
    0%, 100% {
        transform: translateX(0) translateY(0);
    }
    25% {
        transform: translateX(-10px) translateY(-5px);
    }
    50% {
        transform: translateX(5px) translateY(-10px);
    }
    75% {
        transform: translateX(-5px) translateY(5px);
    }
}

.hero-content {
    position: relative;
    z-index: 2;
    /* animation: fadeInUp 1s ease-out; DISABLED FOR INSTANT LOADING */
}

.hero-badge {
    display: inline-block;
    background: rgba(255, 255, 255, 0.9);
    border: none;
    border-radius: 4px;
    padding: 0.8rem 2rem;
    margin-bottom: 2rem;
    margin-top: 1rem;
    font-size: 0.9rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 1px;
    color: #2c5530;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
    transition: all 0.3s ease;
}

/* Removed hover effect for hero-badge to prevent darkening */

.badge-text {
    font-size: 0.9rem;
    font-weight: 500;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    color: #7dd3a0;
    animation: textGlow 2s ease-in-out infinite alternate;
}

.hero-title {
    font-size: clamp(2.8rem, 8vw, 4.5rem);
    font-weight: 400;
    margin-bottom: 0.5rem;
    line-height: 1.1;
    letter-spacing: -0.02em;
    color: #ffffff;
    text-shadow: 1px 1px 2px rgba(0, 0, 0, 0.2);
}

.hero-title .highlight {
    font-weight: 700;
    color: #ffffff;
    display: inline !important;
    font-size: clamp(3.2rem, 10vw, 5.5rem);
    margin-top: 0.2rem;
    text-shadow: 1px 1px 2px rgba(0, 0, 0, 0.2);
    white-space: nowrap !important;
}

.hero-subtitle {
    font-size: clamp(1.1rem, 3.5vw, 1.5rem);
    margin-bottom: 3rem;
    opacity: 0.85;
    max-width: 600px;
    line-height: 1.5;
    font-weight: 400;
    animation: slideInUp 1s ease-out 0.6s both;
}

.hero-description {
    font-size: clamp(1rem, 2.5vw, 1.25rem);
    margin-bottom: 3rem;
    opacity: 0.9;
    max-width: 600px;
    line-height: 1.6;
    font-weight: 400;
    color: #ffffff;
    text-shadow: 1px 1px 3px rgba(0, 0, 0, 0.3);
}

.hero-stats {
    display: flex;
    justify-content: center;
    gap: 4rem;
    margin-bottom: 3rem;
    animation: slideInUp 1s ease-out 0.8s both;
}

.stat {
    text-align: center;
    position: relative;
}

.stat-number {
    display: block;
    font-size: 3rem;
    font-weight: 800;
    line-height: 1;
    background: linear-gradient(135deg, #ffffff 0%, #7dd3a0 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.stat-label {
    font-size: 0.9rem;
    opacity: 0.8;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    margin-top: 0.5rem;
}

.hero-actions {
    display: flex;
    gap: 1rem;
    margin-bottom: 2rem;
    animation: slideInUp 1s ease-out 1s both;
}

/* Botones del Hero Section Mejorados con Microinteracciones */
.btn {
    display: inline-flex;
    align-items: center;
    gap: 0.75rem;
    text-decoration: none;
    font-weight: 600;
    padding: 1rem 2rem;
    border-radius: 12px;
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    position: relative;
    overflow: hidden;
    font-size: 1rem;
    border: none;
    cursor: pointer;
    text-align: center;
    min-width: 160px;
    justify-content: center;
    will-change: transform;
}

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

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

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

.btn:active::after {
    width: 300px;
    height: 300px;
}

.btn-primary {
    background: linear-gradient(135deg, #3b82f6 0%, #1d4ed8 100%);
    color: white;
    box-shadow: 0 4px 15px rgba(59, 130, 246, 0.4);
}

.btn-primary:hover {
    background: linear-gradient(135deg, #2563eb 0%, #1e40af 100%);
    transform: translateY(-4px) scale(1.02);
    box-shadow: 0 12px 35px rgba(59, 130, 246, 0.6);
}

.btn-primary:active {
    transform: translateY(-2px) scale(0.98);
    transition: all 0.1s ease;
}

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

.btn-secondary:hover {
    background: rgba(255, 255, 255, 0.2);
    border-color: rgba(255, 255, 255, 0.6);
    transform: translateY(-4px) scale(1.02);
    box-shadow: 0 12px 35px rgba(255, 255, 255, 0.25);
}

.btn-secondary:active {
    transform: translateY(-2px) scale(0.98);
    transition: all 0.1s ease;
}

.btn svg {
    transition: transform 0.4s cubic-bezier(0.4, 0, 0.2, 1);
}

.btn:hover svg {
    transform: translateX(5px) scale(1.1);
}

/* Microinteracciones para elementos del hero */
.hero-title {
    transition: all 0.3s ease;
}

/* Removed hover effect for hero-title to prevent darkening */

.hero-subtitle {
    transition: all 0.3s ease;
}

/* Removed hover effect for hero-subtitle to prevent darkening */

.profile-photo {
    width: 60px;
    height: 60px;
    border-radius: 50%;
    overflow: hidden;
    border: 3px solid var(--primary-color);
    box-shadow: 0 4px 12px rgba(74, 153, 96, 0.3);
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    animation: floatAdvanced 4s ease-in-out infinite;
    will-change: transform;
    cursor: pointer;
}

.profile-photo:hover {
    transform: scale(1.1) rotate(5deg);
    box-shadow: 0 8px 25px rgba(74, 153, 96, 0.5);
    animation-play-state: paused;
}

.profile-photo:active {
    transform: scale(1.05) rotate(2deg);
    transition: all 0.1s ease;
}

.cta-button {
    display: inline-flex;
    align-items: center;
    gap: 0.75rem;
    text-decoration: none;
    font-weight: 600;
    padding: 1rem 2rem;
    border-radius: var(--radius-lg);
    transition: all 0.3s ease;
    position: relative;
    overflow: hidden;
}

.cta-button.primary {
    background: rgba(255, 255, 255, 0.2);
    color: white;
    border: 2px solid rgba(255, 255, 255, 0.3);
    backdrop-filter: blur(10px);
}

.cta-button.primary:hover {
    background: rgba(255, 255, 255, 0.3);
    transform: translateY(-2px);
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.2);
}

.cta-button.secondary {
    background: transparent;
    color: white;
    border: 2px solid rgba(255, 255, 255, 0.5);
}

.cta-button.secondary:hover {
    background: rgba(255, 255, 255, 0.1);
    transform: translateY(-2px);
}

.hero-decoration {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    pointer-events: none;
    z-index: 1;
}

/* Nuevo diseño de layout del hero */
.hero-layout {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 4rem;
    align-items: center;
    max-width: 1200px;
    margin: 0 auto;
}

.hero-text {
    text-align: center;
    max-width: 700px;
    padding-left: 0;
    margin: 1rem auto 0;
}

/* Specific styling for project pages - text aligned to left */
.project-hero-text {
    text-align: left !important;
    max-width: none !important;
    width: 100% !important;
    padding-left: 2rem !important;
    padding-right: 2rem !important;
    margin: 0 !important;
    position: relative;
    z-index: 2;
}

/* Override hero-layout centering for project pages */
body.project-page .hero-layout {
    margin: 0 !important;
    max-width: none !important;
    padding-left: 0 !important;
    padding-right: 0 !important;
    grid-template-columns: 1fr !important;
    justify-items: start !important;
    align-items: start !important;
}

/* Force complete left alignment for project pages with proper spacing */
body.project-page .hero {
    text-align: left !important;
}

body.project-page .container {
    max-width: 1200px !important;
    margin: 0 auto !important;
    padding: 0 1.5rem !important;
}



.hero-visual {
    display: flex;
    justify-content: center;
    align-items: center;
    position: relative;
    z-index: 1;
    margin-left: 2rem;
}

/* Elementos geométricos decorativos MEJORADOS Y DINÁMICOS */
.geometric-shapes {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    pointer-events: none;
    z-index: 1;
    overflow: hidden;
}

.shape {
    position: absolute;
    animation: float 6s ease-in-out infinite;
}

/* Formas más creativas y dinámicas - ELIMINADAS */

.shape-circle-1 {
    width: 120px;
    height: 120px;
    background: radial-gradient(circle, rgba(125, 211, 160, 0.3), rgba(74, 153, 96, 0.1));
    border-radius: 50%;
    top: 25%;
    right: 10%;
    animation: pulse 8s ease-in-out infinite, dynamicFloat2 12s ease-in-out infinite;
    animation-delay: 1s;
    will-change: transform;
    opacity: 0.8;
}

/* Nuevas formas dinámicas inspiradas en líneas topográficas */
.shape-topographic-1 {
    width: 300px;
    height: 300px;
    background: transparent;
    border: 2px solid rgba(125, 211, 160, 0.25);
    border-radius: 60% 40% 30% 70% / 60% 30% 70% 40%;
    top: 5%;
    left: 5%;
    animation: morphTopographic1 12s ease-in-out infinite, floatTopographic 8s ease-in-out infinite;
    animation-delay: 0s;
    will-change: transform, border-radius;
    opacity: 0.7;
}

.shape-topographic-2 {
    width: 250px;
    height: 250px;
    background: transparent;
    border: 1.5px solid rgba(125, 211, 160, 0.2);
    border-radius: 40% 60% 70% 30% / 50% 40% 60% 50%;
    top: 10%;
    left: 8%;
    animation: morphTopographic2 10s ease-in-out infinite, floatTopographic 6s ease-in-out infinite;
    animation-delay: 2s;
    will-change: transform, border-radius;
    opacity: 0.6;
}

.shape-topographic-3 {
    width: 200px;
    height: 200px;
    background: transparent;
    border: 1px solid rgba(125, 211, 160, 0.15);
    border-radius: 70% 30% 40% 60% / 40% 70% 30% 60%;
    top: 15%;
    left: 12%;
    animation: morphTopographic3 14s ease-in-out infinite, floatTopographic 10s ease-in-out infinite;
    animation-delay: 4s;
    will-change: transform, border-radius;
    opacity: 0.5;
}

.shape-flow-line-1 {
    width: 400px;
    height: 2px;
    background: linear-gradient(90deg, transparent, rgba(125, 211, 160, 0.4), rgba(255, 255, 255, 0.2), rgba(125, 211, 160, 0.4), transparent);
    top: 30%;
    right: -50px;
    transform: rotate(-15deg);
    animation: flowLine1 8s ease-in-out infinite;
    will-change: transform, opacity;
    opacity: 0.8;
}

.shape-flow-line-2 {
    width: 350px;
    height: 1.5px;
    background: linear-gradient(90deg, transparent, rgba(125, 211, 160, 0.3), rgba(255, 255, 255, 0.15), rgba(125, 211, 160, 0.3), transparent);
    top: 60%;
    left: -50px;
    transform: rotate(10deg);
    animation: flowLine2 10s ease-in-out infinite;
    animation-delay: 3s;
    will-change: transform, opacity;
    opacity: 0.7;
}

.shape-organic-blob {
    width: 180px;
    height: 180px;
    background: radial-gradient(circle at 30% 30%, rgba(125, 211, 160, 0.15), rgba(74, 153, 96, 0.1), transparent);
    border-radius: 60% 40% 30% 70% / 60% 30% 70% 40%;
    top: 70%;
    right: 15%;
    animation: organicMorph 16s ease-in-out infinite, organicFloat 12s ease-in-out infinite;
    animation-delay: 1s;
    will-change: transform, border-radius;
    opacity: 0.6;
}

/* Floating particles styles removed for cleaner design */

/* Animación para el efecto ripple */
@keyframes ripple {
    0% {
        transform: scale(0);
        opacity: 1;
    }
    100% {
        transform: scale(2);
        opacity: 0;
    }
}

/* Animaciones mejoradas */
@keyframes morphBlob {
    0%, 100% {
        border-radius: 60% 40% 30% 70% / 60% 30% 70% 40%;
        transform: scale(1) rotate(0deg);
    }
    25% {
        border-radius: 30% 60% 70% 40% / 50% 60% 30% 60%;
        transform: scale(1.1) rotate(90deg);
    }
    50% {
        border-radius: 50% 30% 60% 40% / 30% 70% 40% 50%;
        transform: scale(0.9) rotate(180deg);
    }
    75% {
        border-radius: 40% 70% 30% 60% / 70% 40% 60% 30%;
        transform: scale(1.05) rotate(270deg);
    }
}

@keyframes waveMove {
    0%, 100% {
        transform: rotate(-15deg) translateX(0);
    }
    50% {
        transform: rotate(-15deg) translateX(100px);
    }
}

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

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

/* Particle animation removed for cleaner design */

/* Contenedor de la foto de perfil */
.profile-container {
    position: relative;
    width: 400px;
    height: 400px;
    display: flex;
    align-items: center;
    justify-content: center;
}

/* Decoraciones alrededor de la foto */
.profile-decoration {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    pointer-events: none;
}

/* Elementos decorativos - ELIMINADOS */

/* Foto de perfil principal con efecto flotante avanzado */
.profile-image-wrapper {
    position: relative;
    z-index: 2;
    animation: floatAdvanced 4s ease-in-out infinite;
    will-change: transform;
}

.profile-image {
    width: 280px;
    height: 280px;
    border-radius: 50%;
    overflow: hidden;
    position: relative;
    border: 4px solid rgba(255, 255, 255, 0.2);
    box-shadow: 
        0 20px 40px rgba(0, 0, 0, 0.3),
        0 0 0 10px rgba(125, 211, 160, 0.1),
        0 0 0 20px rgba(125, 211, 160, 0.05),
        0 40px 80px rgba(125, 211, 160, 0.2);
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    transform-style: preserve-3d;
}

.profile-image:hover {
    transform: scale(1.08) rotateY(5deg) rotateX(5deg);
    box-shadow: 
        0 30px 60px rgba(0, 0, 0, 0.4),
        0 0 0 15px rgba(125, 211, 160, 0.2),
        0 0 0 30px rgba(125, 211, 160, 0.1),
        0 60px 120px rgba(125, 211, 160, 0.3);
}

.profile-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    filter: brightness(1.02) contrast(1.01);
}

.profile-image:hover img {
    transform: scale(1.15) rotate(2deg);
    filter: brightness(1.05) contrast(1.02) saturate(1.02);
}

.profile-glow {
    position: absolute;
    top: -30px;
    left: -30px;
    right: -30px;
    bottom: -30px;
    background: 
        radial-gradient(circle, rgba(125, 211, 160, 0.4) 0%, transparent 70%),
        conic-gradient(from 0deg, rgba(125, 211, 160, 0.3), rgba(74, 153, 96, 0.2), rgba(255, 255, 255, 0.1), rgba(125, 211, 160, 0.3));
    border-radius: 50%;
    opacity: 0.6;
    filter: blur(25px);
    z-index: -1;
    animation: glowPulse 4s ease-in-out infinite, rotate 20s linear infinite;
}

/* Efecto de levitación avanzado - MÁS VISIBLE */
@keyframes floatAdvanced {
    0% {
        transform: translateY(0px) translateX(0px) rotate(0deg) scale(1);
    }
    20% {
        transform: translateY(-15px) translateX(8px) rotate(1deg) scale(1.02);
    }
    40% {
        transform: translateY(-25px) translateX(-5px) rotate(-1deg) scale(0.98);
    }
    60% {
        transform: translateY(-10px) translateX(12px) rotate(2deg) scale(1.01);
    }
    80% {
        transform: translateY(-20px) translateX(-8px) rotate(-1.5deg) scale(0.99);
    }
    100% {
        transform: translateY(0px) translateX(0px) rotate(0deg) scale(1);
    }
}

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

/* Iconos flotantes de tecnologías */
.floating-tech-icons {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    pointer-events: none;
}

.tech-icon {
    position: absolute;
    width: 50px;
    height: 50px;
    background: rgba(255, 255, 255, 0.1);
    backdrop-filter: blur(10px);
    border: 1px solid rgba(255, 255, 255, 0.2);
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    animation: float 4s ease-in-out infinite;
}

.tech-icon-1 {
    top: 10%;
    left: 10%;
    animation-delay: 0s;
}

.tech-icon-2 {
    top: 20%;
    right: 5%;
    animation-delay: 1.5s;
}

.tech-icon-3 {
    bottom: 15%;
    left: 5%;
    animation-delay: 3s;
}

/* Animaciones */
@keyframes float {
    0%, 100% {
        transform: translateY(0px);
    }
    50% {
        transform: translateY(-20px);
    }
}

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

@keyframes pulse {
    0%, 100% {
        transform: rotate(45deg) scale(1);
        opacity: 0.7;
    }
    50% {
        transform: rotate(45deg) scale(1.1);
        opacity: 0.9;
    }
}

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

@keyframes glow {
    0% {
        opacity: 0.3;
        transform: scale(1);
    }
    100% {
        opacity: 0.5;
        transform: scale(1.05);
    }
}

/* Responsive para el nuevo diseño */
@media (max-width: 1024px) {
    .hero-layout {
        grid-template-columns: 1fr;
        gap: 3rem;
        text-align: center;
        padding: 2rem 1rem;
    }
    
    .hero-text {
        text-align: center;
        order: 2;
    }
    
    .project-hero-text {
        text-align: left !important;
        padding-left: 2rem !important;
        padding-right: 2rem !important;
        order: 2;
    }
    
    .hero-visual {
        order: 1;
        margin-left: 0;
    }
    
    .profile-container {
        width: 300px;
        height: 300px;
    }
    
    .profile-image {
        width: 220px;
        height: 220px;
    }
    
    .decoration-circle-1 {
        width: 240px;
        height: 240px;
        top: 30px;
        left: 30px;
    }
    
    .decoration-circle-2 {
        width: 280px;
        height: 280px;
        top: 10px;
        left: 10px;
    }
    
    .hero-title {
        font-size: clamp(2rem, 6vw, 3.5rem);
    }
    
    .hero-subtitle {
        font-size: clamp(0.9rem, 3vw, 1.1rem);
        margin-bottom: 2rem;
    }
}

/* Responsive Design Improvements */
@media (max-width: 1024px) {
    .hero-layout {
        grid-template-columns: 1fr;
        gap: 2rem;
        text-align: center;
    }
    
    .hero-text {
        padding-left: 0;
        text-align: center;
        max-width: 100%;
    }
    
    .project-hero-text {
        text-align: left !important;
        padding-left: 1.5rem !important;
        padding-right: 1.5rem !important;
        max-width: 100% !important;
    }
    
    .hero-title {
        font-size: clamp(2.5rem, 7vw, 4rem);
    }
    
    .hero-title .highlight {
        font-size: clamp(2.8rem, 8vw, 4.5rem);
    }
    
    .hero-description {
        font-size: clamp(1rem, 2.2vw, 1.2rem);
        max-width: 90%;
        margin: 0 auto 3rem;
    }
}

/* Optimización mejorada para móviles - Portada */
@media (max-width: 768px) {
    .hero {
        padding: 100px 0 60px;
        min-height: 100vh;
        display: flex;
        align-items: center;
        justify-content: center;
    }
    
    .hero-content {
        text-align: center;
        width: 100%;
        padding: 0 1rem;
    }
    
    .hero-layout {
        gap: 2rem;
        flex-direction: column;
        align-items: center;
    }
    
    .hero-text {
        order: 1;
        width: 100%;
        max-width: 100%;
    }
    
    .hero-visual {
        order: 2;
        width: 100%;
        display: flex;
        justify-content: center;
    }
    
    .hero-title {
        font-size: clamp(2.5rem, 8vw, 4rem);
        margin-bottom: 1rem;
        line-height: 1.1;
        text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.3);
        font-weight: 600;
    }
    
    .hero-title .highlight {
        font-size: clamp(3rem, 10vw, 5rem);
        margin-top: 0.5rem;
        display: block;
        font-weight: 800;
        text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.4);
        white-space: normal !important;
    }
    
    .hero-badge {
        padding: 0.8rem 2rem;
        font-size: 1rem;
        margin-bottom: 2rem;
        font-weight: 700;
        background: rgba(255, 255, 255, 0.95);
        color: #2c5530;
        border-radius: 8px;
        box-shadow: 0 6px 20px rgba(0, 0, 0, 0.2);
        letter-spacing: 1.5px;
    }
    
    .hero-description {
        font-size: clamp(1.1rem, 4vw, 1.4rem);
        margin-bottom: 2.5rem;
        max-width: 100%;
        line-height: 1.6;
        font-weight: 500;
        text-shadow: 1px 1px 3px rgba(0, 0, 0, 0.4);
        opacity: 1;
    }
}

@media (max-width: 480px) {
    .hero {
        padding: 80px 0 50px;
        min-height: 100vh;
    }
    
    .hero-content {
        padding: 0 1.5rem;
    }
    
    .hero-title {
        font-size: clamp(2.2rem, 9vw, 3.5rem);
        line-height: 1.2;
        margin-bottom: 1.2rem;
        font-weight: 700;
    }
    
    .hero-title .highlight {
        font-size: clamp(2.8rem, 11vw, 4.5rem);
        margin-top: 0.3rem;
        font-weight: 900;
        display: block;
    }
    
    .hero-badge {
        padding: 0.7rem 1.8rem;
        font-size: 0.95rem;
        margin-bottom: 1.8rem;
        font-weight: 700;
        letter-spacing: 1.2px;
    }
    
    .hero-description {
        font-size: clamp(1rem, 4.5vw, 1.3rem);
        line-height: 1.7;
        margin-bottom: 2rem;
        max-width: 100%;
        font-weight: 500;
    }
    
    .container {
        padding: 0 1rem;
    }
}

/* Mejoras adicionales para pantallas muy pequeñas */
@media (max-width: 360px) {
    .hero {
        padding: 70px 0 40px;
    }
    
    .hero-content {
        padding: 0 1rem;
    }
    
    .hero-title {
        font-size: clamp(2rem, 10vw, 3rem);
        margin-bottom: 1rem;
    }
    
    .hero-title .highlight {
        font-size: clamp(2.5rem, 12vw, 4rem);
        margin-top: 0.2rem;
    }
    
    .hero-badge {
        padding: 0.6rem 1.5rem;
        font-size: 0.9rem;
        margin-bottom: 1.5rem;
    }
    
    .hero-description {
        font-size: clamp(0.95rem, 5vw, 1.2rem);
        margin-bottom: 1.8rem;
    }
}

/* Ultra-wide screens */
@media (min-width: 1400px) {
    .hero {
        padding: 160px 0 120px;
        min-height: 100vh;
    }
    
    .hero-layout {
        max-width: 1600px;
    }
    
    /* Override for project pages on ultra-wide screens */
    body.project-page .hero-layout {
        margin: 0 !important;
        max-width: none !important;
        padding-left: 0 !important;
        padding-right: 0 !important;
        grid-template-columns: 1fr !important;
        justify-items: start !important;
        align-items: start !important;
    }
    
    body.project-page .hero {
        padding-left: 0 !important;
        padding-right: 0 !important;
    }
    
    body.project-page .container {
        max-width: 1200px !important;
        margin: 0 auto !important;
        padding: 0 1.5rem !important;
    }
        gap: 6rem;
        margin: 0 auto;
    }
    
    .hero-title {
        font-size: clamp(3.5rem, 6vw, 5.5rem);
    }
    
    .hero-title .highlight {
        font-size: clamp(4rem, 7vw, 6.5rem);
        display: inline !important;
        white-space: nowrap !important;
    }
    
    .hero-description {
        font-size: clamp(1.2rem, 2vw, 1.4rem);
        max-width: 650px;
    }
    
    .container {
        max-width: 1600px;
        padding: 0 3rem;
    }
}

/* Extra large screens */
@media (min-width: 1920px) {
    .hero {
        padding: 180px 0 140px;
    }
    
    .hero-layout {
        max-width: 1800px;
        gap: 8rem;
    }
    
    /* Override for project pages on extra-large screens */
    body.project-page .hero-layout {
        margin: 0 !important;
        max-width: none !important;
        padding-left: 0 !important;
        padding-right: 0 !important;
        grid-template-columns: 1fr !important;
        justify-items: start !important;
        align-items: start !important;
    }
    
    body.project-page .hero {
        padding-left: 0 !important;
        padding-right: 0 !important;
    }
    
    body.project-page .container {
        max-width: 1200px !important;
        margin: 0 auto !important;
        padding: 0 1.5rem !important;
    }
    
    .hero-title {
        font-size: clamp(4rem, 5vw, 6rem);
    }
    
    .hero-title .highlight {
        font-size: clamp(4.5rem, 6vw, 7rem);
        display: inline !important;
        white-space: nowrap !important;
    }
    
    .hero-description {
        font-size: clamp(1.3rem, 1.8vw, 1.5rem);
        max-width: 700px;
    }
    
    .container {
        max-width: 1800px;
        padding: 0 4rem;
    }
}

@media (max-width: 480px) {
    .hero {
        padding: 2rem 0;
        min-height: 70vh;
    }
    
    .hero-layout {
        gap: 1.5rem;
        padding: 0.5rem;
    }
    
    .profile-image {
        width: 150px;
        height: 150px;
    }
    
    .profile-container {
        width: 200px;
        height: 200px;
    }
    
    .hero-title {
        font-size: clamp(1.5rem, 8vw, 2.2rem);
        line-height: 1.2;
    }
    
    .hero-subtitle {
        font-size: clamp(0.8rem, 4.5vw, 0.95rem);
        line-height: 1.4;
        padding: 0 0.5rem;
    }
    
    .tech-icon {
        width: 35px;
        height: 35px;
        font-size: 16px;
    }
    
    /* Ocultar elementos decorativos complejos en pantallas muy pequeñas */
    .creative-shape.blob,
    .creative-shape.hexagon,
    .creative-shape.wave {
        display: none;
    }
}

/* Floating elements removed for cleaner design */

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

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

@keyframes slideInUp {
    0% {
        opacity: 0;
        transform: translateY(50px) scale(0.95);
        filter: blur(2px);
    }
    50% {
        opacity: 0.7;
        transform: translateY(15px) scale(0.98);
        filter: blur(1px);
    }
    100% {
        opacity: 1;
        transform: translateY(0) scale(1);
        filter: blur(0);
    }
}

/* Filters Panel */
.filters-panel {
    background: var(--bg-secondary);
    border-bottom: 1px solid var(--border-color);
    padding: 1rem 0;
    margin-top: 70px;
    display: none;
    transition: var(--transition);
}

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

.filters-content {
    display: flex;
    align-items: center;
    gap: 2rem;
    flex-wrap: wrap;
}

.filter-group {
    display: flex;
    align-items: center;
    gap: 0.75rem;
}

.filter-group label {
    font-weight: 500;
    color: var(--text-secondary);
    font-size: 0.9rem;
}

.filter-group select {
    padding: 0.5rem 1rem;
    border: 1px solid var(--border-color);
    border-radius: var(--radius-md);
    background: white;
    font-size: 0.9rem;
    min-width: 150px;
}

.view-toggle {
    display: flex;
    background: white;
    border: 1px solid var(--border-color);
    border-radius: var(--radius-md);
    overflow: hidden;
}

.view-btn {
    padding: 0.5rem;
    border: none;
    background: transparent;
    cursor: pointer;
    transition: var(--transition);
    display: flex;
    align-items: center;
    justify-content: center;
}

.view-btn.active {
    background: var(--primary-color);
    color: white;
}

.reset-filters {
    padding: 0.5rem 1rem;
    background: transparent;
    border: 1px solid var(--border-color);
    border-radius: var(--radius-md);
    cursor: pointer;
    transition: var(--transition);
    font-size: 0.9rem;
}

.reset-filters:hover {
    background: var(--bg-tertiary);
}

/* Projects Section */
.projects {
    padding: 80px 0;
    background: var(--bg-primary);
}

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

.section-title {
    font-size: 2.5rem;
    font-weight: 700;
    margin-bottom: 1rem;
    color: var(--text-primary);
}

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

.projects-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(350px, 1fr));
    gap: 2rem;
    transition: var(--transition);
}

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

.project-card {
    background: var(--bg-dark);
    border-radius: var(--radius-xl);
    overflow: hidden;
    box-shadow: var(--shadow-sm);
    transition: var(--transition);
    position: relative;
    border: 1px solid var(--primary-color);
}

.project-card:hover {
    transform: translateY(-8px) scale(1.02);
    box-shadow: var(--shadow-2xl);
}

.project-image {
    position: relative;
    height: 250px;
    overflow: hidden;
    background: var(--bg-tertiary);
}

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

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

.no-image {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    height: 100%;
    color: var(--text-muted);
    background: var(--bg-secondary);
}

.no-image svg {
    margin-bottom: 0.5rem;
}

.project-overlay {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(0, 0, 0, 0.7);
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 0;
    transition: opacity 0.3s ease;
}

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

.btn-view {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    background: white;
    color: var(--text-primary);
    text-decoration: none;
    padding: 0.75rem 1.5rem;
    border-radius: var(--radius-lg);
    font-weight: 600;
    transition: var(--transition);
}

.btn-view:hover {
    background: var(--primary-color);
    color: white;
    transform: translateY(-1px);
}

.project-content {
    padding: 1.5rem;
}

.project-meta {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 1rem;
    font-size: 0.85rem;
    color: rgba(255, 255, 255, 0.8);
}

.project-date {
    text-transform: uppercase;
    letter-spacing: 0.5px;
    font-weight: 500;
}

.project-count {
    background: rgba(255, 255, 255, 0.1);
    padding: 0.25rem 0.75rem;
    border-radius: var(--radius-sm);
    color: rgba(255, 255, 255, 0.9);
}

.project-title {
    margin-bottom: 0.75rem;
}

.project-title a {
    text-decoration: none;
    color: var(--text-white);
    font-size: 1.25rem;
    font-weight: 600;
    transition: var(--transition);
}

.project-title a:hover {
    color: var(--primary-color);
}

.project-description {
    color: rgba(255, 255, 255, 0.9);
    line-height: 1.6;
}

/* Project Technologies */
.project-technologies {
    display: flex;
    flex-wrap: wrap;
    gap: 0.5rem;
    margin: 0.75rem 0;
}

.tech-tag {
    display: inline-block;
    background: var(--primary-color); /* Color por defecto */
    color: white;
    padding: 0.25rem 0.75rem;
    border-radius: 1rem;
    font-size: 0.8rem;
    font-weight: 500;
    border: none;
    transition: all 0.3s ease;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
}

.tech-tag:hover {
    transform: translateY(-1px);
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.15);
    filter: brightness(1.1);
}

/* Empty State */
.empty-state {
    text-align: center;
    padding: 4rem 2rem;
    color: var(--text-muted);
}

.empty-icon {
    font-size: 4rem;
    margin-bottom: 1rem;
}

.empty-state h3 {
    font-size: 1.5rem;
    margin-bottom: 0.5rem;
    color: var(--text-secondary);
}

/* About Section */
.about {
    background: var(--bg-secondary);
    padding: 80px 0;
}

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

.about-text h2 {
    font-size: 2.25rem;
    font-weight: 700;
    margin-bottom: 1.5rem;
    color: var(--text-primary);
}

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

.github-link {
    color: var(--primary-color);
    text-decoration: none;
    font-weight: 600;
    transition: var(--transition);
    position: relative;
}

.github-link:hover {
    color: var(--primary-dark);
    text-decoration: underline;
}

.company-link {
    color: var(--primary-color);
    text-decoration: none;
    font-weight: 600;
    transition: var(--transition);
    position: relative;
    display: inline-flex;
    align-items: center;
    gap: 0.25rem;
    padding: 0.125rem 0.375rem;
    border-radius: var(--radius-sm);
    background: linear-gradient(135deg, rgba(74, 153, 96, 0.1) 0%, rgba(125, 211, 160, 0.1) 100%);
    border: 1px solid rgba(74, 153, 96, 0.2);
}

.company-link::after {
    content: '↗';
    font-size: 0.875rem;
    opacity: 0.7;
    transition: var(--transition);
}

.company-link:hover {
    color: var(--primary-dark);
    background: linear-gradient(135deg, rgba(74, 153, 96, 0.15) 0%, rgba(125, 211, 160, 0.15) 100%);
    border-color: var(--primary-color);
    transform: translateY(-1px);
    box-shadow: var(--shadow-sm);
}

.company-link:hover::after {
    opacity: 1;
    transform: translate(2px, -2px);
}



/* Contact Info Section */
.contact-info-section {
    margin-top: 2rem;
    padding-top: 2rem;
    border-top: 1px solid rgba(255, 255, 255, 0.1);
}

.contact-info-section h3 {
    color: var(--primary-color);
    font-size: 1.5rem;
    font-weight: 700;
    margin-bottom: 1.5rem;
    text-transform: uppercase;
    letter-spacing: 0.05em;
}

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

.contact-item {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    padding: 0.75rem;
    background: rgba(255, 255, 255, 0.05);
    border-radius: var(--radius-md);
    border: 1px solid rgba(74, 222, 128, 0.2);
    transition: var(--transition);
}

.contact-item:hover {
    background: rgba(255, 255, 255, 0.08);
    border-color: var(--primary-color);
    transform: translateY(-2px);
}

.contact-icon {
    font-size: 1.2rem;
    min-width: 24px;
}

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

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

.about-intro {
    background: var(--bg-dark);
    border-radius: var(--radius-xl);
    padding: 2rem;
    margin-bottom: 2rem;
    border: 1px solid var(--primary-color);
    color: var(--text-white);
}

.profile-info {
    display: flex;
    align-items: center;
    gap: 1.5rem;
    margin-bottom: 1.5rem;
}

.profile-avatar {
    width: 60px;
    height: 60px;
    background: var(--bg-gradient);
    border-radius: var(--radius-full);
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: var(--shadow-md);
}

.avatar-initials {
    color: white;
    font-weight: var(--font-bold);
    font-size: 1.25rem;
}

.profile-details h3 {
    color: var(--text-white);
    font-size: 1.5rem;
    font-weight: var(--font-bold);
    margin-bottom: 0.25rem;
}

.profile-title {
    color: var(--primary-light);
    font-weight: var(--font-medium);
    font-size: 1rem;
    margin: 0;
}


.personal-quote blockquote {
    font-style: italic;
    font-size: 1.1rem;
    color: rgba(255, 255, 255, 0.9);
    line-height: 1.6;
    position: relative;
    padding-left: 1.5rem;
    border-left: 3px solid var(--primary-light);
    margin: 0;
}


.tech-categories {
    display: flex;
    flex-direction: column;
    gap: 1.5rem;
    margin-top: 1rem;
}

.tech-category {
    background: rgba(74, 153, 96, 0.05);
    padding: 1rem;
    border-radius: var(--radius-lg);
    border-left: 4px solid var(--primary-color);
}

.tech-category h4 {
    color: var(--primary-color);
    font-size: 1rem;
    font-weight: 600;
    margin-bottom: 0.75rem;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.tech-badges {
    display: flex;
    flex-wrap: wrap;
    gap: 0.75rem;
}

.tech-badge {
    display: inline-flex;
    align-items: center;
    padding: 0.5rem 1rem;
    border-radius: var(--radius-full);
    font-size: 0.875rem;
    font-weight: var(--font-medium);
    color: white;
    transition: var(--transition);
    cursor: default;
}

.tech-badge:hover {
    transform: translateY(-2px);
    box-shadow: var(--shadow-md);
}

.tech-badge.html { background: linear-gradient(135deg, #e34c26, #f06529); }
.tech-badge.css { background: linear-gradient(135deg, #1572b6, #33a9dc); }
.tech-badge.js { background: linear-gradient(135deg, #f7df1e, #f0db4f); color: #333; }
.tech-badge.php { background: linear-gradient(135deg, #777bb4, #8892bf); }
.tech-badge.laravel { background: linear-gradient(135deg, #ff2d20, #ff5722); }
.tech-badge.mysql { background: linear-gradient(135deg, #00758f, #f29111); }
.tech-badge.react { background: linear-gradient(135deg, #61dafb, #21d4fd); color: #333; }
.tech-badge.node { background: linear-gradient(135deg, #68a063, #8cc84b); }
.tech-badge.git { background: linear-gradient(135deg, #f05032, #f14e32); }

/* Certifications Section */
.certifications {
    margin-top: 1rem;
}

.certification-item {
    background: rgba(74, 153, 96, 0.05);
    padding: 1.5rem;
    border-radius: var(--radius-lg);
    border-left: 4px solid var(--primary-color);
    margin-bottom: 1rem;
}

.certification-info h4 {
    color: var(--primary-color);
    font-size: 1.1rem;
    font-weight: 600;
    margin-bottom: 0.5rem;
}

.certification-provider {
    color: var(--text-secondary);
    font-size: 0.9rem;
    font-weight: 500;
    margin-bottom: 0.75rem;
    font-style: italic;
}

.certification-description {
    color: var(--text-primary);
    font-size: 0.9rem;
    line-height: 1.5;
    margin: 0;
}



/* Contact Section */
.contact {
    background: linear-gradient(135deg, var(--primary-color), var(--secondary-color));
    color: white;
    padding: 100px 0;
    position: relative;
    overflow: hidden;
}

.contact::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: 
        radial-gradient(circle at 30% 20%, rgba(255, 255, 255, 0.1) 0%, transparent 50%),
        radial-gradient(circle at 70% 80%, rgba(240, 147, 251, 0.2) 0%, transparent 50%);
    pointer-events: none;
}

.contact-header {
    text-align: center;
    margin-bottom: 4rem;
    position: relative;
    z-index: 2;
}

.contact-header h2 {
    font-size: 2.5rem;
    font-weight: 800;
    margin-bottom: 1.5rem;
    line-height: 1.2;
}

.contact-header p {
    font-size: 1.2rem;
    opacity: 0.9;
    max-width: 600px;
    margin: 0 auto;
    line-height: 1.6;
}

.contact-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 4rem;
    align-items: start;
    position: relative;
    z-index: 2;
}

.contact-form-container {
    background: rgba(255, 255, 255, 0.1);
    backdrop-filter: blur(20px);
    border: 1px solid rgba(255, 255, 255, 0.2);
    border-radius: var(--radius-xl);
    padding: 2.5rem;
}

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

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

.form-group label {
    font-weight: 600;
    font-size: 0.9rem;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    opacity: 0.9;
}

.form-group input,
.form-group textarea {
    background: rgba(255, 255, 255, 0.1);
    border: 1px solid rgba(255, 255, 255, 0.3);
    border-radius: var(--radius-md);
    padding: 1rem;
    color: white;
    font-size: 1rem;
    transition: var(--transition);
    backdrop-filter: blur(10px);
}

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

.form-group input:focus,
.form-group textarea:focus {
    outline: none;
    border-color: rgba(255, 255, 255, 0.5);
    background: rgba(255, 255, 255, 0.15);
    box-shadow: 0 0 0 3px rgba(255, 255, 255, 0.1);
}

.submit-btn {
    background: rgba(255, 255, 255, 0.2);
    color: white;
    border: 2px solid rgba(255, 255, 255, 0.3);
    border-radius: var(--radius-lg);
    padding: 1rem 2rem;
    font-size: 1rem;
    font-weight: 600;
    cursor: pointer;
    transition: var(--transition);
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.75rem;
    backdrop-filter: blur(10px);
}

.submit-btn:hover {
    background: rgba(255, 255, 255, 0.3);
    transform: translateY(-2px);
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.2);
}

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

.contact-card {
    background: rgba(255, 255, 255, 0.1);
    backdrop-filter: blur(20px);
    border: 1px solid rgba(255, 255, 255, 0.2);
    border-radius: var(--radius-xl);
    padding: 2.5rem;
}

.contact-card-header {
    margin-bottom: 2rem;
}

.contact-card-header h3 {
    font-size: 1.5rem;
    font-weight: 700;
    margin-bottom: 0.5rem;
}

.contact-card-header p {
    opacity: 0.8;
    font-size: 1rem;
}

.contact-methods {
    display: flex;
    flex-direction: column;
    gap: 1.5rem;
    margin-bottom: 2rem;
}

.contact-method {
    display: flex;
    align-items: center;
    gap: 1rem;
    color: white;
    text-decoration: none;
    padding: 1rem;
    border-radius: var(--radius-lg);
    transition: var(--transition);
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid rgba(255, 255, 255, 0.1);
}

.contact-method:hover {
    background: rgba(255, 255, 255, 0.1);
    transform: translateX(5px);
}

.contact-icon {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 48px;
    height: 48px;
    background: rgba(255, 255, 255, 0.1);
    border-radius: var(--radius-md);
    flex-shrink: 0;
}

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

.contact-label {
    font-size: 0.8rem;
    opacity: 0.7;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    font-weight: 500;
}

.contact-value {
    font-size: 1rem;
    font-weight: 600;
}

.response-time {
    padding-top: 1.5rem;
    border-top: 1px solid rgba(255, 255, 255, 0.1);
}

.response-indicator {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    font-size: 0.9rem;
    opacity: 0.8;
}

.pulse-dot {
    width: 8px;
    height: 8px;
    background: var(--success-color);
    border-radius: 50%;
    animation: pulse 2s infinite;
}

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

/* Project Page Styles */
.project-hero {
    background: var(--bg-secondary);
    padding: 120px 0 60px;
}

.project-breadcrumb {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    margin-bottom: 1rem;
    font-size: 0.9rem;
    color: var(--text-muted);
}

.project-breadcrumb a {
    color: var(--primary-color);
    text-decoration: none;
}

/* Project breadcrumb in hero section */
.hero .project-breadcrumb {
    color: rgba(255, 255, 255, 0.8);
    margin-bottom: 1.5rem;
    font-size: 0.95rem;
}

.hero .project-breadcrumb a {
    color: rgba(255, 255, 255, 0.9);
    text-decoration: none;
    transition: var(--transition);
}

.hero .project-breadcrumb a:hover {
    color: white;
}

.hero .project-breadcrumb span {
    color: rgba(255, 255, 255, 0.6);
}

.project-title {
    font-size: 3rem;
    font-weight: 700;
    margin-bottom: 1.5rem;
    color: var(--text-primary);
}

.project-description {
    font-size: 1.2rem;
    color: var(--text-secondary);
    margin-bottom: 2rem;
    line-height: 1.7;
    max-width: 800px;
}

.project-meta {
    display: flex;
    gap: 2rem;
}

.meta-item {
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.meta-label {
    font-weight: 600;
    color: var(--text-secondary);
}

.meta-value {
    color: var(--text-primary);
}

/* Project meta in hero section */
.hero .project-meta {
    display: flex;
    gap: 2rem;
    margin-top: 2rem;
    padding: 1rem 1.5rem;
    background: rgba(255, 255, 255, 0.1);
    backdrop-filter: blur(10px);
    border-radius: var(--radius-lg);
    border: 1px solid rgba(255, 255, 255, 0.2);
}

.hero .meta-item {
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.hero .meta-label {
    font-weight: 600;
    color: rgba(255, 255, 255, 0.8);
    font-size: 0.9rem;
}

.hero .meta-value {
    color: white;
    font-weight: 500;
    font-size: 0.9rem;
}

/* Gallery Styles */
.project-gallery {
    padding: 60px 0;
}

.gallery-controls {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 2rem;
    padding: 1rem;
    background: var(--bg-secondary);
    border-radius: var(--radius-lg);
}

.gallery-info {
    font-weight: 500;
    color: var(--text-secondary);
}

.gallery-actions {
    display: flex;
    gap: 0.5rem;
}

.gallery-btn {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 40px;
    height: 40px;
    background: white;
    border: 1px solid var(--border-color);
    border-radius: var(--radius-md);
    cursor: pointer;
    transition: var(--transition);
}

.gallery-btn:hover {
    background: var(--primary-color);
    color: white;
    border-color: var(--primary-color);
}

.gallery-btn:disabled {
    opacity: 0.5;
    cursor: not-allowed;
}

.main-gallery {
    margin-bottom: 2rem;
}

.main-image-container {
    position: relative;
    height: 600px;
    border-radius: var(--radius-xl);
    overflow: hidden;
    background: var(--bg-tertiary);
}

.main-image {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    opacity: 0;
    transition: opacity 0.5s ease;
}

.main-image.active {
    opacity: 1;
}

.main-image img {
    width: 100%;
    height: 100%;
    object-fit: contain;
    background: white;
}

.thumbnail-gallery {
    overflow-x: auto;
    padding: 1rem 0;
}

.thumbnails-container {
    display: flex;
    gap: 1rem;
    padding-bottom: 0.5rem;
}

.thumbnail {
    flex-shrink: 0;
    width: 100px;
    height: 80px;
    border-radius: var(--radius-md);
    overflow: hidden;
    cursor: pointer;
    border: 2px solid transparent;
    transition: var(--transition);
}

.thumbnail.active {
    border-color: var(--primary-color);
}

.thumbnail:hover {
    border-color: var(--primary-dark);
}

.thumbnail img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

/* Empty Gallery */
.empty-gallery {
    text-align: center;
    padding: 4rem 2rem;
}

.empty-gallery .empty-icon {
    font-size: 4rem;
    margin-bottom: 1rem;
}

.empty-gallery h3 {
    font-size: 1.5rem;
    margin-bottom: 0.5rem;
    color: var(--text-secondary);
}

.empty-gallery p {
    color: var(--text-muted);
    margin-bottom: 2rem;
}

.btn-back {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    background: var(--primary-color);
    color: white;
    text-decoration: none;
    padding: 0.75rem 1.5rem;
    border-radius: var(--radius-lg);
    font-weight: 600;
    transition: var(--transition);
}

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

/* Related Projects */
.related-projects {
    background: var(--bg-secondary);
    padding: 60px 0;
}

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

.related-card {
    background: var(--bg-dark);
    border-radius: var(--radius-lg);
    overflow: hidden;
    box-shadow: var(--shadow-sm);
    transition: var(--transition);
    border: 1px solid var(--primary-color);
}

.related-card:hover {
    transform: translateY(-3px);
    box-shadow: var(--shadow-md);
}

.related-image {
    position: relative;
    height: 200px;
    overflow: hidden;
    background: var(--bg-tertiary);
}

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

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

.related-overlay {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(0, 0, 0, 0.6);
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 0;
    transition: var(--transition);
}

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

.related-link {
    background: white;
    color: var(--text-primary);
    text-decoration: none;
    padding: 0.5rem 1rem;
    border-radius: var(--radius-md);
    font-weight: 600;
    transition: var(--transition);
}

.related-link:hover {
    background: var(--primary-color);
    color: white;
}

.related-content {
    padding: 1.5rem;
}

.related-title {
    margin-bottom: 0.5rem;
}

.related-title a {
    text-decoration: none;
    color: var(--text-white);
    font-size: 1.1rem;
    font-weight: 600;
    transition: var(--transition);
}

.related-title a:hover {
    color: var(--primary-color);
}

.related-date {
    color: rgba(255, 255, 255, 0.7);
    font-size: 0.9rem;
}

/* Fullscreen Modal */
.fullscreen-modal {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.95);
    z-index: 9999;
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 0;
    visibility: hidden;
    transition: var(--transition);
}

.fullscreen-modal.active {
    opacity: 1;
    visibility: visible;
}

.fullscreen-content {
    position: relative;
    width: 90%;
    height: 90%;
    display: flex;
    align-items: center;
    justify-content: center;
}

.fullscreen-close {
    position: absolute;
    top: 1rem;
    right: 1rem;
    background: rgba(255, 255, 255, 0.1);
    border: none;
    color: white;
    width: 40px;
    height: 40px;
    border-radius: 50%;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: var(--transition);
    z-index: 10;
}

.fullscreen-close:hover {
    background: rgba(255, 255, 255, 0.2);
}

.fullscreen-image-container {
    width: 100%;
    height: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
}

.fullscreen-image-container img {
    max-width: 100%;
    max-height: 100%;
    object-fit: contain;
}

.fullscreen-controls {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    display: flex;
    justify-content: space-between;
    width: 100%;
    padding: 0 2rem;
    pointer-events: none;
}

.fullscreen-nav {
    background: rgba(255, 255, 255, 0.1);
    border: none;
    color: white;
    width: 50px;
    height: 50px;
    border-radius: 50%;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: var(--transition);
    pointer-events: auto;
}

.fullscreen-nav:hover {
    background: rgba(255, 255, 255, 0.2);
}

.fullscreen-info {
    position: absolute;
    bottom: 2rem;
    left: 50%;
    transform: translateX(-50%);
    background: rgba(0, 0, 0, 0.7);
    color: white;
    padding: 0.5rem 1rem;
    border-radius: var(--radius-md);
    font-size: 0.9rem;
}

/* Responsive Design - Tablet */
@media (max-width: 1024px) {
    .container {
        padding: 0 2rem;
    }

    .hero {
        padding: 80px 0;
    }

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

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

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

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

    .contact-form {
        order: 2;
    }

    .contact-info {
        order: 1;
    }

    /* Optimize animations for tablet */
    .floating-element {
        animation-duration: 4s;
    }

    .stat {
        transition: transform 0.2s ease;
    }

    .cta-button {
        transition: all 0.2s ease;
    }
}

/* Responsive Design - Mobile */
@media (max-width: 768px) {
    .container {
        padding: 0 1rem;
    }

    .header-content {
        height: 80px;
        padding: 0.5rem 0;
    }

    .logo {
        gap: 0.75rem;
    }

    .profile-photo {
        width: 50px;
        height: 50px;
        border-width: 2px;
    }

    .logo h1 {
        font-size: 1.4rem;
        margin-bottom: 0.1rem;
    }

    .logo-subtitle {
        font-size: 0.8rem;
    }

    .nav {
        display: none;
    }



    .hero {
        padding: 120px 0 80px;
        text-align: center;
        min-height: 100vh;
        display: flex;
        align-items: center;
        background-attachment: scroll;
        background-position: center center;
        background-size: cover;
    }

    .hero .hero-background {
        background: transparent;
    }

    .hero-text {
        text-align: center;
        max-width: 95%;
        padding-left: 0;
        margin: 0 auto;
        padding: 0 1rem;
    }

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

    .hero-title {
        font-size: clamp(2.2rem, 8vw, 3.5rem);
        line-height: 1.1;
        margin-bottom: 0.5rem;
        padding: 0 0.5rem;
    }

    .hero-title {
        font-size: clamp(2.2rem, 8vw, 3.8rem);
        line-height: 1.1;
        margin-bottom: 0.3rem;
    }

    .hero-title .highlight {
        font-size: clamp(2.6rem, 9vw, 4.5rem);
        margin-top: 0.1rem;
        line-height: 1.0;
    }

    .hero-description {
        font-size: clamp(0.95rem, 2.5vw, 1.15rem);
        margin-bottom: 2rem;
        line-height: 1.5;
        padding: 0 1rem;
        max-width: 85%;
        margin-left: auto;
        margin-right: auto;
    }

    .hero-subtitle {
        font-size: 1.15rem;
        margin-bottom: 2.5rem;
        line-height: 1.5;
        padding: 0 1rem;
        max-width: 90%;
        margin-left: auto;
        margin-right: auto;
    }

    .hero-stats {
        grid-template-columns: 1fr;
        gap: 1rem;
        margin: 2rem 0;
    }

    .stat {
        padding: 1rem;
    }

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

    .hero-actions {
        flex-direction: column;
        gap: 1rem;
        align-items: center;
    }

    .cta-button {
        width: 100%;
        max-width: 280px;
        justify-content: center;
    }

    .floating-element {
        display: none;
    }

    .contact {
        padding: 60px 0;
    }

    .contact-header {
        text-align: center;
        margin-bottom: 3rem;
    }

    .contact-title {
         font-size: 2.5rem;
     }

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

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

     .contact-form {
         order: 1;
     }

     .contact-info {
         order: 2;
     }

     .form-group {
         margin-bottom: 1.5rem;
     }

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

     .contact-cards {
         grid-template-columns: 1fr;
         gap: 1rem;
     }

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

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

    .footer-content {
        flex-direction: column;
        gap: 1rem;
    }

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

    /* Project technologies mobile styles */
    .project-technologies {
        justify-content: center;
        margin: 1rem 0;
    }

    .tech-tag {
        font-size: 0.75rem;
        padding: 0.2rem 0.6rem;
    }

    /* Project hero mobile styles */
    .hero .project-breadcrumb {
        font-size: 0.85rem;
        margin-bottom: 1rem;
        justify-content: center;
    }
}

/* ===== SECTION TRANSITIONS & PARALLAX ===== */
.section {
    position: relative;
    overflow: hidden;
    transform: translateZ(0); /* Force hardware acceleration */
}

.section::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(135deg, transparent 0%, rgba(var(--primary-rgb), 0.02) 50%, transparent 100%);
    pointer-events: none;
    transform: translateY(100%);
    transition: transform 0.8s cubic-bezier(0.25, 0.46, 0.45, 0.94);
}

.section.in-view::before {
    transform: translateY(0);
}

/* Parallax container */
.parallax-container {
    position: relative;
    overflow: hidden;
    transform-style: preserve-3d;
}

.parallax-element {
    will-change: transform;
    transition: transform 0.1s ease-out;
}

/* Section-specific parallax effects */
.hero {
    position: relative;
    background-image: url('../images/Portada1.png');
    background-attachment: fixed;
    background-position: center;
    background-repeat: no-repeat;
    background-size: cover;
    min-height: 100vh;
}

.hero .hero-background {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: transparent;
    will-change: transform;
    transition: transform 0.3s ease-out;
}

/* Asegurar visibilidad de secciones principales */
.projects, .about, .footer {
    opacity: 1 !important;
    visibility: visible !important;
    display: block !important;
}

.section-header, .section-title, .section-subtitle {
    opacity: 1 !important;
    visibility: visible !important;
}

.about-content, .footer-content {
    opacity: 1 !important;
    visibility: visible !important;
}

.projects::after, .about::after {
    content: '';
    position: absolute;
    top: -1px;
    left: 0;
    right: 0;
    height: 2px;
    background: linear-gradient(90deg, transparent 0%, var(--primary-color) 50%, transparent 100%);
    opacity: 0;
    transition: opacity 0.6s ease;
}

.projects.in-view::after, .about.in-view::after {
    opacity: 1;
}

/* Floating background elements removed for cleaner design */

/* Reduce motion for accessibility */
@media (prefers-reduced-motion: reduce) {
    .hero {
        background-attachment: scroll;
    }
    
    .parallax-element,
    .float-bg-element,
    .hero .hero-background {
        transform: none !important;
        transition: none !important;
    }
    
    .section::before {
        transition-duration: 0.2s;
    }
    }
    
    .hero .project-meta {
        flex-direction: column;
        gap: 1rem;
        margin-top: 1.5rem;
        padding: 1rem;
        text-align: center;
    }
    
    .hero .meta-item {
        justify-content: center;
        font-size: 0.85rem;
    }

    .main-image-container {
        height: 400px;
    }

    .gallery-controls {
        flex-direction: column;
        gap: 1rem;
        align-items: stretch;
    }

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

    .filters-content {
        flex-direction: column;
        align-items: stretch;
        gap: 1rem;
    }

    .filter-group {
        justify-content: space-between;
    }

    .fullscreen-controls {
        padding: 0 1rem;
    }

    .fullscreen-nav {
        width: 40px;
        height: 40px;
    }

    /* Mobile optimizations */
    * {
        -webkit-tap-highlight-color: transparent;
    }

    .cta-button,
    .submit-btn,
    .contact-method {
        touch-action: manipulation;
    }

    /* Reduce animations on mobile for better performance */
    .floating-element {
        animation-duration: 6s;
    }

    .stat,
    .contact-card,
    .cta-button {
        transition: transform 0.15s ease;
    }

    /* Improve touch targets */
    .cta-button {
        min-height: 44px;
    }

    .submit-btn {
        min-height: 48px;
    }
}

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

    .header-content {
        height: 75px;
        padding: 0.75rem 0;
    }

    .logo {
        gap: 0.5rem;
    }

    .profile-photo {
        width: 45px;
        height: 45px;
        border-width: 2px;
    }

    .logo h1 {
        font-size: 1.2rem;
        margin-bottom: 0.05rem;
    }

    .logo-subtitle {
        font-size: 0.75rem;
    }

    .hero {
        padding: 100px 0 60px;
        min-height: 100vh;
        display: flex;
        align-items: center;
        background-attachment: scroll;
        background-position: center center;
        background-size: cover;
    }

    .hero .hero-background {
        background: transparent;
    }

    .hero-text {
        text-align: center;
        max-width: 98%;
        padding-left: 0;
        margin: 0 auto;
        padding: 0 0.5rem;
    }

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

    .hero-text {
        text-align: left;
        max-width: 100%;
        padding-left: 1rem;
        padding-right: 1rem;
        margin-top: 0.5rem;
    }

    .hero-title {
        font-size: clamp(1.6rem, 6vw, 2.4rem);
        line-height: 1.1;
        margin-bottom: 0.3rem;
        padding: 0 0.5rem;
        text-align: left;
    }

    .hero-title .highlight {
        font-size: clamp(2rem, 8vw, 3rem);
        margin-top: 0.1rem;
        line-height: 1.0;
    }

    .hero-description {
        font-size: clamp(0.85rem, 2.2vw, 1rem);
        margin-bottom: 1.5rem;
        line-height: 1.4;
        padding: 0 0.5rem;
        max-width: 100%;
        text-align: left;
    }

    .hero-subtitle {
        font-size: 1.05rem;
        margin-bottom: 2rem;
        line-height: 1.4;
        padding: 0 1.25rem;
        max-width: 95%;
        margin-left: auto;
        margin-right: auto;
    }

    .hero-stats {
        margin: 1.5rem 0;
        gap: 0.75rem;
    }

    .stat {
        padding: 0.75rem;
    }

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

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

    .cta-button {
        padding: 0.75rem 1.5rem;
        font-size: 0.9rem;
    }

    .contact {
        padding: 40px 0;
    }

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

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

    .contact-subtitle {
        font-size: 0.9rem;
    }

    .contact-grid {
        gap: 1.5rem;
    }

    .form-input,
    .form-textarea {
        padding: 0.75rem;
        font-size: 0.9rem;
    }

    .form-submit {
        padding: 0.75rem 1.5rem;
        font-size: 0.9rem;
    }
}

/* Tipografía Responsiva Avanzada */
@media (max-width: 1200px) {
    :root {
        --text-6xl: 3rem;     /* 48px */
        --text-5xl: 2.5rem;   /* 40px */
        --text-4xl: 2rem;     /* 32px */
        --text-3xl: 1.75rem;  /* 28px */
        --text-2xl: 1.375rem; /* 22px */
    }
}

@media (max-width: 768px) {
    :root {
        --text-6xl: 2.5rem;   /* 40px */
        --text-5xl: 2rem;     /* 32px */
        --text-4xl: 1.75rem;  /* 28px */
        --text-3xl: 1.5rem;   /* 24px */
        --text-2xl: 1.25rem;  /* 20px */
        --text-xl: 1.125rem;  /* 18px */
    }
    
    h1, .h1 {
        font-size: var(--text-5xl);
        line-height: var(--leading-tight);
    }
    
    h2, .h2 {
        font-size: var(--text-3xl);
        line-height: var(--leading-tight);
    }
    
    .lead-text {
        font-size: var(--text-base);
    }
}

@media (max-width: 480px) {
    :root {
        --text-6xl: 2rem;     /* 32px */
        --text-5xl: 1.75rem;  /* 28px */
        --text-4xl: 1.5rem;   /* 24px */
        --text-3xl: 1.375rem; /* 22px */
        --text-2xl: 1.125rem; /* 18px */
        --text-xl: 1rem;      /* 16px */
        --text-lg: 0.9375rem; /* 15px */
    }
    
    .hero-text {
        padding-left: 0.75rem;
        padding-right: 0.75rem;
        margin-top: 0.25rem;
    }
    
    .hero-title {
        font-size: clamp(1.4rem, 5.5vw, 2rem);
        margin-bottom: 0.2rem;
        padding: 0 0.25rem;
    }
    
    .hero-title .highlight {
        font-size: clamp(1.7rem, 7vw, 2.5rem);
        margin-top: 0.05rem;
    }
    
    .hero-description {
        font-size: clamp(0.8rem, 2vw, 0.9rem);
        margin-bottom: 1rem;
        padding: 0 0.25rem;
        line-height: 1.3;
    }
    
    h1, .h1 {
        font-size: var(--text-4xl);
        line-height: var(--leading-snug);
        margin-bottom: var(--spacing-md);
    }
    
    h2, .h2 {
        font-size: var(--text-2xl);
        line-height: var(--leading-snug);
        margin-bottom: var(--spacing-sm);
    }
    
    h3, .h3 {
        font-size: var(--text-xl);
    }
    
    .lead-text {
        font-size: var(--text-sm);
    }
    
    .caption {
        font-size: 0.6875rem; /* 11px */
    }
}

/* Mejoras de legibilidad */
@media (prefers-reduced-motion: reduce) {
    * {
        animation-duration: 0.01ms !important;
        animation-iteration-count: 1 !important;
        transition-duration: 0.01ms !important;
    }
}

@media (prefers-color-scheme: dark) {
    :root {
        --text-primary: #f0f8f0;
        --text-secondary: #e0f2e0;
        --text-muted: #7dd3a0;
        --bg-primary: #0d1f0d;
        --bg-secondary: #1a3d26;
    }
}

/* Optimizaciones de rendimiento tipográfico */
.font-display-swap {
    font-display: swap;
}

.text-optimize {
    text-rendering: optimizeLegibility;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
}

.text-balance {
    text-wrap: balance;
}

.text-pretty {
    text-wrap: pretty;
}

    .contact-card {
        padding: 1rem;
    }

    .contact-icon {
        width: 40px;
        height: 40px;
        font-size: 1.2rem;
    }

    .contact-method {
        font-size: 0.9rem;
    }

    .contact-detail {
        font-size: 0.8rem;
    }

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

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

    .main-image-container {
        height: 300px;
    }

    .thumbnail {
        width: 80px;
        height: 60px;
    }
}

/* Smooth scrolling */
html {
    scroll-behavior: smooth;
}

/* Loading states */
.loading {
    opacity: 0.7;
    pointer-events: none;
}

/* Focus styles for accessibility */
.gallery-btn:focus,
.view-btn:focus,
.nav-link:focus,
.cta-button:focus {
    outline: 2px solid var(--primary-color);
    outline-offset: 2px;
}

/* Print styles */
/* Developer Card Styles */
.developer-card {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    border-radius: 20px;
    padding: 2rem;
    color: white;
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.1);
    max-width: 400px;
    margin: 0 auto;
    position: relative;
    overflow: hidden;
}

.developer-card::before {
    content: '';
    position: absolute;
    top: -50%;
    right: -50%;
    width: 100%;
    height: 100%;
    background: linear-gradient(45deg, transparent, rgba(255, 255, 255, 0.1), transparent);
    transform: rotate(45deg);
    animation: shine 3s infinite;
}

@keyframes shine {
    0% { transform: translateX(-100%) translateY(-100%) rotate(45deg); }
    50% { transform: translateX(100%) translateY(100%) rotate(45deg); }
    100% { transform: translateX(-100%) translateY(-100%) rotate(45deg); }
}

.card-header {
    display: flex;
    align-items: center;
    gap: 1rem;
    margin-bottom: 1.5rem;
}

.avatar {
    width: 60px;
    height: 60px;
    border-radius: 50%;
    background: linear-gradient(135deg, #ff6b6b, #ee5a24);
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.2);
}

.avatar-inner {
    width: 50px;
    height: 50px;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.2);
    display: flex;
    align-items: center;
    justify-content: center;
    backdrop-filter: blur(10px);
}

.avatar-text {
    font-weight: bold;
    font-size: 1.2rem;
    color: white;
}

.developer-info h3 {
    margin: 0;
    font-size: 1.4rem;
    font-weight: 600;
}

.developer-info p {
    margin: 0.25rem 0 0 0;
    opacity: 0.9;
    font-size: 0.9rem;
}

.quote-section {
    background: rgba(255, 255, 255, 0.1);
    border-radius: 15px;
    padding: 1.5rem;
    margin-bottom: 1.5rem;
    backdrop-filter: blur(10px);
    border: 1px solid rgba(255, 255, 255, 0.2);
}

.quote-icon {
    font-size: 2rem;
    text-align: center;
    margin-bottom: 1rem;
    animation: bounce 2s infinite;
}

@keyframes bounce {
    0%, 20%, 50%, 80%, 100% { transform: translateY(0); }
    40% { transform: translateY(-10px); }
    60% { transform: translateY(-5px); }
}

.personal-quote {
    font-style: italic;
    font-size: 1rem;
    line-height: 1.6;
    text-align: center;
    margin: 0;
    position: relative;
}



.tech-stack h4 {
    margin: 0 0 1rem 0;
    font-size: 1.1rem;
    text-align: center;
    opacity: 0.9;
}

.tech-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 0.75rem;
}

.tech-item {
    display: flex;
    justify-content: center;
}

.tech-icon {
    background: rgba(255, 255, 255, 0.15);
    border-radius: 10px;
    padding: 0.5rem;
    font-size: 0.75rem;
    font-weight: 600;
    text-align: center;
    min-width: 60px;
    transition: all 0.3s ease;
    border: 1px solid rgba(255, 255, 255, 0.2);
    backdrop-filter: blur(5px);
}

.tech-icon:hover {
    transform: translateY(-2px);
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.2);
    background: rgba(255, 255, 255, 0.25);
}

/* Specific tech colors */
.tech-icon.html { background: linear-gradient(135deg, #e34f26, #f06529); }
.tech-icon.css { background: linear-gradient(135deg, #1572b6, #33a9dc); }
.tech-icon.js { background: linear-gradient(135deg, #f7df1e, #ffda44); color: #333; }
.tech-icon.php { background: linear-gradient(135deg, #777bb4, #8892bf); }
.tech-icon.laravel { background: linear-gradient(135deg, #ff2d20, #ff5722); }
.tech-icon.mysql { background: linear-gradient(135deg, #4479a1, #00758f); }
.tech-icon.react { background: linear-gradient(135deg, #61dafb, #21d4fd); color: #333; }
.tech-icon.node { background: linear-gradient(135deg, #339933, #68a063); }
.tech-icon.git { background: linear-gradient(135deg, #f05032, #ff6b47); }

/* Responsive adjustments */
@media (max-width: 768px) {
    .developer-card {
        padding: 1.5rem;
        margin: 1rem;
    }
    
    .tech-grid {
        grid-template-columns: repeat(2, 1fr);
    }
    
    .personal-quote {
        font-size: 0.9rem;
    }
}

@media print {
    .header,
    .filters-panel,
    .footer {
        display: none;
    }

    .hero {
        background: none;
        color: var(--text-primary);
    }

    .project-card {
        break-inside: avoid;
    }
}

/* Scrollbar personalizada */
::-webkit-scrollbar {
    width: 12px;
    height: 12px;
}

::-webkit-scrollbar-track {
    background: var(--bg-secondary);
    border-radius: var(--radius-lg);
    border: 1px solid var(--border-color);
}

::-webkit-scrollbar-thumb {
    background: linear-gradient(180deg, var(--primary-color) 0%, var(--primary-dark) 100%);
    border-radius: var(--radius-lg);
    border: 2px solid var(--bg-secondary);
    transition: all 0.3s ease;
}

::-webkit-scrollbar-thumb:hover {
    background: linear-gradient(180deg, var(--primary-dark) 0%, var(--secondary-color) 100%);
    transform: scale(1.1);
    box-shadow: var(--shadow-md);
}

::-webkit-scrollbar-thumb:active {
    background: var(--secondary-color);
}

::-webkit-scrollbar-corner {
    background: var(--bg-secondary);
}

/* Scrollbar para Firefox */
html {
    scrollbar-width: thin;
    scrollbar-color: var(--primary-color) var(--bg-secondary);
}

/* Scrollbar suave para elementos con scroll interno */
.project-gallery,
.skills-grid,
.timeline {
    scrollbar-width: thin;
    scrollbar-color: var(--primary-light) var(--bg-tertiary);
}

.project-gallery::-webkit-scrollbar,
.skills-grid::-webkit-scrollbar,
.timeline::-webkit-scrollbar {
    width: 8px;
    height: 8px;
}

.project-gallery::-webkit-scrollbar-thumb,
.skills-grid::-webkit-scrollbar-thumb,
.timeline::-webkit-scrollbar-thumb {
    background: var(--primary-light);
    border-radius: var(--radius-md);
    border: 1px solid var(--bg-tertiary);
}

.project-gallery::-webkit-scrollbar-thumb:hover,
.skills-grid::-webkit-scrollbar-thumb:hover,
.timeline::-webkit-scrollbar-thumb:hover {
    background: var(--primary-color);
}

/* Animación suave del scroll */
html {
    scroll-behavior: smooth;
}

/* Efectos adicionales para mejor UX */
::-webkit-scrollbar-thumb {
    background-clip: padding-box;
}

@media (max-width: 768px) {
    ::-webkit-scrollbar {
        width: 8px;
        height: 8px;
    }
    
    ::-webkit-scrollbar-thumb {
        border: 1px solid var(--bg-secondary);
    }
}

/* ===== CONTACT SECTION - REDESIGNED WITH BRAND COLORS ===== */
.contact {
    background: var(--bg-gradient-dark);
    padding: 80px 0;
    min-height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    position: relative;
    overflow: hidden;
}

.contact::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: 
        radial-gradient(circle at 20% 80%, rgba(74, 153, 96, 0.1) 0%, transparent 50%),
        radial-gradient(circle at 80% 20%, rgba(125, 211, 160, 0.1) 0%, transparent 50%);
    pointer-events: none;
}

.contact-content {
    display: grid;
    grid-template-columns: 1fr 1fr;
    width: 100%;
    max-width: 1200px;
    min-height: 600px;
    background: var(--bg-primary);
    border-radius: var(--radius-xl);
    box-shadow: var(--shadow-2xl);
    overflow: hidden;
    border: 1px solid var(--border-color);
    position: relative;
    z-index: 1;
}

/* Left Section - Dark Green Background */
.contact-info-left {
    background: var(--bg-gradient-dark);
    color: var(--text-white);
    padding: 60px 50px;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    position: relative;
}

.contact-info-left::before {
    content: '';
    position: absolute;
    top: 0;
    right: 0;
    width: 2px;
    height: 100%;
    background: linear-gradient(180deg, transparent 0%, var(--primary-light) 50%, transparent 100%);
}

.location-section h3,
.social-section h3 {
    font-size: 18px;
    font-weight: 600;
    letter-spacing: 2px;
    margin-bottom: 20px;
    color: var(--text-white);
    text-transform: uppercase;
}

.location-section p {
    font-size: 16px;
    line-height: 1.6;
    color: rgba(255, 255, 255, 0.8);
    margin: 0;
}

.social-icons {
    display: flex;
    gap: 15px;
    margin-bottom: 30px;
}

.social-icon {
    width: 45px;
    height: 45px;
    background: rgba(74, 153, 96, 0.2);
    border: 2px solid var(--primary-color);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--primary-light);
    text-decoration: none;
    transition: all 0.3s ease;
    backdrop-filter: blur(10px);
}

.social-icon:hover {
    background: var(--primary-color);
    color: var(--text-white);
    transform: translateY(-3px) scale(1.1);
    box-shadow: 0 8px 25px rgba(74, 153, 96, 0.4);
}

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

.copyright {
    font-size: 14px;
    color: rgba(255, 255, 255, 0.6);
    margin: 0;
}

/* Right Section - Light Green Background */
.contact-form-right {
    background: linear-gradient(135deg, var(--bg-secondary) 0%, var(--bg-tertiary) 100%);
    padding: 60px 50px;
    display: flex;
    flex-direction: column;
    position: relative;
}

.contact-form-right::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 4px;
    background: var(--bg-gradient);
}

.form-title {
    color: var(--text-primary);
    font-size: 28px;
    font-weight: 700;
    letter-spacing: 1px;
    margin-bottom: 40px;
    text-align: left;
    position: relative;
}

.form-title::after {
    content: '';
    position: absolute;
    bottom: -10px;
    left: 0;
    width: 60px;
    height: 3px;
    background: var(--bg-gradient);
    border-radius: var(--radius-sm);
}

.contact-form-yellow {
    display: flex;
    flex-direction: column;
    gap: 25px;
    flex: 1;
}

.contact-form-yellow .form-group {
    margin-bottom: 0;
}

.form-input-yellow,
.form-textarea-yellow {
    width: 100%;
    padding: 18px 20px;
    border: 2px solid var(--border-color);
    border-radius: var(--radius-md);
    background: var(--bg-primary);
    font-size: 16px;
    color: var(--text-primary);
    outline: none;
    transition: all 0.3s ease;
    box-sizing: border-box;
    font-family: inherit;
}

.form-input-yellow::placeholder,
.form-textarea-yellow::placeholder {
    color: var(--text-muted);
    font-size: 16px;
}

.form-input-yellow:focus,
.form-textarea-yellow:focus {
    border-color: var(--primary-color);
    box-shadow: 0 0 0 3px rgba(74, 153, 96, 0.1);
    background: var(--bg-primary);
    transform: translateY(-1px);
}

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

.btn-submit-yellow {
    background: var(--bg-gradient);
    color: var(--text-white);
    border: none;
    padding: 18px 40px;
    font-size: 16px;
    font-weight: 600;
    letter-spacing: 1px;
    cursor: pointer;
    transition: all 0.3s ease;
    margin-top: 20px;
    align-self: flex-start;
    border-radius: var(--radius-md);
    text-transform: uppercase;
    position: relative;
    overflow: hidden;
}

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

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

.btn-submit-yellow:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 25px rgba(74, 153, 96, 0.3);
    background: linear-gradient(135deg, var(--primary-dark) 0%, var(--primary-color) 100%);
}

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

/* Responsive Design */
@media (max-width: 768px) {
    .contact {
        padding: 40px 20px;
    }
    
    .contact-content {
        grid-template-columns: 1fr;
        max-width: 100%;
        margin: 0 20px;
    }
    
    .contact-info-left,
    .contact-form-right {
        padding: 40px 30px;
    }
    
    .contact-info-left::before {
        display: none;
    }
    
    .form-title {
        font-size: 24px;
        text-align: center;
    }
}

/* Nuevas animaciones para dar más vida al diseño */
@keyframes badgeFloat {
    0%, 100% {
        transform: translateY(0px);
    }
    50% {
        transform: translateY(-5px);
    }
}

@keyframes textGlow {
    0% {
        text-shadow: 0 0 5px rgba(125, 211, 160, 0.5);
    }
    100% {
        text-shadow: 0 0 15px rgba(125, 211, 160, 0.8);
    }
}

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

@keyframes techIconFloat {
    0%, 100% {
        transform: translateY(0px) rotate(0deg);
    }
    25% {
        transform: translateY(-10px) rotate(5deg);
    }
    50% {
        transform: translateY(-5px) rotate(-3deg);
    }
    75% {
        transform: translateY(-15px) rotate(8deg);
    }
}

/* Nuevas animaciones dinámicas para formas geométricas */
@keyframes dynamicFloat1 {
    0%, 100% {
        transform: translateY(0px) translateX(0px) scale(1);
    }
    25% {
        transform: translateY(-20px) translateX(10px) scale(1.05);
    }
    50% {
        transform: translateY(-10px) translateX(-15px) scale(0.95);
    }
    75% {
        transform: translateY(-30px) translateX(5px) scale(1.1);
    }
}

@keyframes dynamicFloat2 {
    0%, 100% {
        transform: translateY(0px) translateX(0px) scale(1) rotate(0deg);
    }
    20% {
        transform: translateY(-15px) translateX(-10px) scale(1.08) rotate(5deg);
    }
    40% {
        transform: translateY(-25px) translateX(20px) scale(0.92) rotate(-3deg);
    }
    60% {
        transform: translateY(-5px) translateX(-25px) scale(1.12) rotate(8deg);
    }
    80% {
        transform: translateY(-35px) translateX(15px) scale(0.88) rotate(-5deg);
    }
}

@keyframes dynamicSquare {
    0%, 100% {
        transform: rotate(45deg) scale(1) translateY(0px);
    }
    25% {
        transform: rotate(90deg) scale(1.2) translateY(-10px);
    }
    50% {
        transform: rotate(135deg) scale(0.8) translateY(-20px);
    }
    75% {
        transform: rotate(180deg) scale(1.1) translateY(-5px);
    }
}

@keyframes dynamicTriangle {
    0%, 100% {
        transform: translateY(0px) translateX(0px) rotate(0deg) scale(1);
    }
    33% {
        transform: translateY(-15px) translateX(10px) rotate(10deg) scale(1.1);
    }
    66% {
        transform: translateY(-25px) translateX(-8px) rotate(-5deg) scale(0.9);
    }
}

/* Nuevas animaciones para formas topográficas dinámicas */
@keyframes morphTopographic1 {
    0%, 100% {
        border-radius: 60% 40% 30% 70% / 60% 30% 70% 40%;
        transform: scale(1) rotate(0deg);
    }
    20% {
        border-radius: 30% 70% 60% 40% / 40% 60% 30% 70%;
        transform: scale(1.05) rotate(72deg);
    }
    40% {
        border-radius: 70% 30% 40% 60% / 70% 40% 60% 30%;
        transform: scale(0.95) rotate(144deg);
    }
    60% {
        border-radius: 40% 60% 70% 30% / 30% 70% 40% 60%;
        transform: scale(1.1) rotate(216deg);
    }
    80% {
        border-radius: 50% 50% 50% 50% / 60% 40% 60% 40%;
        transform: scale(0.9) rotate(288deg);
    }
}

@keyframes morphTopographic2 {
    0%, 100% {
        border-radius: 40% 60% 70% 30% / 50% 40% 60% 50%;
        transform: scale(1) rotate(0deg);
    }
    25% {
        border-radius: 60% 40% 30% 70% / 70% 30% 40% 60%;
        transform: scale(1.08) rotate(90deg);
    }
    50% {
        border-radius: 30% 70% 60% 40% / 40% 70% 30% 60%;
        transform: scale(0.92) rotate(180deg);
    }
    75% {
        border-radius: 70% 30% 40% 60% / 60% 40% 70% 30%;
        transform: scale(1.03) rotate(270deg);
    }
}

@keyframes morphTopographic3 {
    0%, 100% {
        border-radius: 70% 30% 40% 60% / 40% 70% 30% 60%;
        transform: scale(1) rotate(0deg);
    }
    30% {
        border-radius: 30% 70% 60% 40% / 60% 30% 70% 40%;
        transform: scale(1.12) rotate(108deg);
    }
    60% {
        border-radius: 60% 40% 30% 70% / 30% 60% 40% 70%;
        transform: scale(0.88) rotate(216deg);
    }
    90% {
        border-radius: 40% 60% 70% 30% / 70% 40% 60% 30%;
        transform: scale(1.05) rotate(324deg);
    }
}

@keyframes floatTopographic {
    0%, 100% {
        transform: translateY(0px) translateX(0px);
    }
    25% {
        transform: translateY(-8px) translateX(5px);
    }
    50% {
        transform: translateY(-15px) translateX(-3px);
    }
    75% {
        transform: translateY(-5px) translateX(8px);
    }
}

@keyframes flowLine1 {
    0%, 100% {
        transform: rotate(-15deg) translateX(0px) scaleX(1);
        opacity: 0.8;
    }
    25% {
        transform: rotate(-10deg) translateX(30px) scaleX(1.1);
        opacity: 1;
    }
    50% {
        transform: rotate(-20deg) translateX(60px) scaleX(0.9);
        opacity: 0.6;
    }
    75% {
        transform: rotate(-5deg) translateX(90px) scaleX(1.05);
        opacity: 0.9;
    }
}

@keyframes flowLine2 {
    0%, 100% {
        transform: rotate(10deg) translateX(0px) scaleX(1);
        opacity: 0.7;
    }
    30% {
        transform: rotate(15deg) translateX(-40px) scaleX(1.15);
        opacity: 0.9;
    }
    60% {
        transform: rotate(5deg) translateX(-80px) scaleX(0.85);
        opacity: 0.5;
    }
    90% {
        transform: rotate(20deg) translateX(-120px) scaleX(1.1);
        opacity: 0.8;
    }
}

@keyframes organicMorph {
    0%, 100% {
        border-radius: 60% 40% 30% 70% / 60% 30% 70% 40%;
        transform: scale(1) rotate(0deg);
    }
    16% {
        border-radius: 30% 60% 70% 40% / 50% 60% 30% 60%;
        transform: scale(1.1) rotate(60deg);
    }
    32% {
        border-radius: 50% 30% 60% 40% / 30% 70% 40% 50%;
        transform: scale(0.9) rotate(120deg);
    }
    48% {
        border-radius: 40% 70% 30% 60% / 70% 40% 60% 30%;
        transform: scale(1.05) rotate(180deg);
    }
    64% {
        border-radius: 70% 40% 60% 30% / 40% 50% 70% 60%;
        transform: scale(0.95) rotate(240deg);
    }
    80% {
        border-radius: 35% 65% 45% 55% / 65% 35% 55% 45%;
        transform: scale(1.08) rotate(300deg);
    }
}

@keyframes organicFloat {
    0%, 100% {
        transform: translateY(0px) translateX(0px);
    }
    20% {
        transform: translateY(-12px) translateX(8px);
    }
    40% {
        transform: translateY(-20px) translateX(-5px);
    }
    60% {
        transform: translateY(-8px) translateX(12px);
    }
    80% {
        transform: translateY(-16px) translateX(-8px);
    }
}

/* Nuevas animaciones para formas específicas */
@keyframes dynamicHexagon {
    0%, 100% {
        transform: translateY(0px) translateX(0px) scale(1);
    }
    25% {
        transform: translateY(-12px) translateX(8px) scale(1.1);
    }
    50% {
        transform: translateY(-20px) translateX(-6px) scale(0.9);
    }
    75% {
        transform: translateY(-8px) translateX(12px) scale(1.05);
    }
}

@keyframes dynamicWave {
    0%, 100% {
        transform: rotate(-15deg) translateX(0px) scaleX(1);
    }
    25% {
        transform: rotate(-10deg) translateX(20px) scaleX(1.1);
    }
    50% {
        transform: rotate(-20deg) translateX(-15px) scaleX(0.9);
    }
    75% {
        transform: rotate(-12deg) translateX(25px) scaleX(1.05);
    }
}

@keyframes dynamicStar {
    0%, 100% {
        transform: translateY(0px) rotate(0deg) scale(1);
    }
    20% {
        transform: translateY(-10px) rotate(72deg) scale(1.2);
    }
    40% {
        transform: translateY(-18px) rotate(144deg) scale(0.8);
    }
    60% {
        transform: translateY(-5px) rotate(216deg) scale(1.1);
    }
    80% {
        transform: translateY(-15px) rotate(288deg) scale(0.9);
    }
}

@keyframes dynamicRing {
    0%, 100% {
        transform: translateY(0px) scale(1);
        border-width: 4px;
    }
    25% {
        transform: translateY(-8px) scale(1.1);
        border-width: 6px;
    }
    50% {
        transform: translateY(-15px) scale(0.9);
        border-width: 2px;
    }
    75% {
        transform: translateY(-5px) scale(1.05);
        border-width: 5px;
    }
}
    
    .social-icons {
        justify-content: center;
    }
    
    .btn-submit-yellow {
        align-self: stretch;
        text-align: center;
    }
}

/* Estilos para formas SVG dinámicas */
.shape-organic-main {
    position: absolute;
    top: 10%;
    right: 15%;
    width: 300px;
    height: 200px;
    opacity: 0.15;
    z-index: 1;
}

.organic-path {
    fill: rgba(255, 255, 255, 0.3);
    stroke: rgba(255, 255, 255, 0.5);
    stroke-width: 2;
    filter: blur(1px);
}

.shape-topo-lines {
    position: absolute;
    top: 20%;
    left: 10%;
    width: 400px;
    height: 300px;
    opacity: 0.2;
    z-index: 1;
}

.topo-line {
    fill: none;
    stroke: rgba(255, 255, 255, 0.6);
    stroke-width: 2;
    stroke-linecap: round;
}

.shape-fluid-blob {
    position: absolute;
    bottom: 20%;
    left: 20%;
    width: 250px;
    height: 250px;
    opacity: 0.1;
    z-index: 1;
}

.fluid-path {
    fill: rgba(255, 255, 255, 0.4);
    stroke: rgba(255, 255, 255, 0.3);
    stroke-width: 1;
    filter: blur(2px);
}

.shape-particles {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    opacity: 0.3;
    z-index: 2;
}

.particle {
    fill: rgba(255, 255, 255, 0.8);
    filter: blur(0.5px);
}

/* Animaciones fluidas para textos estilo GSAP */
.hero-title {
    opacity: 0;
    transform: translateY(50px);
    animation: slideInUp 1.2s cubic-bezier(0.25, 0.46, 0.45, 0.94) 0.3s forwards;
}

.hero-subtitle {
    opacity: 0;
    transform: translateY(30px);
    animation: slideInUp 1s cubic-bezier(0.25, 0.46, 0.45, 0.94) 0.6s forwards;
}

.hero-actions {
    opacity: 0;
    transform: translateY(20px);
    animation: slideInUp 0.8s cubic-bezier(0.25, 0.46, 0.45, 0.94) 0.9s forwards;
}

.profile-photo {
    opacity: 1 !important; /* Forzar visibilidad */
    transform: scale(1) translateY(0) translateX(0) rotate(0deg); /* Posición fija sin animación */
    /* animation: scaleInUp 1.5s cubic-bezier(0.34, 1.56, 0.64, 1) 0.2s forwards; - Removida */
}

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

@keyframes scaleInUp {
    to {
        opacity: 1;
        transform: scale(1) translateY(0);
    }
}

/* Microinteracciones avanzadas */
.btn {
    position: relative;
    overflow: hidden;
    transition: all 0.4s cubic-bezier(0.25, 0.46, 0.45, 0.94);
}

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

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

.btn:hover {
    transform: translateY(-3px);
    box-shadow: 0 10px 25px rgba(0, 0, 0, 0.2);
}

.btn:active {
    transform: translateY(-1px);
    transition: transform 0.1s;
}

/* Optimizaciones para Opera GX - SVG eliminados */
@media (prefers-reduced-motion: no-preference) {
    /* Estilos para elementos restantes */
}

/* Fallback para navegadores con preferencia de movimiento reducido - SVG eliminados */
@media (prefers-reduced-motion: reduce) {
    /* Estilos para elementos restantes */
}

/* Efectos de microinteracciones avanzadas */
.ripple-effect {
    position: absolute;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.6);
    pointer-events: none;
    transform: scale(0);
    transition: transform 0.6s ease-out, opacity 0.6s ease-out;
    width: 20px;
    height: 20px;
    margin-left: -10px;
    margin-top: -10px;
}

.glow-effect {
    position: absolute;
    top: -5px;
    left: -5px;
    right: -5px;
    bottom: -5px;
    background: linear-gradient(45deg, #007bff, #00d4ff);
    border-radius: inherit;
    opacity: 0;
    z-index: -1;
    transition: all 0.3s ease;
    filter: blur(10px);
}

.nav-underline {
    position: absolute;
    bottom: -2px;
    left: 0;
    height: 2px;
    background: linear-gradient(90deg, #007bff, #00d4ff);
    width: 0%;
    opacity: 0;
    transition: all 0.3s cubic-bezier(0.25, 0.46, 0.45, 0.94);
}

/* Transiciones suaves mejoradas */
.cta-button, .contact-btn {
    position: relative;
    overflow: hidden;
    transition: all 0.3s cubic-bezier(0.25, 0.46, 0.45, 0.94);
    will-change: transform, box-shadow;
}

.project-card, .skill-card, .service-card {
    transition: all 0.4s cubic-bezier(0.25, 0.46, 0.45, 0.94);
    will-change: transform, box-shadow;
    perspective: 1000px;
}

.project-card img, .skill-card img, .service-card img {
    transition: transform 0.4s cubic-bezier(0.25, 0.46, 0.45, 0.94);
    will-change: transform;
}

.nav-link, .menu-link {
    position: relative;
    transition: all 0.3s ease;
}

.social-icon, .contact-icon {
    transition: all 0.3s cubic-bezier(0.34, 1.56, 0.64, 1);
    will-change: transform, color;
}

/* Optimizaciones específicas para Opera GX */
@media screen and (-webkit-min-device-pixel-ratio: 0) {
    .geometric-shapes svg {
        transform: translateZ(0);
        backface-visibility: hidden;
        perspective: 1000px;
    }
    
    .hero-title, .hero-subtitle, .hero-actions, .profile-photo {
        transform: translateZ(0);
        backface-visibility: hidden;
    }
    
    .btn, .project-card, .skill-card, .service-card {
        transform: translateZ(0);
        backface-visibility: hidden;
    }
}

/* Control de animaciones iniciales para JavaScript */
.hero-title {
    animation: none !important;
    opacity: 0;
    transform: translateY(50px);
}

.hero-subtitle {
    animation: none !important;
    opacity: 0;
    transform: translateY(50px);
}

.hero-actions {
    animation: none !important;
    opacity: 0;
    transform: translateY(50px);
}

.profile-photo {
    animation: none !important;
    opacity: 0;
    transform: translateY(50px) scale(0.8);
}

/* Mejoras de rendimiento */
.shape-organic-main, .shape-topo-lines, .shape-fluid-blob, .shape-particles {
    will-change: transform, opacity;
    contain: layout style paint;
}

/* Elementos geométricos dinámicos */
.geometric-elements {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    pointer-events: none;
    overflow: hidden;
}

.geometric-shape {
    position: absolute;
    opacity: 0.7;
    animation-timing-function: ease-in-out;
    animation-iteration-count: infinite;
    animation-direction: alternate;
}

/* Círculo flotante 1 */
.circle-1 {
    width: 80px;
    height: 80px;
    background: linear-gradient(135deg, #7dd3a0, #4a9960);
    border-radius: 50%;
    top: 10%;
    right: 15%;
    animation: float-circle-1 4s ease-in-out infinite;
    box-shadow: 0 10px 30px rgba(125, 211, 160, 0.3);
}

/* Triángulo dinámico */
.triangle-1 {
    width: 0;
    height: 0;
    border-left: 30px solid transparent;
    border-right: 30px solid transparent;
    border-bottom: 52px solid #5cb85c;
    top: 60%;
    left: 10%;
    animation: rotate-triangle 6s linear infinite;
    filter: drop-shadow(0 5px 15px rgba(92, 184, 92, 0.4));
}

/* Cuadrado rotativo */
.square-1 {
    width: 50px;
    height: 50px;
    background: linear-gradient(45deg, #4a9960, #2d5a3d);
    top: 30%;
    left: 80%;
    animation: rotate-square 5s ease-in-out infinite;
    border-radius: 8px;
    box-shadow: 0 8px 25px rgba(74, 153, 96, 0.3);
}

/* Círculo pequeño flotante */
.circle-2 {
    width: 40px;
    height: 40px;
    background: radial-gradient(circle, #7dd3a0, #5cb85c);
    border-radius: 50%;
    bottom: 20%;
    right: 25%;
    animation: float-circle-2 3s ease-in-out infinite;
    opacity: 0.8;
}

/* Hexágono */
.hexagon-1 {
    width: 60px;
    height: 34.64px;
    background: #4a9960;
    position: relative;
    top: 15%;
    left: 20%;
    animation: pulse-hexagon 4s ease-in-out infinite;
}

.hexagon-1:before,
.hexagon-1:after {
    content: "";
    position: absolute;
    width: 0;
    border-left: 30px solid transparent;
    border-right: 30px solid transparent;
}

.hexagon-1:before {
    bottom: 100%;
    border-bottom: 17.32px solid #4a9960;
}

.hexagon-1:after {
    top: 100%;
    border-top: 17.32px solid #4a9960;
}

/* Líneas decorativas */
.line-1 {
    width: 100px;
    height: 2px;
    background: linear-gradient(90deg, transparent, #7dd3a0, transparent);
    top: 45%;
    left: 5%;
    animation: slide-line-1 3s ease-in-out infinite;
}

.line-2 {
    width: 2px;
    height: 80px;
    background: linear-gradient(180deg, transparent, #5cb85c, transparent);
    top: 25%;
    right: 10%;
    animation: slide-line-2 4s ease-in-out infinite;
}

/* Animaciones */
@keyframes float-circle-1 {
    0%, 100% { transform: translateY(0px) rotate(0deg); }
    50% { transform: translateY(-20px) rotate(180deg); }
}

@keyframes rotate-triangle {
    0% { transform: rotate(0deg) scale(1); }
    50% { transform: rotate(180deg) scale(1.1); }
    100% { transform: rotate(360deg) scale(1); }
}

@keyframes rotate-square {
    0%, 100% { transform: rotate(0deg) translateY(0px); }
    25% { transform: rotate(90deg) translateY(-10px); }
    50% { transform: rotate(180deg) translateY(0px); }
    75% { transform: rotate(270deg) translateY(-10px); }
}

@keyframes float-circle-2 {
    0%, 100% { transform: translateX(0px) translateY(0px); }
    33% { transform: translateX(-15px) translateY(-10px); }
    66% { transform: translateX(15px) translateY(-5px); }
}

@keyframes pulse-hexagon {
    0%, 100% { transform: scale(1) rotate(0deg); opacity: 0.7; }
    50% { transform: scale(1.2) rotate(60deg); opacity: 1; }
}

@keyframes slide-line-1 {
    0%, 100% { transform: translateX(0px); opacity: 0.5; }
    50% { transform: translateX(30px); opacity: 1; }
}

@keyframes slide-line-2 {
    0%, 100% { transform: translateY(0px); opacity: 0.5; }
    50% { transform: translateY(-20px); opacity: 1; }
}

/* Responsividad para elementos geométricos */
@media (max-width: 768px) {
    .geometric-shape {
        transform: scale(0.7);
    }
    
    .circle-1 { width: 60px; height: 60px; }
    .square-1 { width: 35px; height: 35px; }
    .circle-2 { width: 30px; height: 30px; }
    .hexagon-1 { width: 45px; height: 26px; }
    .line-1 { width: 70px; }
    .line-2 { height: 60px; }
}

/* =====================
   Modal de Éxito
   ===================== */
.modal-overlay {
    position: fixed;
    inset: 0;
    background: rgba(20, 20, 20, 0.5);
    backdrop-filter: blur(3px);
    display: none;
    align-items: center;
    justify-content: center;
    z-index: 1000;
    padding: 20px;
}

.modal-overlay.show { display: flex; }

.modal-card {
    width: 100%;
    max-width: 420px;
    background: var(--bg-primary);
    border-radius: var(--radius-lg);
    box-shadow: 0 20px 50px rgba(0,0,0,0.2);
    padding: 28px 28px 24px;
    text-align: center;
    position: relative;
    animation: modal-in 280ms ease-out;
}

.modal-close {
    position: absolute;
    top: 10px;
    right: 12px;
    border: none;
    background: transparent;
    color: var(--text-primary);
    font-size: 24px;
    cursor: pointer;
}

.modal-illustration {
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 12px;
}

.emoji-badge {
    width: 84px;
    height: 84px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 40px;
    box-shadow: 0 10px 30px rgba(74, 153, 96, 0.35);
    background: radial-gradient(ellipse at center, #fff 0%, #fff 40%, rgba(74, 153, 96, 0.12) 100%);
}

.modal-title {
    margin: 6px 0 8px;
    font-size: 22px;
    color: var(--text-primary);
}

.modal-message {
    color: var(--text-muted);
    font-size: 15px;
    line-height: 1.6;
    margin-bottom: 18px;
}

.modal-actions { display: flex; justify-content: center; }

.modal-primary {
    background: var(--bg-gradient);
    color: var(--text-white);
    border: none;
    padding: 12px 22px;
    font-size: 14px;
    font-weight: 600;
    border-radius: var(--radius-md);
    cursor: pointer;
    box-shadow: 0 8px 20px rgba(74, 153, 96, 0.28);
}

.modal-primary:hover { transform: translateY(-1px); }

@keyframes modal-in {
    from { opacity: 0; transform: translateY(12px) scale(.98); }
    to { opacity: 1; transform: translateY(0) scale(1); }
}
