/* ===== VARIABLES CSS ===== */
:root {
    --header-height: 4rem;
    --hue-color: 250;
    --first-color: hsl(var(--hue-color), 69%, 61%);
    --first-color-second: hsl(var(--hue-color), 69%, 61%);
    --first-color-alt: hsl(var(--hue-color), 57%, 53%);
    --first-color-lighter: hsl(var(--hue-color), 92%, 85%);
    --first-color-light: hsl(var(--hue-color), 92%, 85%);
    --title-color: hsl(var(--hue-color), 8%, 15%);
    --text-color: hsl(var(--hue-color), 8%, 45%);
    --text-color-light: hsl(var(--hue-color), 8%, 65%);
    --input-color: hsl(var(--hue-color), 70%, 96%);
    --body-color: hsl(var(--hue-color), 60%, 99%);
    --container-color: #fff;
    --scroll-bar-color: hsl(var(--hue-color), 12%, 90%);
    --scroll-thumb-color: hsl(var(--hue-color), 12%, 80%);
    --body-font: 'Poppins', sans-serif;
    --big-font-size: 3.5rem;
    --h1-font-size: 2.5rem;
    --h2-font-size: 2rem;
    --h3-font-size: 1.5rem;
    --h4-font-size: 1.25rem;
    --normal-font-size: 1rem;
    --small-font-size: .875rem;
    --smaller-font-size: .813rem;
    --font-regular: 400;
    --font-medium: 500;
    --font-semi-bold: 600;
    --font-bold: 700;
    --font-extra-bold: 800;
    --mb-0-25: .25rem;
    --mb-0-5: .5rem;
    --mb-0-75: .75rem;
    --mb-1: 1rem;
    --mb-1-5: 1.5rem;
    --mb-2: 2rem;
    --mb-2-5: 2.5rem;
    --mb-3: 3rem;
    --mb-4: 4rem;
    --z-tooltip: 10;
    --z-fixed: 100;
    --z-modal: 1000;
    --transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    --border-radius: 1rem;
    --box-shadow: 0 10px 30px rgba(0, 0, 0, 0.1);
    --gradient-primary: linear-gradient(135deg, var(--first-color), var(--first-color-alt));
    --gradient-hero: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    --gradient-glass: rgba(255, 255, 255, 0.1);
    --backdrop-filter: backdrop-filter: blur(10px);
}

/* ===== DARK MODE VARIABLES ===== */
body.dark-mode {
    --title-color: hsl(var(--hue-color), 8%, 95%);
    --text-color: hsl(var(--hue-color), 8%, 75%);
    --text-color-light: hsl(var(--hue-color), 8%, 65%);
    --input-color: hsl(var(--hue-color), 29%, 16%);
    --body-color: hsl(var(--hue-color), 28%, 12%);
    --container-color: hsl(var(--hue-color), 29%, 16%);
    --scroll-bar-color: hsl(var(--hue-color), 12%, 20%);
    --scroll-thumb-color: hsl(var(--hue-color), 12%, 30%);
    --gradient-glass: rgba(0, 0, 0, 0.2);
    --box-shadow: 0 10px 30px rgba(0, 0, 0, 0.3);
}

@media screen and (min-width: 1024px) {
    :root {
        --big-font-size: 4rem;
        --h1-font-size: 3rem;
        --h2-font-size: 2.25rem;
        --h3-font-size: 1.75rem;
        --h4-font-size: 1.5rem;
        --normal-font-size: 1.125rem;
        --small-font-size: .938rem;
        --smaller-font-size: .875rem;
    }
}

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

html {
    scroll-behavior: smooth;
}

body {
    margin: 0 0 var(--header-height) 0;
    font-family: var(--body-font);
    font-size: var(--normal-font-size);
    background-color: var(--body-color);
    color: var(--text-color);
    line-height: 1.6;
    overflow-x: hidden;
    transition: var(--transition);
}

h1, h2, h3, h4 {
    color: var(--title-color);
    font-weight: var(--font-semi-bold);
    line-height: 1.2;
}

ul {
    list-style: none;
}

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

img {
    max-width: 100%;
    height: auto;
    display: block;
}

button, input, textarea {
    font-family: var(--body-font);
    font-size: var(--normal-font-size);
}

/* ===== THEME TOGGLE ===== */
.theme-toggle {
    position: fixed;
    top: 5rem;
    right: 2rem;
    width: 50px;
    height: 50px;
    background: var(--container-color);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    box-shadow: var(--box-shadow);
    z-index: var(--z-fixed);
    transition: var(--transition);
    border: 2px solid var(--first-color);
}

.theme-toggle:hover {
    transform: scale(1.1);
    box-shadow: 0 15px 40px rgba(0, 0, 0, 0.2);
}

.theme-toggle i {
    font-size: 1.2rem;
    color: var(--first-color);
    transition: var(--transition);
}

body.dark-mode .theme-toggle i.fa-sun {
    display: block;
}

body:not(.dark-mode) .theme-toggle i.fa-moon {
    display: block;
}

body.dark-mode .theme-toggle i.fa-moon {
    display: none;
}

body:not(.dark-mode) .theme-toggle i.fa-sun {
    display: none;
}

/* ===== DISCORD STATUS ===== */
.discord-status {
    position: fixed;
    top: 5rem;
    left: 2rem;
    background: var(--container-color);
    padding: 1rem;
    border-radius: var(--border-radius);
    display: flex;
    align-items: center;
    gap: 1rem;
    box-shadow: var(--box-shadow);
    z-index: var(--z-fixed);
    transition: var(--transition);
    border: 2px solid var(--first-color);
}

.discord-avatar {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    overflow: hidden;
    flex-shrink: 0;
}

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

.discord-info {
    display: flex;
    flex-direction: column;
    gap: 0.25rem;
}

.discord-name {
    font-size: var(--small-font-size);
    font-weight: var(--font-bold);
    color: var(--title-color);
}

.discord-status-text {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    font-size: var(--smaller-font-size);
    color: var(--text-color-light);
}

