/* ═══════════════════════════════════════════════════════════
   BLAZE PORTFOLIO — MANGA NOIR AESTHETIC
   Black & White | Anime | Handcrafted
   ═══════════════════════════════════════════════════════════ */

/* ── CSS CUSTOM PROPERTIES ── */
:root {
    --bg-void: #000000;
    --bg-deep: #050505;
    --bg-primary: #0a0a0a;
    --bg-secondary: #0f0f0f;
    --bg-card: #111111;
    --bg-elevated: #161616;
    --bg-hover: #1a1a1a;

    --text-white: #ffffff;
    --text-primary: #e8e8e8;
    --text-secondary: #999999;
    --text-muted: #555555;
    --text-dim: #333333;

    --accent: #e63946;
    --accent-soft: rgba(230, 57, 70, 0.15);
    --accent-glow: rgba(230, 57, 70, 0.4);

    --border-subtle: rgba(255, 255, 255, 0.06);
    --border-light: rgba(255, 255, 255, 0.1);
    --border-medium: rgba(255, 255, 255, 0.15);

    --glass: rgba(255, 255, 255, 0.03);
    --glass-hover: rgba(255, 255, 255, 0.06);

    --font-heading: 'Space Grotesk', sans-serif;
    --font-body: 'Inter', sans-serif;
    --font-brand: 'Zen Dots', cursive;

    --ease-out-expo: cubic-bezier(0.16, 1, 0.3, 1);
    --ease-out-quart: cubic-bezier(0.25, 1, 0.5, 1);
    --ease-in-out: cubic-bezier(0.65, 0, 0.35, 1);

    --nav-height: 70px;
    --container-max: 1200px;
    --section-pad: 120px;
}

/* ── RESET & BASE ── */
*, *::before, *::after {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
    font-size: 16px;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
}

body {
    font-family: var(--font-body);
    background: var(--bg-void);
    color: var(--text-primary);
    overflow-x: hidden;
    cursor: none;
    line-height: 1.6;
}

@media (max-width: 768px) {
    body { cursor: auto; }
}

::selection {
    background: var(--accent);
    color: var(--text-white);
}

a {
    color: inherit;
    text-decoration: none;
}

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

.container {
    max-width: var(--container-max);
    margin: 0 auto;
    padding: 0 24px;
}

.section {
    position: relative;
    padding: var(--section-pad) 0;
    overflow: hidden;
}

/* ── LOADING SCREEN ── */
#loader {
    position: fixed;
    inset: 0;
    z-index: 10000;
    background: var(--bg-void);
    display: flex;
    align-items: center;
    justify-content: center;
    transition: opacity 0.6s var(--ease-out-expo), visibility 0.6s;
}

#loader.loaded {
    opacity: 0;
    visibility: hidden;
    pointer-events: none;
}

.loader-inner {
    text-align: center;
    position: relative;
}

.loader-manga-lines {
    position: absolute;
    inset: -200px;
    background: repeating-linear-gradient(
        90deg,
        transparent,
        transparent 40px,
        rgba(255,255,255,0.02) 40px,
        rgba(255,255,255,0.02) 41px
    );
    animation: mangaLinesDrift 8s linear infinite;
}

.loader-emblem {
    position: relative;
    width: 120px;
    height: 120px;
    margin: 0 auto 30px;
}

.loader-svg {
    width: 100%;
    height: 100%;
    animation: loaderSpin 3s linear infinite;
}

.loader-circle {
    fill: none;
    stroke: var(--border-subtle);
    stroke-width: 1;
    stroke-dasharray: 283;
    stroke-dashoffset: 283;
    animation: loaderCircleDraw 2s var(--ease-out-expo) forwards;
}

.loader-star {
    fill: none;
    stroke: var(--accent);
    stroke-width: 0.8;
    stroke-dasharray: 300;
    stroke-dashoffset: 300;
    animation: loaderStarDraw 2s var(--ease-out-expo) 0.3s forwards;
}

.loader-kanji {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    font-size: 32px;
    color: var(--accent);
    font-weight: 700;
    animation: loaderKanjiPulse 1.5s ease-in-out infinite;
}

.loader-text {
    font-family: var(--font-heading);
    font-size: 14px;
    letter-spacing: 12px;
    color: var(--text-muted);
    margin-bottom: 20px;
}

.loader-text span {
    display: inline-block;
    animation: loaderTextWave 1.4s ease-in-out infinite;
}

.loader-text span:nth-child(1) { animation-delay: 0s; }
.loader-text span:nth-child(2) { animation-delay: 0.05s; }
.loader-text span:nth-child(3) { animation-delay: 0.1s; }
.loader-text span:nth-child(4) { animation-delay: 0.15s; }
.loader-text span:nth-child(5) { animation-delay: 0.2s; }
.loader-text span:nth-child(6) { animation-delay: 0.25s; }
.loader-text span:nth-child(7) { animation-delay: 0.3s; }

.loader-bar {
    width: 200px;
    height: 2px;
    background: var(--border-subtle);
    margin: 0 auto;
    border-radius: 1px;
    overflow: hidden;
}

.loader-bar-fill {
    height: 100%;
    width: 0;
    background: var(--accent);
    animation: loaderBarFill 2.5s var(--ease-out-expo) forwards;
}

/* ── CUSTOM CURSOR ── */
.cursor-dot {
    position: fixed;
    top: 0;
    left: 0;
    width: 8px;
    height: 8px;
    background: var(--accent);
    border-radius: 50%;
    pointer-events: none;
    z-index: 9999;
    transform: translate(-50%, -50%);
    transition: width 0.2s, height 0.2s, background 0.2s;
    mix-blend-mode: difference;
}

.cursor-ring {
    position: fixed;
    top: 0;
    left: 0;
    width: 40px;
    height: 40px;
    border: 1.5px solid rgba(255,255,255,0.3);
    border-radius: 50%;
    pointer-events: none;
    z-index: 9998;
    transform: translate(-50%, -50%);
    transition: width 0.3s var(--ease-out-expo), height 0.3s var(--ease-out-expo), border-color 0.3s;
}

body.cursor-hover .cursor-dot {
    width: 12px;
    height: 12px;
    background: var(--text-white);
}

body.cursor-hover .cursor-ring {
    width: 55px;
    height: 55px;
    border-color: var(--accent);
}

