body {
    font-family: 'Space Grotesk', sans-serif;
    background-color: #0d0d0d;
    color: #e5e7eb;
}

h1,
h2,
h3,
h4,
h5,
h6 {
    font-family: 'Outfit', sans-serif;
}

.scroll-smooth {
    scroll-behavior: smooth;
}

/* Floating Animation */
@keyframes float {

    0%,
    100% {
        transform: translateY(0px) rotate(0deg);
    }

    50% {
        transform: translateY(-15px) rotate(3deg);
    }
}

@keyframes float-reverse {

    0%,
    100% {
        transform: translateY(0px) rotate(0deg);
    }

    50% {
        transform: translateY(15px) rotate(-3deg);
    }
}

@keyframes spin-slow {
    from {
        transform: rotate(0deg);
    }

    to {
        transform: rotate(360deg);
    }
}

.animate-float {
    animation: float 6s ease-in-out infinite;
}

.animate-float-reverse {
    animation: float-reverse 5s ease-in-out infinite;
}

.animate-float-delay {
    animation: float 7s ease-in-out infinite;
    animation-delay: 1s;
}

.animate-spin-slow {
    animation: spin-slow 20s linear infinite;
}

/* Glow Effects */
.glow-lime {
    box-shadow: 0 0 20px rgba(200, 255, 0, 0.3);
}

.glow-violet {
    box-shadow: 0 0 20px rgba(139, 92, 246, 0.3);
}

