:root {
    --bg: #1a1a24;
    --surface: #2a2a36;
    --text: #f0eef6;
    --primary: #ff7eb5;
    --secondary: #ff758c;
    --accent: #a18cd1;
    --neon: #ff99cc;
    --gradient: linear-gradient(45deg, #ff7eb5, #ff758c);
    --shadow: 0 12px 32px rgba(0, 0, 0, 0.2);
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    font-family: 'Poppins', sans-serif;
}

html {
    scroll-behavior: smooth;
}

body {
    background: var(--bg);
    color: var(--text);
    min-height: 100vh;
    padding: 2rem;
    overflow-x: hidden;
    line-height: 1.6;
}

.container {
    max-width: 1400px;
    margin: 0 auto;
    position: relative;
}

/* Mejoras de accesibilidad */
:focus {
    outline: 2px solid var(--primary);
    outline-offset: 2px;
}

/* Mejoras de rendimiento */
img {
    max-width: 100%;
    height: auto;
    loading: lazy;
}

/* Mejoras de animaciones */
@media (prefers-reduced-motion: reduce) {
    * {
        animation-duration: 0.01ms !important;
        animation-iteration-count: 1 !important;
        transition-duration: 0.01ms !important;
        scroll-behavior: auto !important;
    }
}

/* Resto del CSS existente */
.particles {
    position: fixed;
    width: 100vw;
    height: 100vh;
    top: 0;
    left: 0;
    pointer-events: none;
    z-index: -1;
}

.particle {
    position: absolute;
    background: var(--primary);
    border-radius: 50%;
    pointer-events: none;
    transition: all 0.3s ease-out;
}

.hero {
    text-align: center;
    margin: 5rem 0;
    position: relative;
}

.profile-container {
    display: inline-block;
    position: relative;
    margin-bottom: 2rem;
    transition: transform 0.1s;
}

.profile-img {
    width: 200px;
    height: 200px;
    border-radius: 50%;
    object-fit: cover;
    border: 3px solid var(--surface);
    box-shadow: var(--shadow);
    position: relative;
    z-index: 2;
    transition: all 0.3s;
}

.profile-glow {
    position: absolute;
    width: 220px;
    height: 220px;
    background: var(--gradient);
    border-radius: 50%;
    filter: blur(30px);
    opacity: 0.3;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    animation: pulse 4s infinite;
}

.skills-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 2rem;
    margin: 4rem 0;
    justify-content: center;
    justify-items: center;
}

.skill-card {
    background: var(--surface);
    border-radius: 25px;
    padding: 2rem;
    position: relative;
    overflow: hidden;
    border: 1px solid rgba(255, 126, 181, 0.1);
    transition: all 0.4s cubic-bezier(0.215, 0.610, 0.355, 1);
    cursor: pointer;
    width: 100%;
    max-width: 320px;
}

.skill-card:hover {
    transform: translateY(-10px);
    box-shadow: 0 15px 40px rgba(255, 126, 181, 0.2);
    border-color: var(--primary);
}

.skill-title {
    display: flex;
    align-items: center;
    gap: 1rem;
    margin-bottom: 1.5rem;
}

.skill-icon {
    width: 50px;
    height: 50px;
    border-radius: 15px;
    background: rgba(255, 126, 181, 0.1);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.5rem;
    color: var(--primary);
    transition: all 0.3s;
}

.skill-card:hover .skill-icon {
    transform: rotate(15deg);
    background: var(--gradient);
    color: white;
}

.skill-level {
    height: 6px;
    background: rgba(255, 255, 255, 0.1);
    border-radius: 3px;
    overflow: hidden;
    position: relative;
    margin-top: 1.5rem;
}

.skill-bar {
    height: 100%;
    background: var(--gradient);
    width: 0;
    transition: width 1s ease-in-out;
    border-radius: 3px;
}

.projects-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
    gap: 3rem;
    margin-top: 4rem;
}

.project-card {
    background: var(--surface);
    text-decoration: none;
    border-radius: 25px;
    overflow: hidden;
    position: relative;
    border: 1px solid rgba(255, 126, 181, 0.1);
    transition: all 0.4s;
}

.project-card:hover {
    transform: translateY(-8px);
    box-shadow: 0 15px 40px rgba(255, 126, 181, 0.2);
}

.project-card:focus {
    outline: none;
}

.project-image {
    width: 100%;
    height: 220px;
    object-fit: cover;
    transition: transform 0.3s;
}

.project-card:hover .project-image {
    transform: scale(1.05);
}

.project-info {
    padding: 2rem;
}

.project-info h3 {
    margin-bottom: 1rem;
    font-size: 1.4rem;
    color: var(--primary);
}

.project-tags {
    display: flex;
    flex-wrap: wrap;
    gap: 0.5rem;
    margin: 1.5rem 0;
}

.tag {
    background: rgba(255, 126, 181, 0.1);
    padding: 0.5rem 1.2rem;
    border-radius: 20px;
    font-size: 0.9rem;
    font-weight: 500;
    color: var(--primary);
    border: 1px solid rgba(255, 126, 181, 0.2);
}

/* Animaciones */
@keyframes pulse {
    0% { opacity: 0.2; }
    50% { opacity: 0.4; }
    100% { opacity: 0.2; }
}

@keyframes float {
    0% { transform: translateY(0px); }
    50% { transform: translateY(-20px); }
    100% { transform: translateY(0px); }
}

@keyframes sparkle {
    0% { opacity: 0; }
    50% { opacity: 1; }
    100% { opacity: 0; }
}

/* Media Queries */
@media (max-width: 768px) {
    body {
        padding: 1rem;
    }
    
    .profile-img {
        width: 150px;
        height: 150px;
    }
    
    .profile-glow {
        width: 170px;
        height: 170px;
    }
    
    .skills-grid {
        grid-template-columns: 1fr;
    }
    
    .projects-grid {
        grid-template-columns: 1fr;
    }
}

/* Mejoras de accesibilidad para modo oscuro */
@media (prefers-color-scheme: dark) {
    :root {
        --bg: #1a1a24;
        --surface: #2a2a36;
        --text: #f0eef6;
    }
}

/* Mejoras de accesibilidad para modo claro */
@media (prefers-color-scheme: light) {
    :root {
        --bg: #f0eef6;
        --surface: #ffffff;
        --text: #1a1a24;
    }
} 