.status-indicator {
    width: 8px;
    height: 8px;
    border-radius: 50%;
    background: #7289da;
    animation: pulse 2s infinite;
}

.status-indicator.online {
    background: #43b581;
}

.status-indicator.idle {
    background: #faa61a;
}

.status-indicator.dnd {
    background: #f04747;
}

.status-indicator.offline {
    background: #747f8d;
}

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

/* ===== PRELOADER OPTIMIZADO ===== */
.preloader {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: #ffffff;
    display: flex;
    justify-content: center;
    align-items: center;
    z-index: 9999;
    transition: opacity 0.5s, visibility 0.5s;
}

.preloader.hidden {
    opacity: 0;
    visibility: hidden;
}

.loader-container {
    text-align: center;
}

.loader {
    width: 80px;
    height: 80px;
    position: relative;
    margin: 0 auto var(--mb-1);
}

.loader-inner {
    width: 100%;
    height: 100%;
    border: 4px solid rgba(106, 90, 205, 0.1);
    border-top: 4px solid var(--first-color);
    border-radius: 50%;
    animation: spin 1s linear infinite;
}

.loader-pulse {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    border-radius: 50%;
    background: radial-gradient(circle, var(--first-color) 0%, transparent 70%);
    animation: pulse-scale 1.5s ease-in-out infinite;
}

.loader-text {
    color: var(--title-color);
    font-size: var(--normal-font-size);
    font-weight: var(--font-medium);
    margin-bottom: var(--mb-1);
}

.loader-progress {
    width: 200px;
    margin: 0 auto;
}

.progress-bar {
    width: 100%;
    height: 6px;
    background: rgba(106, 90, 205, 0.1);
    border-radius: 3px;
    overflow: hidden;
    margin-bottom: 0.5rem;
}

.progress-fill {
    height: 100%;
    background: var(--gradient-primary);
    border-radius: 3px;
    width: 0%;
    transition: width 0.3s ease;
}

.progress-text {
    font-size: var(--small-font-size);
    color: var(--text-color-light);
}

@keyframes spin {
    0% { transform: rotate(0deg); }
    100% { transform: rotate(360deg); }
}

@keyframes pulse-scale {
    0% { transform: scale(0.8); opacity: 0.8; }
    50% { transform: scale(1.2); opacity: 0.4; }
    100% { transform: scale(0.8); opacity: 0.8; }
}

/* ===== PARTICLES ===== */
#particles-js {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: -1;
    background: var(--gradient-hero);
    transition: var(--transition);
}

body.dark-mode #particles-js {
    background: linear-gradient(135deg, #1a1a2e 0%, #16213e 100%);
}

/* ===== HEADER & NAVBAR ===== */
.navbar {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    background: rgba(255, 255, 255, 0.95);
    backdrop-filter: blur(10px);
    box-shadow: 0 2px 20px rgba(0, 0, 0, 0.1);
    z-index: var(--z-fixed);
    transition: var(--transition);
}

body.dark-mode .navbar {
    background: rgba(26, 26, 46, 0.95);
}

.nav-container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 1rem;
    display: flex;
    justify-content: space-between;
    align-items: center;
    height: var(--header-height);
}

.nav-logo .logo-text {
    font-size: var(--h3-font-size);
    font-weight: var(--font-bold);
    color: var(--title-color);
    background: var(--gradient-primary);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.nav-menu {
    display: flex;
    gap: 2rem;
}

.nav-link {
    color: var(--text-color);
    font-weight: var(--font-medium);
    transition: var(--transition);
    position: relative;
    padding: 0.5rem 0;
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.nav-link i {
    font-size: 1rem;
}

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

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

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

.nav-link.active {
    color: var(--first-color);
}

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

.hamburger {
    display: none;
    flex-direction: column;
    cursor: pointer;
    padding: 0.5rem;
}

.bar {
    width: 25px;
    height: 3px;
    background: var(--text-color);
    margin: 3px 0;
    transition: var(--transition);
    border-radius: 3px;
}

.hamburger.active .bar:nth-child(1) {
    transform: rotate(-45deg) translate(-5px, 6px);
}

.hamburger.active .bar:nth-child(2) {
    opacity: 0;
}

.hamburger.active .bar:nth-child(3) {
    transform: rotate(45deg) translate(-5px, -6px);
}

/* ===== HERO SECTION ===== */
.hero {
    min-height: 100vh;
    display: flex;
    align-items: center;
    position: relative;
    overflow: hidden;
}

.hero-bg {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: var(--gradient-hero);
    z-index: -2;
    transition: var(--transition);
}

body.dark-mode .hero-bg {
    background: linear-gradient(135deg, #1a1a2e 0%, #16213e 100%);
}

.hero-bg-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: url('data:image/svg+xml,<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 1440 320"><path fill="%23ffffff" fill-opacity="0.1" d="M0,96L48,112C96,128,192,160,288,160C384,160,480,128,576,122.7C672,117,768,139,864,133.3C960,128,1056,96,1152,90.7C1248,85,1344,107,1392,117.3L1440,128L1440,320L1392,320C1344,320,1248,320,1152,320C1056,320,960,320,864,320C768,320,672,320,576,320C480,320,384,320,288,320C192,320,96,320,48,320L0,320Z"></path></svg>') no-repeat bottom;
    background-size: cover;
    z-index: -1;
}

body.dark-mode .hero-bg-overlay {
    background: url('data:image/svg+xml,<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 1440 320"><path fill="%23000000" fill-opacity="0.1" d="M0,96L48,112C96,128,192,160,288,160C384,160,480,128,576,122.7C672,117,768,139,864,133.3C960,128,1056,96,1152,90.7C1248,85,1344,107,1392,117.3L1440,128L1440,320L1392,320C1344,320,1248,320,1152,320C1056,320,960,320,864,320C768,320,672,320,576,320C480,320,384,320,288,320C192,320,96,320,48,320L0,320Z"></path></svg>') no-repeat bottom;
    background-size: cover;
}

.hero-content {
    position: relative;
    z-index: 1;
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 4rem;
    align-items: center;
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 1rem;
}

.hero-badge {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    background: var(--gradient-glass);
    backdrop-filter: blur(10px);
    padding: 0.75rem 1.5rem;
    border-radius: 50px;
    color: #fff;
    font-size: var(--small-font-size);
    font-weight: var(--font-medium);
    margin-bottom: var(--mb-2);
    border: 1px solid rgba(255, 255, 255, 0.2);
    transition: var(--transition);
}

.hero-badge:hover {
    transform: translateY(-2px);
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.2);
}

.hero-badge i {
    font-size: 1rem;
}

.hero-title {
    font-size: var(--big-font-size);
    font-weight: var(--font-extra-bold);
    color: #fff;
    margin-bottom: var(--mb-1);
    line-height: 1.1;
}

.gradient-text {
    background: linear-gradient(135deg, #fff, #f0f0f0);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.hero-subtitle {
    font-size: var(--h1-font-size);
    font-weight: var(--font-medium);
    color: #fff;
    margin-bottom: var(--mb-2);
    min-height: 3rem;
}

.typing-text {
    position: relative;
}

.typing-text::after {
    content: '|';
    position: absolute;
    right: -10px;
    animation: blink 1s infinite;
}

@keyframes blink {
    0%, 50% { opacity: 1; }
    51%, 100% { opacity: 0; }
}

.hero-description {
    font-size: var(--normal-font-size);
    color: rgba(255, 255, 255, 0.9);
    margin-bottom: var(--mb-3);
    max-width: 500px;
    line-height: 1.8;
}

.hero-buttons {
    display: flex;
    gap: 1rem;
    margin-bottom: var(--mb-3);
    flex-wrap: wrap;
}

.hero-social {
    display: flex;
    gap: 1rem;
}

.social-link {
    width: 45px;
    height: 45px;
    background: var(--gradient-glass);
    backdrop-filter: blur(10px);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #fff;
    transition: var(--transition);
    border: 1px solid rgba(255, 255, 255, 0.2);
    position: relative;
    overflow: hidden;
}

.social-link::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);
}

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