@media (max-width: 768px) {
    .cursor-dot, .cursor-ring { display: none; }
}

/* ── NAVIGATION ── */
.navbar {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    height: var(--nav-height);
    z-index: 1000;
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 0 40px;
    transition: background 0.4s, backdrop-filter 0.4s, box-shadow 0.4s;
}

.navbar.scrolled {
    background: rgba(0, 0, 0, 0.8);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    box-shadow: 0 1px 0 var(--border-subtle);
}

.nav-brand {
    display: flex;
    align-items: center;
    gap: 10px;
    font-family: var(--font-brand);
    font-size: 20px;
    color: var(--text-white);
    letter-spacing: 2px;
    z-index: 1001;
}

.brand-kanji {
    color: var(--accent);
    font-size: 24px;
    font-family: serif;
    animation: kanjiPulse 3s ease-in-out infinite;
}

.nav-links {
    display: flex;
    list-style: none;
    gap: 40px;
}

.nav-links a {
    font-family: var(--font-heading);
    font-size: 13px;
    font-weight: 500;
    letter-spacing: 2px;
    text-transform: uppercase;
    color: var(--text-secondary);
    position: relative;
    padding: 8px 0;
    transition: color 0.3s;
}

.nav-links a::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 0;
    height: 1px;
    background: var(--accent);
    transition: width 0.4s var(--ease-out-expo);
}

.nav-links a:hover {
    color: var(--text-white);
}

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

/* Mobile Nav Toggle */
.nav-toggle {
    display: none;
    flex-direction: column;
    gap: 6px;
    background: none;
    border: none;
    cursor: pointer;
    padding: 8px;
    z-index: 1001;
}

.nav-toggle span {
    display: block;
    width: 24px;
    height: 2px;
    background: var(--text-white);
    transition: all 0.3s var(--ease-out-expo);
    transform-origin: center;
}

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

.nav-toggle.active span:nth-child(2) {
    opacity: 0;
    transform: scaleX(0);
}

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

/* ── HERO SECTION ── */
.hero {
    position: relative;
    min-height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: hidden;
    background: var(--bg-void);
}

.hero-particles {
    position: absolute;
    inset: 0;
    z-index: 1;
}

.hero-manga-overlay {
    position: absolute;
    inset: 0;
    z-index: 2;
    background:
        repeating-linear-gradient(
            0deg,
            transparent,
            transparent 2px,
            rgba(255,255,255,0.008) 2px,
            rgba(255,255,255,0.008) 4px
        );
    pointer-events: none;
}

.hero-character {
    position: absolute;
    right: 0;
    bottom: 0;
    width: 45vw; /* Responsive width */
    max-width: 650px;
    min-width: 300px;
    z-index: 2;
    opacity: 0.7;
    /* Vintage dark manga effect */
    filter: grayscale(0.7) sepia(0.3) contrast(1.3) brightness(0.55) hue-rotate(-10deg);
    /* Elliptical mask anchored at bottom-right, fading completely to transparent well before the top and left edges */
    mask-image: radial-gradient(ellipse at 100% 100%, rgba(0,0,0,1) 20%, transparent 75%);
    -webkit-mask-image: radial-gradient(ellipse at 100% 100%, rgba(0,0,0,1) 20%, transparent 75%);
    pointer-events: none;
}

.hero-char-img {
    width: 100%;
    height: auto;
}

.hero-content {
    position: relative;
    z-index: 5;
    text-align: left;
    max-width: var(--container-max);
    width: 100%;
    padding: 0 40px;
}

.hero-tag {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    font-family: var(--font-heading);
    font-size: 12px;
    letter-spacing: 4px;
    text-transform: uppercase;
    color: var(--text-secondary);
    margin-bottom: 24px;
    opacity: 0;
    transform: translateY(20px);
}

.tag-dot {
    width: 8px;
    height: 8px;
    background: var(--accent);
    border-radius: 50%;
    animation: dotPulse 2s ease-in-out infinite;
}

.hero-title {
    margin-bottom: 20px;
}

.title-line {
    display: block;
    overflow: hidden;
}

.title-word {
    display: inline-block;
    font-family: var(--font-brand);
    color: var(--text-white);
    opacity: 0;
    transform: translateY(100%);
}

.title-word.glitch {
    font-size: clamp(28px, 4vw, 42px);
    color: var(--accent);
    letter-spacing: 12px;
    font-family: serif;
}

.title-word.glitch-main {
    font-size: clamp(64px, 12vw, 160px);
    letter-spacing: 8px;
    line-height: 0.9;
    font-weight: 700;
    position: relative;
}

