/* ---------- Global Reset / Base ---------- */
*,
*::before,
*::after {
    box-sizing: border-box;
}

html,
body {
    margin: 0;
    padding: 0;
    height: 100%;
    font-family: system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
    color: #e5e7eb;
    scroll-behavior: smooth;
    font-size: 18px;
}

h1, h2, h3 {
    font-weight: 700;
    color: #ffffff !important;   /* bright */
    letter-spacing: 0.3px;
}

p {
    font-size: 18px;
    font-weight: 450;
    color: #f8fafc !important;
    line-height: 1.7;
}

/* ---------- Starfield Canvas Background ---------- */
#star-canvas {
    position: fixed;
    inset: 0;
    width: 100%;
    height: 100%;
    display: block;
    z-index: -1;
}

/* ---------- Layout ---------- */
.page {
    position: relative;
    min-height: 100vh;
    display: flex;
    flex-direction: column;
}

header {
    position: sticky;
    top: 0;
    z-index: 10;
    background: rgba(5, 8, 22, 0.35);
    backdrop-filter: blur(6px);
    border-bottom: 1px solid rgba(148, 163, 184, 0.2);
}

.nav {
    max-width: 1080px;
    margin: 0 auto;
    padding: 0.75rem 1.5rem;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 1rem;
}

.nav-left {
    display: flex;
    flex-direction: column;
}

