/* ═══════════════════════════════════════════════
   ITHINKIMCHARLIE — styles.css
   Fonts: Syne (display) + Space Mono (code/body)
   Palette: #00ff88 green, #7c3aed purple, #0a1628 bg
═══════════════════════════════════════════════ */

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

:root {
    --green:   #00ff88;
    --green-d: #00c96a;
    --purple:  #7c3aed;
    --purple-l:#a855f7;
    --cyan:    #06b6d4;
    --bg:      #040d1a;
    --bg-card: rgba(4, 13, 26, 0.85);
    --border:  rgba(0, 255, 136, 0.18);
    --border-h:rgba(0, 255, 136, 0.55);
    --text:    #c8d0dc;
    --muted:   #6b7a8d;
    --radius:  16px;
    --radius-sm: 8px;
    --font-display: 'Syne', sans-serif;
    --font-mono:    'Space Mono', monospace;
    --transition:   0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

html {
    scroll-behavior: smooth;
    overflow-x: hidden;
}

body {
    font-family: var(--font-mono);
    background: radial-gradient(ellipse 120% 80% at 50% 0%, #0a1e3d 0%, #040d1a 55%, #000 100%);
    color: var(--text);
    overflow-x: hidden;
    min-height: 100vh;
    cursor: none;
}

/* ── Custom cursor ── */
.cursor-dot {
    width: 18px;
    height: 18px;
    background: var(--green);
    border-radius: 50%;
    position: fixed;
    top: 0; left: 0;
    pointer-events: none;
    z-index: 9999;
    box-shadow: 0 0 14px var(--green), 0 0 30px rgba(0,255,136,0.4);
    mix-blend-mode: screen;
    will-change: transform;
}

.cursor-trail {
    width: 8px;
    height: 8px;
    background: rgba(0,255,136,0.5);
    border-radius: 50%;
    position: fixed;
    top: 0; left: 0;
    pointer-events: none;
    z-index: 9998;
    will-change: transform;
}

/* ── Galaxy bg ── */
.animated-bg {
    position: fixed;
    inset: 0;
    pointer-events: none;
    z-index: 0;
    overflow: hidden;
}

.galaxy {
    position: absolute;
    width: 100%;
    height: 300%;
}

.star {
    position: absolute;
    background: #fff;
    border-radius: 50%;
    box-shadow: 0 0 3px rgba(255,255,255,0.7);
    animation: twinkle 3s ease-in-out infinite, star-drift 22s linear infinite;
}

@keyframes twinkle {
    0%, 100% { opacity: 0.3; }
    50%       { opacity: 0.9; }
}

@keyframes star-drift {
    0%, 100% { transform: translate(0, 0); }
    25%       { transform: translate(4px, -8px); }
    75%       { transform: translate(-4px, 8px); }
}

.nebula {
    position: absolute;
    border-radius: 50%;
    filter: blur(90px);
    opacity: 0.35;
    animation: nebula-pulse 14s ease-in-out infinite;
}

@keyframes nebula-pulse {
    0%, 100% { transform: scale(1);   opacity: 0.3; }
    50%       { transform: scale(1.3); opacity: 0.55; }
}

/* ── Back to top ── */
.back-to-top {
    position: fixed;
    bottom: 2rem;
    right: 2rem;
    width: 46px;
    height: 46px;
    background: var(--bg-card);
    border: 1.5px solid var(--border-h);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.4rem;
    color: var(--green);
    z-index: 999;
    opacity: 0;
    pointer-events: none;
    transition: opacity var(--transition), transform var(--transition), box-shadow var(--transition);
    box-shadow: 0 0 12px rgba(0,255,136,0.2);
    cursor: none;
}

.back-to-top.visible {
    opacity: 1;
    pointer-events: all;
}

.back-to-top:hover {
    transform: translateY(-4px);
    box-shadow: 0 0 28px rgba(0,255,136,0.6);
    border-color: var(--green);
}

/* ── Scroll indicator ── */
.scroll-indicator {
    position: absolute;
    bottom: 2.5rem;
    left: 50%;
    transform: translateX(-50%);
    width: 26px;
    height: 44px;
    border: 1.5px solid rgba(0,255,136,0.4);
    border-radius: 14px;
    transition: opacity 0.4s;
}

.scroll-indicator::before {
    content: '';
    position: absolute;
    top: 6px;
    left: 50%;
    transform: translateX(-50%);
    width: 4px;
    height: 8px;
    background: var(--green);
    border-radius: 3px;
    animation: scroll-bounce 1.8s ease-in-out infinite;
}

@keyframes scroll-bounce {
    0%, 100% { transform: translateX(-50%) translateY(0);   opacity: 1; }
    80%       { transform: translateX(-50%) translateY(16px); opacity: 0; }
}

/* ── Nav ── */
nav {
    position: fixed;
    top: 0;
    width: 100%;
    background: rgba(4, 13, 26, 0.92);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    padding: 0.9rem 5%;
    display: flex;
    justify-content: space-between;
    align-items: center;
    z-index: 1000;
    border-bottom: 1px solid var(--border);
}

.logo {
    font-family: var(--font-mono);
    font-size: 1.15rem;
    font-weight: 700;
    color: var(--green);
    text-shadow: 0 0 18px rgba(0,255,136,0.5);
    transition: text-shadow var(--transition);
    letter-spacing: -0.5px;
}

.logo:hover {
    text-shadow: 0 0 30px var(--green);
}

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

.nav-links a {
    font-family: var(--font-mono);
    font-size: 0.85rem;
    color: var(--muted);
    text-decoration: none;
    letter-spacing: 0.5px;
    transition: color var(--transition);
    position: relative;
    padding-bottom: 3px;
}

.nav-links a::after {
    content: '';
    position: absolute;
    bottom: 0; left: 0;
    width: 0;
    height: 1px;
    background: linear-gradient(90deg, var(--green), var(--purple-l));
    transition: width var(--transition);
}

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

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

.hamburger {
    display: none;
    flex-direction: column;
    gap: 5px;
    z-index: 1001;
    background: none;
    border: none;
    padding: 4px;
    cursor: pointer;
}

.hamburger span {
    width: 26px;
    height: 2px;
    background: var(--green);
    transition: var(--transition);
    border-radius: 2px;
    display: block;
}

.hamburger.active span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
.hamburger.active span:nth-child(2) { opacity: 0; transform: scaleX(0); }
.hamburger.active span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }

/* ── Hero ── */
.hero {
    position: relative;
    min-height: 100vh;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    text-align: center;
    padding: 7rem 1.5rem 4rem;
    z-index: 2;
}

.hero-eyebrow {
    font-family: var(--font-mono);
    font-size: 0.8rem;
    color: var(--green);
    letter-spacing: 4px;
    text-transform: uppercase;
    margin-bottom: 1.2rem;
    opacity: 0.7;
    animation: fade-in-up 0.6s ease both;
}

.glitch {
    font-family: var(--font-display);
    font-size: clamp(2.6rem, 9vw, 6rem);
    font-weight: 800;
    color: var(--green);
    text-shadow:
        0 0 8px rgba(0,255,136,0.7),
        0 0 24px rgba(0,255,136,0.4);
    position: relative;
    margin-bottom: 1rem;
    letter-spacing: -1px;
    animation: fade-in-up 0.7s 0.1s ease both, glitch 6s 1.5s infinite;
}

.glitch::before,
.glitch::after {
    content: attr(data-text);
    position: absolute;
    top: 0; left: 0;
    width: 100%;
}

.glitch::before {
    color: #ff00c8;
    clip-path: polygon(0 20%, 100% 20%, 100% 40%, 0 40%);
    animation: glitch-before 6s 1.5s infinite;
    opacity: 0;
}

.glitch::after {
    color: var(--cyan);
    clip-path: polygon(0 60%, 100% 60%, 100% 80%, 0 80%);
    animation: glitch-after 6s 1.5s infinite;
    opacity: 0;
}

@keyframes glitch {
    0%, 88%, 100% { transform: translate(0); }
    90% { transform: translate(-2px, 2px); }
    92% { transform: translate(2px, -2px); }
    94% { transform: translate(-1px, 0); }
    96% { transform: translate(0); }
}

@keyframes glitch-before {
    0%, 88%, 100% { opacity: 0; transform: translate(0); }
    90% { opacity: 0.8; transform: translate(-3px, 2px); }
    92% { opacity: 0.8; transform: translate(3px, -2px); }
    94% { opacity: 0; }
}

@keyframes glitch-after {
    0%, 88%, 100% { opacity: 0; transform: translate(0); }
    91% { opacity: 0.6; transform: translate(3px, 3px); }
    93% { opacity: 0.6; transform: translate(-3px, -3px); }
    95% { opacity: 0; }
}

.hero > p {
    font-family: var(--font-mono);
    font-size: clamp(0.9rem, 2.5vw, 1.15rem);
    color: var(--muted);
    margin-bottom: 3rem;
    letter-spacing: 1px;
    animation: fade-in-up 0.7s 0.2s ease both;
}

.typing::after {
    content: '|';
    animation: blink 1s step-end infinite;
    color: var(--green);
    margin-left: 2px;
}

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

@keyframes fade-in-up {
    from { opacity: 0; transform: translateY(24px); }
    to   { opacity: 1; transform: translateY(0); }
}

/* ── Stats ── */
.stats-container {
    display: flex;
    gap: 1.5rem;
    margin-bottom: 3rem;
    flex-wrap: wrap;
    justify-content: center;
    width: 100%;
    max-width: 780px;
    padding: 0 1rem;
    animation: fade-in-up 0.7s 0.35s ease both;
}

.stat-box {
    text-align: center;
    padding: 1.6rem 2rem;
    border-radius: var(--radius);
    flex: 1;
    min-width: 140px;
    transition: transform var(--transition), box-shadow var(--transition), border-color var(--transition);
}

.stat-box:hover {
    transform: translateY(-6px);
    border-color: var(--green) !important;
    box-shadow: 0 12px 40px rgba(0,255,136,0.25);
}

.stat-number {
    font-family: var(--font-display);
    font-size: clamp(2rem, 5vw, 2.8rem);
    font-weight: 800;
    color: var(--green);
    text-shadow: 0 0 20px rgba(0,255,136,0.5);
    line-height: 1;
}

.stat-label {
    font-family: var(--font-mono);
    font-size: 0.72rem;
    color: var(--muted);
    margin-top: 0.5rem;
    text-transform: uppercase;
    letter-spacing: 1.5px;
}

/* ── Glow card ── */
.glow-card {
    position: relative;
    background: var(--bg-card);
    border-radius: var(--radius);
    overflow: hidden;
    border: 1px solid transparent;
    background-clip: padding-box;
}

.glow-card::before {
    content: '';
    position: absolute;
    inset: -1px;
    background: linear-gradient(135deg, rgba(0,255,136,0.35), rgba(124,58,237,0.35), rgba(6,182,212,0.35));
    border-radius: inherit;
    z-index: -1;
    animation: glow-rotate 8s linear infinite;
    background-size: 300% 300%;
}

.glow-card::after {
    content: '';
    position: absolute;
    inset: 1px;
    background: var(--bg-card);
    border-radius: calc(var(--radius) - 2px);
    z-index: -1;
}

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

/* ── CTA buttons ── */
.cta-buttons {
    display: flex;
    gap: 1.2rem;
    flex-wrap: wrap;
    justify-content: center;
    width: 100%;
    max-width: 560px;
    padding: 0 1rem;
    animation: fade-in-up 0.7s 0.5s ease both;
}

.btn {
    padding: 1rem 2.2rem;
    border: 1.5px solid var(--green);
    border-radius: var(--radius-sm);
    font-family: var(--font-mono);
    font-size: 0.85rem;
    font-weight: 700;
    letter-spacing: 1.5px;
    text-transform: uppercase;
    text-decoration: none;
    display: inline-block;
    transition: transform var(--transition), box-shadow var(--transition), background var(--transition);
    flex: 1;
    min-width: 180px;
    text-align: center;
    position: relative;
    overflow: hidden;
    background: transparent;
}

.btn::before {
    content: '';
    position: absolute;
    inset: 0;
    background: var(--green);
    opacity: 0;
    transition: opacity var(--transition);
}

.btn:hover::before {
    opacity: 0.1;
}

.btn-primary {
    color: var(--green);
    box-shadow: 0 0 18px rgba(0,255,136,0.25);
}

.btn-primary:hover {
    transform: translateY(-3px);
    box-shadow: 0 0 32px rgba(0,255,136,0.55);
}

.btn-secondary {
    color: var(--purple-l);
    border-color: var(--purple);
    box-shadow: 0 0 18px rgba(124,58,237,0.25);
}

.btn-secondary:hover {
    transform: translateY(-3px);
    box-shadow: 0 0 32px rgba(124,58,237,0.5);
    border-color: var(--purple-l);
}

/* ── Sections ── */
section {
    position: relative;
    padding: 6rem 5%;
    z-index: 2;
    min-height: 100vh;
    display: flex;
    flex-direction: column;
    justify-content: center;
    width: 100%;
    max-width: 1300px;
    margin: 0 auto;
}

#home {
    max-width: 100%;
}