.social-link:hover {
    transform: translateY(-5px) scale(1.1);
    box-shadow: 0 10px 20px rgba(0, 0, 0, 0.2);
}

.hero-image {
    display: flex;
    justify-content: center;
    align-items: center;
}

.hero-image-container {
    position: relative;
}

.hero-image-border {
    position: absolute;
    top: -20px;
    left: -20px;
    right: -20px;
    bottom: -20px;
    border: 3px solid rgba(255, 255, 255, 0.3);
    border-radius: 30px;
    transform: rotate(3deg);
    z-index: -1;
    background: var(--gradient-glass);
    backdrop-filter: blur(10px);
}

.hero-image-wrapper {
    position: relative;
    border-radius: 20px;
    overflow: hidden;
    box-shadow: 0 25px 50px rgba(0, 0, 0, 0.3);
    transition: var(--transition);
}

.hero-image-wrapper:hover {
    transform: scale(1.05);
    box-shadow: 0 30px 60px rgba(0, 0, 0, 0.4);
}

.hero-image-wrapper img {
    width: 400px;
    height: 400px;
    object-fit: cover;
    border-radius: 20px;
    transition: var(--transition);
}

.hero-image-dots {
    position: absolute;
    top: -30px;
    right: -30px;
    width: 100px;
    height: 100px;
    background-image: radial-gradient(circle, rgba(255, 255, 255, 0.3) 2px, transparent 2px);
    background-size: 20px 20px;
    z-index: -1;
}

.hero-image-glow {
    position: absolute;
    top: -50%;
    left: -50%;
    width: 200%;
    height: 200%;
    background: radial-gradient(circle, var(--first-color) 0%, transparent 70%);
    opacity: 0.3;
    animation: glow-rotate 10s linear infinite;
    z-index: -2;
}

@keyframes glow-rotate {
    0% { transform: rotate(0deg); }
    100% { transform: rotate(360deg); }
}

.scroll-indicator {
    position: absolute;
    bottom: 2rem;
    left: 50%;
    transform: translateX(-50%);
    z-index: 1;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 0.5rem;
    color: rgba(255, 255, 255, 0.8);
    font-size: var(--small-font-size);
}

.mouse {
    width: 30px;
    height: 50px;
    border: 2px solid rgba(255, 255, 255, 0.5);
    border-radius: 15px;
    position: relative;
    margin: 0 auto;
}

.wheel {
    width: 6px;
    height: 6px;
    background: rgba(255, 255, 255, 0.8);
    border-radius: 50%;
    position: absolute;
    top: 10px;
    left: 50%;
    transform: translateX(-50%);
    animation: scroll 2s infinite;
}

@keyframes scroll {
    0% { top: 10px; opacity: 1; }
    100% { top: 30px; opacity: 0; }
}

/* ===== ABOUT SECTION ===== */
.about {
    background: var(--body-color);
    position: relative;
}

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

.about-card {
    background: var(--container-color);
    padding: 2rem;
    border-radius: var(--border-radius);
    box-shadow: var(--box-shadow);
    margin-bottom: var(--mb-2);
    border: 1px solid rgba(0, 0, 0, 0.05);
    transition: var(--transition);
}

.about-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 15px 40px rgba(0, 0, 0, 0.15);
}

.about-card-header {
    display: flex;
    align-items: center;
    gap: 1rem;
    margin-bottom: var(--mb-1);
}

.about-card-header i {
    font-size: 1.5rem;
    color: var(--first-color);
}

.about-card h3 {
    font-size: var(--h3-font-size);
    color: var(--title-color);
}

.about-card p {
    color: var(--text-color);
    margin-bottom: 1rem;
    line-height: 1.8;
}

.about-info-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 1.5rem;
    margin-bottom: var(--mb-2);
}

.info-item {
    display: flex;
    align-items: center;
    gap: 1rem;
    padding: 1rem;
    background: var(--body-color);
    border-radius: var(--border-radius);
    transition: var(--transition);
    border: 1px solid rgba(0, 0, 0, 0.05);
}