.nav-title {
    font-size: 1rem;
    font-weight: 600;
    letter-spacing: 0.08em;
    text-transform: uppercase;
    background: linear-gradient(90deg, #f97316, #a855f7, #22d3ee);
    -webkit-background-clip: text;
    background-clip: text;
    color: transparent;
}

.nav-links {
    display: flex;
    align-items: center;
    gap: 1.1rem;
    font-size: 0.85rem;
}

.nav-links a {
    text-decoration: none;
    color: #cbd5f5;
    opacity: 0.9;
    position: relative;
    padding-bottom: 2px;
}

.nav-links a::after {
    content: "";
    position: absolute;
    left: 0;
    bottom: 0;
    width: 0;
    height: 1px;
    background: linear-gradient(90deg, #22d3ee, #a855f7, #f97316);
    transition: width 160ms ease-out;
}

.nav-links a:hover::after {
    width: 100%;
}

.nav-links a:hover {
    opacity: 1;
}

main {
    flex: 1;
}

.section {
    max-width: 1080px;
    margin: 0 auto;
    padding: 3.25rem 1.5rem;
    background: transparent;
}

.section-inner {
    max-width: 960px;
    margin: 0 auto;
}

/* ---------- Panel ---------- */
.panel {
    background: radial-gradient(circle at top left,
    rgba(30, 64, 175, 0.22),
    rgba(10, 16, 30, 0.94));
    border-radius: 18px;
    box-shadow:
            0 14px 32px rgba(15, 23, 42, 0.85),
            0 0 0 1px rgba(15, 23, 42, 0.9);
    backdrop-filter: blur(1.3px);
    padding: 1.75rem 1.6rem;
    position: relative;
}

.panel--hero {
    padding: 2.1rem 1.9rem;
}

.panel::before {
    content: "";
    position: absolute;
    bottom: 0;
    left: 18px;
    right: 18px;
    height: 2px;
    border-radius: 999px;
    background: linear-gradient(90deg,
    rgba(56, 189, 248, 0.7),
    rgba(168, 85, 247, 0.7),
    rgba(249, 115, 22, 0.7));
    opacity: 0.75;
    pointer-events: none;
}

.section-header {
    display: flex;
    align-items: baseline;
    justify-content: space-between;
    margin-bottom: 1.25rem;
    padding-bottom: 0.75rem;
    border-bottom: 1px solid rgba(148, 163, 184, 0.2);
}

.section-title {
    font-size: 0.95rem;
    text-transform: uppercase;
    letter-spacing: 0.16em;
    color: #e5e7eb;
}

.section-tagline {
    font-size: 0.82rem;
    color: #9ca3af;
}

.body-text {
    font-size: 0.9rem;
    color: #9ca3af;
    line-height: 1.7;
    margin: 0 0 0.9rem;
}

/* ---------- HERO ---------- */
.hero-section {
    min-height: calc(100vh - 64px);
    display: flex;
    align-items: center;
}

.hero-single {
    text-align: center;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 0.75rem;
}

.hero-avatar {
    width: 150px;
    height: 150px;
    border-radius: 999px;
    object-fit: cover;
    border: 2px solid rgba(148, 163, 184, 0.9);
    box-shadow: 0 16px 40px rgba(15, 23, 42, 0.95);
}

.hero-heading {
    font-size: clamp(2.2rem, 3.1vw, 2.7rem);
    font-weight: 700;
    margin: 0.25rem 0 0.4rem;
    color: #e5e7eb;
}

.accent {
    background: linear-gradient(120deg, #22d3ee, #a855f7, #f97316);
    -webkit-background-clip: text;
    background-clip: text;
    color: transparent;
}

.hero-about {
    font-size: 0.9rem;
    color: #9ca3af;
    max-width: 36rem;
    line-height: 1.6;
    margin: 0.25rem auto;
}

.hero-buttons {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 0.75rem;
    margin-top: 0.9rem;
}

/* separate rows */
.hero-buttons--primary {
    margin-top: 1.1rem;
}

.hero-buttons--secondary {
    margin-top: 0.5rem;
}

/* ---------- Buttons ---------- */
.btn {
    font-size: 0.85rem;
    padding: 0.55rem 1.15rem;
    border-radius: 999px;
    border: 1px solid transparent;
    cursor: pointer;
    text-decoration: none;
    display: inline-flex;
    align-items: center;
    gap: 0.4rem;
}

.btn-primary {
    background: linear-gradient(120deg, #22d3ee, #4f46e5, #a855f7);
    color: white;
    box-shadow: 0 10px 30px rgba(15, 23, 42, 0.8);
}

.btn-outline {
    border-color: rgba(148, 163, 184, 0.8);
    color: #e5e7eb;
    background: rgba(15, 23, 42, 0.6);
}

.btn:hover {
    filter: brightness(1.07);
}

/* ---------- Horizontal bullets (chips) ---------- */
.h-bullets {
    display: flex;
    flex-wrap: wrap;
    gap: 0.45rem 0.75rem;
    margin: 0.6rem 0 0.8rem;
}

.h-bullets span {
    font-size: 0.75rem;
    padding: 0.25rem 0.55rem;
    border-radius: 999px;
    background: rgba(15, 23, 42, 0.45);
    border: 1px solid rgba(148, 163, 184, 0.5);
    color: #e5e7eb;
}

/* ---------- Research & Projects-style inner panels ---------- */
.project-list {
    list-style: none;
    margin: 0;
    padding: 0;
    display: grid;
    gap: 1rem;
}

.project-item {
    background: rgba(15, 23, 42, 0.96);
    border-radius: 12px;
    border: 1px solid rgba(148, 163, 184, 0.45);
    padding: 0.85rem 0.9rem;
    box-shadow: 0 8px 20px rgba(15, 23, 42, 0.6);
}

.project-item h3 {
    margin: 0 0 0.25rem;
    font-size: 0.98rem;
    color: #e5e7eb;
}

.project-meta {
    font-size: 0.78rem;
    color: #94a3b8;
    margin-bottom: 0.55rem;
}

.project-item p {
    margin: 0 0 0.5rem;
    color: #9ca3af;
    font-size: 0.86rem;
}

/* ---------- Footer ---------- */
footer {
    font-size: 0.75rem;
    color: #6b7280;
    text-align: center;
    padding: 1.5rem 1rem 2rem;
}

/* ---------- Responsive ---------- */
@media (max-width: 768px) {
    .nav {
        flex-direction: column;
        align-items: flex-start;
    }

    .section {
        padding: 2.6rem 1.25rem;
    }

    .hero-section {
        min-height: auto;
    }

    .section-header {
        flex-direction: column;
        align-items: flex-start;
        gap: 0.35rem;
    }

    .hero-buttons--secondary {
        justify-content: center;
    }
}


