* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    font-family: 'Inter', sans-serif;
}

/* Skip link visible on focus for keyboard users */
.skip-link {
    position: absolute;
    left: -999px;
    top: auto;
    width: 1px;
    height: 1px;
    overflow: hidden;
    background: #000;
    color: #fff;
    padding: 8px 12px;
    z-index: 9999;
}
.skip-link:focus {
    left: 1rem;
    top: 1rem;
    width: auto;
    height: auto;
    border-radius: 6px;
    box-shadow: 0 6px 18px rgba(0,0,0,0.3);
}

body {
    color: #fff;
    min-height: 100vh;
    overflow-x: hidden;
    position: relative;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    background:
        radial-gradient(circle at top left, rgba(139, 92, 246, 0.18), transparent 30%),
        radial-gradient(circle at bottom right, rgba(34, 211, 238, 0.12), transparent 30%),
        #070b1a;
}

.gradient-background {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(135deg, #080d1b 0%, #111827 40%, #0f172a 100%);
    z-index: -2;
    overflow: hidden;
}

.section#home:before {
    content: '';
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background:
        radial-gradient(circle, rgba(255,255,255,0.2) 0%, rgba(255,255,255,0) 60%),
        radial-gradient(circle, rgba(139,92,246,0.18) 0%, rgba(139,92,246,0) 45%),
        radial-gradient(circle, rgba(34,211,238,0.14) 0%, rgba(34,211,238,0) 55%);
    z-index: -1;
    pointer-events: none;
    animation: starsTwinkle 25s linear infinite;
}

.section#home.active:before {
    opacity: 1;
}

@keyframes slowMove {
    0% { background-position: 0% 0%, 0% 0%; }
    50% { background-position: 100% 50%, 50% 100%; }
    100% { background-position: 0% 0%, 0% 0%; }
}

@keyframes starsTwinkle {
    0%, 100% { opacity: 0.9; transform: translate(0,0) scale(1); }
    25% { opacity: 0.7; transform: translate(20px, 10px) scale(1.05); }
    50% { opacity: 0.85; transform: translate(50px,30px) scale(0.95); }
    75% { opacity: 0.8; transform: translate(-20px,-15px) scale(1.1); }
}

.particles .particle {
    background-color: rgba(255,255,255,0.4);
    width: 2px;
    height: 2px;
    border-radius: 50%;
    animation: floatParticle 60s linear infinite;
}

@keyframes floatParticle {
    0% { transform: translate(0,0); opacity: 0.5; }
    50% { transform: translate(200px,-100px) scale(1.2); opacity: 0.8; }
    100% { transform: translate(-100px,200px) scale(0.9); opacity: 0.5; }
}

#particles {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    pointer-events: none;
    z-index: -1;
}

#particles .particle {
    position: absolute;
    width: 2px;
    height: 2px;
    border-radius: 50%;
    background-color: rgba(255, 255, 255, 0.6);
    opacity: 0.8;
    transition: transform 0.2s ease, opacity 0.2s ease;
}
#particles, #particles-canvas {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    pointer-events: none;
    z-index: -1;
}

.gradient-background {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(135deg, #070b1a 0%, #111827 40%, #0f172a 100%);
    z-index: -2;
}

.particle {
    position: absolute;
    background-color: rgba(255, 255, 255, 0.5);
    border-radius: 50%;
    animation: floatParticle var(--duration) ease-in-out infinite;
    opacity: 0;
    z-index: -1;
}

.container {
    max-width: 1200px;
    width: min(1200px, 92vw);
    height: 100vh;
    margin: 0 auto;
    display: flex;
    flex-direction: column;
    padding-bottom: 110px;
    overflow: hidden;
    position: relative;
}

.section {
    width: 100%;
    height: 100%;
    position: absolute;
    top: 0;
    left: 0;
    display: flex;
    justify-content: center;
    align-items: center;
    opacity: 0;
    visibility: hidden;
    transition: opacity 0.5s ease, visibility 0.5s ease;
    padding: 1rem;
}

.section.active {
    opacity: 1;
    visibility: visible;
    z-index: 1;
}

.about-card {
    overflow-y: auto;
    padding-bottom: 2rem;
}

.info-cards-container {
    display: flex;
    flex-wrap: wrap;
    gap: 1.5rem;
    margin: 1.5rem 0;
}

.info-card {
    flex: 1;
    min-width: 280px;
    background: rgba(17, 24, 39, 0.7);
    border-radius: 18px;
    padding: 1.5rem;
    box-shadow: 0 18px 40px rgba(15, 23, 42, 0.2);
    border: 1px solid rgba(148, 163, 184, 0.15);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    backdrop-filter: blur(8px);
}

.info-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 20px 35px rgba(0, 0, 0, 0.25);
}

