:root {
    --bg-primary: #0a0a0a;
    --bg-secondary: #111111;
    --text-primary: #ffffff;
    --text-secondary: #a0a0a0;
    --accent: #ffffff;
    --accent-dim: #666666;
    --spacing: 2rem;

    /* 🎄 CHRISTMAS LIQUID GLASS COLORS! ✨ */
    --christmas-red: #d42426;
    --christmas-green: #2d5d3f;
    --christmas-gold: #d4af37;
    --christmas-white: #f0f8ff;
    --christmas-silver: #c0c0c0;
    --christmas-emerald: #50c878;
    --christmas-crimson: #8b0000;
    --christmas-mint: #98ff98;

    /* Jolly gradient colors */
    --gradient-color-1: rgba(212, 36, 38, 0.3);
    --gradient-color-2: rgba(45, 93, 63, 0.3);
}

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

html {
    scroll-behavior: smooth;
}

body {
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Oxygen, Ubuntu, Cantarell, sans-serif;
    background-color: var(--bg-primary);
    color: var(--text-primary);
    line-height: 1.6;
    overflow-x: hidden;
}

/* Subtle grain overlay */
.grain-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-image: url("data:image/svg+xml,%3Csvg viewBox='0 0 400 400' xmlns='http://www.w3.org/2000/svg'%3E%3Cfilter id='noiseFilter'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.9' numOctaves='3' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23noiseFilter)'/%3E%3C/svg%3E");
    opacity: 0.03;
    pointer-events: none;
    z-index: 100;
}

/* 🎄 CHRISTMAS LIQUID GLASS BACKGROUND ENGINE! ✨ */
.gradient-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background:
        radial-gradient(circle at 15% 20%, var(--christmas-red) 0%, transparent 35%),
        radial-gradient(circle at 85% 80%, var(--christmas-green) 0%, transparent 40%),
        radial-gradient(circle at 50% 50%, var(--christmas-gold) 0%, transparent 30%),
        radial-gradient(circle at 70% 30%, var(--christmas-emerald) 0%, transparent 35%),
        radial-gradient(circle at 30% 70%, var(--christmas-crimson) 0%, transparent 33%),
        radial-gradient(circle at 90% 40%, var(--christmas-mint) 0%, transparent 37%);
    background-size: 200% 200%;
    animation: liquidGlassFlow 15s ease-in-out infinite;
    filter: blur(80px);
    pointer-events: none;
    z-index: 1;
    opacity: 0.9;
}

/* Christmas Firefly Wisps */
#fireflies {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    pointer-events: none;
    z-index: 1;
}

.firefly {
    position: absolute;
    border-radius: 50%;
    pointer-events: none;
    mix-blend-mode: screen;
    will-change: transform, opacity;
}

/* Firefly Float Animations */
@keyframes fireflyFloat1 {
    0%, 100% { transform: translate(0, 0) scale(1); opacity: 0.3; }
    25% { transform: translate(30px, -40px) scale(1.2); opacity: 0.8; }
    50% { transform: translate(-20px, -80px) scale(0.9); opacity: 0.5; }
    75% { transform: translate(40px, -60px) scale(1.1); opacity: 0.7; }
}

@keyframes fireflyFloat2 {
    0%, 100% { transform: translate(0, 0) scale(1); opacity: 0.4; }
    33% { transform: translate(-50px, 60px) scale(0.8); opacity: 0.7; }
    66% { transform: translate(60px, -30px) scale(1.3); opacity: 0.9; }
}

@keyframes fireflyFloat3 {
    0%, 100% { transform: translate(0, 0) scale(1); opacity: 0.5; }
    40% { transform: translate(70px, 50px) scale(1.1); opacity: 0.6; }
    80% { transform: translate(-40px, -70px) scale(0.95); opacity: 0.8; }
}

@keyframes fireflyFloat4 {
    0%, 100% { transform: translate(0, 0) scale(1); opacity: 0.3; }
    30% { transform: translate(-60px, -50px) scale(1.2); opacity: 0.9; }
    70% { transform: translate(50px, 80px) scale(0.85); opacity: 0.6; }
}

@keyframes liquidGlassFlow {
    0% {
        background-position: 0% 0%, 100% 100%, 50% 50%, 75% 25%, 25% 75%, 85% 45%;
        filter: blur(80px) hue-rotate(0deg);
    }
    25% {
        background-position: 100% 50%, 0% 50%, 25% 75%, 50% 50%, 75% 25%, 40% 90%;
        filter: blur(100px) hue-rotate(15deg);
    }
    50% {
        background-position: 50% 100%, 50% 0%, 75% 25%, 25% 75%, 50% 50%, 90% 10%;
        filter: blur(120px) hue-rotate(0deg);
    }
    75% {
        background-position: 0% 50%, 100% 50%, 50% 50%, 75% 75%, 25% 25%, 10% 60%;
        filter: blur(100px) hue-rotate(-15deg);
    }
    100% {
        background-position: 0% 0%, 100% 100%, 50% 50%, 75% 25%, 25% 75%, 85% 45%;
        filter: blur(80px) hue-rotate(0deg);
    }
}