.info-item:hover {
    transform: translateY(-3px);
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.1);
}

.info-item i {
    font-size: 1.25rem;
    color: var(--first-color);
    width: 40px;
    height: 40px;
    background: var(--first-color-lighter);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
}

.info-item h4 {
    font-size: var(--small-font-size);
    color: var(--text-color-light);
    margin-bottom: 0.25rem;
}

.info-item p {
    font-size: var(--normal-font-size);
    color: var(--title-color);
    font-weight: var(--font-medium);
}

.about-cta {
    text-align: center;
}

.about-skills {
    background: var(--container-color);
    padding: 2rem;
    border-radius: var(--border-radius);
    box-shadow: var(--box-shadow);
    border: 1px solid rgba(0, 0, 0, 0.05);
    transition: var(--transition);
}

.about-skills:hover {
    transform: translateY(-5px);
    box-shadow: 0 15px 40px rgba(0, 0, 0, 0.15);
}

.about-skills h3 {
    font-size: var(--h3-font-size);
    color: var(--title-color);
    margin-bottom: var(--mb-2);
    text-align: center;
}

.skills-container {
    display: flex;
    flex-direction: column;
    gap: 1.5rem;
}

.skill-item {
    background: var(--body-color);
    padding: 1.5rem;
    border-radius: var(--border-radius);
    transition: var(--transition);
    border: 1px solid rgba(0, 0, 0, 0.05);
}

.skill-item:hover {
    transform: translateX(5px);
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.1);
}

.skill-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 1rem;
}

.skill-name {
    font-size: var(--normal-font-size);
    color: var(--title-color);
    font-weight: var(--font-medium);
}

.skill-percentage {
    font-size: var(--small-font-size);
    color: var(--first-color);
    font-weight: var(--font-bold);
}

.skill-bar {
    height: 10px;
    background: var(--input-color);
    border-radius: 5px;
    overflow: hidden;
    position: relative;
}

.skill-progress {
    height: 100%;
    background: var(--gradient-primary);
    border-radius: 5px;
    width: 0;
    transition: width 2s ease;
    position: relative;
    overflow: hidden;
}

.skill-progress::after {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.3), transparent);
    animation: shimmer 2s infinite;
}

@keyframes shimmer {
    0% { transform: translateX(-100%); }
    100% { transform: translateX(100%); }
}

/* ===== SKILLS SECTION ===== */
.skills {
    background: var(--body-color);
    position: relative;
}

.skills-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 2rem;
    margin-top: var(--mb-3);
}

.skill-category {
    background: var(--container-color);
    padding: 2.5rem 2rem;
    border-radius: var(--border-radius);
    text-align: center;
    box-shadow: var(--box-shadow);
    transition: var(--transition);
    border: 1px solid rgba(0, 0, 0, 0.05);
    position: relative;
    overflow: hidden;
}

.skill-category::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 4px;
    background: var(--gradient-primary);
    transform: scaleX(0);
    transition: transform 0.3s ease;
}

.skill-category:hover {
    transform: translateY(-10px);
    box-shadow: 0 15px 35px rgba(0, 0, 0, 0.15);
}

.skill-category:hover::before {
    transform: scaleX(1);
}

.skill-category-icon {
    width: 80px;
    height: 80px;
    background: var(--gradient-primary);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto var(--mb-1-5);
    color: #fff;
    font-size: 2rem;
    transition: var(--transition);
}

.skill-category:hover .skill-category-icon {
    transform: scale(1.1) rotate(5deg);
    box-shadow: 0 10px 25px rgba(106, 90, 205, 0.3);
}

.skill-category h3 {
    font-size: var(--h3-font-size);
    margin-bottom: var(--mb-1);
    color: var(--title-color);
}

.skill-tags {
    display: flex;
    flex-wrap: wrap;
    gap: 0.5rem;
    justify-content: center;
}

.skill-tags span {
    background: var(--first-color-lighter);
    color: var(--first-color);
    padding: 0.4rem 0.8rem;
    border-radius: 20px;
    font-size: var(--smaller-font-size);
    font-weight: var(--font-medium);
    transition: var(--transition);
}

.skill-category:hover .skill-tags span {
    background: var(--gradient-primary);
    color: #fff;
    transform: scale(1.05);
}

/* ===== PROJECTS SECTION ===== */
.projects {
    background: var(--body-color);
    position: relative;
}

.projects-controls {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: var(--mb-3);
    flex-wrap: wrap;
    gap: 1rem;
}

.projects-filter {
    display: flex;
    gap: 0.5rem;
    flex-wrap: wrap;
}

.filter-btn {
    background: transparent;
    border: 2px solid var(--first-color);
    color: var(--first-color);
    padding: 0.5rem 1.25rem;
    border-radius: 25px;
    cursor: pointer;
    transition: var(--transition);
    font-weight: var(--font-medium);
    font-size: var(--small-font-size);
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.filter-btn.active,
.filter-btn:hover {
    background: var(--gradient-primary);
    color: #fff;
    transform: translateY(-2px);
    box-shadow: 0 5px 15px rgba(106, 90, 205, 0.3);
}

.projects-search {
    position: relative;
    min-width: 250px;
}

.projects-search input {
    width: 100%;
    padding: 0.75rem 1rem 0.75rem 2.5rem;
    border: 2px solid var(--input-color);
    border-radius: 25px;
    font-size: var(--small-font-size);
    transition: var(--transition);
    background: var(--body-color);
    color: var(--text-color);
}

.projects-search input:focus {
    outline: none;
    border-color: var(--first-color);
    box-shadow: 0 0 0 3px rgba(106, 90, 205, 0.1);
}

.projects-search i {
    position: absolute;
    left: 1rem;
    top: 50%;
    transform: translateY(-50%);
    color: var(--text-color-light);
}

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

.project-card {
    background: var(--container-color);
    border-radius: var(--border-radius);
    overflow: hidden;
    box-shadow: var(--box-shadow);
    transition: var(--transition);
    border: 1px solid rgba(0, 0, 0, 0.05);
    display: flex;
    flex-direction: column;
}

.project-card:hover {
    transform: translateY(-10px);
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.15);
}