/* Clean Shimmer Effect — subtle, professional */
.glitch-main.active {
    animation: textShimmer 8s ease-in-out infinite;
    background: linear-gradient(
        90deg,
        var(--text-white) 0%,
        var(--text-white) 40%,
        rgba(255,255,255,0.5) 50%,
        var(--text-white) 60%,
        var(--text-white) 100%
    );
    background-size: 200% 100%;
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

/* Occasional very subtle micro-glitch */
.glitch-main.active::after {
    content: attr(data-text);
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    color: var(--text-white);
    opacity: 0;
    animation: microGlitch 6s ease-in-out infinite;
    clip-path: inset(40% 0 40% 0);
    pointer-events: none;
}

.hero-subtitle {
    font-family: var(--font-heading);
    font-size: clamp(14px, 2vw, 18px);
    color: var(--text-secondary);
    letter-spacing: 1px;
    min-height: 30px;
    margin-bottom: 40px;
}

.subtitle-cursor {
    animation: blink 1s step-end infinite;
    color: var(--accent);
}

.hero-cta {
    display: flex;
    gap: 16px;
    flex-wrap: wrap;
    opacity: 0;
    transform: translateY(20px);
}

/* Buttons */
.btn {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    font-family: var(--font-heading);
    font-size: 13px;
    font-weight: 600;
    letter-spacing: 1.5px;
    text-transform: uppercase;
    padding: 16px 32px;
    border: none;
    border-radius: 0;
    cursor: none;
    position: relative;
    overflow: hidden;
    transition: all 0.4s var(--ease-out-expo);
}

.btn-primary {
    background: var(--text-white);
    color: var(--bg-void);
}

.btn-primary:hover {
    background: var(--accent);
    color: var(--text-white);
    transform: translateY(-2px);
    box-shadow: 0 10px 40px var(--accent-glow);
}

.btn-outline {
    background: transparent;
    color: var(--text-white);
    border: 1px solid var(--border-medium);
}

.btn-outline:hover {
    border-color: var(--accent);
    color: var(--accent);
    transform: translateY(-2px);
}

/* Hero Scroll Indicator */
.hero-scroll-indicator {
    position: absolute;
    bottom: 40px;
    left: 50%;
    transform: translateX(-50%);
    z-index: 5;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 10px;
    opacity: 0;
}

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

.hero-scroll-indicator span {
    font-family: var(--font-heading);
    font-size: 10px;
    letter-spacing: 4px;
    color: var(--text-muted);
    writing-mode: vertical-lr;
}

/* Hero Waifu Float */
.hero-waifu-float {
    position: absolute;
    z-index: 4;
    pointer-events: none;
    opacity: 0;
}

.waifu-pos-1 {
    right: 2%;
    top: 12%;
    width: 100px;
}

.hero-waifu-float img {
    width: 100%;
    border-radius: 8px;
    border: 1px solid var(--border-subtle);
    filter: grayscale(1) contrast(1.2);
    opacity: 0.08;
    animation: floatWaifu 6s ease-in-out infinite;
}

/* ── SECTION COMMON STYLES ── */
.section-divider {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 80px;
    overflow: hidden;
    pointer-events: none;
}

.manga-speed-lines {
    position: absolute;
    inset: 0;
    background: repeating-linear-gradient(
        -45deg,
        transparent,
        transparent 10px,
        rgba(255,255,255,0.015) 10px,
        rgba(255,255,255,0.015) 11px
    );
}

.manga-speed-lines.reverse {
    background: repeating-linear-gradient(
        45deg,
        transparent,
        transparent 10px,
        rgba(255,255,255,0.015) 10px,
        rgba(255,255,255,0.015) 11px
    );
}

.section-header {
    margin-bottom: 80px;
    position: relative;
}

.section-number {
    display: block;
    font-family: var(--font-heading);
    font-size: 72px;
    font-weight: 700;
    color: var(--bg-elevated);
    line-height: 1;
    margin-bottom: -20px;
    opacity: 0;
    transform: translateY(30px);
}

.section-title {
    position: relative;
}

.title-jp {
    display: block;
    font-size: 14px;
    color: var(--accent);
    letter-spacing: 6px;
    font-weight: 400;
    margin-bottom: 8px;
    opacity: 0;
    transform: translateY(20px);
}

.title-en {
    display: block;
    font-family: var(--font-heading);
    font-size: clamp(32px, 5vw, 48px);
    font-weight: 700;
    color: var(--text-white);
    letter-spacing: 2px;
    opacity: 0;
    transform: translateY(20px);
}

.section-line {
    width: 0;
    height: 1px;
    background: linear-gradient(to right, var(--accent), transparent);
    margin-top: 20px;
}

/* ── ABOUT SECTION ── */
.about {
    background: var(--bg-deep);
}

.about-grid {
    display: grid;
    grid-template-columns: 1fr 1.2fr;
    gap: 80px;
    align-items: start;
    margin-bottom: 100px;
}

.about-image-frame {
    position: relative;
    opacity: 0;
    transform: scale(0.9);
}

.about-img {
    width: 100%;
    border-radius: 4px;
    filter: grayscale(1) contrast(1.1) brightness(0.9);
    transition: filter 0.5s ease-in-out;
}

.about-image-frame:hover .about-img {
    filter: grayscale(0) contrast(1) brightness(1);
}

.frame-corner {
    position: absolute;
    width: 20px;
    height: 20px;
    border-color: var(--accent);
    border-style: solid;
    border-width: 0;
}

.frame-corner.tl { top: -8px; left: -8px; border-top-width: 2px; border-left-width: 2px; }
.frame-corner.tr { top: -8px; right: -8px; border-top-width: 2px; border-right-width: 2px; }
.frame-corner.bl { bottom: -8px; left: -8px; border-bottom-width: 2px; border-left-width: 2px; }
.frame-corner.br { bottom: -8px; right: -8px; border-bottom-width: 2px; border-right-width: 2px; }

.about-status-badge {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    margin-top: 16px;
    padding: 8px 16px;
    background: var(--glass);
    border: 1px solid var(--border-subtle);
    font-size: 12px;
    color: var(--text-secondary);
    letter-spacing: 1px;
}

.status-dot {
    width: 8px;
    height: 8px;
    border-radius: 50%;
    background: var(--text-muted);
}

.status-dot.online {
    background: #22c55e;
    box-shadow: 0 0 8px rgba(34, 197, 94, 0.5);
    animation: dotPulse 2s ease-in-out infinite;
}

.about-intro {
    font-size: 20px;
    line-height: 1.8;
    color: var(--text-primary);
    margin-bottom: 20px;
}

.about-bio {
    font-size: 16px;
    line-height: 1.8;
    color: var(--text-secondary);
    margin-bottom: 16px;
}

.accent { color: var(--accent); }

/* Reveal text word by word */
.reveal-text-word .word {
    display: inline-block;
    opacity: 0;
    transform: translateY(15px);
    transition: opacity 0.5s var(--ease-out-expo), transform 0.5s var(--ease-out-expo);
}

.reveal-text-word.revealed .word {
    opacity: 1;
    transform: translateY(0);
}

/* Stats */
.about-stats {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 24px;
    margin-top: 40px;
    padding-top: 40px;
    border-top: 1px solid var(--border-subtle);
}

.stat-item {
    text-align: center;
    opacity: 0;
    transform: translateY(20px);
}

.stat-number {
    display: block;
    font-family: var(--font-heading);
    font-size: 36px;
    font-weight: 700;
    color: var(--text-white);
    line-height: 1;
    margin-bottom: 8px;
}

.stat-label {
    font-size: 11px;
    letter-spacing: 2px;
    text-transform: uppercase;
    color: var(--text-muted);
}

/* Timeline */
.timeline {
    margin-bottom: 80px;
}

.timeline-title, .skills-title {
    font-family: var(--font-heading);
    font-size: 20px;
    color: var(--text-white);
    margin-bottom: 40px;
    display: flex;
    align-items: center;
    gap: 12px;
    opacity: 0;
    transform: translateY(20px);
}

.timeline-title .title-jp,
.skills-title .title-jp {
    font-size: 14px;
    color: var(--accent);
    letter-spacing: 3px;
    margin-bottom: 0;
    display: inline;
    opacity: 1;
    transform: none;
}

.timeline-track {
    position: relative;
    padding-left: 40px;
}

.timeline-track::before {
    content: '';
    position: absolute;
    left: 0;
    top: 0;
    bottom: 0;
    width: 1px;
    background: linear-gradient(to bottom, var(--accent), var(--border-subtle));
}

.timeline-item {
    position: relative;
    padding-bottom: 40px;
    opacity: 0;
}

.timeline-item:last-child {
    padding-bottom: 0;
}

.timeline-marker {
    position: absolute;
    left: -44px;
    top: 4px;
    width: 9px;
    height: 9px;
    border-radius: 50%;
    background: var(--accent);
    box-shadow: 0 0 12px var(--accent-glow);
}

.timeline-date {
    display: block;
    font-family: var(--font-heading);
    font-size: 12px;
    letter-spacing: 2px;
    color: var(--accent);
    margin-bottom: 8px;
}

.timeline-content h4 {
    font-family: var(--font-heading);
    font-size: 18px;
    color: var(--text-white);
    margin-bottom: 8px;
}

.timeline-content p {
    font-size: 14px;
    color: var(--text-secondary);
    line-height: 1.7;
}

/* Skills */
.skills-grid {
    display: flex;
    flex-wrap: wrap;
    gap: 12px;
}

.skill-tag {
    padding: 10px 20px;
    background: var(--glass);
    border: 1px solid var(--border-subtle);
    font-family: var(--font-heading);
    font-size: 13px;
    color: var(--text-secondary);
    letter-spacing: 1px;
    transition: all 0.3s var(--ease-out-expo);
    opacity: 0;
    transform: translateY(15px);
}

.skill-tag:hover {
    border-color: var(--accent);
    color: var(--text-white);
    background: var(--accent-soft);
    transform: translateY(-2px);
}

/* Section Waifu */
.section-waifu {
    position: absolute;
    pointer-events: none;
    opacity: 0.04;
    filter: grayscale(1);
}

.about-waifu {
    bottom: 0;
    right: -5%;
    width: 350px;
}

.about-waifu img {
    width: 100%;
}

/* ── PROJECTS SECTION ── */
.projects {
    background: var(--bg-primary);
    position: relative;
    overflow: hidden;
}

.projects-showcase {
    display: flex;
    flex-direction: column;
    gap: 40px;
}

.project-card {
    position: relative;
    opacity: 0;
    transform: translateY(40px);
}

.project-card-inner {
    position: relative;
    padding: 48px;
    background: var(--bg-secondary);
    border: 1px solid var(--border-subtle);
    transition: all 0.5s var(--ease-out-expo);
    overflow: hidden;
}

.project-card-inner::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 3px;
    height: 0;
    background: var(--accent);
    transition: height 0.5s var(--ease-out-expo);
}

