/* --- VARIABLES GLOBALES --- */
:root {
    --bg-color: #050505; 
    --discord-blue: #5865F2;
    --accent-teal: #008080;
    --text-main: #dbdee1;
    --text-muted: #b5bac1;
    
    /* Neon Blue Theme */
    --neon-blue: #00d2ff;
    --neon-glow: rgba(0, 210, 255, 0.4);
    --border-color: rgba(0, 210, 255, 0.3);
    
    /* Card Styling */
    --card-bg: rgba(10, 10, 12, 0.9);
    --cubic-bezier: cubic-bezier(0.23, 1, 0.32, 1);
}

/* --- RESET & BASE --- */
html { scroll-behavior: smooth; }

body {
    background-color: var(--bg-color);
    color: var(--text-main);
    font-family: 'Inter', -apple-system, sans-serif;
    margin: 0;
    padding: 20px;
    display: flex;
    justify-content: center;
    min-height: 100vh;
    overflow-x: hidden;
}

/* --- FONDO ANIMADO --- */
#starsCanvas {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: -2;
    background: radial-gradient(circle at center, #0a0a0b 0%, #000 100%);
}

.noise-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-image: url('data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAADIAAAAyCAMAAAAp4XiDAAAAUVBMVEWFhYWFhYWFhYWFhYWFhYWFhYWFhYWFhYWFhYWFhYWFhYWFhYWFhYWFhYWFhYWFhYWFhYWFhYWFhYWFhYWFhYWFhYWFhYWFhYWFhYWFsW/WmAAAAGnRSTlPArzX+AQjP3uP5/m807tP8387m318/d8t9bQAAAAFzUkdCAHEmptUAAADPSURBVHjaYmBgYGBkYmBiY2BlY2BgZAAAEgEBkYmBiY2BlY2BgZWAABYBAZAAD2BqY2BkYmBlY2BgZAIBAxYBAQYAAAAEAQkGAwMGAAYAAIAAAEBAAGGAAYEBAAGGAAYEBAAGGAAYEBAAGGAAYEBAAGGAAYEBAAGGAAYEBAAGGAAYEBAAGGAAYEBAAGGAAYEBAAGGAAYEBAAGGAAYEBAAGGAAYEBAAGGAAYEBAAGGAAYEBAAGGAAYEBAAGGAAYEBAAGGAAYEBAAGGAAYEBgYAAAM2gBEEh54Y8AAAAASUVORK5CYII=');
    opacity: 0.04;
    pointer-events: none;
    z-index: -1;
}

/* --- ESTRUCTURA --- */
.container {
    position: relative;
    z-index: 1;
    max-width: 750px;
    width: 100%;
    display: flex;
    flex-direction: column;
    gap: 25px;
}

/* --- TARJETAS (GLOW & TILT) --- */
.card, .profile-header {
    background: var(--card-bg);
    border: 2px solid var(--neon-blue);
    border-radius: 16px;
    padding: 30px;
    position: relative;
    box-shadow: 0 0 15px rgba(0, 210, 255, 0.15);
    
    /* Movimiento Exagerado Config */
    transition: transform 0.15s var(--cubic-bezier), box-shadow 0.3s ease, background 0.3s ease;
    transform-style: preserve-3d;
    will-change: transform;
    backdrop-filter: blur(10px);
}

.card:hover, .profile-header:hover {
    z-index: 100;
    border-color: #fff;
    box-shadow: 0 25px 50px rgba(0, 0, 0, 0.6), 0 0 40px var(--neon-glow);
}

/* --- HEADER --- */
.profile-header {
    overflow: hidden;
    padding: 0 0 30px 0;
}

.banner {
    height: 120px;
    background: linear-gradient(90deg, var(--accent-teal), var(--discord-blue));
    width: 100%;
}

.header-content {
    padding: 0 30px;
    margin-top: -55px;
    display: flex;
    flex-direction: column;
    align-items: flex-start;
}

.avatar-wrapper {
    position: relative;
    padding: 5px;
    background: #000;
    border-radius: 50%;
    margin-bottom: 15px;
    transform: translateZ(50px); /* Parallax interno */
}

.profile-avatar {
    width: 100px;
    height: 100px;
    border-radius: 50%;
    display: block;
    border: 3px solid var(--neon-blue);
}

