@import url('https://fonts.googleapis.com/css2?family=Inter:wght@300;400;500;600;700;800&family=Plus+Jakarta+Sans:wght@400;500;600;700;800&family=Fira+Code:wght@400;500&display=swap');

:root {
    --bg-obsidian: #0b0c10;
    --bg-panel: #14161c;
    --bg-card: rgba(26, 29, 36, 0.85);
    --cyan-bright: #00e5ff;
    --cyan-dim: #008ba3;
    --blue-tech: #2962ff;
    --purple-deep: #5e35b1;
    --text-main: #f8f9fa;
    --text-sec: #adb5bd;
    --text-dim: #6c757d;
    --border: rgba(0, 229, 255, 0.15);
    --border-subtle: rgba(255, 255, 255, 0.05);
    --glow-cyan: 0 0 20px rgba(0, 229, 255, 0.2);
    --glow-blue: 0 0 30px rgba(41, 98, 255, 0.15);
    --gradient-cyan: linear-gradient(135deg, #00e5ff, #2962ff);
    --gradient-dark: linear-gradient(180deg, #14161c, #0b0c10);
}

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

html {
    scroll-behavior: smooth;
}

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

/* Background Grids & Splashes */
.bg-grid {
    position: fixed;
    inset: 0;
    z-index: 0;
    opacity: 0.04;
    background-image:
        linear-gradient(rgba(255, 255, 255, 0.2) 1px, transparent 1px),
        linear-gradient(90deg, rgba(255, 255, 255, 0.2) 1px, transparent 1px);
    background-size: 40px 40px;
}

.bg-flare {
    position: fixed;
    border-radius: 50%;
    filter: blur(120px);
    opacity: 0.15;
    z-index: 0;
    pointer-events: none;
}

.bg-flare-1 {
    width: 500px;
    height: 500px;
    background: var(--cyan-bright);
    top: -10%;
    left: -5%;
}

.bg-flare-2 {
    width: 600px;
    height: 600px;
    background: var(--purple-deep);
    bottom: -10%;
    right: -10%;
}

/* Navigation */
nav {
    position: fixed;
    top: 0;
    width: 100%;
    z-index: 1000;
    background: rgba(11, 12, 16, 0.85);
    backdrop-filter: blur(16px);
    border-bottom: 1px solid var(--border-subtle);
    padding: 1rem 0;
}

.nav-inner {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 2rem;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.nav-logo {
    font-family: 'Plus Jakarta Sans', sans-serif;
    font-size: 1.4rem;
    font-weight: 800;
    letter-spacing: -0.5px;
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.nav-logo .slash {
    color: var(--cyan-bright);
}

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

.nav-links a {
    color: var(--text-sec);
    text-decoration: none;
    font-size: 0.85rem;
    font-weight: 600;
    transition: color 0.3s;
}

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

.hamburger {
    display: none;
    cursor: pointer;
    flex-direction: column;
    gap: 5px;
}

.hamburger span {
    width: 24px;
    height: 2px;
    background: var(--text-main);
    transition: 0.3s;
}

/* Hero */
.hero {
    position: relative;
    z-index: 1;
    min-height: 100vh;
    display: flex;
    align-items: center;
    padding: 7rem 2rem 4rem;
}

.hero-inner {
    max-width: 1200px;
    margin: 0 auto;
    width: 100%;
    display: grid;
    grid-template-columns: 1fr 400px;
    gap: 4rem;
    align-items: center;
}

.status-pill {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.4rem 0.8rem;
    border-radius: 20px;
    background: rgba(0, 229, 255, 0.05);
    border: 1px solid var(--border);
    font-family: 'Fira Code', monospace;
    font-size: 0.7rem;
    color: var(--cyan-bright);
    margin-bottom: 1.5rem;
}

.status-dot {
    width: 6px;
    height: 6px;
    border-radius: 50%;
    background: var(--cyan-bright);
    box-shadow: 0 0 8px var(--cyan-bright);
    animation: pulse 2s infinite;
}

@keyframes pulse {
    0% {
        opacity: 1;
    }

    50% {
        opacity: 0.4;
    }

    100% {
        opacity: 1;
    }
}

.hero h1 {
    font-family: 'Plus Jakarta Sans', sans-serif;
    font-size: 4rem;
    font-weight: 800;
    line-height: 1.1;
    letter-spacing: -1.5px;
    margin-bottom: 0.5rem;
}

.hero-role {
    font-size: 1.4rem;
    font-weight: 500;
    color: var(--text-sec);
    margin-bottom: 1.5rem;
    font-family: 'Plus Jakarta Sans', sans-serif;
}

.hero-role .highlight {
    background: var(--gradient-cyan);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    font-weight: 700;
}

.hero-bio {
    color: var(--text-sec);
    font-size: 1rem;
    line-height: 1.7;
    margin-bottom: 2rem;
    max-width: 560px;
}

.hero-cta {
    display: flex;
    gap: 1rem;
    flex-wrap: wrap;
    margin-bottom: 2.5rem;
}

.btn {
    padding: 0.8rem 1.8rem;
    border-radius: 6px;
    font-weight: 600;
    font-size: 0.9rem;
    text-decoration: none;
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    transition: all 0.3s;
}

.btn-cyan {
    background: var(--cyan-bright);
    color: #000;
}

.btn-cyan:hover {
    box-shadow: var(--glow-cyan);
    transform: translateY(-2px);
}

.btn-outline {
    background: transparent;
    color: var(--text-main);
    border: 1px solid var(--border-subtle);
}

.btn-outline:hover {
    border-color: var(--cyan-bright);
    color: var(--cyan-bright);
    transform: translateY(-2px);
}

.contact-bar {
    display: flex;
    gap: 1.5rem;
    flex-wrap: wrap;
}

.c-item {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    font-size: 0.8rem;
    color: var(--text-dim);
}

.c-item svg {
    width: 14px;
    height: 14px;
    stroke: var(--cyan-dim);
    fill: none;
    stroke-width: 2;
}

/* Dashboard Card (Profile) */
.dash-card {
    background: var(--bg-panel);
    border: 1px solid var(--border-subtle);
    border-radius: 16px;
    padding: 2rem;
    position: relative;
    overflow: hidden;
    box-shadow: 0 10px 40px rgba(0, 0, 0, 0.5);
}

.dash-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 2px;
    background: var(--gradient-cyan);
}

.d-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 2rem;
}

.d-title {
    font-family: 'Fira Code', monospace;
    font-size: 0.75rem;
    color: var(--text-dim);
    text-transform: uppercase;
}

.d-img-wrap {
    width: 120px;
    height: 120px;
    border-radius: 50%;
    padding: 3px;
    background: var(--gradient-cyan);
    margin: 0 auto 1rem;
}

.d-img-wrap img {
    width: 100%;
    height: 100%;
    border-radius: 50%;
    object-fit: cover;
    border: 3px solid var(--bg-panel);
}

.d-img-wrap .fallback {
    width: 100%;
    height: 100%;
    border-radius: 50%;
    background: var(--bg-obsidian);
    border: 3px solid var(--bg-panel);
    display: flex;
    align-items: center;
    justify-content: center;
    font-family: 'Plus Jakarta Sans', sans-serif;
    font-size: 2.5rem;
    font-weight: 800;
    color: var(--cyan-bright);
}

.d-name {
    text-align: center;
    font-family: 'Plus Jakarta Sans', sans-serif;
    font-size: 1.4rem;
    font-weight: 700;
    margin-bottom: 0.2rem;
}

.d-creds {
    text-align: center;
    font-size: 0.75rem;
    color: var(--cyan-dim);
    font-weight: 600;
    letter-spacing: 1px;
    margin-bottom: 2rem;
}

.metrics-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 1rem;
}

.metric-box {
    background: rgba(255, 255, 255, 0.02);
    border: 1px solid var(--border-subtle);
    border-radius: 8px;
    padding: 1rem;
}

.m-val {
    font-family: 'Plus Jakarta Sans', sans-serif;
    font-size: 1.5rem;
    font-weight: 800;
    color: var(--text-main);
    line-height: 1;
    margin-bottom: 0.3rem;
}

.m-val.up {
    color: var(--cyan-bright);
}

.m-lbl {
    font-size: 0.65rem;
    color: var(--text-dim);
    text-transform: uppercase;
    font-weight: 600;
    letter-spacing: 0.5px;
}

/* Sections */
.section {
    position: relative;
    z-index: 1;
    padding: 6rem 2rem;
}

.section-alt {
    background: var(--gradient-dark);
    border-top: 1px solid var(--border-subtle);
    border-bottom: 1px solid var(--border-subtle);
}

.section-inner {
    max-width: 1200px;
    margin: 0 auto;
}

.section-header {
    margin-bottom: 4rem;
    display: flex;
    align-items: flex-end;
    justify-content: space-between;
    flex-wrap: wrap;
    gap: 1rem;
}

.sh-left .tag {
    font-family: 'Fira Code', monospace;
    font-size: 0.75rem;
    color: var(--cyan-bright);
    margin-bottom: 0.5rem;
    display: block;
}

.sh-left h2 {
    font-family: 'Plus Jakarta Sans', sans-serif;
    font-size: 2.5rem;
    font-weight: 800;
    letter-spacing: -1px;
}

/* Experience (Data Table Style) */
.exp-row {
    display: grid;
    grid-template-columns: 200px 1fr;
    gap: 3rem;
    padding: 3rem 0;
    border-bottom: 1px solid var(--border-subtle);
}

.exp-row:first-of-type {
    border-top: 1px solid var(--border-subtle);
}

.exp-meta {
    position: relative;
}

.c-date {
    font-family: 'Fira Code', monospace;
    font-size: 0.8rem;
    color: var(--text-dim);
    display: block;
    margin-bottom: 0.5rem;
}

.c-role {
    font-family: 'Plus Jakarta Sans', sans-serif;
    font-size: 1.2rem;
    font-weight: 700;
    margin-bottom: 0.3rem;
}

.c-company {
    color: var(--cyan-bright);
    font-size: 0.9rem;
    font-weight: 500;
}

.c-loc {
    font-size: 0.8rem;
    color: var(--text-dim);
    margin-top: 0.5rem;
    display: flex;
    align-items: center;
    gap: 0.3rem;
}

.exp-content .c-summary {
    font-size: 0.95rem;
    color: var(--text-sec);
    margin-bottom: 1.5rem;
    line-height: 1.6;
}

.exp-content h4 {
    font-size: 0.85rem;
    color: var(--text-main);
    text-transform: uppercase;
    letter-spacing: 1px;
    margin-bottom: 0.8rem;
    border-bottom: 1px solid var(--border-subtle);
    padding-bottom: 0.5rem;
    display: inline-block;
}

.c-ul {
    list-style: none;
    margin-bottom: 1.5rem;
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 0.8rem;
}

.c-ul li {
    font-size: 0.85rem;
    color: var(--text-sec);
    padding-left: 1.2rem;
    position: relative;
}

.c-ul li::before {
    content: '→';
    position: absolute;
    left: 0;
    color: var(--cyan-dim);
    font-family: 'Fira Code', monospace;
}

.c-achieve {
    background: rgba(0, 229, 255, 0.03);
    border-left: 2px solid var(--cyan-bright);
    padding: 1.2rem;
    border-radius: 0 8px 8px 0;
}

.c-achieve-title {
    font-family: 'Fira Code', monospace;
    font-size: 0.75rem;
    color: var(--cyan-bright);
    margin-bottom: 0.8rem;
    text-transform: uppercase;
}

/* Core Proficiencies (Cards) */
.prof-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 1.5rem;
}

