/* ============================================
   ADITYA THAKER - PORTFOLIO
   Systems & AI Engineer
   Dark theme with systems-oriented aesthetic
   ============================================ */

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

:root {
    --bg: #0a0a0c;
    --bg-alt: #0f0f13;
    --bg-card: #141419;
    --bg-card-hover: #1a1a22;
    --border: #1e1e28;
    --border-hover: #2a2a3a;
    --text: #e4e4e7;
    --text-secondary: #a1a1aa;
    --text-muted: #71717a;
    --accent: #7c3aed;
    --accent-hover: #9061f0;
    --accent-dim: rgba(124, 58, 237, 0.10);
    --accent-glow: rgba(124, 58, 237, 0.20);
    --steel: #94a3b8;
    --steel-dim: rgba(148, 163, 184, 0.10);
    --green: #22c55e;
    --green-dim: rgba(34, 197, 94, 0.15);
    --term-green: #50fa7b;
    --term-cyan: #8be9fd;
    --term-yellow: #f1fa8c;
    --term-pink: #ff79c6;
    --term-orange: #ffb86c;
    --term-white: #f8f8f2;
    --font-sans: 'Inter', -apple-system, BlinkMacSystemFont, sans-serif;
    --font-mono: 'JetBrains Mono', 'Fira Code', monospace;
    --ease-out: cubic-bezier(0.16, 1, 0.3, 1);
    --ease-spring: cubic-bezier(0.34, 1.56, 0.64, 1);
    --nav-height: 72px;
}

html {
    scroll-behavior: smooth;
    scroll-padding-top: var(--nav-height);
}

body {
    font-family: var(--font-sans);
    background: var(--bg);
    color: var(--text);
    line-height: 1.6;
    overflow-x: hidden;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
}

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

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

ul {
    list-style: none;
}

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

.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 24px;
}

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

/* --- Ambient Background --- */
.bg-grid {
    position: fixed;
    inset: 0;
    background-image:
        linear-gradient(rgba(255,255,255,0.02) 1px, transparent 1px),
        linear-gradient(90deg, rgba(255,255,255,0.02) 1px, transparent 1px);
    background-size: 60px 60px;
    pointer-events: none;
    z-index: 0;
}

.bg-glow {
    position: fixed;
    width: 600px;
    height: 600px;
    border-radius: 50%;
    filter: blur(120px);
    opacity: 0.08;
    pointer-events: none;
    z-index: 0;
}

.bg-glow--1 {
    top: -200px;
    right: -100px;
    background: var(--accent);
    animation: float1 20s ease-in-out infinite;
}

.bg-glow--2 {
    bottom: -200px;
    left: -200px;
    background: #475569;
    animation: float2 25s ease-in-out infinite;
}

@keyframes float1 {
    0%, 100% { transform: translate(0, 0); }
    50% { transform: translate(-80px, 60px); }
}

@keyframes float2 {
    0%, 100% { transform: translate(0, 0); }
    50% { transform: translate(60px, -80px); }
}

/* --- Cursor Glow --- */
.cursor-glow {
    position: fixed;
    width: 400px;
    height: 400px;
    border-radius: 50%;
    background: radial-gradient(circle, var(--accent-glow) 0%, transparent 70%);
    pointer-events: none;
    z-index: 1;
    opacity: 0;
    transform: translate(-50%, -50%);
    transition: opacity 0.4s ease;
}

body:hover .cursor-glow {
    opacity: 1;
}

/* --- Frosted Glass Orbs --- */
.glass-orbs {
    position: absolute;
    inset: 0;
    overflow: hidden;
    pointer-events: none;
    z-index: 0;
}

.glass-orb {
    position: absolute;
    border-radius: 50%;
    background: radial-gradient(
        circle at 30% 30%,
        rgba(124, 58, 237, 0.08) 0%,
        rgba(124, 58, 237, 0.03) 50%,
        transparent 70%
    );
    border: 1px solid rgba(124, 58, 237, 0.08);
    backdrop-filter: blur(1px);
    -webkit-backdrop-filter: blur(1px);
    transition: transform 0.1s linear;
    will-change: transform;
}

.glass-orb::after {
    content: '';
    position: absolute;
    inset: 4px;
    border-radius: 50%;
    background: radial-gradient(
        circle at 25% 25%,
        rgba(255, 255, 255, 0.04) 0%,
        transparent 60%
    );
}

