/* ===================================
   DESIGN SYSTEM — Space Agency Portfolio
   =================================== */

/* --- Reset & Variables --- */
:root {
    --bg: #050507;
    --surface: #0a0a10;
    --text: #f0f0f0;
    --text-muted: rgba(240, 240, 240, 0.5);
    --accent: #a855f7;
    --accent-2: #06b6d4;
    --accent-glow: rgba(168, 85, 247, 0.4);
    --border: rgba(255, 255, 255, 0.06);
    --radius: 16px;
    --ease: cubic-bezier(0.16, 1, 0.3, 1);
}

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

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

html {
    scroll-behavior: smooth;
    cursor: none;
}

body {
    background: var(--bg);
    color: var(--text);
    font-family: 'Inter', -apple-system, sans-serif;
    line-height: 1.6;
    overflow-x: hidden;
    -webkit-font-smoothing: antialiased;
    cursor: none;
}

a,
button,
.magnetic {
    cursor: none;
}

h1,
h2,
h3,
h4,
h5,
.nav-logo,
.hero-title {
    font-family: 'Syne', sans-serif;
}

em {
    font-style: italic;
    color: var(--accent);
}

strong {
    color: #fff;
    font-weight: 600;
}

/* --- Custom Cursor --- */
.cursor-dot {
    width: 8px;
    height: 8px;
    background: var(--accent);
    border-radius: 50%;
    position: fixed;
    top: 0;
    left: 0;
    pointer-events: none;
    z-index: 9999;
    transition: width 0.3s var(--ease), height 0.3s var(--ease), background 0.3s;
    transform: translate(-50%, -50%);
}

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

.cursor-dot.hovering {
    width: 60px;
    height: 60px;
    background: rgba(168, 85, 247, 0.15);
}

.cursor-ring.hovering {
    width: 80px;
    height: 80px;
    border-color: var(--accent);
}

/* --- Grain Overlay --- */
.grain-overlay {
    position: fixed;
    inset: 0;
    background-image: url("data:image/svg+xml,%3Csvg viewBox='0 0 256 256' xmlns='http://www.w3.org/2000/svg'%3E%3Cfilter id='noise'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.85' numOctaves='4' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23noise)' opacity='0.04'/%3E%3C/svg%3E");
    pointer-events: none;
    z-index: 9990;
    opacity: 0.5;
}

/* --- Floating Gradient Orbs --- */
.orb {
    position: fixed;
    border-radius: 50%;
    filter: blur(120px);
    pointer-events: none;
    z-index: -1;
    opacity: 0.5;
}

.orb-1 {
    width: 600px;
    height: 600px;
    background: radial-gradient(circle, rgba(168, 85, 247, 0.3), transparent 70%);
    top: -200px;
    right: -150px;
    animation: orbFloat1 20s ease-in-out infinite;
}

.orb-2 {
    width: 500px;
    height: 500px;
    background: radial-gradient(circle, rgba(6, 182, 212, 0.2), transparent 70%);
    bottom: 10%;
    left: -100px;
    animation: orbFloat2 25s ease-in-out infinite;
}

.orb-3 {
    width: 400px;
    height: 400px;
    background: radial-gradient(circle, rgba(255, 0, 127, 0.15), transparent 70%);
    top: 50%;
    left: 50%;
    animation: orbFloat3 18s ease-in-out infinite;
}

@keyframes orbFloat1 {

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

    50% {
        transform: translate(-100px, 80px);
    }
}

@keyframes orbFloat2 {

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

    50% {
        transform: translate(80px, -60px);
    }
}

@keyframes orbFloat3 {

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

    50% {
        transform: translate(-60px, 100px);
    }
}

/* --- Navigation --- */
#mainNav {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 24px 48px;
    z-index: 1000;
    mix-blend-mode: difference;
}

.nav-logo {
    font-size: 1.6rem;
    font-weight: 800;
    color: #fff;
    text-decoration: none;
    letter-spacing: -1px;
}

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