.project-card:hover .project-card-inner::before {
    height: 100%;
}

.project-card:hover .project-card-inner {
    border-color: var(--border-light);
    background: var(--bg-card);
    transform: translateX(8px);
}

.project-number {
    position: absolute;
    top: 20px;
    right: 30px;
    font-family: var(--font-heading);
    font-size: 64px;
    font-weight: 700;
    color: var(--bg-elevated);
    line-height: 1;
    transition: color 0.5s;
}

.project-card:hover .project-number {
    color: var(--accent-soft);
}

.project-status {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    font-family: var(--font-heading);
    font-size: 11px;
    letter-spacing: 2px;
    text-transform: uppercase;
    margin-bottom: 20px;
    padding: 6px 14px;
    border: 1px solid var(--border-subtle);
}

.project-status.active {
    color: #22c55e;
    border-color: rgba(34, 197, 94, 0.2);
}

.project-status.active .status-dot {
    background: #22c55e;
    animation: dotPulse 2s ease-in-out infinite;
}

.project-status.archived {
    color: var(--text-muted);
}

.project-status.archived .status-dot {
    background: var(--text-muted);
}

.project-name {
    font-family: var(--font-heading);
    font-size: clamp(24px, 3vw, 36px);
    font-weight: 700;
    color: var(--text-white);
    margin-bottom: 12px;
    display: flex;
    align-items: center;
    gap: 16px;
}

.name-jp {
    font-size: 14px;
    color: var(--accent);
    font-weight: 400;
    letter-spacing: 3px;
}

.project-desc {
    font-size: 15px;
    line-height: 1.7;
    color: var(--text-secondary);
    max-width: 600px;
    margin-bottom: 20px;
}

.project-tech {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    margin-bottom: 24px;
}

.project-tech span {
    padding: 5px 14px;
    font-family: var(--font-heading);
    font-size: 11px;
    letter-spacing: 1px;
    color: var(--text-muted);
    border: 1px solid var(--border-subtle);
    transition: all 0.3s;
}

.project-card:hover .project-tech span {
    border-color: var(--border-light);
    color: var(--text-secondary);
}

.project-link {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    font-family: var(--font-heading);
    font-size: 13px;
    letter-spacing: 2px;
    text-transform: uppercase;
    color: var(--text-secondary);
    padding: 10px 0;
    border-bottom: 1px solid transparent;
    transition: all 0.3s;
}

.project-link:hover {
    color: var(--accent);
    border-color: var(--accent);
}

.project-link.disabled {
    opacity: 0.4;
    pointer-events: none;
}

/* Projects Waifu Banner — positioned as subtle background */
.projects-waifu-banner {
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    height: 300px;
    opacity: 0.04;
    filter: grayscale(1) contrast(1.4);
    mask-image: linear-gradient(to top, rgba(0,0,0,0.6) 0%, transparent 100%);
    -webkit-mask-image: linear-gradient(to top, rgba(0,0,0,0.6) 0%, transparent 100%);
    pointer-events: none;
    overflow: hidden;
}

.projects-waifu-banner img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: center top;
}

/* Anime character accent on project cards */
.project-card-inner {
    background-size: cover;
    background-position: right center;
    background-repeat: no-repeat;
}