.glass-orb--1 {
    width: 320px;
    height: 320px;
    top: 12%;
    right: 8%;
    animation: orb-drift-1 18s ease-in-out infinite;
}

.glass-orb--2 {
    width: 180px;
    height: 180px;
    top: 55%;
    right: 35%;
    animation: orb-drift-2 22s ease-in-out infinite;
}

.glass-orb--3 {
    width: 240px;
    height: 240px;
    bottom: 10%;
    left: 5%;
    animation: orb-drift-3 20s ease-in-out infinite;
    background: radial-gradient(
        circle at 30% 30%,
        rgba(109, 40, 217, 0.06) 0%,
        rgba(109, 40, 217, 0.02) 50%,
        transparent 70%
    );
    border-color: rgba(109, 40, 217, 0.06);
}

.glass-orb--4 {
    width: 120px;
    height: 120px;
    top: 30%;
    left: 42%;
    animation: orb-drift-4 15s ease-in-out infinite;
}

.glass-orb--5 {
    width: 200px;
    height: 200px;
    top: 8%;
    left: 15%;
    animation: orb-drift-5 25s ease-in-out infinite;
    background: radial-gradient(
        circle at 30% 30%,
        rgba(139, 92, 246, 0.05) 0%,
        rgba(139, 92, 246, 0.02) 50%,
        transparent 70%
    );
    border-color: rgba(139, 92, 246, 0.05);
}

@keyframes orb-drift-1 {
    0%, 100% { transform: translate(0, 0) scale(1); }
    33% { transform: translate(-30px, 20px) scale(1.03); }
    66% { transform: translate(15px, -15px) scale(0.97); }
}

@keyframes orb-drift-2 {
    0%, 100% { transform: translate(0, 0) scale(1); }
    50% { transform: translate(25px, -30px) scale(1.05); }
}

@keyframes orb-drift-3 {
    0%, 100% { transform: translate(0, 0); }
    40% { transform: translate(20px, -25px); }
    80% { transform: translate(-15px, 10px); }
}

@keyframes orb-drift-4 {
    0%, 100% { transform: translate(0, 0) scale(1); }
    50% { transform: translate(-20px, 25px) scale(1.08); }
}

@keyframes orb-drift-5 {
    0%, 100% { transform: translate(0, 0); }
    30% { transform: translate(18px, 12px); }
    70% { transform: translate(-12px, -18px); }
}

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

.nav--scrolled {
    background: rgba(10, 10, 12, 0.85);
    backdrop-filter: blur(16px);
    -webkit-backdrop-filter: blur(16px);
    box-shadow: 0 1px 0 var(--border);
}

.nav__logo {
    font-family: var(--font-mono);
    font-size: 1.1rem;
    font-weight: 600;
    letter-spacing: -0.02em;
    color: var(--text);
    transition: color 0.2s;
}

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

.nav__logo-bracket {
    color: var(--steel);
}

.nav__links {
    display: flex;
    gap: 32px;
}

.nav__link {
    font-size: 0.875rem;
    font-weight: 500;
    color: var(--text-secondary);
    transition: color 0.2s;
    position: relative;
}

.nav__link::after {
    content: '';
    position: absolute;
    bottom: -4px;
    left: 0;
    width: 0;
    height: 1px;
    background: var(--accent);
    transition: width 0.3s var(--ease-out);
}

.nav__link:hover {
    color: var(--text);
}

.nav__link:hover::after,
.nav__link--active::after {
    width: 100%;
}

.nav__link--active {
    color: var(--text);
}

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

.nav__toggle span {
    display: block;
    width: 22px;
    height: 2px;
    background: var(--text);
    transition: all 0.3s ease;
    border-radius: 1px;
}

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

.nav__toggle.active span:nth-child(2) {
    opacity: 0;
}

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

/* --- Mobile Menu --- */
.mobile-menu {
    position: fixed;
    inset: 0;
    background: rgba(10, 10, 12, 0.95);
    backdrop-filter: blur(24px);
    -webkit-backdrop-filter: blur(24px);
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 32px;
    z-index: 999;
    opacity: 0;
    pointer-events: none;
    transition: opacity 0.3s ease;
}

.mobile-menu.active {
    opacity: 1;
    pointer-events: all;
}

.mobile-menu__link {
    font-size: 1.5rem;
    font-weight: 500;
    color: var(--text-secondary);
    transition: color 0.2s;
}

