:root {
    --bg: #050505;
    --bg-soft: #0a0a0a;
    --panel: rgba(20, 20, 20, 0.6);
    --panel-strong: #141414;
    --line: rgba(255, 255, 255, 0.08);
    --text-main: #f0f4f8;
    --text-soft: #a0aec0;
    --accent: #0052ff;
    --accent-strong: #0044cc;
    --shadow: 0 8px 32px rgba(0, 0, 0, 0.6);
}

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

html {
    scroll-behavior: smooth;
}

body {
    position: relative;
    background: var(--bg);
    color: var(--text-main);
    font-family: 'Space Grotesk', sans-serif;
    line-height: 1.6;
    overflow-x: hidden;
}

h1, h2, h3, h4, h5, h6 {
    font-weight: 700;
    letter-spacing: -0.02em;
}

body.overlay-open {
    overflow: hidden;
}

img {
    max-width: 100%;
}

.page-noise {
    position: fixed;
    inset: 0;
    pointer-events: none;
    background-image: radial-gradient(rgba(255, 255, 255, 0.08) 1px, transparent 1px);
    background-size: 24px 24px;
    z-index: 0;
    opacity: 0.8;
}

.cursor-glow {
    position: fixed;
    width: 280px;
    height: 280px;
    border-radius: 50%;
    background: radial-gradient(circle, rgba(0, 82, 255, 0.16) 0%, rgba(0, 82, 255, 0) 70%);
    transform: translate(-50%, -50%);
    pointer-events: none;
    z-index: 0;
    transition: left 0.18s ease, top 0.18s ease;
}

