:root {
    --bg: #000000;
    --surface: rgba(255, 255, 255, 0.03);
    --surface-hover: rgba(255, 255, 255, 0.06);
    --border: rgba(255, 255, 255, 0.1);
    --text: #f5f5f7;
    --text-muted: #86868b;
    --text-subtle: #424245;
    --accent: #8b7cf6;
    --accent-glow: rgba(139, 124, 246, 0.3);
    --font: 'Inter', -apple-system, BlinkMacSystemFont, 'Noto Sans SC', sans-serif;
    --mono: 'JetBrains Mono', ui-monospace, monospace;
    --max-w: 1000px;
    --cursor-size: 10px;
}

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

html {
    scroll-behavior: smooth;
    background: var(--bg);
}

body {
    background: var(--bg);
    color: var(--text);
    font-family: var(--font);
    font-feature-settings: "cv01", "ss03", "cv11";
    -webkit-font-smoothing: antialiased;
    overflow-x: hidden;
}

body.has-custom-cursor,
body.has-custom-cursor a,
body.has-custom-cursor button {
    cursor: none;
}

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

/* === Custom Cursor === */
.cursor {
    position: fixed;
    top: 0;
    left: 0;
    width: var(--cursor-size);
    height: var(--cursor-size);
    background-color: var(--text);
    border-radius: 50%;
    pointer-events: none;
    z-index: 10000;
    transform: translate(-50%, -50%);
    transition: width 0.4s cubic-bezier(0.16, 1, 0.3, 1), 
                height 0.4s cubic-bezier(0.16, 1, 0.3, 1), 
                background-color 0.4s ease;
}

.cursor.hovering {
    width: 60px;
    height: 60px;
    background-color: rgba(255, 255, 255, 0.05);
    backdrop-filter: blur(8px);
    -webkit-backdrop-filter: blur(8px);
    border: 1px solid rgba(255, 255, 255, 0.15);
}

/* === Backgrounds === */
.bg-container {
    position: fixed;
    inset: 0;
    z-index: 0;
    pointer-events: none;
}

.grid-overlay {
    position: absolute;
    inset: 0;
    background-image: linear-gradient(to right, rgba(255,255,255,0.02) 1px, transparent 1px),
                      linear-gradient(to bottom, rgba(255,255,255,0.02) 1px, transparent 1px);
    background-size: 50px 50px;
    mask-image: linear-gradient(to bottom, black 0%, transparent 100%);
    -webkit-mask-image: linear-gradient(to bottom, black 0%, transparent 100%);
}

.aurora {
    position: absolute;
    inset: 0;
    filter: blur(100px);
    opacity: 0.25;
}

.aurora__orb {
    position: absolute;
    border-radius: 50%;
}

