:root {
    color-scheme: dark;
    color: #E2E8F0;
    background: #050816;
    font-family: "IBM Plex Sans", sans-serif;
    font-size: 16px;
    line-height: 1.65;
    scroll-behavior: smooth;

    --bg: #050816;
    --surface: rgba(11, 16, 38, 0.72);
    --surface-strong: rgba(11, 16, 38, 0.88);
    --accent: #7DD3FC;
    --accent-soft: #A78BFA;
    --text: #E2E8F0;
    --muted: #A8B2C0;
    --border: rgba(226, 232, 240, 0.12);
    --shadow: 0 40px 150px rgba(2, 8, 24, 0.35);
}

* {
    box-sizing: border-box;
}

html, body {
    margin: 0;
    min-height: 100%;
    background: radial-gradient(circle at top, rgba(125, 211, 252, 0.08), transparent 26%),
                radial-gradient(circle at 80% 20%, rgba(167, 139, 250, 0.07), transparent 24%),
                var(--bg);
    overflow-x: hidden;
}

body {
    position: relative;
    overflow-x: hidden;
}

#starfield {
    position: fixed;
    inset: 0;
    z-index: -2;
    background: transparent;
}

.noise {
    pointer-events: none;
    position: fixed;
    inset: 0;
    z-index: -1;
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='120' height='120' viewBox='0 0 120 120'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.9' result='noise'/%3E%3CfeColorMatrix type='saturate' values='0'/%3E%3C/filter%3E%3Crect width='120' height='120' filter='url(%23n)' opacity='0.08'/%3E%3C/svg%3E");
}

.topbar {
    position: sticky;
    top: 0;
    z-index: 10;
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 1rem;
    width: min(1180px, calc(100% - 2rem));
    margin: 0 auto;
    padding: 1rem 0;
    backdrop-filter: blur(16px);
}

.topbar .brand {
    font-family: "Space Grotesk", sans-serif;
    font-size: 1rem;
    font-weight: 700;
    letter-spacing: 0.22em;
    text-transform: uppercase;
    color: var(--text);
}

nav {
    display: flex;
    gap: 1.4rem;
    flex-wrap: wrap;
}

nav a {
    color: var(--muted);
    text-decoration: none;
    font-size: 0.94rem;
    transition: color 0.3s ease;
}

nav a:hover,
nav a:focus-visible {
    color: var(--accent);
}

main {
    width: min(1180px, calc(100% - 2rem));
    margin: 0 auto;
}

.panel {
    padding: clamp(3rem, 4vw, 6rem) 0;
    position: relative;
}

.panel-glass {
    background: var(--surface);
    border: 1px solid var(--border);
    border-radius: 28px;
    box-shadow: var(--shadow);
    backdrop-filter: blur(20px);
    padding: clamp(2.4rem, 3vw, 4rem);
}

.hero-panel {
    min-height: clamp(680px, 70vh, 780px);
    display: grid;
    align-items: center;
    position: relative;
}

.hero-grid {
    display: grid;
    grid-template-columns: minmax(0, 1.1fr) minmax(280px, 0.9fr);
    gap: 2.5rem;
    align-items: center;
}

.hero-copy {
    max-width: 620px;
}

.eyebrow {
    display: inline-block;
    margin-bottom: 1.5rem;
    letter-spacing: 0.25em;
    text-transform: uppercase;
    font-size: 0.78rem;
    color: var(--accent);
}

h1 {
    margin: 0;
    font-size: clamp(3rem, 5vw, 5.2rem);
    line-height: 0.95;
    letter-spacing: -0.04em;
    color: #EAF2FF;
}

h1 span {
    color: var(--accent-soft);
}

.hero-intro,
.hero-subtitle {
    max-width: 620px;
    color: var(--muted);
}

.hero-intro {
    margin: 1.8rem 0 1rem;
    font-size: 1rem;
}

.hero-subtitle {
    position: relative;
    margin-bottom: 2rem;
    min-height: 3.2rem;
    font-size: 1.05rem;
    font-weight: 500;
}

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

.button,
.ghost {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 0.95rem 1.7rem;
    border-radius: 999px;
    font-weight: 600;
    text-decoration: none;
    transition: transform 0.3s ease, background 0.3s ease, color 0.3s ease;
}

.button {
    background: rgba(125, 211, 252, 0.16);
    color: var(--accent);
    border: 1px solid rgba(125, 211, 252, 0.18);
}

.ghost {
    border: 1px solid rgba(226, 232, 240, 0.16);
    color: var(--text);
}

.button:hover,
.ghost:hover {
    transform: translateY(-2px);
}

