/* ===== VARIABLES ===== */
:root {
    --bg-primary:   #060614;
    --bg-secondary: #0d0d2b;
    --bg-card:      #111130;
    --accent-purple: #7c3aed;
    --accent-purple-light: #9d5cf5;
    --accent-green:  #06d6a0;
    --text-primary:  #ffffff;
    --text-secondary: #a0a0c0;
    --border-color:  rgba(124, 58, 237, 0.3);
}

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

html { scroll-behavior: smooth; }

body {
    background-color: var(--bg-primary);
    color: var(--text-primary);
    font-family: 'Inter', sans-serif;
    overflow-x: hidden;
}

/* ===== SCROLLBAR ===== */
::-webkit-scrollbar { width: 6px; }
::-webkit-scrollbar-track { background: var(--bg-primary); }
::-webkit-scrollbar-thumb { background: var(--accent-purple); border-radius: 3px; }

/* ===== PARTICLES ===== */
#particles {
    position: fixed; top: 0; left: 0;
    width: 100%; height: 100%;
    pointer-events: none; z-index: 0; overflow: hidden;
}
.particle {
    position: absolute; border-radius: 50%;
    background: rgba(124, 58, 237, 0.4);
    animation: particleFloat linear infinite;
}
@keyframes particleFloat {
    0%   { transform: translateY(100vh) rotate(0deg);    opacity: 0; }
    10%  { opacity: 1; }
    90%  { opacity: 1; }
    100% { transform: translateY(-120px) rotate(720deg); opacity: 0; }
}

/* ===== NAVBAR ===== */
.navbar {
    background: rgba(6, 6, 20, 0.85);
    backdrop-filter: blur(20px);
    border-bottom: 1px solid var(--border-color);
    padding: 1rem 0;
    position: fixed; top: 0; width: 100%; z-index: 1000;
    transition: all 0.3s ease;
}
.navbar.scrolled {
    padding: 0.55rem 0;
    box-shadow: 0 4px 30px rgba(124, 58, 237, 0.15);
}
.navbar-brand {
    font-size: 1.5rem; font-weight: 800;
    color: #fff !important; letter-spacing: -1px;
}
.navbar-brand span { color: var(--accent-green); }