#project-alya .project-card-inner::after {
    content: '';
    position: absolute;
    top: 0;
    right: 0;
    bottom: 0;
    width: 40%;
    background: url('https://w.wallhaven.cc/full/jx/wallhaven-jxpl65.jpg') center/cover no-repeat;
    opacity: 0.06;
    filter: grayscale(1);
    mask-image: linear-gradient(to right, transparent, rgba(0,0,0,0.5));
    -webkit-mask-image: linear-gradient(to right, transparent, rgba(0,0,0,0.5));
    pointer-events: none;
}

#project-deurbans .project-card-inner::after {
    content: '';
    position: absolute;
    top: 0;
    right: 0;
    bottom: 0;
    width: 40%;
    background: url('https://w.wallhaven.cc/full/6k/wallhaven-6k3oyq.jpg') center/cover no-repeat;
    opacity: 0.06;
    filter: grayscale(1);
    mask-image: linear-gradient(to right, transparent, rgba(0,0,0,0.5));
    -webkit-mask-image: linear-gradient(to right, transparent, rgba(0,0,0,0.5));
    pointer-events: none;
}

#project-himalayan .project-card-inner::after {
    content: '';
    position: absolute;
    top: 0;
    right: 0;
    bottom: 0;
    width: 40%;
    background: url('https://w.wallhaven.cc/full/yx/wallhaven-yx3kok.jpg') center/cover no-repeat;
    opacity: 0.06;
    filter: grayscale(1);
    mask-image: linear-gradient(to right, transparent, rgba(0,0,0,0.5));
    -webkit-mask-image: linear-gradient(to right, transparent, rgba(0,0,0,0.5));
    pointer-events: none;
}

/* ── GITHUB ACTIVITY SECTION ── */
.github-section {
    background: var(--bg-deep);
}

.github-widget {
    background: var(--bg-secondary);
    border: 1px solid var(--border);
    border-radius: 16px;
    padding: 32px;
    overflow: hidden;
}

.github-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 24px;
}

.github-profile {
    display: flex;
    align-items: center;
    gap: 10px;
    color: var(--text-white);
    font-family: var(--font-heading);
    font-weight: 600;
    font-size: 16px;
}

.github-profile svg {
    opacity: 0.8;
}

.github-link {
    color: var(--accent);
    text-decoration: none;
    font-size: 14px;
    font-family: var(--font-heading);
    letter-spacing: 1px;
    text-transform: uppercase;
    transition: opacity 0.3s;
}

.github-link:hover {
    opacity: 0.7;
}

.github-graph {
    width: 100%;
    overflow-x: auto;
    margin-bottom: 24px;
    padding: 16px 0;
}

.github-graph img {
    width: 100%;
    filter: brightness(0.9) contrast(1.1);
    border-radius: 8px;
}

.github-stats {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 16px;
    text-align: center;
}

.gh-stat {
    background: var(--bg-primary);
    border: 1px solid var(--border);
    border-radius: 12px;
    padding: 20px;
    transition: border-color 0.3s, transform 0.3s;
}

.gh-stat:hover {
    border-color: var(--accent);
    transform: translateY(-2px);
}

.gh-stat-number {
    display: block;
    font-family: var(--font-heading);
    font-size: 28px;
    font-weight: 700;
    color: var(--text-white);
    margin-bottom: 4px;
}

.gh-stat-label {
    font-size: 12px;
    color: var(--text-secondary);
    text-transform: uppercase;
    letter-spacing: 2px;
}

/* Konami Easter Egg Overlay */
.easter-egg-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0,0,0,0.9);
    z-index: 99999;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    opacity: 0;
    pointer-events: none;
    transition: opacity 0.5s;
}

.easter-egg-overlay.active {
    opacity: 1;
    pointer-events: all;
}

.easter-egg-overlay h2 {
    font-family: var(--font-heading);
    font-size: 48px;
    color: var(--accent);
    margin-bottom: 20px;
    animation: pulse 1s ease-in-out infinite;
}

.easter-egg-overlay p {
    color: var(--text-secondary);
    font-size: 18px;
    margin-bottom: 30px;
}

.easter-egg-overlay img {
    max-width: 400px;
    border-radius: 12px;
    margin-bottom: 20px;
}

.easter-egg-close {
    background: var(--accent);
    color: #000;
    border: none;
    padding: 12px 32px;
    font-family: var(--font-heading);
    font-size: 14px;
    letter-spacing: 2px;
    text-transform: uppercase;
    cursor: pointer;
    border-radius: 4px;
    transition: transform 0.3s;
}

.easter-egg-close:hover {
    transform: scale(1.05);
}

/* ── PRESENCE SECTION ── */
.presence {
    background: var(--bg-deep);
}

.presence-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 32px;
}

.presence-card {
    position: relative;
    padding: 32px;
    background: var(--bg-secondary);
    border: 1px solid var(--border-subtle);
    overflow: hidden;
    opacity: 0;
    transform: translateY(30px);
}

.card-glow {
    position: absolute;
    top: -50%;
    left: -50%;
    width: 200%;
    height: 200%;
    background: radial-gradient(circle at center, var(--accent-soft) 0%, transparent 70%);
    opacity: 0;
    transition: opacity 0.5s;
    pointer-events: none;
}

.presence-card:hover .card-glow {
    opacity: 0.3;
}

.card-header {
    display: flex;
    align-items: center;
    gap: 12px;
    margin-bottom: 24px;
    color: var(--text-white);
}

.card-header h3 {
    font-family: var(--font-heading);
    font-size: 16px;
    font-weight: 600;
    letter-spacing: 1px;
}