.top-banner {
    background: rgba(255, 255, 255, 0.03);
    text-align: center;
    padding: 0.8rem;
    font-family: 'IBM Plex Mono', monospace;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.12em;
    font-size: 1.15rem;
    border-bottom: 1px solid rgba(255, 255, 255, 0.05);
    display: block;
    width: 100%;
    
    /* Theme accent linear-gradient on text */
    background-image: linear-gradient(90deg, var(--accent), #00c6ff, var(--accent));
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.site-nav {
    position: sticky;
    top: 0;
    z-index: 20;
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 1.2rem 7%;
    backdrop-filter: blur(18px);
    background: rgba(8, 17, 31, 0.6);
    border-bottom: 1px solid rgba(255, 255, 255, 0.05);
}

.logo,
.nav-links a,
.btn {
    text-decoration: none;
}

.logo {
    color: var(--text-main);
    font-size: 1.2rem;
    font-weight: 700;
    letter-spacing: 0.03em;
}

.logo span {
    color: var(--accent);
    margin-left: 0.15rem;
}

.nav-links {
    display: flex;
    gap: 1.5rem;
}

.nav-links a {
    color: var(--text-soft);
    font-size: 0.95rem;
    transition: color 0.25s ease;
}

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

.section {
    position: relative;
    z-index: 1;
    padding: 5.5rem 7%;
}

.hero {
    min-height: calc(100vh - 78px);
    display: grid;
    grid-template-columns: 1.2fr 0.8fr;
    gap: 2.5rem;
    align-items: center;
}

.eyebrow,
.section-kicker,
.project-meta,
.badge,
.tags span,
.chip-list span,
.status-top,
.timeline-card li {
    font-family: 'IBM Plex Mono', monospace;
}

.eyebrow,
.section-kicker {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    text-transform: uppercase;
    letter-spacing: 0.12em;
    color: var(--accent);
    font-size: 0.78rem;
}

.hero h1 {
    margin-top: 1rem;
    max-width: 12ch;
    font-size: clamp(3rem, 7vw, 5.8rem);
    line-height: 0.96;
}

.hero h1 span {
    color: var(--accent-strong);
}

.hero-text {
    max-width: 58ch;
    margin-top: 1.4rem;
    color: var(--text-soft);
    font-size: 1.05rem;
}

.hero-actions,
.contact-actions {
    display: flex;
    flex-wrap: wrap;
    gap: 1rem;
    margin-top: 2rem;
}

.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 0.95rem 1.4rem;
    border-radius: 6px;
    border: 1px solid transparent;
    font-weight: 600;
    transition: transform 0.25s ease, box-shadow 0.25s ease, border-color 0.25s ease, background 0.25s ease;
}

.btn:hover {
    transform: translateY(-2px);
}

.btn-primary {
    background: linear-gradient(135deg, var(--accent) 0%, #3377ff 100%);
    color: #ffffff;
    box-shadow: 0 16px 30px rgba(0, 82, 255, 0.22);
}

.btn-secondary {
    background: rgba(255, 255, 255, 0.03);
    color: var(--text-main);
    border-color: rgba(255, 255, 255, 0.09);
}

.hero-panel,
.about-card,
.project-card,
.skill-card,
.timeline-card,
.contact-card,
.overlay-content {
    background: var(--panel);
    border: 1px solid var(--line);
    box-shadow: 0 4px 30px rgba(0, 0, 0, 0.1);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
}

.hero-panel {
    border-radius: 16px;
    padding: 1.4rem;
}

.status-card {
    min-height: 100%;
    border-radius: 22px;
    padding: 1.25rem;
    background:
        linear-gradient(180deg, rgba(255, 255, 255, 0.04), rgba(255, 255, 255, 0.015)),
        linear-gradient(160deg, rgba(0, 82, 255, 0.08), rgba(0, 68, 204, 0.06));
    border: 1px solid rgba(255, 255, 255, 0.06);
}

.status-top {
    display: flex;
    gap: 0.65rem;
    align-items: center;
    color: var(--text-soft);
    font-size: 0.78rem;
    padding-bottom: 1rem;
    border-bottom: 1px solid rgba(255, 255, 255, 0.08);
}

.status-dot {
    width: 10px;
    height: 10px;
    border-radius: 50%;
    background: var(--accent);
    box-shadow: 0 0 16px rgba(0, 82, 255, 0.8);
}

.signal-grid {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 1rem;
    margin-top: 1.2rem;
}

.signal-grid div {
    padding: 1rem;
    border-radius: 20px;
    background: rgba(255, 255, 255, 0.03);
    border: 1px solid rgba(255, 255, 255, 0.05);
}

.signal-grid strong {
    display: block;
    font-size: 1.4rem;
    color: var(--accent);
}

.signal-grid span {
    color: var(--text-soft);
    font-size: 0.95rem;
}

.section-heading {
    margin-bottom: 2rem;
}

.section-heading h2 {
    margin-top: 0.6rem;
    font-size: clamp(2rem, 4vw, 3.25rem);
    line-height: 1.05;
}

.about-grid,
.project-grid,
.skills-layout {
    display: grid;
    gap: 1.35rem;
}

.about-grid {
    grid-template-columns: repeat(3, minmax(0, 1fr));
}

.about-card,
.skill-card,
.timeline-card,
.contact-card {
    border-radius: 16px;
    padding: 1.6rem;
}

.about-card h3,
.timeline-card h3,
.contact-card h2 {
    margin-bottom: 0.8rem;
}

.skill-card h3 {
    margin-bottom: 1.2rem;
    font-size: 1.4rem;
}

.about-card p,
.skill-card p,
.timeline-card li,
.contact-card p {
    color: var(--text-soft);
}

.project-grid {
    grid-template-columns: repeat(3, 1fr);
    grid-auto-rows: minmax(280px, auto);
}

.project-grid > :nth-child(1) { grid-column: span 2; }
.project-grid > :nth-child(2) { grid-column: span 1; }
.project-grid > :nth-child(3) { grid-column: span 1; }
.project-grid > :nth-child(4) { grid-column: span 2; }

.project-card {
    position: relative;
    overflow: hidden;
    min-height: 280px;
    padding: 1.6rem;
    border-radius: 16px;
    cursor: pointer;
    transition: transform 0.28s ease, border-color 0.28s ease, box-shadow 0.28s ease;
}

.project-card::before {
    content: "";
    position: absolute;
    inset: auto -15% -35% auto;
    width: 180px;
    height: 180px;
    border-radius: 50%;
    background: radial-gradient(circle, rgba(0, 68, 204, 0.2), transparent 70%);
}

.project-card:hover,
.project-card:focus-visible,
.skill-card:hover,
.skill-card:focus-visible {
    transform: translateY(-4px);
    border-color: rgba(0, 82, 255, 0.3);
    box-shadow: 0 0 40px rgba(0, 82, 255, 0.15);
    outline: none;
}

.project-card:hover .project-link::after,
.project-card:focus-visible .project-link::after {
    transform: translateX(4px);
}

.project-card:hover .tags span,
.project-card:focus-visible .tags span {
    background: rgba(0, 82, 255, 0.15);
    border-color: rgba(0, 82, 255, 0.3);
}

.project-meta {
    display: flex;
    gap: 0.6rem;
    flex-wrap: wrap;
    margin-bottom: 1rem;
    color: var(--accent);
    font-size: 0.72rem;
    text-transform: uppercase;
    letter-spacing: 0.08em;
}

.project-card h3 {
    font-size: 1.6rem;
    margin-bottom: 0.8rem;
}

.project-card p {
    color: var(--text-soft);
}

.project-link {
    display: inline-flex;
    align-items: center;
    margin-top: 1rem;
    color: var(--accent);
    text-decoration: none;
    font-weight: 500;
    transition: color 0.28s ease;
}

.project-link::after {
    content: "→";
    margin-left: 0.5rem;
    transition: transform 0.28s ease;
}

.project-link:hover,
.project-link:focus-visible {
    color: var(--accent-strong);
}

.tags,
.chip-list {
    display: flex;
    flex-wrap: wrap;
    gap: 0.55rem;
    margin-top: 1.2rem;
}

.tags span,
.chip-list span {
    display: inline-flex;
    align-items: center;
    padding: 0.42rem 0.72rem;
    border-radius: 6px;
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid rgba(255, 255, 255, 0.06);
    color: var(--text-main);
    font-size: 0.95rem;
    font-weight: 500;
}

.skills-layout {
    grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
    gap: 2rem;
}

.background-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 2rem;
}

.timeline {
    display: flex;
    flex-direction: column;
    gap: 1.25rem;
    margin-top: 1.5rem;
}

.timeline.alternating {
    position: relative;
    max-width: 1200px;
    margin: 0 auto;
    padding: 2rem 0;
    gap: 0;
}

.timeline.alternating::before {
    content: "";
    position: absolute;
    top: 0;
    bottom: 0;
    left: 50%;
    transform: translateX(-50%);
    width: 2px;
    background: rgba(255, 255, 255, 0.08);
}

.timeline-item {
    position: relative;
    width: 50%;
    padding: 1.5rem 2rem;
    box-sizing: border-box;
}

.timeline-item.left {
    left: 0;
    text-align: right;
}

.timeline-item.right {
    left: 50%;
    text-align: left;
}

.timeline-item::after {
    content: "";
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    width: 18px;
    height: 18px;
    border-radius: 50%;
    background: var(--accent);
    box-shadow: 0 0 15px var(--accent);
    z-index: 1;
}

.timeline-item.left::after {
    right: -9px;
}

.timeline-item.right::after {
    left: -9px;
}

.timeline-item .timeline-card {
    display: flex;
    flex-direction: column;
    width: 100%;
    min-height: 280px;
    padding: 3rem;
    border-radius: 2.5rem;
    text-align: left;
    box-sizing: border-box;
}

.timeline-item .score-pill {
    margin-top: 1.5rem;
    align-self: flex-start;
}

.score-pill {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.45rem 0.9rem;
    border-radius: 8px;
    background: rgba(0, 82, 255, 0.1);
    border: 1px solid rgba(0, 82, 255, 0.25);
    color: var(--text-main);
    font-size: 0.85rem;
    font-family: 'IBM Plex Mono', monospace;
    margin-top: 1.2rem;
}

.timeline-title {
    font-size: 1.5rem;
    margin-bottom: 0.5rem;
}

.timeline-meta {
    font-family: 'IBM Plex Mono', monospace;
    font-size: 0.95rem;
    font-weight: 600;
    letter-spacing: 0.1em;
    text-transform: uppercase;
    color: var(--accent);
    margin-bottom: 0.8rem;
}

.timeline-card h4 {
    font-size: 1.6rem;
    font-weight: 800;
    margin-bottom: 0.8rem;
    line-height: 1.2;
}

.timeline-card p {
    color: var(--text-soft);
    font-size: 1.05rem;
    font-weight: 500;
    margin-bottom: 1rem;
}

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

.timeline-card li {
    position: relative;
    padding-left: 1.1rem;
    margin-bottom: 0.9rem;
}

.timeline-card li::before {
    content: "";
    position: absolute;
    left: 0;
    top: 0.55rem;
    width: 0.45rem;
    height: 0.45rem;
    border-radius: 50%;
    background: var(--accent-strong);
}

.contact {
    padding-bottom: 6.5rem;
}

.contact-card {
    max-width: 860px;
    margin: 0 auto;
    text-align: center;
    padding: 2.25rem;
}

.overlay {
    position: fixed;
    inset: 0;
    z-index: 50;
    display: grid;
    place-items: center;
}

.overlay.hidden {
    display: none;
}

.overlay-backdrop {
    position: absolute;
    inset: 0;
    background: rgba(2, 6, 12, 0.76);
    backdrop-filter: blur(8px);
}

.overlay-content {
    position: relative;
    width: min(92vw, 820px);
    max-height: 86vh;
    overflow-y: auto;
    border-radius: 30px;
    padding: 2rem;
    z-index: 1;
}

.close-btn {
    position: absolute;
    top: 1rem;
    right: 1rem;
    width: 42px;
    height: 42px;
    border-radius: 50%;
    border: 1px solid rgba(255, 255, 255, 0.08);
    background: rgba(255, 255, 255, 0.04);
    color: var(--text-main);
    font-size: 1.6rem;
    cursor: pointer;
}

.overlay-copy h2 {
    font-size: 2rem;
    margin-bottom: 0.6rem;
}

.overlay-copy p,
.overlay-copy li {
    color: var(--text-soft);
}

.overlay-copy ul {
    margin: 1.2rem 0 0 1.2rem;
}

.overlay-copy .detail-label {
    color: var(--accent);
    text-transform: uppercase;
    letter-spacing: 0.12em;
    font-size: 0.78rem;
    font-family: 'IBM Plex Mono', monospace;
}

.reveal {
    opacity: 0;
    transform: translateY(30px) scale(0.98);
    transition: opacity 0.8s cubic-bezier(0.16, 1, 0.3, 1), transform 0.8s cubic-bezier(0.16, 1, 0.3, 1);
}

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

.delay-1 {
    transition-delay: 0.1s;
}

.delay-2 {
    transition-delay: 0.2s;
}

@media (max-width: 980px) {
    .hero,
    .about-grid,
    .project-grid,
    .skills-layout,
    .background-grid {
        grid-template-columns: 1fr;
    }

    .project-grid > :nth-child(1),
    .project-grid > :nth-child(2),
    .project-grid > :nth-child(3),
    .project-grid > :nth-child(4),
    .project-grid > *,
    .skills-layout > * {
        grid-column: 1 / -1;
    }

    .hero {
        padding-top: 3rem;
    }

    .timeline.alternating::before {
        left: 20px;
    }
    
    .timeline-item {
        width: 100%;
        padding-left: 50px;
        padding-right: 15px;
    }
    
    .timeline-item.left, 
    .timeline-item.right {
        left: 0;
        text-align: left;
    }
    
    .timeline-item.left::after, 
    .timeline-item.right::after {
        left: 11px;
    }
}

@media (max-width: 720px) {
    .site-nav {
        padding: 1rem 5%;
        flex-direction: column;
        gap: 0.85rem;
    }

    .nav-links {
        gap: 1rem;
        flex-wrap: wrap;
        justify-content: center;
    }

    .section {
        padding: 4.5rem 5%;
    }

    .hero h1 {
        font-size: clamp(2.7rem, 12vw, 4rem);
    }

    .btn {
        width: 100%;
    }

    .overlay-content {
        padding: 1.4rem;
    }

    .cursor-glow {
        display: none;
    }
}

.project-section {
    margin-top: 1.5rem;
}

.project-section h3 {
    margin-bottom: 0.55rem;
    font-size: 1.05rem;
}

.project-section p {
    margin-bottom: 0.9rem;
}

.project-section ul {
    margin-top: 0.6rem;
}

.project-actions {
    margin-top: 1.4rem;
}

.contact-email {
    margin-top: 1rem;
    color: var(--text-soft);
}

.contact-email a {
    color: var(--accent);
    text-decoration: none;
}

.copy-email-btn {
    font: inherit;
    cursor: pointer;
}

.unified-skills {
    width: 100%;
    min-width: 0;
    max-width: 100%;
    box-sizing: border-box;
    margin: 0 auto;
}

.section.skills .skills-layout {
    width: 100%;
    max-width: 100%;
    grid-template-columns: 1fr;
}

/* Floating background stickers */
.floating-stickers {
    position: absolute;
    inset: 0;
    overflow: hidden;
    pointer-events: none;
    z-index: 10;
}

.sticker {
    position: absolute;
    opacity: 0.55;
    mix-blend-mode: screen;
    animation: floatSticker 6s ease-in-out infinite;
}

.sticker-1 {
    top: 12%;
    left: 2%;
    --rot: -15deg;
    animation-delay: 0s;
    width: clamp(80px, 9vw, 120px);
}

.sticker-2 {
    top: 32%;
    right: 3%;
    --rot: 15deg;
    animation-delay: -1.5s;
    width: clamp(70px, 8vw, 100px);
}

.sticker-3 {
    top: 65%;
    left: 3%;
    --rot: 25deg;
    animation-delay: -3s;
    width: clamp(90px, 10vw, 130px);
}

.sticker-4 {
    top: 15%;
    right: 4%;
    --rot: -20deg;
    animation-delay: -4.5s;
    width: clamp(80px, 9vw, 115px);
}

.sticker-5 {
    top: 85%;
    right: 5%;
    --rot: -10deg;
    animation-delay: -2s;
    width: clamp(65px, 7vw, 95px);
}

.sticker-6 {
    top: 48%;
    left: 1%;
    --rot: 40deg;
    animation-delay: -5s;
    width: clamp(75px, 8vw, 110px);
}

.sticker-7 {
    top: 92%;
    left: 6%;
    --rot: 10deg;
    animation-delay: -1s;
    width: clamp(70px, 8vw, 105px);
}

@keyframes floatSticker {
    0%, 100% {
        transform: translateY(0) rotate(var(--rot));
    }
    50% {
        transform: translateY(-20px) rotate(var(--rot));
    }
}

/* ── Leadership Section ── */
.leadership-section .background-grid {
    grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
}

.leadership-card {
    position: relative;
    overflow: hidden;
    transition: transform 0.28s ease, border-color 0.28s ease, box-shadow 0.28s ease;
}

.leadership-card::before {
    content: "";
    position: absolute;
    inset: auto -10% -30% auto;
    width: 160px;
    height: 160px;
    border-radius: 50%;
    background: radial-gradient(circle, rgba(0, 82, 255, 0.15), transparent 70%);
    pointer-events: none;
}

.leadership-card:hover {
    transform: translateY(-4px);
    border-color: rgba(0, 82, 255, 0.3);
    box-shadow: 0 0 40px rgba(0, 82, 255, 0.15);
}

.leadership-badge {
    display: inline-flex;
    align-items: center;
    margin-top: 1.1rem;
    padding: 0.35rem 0.85rem;
    border-radius: 999px;
    background: rgba(0, 82, 255, 0.12);
    border: 1px solid rgba(0, 82, 255, 0.28);
    color: var(--accent);
    font-family: 'IBM Plex Mono', monospace;
    font-size: 0.75rem;
    font-weight: 600;
    letter-spacing: 0.08em;
    text-transform: uppercase;
}

/* ── SSoC Card ── */
.ssoc-card {
    border-color: rgba(255, 100, 180, 0.2);
}

.ssoc-card:hover {
    border-color: rgba(255, 100, 180, 0.45);
    box-shadow: 0 0 40px rgba(255, 80, 160, 0.12);
}

.ssoc-badge {
    background: rgba(255, 80, 160, 0.12);
    border-color: rgba(255, 80, 160, 0.3);
    color: #ff64b4;
}

.ssoc-code-block {
    display: flex;
    flex-direction: column;
    gap: 0.3rem;
    margin-top: 1.1rem;
    padding: 1rem 1.2rem;
    border-radius: 10px;
    background: rgba(10, 8, 20, 0.7);
    border: 1px solid rgba(255, 100, 180, 0.15);
    font-family: 'IBM Plex Mono', monospace;
    font-size: 0.82rem;
}

.ssoc-line {
    display: block;
    line-height: 1.7;
}

.ssoc-key   { color: #ff79c6; }
.ssoc-colon { color: #f8f8f2; }
.ssoc-val   { color: #50fa7b; }
.ssoc-num   { color: #bd93f9; }