.mobile-menu__link:hover {
    color: var(--accent);
}

/* --- Hero --- */
.hero {
    min-height: 100vh;
    display: grid;
    grid-template-columns: 1fr 1fr;
    align-items: center;
    gap: 60px;
    padding: 0 32px;
    max-width: 1400px;
    margin: 0 auto;
    position: relative;
    z-index: 2;
}

.hero__container {
    padding-top: var(--nav-height);
    position: relative;
    z-index: 1;
}

.hero__status {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 6px 16px 6px 12px;
    background: rgba(161, 161, 170, 0.08);
    border: 1px solid rgba(161, 161, 170, 0.15);
    border-radius: 100px;
    margin-bottom: 32px;
}

.hero__status-dot {
    width: 8px;
    height: 8px;
    background: var(--text-muted);
    border-radius: 50%;
    animation: pulse-dot 2s ease-in-out infinite;
}

@keyframes pulse-dot {
    0%, 100% { opacity: 1; box-shadow: 0 0 0 0 rgba(113, 113, 122, 0.3); }
    50% { opacity: 0.6; box-shadow: 0 0 0 6px rgba(113, 113, 122, 0); }
}

.hero__status-text {
    font-size: 0.8rem;
    font-weight: 500;
    color: var(--text);
}

.hero__title {
    font-size: clamp(3rem, 7vw, 5.5rem);
    font-weight: 700;
    line-height: 1;
    letter-spacing: -0.04em;
    margin-bottom: 20px;
}

.hero__title-line {
    display: block;
}

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

.hero__subtitle {
    font-family: var(--font-mono);
    font-size: 1rem;
    color: var(--steel);
    margin-bottom: 20px;
    font-weight: 500;
}

.hero__description {
    font-size: 1.05rem;
    color: var(--text-secondary);
    max-width: 520px;
    line-height: 1.7;
    margin-bottom: 36px;
}

.hero__actions {
    display: flex;
    gap: 16px;
    margin-bottom: 60px;
}

.hero__scroll-hint {
    display: flex;
    align-items: center;
    gap: 12px;
    color: var(--text-muted);
    font-size: 0.75rem;
    font-weight: 500;
    text-transform: uppercase;
    letter-spacing: 0.1em;
}

.hero__scroll-line {
    width: 40px;
    height: 1px;
    background: var(--text-muted);
    position: relative;
    overflow: hidden;
}

.hero__scroll-line::after {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: var(--accent);
    animation: scroll-line 2s ease-in-out infinite;
}

@keyframes scroll-line {
    0% { left: -100%; }
    100% { left: 100%; }
}

/* --- Terminal --- */
.hero__terminal {
    padding-top: var(--nav-height);
    position: relative;
    z-index: 1;
}

.terminal {
    background: var(--bg-card);
    border: 1px solid var(--border);
    border-radius: 12px;
    overflow: hidden;
    box-shadow: 0 20px 60px rgba(0,0,0,0.4);
    font-family: var(--font-mono);
    min-height: 300px;
}

.terminal__header {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 12px 16px;
    background: rgba(255,255,255,0.03);
    border-bottom: 1px solid var(--border);
}

.terminal__dots {
    display: flex;
    gap: 6px;
}

.terminal__dots span {
    width: 10px;
    height: 10px;
    border-radius: 50%;
}