.prof-card {
    background: var(--bg-panel);
    border: 1px solid var(--border-subtle);
    border-radius: 12px;
    padding: 2rem;
    transition: all 0.3s;
}

.prof-card:hover {
    border-color: var(--border);
    transform: translateY(-5px);
    box-shadow: var(--glow-cyan);
}

.p-icon {
    width: 40px;
    height: 40px;
    border-radius: 8px;
    background: rgba(0, 229, 255, 0.1);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.2rem;
    margin-bottom: 1rem;
    color: var(--cyan-bright);
    border: 1px solid rgba(0, 229, 255, 0.2);
}

.p-title {
    font-family: 'Plus Jakarta Sans', sans-serif;
    font-size: 1.1rem;
    font-weight: 700;
    margin-bottom: 0.5rem;
}

.p-desc {
    font-size: 0.85rem;
    color: var(--text-sec);
    line-height: 1.6;
}

/* Tech Stack */
.tech-container {
    display: flex;
    flex-direction: column;
    gap: 2rem;
}

.tech-group {
    border-left: 2px solid var(--border-subtle);
    padding-left: 1.5rem;
}

.tech-cat {
    font-family: 'Fira Code', monospace;
    font-size: 0.8rem;
    color: var(--cyan-bright);
    margin-bottom: 1rem;
}