.section-title {
    font-family: var(--font-display);
    font-size: clamp(1.8rem, 5vw, 2.8rem);
    font-weight: 700;
    text-align: center;
    margin-bottom: 3.5rem;
    color: var(--green);
    text-shadow: 0 0 20px rgba(0,255,136,0.4);
    position: relative;
    display: block;
    letter-spacing: -0.5px;
}

.section-title::after {
    content: '';
    position: absolute;
    bottom: -12px;
    left: 50%;
    transform: translateX(-50%);
    width: 60px;
    height: 2px;
    background: linear-gradient(90deg, transparent, var(--green), transparent);
}

/* ── Reveal animation ── */
.reveal,
.about-content,
.terminal,
.status-box,
.contact-card {
    opacity: 0;
    transform: translateY(30px);
    transition: opacity 0.65s ease, transform 0.65s ease;
}

.reveal.in-view,
.about-content.in-view,
.terminal.in-view,
.status-box.in-view,
.contact-card.in-view {
    opacity: 1;
    transform: translateY(0);
}

/* ── About ── */
.about-content {
    max-width: 820px;
    margin: 0 auto;
    text-align: center;
    font-size: clamp(1rem, 2.2vw, 1.2rem);
    line-height: 2;
    color: var(--text);
    background: var(--bg-card);
    padding: 2.5rem 3rem;
    border: 1px solid var(--border);
    border-radius: var(--radius);
    backdrop-filter: blur(12px);
    width: 100%;
}