.nav-center {
    display: flex;
    gap: 40px;
}

.nav-link {
    color: rgba(255, 255, 255, 0.7);
    text-decoration: none;
    font-size: 0.85rem;
    text-transform: uppercase;
    letter-spacing: 2px;
    position: relative;
    overflow: hidden;
    display: inline-block;
    transition: color 0.3s;
}

.nav-link::after {
    content: attr(data-hover);
    position: absolute;
    left: 0;
    top: 100%;
    color: var(--accent);
    transition: top 0.3s var(--ease);
}

.nav-link:hover {
    color: transparent;
}

.nav-link:hover::after {
    top: 0;
}

.nav-cta {
    display: flex;
    align-items: center;
    gap: 8px;
    color: #fff;
    text-decoration: none;
    font-size: 0.85rem;
    letter-spacing: 1px;
    text-transform: uppercase;
    padding: 10px 24px;
    border: 1px solid rgba(255, 255, 255, 0.2);
    border-radius: 100px;
    transition: all 0.3s var(--ease);
}

.nav-cta:hover {
    background: #fff;
    color: #000;
    border-color: #fff;
}

.nav-cta svg {
    transition: transform 0.3s var(--ease);
}

.nav-cta:hover svg {
    transform: translateX(4px);
}

/* --- Container & Sections --- */
.container {
    max-width: 1400px;
    margin: 0 auto;
    padding: 0 48px 0 100px;
}

.section-label {
    font-size: 0.8rem;
    letter-spacing: 3px;
    text-transform: uppercase;
    color: var(--accent);
    display: block;
    margin-bottom: 24px;
    font-family: 'Space Grotesk', sans-serif;
    font-weight: 600;
}

.section-heading {
    font-size: clamp(2.5rem, 5vw, 4.5rem);
    line-height: 1.1;
    letter-spacing: -2px;
    margin-bottom: 60px;
    color: #fff;
}

.mini-label {
    font-size: 0.75rem;
    letter-spacing: 3px;
    text-transform: uppercase;
    color: var(--accent);
    display: block;
    margin-bottom: 12px;
    font-family: 'Space Grotesk', sans-serif;
    font-weight: 600;
}

/* --- Hero --- */
.hero {
    min-height: 100vh;
    display: flex;
    flex-direction: column;
    justify-content: center;
    padding: 160px 48px 80px 100px;
    position: relative;
}

.hero-inner {
    max-width: 1400px;
    margin: 0 auto;
    width: 100%;
}

.hero-split {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 60px;
}

.hero-left {
    flex: 1;
}

/* Hero Photo */
.hero-photo {
    flex-shrink: 0;
    position: relative;
}

.photo-frame {
    width: 340px;
    height: 400px;
    border-radius: 20px;
    overflow: hidden;
    position: relative;
    border: 2px solid rgba(255, 255, 255, 0.1);
    transition: transform 0.6s var(--ease), border-color 0.4s;
}

.photo-frame::before {
    content: '';
    position: absolute;
    inset: -2px;
    border-radius: 22px;
    padding: 2px;
    background: linear-gradient(135deg, var(--accent), var(--accent-2), transparent, var(--accent));
    -webkit-mask: linear-gradient(#fff 0 0) content-box, linear-gradient(#fff 0 0);
    -webkit-mask-composite: xor;
    mask-composite: exclude;
    opacity: 0.6;
    transition: opacity 0.4s;
    z-index: 2;
    pointer-events: none;
}

.photo-frame:hover::before {
    opacity: 1;
}

.photo-frame img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
    filter: grayscale(0.1) contrast(1.05);
    transition: transform 0.6s var(--ease), filter 0.4s;
}

.photo-frame:hover img {
    transform: scale(1.05);
    filter: grayscale(0) contrast(1.1);
}

.photo-frame:hover {
    border-color: rgba(168, 85, 247, 0.3);
    transform: translateY(-8px);
}

