/* ==== Base / Reset ==== */
* {
    box-sizing: border-box;
}

html,
body {
    margin: 0;
    padding: 0;
}

:root {
    --bg: #0f172a;
    --bg-soft: #111827;
    --card: rgba(255, 255, 255, 0.08);
    --text: #e5e7eb;
    --muted: #9ca3af;
    --brand: #2563eb;
    /* blue */
    --brand-2: #7c3aed;
    /* violet */
    --surface: #0b1220;
    --light: #ffffff;
    --shadow: 0 18px 45px rgba(0, 0, 0, .35);
}

body {
    font-family: 'Poppins', system-ui, -apple-system, Segoe UI, Roboto, Arial, sans-serif;
    color: var(--text);
    background: var(--surface);
    line-height: 1.4;
    scroll-behavior: smooth;
}

/* Containers */
.container {
    width: min(1100px, 92%);
    margin-inline: auto;
}

/* ==== Navbar ==== */
.site-header {
    position: sticky;
    top: 0;
    z-index: 50;
    background: rgba(15, 23, 42, .7);
    backdrop-filter: blur(10px);
    border-bottom: 1px solid rgba(255, 255, 255, .06);
}

.nav {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 14px 0;
}

.brand {
    font-weight: 700;
    letter-spacing: .4px;
    text-decoration: none;
    color: var(--light);
    font-size: 1.15rem;
}

.brand span {
    color: var(--brand);
}

.nav-toggle {
    display: none;
    background: none;
    border: none;
    color: var(--light);
    font-size: 1.4rem;
    cursor: pointer;
}

.nav-menu {
    list-style: none;
    display: flex;
    gap: 20px;
}

.nav-menu a {
    color: var(--text);
    text-decoration: none;
    padding: 8px 10px;
    border-radius: 10px;
}

.nav-menu a:hover {
    background: rgba(255, 255, 255, .08);
}

/* ==== Hero ==== */
.hero {
    position: relative;
    min-height: 64vh;
    display: grid;
    place-items: center;
    background: url('bg.avif') center/cover no-repeat;
    border-bottom: 1px solid rgba(255, 255, 255, .06);
}

.overlay {
    position: absolute;
    inset: 0;
    background: linear-gradient(180deg, rgba(0, 0, 0, .45), rgba(0, 0, 0, .55));
}

.hero-inner {
    position: relative;
    z-index: 1;
    text-align: center;
    padding: 70px 0 80px;
}

.hero-title {
    margin: 0 0 10px;
    font-weight: 700;
    font-size: clamp(1.6rem, 2.8vw + 1rem, 2.8rem);
}

.hero-sub {
    color: var(--muted);
    margin: 6px 0 20px;
}

.btn {
    background: linear-gradient(135deg, var(--brand), var(--brand-2));
    border: none;
    color: white;
    padding: 12px 18px;
    border-radius: 12px;
    font-weight: 600;
    cursor: pointer;
    text-decoration: none;
    display: inline-block;
    box-shadow: var(--shadow);
    transform: translateY(0);
    transition: transform .15s ease;
}

.btn:hover {
    transform: translateY(-1px);
}

.btn-light {
    background: rgba(255, 255, 255, .15);
    border: 1px solid rgba(255, 255, 255, .2);
}

/* ==== Sections ==== */
.section {
    padding: 64px 0;
}

.section-alt {
    background: #0e1628;
    border-block: 1px solid rgba(255, 255, 255, .06);
}

.section-head {
    text-align: center;
    margin-bottom: 26px;
}

.section-head h2 {
    margin: 0 0 6px;
    font-size: clamp(1.2rem, 1.2vw + 1rem, 2rem);
}

.section-head p {
    color: var(--muted);
    margin: 0;
}

/* ==== Search area ==== */
.search-box {
    margin: 14px auto 18px;
    display: flex;
    gap: 10px;
    justify-content: center;
    align-items: center;
    flex-wrap: wrap;
}

.search-box input {
    width: min(460px, 92vw);
    padding: 14px 14px;
    border-radius: 14px;
    background: rgba(255, 255, 255, .08);
    border: 1px solid rgba(255, 255, 255, .18);
    color: var(--text);
    outline: none;
    font-size: 16px;
}

.search-box input::placeholder {
    color: #cbd5e1;
}

.search-box .btn {
    padding: 14px 20px;
}

.status {
    min-height: 22px;
    text-align: center;
    color: #cbd5e1;
    margin: 4px 0 14px;
}

/* Result card */
.card {
    background: var(--card);
    border: 1px solid rgba(255, 255, 255, .10);
    border-radius: 18px;
    padding: 18px;
    width: min(720px, 96%);
    margin: 0 auto;
    box-shadow: var(--shadow);
    animation: pop .18s ease;
}

@keyframes pop {
    from {
        transform: scale(.98);
        opacity: .3;
    }

    to {
        transform: scale(1);
        opacity: 1;
    }
}

.card .top {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 14px;
    flex-wrap: wrap;
}

.profile-head {
    display: flex;
    align-items: center;
    gap: 14px;
}

.avatar {
    width: 80px;
    height: 80px;
    border-radius: 50%;
    object-fit: cover;
    border: 2px solid rgba(255, 255, 255, .2);
}

.meta {
    display: flex;
    gap: 12px;
    flex-wrap: wrap;
    color: var(--muted);
    font-size: .95rem;
}

.meta span {
    background: rgba(255, 255, 255, .06);
    padding: 6px 10px;
    border-radius: 999px;
}

.card a {
    color: #93c5fd;
    text-decoration: none;
}

.card a:hover {
    text-decoration: underline;
}

.bio {
    color: #e2e8f0;
    margin-top: 10px;
}

/* ==== Features grid ==== */
.grid {
    display: grid;
    gap: 18px;
    grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
    margin-top: 10px;
}

.feature {
    background: var(--card);
    border: 1px solid rgba(255, 255, 255, .10);
    border-radius: 16px;
    padding: 18px;
    transition: transform .15s ease;
}

.feature:hover {
    transform: translateY(-3px);
}

/* ==== Footer ==== */
.site-footer {
    background: #0b1020;
    border-top: 1px solid rgba(255, 255, 255, .06);
}

.footer-grid {
    display: grid;
    gap: 18px;
    grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
    padding: 28px 0;
}

.brand-footer {
    font-size: 1.05rem;
    font-weight: 700;
}

.footer-links {
    list-style: none;
    padding: 0;
    margin: 8px 0 0;
}

.footer-links a {
    color: var(--text);
    text-decoration: none;
}

.footer-links a:hover {
    text-decoration: underline;
}

.copy {
    text-align: center;
    padding: 10px 0 20px;
}

/* ==== Accessibility helpers ==== */
.sr-only {
    position: absolute;
    width: 1px;
    height: 1px;
    padding: 0;
    margin: -1px;
    overflow: hidden;
    clip: rect(0, 0, 0, 0);
    border: 0;
}

/* ==== Responsive nav ==== */
@media (max-width: 840px) {
    .nav-toggle {
        display: block;
    }

    .nav-menu {
        position: absolute;
        right: 4%;
        top: 58px;
        background: rgba(15, 23, 42, .95);
        border: 1px solid rgba(255, 255, 255, .08);
        border-radius: 12px;
        padding: 10px;
        display: none;
        flex-direction: column;
        gap: 6px;
        width: 180px;
    }

    .nav-menu.show {
        display: flex;
    }
}