.nav-link {
    color: var(--text-secondary) !important;
    font-weight: 500; font-size: 0.9rem;
    margin: 0 0.4rem; transition: all 0.3s ease;
    position: relative;
}
.nav-link::after {
    content: ''; position: absolute; bottom: -2px; left: 0;
    width: 0; height: 2px; background: var(--accent-purple);
    transition: width 0.3s ease;
}
.nav-link:hover,
.nav-link.active { color: #fff !important; }
.nav-link:hover::after,
.nav-link.active::after { width: 100%; }

.btn-nav-contact {
    background: var(--accent-purple);
    color: #fff !important; border-radius: 50px;
    padding: 0.5rem 1.5rem; font-weight: 600;
    transition: all 0.3s ease;
}
.btn-nav-contact:hover {
    background: var(--accent-purple-light);
    transform: translateY(-2px);
    box-shadow: 0 8px 25px rgba(124, 58, 237, 0.4);
}
.btn-nav-contact::after { display: none; }

.navbar-toggler { border-color: var(--border-color); }
.navbar-toggler-icon { filter: invert(1); }

/* ===== HERO ===== */
.hero {
    min-height: 100vh;
    display: flex; align-items: center;
    position: relative; overflow: hidden;
    padding-top: 90px;
}
.hero-bg-dots {
    position: absolute; top: 0; left: 0;
    width: 100%; height: 100%;
    background-image: radial-gradient(rgba(255, 255, 255, 0.04) 1px, transparent 1px);
    background-size: 40px 40px; pointer-events: none;
}
.hero-glow-1 {
    position: absolute; top: -30%; right: -15%;
    width: 550px; height: 550px;
    background: radial-gradient(circle, rgba(124, 58, 237, 0.18) 0%, transparent 70%);
    animation: glowPulse 5s ease-in-out infinite; pointer-events: none;
}
.hero-glow-2 {
    position: absolute; bottom: -20%; left: -10%;
    width: 400px; height: 400px;
    background: radial-gradient(circle, rgba(6, 214, 160, 0.08) 0%, transparent 70%);
    animation: glowPulse 6s ease-in-out infinite reverse; pointer-events: none;
}
@keyframes glowPulse {
    0%, 100% { transform: scale(1); opacity: 0.7; }
    50%       { transform: scale(1.15); opacity: 1; }
}

.hero-content { position: relative; z-index: 2; }

.hero-subtitle {
    color: var(--accent-green); font-size: 0.9rem;
    font-weight: 600; letter-spacing: 3px;
    text-transform: uppercase; margin-bottom: 0.5rem;
}
.hero-name {
    font-size: clamp(2.8rem, 8vw, 5.5rem);
    font-weight: 900; line-height: 1; margin-bottom: 1rem;
}
.hero-name .first { color: #fff; display: block; }
.hero-name .last  { color: var(--accent-purple); display: block; }

.typing-wrapper {
    display: flex; align-items: center; gap: 0.5rem;
    margin-bottom: 1.5rem;
}
.typing-prefix {
    background: rgba(124, 58, 237, 0.2);
    border: 1px solid var(--border-color);
    border-radius: 8px; padding: 0.4rem 0.9rem;
    font-size: 1rem; color: var(--accent-green);
    display: flex; align-items: center; gap: 0.3rem;
    white-space: nowrap;
}
.typing-text {
    font-size: 1rem; color: var(--text-secondary);
    font-weight: 500; min-height: 1.5em;
}
.cursor {
    display: inline-block; width: 2px; height: 1.2em;
    background: var(--accent-green); margin-left: 2px;
    animation: blink 0.7s infinite;
}
@keyframes blink {
    0%, 100% { opacity: 1; }
    50%       { opacity: 0; }
}

.hero-description {
    color: var(--text-secondary); font-size: 0.97rem;
    line-height: 1.85; max-width: 510px; margin-bottom: 2rem;
}
.hero-description .highlight {
    color: var(--accent-green); font-weight: 600; text-decoration: none;
}

.hero-buttons {
    display: flex; gap: 1rem; flex-wrap: wrap; margin-bottom: 2rem;
}

.btn-primary-custom {
    background: var(--accent-purple); color: #fff; border: none;
    border-radius: 50px; padding: 0.8rem 2rem;
    font-weight: 600; font-size: 0.95rem;
    transition: all 0.3s ease; text-decoration: none;
    display: inline-flex; align-items: center; gap: 0.5rem;
}
.btn-primary-custom:hover {
    background: var(--accent-purple-light); color: #fff;
    transform: translateY(-3px);
    box-shadow: 0 15px 35px rgba(124, 58, 237, 0.4);
}
.btn-secondary-custom {
    background: transparent; color: #fff;
    border: 2px solid rgba(255, 255, 255, 0.2);
    border-radius: 50px; padding: 0.8rem 2rem;
    font-weight: 600; font-size: 0.95rem;
    transition: all 0.3s ease; text-decoration: none;
    display: inline-flex; align-items: center; gap: 0.5rem;
}
.btn-secondary-custom:hover {
    border-color: var(--accent-purple); color: #fff;
    transform: translateY(-3px);
    box-shadow: 0 15px 35px rgba(124, 58, 237, 0.2);
}

.social-icon {
    width: 42px; height: 42px; border-radius: 50%;
    border: 1px solid rgba(255, 255, 255, 0.15);
    display: flex; align-items: center; justify-content: center;
    color: var(--text-secondary); font-size: 1rem;
    transition: all 0.3s ease; text-decoration: none;
}
.social-icon:hover {
    border-color: var(--accent-purple); color: var(--accent-purple);
    transform: translateY(-3px);
}
.hero-social { display: flex; gap: 0.8rem; }

/* ===== AVATAR ===== */
.hero-visual {
    position: relative; display: flex;
    justify-content: center; align-items: center;
}
.avatar-container {
    position: relative; width: 340px; height: 340px;
}
.avatar-circle {
    width: 260px; height: 260px; border-radius: 50%;
    background: linear-gradient(135deg, #7c3aed, #9d5cf5, #a78bfa);
    display: flex; align-items: center; justify-content: center;
    font-size: 4rem; font-weight: 900; color: #fff;
    position: absolute; top: 50%; left: 50%;
    transform: translate(-50%, -50%);
    box-shadow: 0 0 60px rgba(124, 58, 237, 0.45);
    animation: floatAvatar 3.5s ease-in-out infinite;
}
@keyframes floatAvatar {
    0%, 100% { transform: translate(-50%, -50%) translateY(0px); }
    50%       { transform: translate(-50%, -50%) translateY(-16px); }
}

/* ===== FLOATING BADGES ===== */
.skill-badge {
    position: absolute;
    background: rgba(13, 13, 43, 0.9);
    border: 1px solid var(--border-color);
    border-radius: 50px; padding: 0.4rem 0.9rem;
    font-size: 0.8rem; font-weight: 600; color: #fff;
    display: flex; align-items: center; gap: 0.4rem;
    white-space: nowrap; backdrop-filter: blur(10px);
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.4);
}
.badge-python  { top: 4%;     right: -10%; animation: fb1 4s   ease-in-out infinite; }
.badge-webdev  { top: 28%;    left: -25%;  animation: fb2 4.5s ease-in-out infinite; }
.badge-mysql   { bottom: 22%; left: -18%;  animation: fb3 3.8s ease-in-out infinite; }
.badge-flask   { bottom: 4%;  right: -8%;  animation: fb4 5s   ease-in-out infinite; }

@keyframes fb1 { 0%,100%{transform:translateY(0)   rotate(-3deg);} 50%{transform:translateY(-8px)  rotate(2deg);} }
@keyframes fb2 { 0%,100%{transform:translateY(0)   rotate(2deg);}  50%{transform:translateY(-10px) rotate(-2deg);} }
@keyframes fb3 { 0%,100%{transform:translateY(0)   rotate(-2deg);} 50%{transform:translateY(-7px)  rotate(3deg);} }
@keyframes fb4 { 0%,100%{transform:translateY(0)   rotate(3deg);}  50%{transform:translateY(-12px) rotate(-1deg);} }

/* ===== SCROLL INDICATOR ===== */
.scroll-indicator {
    position: absolute; bottom: 2rem; left: 50%;
    transform: translateX(-50%);
    display: flex; flex-direction: column; align-items: center; gap: 0.4rem;
    color: var(--text-secondary); font-size: 0.75rem;
    letter-spacing: 1px; animation: scrollBounce 2s infinite;
}
@keyframes scrollBounce {
    0%, 100% { transform: translateX(-50%) translateY(0); }
    50%       { transform: translateX(-50%) translateY(-8px); }
}

/* ===== SECTIONS COMMON ===== */
section { padding: 5.5rem 0; }

.section-tag {
    color: var(--accent-green); font-size: 0.83rem;
    font-weight: 600; letter-spacing: 3px;
    text-transform: uppercase; margin-bottom: 0.4rem;
}
.section-title {
    font-size: clamp(1.9rem, 4.5vw, 2.8rem);
    font-weight: 800; margin-bottom: 0.8rem; line-height: 1.1;
}
.section-title span { color: var(--accent-purple); }
.section-divider {
    width: 60px; height: 4px;
    background: linear-gradient(90deg, var(--accent-purple), var(--accent-green));
    border-radius: 2px; margin-bottom: 2.5rem;
}

/* ===== CARD BASE ===== */
.glass-card {
    background: var(--bg-card);
    border: 1px solid var(--border-color);
    border-radius: 20px; padding: 2rem;
}

/* ===== ABOUT ===== */
.about-section { background: var(--bg-secondary); }

.about-text { color: var(--text-secondary); line-height: 1.9; font-size: 0.97rem; }
.about-text strong { color: #fff; }

.info-item {
    display: flex; align-items: flex-start; gap: 0.9rem; margin-bottom: 1rem;
}
.info-icon {
    width: 36px; height: 36px; flex-shrink: 0;
    background: rgba(124, 58, 237, 0.15); border-radius: 9px;
    display: flex; align-items: center; justify-content: center;
    color: var(--accent-purple); font-size: 0.85rem;
}
.info-label { font-size: 0.75rem; color: var(--text-secondary); }
.info-value  { font-size: 0.9rem; color: #fff; font-weight: 500; }

.stat-card {
    background: rgba(124, 58, 237, 0.08);
    border: 1px solid var(--border-color);
    border-radius: 15px; padding: 1.5rem; text-align: center;
    transition: all 0.3s ease;
}
.stat-card:hover {
    border-color: var(--accent-purple);
    transform: translateY(-4px);
    box-shadow: 0 15px 35px rgba(124, 58, 237, 0.15);
}
.stat-number { font-size: 2.4rem; font-weight: 900; color: var(--accent-purple); display: block; }
.stat-label  { font-size: 0.8rem; color: var(--text-secondary); }

/* ===== EXPERIENCE ===== */
.experience-section { background: var(--bg-primary); }

.timeline { position: relative; padding-left: 2rem; }
.timeline::before {
    content: ''; position: absolute; left: 0; top: 0; bottom: 0;
    width: 2px;
    background: linear-gradient(180deg, var(--accent-purple), var(--accent-green));
    border-radius: 1px;
}
.timeline-dot {
    position: absolute; left: -2.55rem; top: 1.3rem;
    width: 16px; height: 16px; border-radius: 50%;
    background: var(--accent-purple); border: 3px solid var(--bg-primary);
    box-shadow: 0 0 15px rgba(124, 58, 237, 0.5);
}
.timeline-item    { position: relative; margin-bottom: 2rem; }
.timeline-card {
    background: var(--bg-card); border: 1px solid var(--border-color);
    border-radius: 16px; padding: 1.6rem; transition: all 0.3s ease;
}
.timeline-card:hover {
    border-color: var(--accent-purple); transform: translateX(6px);
    box-shadow: 0 10px 30px rgba(124, 58, 237, 0.15);
}
.timeline-role     { font-size: 1.1rem; font-weight: 700; color: #fff; margin-bottom: 0.25rem; }
.timeline-company  { color: var(--accent-purple); font-weight: 600; font-size: 0.9rem; margin-bottom: 0.3rem; }
.timeline-duration { color: var(--text-secondary); font-size: 0.8rem; margin-bottom: 1rem; }
.timeline-list     { list-style: none; padding: 0; margin: 0; }
.timeline-list li {
    color: var(--text-secondary); font-size: 0.9rem;
    line-height: 1.65; margin-bottom: 0.4rem;
    padding-left: 1.3rem; position: relative;
}
.timeline-list li::before { content: '▹'; position: absolute; left: 0; color: var(--accent-green); }

/* ===== SKILLS ===== */
.skills-section { background: var(--bg-secondary); }

.skill-category {
    background: var(--bg-card); border: 1px solid var(--border-color);
    border-radius: 16px; padding: 1.5rem; height: 100%;
    transition: all 0.3s ease;
}
.skill-category:hover {
    border-color: var(--accent-purple); transform: translateY(-5px);
    box-shadow: 0 20px 40px rgba(124, 58, 237, 0.15);
}
.skill-category-title {
    font-size: 0.8rem; font-weight: 600; color: var(--accent-green);
    letter-spacing: 2px; text-transform: uppercase;
    margin-bottom: 1rem; display: flex; align-items: center; gap: 0.5rem;
}
.skill-tag {
    display: inline-flex; align-items: center; gap: 0.3rem;
    background: rgba(124, 58, 237, 0.08);
    border: 1px solid rgba(124, 58, 237, 0.2);
    border-radius: 50px; padding: 0.3rem 0.85rem;
    font-size: 0.8rem; color: #c4b5fd; margin: 0.2rem;
    transition: all 0.3s ease;
}
.skill-tag:hover {
    background: rgba(124, 58, 237, 0.25); border-color: var(--accent-purple);
    color: #fff; transform: scale(1.06);
}

/* ===== SKILL BARS ===== */
.skill-bar-item   { margin-bottom: 1.1rem; }
.skill-bar-header { display: flex; justify-content: space-between; margin-bottom: 0.35rem; }
.skill-bar-name    { font-size: 0.85rem; color: #fff; font-weight: 500; }
.skill-bar-percent { font-size: 0.8rem; color: var(--accent-purple); font-weight: 600; }
.skill-bar-track {
    height: 6px; background: rgba(255, 255, 255, 0.05);
    border-radius: 3px; overflow: hidden;
}
.skill-bar-fill {
    height: 100%; border-radius: 3px; width: 0%;
    background: linear-gradient(90deg, var(--accent-purple), var(--accent-green));
    transition: width 1.4s cubic-bezier(.25, .8, .25, 1);
}

/* ===== PROJECTS ===== */
.projects-section { background: var(--bg-primary); }

.project-card {
    background: var(--bg-card); border: 1px solid var(--border-color);
    border-radius: 20px; padding: 2rem; height: 100%;
    transition: all 0.4s ease; position: relative; overflow: hidden;
}
.project-card::before {
    content: ''; position: absolute; top: 0; left: 0; right: 0;
    height: 3px;
    background: linear-gradient(90deg, var(--accent-purple), var(--accent-green));
    transform: scaleX(0); transition: transform 0.4s ease;
}
.project-card:hover::before  { transform: scaleX(1); }
.project-card:hover {
    border-color: var(--accent-purple); transform: translateY(-8px);
    box-shadow: 0 25px 50px rgba(124, 58, 237, 0.2);
}
.project-number {
    font-size: 3rem; font-weight: 900;
    color: rgba(255, 255, 255, 0.55); line-height: 1; margin-bottom: 0.8rem;
}
.project-icon {
    width: 52px; height: 52px;
    background: rgba(124, 58, 237, 0.15); border-radius: 12px;
    display: flex; align-items: center; justify-content: center;
    font-size: 1.6rem; margin-bottom: 1rem;
}
.project-title       { font-size: 1.15rem; font-weight: 700; color: #fff; margin-bottom: 0.8rem; }
.project-description { color: var(--text-secondary); font-size: 0.9rem; line-height: 1.75; margin-bottom: 1.2rem; }
.project-tech        { display: flex; flex-wrap: wrap; gap: 0.4rem; }
.tech-tag {
    background: rgba(124, 58, 237, 0.1); border: 1px solid rgba(124, 58, 237, 0.3);
    border-radius: 50px; padding: 0.2rem 0.75rem;
    font-size: 0.75rem; color: #a78bfa; font-weight: 500;
}

/* ===== EDUCATION ===== */
.education-section { background: var(--bg-secondary); }

.edu-card {
    background: var(--bg-card); border: 1px solid var(--border-color);
    border-radius: 16px; padding: 1.7rem; height: 100%;
    transition: all 0.3s ease;
}
.edu-card:hover {
    border-color: var(--accent-green); transform: translateY(-5px);
    box-shadow: 0 20px 40px rgba(6, 214, 160, 0.1);
}
.edu-icon {
    width: 52px; height: 52px; background: rgba(6, 214, 160, 0.1);
    border-radius: 12px; display: flex; align-items: center;
    justify-content: center; font-size: 1.5rem; margin-bottom: 1rem;
}
.edu-degree      { font-size: 1rem; font-weight: 700; color: #fff; margin-bottom: 0.3rem; }
.edu-institution { color: var(--accent-purple); font-size: 0.9rem; font-weight: 600; margin-bottom: 0.5rem; }
.edu-status {
    display: inline-flex; align-items: center; gap: 0.3rem;
    background: rgba(6, 214, 160, 0.1); border: 1px solid rgba(6, 214, 160, 0.3);
    border-radius: 50px; padding: 0.2rem 0.75rem;
    font-size: 0.75rem; color: var(--accent-green);
}

/* ===== LANGUAGE CARDS ===== */
.lang-card {
    background: var(--bg-card); border: 1px solid var(--border-color);
    border-radius: 12px; padding: 0.8rem 1rem; text-align: center;
    transition: all 0.3s ease;
}
.lang-card:hover { border-color: var(--accent-purple); transform: translateY(-3px); }
.lang-flag  { font-size: 1.7rem; margin-bottom: 0.3rem; }
.lang-name  { font-size: 0.85rem; font-weight: 700; color: #fff; }
.lang-level { font-size: 0.75rem; color: var(--accent-purple); font-weight: 500; }
.lang-dots  { display: flex; justify-content: center; gap: 0.3rem; margin-top: 0.5rem; }
.lang-dot         { width: 7px; height: 7px; border-radius: 50%; background: rgba(255, 255, 255, 0.1); }
.lang-dot.active  { background: var(--accent-purple); }

/* ===== CONTACT ===== */
.contact-section { background: var(--bg-primary); }

.contact-item {
    display: flex; align-items: center; gap: 1rem;
    padding: 0.9rem 1rem; border-radius: 12px;
    transition: all 0.3s ease; text-decoration: none; color: inherit;
}
.contact-item:hover { background: rgba(124, 58, 237, 0.1); }
.contact-icon {
    width: 50px; height: 50px; flex-shrink: 0;
    background: rgba(124, 58, 237, 0.15); border-radius: 12px;
    display: flex; align-items: center; justify-content: center;
    font-size: 1.2rem; color: var(--accent-purple);
}
.contact-label { font-size: 0.72rem; color: var(--text-secondary); text-transform: uppercase; letter-spacing: 1px; }
.contact-value { font-size: 0.93rem; color: #fff; font-weight: 500; word-break: break-word; }

/* ===== CONTACT ROW (horizontal layout) ===== */
.contact-items-row {
    display: flex;
    gap: 0.5rem;
    flex-wrap: wrap;
}
.contact-items-row .contact-item {
    flex: 1;
    min-width: 180px;
}

/* ===== FOOTER ===== */
footer {
    background: var(--bg-secondary);
    border-top: 1px solid var(--border-color);
    padding: 2rem 0; text-align: center;
}
.footer-text { color: var(--text-secondary); font-size: 0.85rem; }

/* ===== VER PROYECTO BUTTON ===== */
.btn-ver-proyecto {
    background: transparent;
    border: 1px solid var(--accent-purple);
    color: var(--accent-purple-light);
    border-radius: 50px;
    padding: 0.45rem 1.2rem;
    font-size: 0.82rem;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
    display: inline-flex;
    align-items: center;
    gap: 0.4rem;
}
.btn-ver-proyecto:hover {
    background: var(--accent-purple);
    color: #fff;
    box-shadow: 0 4px 15px rgba(124, 58, 237, 0.4);
}

/* ===== MODAL PROYECTO ===== */
.modal-proyecto-overlay {
    display: none;
    position: fixed; inset: 0;
    background: rgba(0, 0, 0, 0.88);
    z-index: 9999;
    align-items: center;
    justify-content: center;
    padding: 1rem;
}
.modal-proyecto-overlay.active { display: flex; }
.modal-proyecto-box {
    background: var(--bg-card);
    border: 1px solid var(--border-color);
    border-radius: 16px;
    padding: 1.8rem;
    max-width: 90vw;
    max-height: 90vh;
    overflow: auto;
    position: relative;
    animation: modalIn 0.25s ease;
}
@keyframes modalIn {
    from { opacity: 0; transform: scale(0.92); }
    to   { opacity: 1; transform: scale(1); }
}
.modal-proyecto-titulo {
    color: #fff;
    font-size: 1rem;
    font-weight: 700;
    margin-bottom: 1rem;
    padding-right: 2.5rem;
}
.modal-proyecto-img {
    max-width: 100%;
    max-height: 75vh;
    border-radius: 10px;
    display: block;
}
.modal-proyecto-close {
    position: absolute;
    top: 0.9rem; right: 0.9rem;
    background: transparent;
    border: none;
    color: var(--text-secondary);
    font-size: 1.2rem;
    cursor: pointer;
    transition: color 0.2s;
    line-height: 1;
}
.modal-proyecto-close:hover { color: #fff; }

/* ===== CAROUSEL ===== */
.modal-carousel {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.6rem;
}
.carousel-btn {
    background: rgba(124, 58, 237, 0.2);
    border: 1px solid rgba(124, 58, 237, 0.5);
    color: #fff;
    border-radius: 50%;
    width: 38px; height: 38px; min-width: 38px;
    display: flex; align-items: center; justify-content: center;
    cursor: pointer; font-size: 0.9rem;
    transition: all 0.2s ease;
}
.carousel-btn:hover { background: var(--accent-purple); }
.carousel-btn.hidden { visibility: hidden; pointer-events: none; }
.carousel-dots {
    display: flex; justify-content: center;
    gap: 0.45rem; margin-top: 0.75rem; min-height: 14px;
}
.carousel-dot {
    width: 8px; height: 8px; border-radius: 50%;
    background: rgba(255,255,255,0.2);
    cursor: pointer; transition: background 0.2s;
}
.carousel-dot.active { background: var(--accent-purple); }

/* ===== BACK TO TOP ===== */
.back-to-top {
    position: fixed; bottom: 2rem; right: 2rem;
    width: 45px; height: 45px; background: var(--accent-purple);
    color: #fff; border-radius: 50%;
    display: flex; align-items: center; justify-content: center;
    text-decoration: none; font-size: 1rem;
    opacity: 0; visibility: hidden; transition: all 0.3s ease;
    z-index: 999; box-shadow: 0 5px 20px rgba(124, 58, 237, 0.4);
}
.back-to-top.visible { opacity: 1; visibility: visible; }
.back-to-top:hover {
    background: var(--accent-purple-light); color: #fff; transform: translateY(-3px);
}

/* ===== RESPONSIVE ===== */
@media (max-width: 991px) {
    .avatar-container { width: 280px; height: 280px; margin: 3rem auto 0; }
    .avatar-circle    { width: 210px; height: 210px; font-size: 3rem; }
    .badge-python     { right: -5%; }
    .badge-webdev     { left: -10%; }
    .badge-mysql      { left: -8%; }
    .badge-flask      { right: -3%; }
}
@media (max-width: 576px) {
    .hero-buttons { flex-direction: column; }
    .btn-primary-custom,
    .btn-secondary-custom { width: 100%; justify-content: center; }
    .avatar-container { width: 230px; height: 230px; }
    .avatar-circle    { width: 170px; height: 170px; font-size: 2.5rem; }
}