.photo-glow {
    position: absolute;
    width: 250px;
    height: 250px;
    background: radial-gradient(circle, var(--accent-glow), transparent 70%);
    border-radius: 50%;
    bottom: -60px;
    right: -60px;
    filter: blur(50px);
    opacity: 0.4;
    pointer-events: none;
    z-index: -1;
    transition: opacity 0.4s;
}

.photo-frame:hover+.photo-glow {
    opacity: 0.7;
}

@media (max-width: 1024px) {
    .hero-split {
        flex-direction: column;
        gap: 40px;
    }

    .photo-frame {
        width: 260px;
        height: 310px;
    }
}

.hero-badge {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    font-size: 0.8rem;
    letter-spacing: 2px;
    text-transform: uppercase;
    color: var(--text-muted);
    margin-bottom: 48px;
    font-family: 'Space Grotesk', sans-serif;
}

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

.pulse-dot.green {
    background: #22c55e;
}

@keyframes pulse {

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

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

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

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

.title-word {
    display: inline-block;
    font-size: clamp(2.5rem, 5.5vw, 5rem);
    font-weight: 800;
    line-height: 1;
    letter-spacing: -3px;
    text-transform: uppercase;
}

.indent {
    padding-left: 8%;
}

.stroke-text {
    color: transparent;
    -webkit-text-stroke: 2px rgba(255, 255, 255, 0.6);
}

.hero-bottom {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    gap: 60px;
    padding-top: 40px;
    border-top: 1px solid var(--border);
}

.hero-desc {
    max-width: 500px;
    font-size: 1.15rem;
    color: var(--text-muted);
    line-height: 1.8;
}

.hero-stats {
    display: flex;
    gap: 50px;
}

.stat-item {
    text-align: center;
}

.stat-number {
    font-size: 3.5rem;
    font-weight: 700;
    font-family: 'Space Grotesk', sans-serif;
    color: #fff;
    line-height: 1;
}

.stat-suffix {
    font-size: 1.2rem;
    color: var(--accent);
    font-family: 'Space Grotesk', sans-serif;
    font-weight: 600;
}

.stat-label {
    display: block;
    margin-top: 8px;
    font-size: 0.75rem;
    letter-spacing: 2px;
    text-transform: uppercase;
    color: var(--text-muted);
}

.scroll-pill {
    position: absolute;
    bottom: 40px;
    left: 48px;
    display: flex;
    align-items: center;
    gap: 12px;
    color: var(--text-muted);
    font-size: 0.75rem;
    letter-spacing: 2px;
    text-transform: uppercase;
}

.scroll-line {
    width: 60px;
    height: 1px;
    background: rgba(255, 255, 255, 0.2);
    position: relative;
    overflow: hidden;
}

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

@keyframes scrollAnim {
    0% {
        left: -100%;
    }

    100% {
        left: 100%;
    }
}

/* --- Marquee Strip --- */
.marquee-strip {
    padding: 24px 0;
    border-top: 1px solid var(--border);
    border-bottom: 1px solid var(--border);
    overflow: hidden;
    background: rgba(0, 0, 0, 0.3);
}

.marquee-track {
    display: inline-flex;
    gap: 0;
    animation: marquee 30s linear infinite;
    font-family: 'Syne', sans-serif;
    font-size: 2.5rem;
    font-weight: 800;
    text-transform: uppercase;
    letter-spacing: 2px;
    white-space: nowrap;
}

.marquee-track span {
    color: transparent;
    -webkit-text-stroke: 1.5px rgba(255, 255, 255, 0.25);
    padding: 0 20px;
    transition: all 0.3s;
}

.marquee-track span:hover {
    -webkit-text-stroke: 1.5px var(--accent);
    color: var(--accent);
    text-shadow: 0 0 40px var(--accent-glow);
}

.marquee-track .star {
    color: var(--accent);
    -webkit-text-stroke: 0;
    font-size: 1rem;
    vertical-align: middle;
}

@keyframes marquee {
    0% {
        transform: translateX(0);
    }

    100% {
        transform: translateX(-50%);
    }
}

/* --- About Section --- */
/* --- About Section --- */
.about-section {
    padding: 200px 0;
    position: relative;
    overflow: hidden;
}

/* Grid pattern */
.about-section::before {
    content: '';
    position: absolute;
    inset: 0;
    background-image:
        linear-gradient(rgba(255, 255, 255, 0.07) 1px, transparent 1px),
        linear-gradient(90deg, rgba(255, 255, 255, 0.07) 1px, transparent 1px);
    background-size: 50px 50px;
    pointer-events: none;
    mask-image: radial-gradient(ellipse 90% 80% at 50% 50%, black 40%, transparent 80%);
    -webkit-mask-image: radial-gradient(ellipse 90% 80% at 50% 50%, black 40%, transparent 80%);
}

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

.about-text {
    font-size: 1.2rem;
    line-height: 1.9;
    color: var(--text-muted);
    margin-bottom: 24px;
}

.about-links {
    display: flex;
    gap: 30px;
    margin-top: 40px;
}

.text-link {
    color: #fff;
    text-decoration: none;
    font-size: 1rem;
    position: relative;
    padding-bottom: 4px;
    transition: color 0.3s;
}

.text-link::after {
    content: '';
    position: absolute;
    left: 0;
    bottom: 0;
    width: 0;
    height: 1px;
    background: var(--accent);
    transition: width 0.4s var(--ease);
}

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

.text-link:hover::after {
    width: 100%;
}

/* --- Experience Section --- */
/* --- Experience Section --- */
.experience-section {
    padding: 200px 0;
    position: relative;
    overflow: hidden;
}

/* Dot grid pattern */
.experience-section::before {
    content: '';
    position: absolute;
    inset: 0;
    background-image: radial-gradient(circle, rgba(168, 85, 247, 0.2) 1.5px, transparent 1.5px);
    background-size: 28px 28px;
    pointer-events: none;
    mask-image: radial-gradient(ellipse 80% 70% at 60% 40%, black 30%, transparent 80%);
    -webkit-mask-image: radial-gradient(ellipse 80% 70% at 60% 40%, black 30%, transparent 80%);
}

.exp-layout {
    display: grid;
    grid-template-columns: 35% 1fr;
    gap: 60px;
}

.exp-sticky {
    position: sticky;
    top: 140px;
    height: fit-content;
}

.role-pill {
    display: inline-block;
    padding: 8px 20px;
    background: rgba(168, 85, 247, 0.1);
    border: 1px solid rgba(168, 85, 247, 0.3);
    border-radius: 100px;
    font-size: 0.85rem;
    font-weight: 500;
    color: var(--accent);
    font-family: 'Space Grotesk', sans-serif;
    margin-bottom: 24px;
}

.role-name {
    font-size: clamp(2rem, 3vw, 3rem);
    line-height: 1.1;
    margin-bottom: 16px;
    letter-spacing: -1px;
}

.role-company {
    font-size: 1.1rem;
    color: var(--accent-2);
}

.exp-cards {
    display: flex;
    flex-direction: column;
    gap: 24px;
}

.exp-card {
    background: var(--surface);
    border: 1px solid var(--border);
    border-radius: var(--radius);
    padding: 40px;
    position: relative;
    overflow: hidden;
    transition: all 0.5s var(--ease);
}

.exp-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 2px;
    background: linear-gradient(90deg, var(--accent), var(--accent-2));
    transform: scaleX(0);
    transform-origin: left;
    transition: transform 0.5s var(--ease);
}