/* Discord Card */
.discord-card .card-header { color: #5865f2; }

.discord-profile {
    display: flex;
    align-items: center;
    gap: 16px;
    margin-bottom: 20px;
    padding-bottom: 20px;
    border-bottom: 1px solid var(--border-subtle);
}

.discord-avatar {
    position: relative;
    width: 48px;
    height: 48px;
    flex-shrink: 0;
}

.avatar-placeholder {
    width: 100%;
    height: 100%;
    border-radius: 50%;
    background: var(--bg-elevated);
    display: flex;
    align-items: center;
    justify-content: center;
    font-family: var(--font-heading);
    font-weight: 700;
    color: var(--text-secondary);
    font-size: 18px;
}

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

.discord-status-dot {
    position: absolute;
    bottom: -2px;
    right: -2px;
    width: 16px;
    height: 16px;
    border-radius: 50%;
    border: 3px solid var(--bg-secondary);
    background: var(--text-muted);
}

.discord-status-dot.online { background: #22c55e; }
.discord-status-dot.idle { background: #fbbf24; }
.discord-status-dot.dnd { background: #ef4444; }
.discord-status-dot.offline { background: var(--text-muted); }

.discord-info {
    display: flex;
    flex-direction: column;
    gap: 2px;
}

.discord-name {
    font-family: var(--font-heading);
    font-size: 15px;
    font-weight: 600;
    color: var(--text-white);
}

.discord-username {
    font-size: 12px;
    color: var(--text-muted);
}

.discord-status-text {
    font-size: 13px;
    color: var(--text-secondary);
    margin-top: 2px;
}

.discord-activity {
    min-height: 40px;
}

.activity-skeleton {
    height: 20px;
    background: linear-gradient(90deg, var(--bg-elevated), var(--bg-hover), var(--bg-elevated));
    background-size: 200% 100%;
    animation: shimmer 2s infinite;
    border-radius: 4px;
}

.activity-item {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 12px;
    background: var(--glass);
    border: 1px solid var(--border-subtle);
    border-radius: 4px;
}

.activity-icon {
    width: 40px;
    height: 40px;
    border-radius: 4px;
    background: var(--bg-elevated);
    flex-shrink: 0;
    overflow: hidden;
}

.activity-icon img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.activity-info {
    display: flex;
    flex-direction: column;
    gap: 2px;
    min-width: 0;
}

.activity-name {
    font-size: 13px;
    font-weight: 600;
    color: var(--text-white);
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.activity-detail {
    font-size: 12px;
    color: var(--text-secondary);
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.activity-state {
    font-size: 12px;
    color: var(--text-muted);
}

/* Spotify Card */
.spotify-card .card-header { color: #1db954; }

.spotify-content {
    min-height: 80px;
}

.spotify-idle {
    text-align: center;
    padding: 20px 0;
}

.vinyl-record {
    width: 60px;
    height: 60px;
    border-radius: 50%;
    background: conic-gradient(from 0deg, #111, #222, #111, #222, #111);
    margin: 0 auto 16px;
    display: flex;
    align-items: center;
    justify-content: center;
    animation: vinylSpin 4s linear infinite;
}

.vinyl-inner {
    width: 20px;
    height: 20px;
    border-radius: 50%;
    background: var(--bg-secondary);
    border: 2px solid #333;
}

.spotify-idle p {
    font-size: 14px;
    color: var(--text-secondary);
    margin-bottom: 4px;
}

.spotify-idle .spotify-hint {
    font-size: 12px;
    color: var(--text-muted);
}

.spotify-playing {
    display: flex;
    gap: 16px;
    align-items: center;
}

.spotify-album-art {
    width: 80px;
    height: 80px;
    border-radius: 4px;
    overflow: hidden;
    flex-shrink: 0;
    position: relative;
}

.spotify-album-art img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.spotify-album-art::after {
    content: '';
    position: absolute;
    inset: 0;
    border: 1px solid rgba(255,255,255,0.1);
    border-radius: 4px;
}

.spotify-track-info {
    flex: 1;
    min-width: 0;
}

.spotify-now-label {
    display: flex;
    align-items: center;
    gap: 6px;
    font-size: 11px;
    letter-spacing: 1px;
    text-transform: uppercase;
    color: #1db954;
    margin-bottom: 8px;
}

.eq-bars {
    display: flex;
    gap: 2px;
    height: 12px;
    align-items: flex-end;
}

.eq-bar {
    width: 3px;
    background: #1db954;
    animation: eqBounce 0.8s ease-in-out infinite alternate;
}

.eq-bar:nth-child(1) { height: 60%; animation-delay: 0s; }
.eq-bar:nth-child(2) { height: 100%; animation-delay: 0.2s; }
.eq-bar:nth-child(3) { height: 40%; animation-delay: 0.4s; }

.spotify-song {
    font-family: var(--font-heading);
    font-size: 15px;
    font-weight: 600;
    color: var(--text-white);
    margin-bottom: 4px;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.spotify-artist {
    font-size: 13px;
    color: var(--text-secondary);
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    margin-bottom: 8px;
}

.spotify-progress {
    position: relative;
    height: 3px;
    background: var(--bg-elevated);
    border-radius: 2px;
    overflow: hidden;
}

.spotify-progress-bar {
    height: 100%;
    background: #1db954;
    border-radius: 2px;
    transition: width 1s linear;
}

/* ── SOCIALS SECTION ── */
.socials-section {
    background: var(--bg-primary);
    padding-bottom: 80px;
}

.socials-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 20px;
}

.social-card {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 16px;
    padding: 40px 24px;
    background: var(--bg-secondary);
    border: 1px solid var(--border-subtle);
    text-align: center;
    transition: all 0.4s var(--ease-out-expo);
    opacity: 0;
    transform: translateY(20px);
}

.social-card:hover {
    border-color: var(--border-medium);
    transform: translateY(-6px);
    background: var(--bg-card);
}

.social-icon {
    color: var(--text-muted);
    transition: color 0.3s, transform 0.3s;
}

.social-card:hover .social-icon {
    color: var(--text-white);
    transform: scale(1.15);
}

#social-github:hover .social-icon { color: #e8e8e8; }
#social-instagram:hover .social-icon { color: #e1306c; }
#social-discord:hover .social-icon { color: #5865f2; }
#social-twitter:hover .social-icon { color: #e8e8e8; }

.social-name {
    font-family: var(--font-heading);
    font-size: 14px;
    font-weight: 600;
    color: var(--text-white);
    letter-spacing: 1px;
}

.social-handle {
    font-size: 12px;
    color: var(--text-muted);
}

/* ── CONTACT SECTION ── */
.contact {
    background: var(--bg-deep);
}

.contact-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 80px;
    align-items: start;
}

.contact-info {
    opacity: 0;
    transform: translateX(-30px);
}

.commission-badge {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    padding: 10px 20px;
    background: var(--accent-soft);
    border: 1px solid rgba(230, 57, 70, 0.2);
    font-family: var(--font-heading);
    font-size: 13px;
    font-weight: 600;
    letter-spacing: 1px;
    color: var(--accent);
    margin-bottom: 24px;
    animation: badgePulse 3s ease-in-out infinite;
}

.badge-fire {
    font-size: 18px;
    animation: fireWiggle 1s ease-in-out infinite;
}

.contact-info p {
    font-size: 16px;
    line-height: 1.8;
    color: var(--text-secondary);
    margin-bottom: 16px;
}

.contact-note {
    font-size: 13px !important;
    color: var(--text-muted) !important;
    padding-left: 16px;
    border-left: 2px solid var(--border-subtle);
}

.contact-waifu {
    margin-top: 40px;
    width: 200px;
    opacity: 0.08;
    filter: grayscale(1);
}

.contact-waifu img {
    width: 100%;
}

.contact-form {
    display: flex;
    flex-direction: column;
    gap: 28px;
    opacity: 0;
    transform: translateX(30px);
}

.form-group {
    position: relative;
}

.form-group label {
    display: block;
    font-family: var(--font-heading);
    font-size: 11px;
    letter-spacing: 2px;
    text-transform: uppercase;
    color: var(--text-muted);
    margin-bottom: 10px;
}

.form-group input,
.form-group select,
.form-group textarea {
    width: 100%;
    padding: 14px 0;
    background: transparent;
    border: none;
    border-bottom: 1px solid var(--border-subtle);
    font-family: var(--font-body);
    font-size: 15px;
    color: var(--text-white);
    outline: none;
    transition: border-color 0.3s;
    cursor: none;
}

.form-group input:focus,
.form-group select:focus,
.form-group textarea:focus {
    border-color: var(--accent);
}

.form-group input::placeholder,
.form-group textarea::placeholder {
    color: var(--text-dim);
}

.form-group select {
    appearance: none;
    cursor: pointer;
}

.form-group select option {
    background: var(--bg-card);
    color: var(--text-primary);
}

.form-group textarea {
    resize: vertical;
    min-height: 100px;
}

.input-line {
    position: absolute;
    bottom: 0;
    left: 0;
    width: 0;
    height: 1px;
    background: var(--accent);
    transition: width 0.4s var(--ease-out-expo);
}

.form-group input:focus ~ .input-line,
.form-group select:focus ~ .input-line,
.form-group textarea:focus ~ .input-line {
    width: 100%;
}

.btn-submit {
    align-self: flex-start;
    background: var(--text-white);
    color: var(--bg-void);
    padding: 16px 40px;
    font-family: var(--font-heading);
    font-size: 13px;
    font-weight: 600;
    letter-spacing: 2px;
    text-transform: uppercase;
    border: none;
    cursor: none;
    position: relative;
    overflow: hidden;
    transition: all 0.4s var(--ease-out-expo);
    display: flex;
    align-items: center;
    gap: 10px;
}

.btn-submit:hover {
    background: var(--accent);
    color: var(--text-white);
    transform: translateY(-2px);
    box-shadow: 0 10px 40px var(--accent-glow);
}

.btn-loading, .btn-success {
    display: none;
    align-items: center;
    gap: 8px;
}

.btn-submit.loading .btn-text,
.btn-submit.loading .btn-arrow { display: none; }
.btn-submit.loading .btn-loading { display: flex; }
.btn-submit.loading { pointer-events: none; opacity: 0.7; }

.btn-submit.success .btn-text,
.btn-submit.success .btn-arrow,
.btn-submit.success .btn-loading { display: none; }
.btn-submit.success .btn-success { display: inline; }
.btn-submit.success { background: #22c55e; color: white; }

.spinner {
    animation: spin 1s linear infinite;
}

/* ── FOOTER ── */
.footer {
    position: relative;
    padding: 60px 40px;
    background: var(--bg-void);
    border-top: 1px solid var(--border-subtle);
    text-align: center;
}

.footer-brand {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    font-family: var(--font-brand);
    font-size: 18px;
    color: var(--text-white);
    letter-spacing: 3px;
    margin-bottom: 16px;
}

.footer-brand .brand-kanji {
    font-size: 22px;
}

.footer-copy {
    font-size: 14px;
    color: var(--text-secondary);
    margin-bottom: 4px;
}

.footer-copy-sub {
    font-size: 12px;
    color: var(--text-dim);
}

.back-to-top {
    position: absolute;
    top: -24px;
    right: 40px;
    width: 48px;
    height: 48px;
    background: var(--bg-card);
    border: 1px solid var(--border-subtle);
    color: var(--text-secondary);
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: none;
    transition: all 0.3s var(--ease-out-expo);
}

.back-to-top:hover {
    background: var(--accent);
    color: var(--text-white);
    border-color: var(--accent);
    transform: translateY(-4px);
}

/* ── TOAST NOTIFICATION ── */
.toast {
    position: fixed;
    bottom: 30px;
    right: 30px;
    z-index: 9000;
    transform: translateY(100px);
    opacity: 0;
    transition: all 0.5s var(--ease-out-expo);
    pointer-events: none;
}

.toast.show {
    transform: translateY(0);
    opacity: 1;
    pointer-events: auto;
}

.toast-content {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 16px 24px;
    background: var(--bg-card);
    border: 1px solid var(--border-subtle);
    font-size: 14px;
    color: var(--text-primary);
    box-shadow: 0 20px 60px rgba(0,0,0,0.5);
}

.toast.success .toast-content {
    border-color: rgba(34, 197, 94, 0.3);
}

.toast.error .toast-content {
    border-color: rgba(239, 68, 68, 0.3);
}

/* ═══════════════════════════════════════════════════════════
   KEYFRAME ANIMATIONS
   ═══════════════════════════════════════════════════════════ */

@keyframes loaderSpin {
    to { transform: rotate(360deg); }
}

@keyframes loaderCircleDraw {
    to { stroke-dashoffset: 0; }
}

@keyframes loaderStarDraw {
    to { stroke-dashoffset: 0; }
}

@keyframes loaderKanjiPulse {
    0%, 100% { opacity: 1; }
    50% { opacity: 0.3; }
}

@keyframes loaderTextWave {
    0%, 100% { transform: translateY(0); opacity: 1; }
    50% { transform: translateY(-8px); opacity: 0.5; }
}

@keyframes loaderBarFill {
    to { width: 100%; }
}

@keyframes mangaLinesDrift {
    to { transform: translateX(41px); }
}

@keyframes kanjiPulse {
    0%, 100% { opacity: 1; text-shadow: 0 0 10px var(--accent-glow); }
    50% { opacity: 0.6; text-shadow: 0 0 20px var(--accent-glow); }
}

@keyframes dotPulse {
    0%, 100% { transform: scale(1); opacity: 1; }
    50% { transform: scale(1.5); opacity: 0.5; }
}

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

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

@keyframes floatWaifu {
    0%, 100% { transform: translateY(0) rotate(0deg); }
    50% { transform: translateY(-15px) rotate(1deg); }
}

@keyframes textShimmer {
    0%, 100% { background-position: 200% 0; }
    50% { background-position: -200% 0; }
}

@keyframes microGlitch {
    0%, 94%, 100% { opacity: 0; transform: translate(0); }
    95% { opacity: 0.08; transform: translate(2px, 0); }
    96% { opacity: 0; transform: translate(-1px, 0); }
}

@keyframes shimmer {
    to { background-position: -200% 0; }
}

@keyframes vinylSpin {
    to { transform: rotate(360deg); }
}

@keyframes eqBounce {
    to { height: 100%; }
}

@keyframes spin {
    to { transform: rotate(360deg); }
}

@keyframes badgePulse {
    0%, 100% { box-shadow: 0 0 0 0 var(--accent-soft); }
    50% { box-shadow: 0 0 20px 0 var(--accent-soft); }
}

@keyframes fireWiggle {
    0%, 100% { transform: rotate(0deg); }
    25% { transform: rotate(-5deg); }
    75% { transform: rotate(5deg); }
}

/* Reveal animations triggered by JS */
.reveal-up.revealed {
    opacity: 1 !important;
    transform: translateY(0) !important;
    transition: opacity 0.8s var(--ease-out-expo), transform 0.8s var(--ease-out-expo);
}

.reveal-left.revealed {
    opacity: 1 !important;
    transform: translateX(0) !important;
    transition: opacity 0.8s var(--ease-out-expo), transform 0.8s var(--ease-out-expo);
}

.reveal-right.revealed {
    opacity: 1 !important;
    transform: translateX(0) !important;
    transition: opacity 0.8s var(--ease-out-expo), transform 0.8s var(--ease-out-expo);
}

.reveal-scale.revealed {
    opacity: 1 !important;
    transform: scale(1) !important;
    transition: opacity 0.8s var(--ease-out-expo), transform 0.8s var(--ease-out-expo);
}

.reveal-text.revealed {
    opacity: 1 !important;
    transform: translateY(0) !important;
    transition: opacity 0.6s var(--ease-out-expo), transform 0.6s var(--ease-out-expo);
}

.reveal-line.revealed {
    width: 120px !important;
    transition: width 1s var(--ease-out-expo) 0.3s;
}

/* ═══════════════════════════════════════════════════════════
   RESPONSIVE DESIGN
   ═══════════════════════════════════════════════════════════ */

@media (max-width: 1024px) {
    :root {
        --section-pad: 80px;
    }

    .about-grid {
        grid-template-columns: 1fr;
        gap: 40px;
    }

    .about-stats {
        grid-template-columns: repeat(2, 1fr);
    }

    .presence-grid {
        grid-template-columns: 1fr;
    }

    .contact-grid {
        grid-template-columns: 1fr;
        gap: 60px;
    }

    .socials-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (max-width: 768px) {
    :root {
        --section-pad: 60px;
        --nav-height: 60px;
    }

    .navbar {
        padding: 0 20px;
    }

    .nav-toggle {
        display: flex;
    }

    .nav-links {
        position: fixed;
        inset: 0;
        background: rgba(0, 0, 0, 0.95);
        backdrop-filter: blur(20px);
        flex-direction: column;
        align-items: center;
        justify-content: center;
        gap: 32px;
        opacity: 0;
        visibility: hidden;
        transition: all 0.4s var(--ease-out-expo);
    }

    .nav-links.open {
        opacity: 1;
        visibility: visible;
    }

    .nav-links a {
        font-size: 18px;
        letter-spacing: 4px;
    }

    .hero {
        align-items: flex-end;
        padding-bottom: 12vh;
    }

    .hero-content {
        padding: 0 20px;
    }

    .hero-character {
        right: 0;
        top: 10vh;
        bottom: auto;
        width: 100%;
        opacity: 0.65;
        mask-image: radial-gradient(ellipse at 50% 30%, rgba(0,0,0,1) 40%, transparent 80%);
        -webkit-mask-image: radial-gradient(ellipse at 50% 30%, rgba(0,0,0,1) 40%, transparent 80%);
    }

    .hero-cta {
        flex-direction: column;
    }

    .btn {
        text-align: center;
        justify-content: center;
        width: 100%;
    }

    .hero-waifu-float {
        display: none;
    }

    .section-number {
        font-size: 48px;
    }

    .section-header {
        margin-bottom: 48px;
    }

    .about-stats {
        grid-template-columns: repeat(2, 1fr);
        gap: 16px;
    }

    .stat-number {
        font-size: 28px;
    }

    .project-card-inner {
        padding: 28px;
    }

    .project-number {
        font-size: 40px;
        right: 16px;
        top: 12px;
    }

    .socials-grid {
        grid-template-columns: repeat(2, 1fr);
    }

    .contact-grid {
        grid-template-columns: 1fr;
        gap: 40px;
    }

    .contact-waifu {
        display: none;
    }

    .container {
        padding: 0 20px;
    }

    .footer {
        padding: 40px 20px;
    }

    .back-to-top {
        right: 20px;
    }

    .projects-waifu-banner {
        margin-top: 40px;
    }

    .about-waifu {
        display: none;
    }

    .github-widget {
        padding: 20px;
    }

    .github-stats {
        grid-template-columns: 1fr;
        gap: 10px;
    }

    .github-header {
        flex-direction: column;
        gap: 12px;
        align-items: flex-start;
    }

    .gh-stat-number {
        font-size: 22px;
    }

    .easter-egg-overlay h2 {
        font-size: 28px;
    }

    .easter-egg-overlay img {
        max-width: 90%;
    }
}

@media (max-width: 480px) {
    .socials-grid {
        grid-template-columns: 1fr;
    }

    .about-stats {
        grid-template-columns: 1fr 1fr;
    }
}