/* ── Terminal ── */
.terminal {
    background: #000;
    border: 1px solid rgba(0,255,136,0.4);
    border-radius: var(--radius);
    padding: 0;
    max-width: 820px;
    margin: 2.5rem auto 0;
    box-shadow: 0 0 40px rgba(0,255,136,0.12), 0 20px 60px rgba(0,0,0,0.6);
    width: 100%;
    overflow: hidden;
}

.terminal-header {
    display: flex;
    align-items: center;
    gap: 0.6rem;
    padding: 0.9rem 1.2rem;
    background: #111;
    border-bottom: 1px solid rgba(255,255,255,0.06);
}

.terminal-title {
    font-family: var(--font-mono);
    font-size: 0.75rem;
    color: var(--muted);
    margin-left: auto;
    margin-right: auto;
    letter-spacing: 0.5px;
}

.terminal-btn {
    width: 13px;
    height: 13px;
    border-radius: 50%;
    flex-shrink: 0;
}

.terminal-btn.red    { background: #ff5f56; }
.terminal-btn.yellow { background: #ffbd2e; }
.terminal-btn.green  { background: #27c93f; }

.terminal-body {
    padding: 1.6rem 2rem;
}

.terminal-line {
    font-family: var(--font-mono);
    font-size: clamp(0.82rem, 1.8vw, 0.98rem);
    margin-bottom: 0.55rem;
    line-height: 1.7;
}

.terminal-line .prompt { color: var(--muted); }
.terminal-line .cmd    { color: var(--green); }
.terminal-line.output  { color: #c8d0dc; padding-left: 1rem; }
.terminal-line.comment { color: #3a4a5c; padding-left: 1rem; margin-top: 0.8rem; font-size: 0.82rem; }

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

/* ── Projects ── */
.projects-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(290px, 1fr));
    gap: 1.8rem;
    margin-top: 1rem;
    width: 100%;
}

.project-card {
    background: var(--bg-card);
    border: 1px solid var(--border);
    border-radius: var(--radius);
    padding: 2rem 2rem 1.8rem;
    transition: transform 0.35s ease, box-shadow 0.35s ease, border-color 0.35s ease;
    backdrop-filter: blur(10px);
    position: relative;
    overflow: hidden;
}

.project-card::after {
    content: '';
    position: absolute;
    inset: 0;
    background: linear-gradient(135deg, rgba(0,255,136,0.04), transparent 60%);
    opacity: 0;
    transition: opacity var(--transition);
    border-radius: inherit;
}

.project-card:hover::after { opacity: 1; }

.project-card:hover {
    transform: translateY(-10px);
    box-shadow: 0 24px 60px rgba(0,255,136,0.18);
    border-color: var(--border-h);
}

.project-card--featured {
    border-color: rgba(124,58,237,0.35);
}

.project-card--featured:hover {
    border-color: var(--purple-l);
    box-shadow: 0 24px 60px rgba(124,58,237,0.25);
}

.project-card--featured::after {
    background: linear-gradient(135deg, rgba(124,58,237,0.06), transparent 60%);
}

.project-tag {
    display: inline-block;
    font-family: var(--font-mono);
    font-size: 0.68rem;
    color: var(--muted);
    border: 1px solid rgba(107,122,141,0.35);
    border-radius: 4px;
    padding: 2px 8px;
    text-transform: uppercase;
    letter-spacing: 1px;
    margin-bottom: 1rem;
}

.project-card--featured .project-tag {
    color: var(--purple-l);
    border-color: rgba(124,58,237,0.4);
}

.project-icon {
    font-size: clamp(2rem, 5vw, 2.8rem);
    margin-bottom: 0.8rem;
    display: inline-block;
}

.project-title {
    font-family: var(--font-display);
    font-size: clamp(1.3rem, 3.5vw, 1.6rem);
    font-weight: 700;
    color: #fff;
    margin-bottom: 1rem;
    letter-spacing: -0.5px;
}

.project-card--featured .project-title {
    color: var(--purple-l);
}

.project-stats {
    display: flex;
    gap: 1.2rem;
    margin-bottom: 1rem;
    flex-wrap: wrap;
}

.project-stat {
    display: flex;
    align-items: center;
    gap: 0.4rem;
    font-family: var(--font-mono);
    font-size: 0.78rem;
    color: var(--muted);
}

.project-description {
    color: var(--text);
    line-height: 1.75;
    margin-bottom: 1.2rem;
    font-size: clamp(0.88rem, 1.8vw, 0.96rem);
}

.project-features {
    list-style: none;
    color: #8a95a0;
    line-height: 1.9;
}

.project-features li {
    font-size: 0.88rem;
}

.project-features li::before {
    content: '▸ ';
    color: var(--green);
}

.project-card--featured .project-features li::before {
    color: var(--purple-l);
}

.project-cta {
    display: inline-block;
    margin-top: 1.5rem;
    font-family: var(--font-mono);
    font-size: 0.82rem;
    color: var(--purple-l);
    text-decoration: none;
    letter-spacing: 0.5px;
    border-bottom: 1px solid rgba(168,85,247,0.4);
    padding-bottom: 2px;
    transition: color var(--transition), border-color var(--transition), transform var(--transition);
    display: inline-block;
}

.project-cta:hover {
    color: #fff;
    border-color: #fff;
    transform: translateX(4px);
}

/* ── Tech stack ── */
.tech-stack {
    display: flex;
    gap: 1.2rem;
    flex-wrap: wrap;
    justify-content: center;
    width: 100%;
    margin-bottom: 3.5rem;
}

.tech-item {
    display: flex;
    align-items: center;
    gap: 0.6rem;
    background: var(--bg-card);
    border: 1px solid var(--border);
    padding: 0.75rem 1.5rem;
    border-radius: 100px;
    font-family: var(--font-mono);
    font-size: 0.9rem;
    color: var(--text);
    transition: transform var(--transition), border-color var(--transition), box-shadow var(--transition), color var(--transition);
}

.tech-emoji {
    font-size: 1.1rem;
}

.tech-item:hover {
    transform: translateY(-5px);
    border-color: var(--green);
    box-shadow: 0 8px 25px rgba(0,255,136,0.2);
    color: var(--green);
}

/* ── Links grid ── */
.links-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 1.5rem;
    width: 100%;
}

.link-card {
    background: var(--bg-card);
    border: 1px solid rgba(124,58,237,0.25);
    border-radius: var(--radius);
    padding: 2rem 1.5rem;
    text-align: center;
    transition: transform var(--transition), border-color var(--transition), box-shadow var(--transition);
    text-decoration: none;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 0.5rem;
}

.link-card:hover {
    transform: translateY(-8px);
    border-color: var(--purple-l);
    box-shadow: 0 16px 40px rgba(124,58,237,0.25);
}

.link-icon {
    font-size: 2rem;
    margin-bottom: 0.2rem;
}

.link-title {
    font-family: var(--font-display);
    font-size: 1.1rem;
    font-weight: 700;
    color: #fff;
}

.link-sub {
    fo
.cursor-trail {
    width: 10px;
    height: 10px;
    background: rgba(0, 255, 136, 0.6);
    border-radius: 50%;
    position: fixed;
    pointer-events: none;
    z-index: 9998;
    box-shadow: 0 0 10px rgba(0, 255, 136, 0.5);
}

.animated-bg {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    pointer-events: none;
    z-index: 0;
    opacity: 1;
    overflow: hidden;
}

.galaxy {
    position: absolute;
    width: 100%;
    height: 300%;
    overflow: hidden;
}

.star {
    position: absolute;
    background: white;
    border-radius: 50%;
    box-shadow: 0 0 4px rgba(255, 255, 255, 0.8);
    animation: twinkle 3s infinite, star-drift 20s linear infinite;
}

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

@keyframes star-drift {
    0%, 100% { transform: translateY(0) translateX(0); }
    25% { transform: translateY(-10px) translateX(5px); }
    75% { transform: translateY(10px) translateX(-5px); }
}

.nebula {
    position: absolute;
    border-radius: 50%;
    filter: blur(80px);
    animation: nebula-pulse 12s ease-in-out infinite;
    opacity: 0.5;
    z-index: 0;
}

@keyframes nebula-pulse {
    0%, 100% { 
        transform: scale(1) translateX(0);
        opacity: 0.4;
    }
    50% { 
        transform: scale(1.4) translateX(30px);
        opacity: 0.7;
    }
}

/* ── Back to top ── */
.back-to-top {
    position: fixed;
    bottom: 2rem;
    right: 2rem;
    width: 50px;
    height: 50px;
    background: rgba(0, 0, 0, 0.85);
    border: 2px solid rgba(0, 255, 136, 0.6);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.6rem;
    color: #00ff88;
    z-index: 999;
    opacity: 0;
    pointer-events: none;
    transition: opacity 0.3s, transform 0.3s, box-shadow 0.3s;
    box-shadow: 0 0 15px rgba(0, 255, 136, 0.3);
    user-select: none;
}

.back-to-top.visible {
    opacity: 1;
    pointer-events: all;
}

.back-to-top:hover {
    transform: translateY(-4px);
    box-shadow: 0 0 30px rgba(0, 255, 136, 0.6);
    border-color: #00ff88;
}

/* ── Scroll indicator ── */
.scroll-indicator {
    position: absolute;
    bottom: 2.5rem;
    left: 50%;
    transform: translateX(-50%);
    width: 28px;
    height: 48px;
    border: 2px solid rgba(0, 255, 136, 0.5);
    border-radius: 20px;
    transition: opacity 0.4s;
}

.scroll-indicator::before {
    content: '';
    position: absolute;
    top: 6px;
    left: 50%;
    transform: translateX(-50%);
    width: 5px;
    height: 10px;
    background: #00ff88;
    border-radius: 3px;
    animation: scroll-bounce 1.8s ease-in-out infinite;
}

@keyframes scroll-bounce {
    0%, 100% { transform: translateX(-50%) translateY(0); opacity: 1; }
    80% { transform: translateX(-50%) translateY(18px); opacity: 0; }
}

/* ── Nav ── */
nav {
    position: fixed;
    top: 0;
    width: 100%;
    background: rgba(0, 0, 0, 0.95);
    backdrop-filter: blur(15px);
    padding: 1rem 5%;
    display: flex;
    justify-content: space-between;
    align-items: center;
    z-index: 1000;
    border-bottom: 2px solid rgba(0, 255, 136, 0.3);
    box-shadow: 0 5px 20px rgba(0, 0, 0, 0.5);
}

.logo {
    font-size: 1.4rem;
    font-weight: bold;
    font-family: 'Courier New', monospace;
    color: #00ff88;
    text-shadow: 0 0 15px rgba(0, 255, 136, 0.6);
    transition: all 0.3s;
}

.logo:hover {
    text-shadow: 0 0 25px rgba(0, 255, 136, 1);
    transform: scale(1.05);
}

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

.nav-links a {
    color: #b0b0b0;
    text-decoration: none;
    transition: all 0.3s;
    font-weight: 500;
    position: relative;
    padding: 0.5rem 0;
}

.nav-links a::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 0;
    height: 2px;
    background: linear-gradient(90deg, #00ff88, #8a2be2);
    transition: width 0.3s;
}

.nav-links a:hover {
    color: #00ff88;
}

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

.hamburger {
    display: none;
    flex-direction: column;
    gap: 5px;
    z-index: 1001;
    background: none;
    border: none;
    padding: 4px;
}

.hamburger span {
    width: 28px;
    height: 3px;
    background: #00ff88;
    transition: 0.3s;
    border-radius: 3px;
    display: block;
}

/* Hamburger active (X) animation */
.hamburger.active span:nth-child(1) {
    transform: translateY(8px) rotate(45deg);
}
.hamburger.active span:nth-child(2) {
    opacity: 0;
    transform: scaleX(0);
}
.hamburger.active span:nth-child(3) {
    transform: translateY(-8px) rotate(-45deg);
}

/* ── Hero ── */
.hero {
    position: relative;
    min-height: 100vh;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    text-align: center;
    padding: 6rem 1rem 3rem;
    z-index: 2;
}

.glitch {
    font-size: clamp(2rem, 8vw, 5rem);
    font-weight: bold;
    color: #00ff88;
    text-shadow: 
        0 0 10px rgba(0, 255, 136, 0.8),
        0 0 20px rgba(0, 255, 136, 0.6),
        0 0 40px rgba(0, 255, 136, 0.4),
        2px 2px 0 #8a2be2,
        -2px -2px 0 #00ffff;
    animation: glitch 4s infinite;
    margin-bottom: 1rem;
    letter-spacing: 2px;
}

@keyframes glitch {
    0%, 90%, 100% {
        transform: translate(0);
    }
    92% {
        transform: translate(-3px, 3px);
        text-shadow: 
            0 0 10px rgba(0, 255, 136, 0.8),
            3px 3px 0 #ff00ff,
            -3px -3px 0 #00ffff;
    }
    94% {
        transform: translate(3px, -3px);
        text-shadow: 
            0 0 10px rgba(0, 255, 136, 0.8),
            -3px -3px 0 #ff00ff,
            3px 3px 0 #00ffff;
    }
    96% {
        transform: translate(-3px, -3px);
    }
}

.hero p {
    font-size: clamp(1rem, 3vw, 1.4rem);
    color: #a0a0a0;
    margin-bottom: 2.5rem;
    font-family: 'Courier New', monospace;
}

.typing::after {
    content: '|';
    animation: blink 1s infinite;
    color: #00ff88;
}

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

.stats-container {
    display: flex;
    gap: 2rem;
    margin-bottom: 2.5rem;
    flex-wrap: wrap;
    justify-content: center;
    width: 100%;
    max-width: 900px;
    padding: 0 1rem;
}

.stat-box {
    text-align: center;
    background: rgba(0, 0, 0, 0.7);
    padding: 1.5rem 2rem;
    border: 2px solid rgba(0, 255, 136, 0.4);
    border-radius: 15px;
    backdrop-filter: blur(10px);
    transition: all 0.3s;
    position: relative;
    overflow: hidden;
    min-width: 150px;
    flex: 1;
}

.stat-box:nth-child(1) {
    animation: slide-in-left 0.8s ease-out;
}

.stat-box:nth-child(2) {
    animation: slide-in-bottom 0.8s ease-out 0.2s backwards;
}

.stat-box:nth-child(3) {
    animation: slide-in-right 0.8s ease-out 0.4s backwards;
}

@keyframes slide-in-left {
    from {
        opacity: 0;
        transform: translateX(-100px);
    }
    to {
        opacity: 1;
        transform: translateX(0);
    }
}

@keyframes slide-in-right {
    from {
        opacity: 0;
        transform: translateX(100px);
    }
    to {
        opacity: 1;
        transform: translateX(0);
    }
}

@keyframes slide-in-bottom {
    from {
        opacity: 0;
        transform: translateY(100px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.stat-box::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(0, 255, 136, 0.2), transparent);
    transition: left 0.5s;
}

.stat-box:hover::before {
    left: 100%;
}

.stat-box:hover {
    transform: translateY(-5px) scale(1.05);
    border-color: #00ff88;
    box-shadow: 0 10px 40px rgba(0, 255, 136, 0.4);
}

.stat-number {
    font-size: clamp(2rem, 5vw, 3rem);
    color: #00ff88;
    font-weight: bold;
    text-shadow: 0 0 25px rgba(0, 255, 136, 0.6);
}

.stat-label {
    font-size: clamp(0.8rem, 2vw, 0.95rem);
    color: #909090;
    margin-top: 0.5rem;
    text-transform: uppercase;
    letter-spacing: 1px;
}

.cta-buttons {
    display: flex;
    gap: 1.5rem;
    flex-wrap: wrap;
    justify-content: center;
    width: 100%;
    max-width: 600px;
    padding: 0 1rem;
}

.btn {
    padding: 1.2rem 2.5rem;
    border: 2px solid #00ff88;
    border-radius: 8px;
    font-size: clamp(0.9rem, 2vw, 1.1rem);
    font-weight: 600;
    transition: all 0.3s;
    text-decoration: none;
    display: inline-block;
    font-family: 'Courier New', monospace;
    position: relative;
    overflow: hidden;
    text-transform: uppercase;
    letter-spacing: 1px;
    flex: 1;
    min-width: 200px;
    background: transparent;
}

.btn::before {
    content: '';
    position: absolute;
    top: 50%;
    left: 50%;
    width: 0;
    height: 0;
    background: rgba(0, 255, 136, 0.3);
    border-radius: 50%;
    transform: translate(-50%, -50%);
    transition: width 0.5s, height 0.5s;
}

.btn:hover::before {
    width: 300px;
    height: 300px;
}

.btn-primary {
    color: #00ff88;
    box-shadow: 0 0 25px rgba(0, 255, 136, 0.4);
}

.btn-primary:hover {
    transform: translateY(-3px);
    box-shadow: 0 0 35px rgba(0, 255, 136, 0.7);
    border-color: #00ff88;
}

.btn-secondary {
    color: #8a2be2;
    border-color: #8a2be2;
    box-shadow: 0 0 25px rgba(138, 43, 226, 0.4);
}

.btn-secondary:hover {
    transform: translateY(-3px);
    box-shadow: 0 0 35px rgba(138, 43, 226, 0.7);
    border-color: #a855f7;
}

/* ── Glow card ── */
.glow-card {
    position: relative;
    background: rgba(0, 0, 0, 0.8);
    border-radius: 20px;
    padding: 2rem;
    overflow: hidden;
}

.glow-card::before {
    content: '';
    position: absolute;
    inset: -2px;
    background: linear-gradient(45deg, #00ff88, #06b6d4, #8b5cf6, #00ff88);
    background-size: 400% 400%;
    border-radius: 20px;
    z-index: -1;
    animation: glow-rotate 8s linear infinite;
}

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

.glow-card::after {
    content: '';
    position: absolute;
    inset: 2px;
    background: rgba(0, 0, 0, 0.9);
    border-radius: 18px;
    z-index: -1;
}

/* ── Loader ── */
.loader {
    width: 50px;
    aspect-ratio: 1;
    display: grid;
    margin: 2rem auto;
}

.loader::before,
.loader::after {    
    content: "";
    grid-area: 1/1;
    --c: radial-gradient(farthest-side, #00ff88 92%, #0000);
    background: 
        var(--c) 50%  0, 
        var(--c) 50%  100%, 
        var(--c) 100% 50%, 
        var(--c) 0    50%;
    background-size: 12px 12px;
    background-repeat: no-repeat;
    animation: loader-animation 1s infinite;
}

.loader::after {
    transform: rotate(45deg);
}

@keyframes loader-animation { 
    100% { transform: rotate(360deg); }
}

/* ── Animated border button ── */
.animated-border-btn {
    position: relative;
    padding: 1rem 2rem;
    font-size: 1.1rem;
    font-weight: 600;
    color: #00ff88;
    background: rgba(0, 0, 0, 0.8);
    border: none;
    border-radius: 10px;
    overflow: hidden;
    transition: all 0.3s;
    font-family: 'Courier New', monospace;
    text-transform: uppercase;
    letter-spacing: 2px;
    text-decoration: none;
    display: inline-block;
}

.animated-border-btn::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 2px;
    background: linear-gradient(90deg, transparent, #00ff88, transparent);
    animation: border-animation 3s linear infinite;
}

.animated-border-btn::after {
    content: '';
    position: absolute;
    bottom: 0;
    right: -100%;
    width: 100%;
    height: 2px;
    background: linear-gradient(270deg, transparent, #00ff88, transparent);
    animation: border-animation 3s linear infinite;
    animation-delay: 1.5s;
}

@keyframes border-animation {
    0% {
        left: -100%;
        right: auto;
    }
    50%, 100% {
        left: auto;
        right: 100%;
    }
}

.animated-border-btn:hover {
    box-shadow: 0 0 30px rgba(0, 255, 136, 0.6);
    transform: translateY(-2px);
}

/* ── Sections ── */
section {
    position: relative;
    padding: 5rem 5%;
    z-index: 2;
    min-height: 100vh;
    display: flex;
    flex-direction: column;
    justify-content: center;
    width: 100%;
    max-width: 1400px;
    margin: 0 auto;
}

.section-title {
    font-size: clamp(2rem, 5vw, 3rem);
    text-align: center;
    margin-bottom: 4rem;
    color: #00ff88;
    text-shadow: 0 0 25px rgba(0, 255, 136, 0.6);
    font-family: 'Courier New', monospace;
    position: relative;
    display: inline-block;
    margin-left: auto;
    margin-right: auto;
    width: 100%;
}

.section-title::after {
    content: '';
    position: absolute;
    bottom: -10px;
    left: 50%;
    transform: translateX(-50%);
    width: 100px;
    height: 3px;
    background: linear-gradient(90deg, transparent, #00ff88, transparent);
}

/* ── About ── */
.about-content {
    max-width: 900px;
    margin: 0 auto;
    text-align: center;
    font-size: clamp(1rem, 2.5vw, 1.3rem);
    line-height: 2;
    color: #c0c0c0;
    background: rgba(0, 0, 0, 0.6);
    padding: 2rem;
    border: 2px solid rgba(0, 255, 136, 0.3);
    border-radius: 15px;
    backdrop-filter: blur(10px);
    box-shadow: 0 10px 40px rgba(0, 0, 0, 0.5);
    width: 100%;
}

/* ── Terminal ── */
.terminal {
    background: rgba(0, 0, 0, 0.95);
    border: 2px solid #00ff88;
    border-radius: 15px;
    padding: 2rem;
    font-family: 'Courier New', monospace;
    max-width: 900px;
    margin: 3rem auto;
    box-shadow: 0 0 40px rgba(0, 255, 136, 0.4);
    width: 100%;
    animation: terminal-glow 3s ease-in-out infinite;
}

@keyframes terminal-glow {
    0%, 100% { box-shadow: 0 0 40px rgba(0, 255, 136, 0.4); }
    50% { box-shadow: 0 0 60px rgba(0, 255, 136, 0.6); }
}

.terminal-header {
    display: flex;
    gap: 0.7rem;
    margin-bottom: 1.5rem;
    align-items: center;
}

.terminal-btn {
    width: 14px;
    height: 14px;
    border-radius: 50%;
    transition: transform 0.2s;
    animation: btn-pulse 2s ease-in-out infinite;
}

@keyframes btn-pulse {
    0%, 100% { transform: scale(1); }
    50% { transform: scale(1.1); }
}

.terminal-btn:hover {
    transform: scale(1.3);
}

.terminal-btn.red { background: #ff5f56; box-shadow: 0 0 10px #ff5f56; }
.terminal-btn.yellow { background: #ffbd2e; box-shadow: 0 0 10px #ffbd2e; animation-delay: 0.3s; }
.terminal-btn.green { background: #27c93f; box-shadow: 0 0 10px #27c93f; animation-delay: 0.6s; }

.terminal-line {
    color: #00ff88;
    margin-bottom: 0.7rem;
    font-size: clamp(0.85rem, 2vw, 1.1rem);
}

.terminal-line span {
    color: #8a2be2;
}

/* ── Tech stack ── */
.tech-stack {
    display: flex;
    gap: 1.5rem;
    flex-wrap: wrap;
    justify-content: center;
    margin-top: 3rem;
    width: 100%;
}

.tech-item {
    background: rgba(0, 0, 0, 0.7);
    border: 2px solid rgba(0, 255, 136, 0.3);
    padding: 1rem 2rem;
    border-radius: 50px;
    font-size: clamp(1rem, 2vw, 1.2rem);
    color: #00ff88;
    transition: all 0.3s;
    box-shadow: 0 5px 20px rgba(0, 0, 0, 0.3);
    animation: tech-float 4s ease-in-out infinite;
}

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

.tech-item:nth-child(even) {
    animation-delay: 0.5s;
}

.tech-item:hover {
    transform: translateY(-8px) scale(1.1) rotate(5deg);
    box-shadow: 0 0 30px rgba(0, 255, 136, 0.6);
    border-color: #00ff88;
}

/* ── Projects ── */
.projects-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 2rem;
    margin-top: 3rem;
    width: 100%;
}

.project-card {
    background: rgba(0, 0, 0, 0.8);
    border: 2px solid rgba(0, 255, 136, 0.3);
    border-radius: 20px;
    padding: 2rem;
    transition: all 0.4s;
    backdrop-filter: blur(10px);
    position: relative;
    overflow: hidden;
}

.project-card::before {
    content: '';
    position: absolute;
    top: -2px;
    left: -2px;
    right: -2px;
    bottom: -2px;
    background: linear-gradient(45deg, #00ff88, #8a2be2, #00ff88);
    z-index: -1;
    opacity: 0;
    transition: opacity 0.4s;
    border-radius: 20px;
    background-size: 200% 200%;
    animation: gradient-shift 3s ease infinite;
}

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

.project-card:hover::before {
    opacity: 1;
}

.project-card:hover {
    transform: translateY(-15px) scale(1.02);
    box-shadow: 0 20px 60px rgba(0, 255, 136, 0.5);
}

.project-card:nth-child(odd) {
    animation: slide-in-left 0.8s ease-out;
}

.project-card:nth-child(even) {
    animation: slide-in-right 0.8s ease-out;
}

.project-icon {
    font-size: clamp(2.5rem, 6vw, 3.5rem);
    margin-bottom: 1.5rem;
    filter: drop-shadow(0 0 10px currentColor);
    animation: icon-bounce 2s ease-in-out infinite;
    display: inline-block;
}

@keyframes icon-bounce {
    0%, 100% { transform: translateY(0) scale(1); }
    50% { transform: translateY(-10px) scale(1.1); }
}

.project-title {
    font-size: clamp(1.4rem, 4vw, 2rem);
    color: #00ff88;
    margin-bottom: 1.5rem;
    text-shadow: 0 0 15px rgba(0, 255, 136, 0.5);
}

.project-stats {
    display: flex;
    gap: 1.5rem;
    margin: 1.5rem 0;
    font-size: clamp(0.85rem, 2vw, 1rem);
    color: #909090;
    flex-wrap: wrap;
}

.project-stat {
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.project-description {
    color: #b0b0b0;
    line-height: 1.8;
    margin-bottom: 1.5rem;
    font-size: clamp(0.9rem, 2vw, 1.05rem);
}

.project-features {
    list-style: none;
    color: #a0a0a0;
    line-height: 2;
}

.project-features li {
    font-size: clamp(0.85rem, 2vw, 1rem);
}

.project-features li::before {
    content: '▹ ';
    color: #00ff88;
    font-size: 1.3rem;
    margin-right: 0.5rem;
}

/* ── Links grid ── */
.links-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 2rem;
    margin-top: 3rem;
    width: 100%;
}

.link-card {
    background: rgba(0, 0, 0, 0.7);
    border: 2px solid rgba(138, 43, 226, 0.4);
    border-radius: 15px;
    padding: 2rem;
    text-align: center;
    transition: all 0.3s;
    text-decoration: none;
    display: block;
    position: relative;
    overflow: hidden;
}

.link-card::before {
    content: '';
    position: absolute;
    top: 50%;
    left: 50%;
    width: 0;
    height: 0;
    background: radial-gradient(circle, rgba(138, 43, 226, 0.3), transparent);
    transform: translate(-50%, -50%);
    transition: width 0.4s, height 0.4s;
    border-radius: 50%;
}

.link-card:hover::before {
    width: 300px;
    height: 300px;
}

.link-card:hover {
    transform: translateY(-8px) scale(1.05);
    border-color: #8a2be2;
    box-shadow: 0 15px 40px rgba(138, 43, 226, 0.5);
}

.link-card:nth-child(1) {
    animation: slide-in-left 0.8s ease-out;
}

.link-card:nth-child(2) {
    animation: slide-in-bottom 0.8s ease-out 0.2s backwards;
}

.link-card:nth-child(3) {
    animation: slide-in-right 0.8s ease-out 0.4s backwards;
}

.link-icon {
    font-size: clamp(2rem, 5vw, 3rem);
    margin-bottom: 1rem;
    filter: drop-shadow(0 0 10px currentColor);
    animation: link-spin 5s linear infinite;
    display: inline-block;
}

@keyframes link-spin {
    0% { transform: rotateY(0deg); }
    100% { transform: rotateY(360deg); }
}

.link-title {
    font-size: clamp(1.1rem, 3vw, 1.3rem);
    color: #8a2be2;
    font-weight: bold;
    text-shadow: 0 0 10px rgba(138, 43, 226, 0.3);
}

/* ── Status ── */
.status-box {
    max-width: 700px;
    margin: 3rem auto;
    background: rgba(0, 0, 0, 0.8);
    border: 2px solid rgba(0, 255, 136, 0.5);
    border-radius: 15px;
    padding: 2rem;
    text-align: center;
    box-shadow: 0 10px 50px rgba(0, 255, 136, 0.3);
    width: 100%;
}

.status-indicator {
    display: inline-block;
    width: 15px;
    height: 15px;
    background: #00ff88;
    border-radius: 50%;
    margin-right: 0.7rem;
    animation: pulse-dot 2s infinite;
    box-shadow: 0 0 15px #00ff88;
    vertical-align: middle;
}

@keyframes pulse-dot {
    0%, 100% { 
        box-shadow: 0 0 15px #00ff88, 0 0 30px #00ff88;
        transform: scale(1);
    }
    50% { 
        box-shadow: 0 0 25px #00ff88, 0 0 50px #00ff88;
        transform: scale(1.3);
    }
}

.status-text {
    font-size: clamp(1rem, 3vw, 1.2rem);
    color: #00ff88;
    margin-top: 1.5rem;
    line-height: 1.8;
}

/* ── Contact ── */
.contact-card {
    max-width: 700px;
    margin: 0 auto;
    background: rgba(0, 0, 0, 0.8);
    border: 3px solid rgba(138, 43, 226, 0.6);
    border-radius: 20px;
    padding: 3rem 2rem;
    text-align: center;
    backdrop-filter: blur(10px);
    box-shadow: 0 0 50px rgba(138, 43, 226, 0.4);
    width: 100%;
}

.contact-card h3 {
    font-size: clamp(1.5rem, 4vw, 2.2rem);
    margin-bottom: 2rem;
    color: #8a2be2;
    text-shadow: 0 0 25px rgba(138, 43, 226, 0.6);
}

.contact-card p {
    font-size: clamp(1rem, 3vw, 1.2rem);
    color: #c0c0c0;
    margin-bottom: 2.5rem;
    line-height: 1.8;
}

/* ── Footer ── */
footer {
    position: relative;
    z-index: 2;
    text-align: center;
    padding: 2.5rem 1rem;
    border-top: 1px solid rgba(0, 255, 136, 0.2);
    color: #505050;
    font-family: 'Courier New', monospace;
    font-size: 0.9rem;
    letter-spacing: 1px;
}

footer p {
    transition: color 0.3s;
}

footer p:hover {
    color: #00ff88;
}

/* ══════════════════════════════════
   MOBILE / RESPONSIVE
══════════════════════════════════ */
@media (max-width: 768px) {
    * {
        cursor: auto !important;
    }

    .cursor-dot,
    .cursor-trail {
        display: none !important;
    }

    /* Nav mobile */
    .hamburger {
        display: flex;
    }

    .nav-links {
        position: fixed;
        top: 0;
        right: -100%;
        width: min(80vw, 320px);
        height: 100vh;
        background: rgba(0, 0, 0, 0.97);
        backdrop-filter: blur(20px);
        flex-direction: column;
        align-items: center;
        justify-content: center;
        gap: 2.5rem;
        border-left: 2px solid rgba(0, 255, 136, 0.3);
        transition: right 0.35s cubic-bezier(0.4, 0, 0.2, 1);
        z-index: 1000;
    }

    .nav-links.active {
        right: 0;
    }

    .nav-links a {
        font-size: 1.3rem;
    }

    /* Stats */
    .stats-container {
        flex-direction: column;
        align-items: stretch;
        gap: 1rem;
    }

    .stat-box {
        min-width: unset;
        flex: unset;
    }

    /* CTA buttons */
    .cta-buttons {
        flex-direction: column;
        align-items: stretch;
    }

    .btn {
        min-width: unset;
        text-align: center;
    }

    /* Projects: single column */
    .projects-grid {
        grid-template-columns: 1fr;
    }

    /* Tech items */
    .tech-stack {
        gap: 1rem;
    }

    .tech-item {
        padding: 0.8rem 1.4rem;
        font-size: 0.95rem;
        /* Disable float animation on mobile for perf */
        animation: none;
    }

    /* Back to top */
    .back-to-top {
        width: 44px;
        height: 44px;
        font-size: 1.4rem;
        bottom: 1.2rem;
        right: 1.2rem;
    }

    /* Sections */
    section {
        padding: 4rem 1.2rem;
        min-height: auto;
    }

    /* Terminal */
    .terminal {
        padding: 1.5rem;
    }

    /* Disable parallax-related transforms on mobile */
    .hero {
        transform: none !important;
    }

    /* Links grid */
    .links-grid {
        grid-template-columns: 1fr;
    }

    /* Disable spinning link icons on mobile for perf */
    .link-icon {
        animation: none;
    }

    /* Project card animations can be simplified */
    .project-card:nth-child(odd),
    .project-card:nth-child(even) {
        animation: none;
    }
}

@media (max-width: 480px) {
    .logo {
        font-size: 1.1rem;
    }

    .glitch {
        letter-spacing: 1px;
    }

    .terminal-line {
        font-size: 0.8rem;
        word-break: break-word;
    }

    .status-box,
    .contact-card {
        padding: 1.5rem 1rem;
    }
}