.exp-card:hover::before {
    transform: scaleX(1);
}

.exp-card:hover {
    border-color: rgba(255, 255, 255, 0.1);
    transform: translateY(-4px);
}

.card-number {
    position: absolute;
    top: 40px;
    right: 40px;
    font-size: 4rem;
    font-weight: 800;
    font-family: 'Syne', sans-serif;
    color: transparent;
    -webkit-text-stroke: 1px rgba(255, 255, 255, 0.08);
    line-height: 1;
}

.card-head {
    margin-bottom: 24px;
}

.card-head h4 {
    font-size: 1.6rem;
    font-family: 'Space Grotesk', sans-serif;
    margin-bottom: 6px;
    color: #fff;
}

.card-tag {
    font-size: 0.85rem;
    color: var(--text-muted);
    font-style: italic;
}

.exp-card ul {
    list-style: none;
}

.exp-card li {
    font-size: 0.95rem;
    color: var(--text-muted);
    margin-bottom: 14px;
    padding-left: 20px;
    position: relative;
    line-height: 1.6;
}

.exp-card li::before {
    content: '';
    position: absolute;
    left: 0;
    top: 9px;
    width: 6px;
    height: 6px;
    border-radius: 50%;
    background: var(--accent);
}

/* --- Projects Section --- */
/* --- Projects Section --- */
.projects-section {
    padding: 200px 0;
    position: relative;
    overflow: hidden;
}