/* Header - Frosted Glass */
.header {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    z-index: 50;
    padding: 2rem 4rem;
    background: rgba(0, 0, 0, 0.15);
    backdrop-filter: blur(15px) saturate(150%);
    -webkit-backdrop-filter: blur(15px) saturate(150%);
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
    box-shadow: 0 8px 32px 0 rgba(0, 0, 0, 0.3);
}

.nav {
    display: flex;
    justify-content: space-between;
    align-items: center;
    max-width: 1400px;
    margin: 0 auto;
    position: relative;
    z-index: 51;
}

.logo {
    font-size: 1.5rem;
    font-weight: 300;
    letter-spacing: 0.2em;
}

.nav-links {
    display: flex;
    gap: 3rem;
    list-style: none;
}

.nav-link {
    color: var(--text-secondary);
    text-decoration: none;
    font-size: 0.9rem;
    letter-spacing: 0.1em;
    text-transform: uppercase;
    transition: color 0.6s ease;
    position: relative;
}

.nav-link::after {
    content: '';
    position: absolute;
    bottom: -5px;
    left: 0;
    width: 0;
    height: 1px;
    background: var(--text-primary);
    transition: width 0.6s ease;
}

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

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

/* Hero Section */
.hero {
    min-height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    position: relative;
    padding: 0 4rem;
    z-index: 2;
}

.hero-content {
    text-align: center;
    position: relative;
    z-index: 3;
}

.hero-title {
    font-size: clamp(3rem, 10vw, 8rem);
    font-weight: 300;
    line-height: 1.1;
    letter-spacing: -0.02em;
    margin-bottom: 2rem;
}

.hero-title .line {
    display: block;
    opacity: 0;
    transform: translateY(50px);
    animation: fadeInUp 1.2s ease forwards;
}

.hero-title .line:nth-child(2) {
    animation-delay: 0.2s;
}

.hero-subtitle {
    font-size: 1.2rem;
    color: var(--text-secondary);
    letter-spacing: 0.3em;
    text-transform: uppercase;
    font-weight: 300;
    opacity: 0;
    animation: fadeIn 1.2s ease forwards 0.6s;
}

.scroll-indicator {
    position: absolute;
    bottom: 3rem;
    left: 50%;
    transform: translateX(-50%);
}

.scroll-line {
    width: 1px;
    height: 60px;
    background: linear-gradient(to bottom, transparent, var(--accent-dim), transparent);
    animation: scrollPulse 2s ease-in-out infinite;
}

/* Sections */
.section {
    min-height: 100vh;
    display: flex;
    align-items: center;
    padding: 6rem 4rem;
    position: relative;
    z-index: 2;
}

.container {
    max-width: 1200px;
    margin: 0 auto;
    width: 100%;
}

.section-title {
    font-size: clamp(2rem, 5vw, 3.5rem);
    font-weight: 300;
    margin-bottom: 3rem;
    letter-spacing: -0.02em;
    opacity: 0;
    transform: translateY(30px);
    transition: opacity 1s ease, transform 1s ease;
}

.section-title.visible {
    opacity: 1;
    transform: translateY(0);
}

/* About Section */
.about-text {
    font-size: 1.5rem;
    line-height: 1.8;
    color: var(--text-secondary);
    max-width: 800px;
    font-weight: 300;
    opacity: 0;
    transform: translateY(30px);
    transition: opacity 1s ease 0.2s, transform 1s ease 0.2s;
}

.about-text.visible {
    opacity: 1;
    transform: translateY(0);
}

/* Skills Section */
.skills-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 3rem;
    margin-top: 4rem;
}

.skill-card {
    padding: 3rem 2rem;
    border: 2px solid rgba(255, 255, 255, 0.15);
    background: rgba(0, 0, 0, 0.25);
    backdrop-filter: blur(15px) saturate(150%);
    -webkit-backdrop-filter: blur(15px) saturate(150%);
    border-radius: 20px;
    position: relative;
    transition: all 0.8s cubic-bezier(0.23, 1, 0.32, 1);
    opacity: 0;
    transform: translateY(40px);
    box-shadow:
        0 8px 32px 0 rgba(0, 0, 0, 0.37),
        inset 0 0 40px rgba(255, 255, 255, 0.08);
}

