/* Global */

:root {
    --bg: #050816;
    --bg-elevated: #111827;
    --card: #111827;
    --accent: #38bdf8;
    --accent-soft: rgba(56, 189, 248, 0.15);
    --text-main: #e5e7eb;
    --text-muted: #9ca3af;
    --border-subtle: #1f2937;
}

* {
    box-sizing: border-box;
}

body {
    margin: 0;
    font-family: system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
    background: radial-gradient(circle at top, #111827 0, #020617 55%, #000 100%);
    color: var(--text-main);
}

/* Layout */

header {
    position: sticky;
    top: 0;
    z-index: 20;
    backdrop-filter: blur(12px);
    background: linear-gradient(to bottom, rgba(15,23,42,0.95), rgba(15,23,42,0.85), transparent);
    border-bottom: 1px solid rgba(15,23,42,0.8);
}

.main-width {
    max-width: 1100px;
    margin: 0 auto;
    padding: 0 16px;
}

/* Navbar */

.navbar {
    max-width: 1100px;
    margin: 0 auto;
    padding: 12px 16px;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.logo {
    color: var(--accent);
    font-weight: 700;
    font-size: 22px;
    letter-spacing: 0.08em;
}

.nav-links {
    list-style: none;
    display: flex;
    gap: 18px;
    padding: 0;
    margin: 0;
}

.nav-links a {
    color: var(--text-muted);
    text-decoration: none;
    font-size: 14px;
    padding: 6px 10px;
    border-radius: 999px;
    transition: background 0.15s ease, color 0.15s ease, transform 0.1s ease;
}

.nav-links a.active,
.nav-links a:hover {
    color: #f9fafb;
    background: rgba(15,23,42,0.9);
    transform: translateY(-1px);
}

/* Hero */

.hero {
    max-width: 1100px;
    margin: 40px auto 24px auto;
    padding: 40px 16px 32px 16px;
    display: grid;
    grid-template-columns: minmax(0, 3fr) minmax(0, 2fr);
    gap: 32px;
    align-items: center;
}

.hero-text h1 {
    font-size: clamp(32px, 4vw, 40px);
    margin-bottom: 8px;
}

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

.hero-text p {
    color: var(--text-muted);
    max-width: 520px;
    line-height: 1.6;
    margin: 0 0 18px 0;
}

.hero-meta {
    display: flex;
    flex-wrap: wrap;
    gap: 12px;
    margin-bottom: 18px;
}

.hero-tag {
    padding: 6px 10px;
    border-radius: 999px;
    background: var(--accent-soft);
    color: var(--accent);
    font-size: 12px;
}

.btn {
    display: inline-block;
    margin-top: 8px;
    padding: 10px 18px;
    border-radius: 999px;
    background: var(--accent);
    color: #020617;
    text-decoration: none;
    font-weight: 600;
    font-size: 14px;
    border: none;
    cursor: pointer;
    transition: transform 0.12s ease, box-shadow 0.12s ease, background 0.12s ease;
    box-shadow: 0 8px 20px rgba(56,189,248,0.35);
}

.btn:hover {
    transform: translateY(-1px);
    background: #0ea5e9;
    box-shadow: 0 10px 24px rgba(56,189,248,0.4);
}

.btn.secondary {
    background: transparent;
    color: var(--accent);
    border: 1px solid var(--accent);
    box-shadow: none;
}

.btn.secondary:hover {
    background: var(--accent-soft);
}

/* Hero Image Placeholder */

.hero-img {
    justify-self: center;
}

.hero-card {
    width: 100%;
    max-width: 320px;
    aspect-ratio: 4/5;
    border-radius: 22px;
    background: radial-gradient(circle at top, #1f2937 0, #020617 65%);
    border: 1px solid var(--border-subtle);
    box-shadow: 0 20px 45px rgba(15,23,42,0.75);
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    padding: 16px;
}

.hero-card-top {
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.hero-pill {
    align-self: flex-start;
    padding: 4px 10px;
    border-radius: 999px;
    font-size: 11px;
    background: rgba(15,23,42,0.85);
    color: var(--accent);
    border: 1px solid rgba(56,189,248,0.4);
}

.hero-card h2 {
    font-size: 18px;
    margin: 4px 0;
}

.hero-card p {
    font-size: 13px;
    color: var(--text-muted);
    margin: 0;
}

.hero-badges {
    display: flex;
    flex-wrap: wrap;
    gap: 6px;
    margin-top: 8px;
}

.hero-badge {
    font-size: 11px;
    padding: 3px 8px;
    border-radius: 999px;
    background: rgba(15,23,42,0.9);
    border: 1px solid rgba(31,41,55,0.9);
}

/* Featured section */

.featured {
    max-width: 1100px;
    margin: 0 auto;
    padding: 8px 16px 40px 16px;
}

.section-heading {
    display: flex;
    justify-content: space-between;
    align-items: baseline;
    margin-bottom: 10px;
}

.section-heading h2 {
    font-size: 20px;
    margin: 0;
}

.section-heading p {
    margin: 0;
    font-size: 13px;
    color: var(--text-muted);
}

.card-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
    gap: 18px;
    margin-top: 12px;
}

.card {
    background: rgba(15,23,42,0.9);
    border-radius: 16px;
    padding: 18px;
    border: 1px solid var(--border-subtle);
    box-shadow: 0 10px 30px rgba(15,23,42,0.9);
    transition: transform 0.12s ease, box-shadow 0.12s ease, border-color 0.12s ease;
}

.card:hover {
    transform: translateY(-3px);
    box-shadow: 0 16px 40px rgba(15,23,42,1);
    border-color: rgba(56,189,248,0.4);
}

.card h3 {
    margin-top: 0;
    margin-bottom: 6px;
    font-size: 16px;
}

.card p {
    margin: 0 0 10px 0;
    font-size: 13px;
    color: var(--text-muted);
}

.card-meta {
    font-size: 12px;
    color: var(--text-muted);
}

.card-btn {
    font-size: 13px;
    text-decoration: none;
    color: var(--accent);
}

/* Generic page layout */

.page-header {
    max-width: 1100px;
    margin: 28px auto 0 auto;
    padding: 40px 16px 12px 16px;
}

.page-header h1 {
    margin: 0 0 4px 0;
}

.page-header p {
    margin: 0;
    color: var(--text-muted);
    font-size: 14px;
}

.project-list,
.experience-list,
.skills-grid,
.contact-box,
.resume-layout {
    max-width: 1100px;
    margin: 0 auto 40px auto;
    padding: 0 16px;
}

/* Project list */

.project-item {
    background: rgba(15,23,42,0.95);
    border-radius: 14px;
    padding: 16px 18px;
    border: 1px solid var(--border-subtle);
    margin-bottom: 14px;
}

.project-item h2 {
    margin: 0 0 6px 0;
    font-size: 16px;
}

.project-item p {
    margin: 0 0 6px 0;
    color: var(--text-muted);
    font-size: 13px;
}

/* Experience */

.exp-item {
    background: rgba(15,23,42,0.95);
    border-radius: 14px;
    padding: 16px 18px;
    border: 1px solid var(--border-subtle);
    margin-bottom: 14px;
}

.exp-item h2 {
    margin: 0 0 6px 0;
    font-size: 16px;
}

.exp-item p {
    margin: 0;
    color: var(--text-muted);
    font-size: 13px;
}

/* Skills */

.skills-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(120px, 1fr));
    gap: 14px;
    margin-top: 12px;
}

.skill {
    background: rgba(15,23,42,0.95);
    text-align: center;
    padding: 12px;
    border-radius: 999px;
    border: 1px solid var(--border-subtle);
    font-size: 13px;
}

/* Resume layout */

.resume-layout {
    display: grid;
    grid-template-columns: minmax(0, 3fr) minmax(0, 1.5fr);
    gap: 20px;
    margin-top: 8px;
}

.resume-main h2 {
    margin-top: 0;
    margin-bottom: 6px;
    font-size: 16px;
}

.resume-item {
    margin-bottom: 10px;
}

.resume-item h3 {
    margin: 0 0 2px 0;
    font-size: 14px;
}

.resume-item p {
    margin: 0;
    font-size: 13px;
    color: var(--text-muted);
}

.resume-list {
    margin: 6px 0 0 18px;
    padding: 0;
    color: var(--text-muted);
    font-size: 13px;
}

.resume-sidebar {
    background: rgba(15,23,42,0.95);
    border-radius: 16px;
    border: 1px solid var(--border-subtle);
    padding: 16px;
    font-size: 13px;
}

.resume-sidebar h2 {
    margin-top: 0;
}

/* Contact */

.contact-box {
    background: rgba(15,23,42,0.95);
    border-radius: 16px;
    padding: 18px;
    border: 1px solid var(--border-subtle);
    font-size: 14px;
}

.contact-box p {
    margin: 4px 0;
}

/* Footer */

footer {
    text-align: center;
    padding: 18px 12px 24px 12px;
    margin-top: 20px;
    font-size: 12px;
    color: var(--text-muted);
    border-top: 1px solid rgba(15,23,42,0.8);
    background: radial-gradient(circle at top, #020617 0, #020617 60%, #000 100%);
}

/* Responsive */

@media (max-width: 800px) {
    .hero {
        grid-template-columns: minmax(0, 1fr);
        text-align: left;
    }
    .hero-img {
        order: -1;
        margin-bottom: 8px;
    }
    .resume-layout {
        grid-template-columns: minmax(0, 1fr);
    }
    .nav-links {
        gap: 10px;
        flex-wrap: wrap;
        justify-content: flex-end;
    }
}