/* Diagonal lines pattern */
.projects-section::before {
    content: '';
    position: absolute;
    inset: 0;
    background-image: repeating-linear-gradient(-45deg,
            transparent,
            transparent 35px,
            rgba(6, 182, 212, 0.1) 35px,
            rgba(6, 182, 212, 0.1) 36px);
    pointer-events: none;
    mask-image: radial-gradient(ellipse 80% 70% at 30% 60%, black 30%, transparent 80%);
    -webkit-mask-image: radial-gradient(ellipse 80% 70% at 30% 60%, black 30%, transparent 80%);
}

.proj-header {
    margin-bottom: 80px;
}

.proj-showcase {
    display: grid;
    grid-template-columns: 1fr;
    gap: 30px;
}

.proj-main {
    background: var(--surface);
    border: 1px solid var(--border);
    border-radius: var(--radius);
    padding: 60px;
    position: relative;
    overflow: hidden;
    transition: all 0.5s var(--ease);
}

.proj-main:hover {
    border-color: rgba(255, 255, 255, 0.15);
}

.proj-glow {
    position: absolute;
    width: 300px;
    height: 300px;
    background: radial-gradient(circle, var(--accent-glow), transparent 70%);
    border-radius: 50%;
    top: -100px;
    right: -100px;
    filter: blur(60px);
    opacity: 0;
    transition: opacity 0.5s;
}

.proj-main:hover .proj-glow {
    opacity: 1;
}

.proj-meta-row {
    display: flex;
    gap: 16px;
    margin-bottom: 24px;
    font-size: 0.8rem;
    letter-spacing: 2px;
    text-transform: uppercase;
    color: var(--text-muted);
    font-family: 'Space Grotesk', sans-serif;
}

.proj-title {
    font-size: clamp(2rem, 3.5vw, 3rem);
    line-height: 1.15;
    letter-spacing: -1px;
    margin-bottom: 24px;
}

.proj-blurb {
    font-size: 1.1rem;
    color: var(--text-muted);
    line-height: 1.8;
    margin-bottom: 40px;
    max-width: 600px;
}

.proj-metrics {
    display: flex;
    gap: 40px;
    padding: 24px 0;
    margin-bottom: 32px;
    border-top: 1px solid var(--border);
    border-bottom: 1px solid var(--border);
}

.pm-val {
    display: block;
    font-size: 2rem;
    font-weight: 700;
    font-family: 'Space Grotesk', sans-serif;
    color: #fff;
    line-height: 1;
    margin-bottom: 4px;
}

.pm-label {
    font-size: 0.75rem;
    text-transform: uppercase;
    letter-spacing: 1px;
    color: var(--text-muted);
}