.tech-items {
    display: flex;
    flex-wrap: wrap;
    gap: 0.6rem;
}

.t-badge {
    background: var(--bg-panel);
    border: 1px solid var(--border-subtle);
    padding: 0.5rem 1rem;
    border-radius: 6px;
    font-size: 0.85rem;
    color: var(--text-sec);
    transition: all 0.2s;
    font-weight: 500;
}

.t-badge:hover {
    color: var(--text-main);
    border-color: var(--cyan-dim);
    background: rgba(0, 229, 255, 0.05);
}

/* Ed & Affiliations */
.ed-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 1.5rem;
}

.ed-card {
    background: var(--bg-panel);
    border: 1px solid var(--border-subtle);
    border-radius: 12px;
    padding: 1.5rem;
}

.ed-deg {
    font-family: 'Plus Jakarta Sans', sans-serif;
    font-size: 1rem;
    font-weight: 700;
    margin-bottom: 0.2rem;
}

.ed-uni {
    font-size: 0.85rem;
    color: var(--text-sec);
    margin-bottom: 0.8rem;
}

.ed-meta {
    font-family: 'Fira Code', monospace;
    font-size: 0.75rem;
    color: var(--cyan-dim);
    padding: 0.2rem 0.6rem;
    background: rgba(0, 229, 255, 0.05);
    border-radius: 4px;
    display: inline-block;
}