.terminal__dots span:nth-child(1) { background: #ff5f57; }
.terminal__dots span:nth-child(2) { background: #febc2e; }
.terminal__dots span:nth-child(3) { background: #28c840; }

.terminal__title {
    font-size: 0.75rem;
    color: var(--text-muted);
}

.terminal__body {
    padding: 16px 20px;
    font-size: 0.82rem;
    line-height: 1.7;
    min-height: 260px;
    max-height: 400px;
    overflow-y: auto;
    cursor: text;
}

.terminal__body::-webkit-scrollbar {
    width: 4px;
}

.terminal__body::-webkit-scrollbar-thumb {
    background: var(--border);
    border-radius: 2px;
}

.terminal__commands-bar {
    display: flex;
    flex-wrap: wrap;
    gap: 6px;
    margin-bottom: 14px;
    padding-bottom: 12px;
    border-bottom: 1px solid var(--border);
}

.terminal__cmd-chip {
    padding: 3px 10px;
    background: rgba(255, 255, 255, 0.04);
    border: 1px solid var(--border);
    border-radius: 4px;
    color: var(--text-muted);
    font-family: var(--font-mono);
    font-size: 0.72rem;
    cursor: pointer;
    transition: all 0.15s ease;
}

.terminal__cmd-chip:hover {
    color: var(--term-cyan);
    border-color: rgba(139, 233, 253, 0.3);
    background: rgba(139, 233, 253, 0.08);
}

.terminal__input-line {
    display: flex;
    align-items: center;
    gap: 8px;
}

.terminal__prompt {
    user-select: none;
    flex-shrink: 0;
}

.terminal__prompt-user {
    color: var(--term-green);
    font-weight: 600;
}

.terminal__prompt-dir {
    color: var(--term-cyan);
    font-weight: 500;
}

.terminal__prompt-arrow {
    color: var(--term-green);
    font-weight: 700;
}

.terminal__prompt-git {
    color: var(--term-pink);
    font-size: 0.78rem;
}

.terminal__input {
    flex: 1;
    background: none;
    border: none;
    outline: none;
    color: var(--term-white);
    font-family: var(--font-mono);
    font-size: 0.82rem;
    caret-color: var(--term-green);
    padding: 0;
}

.terminal__input::placeholder {
    color: var(--text-muted);
    opacity: 0.5;
}

.terminal__history-cmd {
    display: flex;
    gap: 8px;
    margin-bottom: 2px;
}

.terminal__history-prompt {
    user-select: none;
    flex-shrink: 0;
}

.terminal__history-text {
    color: var(--text-muted);
}

.terminal__output {
    color: var(--term-white);
    margin-bottom: 2px;
    white-space: pre-wrap;
    word-break: break-word;
}

.terminal__output--accent {
    color: var(--term-cyan);
}

.terminal__output--green {
    color: var(--term-green);
}

.terminal__output--muted {
    color: var(--text-muted);
}

.terminal__output--heading {
    color: var(--term-yellow);
    font-weight: 600;
    margin-top: 4px;
}

.terminal__divider {
    border: none;
    border-top: 1px solid var(--border);
    margin: 8px 0;
}

/* --- Buttons --- */
.btn {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 12px 24px;
    border-radius: 8px;
    font-size: 0.9rem;
    font-weight: 500;
    font-family: var(--font-sans);
    cursor: pointer;
    transition: all 0.25s var(--ease-out);
    border: none;
    position: relative;
    overflow: hidden;
}

.btn--primary {
    background: rgba(124, 58, 237, 0.15);
    color: var(--accent-hover);
    border: 1px solid rgba(124, 58, 237, 0.3);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
}

.btn--primary:hover {
    background: rgba(124, 58, 237, 0.25);
    border-color: rgba(124, 58, 237, 0.5);
    transform: translateY(-2px);
    box-shadow: 0 8px 30px rgba(124, 58, 237, 0.15);
}

.btn--ghost {
    background: transparent;
    color: var(--text-secondary);
    border: 1px solid var(--border);
}

.btn--ghost:hover {
    color: var(--text);
    border-color: var(--border-hover);
    background: rgba(255,255,255,0.03);
}

.btn--lg {
    padding: 16px 32px;
    font-size: 1rem;
}

/* --- Section --- */
.section {
    padding: 120px 0;
    position: relative;
    z-index: 2;
}

.section--alt {
    background: var(--bg-alt);
}

.section__header {
    display: flex;
    align-items: center;
    gap: 16px;
    margin-bottom: 60px;
}

.section__label {
    font-family: var(--font-mono);
    font-size: 0.85rem;
    color: var(--steel);
    font-weight: 500;
}

.section__title {
    font-size: 1.75rem;
    font-weight: 700;
    letter-spacing: -0.02em;
}

.section__line {
    flex: 1;
    height: 1px;
    background: var(--border);
}

/* --- About --- */
.about__grid {
    display: grid;
    grid-template-columns: 1.2fr 0.8fr;
    gap: 60px;
    align-items: start;
}

.about__text {
    color: var(--text-secondary);
    font-size: 1rem;
    line-height: 1.8;
    margin-bottom: 20px;
}

.about__text strong {
    color: var(--text);
    font-weight: 600;
}

.about__details {
    display: flex;
    flex-direction: column;
    gap: 16px;
}

.about__detail-card {
    display: flex;
    gap: 16px;
    padding: 20px;
    background: var(--bg-card);
    border: 1px solid var(--border);
    border-radius: 12px;
    transition: border-color 0.3s, transform 0.3s var(--ease-out);
}

.about__detail-card:hover {
    border-color: var(--border-hover);
    transform: translateY(-2px);
}

.about__detail-icon {
    width: 40px;
    height: 40px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: var(--steel-dim);
    border-radius: 10px;
    color: var(--steel);
    flex-shrink: 0;
}

.about__detail-card h4 {
    font-size: 0.9rem;
    font-weight: 600;
    margin-bottom: 4px;
}

.about__detail-card p {
    font-size: 0.85rem;
    color: var(--text-secondary);
    line-height: 1.5;
}

/* --- Education --- */
.education__grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 24px;
}

.education__card {
    display: flex;
    gap: 20px;
    padding: 28px;
    background: var(--bg-card);
    border: 1px solid var(--border);
    border-radius: 16px;
    transition: border-color 0.3s, transform 0.3s var(--ease-out);
}

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

.education__icon {
    width: 48px;
    height: 48px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: var(--steel-dim);
    border-radius: 12px;
    color: var(--steel);
    flex-shrink: 0;
}

.education__info h3 {
    font-size: 1.05rem;
    font-weight: 600;
    margin-bottom: 4px;
}

.education__school {
    font-size: 0.88rem;
    color: var(--text-secondary);
    margin-bottom: 10px;
}

.education__meta {
    display: flex;
    gap: 16px;
    margin-bottom: 12px;
    flex-wrap: wrap;
}

.education__date {
    font-family: var(--font-mono);
    font-size: 0.78rem;
    color: var(--text-muted);
}

.education__gpa {
    font-family: var(--font-mono);
    font-size: 0.78rem;
    color: var(--accent);
    font-weight: 500;
}

.education__coursework {
    font-size: 0.82rem;
    color: var(--text-muted);
    line-height: 1.5;
}

/* --- Timeline --- */
.timeline {
    position: relative;
}

.timeline__item {
    display: flex;
    gap: 24px;
    padding-bottom: 48px;
}

.timeline__item:last-child {
    padding-bottom: 0;
}

.timeline__marker {
    display: flex;
    flex-direction: column;
    align-items: center;
    flex-shrink: 0;
    width: 20px;
}

.timeline__dot {
    width: 12px;
    height: 12px;
    border-radius: 50%;
    border: 2px solid var(--steel);
    background: var(--bg);
    flex-shrink: 0;
    position: relative;
    z-index: 1;
    transition: background 0.3s, box-shadow 0.3s;
}

.timeline__item:hover .timeline__dot {
    background: var(--accent);
    border-color: var(--accent);
    box-shadow: 0 0 12px rgba(124, 58, 237, 0.3);
}

.timeline__connector {
    width: 1px;
    flex: 1;
    background: var(--border);
    margin-top: 8px;
}

.timeline__content {
    flex: 1;
    padding: 24px;
    background: var(--bg-card);
    border: 1px solid var(--border);
    border-radius: 12px;
    transition: border-color 0.3s, transform 0.3s var(--ease-out);
}

.timeline__content:hover {
    border-color: var(--border-hover);
    transform: translateX(4px);
}

.timeline__header {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    gap: 16px;
    margin-bottom: 16px;
    flex-wrap: wrap;
}

.timeline__role {
    font-size: 1.1rem;
    font-weight: 600;
    margin-bottom: 4px;
}

.timeline__company {
    font-size: 0.9rem;
    color: var(--text-secondary);
}

.timeline__date {
    font-family: var(--font-mono);
    font-size: 0.8rem;
    color: var(--text-muted);
    white-space: nowrap;
}

.timeline__details {
    list-style: none;
    margin-bottom: 16px;
}

.timeline__details li {
    position: relative;
    padding-left: 16px;
    margin-bottom: 10px;
    font-size: 0.9rem;
    color: var(--text-secondary);
    line-height: 1.6;
}

.timeline__details li::before {
    content: '';
    position: absolute;
    left: 0;
    top: 9px;
    width: 4px;
    height: 4px;
    border-radius: 50%;
    background: var(--steel);
}

.timeline__gpa {
    font-family: var(--font-mono);
    font-size: 0.85rem;
    color: var(--accent);
    margin-bottom: 8px;
}

.timeline__coursework {
    font-size: 0.85rem;
    color: var(--text-muted);
    line-height: 1.6;
}

.timeline__tags {
    display: flex;
    flex-wrap: wrap;
    gap: 6px;
}

/* --- Tags --- */
.tag {
    display: inline-block;
    padding: 4px 12px;
    background: var(--steel-dim);
    color: var(--steel);
    border-radius: 6px;
    font-size: 0.75rem;
    font-weight: 500;
    font-family: var(--font-mono);
}

.tag--sm {
    padding: 3px 8px;
    font-size: 0.7rem;
}

/* --- Projects Grid --- */
.projects__grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(360px, 1fr));
    gap: 24px;
}