.proj-tags {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
}

.proj-tags span {
    padding: 8px 18px;
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 100px;
    font-size: 0.8rem;
    color: rgba(255, 255, 255, 0.7);
    letter-spacing: 1px;
    transition: all 0.3s;
}

.proj-tags span:hover {
    border-color: var(--accent);
    color: var(--accent);
}

.proj-side {
    display: flex;
    flex-direction: column;
    gap: 30px;
}

.proj-row {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 30px;
    margin-top: 30px;
}

@media (max-width: 1024px) {
    .proj-row {
        grid-template-columns: 1fr;
    }
}

/* --- Publication Section --- */
/* --- Publication Section --- */
.publication-section {
    padding: 120px 0;
    border-top: 1px solid var(--border);
    border-bottom: 1px solid var(--border);
    background: linear-gradient(180deg, rgba(168, 85, 247, 0.03) 0%, transparent 100%);
    position: relative;
    overflow: hidden;
}

/* Cross-hatch pattern */
.publication-section::before {
    content: '';
    position: absolute;
    inset: 0;
    background-image:
        linear-gradient(45deg, rgba(168, 85, 247, 0.1) 1px, transparent 1px),
        linear-gradient(-45deg, rgba(168, 85, 247, 0.1) 1px, transparent 1px);
    background-size: 35px 35px;
    pointer-events: none;
    mask-image: linear-gradient(90deg, transparent 5%, black 25%, black 75%, transparent 95%);
    -webkit-mask-image: linear-gradient(90deg, transparent 5%, black 25%, black 75%, transparent 95%);
}

.pub-highlight {
    display: grid;
    grid-template-columns: 1.2fr 1fr;
    gap: 80px;
    align-items: start;
    padding: 60px;
    background: var(--surface);
    border: 1px solid var(--border);
    border-radius: var(--radius);
    position: relative;
    overflow: hidden;
}

.pub-highlight::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 4px;
    height: 100%;
    background: linear-gradient(180deg, var(--accent), var(--accent-2));
}

.pub-main-title {
    font-size: clamp(1.5rem, 2.5vw, 2.2rem);
    line-height: 1.3;
    letter-spacing: -0.5px;
    color: #fff;
}

.pub-detail {
    margin-bottom: 30px;
}

.pub-conf {
    font-size: 1.05rem;
    color: var(--text-muted);
    line-height: 1.6;
}

.pub-link {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 14px 32px;
    background: rgba(168, 85, 247, 0.1);
    border: 1px solid rgba(168, 85, 247, 0.3);
    border-radius: 100px;
    color: var(--accent);
    text-decoration: none;
    font-size: 0.95rem;
    font-weight: 600;
    letter-spacing: 1px;
    transition: all 0.3s var(--ease);
}

.pub-link:hover {
    background: var(--accent);
    color: #000;
    border-color: var(--accent);
    box-shadow: 0 0 30px var(--accent-glow);
}

@media (max-width: 1024px) {
    .pub-highlight {
        grid-template-columns: 1fr;
        gap: 40px;
        padding: 40px;
    }
}

.pub-card {
    background: var(--surface);
    border: 1px solid var(--border);
    border-radius: var(--radius);
    padding: 40px;
    height: 100%;
    display: flex;
    flex-direction: column;
    justify-content: center;
    transition: all 0.5s var(--ease);
}

.pub-card:hover {
    border-color: rgba(255, 255, 255, 0.15);
    transform: translateY(-4px);
}

.pub-icon {
    font-size: 3rem;
    margin-bottom: 24px;
}

.pub-card h4 {
    font-size: 1.4rem;
    margin-bottom: 16px;
    font-family: 'Space Grotesk';
}

.pub-card p {
    font-size: 0.95rem;
    color: var(--text-muted);
    line-height: 1.6;
    margin-bottom: 20px;
}

