@import url("https://fonts.googleapis.com/css2?family=Space+Grotesk:wght@500;700&family=Inter:wght@400;500;600;700;800&display=swap");

:root {
    --bg: #0b1220;
    --bg-alt: #0f1729;
    --surface: #141d2f;
    --surface-2: #1a253b;
    --text: #e6edf7;
    --muted: #9db0cc;
    --primary: #5ea2ff;
    --primary-strong: #3d8dff;
    --accent: #8fb9ff;
    --border: #24314a;
    --radius-lg: 18px;
    --radius-pill: 999px;
}

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

html {
    scroll-behavior: smooth;
}

body {
    font-family: "Inter", "Segoe UI", Arial, sans-serif;
    background: var(--bg);
    color: var(--text);
    line-height: 1.75;
}

a {
    color: var(--primary);
    text-decoration: none;
    transition: color 0.2s ease;
}

a:hover {
    color: var(--primary-strong);
}

.container {
    width: min(1120px, 91.5%);
    margin: 0 auto;
}

.narrow {
    width: min(840px, 91.5%);
}

.site-header {
    background:
        radial-gradient(circle at 10% 0%, rgba(76, 126, 255, 0.25) 0%, rgba(11, 18, 32, 0) 45%),
        radial-gradient(circle at 85% 20%, rgba(56, 189, 248, 0.16) 0%, rgba(11, 18, 32, 0) 40%),
        var(--bg);
    padding-bottom: 3.2rem;
    border-bottom: 1px solid var(--border);
}

.navbar {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 1.4rem 0;
    position: relative;
    position: sticky;
    top: 0.8rem;
    z-index: 20;
    background: rgba(15, 23, 41, 0.66);
    backdrop-filter: blur(10px);
    border: 1px solid var(--border);
    border-radius: var(--radius-lg);
    padding: 0.86rem 1.1rem;
    margin-top: 0.7rem;
}

.brand {
    color: #ffffff;
    font-family: "Space Grotesk", "Inter", sans-serif;
    font-size: 1.22rem;
    font-weight: 800;
    letter-spacing: 0.6px;
}

.menu-toggle {
    display: none;
    border: 1px solid var(--border);
    background: transparent;
    color: var(--text);
    border-radius: 8px;
    padding: 0.45rem 0.8rem;
    cursor: pointer;
}

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

.nav-links a {
    color: #cfdbef;
    font-weight: 500;
    font-size: 0.9rem;
    letter-spacing: 0.1px;
}

.hire-link {
    border: 1px solid var(--border);
    border-radius: var(--radius-pill);
    padding: 0.34rem 0.82rem;
}

.hire-link:hover {
    border-color: var(--primary);
}

.hero {
    padding: 3.5rem 0 2.15rem;
    max-width: 780px;
}

.availability {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    text-transform: uppercase;
    letter-spacing: 1px;
    font-size: 0.75rem;
    color: #c4d8f7;
    margin-bottom: 1.15rem;
}

.availability::before {
    content: "";
    width: 8px;
    height: 8px;
    border-radius: 50%;
    background: #22c55e;
    box-shadow: 0 0 0 6px rgba(34, 197, 94, 0.15);
}

.hero h1 {
    font-family: "Space Grotesk", "Inter", sans-serif;
    font-size: clamp(2.45rem, 6.6vw, 4.55rem);
    line-height: 0.98;
    margin-bottom: 0.52rem;
    color: #f8fafc;
    letter-spacing: -0.02em;
}

.hero-role {
    color: var(--accent);
    font-weight: 600;
    margin-bottom: 0.75rem;
    font-size: clamp(1rem, 2.2vw, 1.2rem);
}

.hero-copy {
    color: #c5d3e9;
    margin-bottom: 1.5rem;
    max-width: 64ch;
    font-size: 1rem;
}

.hero-actions {
    display: flex;
    flex-wrap: wrap;
    gap: 0.75rem;
}

.btn-primary,
.btn-secondary {
    display: inline-block;
    border-radius: var(--radius-pill);
    padding: 0.72rem 1.18rem;
    border: 1px solid transparent;
    font-weight: 600;
    transition: transform 0.28s cubic-bezier(0.22, 1, 0.36, 1), background-color 0.28s ease, border-color 0.28s ease;
}

.btn-primary {
    background: var(--primary-strong);
    color: #ffffff;
}

.btn-primary:hover {
    transform: translateY(-2px);
    background: #2563eb;
}

.btn-secondary {
    color: #dbe8ff;
    border-color: var(--border);
    background: transparent;
}

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

.section {
    padding: 5.4rem 0;
}

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

h2 {
    font-size: clamp(2rem, 4.4vw, 2.95rem);
    margin-bottom: 0.92rem;
    color: #f3f4f6;
    letter-spacing: -0.02em;
    line-height: 1.2;
}

.section-tag {
    text-transform: uppercase;
    font-size: 0.74rem;
    letter-spacing: 1.4px;
    color: var(--accent);
    margin-bottom: 0.58rem;
    font-weight: 700;
}

.about-meta {
    margin-top: 1.3rem;
    display: grid;
    gap: 0.45rem;
    color: #d7e3f6;
}

.stats-grid {
    margin-top: 2.15rem;
    display: grid;
    gap: 1.05rem;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
}