.info-card-header {
    display: flex;
    align-items: center;
    margin-bottom: 1.2rem;
    padding-bottom: 0.8rem;
    border-bottom: 1px solid rgba(148, 163, 184, 0.15);
}

.info-card-header i {
    font-size: 1.5rem;
    color: #a78bfa;
    margin-right: 1rem;
}

.info-card-header h3 {
    margin: 0;
    font-weight: 600;
    color: #fff;
}

.info-item {
    display: flex;
    flex-wrap: wrap;
    gap: 0.5rem;
    margin-bottom: 0.8rem;
}

.info-label {
    font-weight: bold;
    min-width: 120px;
    color: rgba(255, 255, 255, 0.8);
}

.info-value {
    color: #c4b5fd;
    display: flex;
    flex-wrap: wrap;
    gap: 0.7rem; 
}

.skills-grid {
    display: flex;
    flex-wrap: wrap;
    gap: 0.8rem;
}

.skill-pill {
    display: flex;
    align-items: center;
    background: rgba(167, 139, 250, 0.12);
    border: 1px solid rgba(167, 139, 250, 0.25);
    border-radius: 999px;
    padding: 0.6rem 0.95rem;
    transition: all 0.3s ease;
    color: #c4b5fd;
}

.skill-pill:hover {
    background: rgba(167, 139, 250, 0.18);
    transform: translateY(-2px);
}

.skill-pill i {
    margin-right: 0.5rem;
    font-size: 1.1rem;
    color: #a78bfa;
}

.skill-pill span {
    font-size: 0.9rem;
}

.about-text {
    margin: 1.5rem 0;
    line-height: 1.8;
}

.about-text p {
    margin-bottom: 1rem;
    color: rgba(226, 232, 240, 0.82);
}

.minecraft-skills {
    margin-top: 1.5rem;
}

.minecraft-skills h3 {
    margin-bottom: 1.2rem;
    position: relative;
    display: inline-block;
}