.project-header {
    padding: 1.5rem;
    border-bottom: 1px solid rgba(0, 0, 0, 0.05);
}

.project-title {
    font-size: var(--h4-font-size);
    color: var(--title-color);
    margin-bottom: 0.5rem;
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.project-title i {
    color: var(--first-color);
    font-size: 1.2rem;
}

.project-description {
    color: var(--text-color);
    font-size: var(--small-font-size);
    line-height: 1.6;
    margin-bottom: 1rem;
}

.project-stats {
    display: flex;
    gap: 1rem;
    margin-bottom: 1rem;
}

.project-stat {
    display: flex;
    align-items: center;
    gap: 0.25rem;
    font-size: var(--smaller-font-size);
    color: var(--text-color-light);
}

.project-stat i {
    color: var(--first-color);
}

.project-language {
    display: inline-block;
    padding: 0.25rem 0.75rem;
    background: var(--first-color-lighter);
    color: var(--first-color);
    border-radius: 15px;
    font-size: var(--smaller-font-size);
    font-weight: var(--font-medium);
}

.project-footer {
    padding: 1rem 1.5rem;
    background: var(--body-color);
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-top: auto;
}

.project-date {
    font-size: var(--smaller-font-size);
    color: var(--text-color-light);
}

.project-links {
    display: flex;
    gap: 0.5rem;
}

.project-link {
    width: 35px;
    height: 35px;
    background: var(--gradient-primary);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #fff;
    transition: var(--transition);
    font-size: 0.9rem;
}

.project-link:hover {
    transform: scale(1.1);
    box-shadow: 0 5px 15px rgba(106, 90, 205, 0.3);
}

.loading-projects {
    grid-column: 1 / -1;
    text-align: center;
    padding: 3rem;
}

.spinner {
    width: 50px;
    height: 50px;
    border: 4px solid var(--input-color);
    border-top: 4px solid var(--first-color);
    border-radius: 50%;
    animation: spin 1s linear infinite;
    margin: 0 auto var(--mb-1);
}

.projects-cta {
    text-align: center;
}

/* ===== STATS SECTION ===== */
.stats {
    background: var(--gradient-hero);
    position: relative;
    overflow: hidden;
    transition: var(--transition);
}

body.dark-mode .stats {
    background: linear-gradient(135deg, #1a1a2e 0%, #16213e 100%);
}

.stats::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: url('data:image/svg+xml,<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 1440 320"><path fill="%23ffffff" fill-opacity="0.05" d="M0,96L48,112C96,128,192,160,288,160C384,160,480,128,576,122.7C672,117,768,139,864,133.3C960,128,1056,96,1152,90.7C1248,85,1344,107,1392,117.3L1440,128L1440,320L1392,320C1344,320,1248,320,1152,320C1056,320,960,320,864,320C768,320,672,320,576,320C480,320,384,320,288,320C192,320,96,320,48,320L0,320Z"></path></svg>') no-repeat bottom;
    background-size: cover;
}

body.dark-mode .stats::before {
    background: url('data:image/svg+xml,<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 1440 320"><path fill="%23000000" fill-opacity="0.05" d="M0,96L48,112C96,128,192,160,288,160C384,160,480,128,576,122.7C672,117,768,139,864,133.3C960,128,1056,96,1152,90.7C1248,85,1344,107,1392,117.3L1440,128L1440,320L1392,320C1344,320,1248,320,1152,320C1056,320,960,320,864,320C768,320,672,320,576,320C480,320,384,320,288,320C192,320,96,320,48,320L0,320Z"></path></svg>') no-repeat bottom;
    background-size: cover;
}

.section-title {
    color: #fff;
}

.section-subtitle {
    color: rgba(255, 255, 255, 0.8);
}

.stats-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 2rem;
    margin-bottom: var(--mb-4);
}

.stat-card {
    background: var(--gradient-glass);
    backdrop-filter: blur(10px);
    padding: 2rem;
    border-radius: var(--border-radius);
    text-align: center;
    border: 1px solid rgba(255, 255, 255, 0.2);
    transition: var(--transition);
}

.stat-card:hover {
    transform: translateY(-10px);
    background: rgba(255, 255, 255, 0.15);
    box-shadow: 0 15px 35px rgba(0, 0, 0, 0.2);
}

.stat-icon {
    width: 70px;
    height: 70px;
    background: rgba(255, 255, 255, 0.2);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto var(--mb-1);
    color: #fff;
    font-size: 1.8rem;
    transition: var(--transition);
}

.stat-card:hover .stat-icon {
    transform: scale(1.1) rotate(5deg);
    background: rgba(255, 255, 255, 0.3);
}

.stat-number {
    font-size: 2.5rem;
    font-weight: var(--font-bold);
    color: #fff;
    margin-bottom: 0.5rem;
    counter-reset: number var(--number);
    animation: countUp 2s ease-out forwards;
}

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

.stat-label {
    font-size: var(--normal-font-size);
    color: rgba(255, 255, 255, 0.9);
    font-weight: var(--font-medium);
}

.contributions-graph {
    background: var(--gradient-glass);
    backdrop-filter: blur(10px);
    padding: 2rem;
    border-radius: var(--border-radius);
    border: 1px solid rgba(255, 255, 255, 0.2);
}

.contributions-graph h3 {
    color: #fff;
    text-align: center;
    margin-bottom: var(--mb-2);
    font-size: var(--h3-font-size);
}

#contributionsCalendar {
    display: flex;
    flex-wrap: wrap;
    gap: 3px;
    justify-content: center;
}

.contribution-day {
    width: 12px;
    height: 12px;
    border-radius: 2px;
    background: rgba(255, 255, 255, 0.1);
    transition: var(--transition);
    cursor: pointer;
}