/* --- DISCORD STATUS --- */
.status-dot {
    position: absolute;
    bottom: 8px;
    right: 8px;
    width: 20px;
    height: 20px;
    border-radius: 50%;
    border: 3px solid #000;
    z-index: 2;
    background-color: #747f8d;
}
.status-dot.online { background-color: #23a55a; box-shadow: 0 0 15px #23a55a; }
.status-dot.idle { background-color: #faa61a; box-shadow: 0 0 15px #faa61a; }
.status-dot.dnd { background-color: #ed4245; box-shadow: 0 0 15px #ed4245; }

/* --- TEXTOS --- */
.user-info h1 {
    font-size: 2.2rem;
    margin: 10px 0 5px;
    color: #fff;
    text-shadow: 0 0 10px rgba(0, 210, 255, 0.5);
}

.tagline {
    color: var(--text-muted);
    font-size: 1.1rem;
    margin-bottom: 15px;
}

.section-title {
    font-size: 1.4rem;
    color: #fff;
    text-shadow: 0 0 10px var(--neon-blue);
    margin-bottom: 20px;
    display: flex;
    align-items: center;
    gap: 12px;
    border-bottom: 1px solid var(--border-color);
    padding-bottom: 15px;
}

/* --- STATS GRID --- */
.stats-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 15px;
    margin-top: 25px;
    text-align: center;
}

.stat-item h3 {
    font-size: 1.8rem;
    color: var(--neon-blue);
    margin: 0;
    text-shadow: 0 0 10px rgba(0, 210, 255, 0.3);
}

.stat-item p {
    color: var(--text-muted);
    font-size: 0.9rem;
    margin: 5px 0 0;
}

/* --- SKILLS --- */
.skills-container {
    text-align: center;
}

.skill-icons-img {
    max-width: 100%;
    filter: drop-shadow(0 0 5px var(--neon-glow));
}

/* --- PROJECTS --- */
.project-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 20px;
}

.project-item {
    background: rgba(20, 20, 25, 0.8);
    border: 1px solid var(--border-color);
    border-radius: 12px;
    padding: 20px;
    text-decoration: none;
    color: inherit;
    transition: all 0.3s ease;
}

.project-item:hover {
    border-color: var(--neon-blue);
    background: rgba(30, 30, 40, 1);
    transform: translateY(-5px);
}

.project-item h3 {
    color: var(--neon-blue);
    margin: 0 0 10px 0;
}

.tech-tag {
    display: inline-block;
    background: rgba(0, 210, 255, 0.1);
    color: var(--neon-blue);
    font-size: 0.75rem;
    padding: 4px 8px;
    border-radius: 4px;
    margin-right: 5px;
}

/* --- SCROLL REVEAL --- */
.js-scroll-hidden {
    opacity: 0;
    transform: translateY(40px) scale(0.9);
    filter: blur(10px);
    transition: all 0.8s var(--cubic-bezier);
}

.js-scroll-active {
    opacity: 1 !important;
    transform: translateY(0) scale(1) !important;
    filter: blur(0px) !important;
}

/* --- ACTION AREA (GITHUB BUTTON) --- */
.action-area {
    text-align: center;
    margin: 20px 0;
}

.btn-github {
    background: transparent;
    color: #fff;
    text-decoration: none;
    padding: 15px 40px;
    border-radius: 12px;
    display: inline-flex;
    justify-content: center;
    align-items: center;
    gap: 12px;
    font-weight: bold;
    font-size: 1.1rem;
    border: 2px solid var(--neon-blue);
    position: relative;
    overflow: hidden;
    transition: all 0.3s var(--cubic-bezier);
    box-shadow: 0 0 15px rgba(0, 210, 255, 0.2);
    text-transform: uppercase;
    letter-spacing: 1px;
}

.btn-github i {
    font-size: 1.4rem;
}

.btn-github:hover {
    background: var(--neon-blue);
    color: #000;
    box-shadow: 0 0 30px var(--neon-blue);
    transform: translateY(-5px) scale(1.05);
}

/* --- CONTACT FOOTER (REACH ME) --- */
.contact-footer {
    text-align: center;
    padding: 40px 20px;
    color: var(--text-muted);
    margin-top: 20px;
    border-top: 1px solid var(--border-color);
}

.contact-footer p {
    font-size: 1.1rem;
    margin-bottom: 25px;
    color: #fff;
}

.social-links {
    display: flex;
    justify-content: center;
    gap: 20px;
    flex-wrap: wrap;
}

.discord-badge, .email-badge {
    padding: 12px 25px;
    border-radius: 10px;
    text-decoration: none;
    font-weight: 600;
    display: flex;
    align-items: center;
    gap: 10px;
    transition: all 0.3s var(--cubic-bezier);
    color: #fff;
    border: 1px solid rgba(255, 255, 255, 0.1);
}

.discord-badge {
    background: rgba(88, 101, 242, 0.15);
    border-color: var(--discord-blue);
}

.discord-badge:hover {
    background: var(--discord-blue);
    box-shadow: 0 0 20px var(--discord-blue);
    transform: translateY(-3px);
}

.email-badge {
    background: rgba(0, 210, 255, 0.1);
    border-color: var(--neon-blue);
}

.email-badge:hover {
    background: var(--neon-blue);
    color: #000;
    box-shadow: 0 0 20px var(--neon-blue);
    transform: translateY(-3px);
}

.copyright {
    margin-top: 40px;
    font-size: 0.8rem;
    color: rgba(255, 255, 255, 0.2);
    letter-spacing: 1px;
}

/* --- EFECTO GLOW EXTRA PARA LOS PROYECTOS --- */
.project-item {
    position: relative;
}

.project-item::after {
    content: '';
    position: absolute;
    inset: 0;
    border-radius: 12px;
    box-shadow: inset 0 0 15px rgba(0, 210, 255, 0);
    transition: box-shadow 0.3s ease;
}

.project-item:hover::after {
    box-shadow: inset 0 0 20px rgba(0, 210, 255, 0.2);
}


/* --- RESPONSIVE --- */
@media (max-width: 600px) {
    .stats-grid { grid-template-columns: 1fr; }
    .header-content { align-items: center; text-align: center; }
}