/* Text Gradient */
.text-gradient-lime {
    background: linear-gradient(135deg, #c8ff00 0%, #00ff88 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.text-gradient-violet {
    background: linear-gradient(135deg, #a78bfa 0%, #ec4899 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

/* Hide scrollbar */
.scrollbar-hide::-webkit-scrollbar {
    display: none;
}

.scrollbar-hide {
    -ms-overflow-style: none;
    scrollbar-width: none;
}

/* Tech Badge Style */
.tech-badge {
    background: linear-gradient(135deg, #2a2a2a 0%, #1a1a1a 100%);
    border: 1px solid #3a3a3a;
}

/* Handwritten Style */
.handwritten {
    font-family: 'Caveat', cursive;
    font-weight: 600;
    color: #3b82f6;
}

/* Software Icon Card */
.software-card {
    background: white;
    border-radius: 12px;
    padding: 16px;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
    transition: transform 0.2s, box-shadow 0.2s;
}

.software-card:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
}

/* Arrow SVG */
.arrow-path {
    stroke: #3b82f6;
    stroke-width: 2;
    fill: none;
    stroke-linecap: round;
    stroke-linejoin: round;
}

/* Premium Loading Animation - Updated Theme */
.page-loader {
    position: fixed;
    inset: 0;
    background: #050505;
    z-index: 999999;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    transition: opacity 0.8s cubic-bezier(0.16, 1, 0.3, 1), visibility 0.8s, transform 0.8s cubic-bezier(0.16, 1, 0.3, 1);
}

.page-loader.hidden {
    opacity: 0;
    visibility: hidden;
}

.loader-orbit-container {
    position: relative;
    width: 100px;
    height: 100px;
    margin-bottom: 2rem;
}

.loader-orbit-path {
    position: absolute;
    inset: 0;
    border: 1px solid rgba(200, 255, 0, 0.15);
    border-radius: 50%;
}

.loader-center-dot {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 14px;
    height: 14px;
    background: #c8ff00;
    border-radius: 50%;
    box-shadow: 0 0 25px rgba(200, 255, 0, 0.8);
}

.loader-orbiting-dot {
    position: absolute;
    top: 50%;
    left: 50%;
    width: 6px;
    height: 6px;
    background: #c8ff00;
    border-radius: 50%;
    box-shadow: 0 0 15px rgba(200, 255, 0, 0.8);
    animation: orbit 3s linear infinite;
}

@keyframes orbit {
    from { transform: translate(-50%, -50%) rotate(0deg) translateY(-50px); }
    to { transform: translate(-50%, -50%) rotate(360deg) translateY(-50px); }
}

@keyframes loader-fill {
    0% { transform: scaleX(0); }
    40% { transform: scaleX(0.7); }
    100% { transform: scaleX(1); }
}
.animate-loader-fill {
    animation: loader-fill 4s cubic-bezier(0.4, 0, 0.2, 1) forwards;
}


/* Scroll Animations */
.animate-on-scroll {
    opacity: 0;
    transform: translateY(30px);
    transition: opacity 0.6s ease-out, transform 0.6s ease-out;
}

.animate-on-scroll.visible {
    opacity: 1;
    transform: translateY(0);
}

@keyframes fadeIn {
    from {
        opacity: 0;
        transform: translateY(30px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.animate-fade-in {
    opacity: 0;
    animation: fadeIn 0.8s cubic-bezier(0.16, 1, 0.3, 1) forwards;
}

/* Noise Texture */
.bg-noise {
    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");
}

/* Light Mode Styles Removed */

/* ===== CUSTOM CURSOR ===== */
.cursor-dot {
    width: 8px;
    height: 8px;
    background: #c8ff00;
    border-radius: 50%;
    position: fixed;
    pointer-events: none;
    z-index: 99999;
    transition: transform 0.1s;
    mix-blend-mode: difference;
}

.cursor-ring {
    width: 40px;
    height: 40px;
    border: 2px solid rgba(200, 255, 0, 0.5);
    border-radius: 50%;
    position: fixed;
    pointer-events: none;
    z-index: 99998;
    transition: transform 0.15s ease-out, width 0.3s, height 0.3s, border-color 0.3s;
    transform: translate(-50%, -50%);
}

.cursor-ring.hover {
    width: 60px;
    height: 60px;
    border-color: rgba(167, 139, 250, 0.6);
}

@media (max-width: 768px) {

    .cursor-dot,
    .cursor-ring {
        display: none;
    }
}

/* ===== HERO TEXT ANIMATION ===== */
.hero-word {
    display: inline-block;
    opacity: 0;
    transform: translateY(40px);
    animation: wordReveal 0.6s cubic-bezier(0.16, 1, 0.3, 1) forwards;
}

@keyframes wordReveal {
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* ===== HERO PARTICLES ===== */
.particle {
    position: absolute;
    width: 4px;
    height: 4px;
    background: rgba(200, 255, 0, 0.3);
    border-radius: 50%;
    pointer-events: none;
    animation: particleDrift linear infinite;
}

@keyframes particleDrift {
    0% {
        transform: translateY(0) translateX(0);
        opacity: 0;
    }

    10% {
        opacity: 1;
    }

    90% {
        opacity: 1;
    }

    100% {
        transform: translateY(-100vh) translateX(50px);
        opacity: 0;
    }
}

/* ===== 3D TILT CARDS ===== */
.tilt-card {
    transform-style: preserve-3d;
    transition: transform 0.1s ease-out;
}

.tilt-card .tilt-inner {
    transform: translateZ(30px);
}

/* ===== STAGGER ANIMATION ===== */
.stagger-item {
    opacity: 0;
    transform: translateY(20px) scale(0.9);
    transition: opacity 0.4s ease-out, transform 0.4s ease-out;
}

.stagger-item.visible {
    opacity: 1;
    transform: translateY(0) scale(1);
}

/* ===== BACK TO TOP ===== */
.back-to-top {
    position: fixed;
    bottom: 2rem;
    right: 2rem;
    width: 48px;
    height: 48px;
    background: linear-gradient(135deg, #c8ff00, #a78bfa);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    z-index: 9990;
    opacity: 0;
    transform: translateY(20px);
    transition: opacity 0.3s, transform 0.3s;
    box-shadow: 0 4px 15px rgba(200, 255, 0, 0.3);
}

.back-to-top.show {
    opacity: 1;
    transform: translateY(0);
}

.back-to-top:hover {
    transform: translateY(-4px);
    box-shadow: 0 8px 25px rgba(200, 255, 0, 0.5);
}

/* ===== MOBILE MENU ===== */
.mobile-menu-overlay {
    position: fixed;
    inset: 0;
    background: rgba(13, 13, 13, 0.95);
    backdrop-filter: blur(20px);
    z-index: 9998;
    opacity: 0;
    visibility: hidden;
    transition: opacity 0.3s, visibility 0.3s;
}

.mobile-menu-overlay.open {
    opacity: 1;
    visibility: visible;
}

.mobile-menu-overlay nav a {
    display: block;
    font-size: 1.5rem;
    font-weight: 700;
    color: #9ca3af;
    padding: 0.75rem 0;
    transition: color 0.2s, transform 0.2s;
    font-family: 'Outfit', sans-serif;
}

.mobile-menu-overlay nav a:hover {
    color: #c8ff00;
    transform: translateX(10px);
}

/* ===== STATS COUNTER ===== */
.stat-number {
    font-variant-numeric: tabular-nums;
}

/* ===== SECTION WAVE DIVIDER ===== */
.wave-divider {
    position: relative;
    margin-top: -1px;
}

.wave-divider svg {
    display: block;
    width: 100%;
    height: auto;
}

/* ===== MAGNETIC BUTTON ===== */
.magnetic-btn {
    transition: transform 0.2s ease-out;
}

/* ===== NAV ACTIVE ===== */
.nav-link.active {
    background: white;
    color: #0d0d0d;
}

/* ===== TYPED TEXT ===== */
@keyframes typedPulse {

    0%,
    100% {
        opacity: 1;
        transform: scale(1);
    }

    50% {
        opacity: 0.4;
        transform: scale(0.7);
    }
}

@keyframes blink {

    0%,
    100% {
        opacity: 1;
    }

    50% {
        opacity: 0;
    }
}

/* ===== SHIMMER TEXT ANIMATION ===== */
@keyframes shimmer {
    0% { background-position: -200% center; }
    100% { background-position: 200% center; }
}
.text-shimmer {
    background: linear-gradient(90deg, #c8ff00 0%, #00ff88 25%, #a78bfa 55%, #ec4899 80%, #c8ff00 100%);
    background-size: 300%;
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    animation: shimmer 4s linear infinite;
}

/* ===== MARQUEE / TESTIMONIALS ===== */
@keyframes marquee {
    from { transform: translateX(0); }
    to { transform: translateX(-50%); }
}
.marquee-track {
    animation: marquee 32s linear infinite;
    display: flex;
    width: max-content;
    gap: 16px;
}
.marquee-track:hover { animation-play-state: paused; }

/* ===== TICKER STRIP ===== */
@keyframes ticker-scroll {
    from { transform: translateX(0); }
    to { transform: translateX(-50%); }
}
.ticker-track {
    animation: ticker-scroll 24s linear infinite;
    display: flex;
    width: max-content;
    white-space: nowrap;
    align-items: center;
}

/* ===== BENTO GRID ===== */
.bento-card {
    background: linear-gradient(135deg, #151515 0%, #0d0d0d 100%);
    border: 1px solid rgba(255,255,255,0.06);
    border-radius: 24px;
    transition: all 0.4s cubic-bezier(0.16, 1, 0.3, 1);
    position: relative;
    overflow: hidden;
}
.bento-card::after {
    content: '';
    position: absolute;
    inset: 0;
    background: radial-gradient(circle at 50% 0%, rgba(200,255,0,0.04) 0%, transparent 60%);
    opacity: 0;
    transition: opacity 0.4s ease;
    border-radius: 24px;
    pointer-events: none;
}
.bento-card:hover::after { opacity: 1; }
.bento-card:hover {
    transform: translateY(-6px);
    box-shadow: 0 24px 60px rgba(0,0,0,0.5), 0 0 0 1px rgba(200,255,0,0.15);
    border-color: rgba(200,255,0,0.2);
}

/* ===== TESTIMONIAL CARD ===== */
.testimonial-card {
    background: linear-gradient(135deg, #151515 0%, #0f0f0f 100%);
    border: 1px solid rgba(255,255,255,0.07);
    border-radius: 20px;
    padding: 24px;
    min-width: 300px;
    max-width: 340px;
    flex-shrink: 0;
    transition: border-color 0.3s, transform 0.3s;
}
.testimonial-card:hover {
    border-color: rgba(200,255,0,0.2);
    transform: translateY(-4px);
}

/* ===== RADAR / SKILL BARS ===== */
.radar-wrap {
    background: linear-gradient(135deg, #0f0f0f 0%, #0a0a0a 100%);
    border: 1px solid rgba(255,255,255,0.06);
    border-radius: 24px;
    padding: 32px;
}
.skill-progress-bar {
    width: 0%;
    transition: width 1.2s cubic-bezier(0.16, 1, 0.3, 1);
}

/* ===== SCROLL DOWN INDICATOR ===== */
@keyframes scrollBounce {
    0%, 100% { transform: translateY(0) translateX(-50%); opacity: 0.5; }
    50% { transform: translateY(8px) translateX(-50%); opacity: 1; }
}
.scroll-indicator {
    animation: scrollBounce 1.8s ease-in-out infinite;
}

/* ===== MEMORIES MARQUEE ===== */
/* Horizontal scrolling logic moving exactly 1 block over time */
/* Div spans multiple exact blocks. E.g. Left row has 3 blocks total. It moves 33.33% to reset. */
@keyframes h-scroll-left {
    0% {
        transform: translate3d(0, 0, 0);
    }

    100% {
        transform: translate3d(-33.3333%, 0, 0);
    }
}

/* Right row has 3 blocks total. It starts off-center and moves backwards to 0 */
@keyframes h-scroll-right {
    0% {
        transform: translate3d(-33.3333%, 0, 0);
    }

    100% {
        transform: translate3d(0, 0, 0);
    }
}

.marquee-left {
    animation: h-scroll-left 45s linear infinite;
}

.marquee-right {
    animation: h-scroll-right 50s linear infinite;
}

/* Interactive paused state for better UX */
#memories:hover .marquee-row {
    animation-play-state: paused;
}

/* 3D lift & shadow effect for images */
.gallery-card:hover {
    transform: scale(1.05) translateY(-5px);
    box-shadow: 0 30px 60px -15px rgba(0, 0, 0, 0.8), 0 0 40px rgba(139, 92, 246, 0.4);
    z-index: 50;
}

/* ===== CURSOR SPOTLIGHT ===== */
#cursorSpotlight {
    position: fixed; pointer-events: none; z-index: 9999;
    width: 500px; height: 500px;
    border-radius: 50%;
    background: radial-gradient(circle, rgba(200,255,0,0.07) 0%, rgba(167,139,250,0.04) 40%, transparent 70%);
    transform: translate(-50%, -50%);
    transition: opacity 0.3s ease;
    top: 0; left: 0;
}

/* ===== AI CHAT ===== */
#aiChatBox { transition: all 0.4s cubic-bezier(0.16,1,0.3,1); transform-origin: bottom right; }
#aiChatBox.hidden { transform: scale(0.8) translateY(20px); opacity: 0; pointer-events: none; }
.chat-bubble-bot { background: #1a1a1a; border: 1px solid #2a2a2a; border-radius: 1rem 1rem 1rem 0; }
.chat-bubble-user { background: linear-gradient(135deg, #c8ff00, #a78bfa); border-radius: 1rem 1rem 0 1rem; color: #0d0d0d; }
#chatMessages::-webkit-scrollbar { width: 4px; }
#chatMessages::-webkit-scrollbar-track { background: transparent; }
#chatMessages::-webkit-scrollbar-thumb { background: #2a2a2a; border-radius: 2px; }

/* ===== MUSIC TOGGLE ===== */
@keyframes vinyl-spin { from { transform: rotate(0deg); } to { transform: rotate(360deg); } }
.vinyl-playing { animation: vinyl-spin 3s linear infinite; }
@keyframes sound-bar { 0%,100%{height:4px} 50%{height:14px} }
.sound-bar { animation: sound-bar 0.8s ease-in-out infinite; }
.sound-bar:nth-child(2) { animation-delay: 0.15s; }
.sound-bar:nth-child(3) { animation-delay: 0.3s; }
#playlistContainer::-webkit-scrollbar { width: 4px; }
#playlistContainer::-webkit-scrollbar-track { background: transparent; }
#playlistContainer::-webkit-scrollbar-thumb { background: #3f3f46; border-radius: 2px; }

/* ===== EASTER EGG ===== */
@keyframes matrixFall { from{top:-40px;opacity:0} 30%{opacity:1} to{top:105vh;opacity:0} }
.matrix-char { position:fixed; font-family:monospace; color:#c8ff00; font-size:1.1rem;
    animation: matrixFall linear forwards; pointer-events:none; z-index:99999; }
#easterEggOverlay { transition: opacity 0.5s; }

/* ===== TIMELINE ===== */
.timeline-item { opacity: 0; transform: translateX(-30px); transition: all 0.6s ease; }
.timeline-item.visible { opacity: 1; transform: translateX(0); }
.timeline-dot::after { content:''; position:absolute; top:50%; left:50%; transform:translate(-50%,-50%);
    width:200%; height:200%; border-radius:50%; border:2px solid currentColor; opacity:0.3;
    animation: ping 1.5s ease-out infinite; }

/* ===== PARTICLE NETWORK (Skills) ===== */
#skillsNetworkCanvas { position:absolute; inset:0; pointer-events:none; opacity:0;
    transition: opacity 1s ease; }
#skillsNetworkCanvas.visible { opacity: 1; }

/* ===== CURRENTLY LEARNING CARD ===== */
@keyframes shimmer-lr {
    0% { background-position: -200% center; }
    100% { background-position: 200% center; }
}
.learning-shimmer {
    background: linear-gradient(90deg, transparent 0%, rgba(200,255,0,0.15) 50%, transparent 100%);
    background-size: 200% auto;
    animation: shimmer-lr 2.5s linear infinite;
}