.aurora__orb--1 { width: 40vw; height: 40vw; background: #3b82f6; top: -10%; left: 10%; animation: float 30s ease-in-out infinite; }
.aurora__orb--2 { width: 35vw; height: 35vw; background: #8b7cf6; bottom: 0%; right: 5%; animation: float 25s ease-in-out infinite reverse; }

@keyframes float {
    0% { transform: translate(0, 0); }
    50% { transform: translate(5vw, 5vw); }
    100% { transform: translate(0, 0); }
}

/* === Nav === */
.nav {
    position: fixed;
    top: 32px;
    left: 50%;
    transform: translateX(-50%);
    z-index: 1000;
    padding: 6px;
    background: rgba(10, 10, 12, 0.6);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    border: 1px solid var(--border);
    border-radius: 100px;
    transition: all 0.5s cubic-bezier(0.16, 1, 0.3, 1);
}

.nav__inner {
    display: flex;
    align-items: center;
    padding: 0 16px;
    gap: 32px;
}

.nav__logo {
    font-size: 1rem;
    font-weight: 800;
    color: var(--text);
}

.nav__links { display: flex; gap: 20px; }
.nav__link {
    font-size: 0.8rem;
    font-weight: 500;
    color: var(--text-muted);
    transition: color 0.3s;
}
.nav__link:hover { color: var(--text); }

/* === Hero === */
.hero {
    min-height: 100vh;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    text-align: center;
    padding: 120px 24px 80px; /* Increased top padding to avoid nav overlap */
    position: relative;
}

.hero__badge {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 5px 12px;
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid var(--border);
    border-radius: 100px;
    font-family: var(--mono);
    font-size: 0.65rem;
    color: #10b981;
    margin-bottom: 40px;
    letter-spacing: 0.05em;
    text-transform: uppercase;
}

.hero__badge-dot {
    width: 5px; height: 5px; border-radius: 50%; background: #10b981;
    box-shadow: 0 0 8px #10b981;
}

.hero__avatar-wrap {
    margin-bottom: 24px;
    position: relative;
}

.hero__avatar {
    width: 64px; height: 64px; border-radius: 50%; object-fit: cover;
    filter: grayscale(0.2);
    border: 1px solid var(--border);
}

.hero__title {
    font-size: clamp(3rem, 10vw, 7rem);
    font-weight: 900;
    letter-spacing: -0.05em;
    line-height: 1.05;
    margin-bottom: 24px;
}

.gradient-text {
    background: linear-gradient(180deg, #fff 0%, rgba(255,255,255,0.5) 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
}

.hero__content {
    display: flex;
    flex-direction: column;
    align-items: center;
    width: 100%;
}

.hero__bio {
    font-size: clamp(1rem, 2.5vw, 1.25rem);
    color: var(--text-muted);
    line-height: 1.6;
    max-width: 600px;
    margin-bottom: 40px;
}

.hero__socials { display: flex; gap: 12px; }

.social-btn {
    padding: 12px 24px;
    border-radius: 100px;
    font-size: 0.85rem;
    font-weight: 600;
    border: 1px solid var(--border);
    background: var(--surface);
    transition: all 0.3s cubic-bezier(0.16, 1, 0.3, 1);
}

.social-btn--primary {
    background: var(--text);
    color: var(--bg);
    border: none;
}

.social-btn:hover {
    background: var(--surface-hover);
    transform: translateY(-2px);
    border-color: rgba(255,255,255,0.2);
}

/* === Bento Grid === */
.section {
    max-width: var(--max-w);
    margin: 0 auto;
    padding: 100px 24px;
}

.section__header { margin-bottom: 60px; }
.section__eyebrow {
    font-family: var(--mono); font-size: 0.7rem; color: var(--accent);
    text-transform: uppercase; letter-spacing: 0.15em; display: block; margin-bottom: 12px;
}
.section__title { font-size: 2.5rem; font-weight: 800; letter-spacing: -0.03em; }

.bento {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    grid-auto-rows: 260px;
    gap: 16px;
}

.bento-card {
    position: relative;
    background: var(--surface);
    border: 1px solid var(--border);
    border-radius: 24px;
    padding: 32px;
    overflow: hidden;
    transition: all 0.5s cubic-bezier(0.16, 1, 0.3, 1);
    display: flex; flex-direction: column;
}

.bento-card--large { grid-column: span 2; }
/* Removed --tall to keep Obsidian balanced */

.bento-card:hover {
    background: var(--surface-hover);
    border-color: rgba(255,255,255,0.2);
    transform: translateY(-4px);
}

.card-icon {
    width: 40px; height: 40px; margin-bottom: 24px;
    display: flex; align-items: center; justify-content: center;
}
.card-icon svg, .card-icon img { width: 100%; height: 100%; object-fit: contain; }

.card-title { font-size: 1.15rem; font-weight: 700; margin-bottom: 10px; letter-spacing: -0.01em; }
.card-desc { font-size: 0.82rem; color: var(--text-muted); line-height: 1.6; }

.card-link-icon {
    position: absolute; top: 32px; right: 32px;
    width: 28px; height: 28px; border-radius: 50%;
    background: var(--text); color: var(--bg);
    display: flex; align-items: center; justify-content: center;
    opacity: 0; transform: scale(0.8); transition: all 0.3s;
}
.bento-card:hover .card-link-icon { opacity: 1; transform: scale(1); }

/* Glow Effect */
.bento-card::after {
    content: ''; position: absolute; inset: 0;
    background: radial-gradient(circle at var(--mouse-x) var(--mouse-y), rgba(255,255,255,0.05) 0%, transparent 70%);
    opacity: 0; transition: opacity 0.3s;
}
.bento-card:hover::after { opacity: 1; }

/* === Marquee === */
.tech-marquee {
    padding: 60px 0;
    background: rgba(255,255,255,0.02);
    border-y: 1px solid var(--border);
    overflow: hidden;
}

.tech-track {
    display: flex; gap: 60px;
    animation: scroll 40s linear infinite;
}

.tech-item {
    font-family: var(--mono); font-size: 1rem; color: var(--text-subtle);
    white-space: nowrap; display: flex; align-items: center; gap: 12px;
}

@keyframes scroll {
    from { transform: translateX(0); }
    to { transform: translateX(-50%); }
}

/* === Footer === */
.footer {
    padding: 80px 24px; text-align: center; border-top: 1px solid var(--border);
}
.footer-text { font-family: var(--mono); font-size: 0.75rem; color: var(--text-subtle); letter-spacing: 0.05em; }

/* === Reveal === */
.reveal { opacity: 0; transform: translateY(20px); transition: all 0.8s cubic-bezier(0.16, 1, 0.3, 1); }
.reveal.active { opacity: 1; transform: translateY(0); }

@media (max-width: 768px) {
    .bento { grid-template-columns: 1fr; grid-auto-rows: auto; }
    .bento-card--large { grid-column: span 1; }
    .hero { padding-top: 140px; }
    .cursor { display: none; }
    body { cursor: auto; }
}
\n/* Accessibility: Respect user motion preferences */\n@media (prefers-reduced-motion: reduce) {\n    *, *::before, *::after {\n        animation-duration: 0.01ms !important;\n        animation-iteration-count: 1 !important;\n        transition-duration: 0.01ms !important;\n        scroll-behavior: auto !important;\n    }\n    .reveal { opacity: 1 !important; transform: none !important; transition: none !important; }\n    .cursor { display: none !important; }\n    body { cursor: auto !important; }\n}