.hero-visual {
    display: grid;
    place-items: center;
    min-height: 420px;
}

.orbitals {
    width: min(100%, 360px);
    height: min(100%, 360px);
    position: relative;
}

.orbitals svg {
    width: 100%;
    height: 100%;
}

.orbit {
    fill: none;
    stroke: rgba(126, 211, 252, 0.12);
    stroke-width: 1.2;
}

.orbit-1 { stroke-dasharray: 8 12; }
.orbit-2 { stroke-dasharray: 16 26; }
.orbit-3 { stroke-dasharray: 12 18; }

.signal circle {
    fill: rgba(125, 211, 252, 0.88);
    filter: drop-shadow(0 0 16px rgba(125, 211, 252, 0.2));
    animation: pulse 7s ease-in-out infinite;
}

@keyframes pulse {
    0%, 100% { transform: scale(1); opacity: 1; }
    50% { transform: scale(1.14); opacity: 0.72; }
}

.section-header {
    display: flex;
    flex-direction: column;
    gap: 0.75rem;
    margin-bottom: 2rem;
}

.section-header h2 {
    margin: 0;
    font-size: clamp(2rem, 3vw, 3rem);
    letter-spacing: -0.04em;
}

.section-header p {
    margin: 0;
    color: var(--muted);
    max-width: 720px;
}

.content-shell {
    max-width: 820px;
}

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

.project-card,
.skill-block,
.timeline-item {
    background: rgba(255, 255, 255, 0.02);
    border: 1px solid rgba(226, 232, 240, 0.08);
    border-radius: 24px;
    padding: 1.8rem;
    transition: transform 0.35s ease, border-color 0.35s ease, box-shadow 0.35s ease;
}

.project-card:hover,
.skill-block:hover,
.timeline-item:hover {
    transform: translateY(-4px);
    border-color: rgba(125, 211, 252, 0.24);
    box-shadow: 0 30px 60px rgba(2, 8, 24, 0.24);
}

.project-tag {
    color: var(--accent);   
    font-size: 0.88rem;
    letter-spacing: 0.14em;
    text-transform: uppercase;
    margin-bottom: 0.9rem;
}

.project-card h3,
.skill-block h3,
.timeline-item h3 {
    margin: 0 0 0.8rem;
    font-size: 1.28rem;
}

.project-card p,
.skill-block p,
.timeline-item p {
    margin: 0;
    color: var(--muted);
}

.project-links {
    margin-top: 1.7rem;
    display: flex;
    gap: 1rem;
    flex-wrap: wrap;
}

.project-links a {
    color: var(--accent);
    font-weight: 600;
    text-decoration: none;
}

.timeline-list {
    display: grid;
    gap: 1rem;
}

.timeline-item {
    display: grid;
    grid-template-columns: auto 1fr;
    gap: 1rem;
    align-items: flex-start;
}

.timeline-marker {
    width: 12px;
    height: 12px;
    border-radius: 50%;
    margin-top: 0.6rem;
    background: linear-gradient(135deg, var(--accent), var(--accent-soft));
    box-shadow: 0 0 14px rgba(125, 211, 252, 0.24);
}

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

.contact-links {
    display: grid;
    gap: 0.9rem;
    max-width: 420px;
}

.contact-links a {
    color: var(--text);
    text-decoration: none;
    border: 1px solid rgba(226, 232, 240, 0.12);
    padding: 1rem 1.2rem;
    border-radius: 18px;
    background: rgba(255,255,255,0.02);
    transition: transform 0.3s ease, border-color 0.3s ease;
}

.contact-links a:hover {
    transform: translateY(-2px);
    border-color: rgba(125, 211, 252, 0.28);
}

footer {
    text-align: center;
    padding: 2.5rem 0 4rem;
    color: var(--muted);
}

footer p {
    margin: 0 0 0.8rem;
}

footer small {
    display: block;
}

.reveal {
    opacity: 0;
    transform: translateY(24px);
    transition: opacity 0.9s ease, transform 0.9s ease;
}

.reveal.visible {
    opacity: 1;
    transform: translateY(0);
}

@media (max-width: 880px) {
    .hero-grid {
        grid-template-columns: 1fr;
    }

    .hero-visual {
        order: -1;
    }
}

@media (max-width: 640px) {
    .topbar {
        flex-direction: column;
        align-items: flex-start;
    }

    nav {
        gap: 0.9rem;
    }

    .panel {
        padding: clamp(2rem, 6vw, 3rem) 0;
    }

    .panel-glass {
        padding: clamp(1.8rem, 5vw, 2.5rem);
    }
}