.contribution-day.level-1 { background: rgba(255, 255, 255, 0.2); }
.contribution-day.level-2 { background: rgba(255, 255, 255, 0.4); }
.contribution-day.level-3 { background: rgba(255, 255, 255, 0.6); }
.contribution-day.level-4 { background: rgba(255, 255, 255, 0.8); }
.contribution-day.level-5 { background: #fff; }

.contribution-day:hover {
    transform: scale(1.5);
    box-shadow: 0 0 10px rgba(255, 255, 255, 0.5);
}

/* ===== CONTACT SECTION ===== */
.contact {
    background: var(--body-color);
    position: relative;
}

.contact-content {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 4rem;
}

.contact-card {
    background: var(--container-color);
    padding: 2.5rem;
    border-radius: var(--border-radius);
    box-shadow: var(--box-shadow);
    border: 1px solid rgba(0, 0, 0, 0.05);
    height: 100%;
    transition: var(--transition);
}

.contact-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 15px 40px rgba(0, 0, 0, 0.15);
}

.contact-card h3 {
    font-size: var(--h3-font-size);
    color: var(--title-color);
    margin-bottom: var(--mb-1);
}

.contact-card p {
    color: var(--text-color);
    margin-bottom: var(--mb-2);
    line-height: 1.8;
}

.contact-items {
    margin-bottom: var(--mb-2);
}

.contact-item {
    display: flex;
    align-items: center;
    gap: 1rem;
    margin-bottom: var(--mb-1-5);
    padding: 1rem;
    background: var(--body-color);
    border-radius: var(--border-radius);
    transition: var(--transition);
    border: 1px solid rgba(0, 0, 0, 0.05);
}

.contact-item:hover {
    transform: translateX(5px);
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.1);
}

.contact-item i {
    font-size: 1.25rem;
    color: var(--first-color);
    width: 45px;
    height: 45px;
    background: var(--first-color-lighter);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
}

.contact-details h4 {
    font-size: var(--small-font-size);
    color: var(--text-color-light);
    margin-bottom: 0.25rem;
}

.contact-details a,
.contact-details p {
    font-size: var(--normal-font-size);
    color: var(--title-color);
    font-weight: var(--font-medium);
    transition: var(--transition);
}

.contact-details a:hover {
    color: var(--first-color);
}

.contact-social h4 {
    font-size: var(--h4-font-size);
    color: var(--title-color);
    margin-bottom: var(--mb-1);
}

.contact-form {
    background: var(--container-color);
    padding: 2.5rem;
    border-radius: var(--border-radius);
    box-shadow: var(--box-shadow);
    border: 1px solid rgba(0, 0, 0, 0.05);
    transition: var(--transition);
}

.contact-form:hover {
    transform: translateY(-5px);
    box-shadow: 0 15px 40px rgba(0, 0, 0, 0.15);
}

.contact-form h3 {
    font-size: var(--h3-font-size);
    color: var(--title-color);
    margin-bottom: var(--mb-2);
    text-align: center;
}

.form-group {
    position: relative;
    margin-bottom: var(--mb-1-5);
}

.form-group input,
.form-group textarea {
    width: 100%;
    padding: 1rem 1rem 1rem 3rem;
    border: 2px solid var(--input-color);
    border-radius: var(--border-radius);
    font-size: var(--normal-font-size);
    transition: var(--transition);
    background: var(--body-color);
    color: var(--text-color);
}

.form-group input:focus,
.form-group textarea:focus {
    outline: none;
    border-color: var(--first-color);
    box-shadow: 0 0 0 3px rgba(106, 90, 205, 0.1);
}

.form-group i {
    position: absolute;
    left: 1rem;
    top: 50%;
    transform: translateY(-50%);
    color: var(--text-color-light);
    transition: var(--transition);
}

.form-group input:focus + i,
.form-group textarea:focus + i {
    color: var(--first-color);
}

.form-group textarea {
    resize: vertical;
    min-height: 120px;
    padding-top: 1rem;
}

/* ===== FOOTER ===== */
.footer {
    background: var(--title-color);
    color: #fff;
    position: relative;
    overflow: hidden;
    transition: var(--transition);
}

body.dark-mode .footer {
    background: #0a0a0a;
}

.footer-wave {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    overflow: hidden;
    line-height: 0;
}

.footer-wave svg {
    position: relative;
    display: block;
    width: calc(100% + 1.3px);
    height: 120px;
}

.footer-wave .shape-fill {
    fill: var(--title-color);
}

body.dark-mode .footer-wave .shape-fill {
    fill: #0a0a0a;
}

.footer-content {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 2rem;
    padding: 4rem 0 2rem;
}

.footer-section h4 {
    font-size: var(--h4-font-size);
    margin-bottom: var(--mb-1);
    color: #fff;
    position: relative;
    padding-bottom: 0.5rem;
}

.footer-section h4::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 40px;
    height: 2px;
    background: var(--first-color);
}

.footer-logo .logo-text {
    font-size: var(--h2-font-size);
    font-weight: var(--font-bold);
    color: #fff;
    display: block;
    margin-bottom: var(--mb-0-5);
}

.footer-logo p {
    color: rgba(255, 255, 255, 0.7);
    font-size: var(--small-font-size);
    line-height: 1.6;
}

.footer-social {
    display: flex;
    gap: 1rem;
    margin-top: var(--mb-1);
}

.footer-social .social-link {
    width: 40px;
    height: 40px;
    background: rgba(255, 255, 255, 0.1);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #fff;
    transition: var(--transition);
}

.footer-social .social-link:hover {
    background: var(--first-color);
    transform: translateY(-3px);
}

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

.footer-section ul li {
    margin-bottom: 0.75rem;
}

.footer-section ul li a {
    color: rgba(255, 255, 255, 0.7);
    transition: var(--transition);
    display: inline-block;
}

.footer-section ul li a:hover {
    color: var(--first-color);
    transform: translateX(5px);
}

.footer-bottom {
    text-align: center;
    padding: 2rem 0 1rem;
    border-top: 1px solid rgba(255, 255, 255, 0.1);
}

.footer-bottom p {
    color: rgba(255, 255, 255, 0.7);
    font-size: var(--small-font-size);
}