.stat-card {
    background: linear-gradient(180deg, rgba(20, 29, 47, 0.95), rgba(26, 37, 59, 0.95));
    border: 1px solid var(--border);
    border-radius: var(--radius-lg);
    padding: 1.08rem;
    box-shadow: 0 10px 24px rgba(8, 13, 23, 0.35);
    transition: transform 0.28s cubic-bezier(0.22, 1, 0.36, 1), border-color 0.28s ease, box-shadow 0.28s ease;
}

.stat-card:hover {
    transform: translateY(-4px);
    border-color: #315081;
    box-shadow: 0 16px 30px rgba(8, 13, 23, 0.45);
}

.stat-card h3 {
    font-size: 1.85rem;
    margin-bottom: 0.2rem;
    color: #f5f9ff;
}

.stat-card p {
    font-size: 0.9rem;
    color: var(--muted);
}

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

.card,
.project-card {
    background: linear-gradient(180deg, var(--surface), var(--surface-2));
    border: 1px solid var(--border);
    border-radius: var(--radius-lg);
    padding: 1.25rem;
    box-shadow: 0 14px 28px rgba(8, 13, 23, 0.34);
    transition: transform 0.28s cubic-bezier(0.22, 1, 0.36, 1), border-color 0.28s ease, box-shadow 0.28s ease;
}

.card:hover,
.project-card:hover {
    transform: translateY(-4px);
    border-color: #4b668f;
    box-shadow: 0 20px 36px rgba(8, 13, 23, 0.46);
}

h3 {
    font-size: 1.1rem;
    margin-bottom: 0.58rem;
}

.meta {
    color: var(--muted);
    font-size: 0.92rem;
    margin-top: 0.5rem;
}

.project-card p {
    margin-bottom: 0.6rem;
    color: #d1d5db;
}

.contact-links {
    margin-top: 1.35rem;
    display: flex;
    flex-wrap: wrap;
    gap: 0.85rem;
}

.contact-links a {
    background: var(--surface-2);
    border: 1px solid var(--border);
    color: #e5e7eb;
    border-radius: var(--radius-pill);
    padding: 0.62rem 0.96rem;
    transition: border-color 0.2s ease, transform 0.2s ease;
}

.contact-links a:hover {
    border-color: var(--primary);
    transform: translateY(-2px);
}

.timeline {
    display: grid;
    gap: 1.06rem;
}

.timeline-item {
    background: linear-gradient(180deg, var(--surface), var(--surface-2));
    border: 1px solid var(--border);
    border-radius: var(--radius-lg);
    padding: 1.15rem;
    box-shadow: 0 14px 28px rgba(8, 13, 23, 0.3);
}

.period {
    font-size: 0.8rem;
    color: var(--accent);
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 1px;
}

.org {
    color: var(--muted);
    font-size: 0.92rem;
    margin-bottom: 0.45rem;
}

.education-grid {
    display: grid;
    gap: 1.06rem;
    grid-template-columns: repeat(auto-fit, minmax(255px, 1fr));
}

.footer {
    border-top: 1px solid var(--border);
    padding: 1.5rem 0;
    color: var(--muted);
    font-size: 0.92rem;
    text-align: center;
}

.footer p + p {
    margin-top: 0.3rem;
}

/* Subtle entry animation similar to modern portfolio templates */
.hero,
.stat-card,
.card,
.project-card,
.timeline-item {
    animation: fadeUp 0.65s ease both;
}

.stat-card:nth-child(2),
.card:nth-child(2),
.project-card:nth-child(2),
.timeline-item:nth-child(2) {
    animation-delay: 0.08s;
}

.stat-card:nth-child(3),
.card:nth-child(3),
.project-card:nth-child(3),
.timeline-item:nth-child(3) {
    animation-delay: 0.16s;
}

.stat-card:nth-child(4),
.card:nth-child(4) {
    animation-delay: 0.24s;
}

@keyframes fadeUp {
    from {
        opacity: 0;
        transform: translateY(16px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

@media (max-width: 768px) {
    .container,
    .narrow {
        width: min(640px, 92%);
    }

    .menu-toggle {
        display: inline-block;
    }

    .nav-links {
        display: none;
        position: absolute;
        right: 0;
        top: 100%;
        width: 230px;
        background: #111827;
        border: 1px solid var(--border);
        border-radius: 12px;
        padding: 0.9rem;
        flex-direction: column;
        gap: 0.75rem;
        z-index: 10;
    }

    .nav-links.nav-open {
        display: flex;
    }

    .hero {
        padding-top: 2.7rem;
    }

    .section {
        padding: 3.9rem 0;
    }

    h2 {
        font-size: clamp(1.75rem, 7vw, 2.2rem);
    }

    .hero h1 {
        font-size: clamp(2.2rem, 14vw, 3.2rem);
    }

    .stats-grid,
    .skills-grid,
    .projects-grid,
    .education-grid {
        grid-template-columns: 1fr;
    }

    .contact-links {
        flex-direction: column;
        align-items: flex-start;
    }
}

@media (max-width: 420px) {
    .navbar {
        padding: 0.78rem 0.84rem;
    }

    .brand {
        font-size: 1.08rem;
    }

    .hero-copy {
        font-size: 0.95rem;
    }

    .btn-primary,
    .btn-secondary {
        width: 100%;
        text-align: center;
    }
}