.project-card {
    background: var(--bg-card);
    border: 1px solid var(--border);
    border-radius: 16px;
    padding: 28px;
    transition: all 0.4s var(--ease-out);
    position: relative;
    overflow: hidden;
}

.project-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 1px;
    background: linear-gradient(90deg, transparent, var(--steel), transparent);
    opacity: 0;
    transition: opacity 0.4s;
}

.project-card:hover {
    border-color: var(--border-hover);
    transform: translateY(-4px);
    box-shadow: 0 12px 40px rgba(0,0,0,0.3);
}

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

.project-card__header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 20px;
}

.project-card__icon {
    width: 44px;
    height: 44px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: var(--steel-dim);
    border-radius: 10px;
    color: var(--steel);
}

.project-card__links {
    display: flex;
    gap: 8px;
}

.project-card__link {
    width: 36px;
    height: 36px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 8px;
    color: var(--text-muted);
    transition: all 0.2s;
}

.project-card__link:hover {
    color: var(--text);
    background: var(--steel-dim);
}

.project-card__category {
    font-family: var(--font-mono);
    font-size: 0.7rem;
    color: var(--text-muted);
    text-transform: uppercase;
    letter-spacing: 0.08em;
    margin-bottom: 8px;
    display: block;
}

.project-card__title {
    font-size: 1.15rem;
    font-weight: 600;
    margin-bottom: 12px;
    letter-spacing: -0.01em;
}