.footer-bottom i {
    color: #e74c3c;
    animation: heartBeat 1.5s ease-in-out infinite;
}

@keyframes heartBeat {
    0% { transform: scale(1); }
    14% { transform: scale(1.3); }
    28% { transform: scale(1); }
    42% { transform: scale(1.3); }
    70% { transform: scale(1); }
}

/* ===== BACK TO TOP ===== */
.back-to-top {
    position: fixed;
    bottom: 2rem;
    right: 2rem;
    width: 50px;
    height: 50px;
    background: var(--gradient-primary);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #fff;
    box-shadow: 0 5px 20px rgba(0, 0, 0, 0.2);
    opacity: 0;
    visibility: hidden;
    transition: var(--transition);
    z-index: var(--z-tooltip);
}

.back-to-top.show {
    opacity: 1;
    visibility: visible;
}

.back-to-top:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 30px rgba(106, 90, 205, 0.4);
}

/* ===== NOTIFICATIONS ===== */
.notification {
    position: fixed;
    top: 100px;
    right: 20px;
    background: var(--container-color);
    border-radius: var(--border-radius);
    padding: 1rem 1.5rem;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.2);
    z-index: 10000;
    display: flex;
    align-items: center;
    justify-content: space-between;
    min-width: 300px;
    animation: slideInRight 0.3s ease;
    border-left: 4px solid var(--first-color);
    transition: var(--transition);
}

body.dark-mode .notification {
    background: var(--container-color);
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.4);
}

.notification.success {
    border-left-color: #28a745;
}

.notification.error {
    border-left-color: #dc3545;
}

.notification-content {
    display: flex;
    align-items: center;
    gap: 1rem;
}

.notification i {
    font-size: 1.5rem;
}

.notification.success i {
    color: #28a745;
}

.notification.error i {
    color: #dc3545;
}

.notification span {
    color: var(--text-color);
    font-weight: var(--font-medium);
}

.notification-close {
    background: none;
    border: none;
    color: var(--text-color-light);
    cursor: pointer;
    font-size: 1.2rem;
    padding: 0.25rem;
    border-radius: 4px;
    transition: var(--transition);
}

.notification-close:hover {
    background: var(--body-color);
    color: var(--text-color);
}

/* ===== ANIMATIONS ===== */
@keyframes slideInRight {
    from {
        transform: translateX(100%);
        opacity: 0;
    }
    to {
        transform: translateX(0);
        opacity: 1;
    }
}

@keyframes slideOutRight {
    from {
        transform: translateX(0);
        opacity: 1;
    }
    to {
        transform: translateX(100%);
        opacity: 0;
    }
}

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

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

/* ===== CURSOR PERSONALIZADO ===== */
.cursor {
    width: 20px;
    height: 20px;
    border: 2px solid var(--first-color);
    border-radius: 50%;
    position: fixed;
    transform: translate(-50%, -50%);
    pointer-events: none;
    transition: all 0.1s ease;
    transition-property: background, transform;
    transform-origin: center;
    z-index: 9999;
    mix-blend-mode: difference;
}

.cursor-follower {
    width: 40px;
    height: 40px;
    background: rgba(106, 90, 205, 0.1);
    border-radius: 50%;
    position: fixed;
    transform: translate(-50%, -50%);
    pointer-events: none;
    transition: all 0.3s ease;
    z-index: 9998;
}

.cursor.hover {
    transform: translate(-50%, -50%) scale(1.5);
    background: var(--first-color);
}

/* ===== REUSABLE CSS CLASSES ===== */
.section {
    padding: 5rem 0 3rem;
}

.section-header {
    text-align: center;
    margin-bottom: var(--mb-4);
}

.section-title {
    font-size: var(--h2-font-size);
    color: var(--title-color);
    margin-bottom: var(--mb-1);
    position: relative;
    display: inline-block;
}

.section-title::after {
    content: '';
    position: absolute;
    bottom: -8px;
    left: 50%;
    transform: translateX(-50%);
    width: 60px;
    height: 4px;
    background: var(--gradient-primary);
    border-radius: 2px;
}

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

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

.grid {
    display: grid;
    gap: 2rem;
}

.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
    background: var(--gradient-primary);
    color: #fff;
    padding: 1rem 2rem;
    border-radius: 50px;
    font-weight: var(--font-medium);
    transition: var(--transition);
    border: none;
    cursor: pointer;
    font-size: var(--normal-font-size);
    position: relative;
    overflow: hidden;
    z-index: 1;
    text-transform: uppercase;
    letter-spacing: 1px;
}

.btn::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);
    z-index: -1;
}

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

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

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

.btn-secondary:hover {
    background: var(--gradient-primary);
    color: #fff;
}

/* ===== RESPONSIVE ===== */
@media screen and (max-width: 1024px) {
    :root {
        --header-height: 3.5rem;
    }
    
    .hero-content {
        grid-template-columns: 1fr;
        text-align: center;
        gap: 3rem;
    }
    
    .hero-image {
        order: -1;
    }
    
    .hero-buttons {
        justify-content: center;
    }
    
    .hero-social {
        justify-content: center;
    }
    
    .about-content,
    .contact-content {
        grid-template-columns: 1fr;
        gap: 3rem;
    }
    
    .skills-grid {
        grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    }
    
    .projects-grid {
        grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    }
    
    .stats-grid {
        grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    }
    
    .discord-status {
        top: 4rem;
        left: 1rem;
    }
    
    .theme-toggle {
        top: 4rem;
        right: 1rem;
    }
}