.minecraft-skills h3:after {
    content: '';
    position: absolute;
    bottom: -8px;
    left: 0;
    width: 60%;
    height: 3px;
    background: linear-gradient(90deg, #4CAF50 0%, rgba(76, 175, 80, 0) 100%);
    border-radius: 2px;
}

.mc-skills-container {
    display: flex;
    flex-wrap: wrap;
    gap: 1.2rem;
    margin-top: 1.5rem;
}

.mc-skill {
    display: flex;
    align-items: center;
    width: 100%;
    margin-bottom: 0.8rem;
}

.mc-skill-icon {
    width: 40px;
    height: 40px;
    background-color: rgba(76, 175, 80, 0.1);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-right: 1rem;
}

.mc-skill-icon i {
    color: #4CAF50;
    font-size: 1.2rem;
}

.mc-skill-info {
    flex-grow: 1;
}

.mc-skill-info h4 {
    margin: 0 0 0.5rem 0;
    font-size: 1rem;
    font-weight: 500;
}

.skill-bar {
    width: 100%;
    height: 6px;
    background-color: rgba(255, 255, 255, 0.1);
    border-radius: 3px;
    overflow: hidden;
}

.skill-progress {
    height: 100%;
    background: linear-gradient(90deg, #22d3ee, #8b5cf6);
    border-radius: 3px;
}

@media (max-width: 768px) {
    .info-cards-container {
        flex-direction: column;
    }
    
    .info-item {
        flex-direction: column;
    }
    
    .info-label {
        margin-bottom: 0.3rem;
    }
    
    .mc-skills-container {
        flex-direction: column;
    }
}

.card {
    background: linear-gradient(180deg, rgba(15, 23, 42, 0.9), rgba(17, 24, 39, 0.8));
    border-radius: 24px;
    padding: 2rem;
    box-shadow: 0 25px 60px rgba(15, 23, 42, 0.45);
    opacity: 0;
    transform: translateY(20px);
    transition: all 0.5s ease;
    backdrop-filter: blur(14px);
    border: 1px solid rgba(148, 163, 184, 0.12);
    width: 100%;
    max-width: 820px;
    margin: 0 auto;
    overflow-y: auto;
    max-height: 85vh;
}

.card.show {
    opacity: 1;
    transform: translateY(0);
}

.hero-card {
    text-align: center;
    padding: clamp(2rem, 4vw, 4rem);
    max-width: 820px;
    margin: 0 auto;
    position: relative;
    overflow: hidden;
    border: 1px solid rgba(167, 139, 250, 0.2);
}

.hero-card::before {
    content: '';
    position: absolute;
    inset: -30% -10% auto auto;
    width: 280px;
    height: 280px;
    background: radial-gradient(circle, rgba(139, 92, 246, 0.38), transparent 65%);
    filter: blur(10px);
}

.hero-card::after {
    content: '';
    position: absolute;
    inset: auto auto -30% -10%;
    width: 220px;
    height: 220px;
    background: radial-gradient(circle, rgba(34, 211, 238, 0.28), transparent 65%);
    filter: blur(10px);
}

.hero-content {
    position: relative;
    z-index: 1;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 1rem;
}

.eyebrow {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.55rem 1rem;
    border-radius: 999px;
    border: 1px solid rgba(167, 139, 250, 0.2);
    background: rgba(139, 92, 246, 0.1);
    color: #ddd6fe;
    font-size: 0.8rem;
    letter-spacing: 0.08em;
    text-transform: uppercase;
}

h1 {
    font-size: clamp(2.5rem, 6vw, 5rem);
    font-weight: 800;
    line-height: 0.95;
    letter-spacing: -0.06em;
    margin: 0;
    display: block;
    text-align: center;
}

.logo-img {
    width: 30px;
    height: 30px;
    border-radius: 4px;
    animation: pulse 2s infinite ease-in-out;
}

@keyframes pulse {
    0% {
        transform: scale(1);
    }
    50% {
        transform: scale(1.1);
    }
    100% {
        transform: scale(1);
    }
}

h2 {
    font-size: 1.8rem;
    margin-bottom: 1.5rem;
    position: relative;
    display: inline-block;
}

h2::after {
    content: '';
    position: absolute;
    bottom: -8px;
    left: 0;
    width: 60%;
    height: 3px;
    background: linear-gradient(90deg, #a78bfa 0%, rgba(167, 139, 250, 0) 100%);
    border-radius: 2px;
}

h3 {
    font-size: 1.2rem;
    margin-bottom: 0.75rem;
    font-weight: 600;
}

p {
    line-height: 1.6;
    margin-bottom: 1rem;
    color: rgba(255, 255, 255, 0.85);
}

.subtitle {
    font-size: 1.2rem;
    margin-bottom: 0.75rem;
}

.role, .cta {
    font-size: clamp(1.05rem, 2vw, 1.25rem);
    margin-bottom: 0;
    color: rgba(226, 232, 240, 0.85);
}

.hero-meta {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 0.75rem;
    margin-top: 0.25rem;
}

.hero-chip {
    display: inline-flex;
    align-items: center;
    gap: 0.45rem;
    padding: 0.55rem 0.8rem;
    border-radius: 999px;
    background: rgba(15, 23, 42, 0.8);
    border: 1px solid rgba(148, 163, 184, 0.15);
    color: #e2e8f0;
    font-size: 0.82rem;
}

.hero-chip i {
    color: #a78bfa;
}

.cta-row {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 1rem;
    margin-top: 0.5rem;
}

.primary-cta,
.secondary-cta {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-width: 170px;
    padding: 0.9rem 1.4rem;
    border-radius: 12px;
    text-decoration: none;
    font-weight: 700;
    letter-spacing: 0.02em;
    transition: transform 0.25s ease, box-shadow 0.25s ease, border-color 0.25s ease;
}

.primary-cta {
    background: linear-gradient(135deg, #8b5cf6, #7c3aed);
    box-shadow: 0 18px 32px rgba(124, 58, 237, 0.35);
    color: white;
}

.secondary-cta {
    border: 1px solid rgba(148, 163, 184, 0.2);
    background: rgba(15, 23, 42, 0.7);
    color: #e2e8f0;
}

.primary-cta:hover,
.secondary-cta:hover {
    transform: translateY(-2px);
}

.highlight {
    display: inline-block;
    padding: 0.15rem 0.5rem;
    border-radius: 8px;
    font-weight: 700;
    box-shadow: inset 0 0 0 1px rgba(255,255,255,0.08);
}

.highlight.red,
.highlight.red:visited,
.highlight.red:active,
.highlight.red:hover {
    color: #fff;
    background: linear-gradient(135deg, #ef4444, #dc2626);
    text-decoration: none;
    cursor: pointer;
}

.green {
    background: linear-gradient(135deg, #22c55e, #16a34a);
}

.purple {
    background: linear-gradient(135deg, #a78bfa, #8b5cf6);
}

.orange {
    background: linear-gradient(135deg, #fbbf24, #f59e0b);
}

.red {
    background: linear-gradient(135deg, #ef4444, #dc2626);
}

.skills {
    display: flex;
    flex-wrap: wrap;
    gap: 2rem;
    margin-top: 1.5rem;
}

.skill-category {
    flex: 1;
    min-width: 250px;
}

.skill-category ul {
    list-style-type: none;
}

.skill-category li {
    margin-bottom: 0.5rem;
    position: relative;
    padding-left: 1.5rem;
}

.skill-category li::before {
    content: '▹';
    color: #a78bfa;
    position: absolute;
    left: 0;
}

.projects-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
    gap: 1.5rem;
    margin-top: 1rem;
    justify-content: center;
}

.project-card {
    background: rgba(17, 24, 39, 0.72);
    border: 1px solid rgba(148, 163, 184, 0.15);
    border-radius: 20px;
    padding: 1.25rem;
    transition: transform 0.3s ease, box-shadow 0.3s ease, border-color 0.3s ease;
    position: relative;
    overflow: hidden;
}

.project-card:hover {
    transform: translateY(-8px);
    box-shadow: 0 22px 35px rgba(15, 23, 42, 0.3);
    border-color: rgba(167, 139, 250, 0.28);
}

.project-image {
    position: relative;
    width: 100%;
    height: 220px;
    margin-bottom: 1rem;
    border-radius: 14px;
    overflow: hidden;
}

.project-img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.5s ease;
}

.project-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(to bottom, rgba(15, 23, 42, 0.1), rgba(15, 23, 42, 0.7));
    opacity: 0.8;
    transition: opacity 0.3s ease;
}

.project-card:hover .project-img {
    transform: scale(1.06) rotate(1deg);
}

.project-card:hover .project-overlay {
    opacity: 0.45;
}

.project-title {
    font-size: 1.2rem;
    font-weight: 700;
    margin-bottom: 0.5rem;
    color: #fff;
}

.github-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    margin-top: 20px;
    padding: 0.85rem 1.2rem;
    background: linear-gradient(145deg, #24293d, #1f2937);
    color: #fff;
    text-decoration: none;
    border-radius: 12px;
    font-weight: 600;
    box-shadow: 0 12px 25px rgba(15, 23, 42, 0.2);
    transition: transform 0.3s ease, box-shadow 0.3s ease, border-color 0.3s ease;
    border: 1px solid rgba(148, 163, 184, 0.08);
}

.github-btn:hover {
    transform: translateY(-3px);
    box-shadow: 0 16px 28px rgba(15, 23, 42, 0.28);
}

.github-icon {
    width: 24px;
    height: 24px;
    transition: transform 0.3s ease;
}

.github-btn:hover .github-icon {
    transform: scale(1.08);
}

.tech-stack span {
    display: inline-block;
    background: linear-gradient(135deg, rgba(139, 92, 246, 0.16), rgba(34, 211, 238, 0.14));
    color: #ddd6fe;
    padding: 0.35rem 0.75rem;
    border-radius: 999px;
    font-size: 0.82rem;
    font-weight: 600;
    margin-right: 0.4rem;
    margin-bottom: 0.5rem;
    border: 1px solid rgba(167, 139, 250, 0.2);
    transition: background 0.3s ease, transform 0.2s ease;
}

.tech-stack span:hover {
    background: linear-gradient(135deg, rgba(139, 92, 246, 0.22), rgba(34, 211, 238, 0.18));
    transform: translateY(-1px);
    cursor: default;
}

.project-links {
    display: flex;
    gap: 1rem;
    margin-top: 1rem;
}

.project-links a {
    color: #fff;
    text-decoration: none;
    font-size: 0.9rem;
    position: relative;
}

.project-links a::after {
    content: '';
    position: absolute;
    bottom: -2px;
    left: 0;
    width: 0;
    height: 2px;
    background-color: #a78bfa;
    transition: width 0.3s ease;
}

.project-links a:hover::after {
    width: 100%;
}

.contact-links {
    display: flex;
    flex-direction: column;
    gap: 1rem;
    margin-top: 1.5rem;
}

.contact-link {
    display: flex;
    align-items: center;
    gap: 1rem;
    color: #fff;
    text-decoration: none;
    transition: transform 0.3s ease, background 0.3s ease;
    padding: 0.8rem 0.9rem;
    border-radius: 12px;
    border: 1px solid rgba(148, 163, 184, 0.08);
    background: rgba(15, 23, 42, 0.42);
}

.contact-link:hover {
    background: rgba(139, 92, 246, 0.08);
    transform: translateX(5px);
}

.contact-link i {
    font-size: 1.2rem;
    color: #a78bfa;
}

.x-logo {
    width: 16px;
    height: 16px;
    margin-left: 2px;
    filter: brightness(0) saturate(100%) invert(65%) sepia(58%) saturate(5312%) hue-rotate(225deg) brightness(87%) contrast(93%);
}

.x-logo-nav {
    width: 20px;
    height: 20px;
}

footer {
    position: fixed;
    bottom: 0;
    left: 0;
    width: 100%;
    padding: 1rem;
    display: flex;
    justify-content: center;
    z-index: 10;
}

.social-icons {
    display: flex;
    gap: 0.8rem;
    background: rgba(15, 23, 42, 0.8);
    padding: 0.85rem 1rem;
    border-radius: 999px;
    backdrop-filter: blur(12px);
    box-shadow: 0 20px 35px rgba(15, 23, 42, 0.35);
    border: 1px solid rgba(148, 163, 184, 0.12);
    animation: floatAnimation 3s ease-in-out infinite;
}

@keyframes floatAnimation {
    0% {
        transform: translateY(0);
    }
    50% {
        transform: translateY(-10px);
    }
    100% {
        transform: translateY(0);
    }
}

.icon-button {
    position: relative;
    width: 50px;
    height: 50px;
    text-decoration: none;
    transition: transform 0.3s ease;
    overflow: visible;
}

.icon-container {
    width: 100%;
    height: 100%;
    border-radius: 50%;
    background: rgba(30, 41, 59, 0.9);
    display: flex;
    align-items: center;
    justify-content: center;
    color: #fff;
    position: relative;
    overflow: hidden;
    transition: all 0.3s ease;
    border: 1px solid rgba(148, 163, 184, 0.12);
}

.icon-button.active .icon-container {
    background: linear-gradient(135deg, rgba(167, 139, 250, 0.3), rgba(59, 130, 246, 0.2));
    box-shadow: 0 0 20px rgba(139, 92, 246, 0.45);
    border-color: rgba(167, 139, 250, 0.5);
    transform: scale(1.08);
}

.icon-button:hover .icon-container {
    background: rgba(139, 92, 246, 0.18);
    transform: translateY(-4px);
}

.icon-button i {
    font-size: 1.3rem;
    transition: all 0.3s ease;
}

.icon-button:hover i {
    transform: scale(1.15);
}

:focus {
    outline: none;
}
:focus-visible {
    outline: 3px solid rgba(167,139,250,0.9);
    outline-offset: 3px;
}
.icon-button:focus-visible, .github-btn:focus-visible, .contact-link:focus-visible, .project-card:focus-visible {
    outline: 3px solid rgba(167,139,250,0.9);
    outline-offset: 3px;
    border-radius: 8px;
}

.icon-tooltip {
    position: absolute;
    top: -40px;
    left: 50%;
    transform: translateX(-50%) translateY(10px);
    background-color: rgba(15, 23, 42, 0.9);
    color: white;
    padding: 5px 10px;
    border-radius: 6px;
    font-size: 0.75rem;
    opacity: 0;
    visibility: hidden;
    transition: all 0.3s ease;
    white-space: nowrap;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.2);
    border: 1px solid rgba(255, 255, 255, 0.08);
}

.icon-tooltip:after {
    content: '';
    position: absolute;
    top: 100%;
    left: 50%;
    margin-left: -5px;
    border-width: 5px;
    border-style: solid;
    border-color: rgba(15, 23, 42, 0.9) transparent transparent transparent;
}

.icon-button:hover .icon-tooltip {
    opacity: 1;
    visibility: visible;
    transform: translateX(-50%) translateY(0);
}

.ripple {
    position: absolute;
    width: 10px;
    height: 10px;
    background-color: rgba(255, 255, 255, 0.7);
    border-radius: 50%;
    transform: scale(0);
    animation: rippleEffect 0.6s linear;
}

@keyframes rippleEffect {
    to {
        transform: scale(15);
        opacity: 0;
    }
}

@media (max-width: 768px) {
    .container {
        width: 95%;
    }
    
    h1 {
        font-size: 2.2rem;
    }
    
    .projects-grid {
        grid-template-columns: 1fr;
    }
    
    .skills {
        flex-direction: column;
        gap: 1rem;
    }
    
    .hero-card {
        padding: 2rem 1rem;
    }
}

@media (max-width: 480px) {
    body {
        font-size: 15px;
    }
    .container {
        width: 100vw;
        min-width: 100vw;
        max-width: 100vw;
        padding: 0;
        margin: 0;
        height: 100vh;
        min-height: 100vh;
        max-height: 100vh;
    }
    .card {
        padding: 1rem 0.5rem;
        max-width: 100vw;
        width: 100vw;
        margin: 0;
        border-radius: 0;
        box-shadow: none;
        max-height: 90vh;
    }
    .about-card {
        padding-bottom: 1rem;
    }
    .info-cards-container {
        gap: 0.7rem;
        margin: 1rem 0;
    }
    .info-card {
        padding: 1rem 0.5rem;
        min-width: unset;
    }
    .skills-grid {
        gap: 0.4rem;
    }
    .skill-pill {
        padding: 0.3rem 0.7rem;
        font-size: 0.85rem;
    }
    .about-text {
        margin: 1rem 0;
    }
    .minecraft-skills {
        margin-top: 1rem;
    }
    .mc-skills-container {
        gap: 0.7rem;
        margin-top: 1rem;
    }
    .mc-skill {
        margin-bottom: 0.5rem;
    }
    .project-image {
        height: 140px;
    }
    .projects-grid {
        gap: 0.7rem;
        margin-top: 0.5rem;
    }
    .project-card {
        padding: 1rem 0.5rem;
    }
    .contact-links {
        gap: 0.7rem;
        margin-top: 1rem;
    }
    .contact-link {
        gap: 0.7rem;
        padding: 0.3rem;
    }
    .icon-tooltip {
        font-size: 0.7rem;
        padding: 3px 7px;
    }
    footer {
        padding: 0.3rem;
    }
    .social-icons {
        padding: 0.3rem;
        gap: 0.4rem;
    }
    .icon-button {
        width: 32px;
        height: 32px;
    }
    .icon-container {
        font-size: 1rem;
    }
    h1 {
        font-size: 1.3rem;
        gap: 0.3rem;
    }
    h2 {
        font-size: 1.1rem;
    }
    h3 {
        font-size: 1rem;
    }
    .logo-img {
        width: 22px;
        height: 22px;
    }
}

@media (max-width: 375px) {
    .container, .card {
        padding: 0.2rem 0.1rem;
    }
    .project-image {
        height: 100px;
    }
    .logo-img {
        width: 18px;
        height: 18px;
    }
}

.hero-card h1,
.hero-card .subtitle,
.hero-card .role,
.hero-card .cta {
user-select: none;
}

.web-skills {
    margin-top: 1.5rem;
}

.web-skills h3 {
    margin-bottom: 1.2rem;
    position: relative;
    display: inline-block;
}

.web-skills h3:after {
    content: '';
    position: absolute;
    bottom: -8px;
    left: 0;
    width: 60%;
    height: 3px;
    background: linear-gradient(90deg, #007acc 0%, rgba(0, 122, 204, 0) 100%);
    border-radius: 2px;
}

.web-skills-container {
    display: flex;
    flex-wrap: wrap;
    gap: 1.2rem;
    margin-top: 1.5rem;
}

.web-skill {
    display: flex;
    align-items: center;
    width: 100%;
    margin-bottom: 0.8rem;
}

.web-skill-icon {
    width: 40px;
    height: 40px;
    background-color: rgba(0, 122, 204, 0.1);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-right: 1rem;
}

.web-skill-icon i {
    color: #007acc;
    font-size: 1.2rem;
}

.web-skill-info {
    flex-grow: 1;
}

.web-skill-info h4 {
    margin: 0 0 0.5rem 0;
    font-size: 1rem;
    font-weight: 500;
}

.web-skill .skill-bar {
    width: 100%;
    height: 6px;
    background-color: rgba(255, 255, 255, 0.1);
    border-radius: 3px;
    overflow: hidden;
}

.web-skill .skill-progress {
    height: 100%;
    background: linear-gradient(90deg, #007acc, #00a2ff);
    border-radius: 3px;
}

@media (max-width: 768px) {
    .web-skills-container {
        flex-direction: column;
    }
}

@media (max-width: 480px) {
    .web-skills {
        margin-top: 1rem;
    }
    
    .web-skills-container {
        gap: 0.7rem;
        margin-top: 1rem;
    }
    
    .web-skill {
        margin-bottom: 0.5rem;
    }
}

.ip-tooltip {
    position: absolute;
    top: 10px;
    left: 50%;
    transform: translateX(-50%);
    background: #222;
    color: #fff;
    padding: 6px 16px;
    border-radius: 8px;
    font-size: 1rem;
    z-index: 1000;
    box-shadow: 0 2px 8px rgba(0,0,0,0.2);
    opacity: 0.95;
    pointer-events: none;
    animation: fadeOutTooltip 1.5s forwards;
}

@keyframes fadeOutTooltip {
    0% { opacity: 0.95; }
    80% { opacity: 0.95; }
    100% { opacity: 0; }
}

/* --- ESTILOS PARA LA PUTA SECCIÓN DE DONACIONES --- */
.donation-container {
    margin-top: 2rem;
    text-align: center;
}

.donation-presets {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 1rem;
    margin: 1.5rem 0;
}

.donation-button {
    background-color: rgba(156, 119, 255, 0.1);
    border: 1px solid rgba(156, 119, 255, 0.5);
    color: #fff;
    padding: 0.8rem 1.5rem;
    border-radius: 8px;
    cursor: pointer;
    font-size: 1rem;
    font-weight: 600;
    transition: all 0.3s ease;
}

.donation-button:hover {
    background-color: rgba(156, 119, 255, 0.3);
    transform: translateY(-3px);
    box-shadow: 0 5px 15px rgba(156, 119, 255, 0.2);
}

.custom-donation {
    display: flex;
    justify-content: center;
    gap: 1rem;
    align-items: center;
    margin-top: 1.5rem;
}

.custom-donation input {
    background-color: rgba(255, 255, 255, 0.05);
    border: 1px solid rgba(255, 255, 255, 0.2);
    color: #fff;
    padding: 0.8rem;
    border-radius: 8px;
    width: 120px;
    text-align: center;
    font-size: 1rem;
}

.custom-donation input::placeholder {
    color: rgba(255, 255, 255, 0.4);
}

.custom-donation button {
    background-color: #28a745;
    border: none;
    color: #fff;
    padding: 0.8rem 1.5rem;
    border-radius: 8px;
    cursor: pointer;
    font-size: 1rem;
    font-weight: 600;
    transition: background-color 0.3s ease;
}

.custom-donation button:hover {
    background-color: #218838;
}
::-webkit-scrollbar {
  width: 8px; /* ancho */
}

::-webkit-scrollbar-thumb {
  background: #6c63ff; /* color de la barra */
  border-radius: 10px;
}

::-webkit-scrollbar-track {
  background: transparent;
}
body {
  margin: 0;
  font-family: 'Poppins', sans-serif;
  background: linear-gradient(135deg, #0f0c29, #302b63, #24243e);
  color: #fff;
  display: flex;
  justify-content: center;
  align-items: center;
  height: 100vh;
}

/* Sección principal */
.section {
  display: flex;
  justify-content: center;
  align-items: center;
  padding: 2rem;
}

/* Tarjeta */
.hero-card {
  background: rgba(255, 255, 255, 0.05);
  border: 1px solid rgba(255, 255, 255, 0.1);

  box-shadow: 0 8px 25px rgba(0, 0, 0, 0.5);
  animation: fadeInUp 1s ease forwards;
}



/* Animación entrada */
@keyframes fadeInUp {
  from {
    opacity: 0;
    transform: translateY(30px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

/* Responsivo */
@media (max-width: 768px) {
  h1 {
    font-size: 2.2rem;
  }
  .role {
    font-size: 1.2rem;
  }
  .hero-card {
    padding: 2rem;
  }
}
/* ====== CONTENEDORES ====== */
#about {
  padding: 4rem 2rem;
  color: #fff;
}

#about h2 {
  font-size: 2.2rem;
  margin-bottom: 2rem;
  text-align: center;
  background: linear-gradient(90deg, #ff512f, #dd2476);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
}

/* ====== TECNOLOGÍAS EN HORIZONTAL ====== */
.skills-grid {
  display: flex;
  gap: 1rem;
  overflow-x: auto;
  padding-bottom: 0.5rem;
  scrollbar-width: thin;              /* Firefox */
  scrollbar-color: #ff6b6b transparent;
}

.skills-grid::-webkit-scrollbar {
  height: 6px;
}

.skills-grid::-webkit-scrollbar-track {
  background: transparent;
}

.skills-grid::-webkit-scrollbar-thumb {
  background: linear-gradient(90deg, #ff512f, #dd2476);
  border-radius: 10px;
}

/* ====== SKILL PILL (CÁPSULAS) ====== */
.skill-pill {
  flex: 0 0 auto; /* Evita que se reduzcan */
  display: flex;
  align-items: center;
  gap: 0.6rem;
  background: rgba(255, 255, 255, 0.08);
  border-radius: 50px;
  padding: 0.6rem 1.2rem;
  font-size: 0.95rem;
  transition: all 0.3s ease;
}

.skill-pill:hover {
  background: rgba(255, 255, 255, 0.15);
  transform: scale(1.05);
}
/* Fondo interactivo de partículas */
#particles-bg {
  position: fixed;
  left: 0;
  top: 0;
  width: 100vw;
  height: 100vh;
  z-index: 0;
  pointer-events: none; /* Permite clicks sobre el contenido */
  background: linear-gradient(135deg, #0f0c29 0%, #302b63 50%, #24243e 100%);
}

/* Respect user preference for reduced motion */
@media (prefers-reduced-motion: reduce) {
    * {
        animation-duration: 0.001ms !important;
        animation-iteration-count: 1 !important;
        transition-duration: 0.001ms !important;
        scroll-behavior: auto !important;
    }
    #particles, #particles-bg, canvas#particles-bg {
        display: none !important;
        visibility: hidden !important;
    }
}