.project-card__description {
    font-size: 0.88rem;
    color: var(--text-secondary);
    line-height: 1.65;
    margin-bottom: 20px;
}

.project-card__tags {
    display: flex;
    flex-wrap: wrap;
    gap: 6px;
    margin-bottom: 16px;
}

.project-card__metric {
    display: flex;
    align-items: baseline;
    gap: 8px;
    padding-top: 16px;
    border-top: 1px solid var(--border);
}

.project-card__metric-value {
    font-family: var(--font-mono);
    font-size: 1.5rem;
    font-weight: 700;
    color: var(--accent);
}

.project-card__metric-label {
    font-size: 0.8rem;
    color: var(--text-muted);
}

/* --- Skills --- */
.skills__grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 24px;
}

.skill-group {
    background: var(--bg-card);
    border: 1px solid var(--border);
    border-radius: 16px;
    padding: 28px;
    transition: border-color 0.3s, transform 0.3s var(--ease-out);
}

.skill-group:hover {
    border-color: var(--border-hover);
    transform: translateY(-2px);
}

.skill-group__header {
    display: flex;
    align-items: center;
    gap: 12px;
    margin-bottom: 20px;
    color: var(--text);
}

.skill-group__header svg {
    color: var(--steel);
}

.skill-group__header h3 {
    font-size: 0.95rem;
    font-weight: 600;
}

.skill-group__items {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
}

.skill-tag {
    padding: 6px 14px;
    background: rgba(255,255,255,0.04);
    border: 1px solid var(--border);
    border-radius: 8px;
    font-size: 0.8rem;
    font-weight: 500;
    color: var(--text-secondary);
    transition: all 0.25s;
}

.skill-tag:hover {
    border-color: var(--steel);
    color: var(--text);
    background: var(--steel-dim);
}

/* --- Contact --- */
.contact__content {
    text-align: center;
    max-width: 600px;
    margin: 0 auto;
}

.contact__text {
    font-size: 1.1rem;
    color: var(--text-secondary);
    margin-bottom: 32px;
    line-height: 1.7;
}

.contact__links {
    display: flex;
    justify-content: center;
    gap: 24px;
    margin-top: 40px;
}

