:root {
    color-scheme: dark;
    font-family: 'Inter', sans-serif;
    background: #050816;
    color: #e8effa;
    --surface: rgba(12, 18, 43, 0.92);
    --surface-soft: rgba(10, 16, 34, 0.75);
    --accent: #7c5cff;
    --accent-soft: rgba(46, 208, 255, 0.18);
    --text-muted: #9fb8d9;
    --border: rgba(255, 255, 255, 0.08);
}

*, *::before, *::after {
    box-sizing: border-box;
}

html, body {
    margin: 0;
    min-height: 100%;
    background: radial-gradient(circle at top, rgba(124, 92, 255, 0.18), transparent 28%),
        radial-gradient(circle at 86% 16%, rgba(46, 208, 255, 0.12), transparent 20%),
        linear-gradient(180deg, #050816 0%, #030615 100%);
    color: #e8effa;
}

body {
    overflow-x: hidden;
}

a {
    color: inherit;
    text-decoration: none;
}

.button, .btn {
    font: inherit;
}

.page-shell {
    position: relative;
    overflow: hidden;
    min-height: 100vh;
}

.page-shell::before {
    content: '';
    position: absolute;
    inset: 0;
    background: radial-gradient(circle at 50% 15%, rgba(124, 92, 255, 0.14), transparent 25%),
        radial-gradient(circle at 15% 10%, rgba(46, 208, 255, 0.08), transparent 16%);
    pointer-events: none;
    z-index: 0;
}

.hero-canvas {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    z-index: 0;
    pointer-events: none;
}

.ambient-ring {
    position: absolute;
    inset: 12% auto auto 10%;
    width: 420px;
    height: 420px;
    border-radius: 50%;
    box-shadow: 0 0 240px rgba(124, 92, 255, 0.26);
    filter: blur(46px);
    pointer-events: none;
    z-index: 0;
}

.topbar {
    position: sticky;
    top: 0;
    z-index: 5;
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 1rem;
    padding: 1.25rem 2rem;
    backdrop-filter: blur(24px);
    background: rgba(2, 6, 24, 0.74);
    border-bottom: 1px solid rgba(255, 255, 255, 0.06);
}

.brand {
    display: flex;
    align-items: center;
    gap: 1rem;
}

.brand-mark {
    width: 3rem;
    height: 3rem;
    display: grid;
    place-items: center;
    border-radius: 16px;
    background: linear-gradient(135deg, var(--accent), #2ed0ff);
    color: #fff;
    font-weight: 800;
    font-size: 1.15rem;
}

.brand-name {
    margin: 0;
    font-weight: 800;
}

.brand-tag {
    margin: 0.2rem 0 0;
    font-size: 0.9rem;
    color: var(--text-muted);
}

.nav-links {
    display: flex;
    align-items: center;
    gap: 1.3rem;
    flex-wrap: wrap;
}

.nav-links a {
    color: #d2e0ff;
    font-size: 0.95rem;
    transition: color 0.2s ease, transform 0.2s ease;
}

.nav-links a:hover {
    color: #fff;
    transform: translateY(-1px);
}

.hero {
    position: relative;
    z-index: 2;
    min-height: 100vh;
    display: grid;
    grid-template-columns: minmax(0, 1.1fr) minmax(300px, 420px);
    gap: 2.25rem;
    align-items: center;
    padding: 3.5rem 2rem 5rem;
}

.hero-copy {
    max-width: 700px;
}

.eyebrow,
.section-eyebrow {
    display: inline-flex;
    gap: 0.6rem;
    color: var(--text-muted);
    text-transform: uppercase;
    letter-spacing: 0.2em;
    font-size: 0.8rem;
}

.hero-terminal,
.section-panel,
.terminal-card,
.service-card,
.work-card,
.skill-card,
.contact-section,
.hero-panel-card,
.hero-panel-links {
    border-radius: 30px;
    background: rgba(8, 14, 35, 0.9);
    border: 1px solid rgba(255, 255, 255, 0.08);
}

.hero-terminal {
    padding: 2.2rem;
    box-shadow: 0 30px 100px rgba(0, 0, 0, 0.28);
}

.terminal-header {
    margin-bottom: 1.5rem;
}

.terminal-line {
    display: inline-flex;
    align-items: center;
    gap: 0.7rem;
    color: var(--accent);
    font-size: 0.95rem;
    letter-spacing: 0.05em;
}

.terminal-command {
    color: #fff;
}

.hero-terminal h1 {
    margin: 0;
    font-size: clamp(2.8rem, 4vw, 4.4rem);
    line-height: 1.04;
}

.hero-terminal p {
    margin: 1.4rem 0 0;
    color: #c8d7ff;
    font-size: 1.05rem;
    line-height: 1.8;
}

.hero-actions {
    display: flex;
    flex-wrap: wrap;
    gap: 1rem;
    margin-top: 2rem;
}

.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    border-radius: 999px;
    padding: 1rem 1.9rem;
    font-weight: 700;
    transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.btn:hover {
    transform: translateY(-2px);
}

.btn-primary {
    background: linear-gradient(135deg, var(--accent), #2ed0ff);
    color: #fff;
    box-shadow: 0 22px 50px rgba(124, 92, 255, 0.22);
}

.btn-secondary {
    background: rgba(255, 255, 255, 0.08);
    color: #d2e0ff;
    border: 1px solid rgba(255, 255, 255, 0.08);
}

.hero-status {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 1rem;
    margin-top: 2.2rem;
}

.status-item {
    padding: 1.35rem 1.4rem;
    border-radius: 22px;
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid rgba(255, 255, 255, 0.08);
}

.status-item span {
    display: block;
    font-size: 1.8rem;
    font-weight: 800;
    margin-bottom: 0.35rem;
}

.status-item p {
    margin: 0;
    color: var(--text-muted);
    font-size: 0.95rem;
}

.hero-panel {
    display: grid;
    gap: 1.25rem;
}

.hero-panel-card,
.hero-panel-links {
    padding: 1.8rem;
    box-shadow: 0 28px 80px rgba(0, 0, 0, 0.2);
}

.hero-panel-label {
    display: inline-flex;
    padding: 0.75rem 1rem;
    border-radius: 999px;
    background: rgba(124, 92, 255, 0.14);
    color: var(--accent);
    font-size: 0.8rem;
    letter-spacing: 0.12em;
    text-transform: uppercase;
    font-weight: 700;
    margin-bottom: 1rem;
}

.hero-panel-title {
    margin: 0;
    font-size: 1.45rem;
    font-weight: 800;
}

.hero-panel-copy,
.hero-card-copy,
.service-card p,
.work-card p,
.skill-card p,
.contact-section p {
    margin: 0.95rem 0 0;
    color: #c4d4ff;
    line-height: 1.75;
}

.hero-panel-grid {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 0.85rem;
    margin-top: 1.5rem;
}

.hero-panel-pill,
.status-pill,
.terminal-list li {
    color: #c4d4ff;
}

.hero-panel-pill,
.status-pill {
    padding: 1rem 1.1rem;
    border-radius: 18px;
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid rgba(255, 255, 255, 0.08);
    font-size: 0.95rem;
}

.hero-panel-links {
    display: grid;
    gap: 1rem;
}

.status-pill {
    width: fit-content;
    color: #9fd9ff;
    font-size: 0.82rem;
    text-transform: uppercase;
    letter-spacing: 0.14em;
    font-weight: 700;
    background: rgba(46, 208, 255, 0.12);
    border-color: rgba(46, 208, 255, 0.16);
}

.section {
    position: relative;
    z-index: 1;
    padding: 4rem 2rem;
}

.section-heading {
    max-width: 760px;
    margin-bottom: 2rem;
}

.section-heading h2 {
    margin: 1rem 0 0;
    font-size: clamp(2rem, 3vw, 3rem);
    line-height: 1.1;
}

.section-eyebrow {
    margin-bottom: 0.75rem;
}

.about-section,
.services-section,
.skills-section,
.projects-section,
.contact-section {
    background: rgba(8, 14, 35, 0.92);
    border-top: 1px solid rgba(255, 255, 255, 0.06);
}

.terminal-grid,
.skill-grid,
.project-grid,
.service-grid {
    display: grid;
    gap: 1.5rem;
}

.terminal-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
}

.terminal-card,
.skill-card,
.project-card,
.service-card {
    padding: 1.8rem;
    border-radius: 30px;
    background: rgba(10, 17, 38, 0.9);
    border: 1px solid rgba(255, 255, 255, 0.08);
}

.terminal-title,
.skill-label,
.project-status,
.service-tag {
    display: inline-flex;
    padding: 0.55rem 0.95rem;
    border-radius: 999px;
    background: rgba(124, 92, 255, 0.14);
    color: #c4d4ff;
    font-size: 0.85rem;
    letter-spacing: 0.1em;
    text-transform: uppercase;
    font-weight: 700;
    margin-bottom: 1rem;
}

.terminal-card pre {
    margin: 0;
    font-family: ui-monospace, SFMono-Regular, Menlo, Monaco, Consolas, 'Courier New', monospace;
    font-size: 0.95rem;
    line-height: 1.75;
    color: #dce8ff;
    white-space: pre-wrap;
}

.terminal-list {
    margin: 0;
    padding-left: 1.3rem;
    color: #c4d4ff;
    list-style: disc;
}

.terminal-list li {
    margin-bottom: 0.85rem;
}

.service-grid,
.skill-grid,
.project-grid {
    grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
}

.service-card:hover,
.skill-card:hover,
.project-card:hover {
    transform: translateY(-8px);
    transition: transform 0.25s ease;
}

.service-card h3,
.project-card h3 {
    margin: 0 0 0.9rem;
}

.service-card p,
.project-card p,
.skill-card p {
    margin: 0;
}

.skill-card,
.project-card {
    display: grid;
    gap: 1rem;
}

.contact-section {
    display: grid;
    grid-template-columns: minmax(0, 1fr) minmax(220px, 300px);
    align-items: center;
    gap: 2rem;
    padding: 3rem 2.2rem;
}

.contact-actions {
    display: grid;
    gap: 1rem;
}

.contact-section h2 {
    margin: 0.85rem 0 1rem;
}

.contact-section p {
    max-width: 36rem;
}

.footer {
    text-align: center;
    padding: 2rem 2rem 3rem;
    color: #7f8faf;
    font-size: 0.95rem;
    z-index: 1;
}

.glass {
    background: rgba(10, 18, 43, 0.78);
    backdrop-filter: blur(18px);
}

@media (max-width: 980px) {
    .hero {
        grid-template-columns: 1fr;
        padding-top: 4rem;
    }

    .hero-panel {
        grid-template-columns: 1fr;
    }

    .hero-status {
        grid-template-columns: 1fr;
    }

    .terminal-grid,
    .service-grid,
    .skill-grid,
    .project-grid {
        grid-template-columns: 1fr;
    }

    .contact-section {
        grid-template-columns: 1fr;
    }
}

@media (max-width: 680px) {
    .topbar {
        flex-direction: column;
        align-items: flex-start;
    }

    .nav-links {
        gap: 0.9rem;
    }

    .hero-actions {
        flex-direction: column;
    }

    .hero-terminal h1 {
        font-size: 2.5rem;
    }

    .hero-panel-grid {
        grid-template-columns: 1fr;
    }

    .contact-section {
        padding: 2rem 1.5rem;
    }
}