.skill-card::before {
    content: '';
    position: absolute;
    top: -2px;
    left: -2px;
    right: -2px;
    bottom: -2px;
    background: linear-gradient(
        135deg,
        var(--christmas-red),
        var(--christmas-gold),
        var(--christmas-emerald),
        var(--christmas-silver),
        var(--christmas-mint),
        var(--christmas-crimson),
        var(--christmas-red)
    );
    background-size: 400% 400%;
    border-radius: 20px;
    z-index: -1;
    opacity: 0.4;
    animation: christmasBorderFlow 8s linear infinite;
    filter: blur(8px);
}

@keyframes christmasBorderFlow {
    0% {
        background-position: 0% 50%;
    }
    50% {
        background-position: 100% 50%;
    }
    100% {
        background-position: 0% 50%;
    }
}

.skill-card.visible {
    opacity: 1;
    transform: translateY(0);
}

.skill-card:hover {
    background: rgba(0, 0, 0, 0.35);
    backdrop-filter: blur(20px) saturate(180%);
    transform: translateY(-15px) scale(1.05);
    box-shadow:
        0 15px 50px 0 rgba(212, 36, 38, 0.4),
        0 0 60px rgba(212, 175, 55, 0.3),
        inset 0 0 60px rgba(255, 255, 255, 0.12);
}

.skill-card:hover::before {
    opacity: 0.8;
    animation: christmasBorderFlow 3s linear infinite;
    filter: blur(12px);
}

.skill-icon {
    width: 48px;
    height: 48px;
    margin-bottom: 1.5rem;
    color: var(--text-primary);
    opacity: 0.7;
    transition: opacity 0.8s ease;
}

.skill-card:hover .skill-icon {
    opacity: 1;
}

.skill-card h3 {
    font-size: 1.3rem;
    font-weight: 400;
    margin-bottom: 1rem;
    letter-spacing: 0.05em;
}

.skill-card p {
    color: var(--text-secondary);
    font-size: 0.95rem;
    line-height: 1.7;
    font-weight: 300;
}

/* Contact Section */
.contact-section {
    text-align: center;
}

.contact-text {
    font-size: 1.3rem;
    color: var(--text-secondary);
    margin-bottom: 3rem;
    font-weight: 300;
}

.contact-button {
    display: inline-block;
    padding: 1.2rem 3rem;
    border: 2px solid rgba(255, 255, 255, 0.2);
    color: var(--text-primary);
    text-decoration: none;
    font-size: 0.9rem;
    letter-spacing: 0.2em;
    text-transform: uppercase;
    transition: all 0.6s cubic-bezier(0.23, 1, 0.32, 1);
    position: relative;
    overflow: hidden;
    background: rgba(0, 0, 0, 0.2);
    backdrop-filter: blur(12px) saturate(150%);
    -webkit-backdrop-filter: blur(12px) saturate(150%);
    border-radius: 50px;
    box-shadow:
        0 8px 32px 0 rgba(0, 0, 0, 0.37),
        inset 0 0 30px rgba(255, 255, 255, 0.08);
}

.contact-button::before {
    content: '';
    position: absolute;
    top: -3px;
    left: -3px;
    right: -3px;
    bottom: -3px;
    background: linear-gradient(
        135deg,
        var(--christmas-red),
        var(--christmas-gold),
        var(--christmas-emerald),
        var(--christmas-silver),
        var(--christmas-mint),
        var(--christmas-red)
    );
    background-size: 300% 300%;
    border-radius: 50px;
    z-index: -1;
    animation: christmasBorderFlow 6s linear infinite;
    filter: blur(10px);
    opacity: 0.5;
}

.contact-button::after {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(
        90deg,
        rgba(212, 36, 38, 0.4),
        rgba(212, 175, 55, 0.4),
        rgba(80, 200, 120, 0.4)
    );
    transition: left 0.6s cubic-bezier(0.23, 1, 0.32, 1);
    z-index: -1;
    backdrop-filter: blur(20px);
}

.contact-button:hover {
    color: var(--text-primary);
    transform: scale(1.15) translateY(-5px);
    background: rgba(0, 0, 0, 0.3);
    backdrop-filter: blur(18px) saturate(180%);
    box-shadow:
        0 0 40px rgba(212, 36, 38, 0.6),
        0 0 80px rgba(212, 175, 55, 0.4),
        0 15px 50px rgba(0, 0, 0, 0.5),
        inset 0 0 50px rgba(255, 255, 255, 0.15);
}

.contact-button:hover::before {
    animation: christmasBorderFlow 2s linear infinite;
    opacity: 1;
    filter: blur(15px);
}

.contact-button:hover::after {
    left: 0;
}

/* Footer */
.footer {
    padding: 3rem 4rem;
    text-align: center;
    color: var(--text-secondary);
    font-size: 0.85rem;
    letter-spacing: 0.1em;
    border-top: 1px solid rgba(255, 255, 255, 0.05);
    position: relative;
    z-index: 2;
}