.aff-list {
    display: flex;
    flex-direction: column;
    gap: 0.8rem;
}

.aff-item {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 1rem;
    background: var(--bg-panel);
    border: 1px solid var(--border-subtle);
    border-radius: 8px;
}

.aff-name {
    font-weight: 600;
    font-size: 0.9rem;
}

.aff-id {
    font-family: 'Fira Code', monospace;
    font-size: 0.8rem;
    color: var(--cyan-dim);
}

/* Footer */
footer {
    padding: 4rem 2rem;
    text-align: center;
    border-top: 1px solid var(--border-subtle);
    position: relative;
    z-index: 1;
}

.f-logo {
    font-family: 'Plus Jakarta Sans', sans-serif;
    font-size: 1.2rem;
    font-weight: 800;
    margin-bottom: 1rem;
}

.f-logo .slash {
    color: var(--cyan-bright);
}

footer p {
    font-size: 0.85rem;
    color: var(--text-dim);
}

/* Animations */
.fade-up {
    opacity: 0;
    transform: translateY(20px);
    transition: all 0.6s ease;
}

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

/* Responsive */
@media (max-width: 992px) {
    .hero-inner {
        grid-template-columns: 1fr;
        gap: 3rem;
        text-align: center;
    }

    .hero-bio {
        margin: 0 auto 2rem;
    }

    .hero-cta,
    .contact-bar {
        justify-content: center;
    }

    .dash-card {
        max-width: 400px;
        margin: 0 auto;
        order: -1;
    }

    .exp-row {
        grid-template-columns: 1fr;
        gap: 1.5rem;
        padding: 2rem 0;
    }

    .c-ul {
        grid-template-columns: 1fr;
    }

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

@media (max-width: 768px) {
    .nav-links {
        display: none;
    }

    .hamburger {
        display: flex;
    }

    .nav-links.active {
        display: flex;
        flex-direction: column;
        position: absolute;
        top: 100%;
        left: 0;
        width: 100%;
        background: var(--bg-panel);
        padding: 1.5rem;
        border-bottom: 1px solid var(--border-subtle);
    }

    .hero h1 {
        font-size: 3rem;
    }

    .prof-grid,
    .ed-grid {
        grid-template-columns: 1fr;
    }

    .aff-item {
        flex-direction: column;
        align-items: flex-start;
        gap: 0.5rem;
    }

    .section {
        padding: 4rem 1.5rem;
    }
}