.pub-venue {
    font-family: 'Space Grotesk';
    font-weight: 700;
    color: var(--accent);
    font-size: 0.9rem;
    letter-spacing: 1px;
}

/* --- Skills Section --- */
/* --- Skills Section --- */
.skills-section {
    padding: 200px 0;
    position: relative;
    overflow: hidden;
}

/* Radial dot pattern */
.skills-section::before {
    content: '';
    position: absolute;
    inset: 0;
    background-image: radial-gradient(circle, rgba(6, 182, 212, 0.15) 1.5px, transparent 1.5px);
    background-size: 22px 22px;
    background-position: 11px 11px;
    pointer-events: none;
    mask-image: radial-gradient(ellipse 70% 70% at 70% 50%, black 30%, transparent 80%);
    -webkit-mask-image: radial-gradient(ellipse 70% 70% at 70% 50%, black 30%, transparent 80%);
}

.skills-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 60px;
}

.skill-category h5 {
    font-size: 0.8rem;
    letter-spacing: 3px;
    text-transform: uppercase;
    color: var(--text-muted);
    margin-bottom: 20px;
    font-family: 'Space Grotesk', sans-serif;
    padding-bottom: 12px;
    border-bottom: 1px solid var(--border);
}

.skill-pills {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
}

.skill-pill {
    padding: 12px 24px;
    border: 1px solid var(--border);
    border-radius: 100px;
    font-size: 0.95rem;
    color: rgba(255, 255, 255, 0.7);
    background: rgba(255, 255, 255, 0.02);
    transition: all 0.3s var(--ease);
    display: inline-block;
}

.skill-pill:hover {
    border-color: var(--accent);
    color: #fff;
    background: rgba(168, 85, 247, 0.1);
    transform: translateY(-3px);
    box-shadow: 0 10px 30px rgba(168, 85, 247, 0.15);
}

/* --- Footer --- */
.footer-section {
    padding: 200px 0 60px;
    border-top: 1px solid var(--border);
}

.footer-top {
    margin-bottom: 120px;
}

.footer-cta-text {
    font-size: clamp(3rem, 6vw, 5rem);
    line-height: 1.1;
    letter-spacing: -2px;
    margin-bottom: 40px;
}

.footer-email {
    font-size: clamp(1.2rem, 2.5vw, 2rem);
    color: var(--text-muted);
    text-decoration: none;
    display: inline-block;
    padding-bottom: 4px;
    border-bottom: 2px solid var(--border);
    transition: all 0.3s;
}

.footer-email:hover {
    color: var(--accent);
    border-bottom-color: var(--accent);
}

.footer-bottom {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 60px;
    margin-bottom: 80px;
}

.footer-col p {
    font-size: 0.95rem;
    color: var(--text-muted);
    line-height: 1.8;
}