@media screen and (max-width: 768px) {
    :root {
        --header-height: 3rem;
        --big-font-size: 2.5rem;
        --h1-font-size: 2rem;
        --h2-font-size: 1.5rem;
        --h3-font-size: 1.25rem;
    }
    
    .hamburger {
        display: flex;
    }
    
    .nav-menu {
        position: fixed;
        top: var(--header-height);
        right: -100%;
        width: 80%;
        height: calc(100vh - var(--header-height));
        background: var(--container-color);
        flex-direction: column;
        padding: 2rem;
        transition: var(--transition);
        box-shadow: -5px 0 20px rgba(0, 0, 0, 0.1);
    }
    
    body.dark-mode .nav-menu {
        background: var(--container-color);
    }
    
    .nav-menu.active {
        right: 0;
    }
    
    .nav-menu li {
        margin-bottom: 1rem;
    }
    
    .hero-image-wrapper img {
        width: 300px;
        height: 300px;
    }
    
    .about-info-grid {
        grid-template-columns: 1fr;
    }
    
    .projects-controls {
        flex-direction: column;
        align-items: stretch;
    }
    
    .projects-search {
        min-width: auto;
    }
    
    .projects-grid {
        grid-template-columns: 1fr;
    }
    
    .footer-content {
        grid-template-columns: 1fr;
        text-align: center;
    }
    
    .footer-section ul {
        display: flex;
        justify-content: center;
        flex-wrap: wrap;
        gap: 1rem;
    }
    
    .footer-section ul li {
        margin: 0;
    }
    
    .footer-social {
        justify-content: center;
    }
    
    .discord-status {
        display: none;
    }
    
    .theme-toggle {
        top: 4rem;
        right: 1rem;
    }
}

@media screen and (max-width: 576px) {
    :root {
        --big-font-size: 2rem;
        --h1-font-size: 1.75rem;
        --h2-font-size: 1.5rem;
        --h3-font-size: 1.125rem;
    }
    
    .section {
        padding: 3rem 0 2rem;
    }
    
    .container {
        padding: 0 0.5rem;
    }
    
    .hero-title {
        font-size: var(--big-font-size);
    }
    
    .hero-subtitle {
        font-size: var(--h1-font-size);
    }
    
    .hero-buttons {
        flex-direction: column;
        align-items: center;
    }
    
    .btn {
        width: 100%;
        max-width: 250px;
    }
    
    .hero-image-wrapper img {
        width: 250px;
        height: 250px;
    }
    
    .skills-grid {
        grid-template-columns: 1fr;
    }
    
    .stats-grid {
        grid-template-columns: repeat(2, 1fr);
    }
    
    .notification {
        right: 10px;
        left: 10px;
        min-width: auto;
    }
    
    .theme-toggle {
        width: 40px;
        height: 40px;
    }
    
    .theme-toggle i {
        font-size: 1rem;
    }
}

/* ===== SCROLL BAR ===== */
::-webkit-scrollbar {
    width: 10px;
}

::-webkit-scrollbar-track {
    background: var(--scroll-bar-color);
}

::-webkit-scrollbar-thumb {
    background: var(--scroll-thumb-color);
    border-radius: 5px;
}

::-webkit-scrollbar-thumb:hover {
    background: var(--text-color-light);
}

/* ===== UTILITY CLASSES ===== */
.text-center { text-align: center; }
.text-left { text-align: left; }
.text-right { text-align: right; }
.mb-1 { margin-bottom: var(--mb-1); }
.mb-2 { margin-bottom: var(--mb-2); }
.mb-3 { margin-bottom: var(--mb-3); }
.mt-1 { margin-top: var(--mb-1); }
.mt-2 { margin-top: var(--mb-2); }
.mt-3 { margin-top: var(--mb-3); }
.hidden { display: none !important; }
.visible { display: block !important; }

/* ===== ANIMATION DELAYS ===== */
.animate__delay-1s { animation-delay: 0.1s; }
.animate__delay-2s { animation-delay: 0.2s; }
.animate__delay-3s { animation-delay: 0.3s; }
.animate__delay-4s { animation-delay: 0.4s; }
.animate__delay-5s { animation-delay: 0.5s; }

/* ===== LOADING STATES ===== */
.loading {
    position: relative;
    overflow: hidden;
}

.loading::after {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.2), transparent);
    animation: loading-shimmer 1.5s infinite;
}

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

/* ===== ERROR STATES ===== */
.error-message, .no-projects {
    grid-column: 1 / -1;
    text-align: center;
    padding: 3rem;
    background: var(--container-color);
    border-radius: var(--border-radius);
    box-shadow: var(--box-shadow);
    border: 1px solid rgba(0, 0, 0, 0.05);
}

.error-message i, .no-projects i {
    font-size: 3rem;
    color: var(--first-color);
    margin-bottom: var(--mb-1);
}

.error-message h3, .no-projects h3 {
    font-size: var(--h3-font-size);
    color: var(--title-color);
    margin-bottom: var(--mb-1);
}

.error-message p, .no-projects p {
    color: var(--text-color);
    margin-bottom: var(--mb-2);
}

/* ===== TOOLTIPS ===== */
[data-tooltip] {
    position: relative;
}

[data-tooltip]:hover::before {
    content: attr(data-tooltip);
    position: absolute;
    bottom: 100%;
    left: 50%;
    transform: translateX(-50%);
    background: var(--title-color);
    color: #fff;
    padding: 0.5rem 1rem;
    border-radius: 6px;
    font-size: var(--smaller-font-size);
    white-space: nowrap;
    z-index: 1000;
    opacity: 0;
    animation: tooltip-fade-in 0.3s ease forwards;
}

@keyframes tooltip-fade-in {
    to { opacity: 1; }
}

/* ===== ACCESSIBILITY ===== */
.sr-only {
    position: absolute;
    width: 1px;
    height: 1px;
    padding: 0;
    margin: -1px;
    overflow: hidden;
    clip: rect(0, 0, 0, 0);
    white-space: nowrap;
    border: 0;
}

/* ===== FOCUS STYLES ===== */
a:focus,
button:focus,
input:focus,
textarea:focus {
    outline: 2px solid var(--first-color);
    outline-offset: 2px;
}

/* ===== REDUCED MOTION ===== */
@media (prefers-reduced-motion: reduce) {
    * {
        animation-duration: 0.01ms !important;
        animation-iteration-count: 1 !important;
        transition-duration: 0.01ms !important;
        scroll-behavior: auto !important;
    }
    
    .cursor,
    .cursor-follower {
        display: none;
    }
}