/* Animations */
@keyframes fadeInUp {
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

@keyframes fadeIn {
    to {
        opacity: 1;
    }
}

@keyframes scrollPulse {
    0%, 100% {
        opacity: 0.3;
        transform: scaleY(1);
    }
    50% {
        opacity: 1;
        transform: scaleY(1.2);
    }
}

/* Responsive */
@media (max-width: 768px) {
    .header {
        padding: 1.5rem 2rem;
    }

    .nav-links {
        gap: 1.5rem;
    }

    .nav-link {
        font-size: 0.8rem;
    }

    .hero,
    .section {
        padding: 4rem 2rem;
    }

    .skills-grid {
        grid-template-columns: 1fr;
        gap: 2rem;
    }

    .hero-title {
        font-size: clamp(2.5rem, 8vw, 5rem);
    }

    .hero-subtitle {
        font-size: 0.9rem;
    }
}

.fade-in {
    animation: fadeIn 1s ease forwards;
}

/* 🎉 CONGA LINE BOUNCING LETTERS! 🎉 */
.conga-text {
    display: inline-block;
}

.conga-letter {
    display: inline-block;
    animation: congaBounce 0.8s ease-in-out infinite;
    background: linear-gradient(
        45deg,
        var(--christmas-red),
        var(--christmas-gold),
        var(--christmas-white),
        var(--christmas-emerald),
        var(--christmas-silver),
        var(--christmas-mint),
        var(--christmas-red)
    );
    background-size: 400% 400%;
    -webkit-background-clip: text;
    background-clip: text;
    -webkit-text-fill-color: transparent;
    animation: congaBounce 0.8s ease-in-out infinite, christmasShimmer 4s linear infinite;
    text-shadow: 0 0 20px rgba(212, 175, 55, 0.5);
}

@keyframes congaBounce {
    0%, 100% {
        transform: translateY(0) rotate(0deg) scale(1);
    }
    25% {
        transform: translateY(-15px) rotate(-5deg) scale(1.1);
    }
    50% {
        transform: translateY(-5px) rotate(3deg) scale(0.95);
    }
    75% {
        transform: translateY(-20px) rotate(-3deg) scale(1.05);
    }
}

@keyframes christmasShimmer {
    0% {
        background-position: 0% 50%;
    }
    50% {
        background-position: 100% 50%;
    }
    100% {
        background-position: 0% 50%;
    }
}

/* Stagger each letter in the conga line */
.conga-letter:nth-child(1) { animation-delay: 0s, 0s; }
.conga-letter:nth-child(2) { animation-delay: 0.1s, 0.2s; }
.conga-letter:nth-child(3) { animation-delay: 0.2s, 0.4s; }
.conga-letter:nth-child(4) { animation-delay: 0.3s, 0.6s; }
.conga-letter:nth-child(5) { animation-delay: 0.4s, 0.8s; }
.conga-letter:nth-child(6) { animation-delay: 0.5s, 1s; }
.conga-letter:nth-child(7) { animation-delay: 0.6s, 1.2s; }
.conga-letter:nth-child(8) { animation-delay: 0.7s, 1.4s; }
.conga-letter:nth-child(9) { animation-delay: 0.8s, 1.6s; }
.conga-letter:nth-child(10) { animation-delay: 0.9s, 1.8s; }
.conga-letter:nth-child(11) { animation-delay: 1s, 2s; }
.conga-letter:nth-child(12) { animation-delay: 1.1s, 2.2s; }
.conga-letter:nth-child(13) { animation-delay: 1.2s, 2.4s; }
.conga-letter:nth-child(14) { animation-delay: 1.3s, 2.6s; }
.conga-letter:nth-child(15) { animation-delay: 1.4s, 2.8s; }

/* Christmas gradient text for section titles */
.rainbow-gradient {
    background: linear-gradient(
        90deg,
        var(--christmas-red) 0%,
        var(--christmas-gold) 14%,
        var(--christmas-white) 28%,
        var(--christmas-emerald) 42%,
        var(--christmas-silver) 56%,
        var(--christmas-mint) 70%,
        var(--christmas-crimson) 84%,
        var(--christmas-red) 100%
    );
    background-size: 200% auto;
    -webkit-background-clip: text;
    background-clip: text;
    -webkit-text-fill-color: transparent;
    animation: christmasGlow 5s linear infinite;
    filter: drop-shadow(0 0 15px rgba(212, 175, 55, 0.4));
}

@keyframes christmasGlow {
    0% {
        background-position: 0% center;
        filter: drop-shadow(0 0 15px rgba(212, 175, 55, 0.4));
    }
    50% {
        filter: drop-shadow(0 0 25px rgba(212, 36, 38, 0.6));
    }
    100% {
        background-position: 200% center;
        filter: drop-shadow(0 0 15px rgba(80, 200, 120, 0.4));
    }
}