.footer-links {
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.status-line {
    display: flex;
    align-items: center;
    gap: 10px;
}

.footer-copy {
    display: flex;
    justify-content: space-between;
    padding-top: 30px;
    border-top: 1px solid var(--border);
    font-size: 0.8rem;
    color: var(--text-muted);
    letter-spacing: 1px;
}

/* --- Vertical Text Decorator --- */
.relative {
    position: relative;
}

.vertical-text {
    position: absolute;
    left: -40px;
    top: 60px;
    writing-mode: vertical-rl;
    text-orientation: mixed;
    font-size: 0.7rem;
    letter-spacing: 4px;
    text-transform: uppercase;
    color: rgba(255, 255, 255, 0.12);
    font-family: 'Space Grotesk', sans-serif;
    font-weight: 600;
    pointer-events: none;
    white-space: nowrap;
}

/* --- Persistent Side Rail (Full-Height Left Panel) --- */
.side-rail {
    position: fixed;
    left: 0;
    top: 0;
    width: 72px;
    height: 100vh;
    z-index: 100;
    opacity: 0;
    pointer-events: none;
    transition: opacity 0.6s var(--ease), width 0.4s var(--ease);
    border-right: 1px solid rgba(255, 255, 255, 0.06);
    overflow: hidden;
}

.side-rail.visible {
    opacity: 1;
    pointer-events: auto;
}

.side-rail:hover {
    width: 90px;
}

.rail-bg {
    position: absolute;
    inset: 0;
    background-image: url('sidebar-bg.png');
    background-size: cover;
    background-position: center;
    opacity: 0.25;
    transition: opacity 0.4s;
}

.side-rail:hover .rail-bg {
    opacity: 0.4;
}

/* Gradient overlays on the bg */
.rail-bg::before {
    content: '';
    position: absolute;
    inset: 0;
    background: linear-gradient(180deg,
            rgba(5, 5, 7, 0.9) 0%,
            rgba(5, 5, 7, 0.3) 40%,
            rgba(5, 5, 7, 0.3) 60%,
            rgba(5, 5, 7, 0.9) 100%);
}

.rail-bg::after {
    content: '';
    position: absolute;
    inset: 0;
    background: linear-gradient(90deg,
            rgba(168, 85, 247, 0.08) 0%,
            transparent 100%);
}

.rail-content {
    position: relative;
    z-index: 2;
    height: 100%;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    align-items: center;
    padding: 24px 0;
}

.rail-top {
    flex: 1;
    display: flex;
    align-items: center;
    justify-content: center;
}

.rail-vertical-label {
    writing-mode: vertical-rl;
    text-orientation: mixed;
    font-size: 0.6rem;
    letter-spacing: 5px;
    text-transform: uppercase;
    color: rgba(255, 255, 255, 0.25);
    font-family: 'Space Grotesk', sans-serif;
    font-weight: 600;
    white-space: nowrap;
    transition: color 0.3s;
}

.side-rail:hover .rail-vertical-label {
    color: rgba(255, 255, 255, 0.5);
}

.rail-info {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 14px;
    padding-bottom: 8px;
}

.rail-item {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 2px;
    text-align: center;
}

.rail-label {
    font-size: 0.45rem;
    letter-spacing: 2px;
    text-transform: uppercase;
    color: rgba(255, 255, 255, 0.25);
    font-family: 'Space Grotesk', sans-serif;
}

.rail-value {
    font-size: 0.6rem;
    color: rgba(255, 255, 255, 0.7);
    font-weight: 600;
    font-family: 'Space Grotesk', sans-serif;
    white-space: nowrap;
    display: flex;
    align-items: center;
    gap: 4px;
}

.status-on {
    color: #22c55e;
}

@media (max-width: 1024px) {
    .side-rail {
        display: none;
    }

    .vertical-text {
        display: none;
    }
}

/* --- Reveal Animation --- */
.reveal-up {
    opacity: 0;
    transform: translateY(60px);
    transition: opacity 0.8s var(--ease), transform 1s var(--ease);
    transition-delay: var(--d, 0s);
}

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

/* --- Responsive --- */
@media (max-width: 1024px) {
    .container {
        padding: 0 24px;
    }

    .hero {
        padding: 120px 24px 60px;
    }

    #mainNav {
        padding: 16px 24px;
    }

    .nav-center {
        display: none;
    }

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

    .exp-layout {
        grid-template-columns: 1fr;
    }

    .exp-sticky {
        position: static;
    }

    .proj-showcase {
        grid-template-columns: 1fr;
    }

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

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

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

    .hero-stats {
        gap: 30px;
    }

    .title-word {
        letter-spacing: -2px;
    }

    .indent {
        padding-left: 5%;
    }

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

    html,
    body,
    a,
    button,
    .magnetic {
        cursor: auto;
    }
}

@media (max-width: 600px) {
    .hero-stats {
        flex-wrap: wrap;
        gap: 20px;
    }

    .proj-main {
        padding: 30px;
    }

    .exp-card {
        padding: 24px;
    }

    .card-number {
        display: none;
    }
}