.contact__link {
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 12px 20px;
    border: 1px solid var(--border);
    border-radius: 10px;
    color: var(--text-secondary);
    font-size: 0.85rem;
    font-weight: 500;
    transition: all 0.25s;
}

.contact__link:hover {
    border-color: var(--steel);
    color: var(--text);
    background: var(--steel-dim);
    transform: translateY(-2px);
}

/* --- Footer --- */
.footer {
    padding: 32px 0;
    border-top: 1px solid var(--border);
    position: relative;
    z-index: 2;
}

.footer__inner {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.footer__text {
    font-size: 0.8rem;
    color: var(--text-muted);
}

/* --- Reveal Animations --- */
.reveal {
    opacity: 0;
    transform: translateY(30px);
    transition: opacity 0.7s var(--ease-out), transform 0.7s var(--ease-out);
}

.reveal.visible {
    opacity: 1;
    transform: translateY(0);
}

.reveal:nth-child(2) { transition-delay: 0.1s; }
.reveal:nth-child(3) { transition-delay: 0.2s; }
.reveal:nth-child(4) { transition-delay: 0.3s; }
.reveal:nth-child(5) { transition-delay: 0.4s; }

/* --- Stagger for hero children --- */
.hero__container .reveal:nth-child(1) { transition-delay: 0.1s; }
.hero__container .reveal:nth-child(2) { transition-delay: 0.25s; }
.hero__container .reveal:nth-child(3) { transition-delay: 0.35s; }
.hero__container .reveal:nth-child(4) { transition-delay: 0.45s; }
.hero__container .reveal:nth-child(5) { transition-delay: 0.55s; }
.hero__container .reveal:nth-child(6) { transition-delay: 0.65s; }
.hero__terminal.reveal { transition-delay: 0.4s; }

/* ===========================
   RESPONSIVE DESIGN
   =========================== */

/* Tablet */
@media (max-width: 1024px) {
    .hero {
        grid-template-columns: 1fr;
        gap: 40px;
        padding-top: calc(var(--nav-height) + 40px);
        min-height: auto;
        padding-bottom: 60px;
    }

    .hero__container {
        padding-top: 40px;
    }

    .hero__terminal {
        padding-top: 0;
        max-width: 600px;
    }

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

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

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

    .projects__grid {
        grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
    }
}

/* Mobile */
@media (max-width: 768px) {
    :root {
        --nav-height: 64px;
    }

    .nav__links {
        display: none;
    }

    .nav__toggle {
        display: flex;
    }

    .hero {
        padding: 0 20px;
        padding-top: calc(var(--nav-height) + 20px);
        padding-bottom: 40px;
    }

    .hero__title {
        font-size: clamp(2.5rem, 10vw, 4rem);
    }

    .hero__description {
        font-size: 0.95rem;
    }

    .hero__actions {
        flex-direction: column;
        margin-bottom: 40px;
    }

    .hero__scroll-hint {
        display: none;
    }

    .terminal__input {
        font-size: 16px; /* Prevent iOS auto-zoom on input focus */
    }

    .section {
        padding: 80px 0;
    }

    .section__header {
        margin-bottom: 40px;
    }

    .container {
        padding: 0 20px;
    }

    .timeline__item {
        padding-bottom: 32px;
    }

    .timeline__header {
        flex-direction: column;
        gap: 4px;
    }

    .timeline__content {
        padding: 20px;
    }

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

    .contact__links {
        flex-wrap: wrap;
        gap: 12px;
    }

    .contact__link {
        flex: 1;
        min-width: 140px;
        justify-content: center;
    }

    .footer__inner {
        flex-direction: column;
        gap: 8px;
        text-align: center;
    }
}

/* Small mobile */
@media (max-width: 480px) {
    .hero__title {
        font-size: 2.5rem;
    }

    .project-card {
        padding: 20px;
    }

    .skill-group {
        padding: 20px;
    }

    .timeline__marker {
        display: none;
    }

    .timeline__item {
        gap: 0;
    }
}

/* Reduced motion */
@media (prefers-reduced-motion: reduce) {
    *, *::before, *::after {
        animation-duration: 0.01ms !important;
        transition-duration: 0.01ms !important;
    }

    .reveal {
        opacity: 1;
        transform: none;
    }

    .bg-glow {
        animation: none;
    }

    .cursor-glow {
        display: none;
    }
}
