:root {
    --bg: #050816;
    --bg-alt: #0b1020;
    --accent: #38bdf8;
    --accent-soft: rgba(56, 189, 248, 0.1);
    --text: #f9fafb;
    --muted: #9ca3af;
    --card: #0f172a;
    --border: #1f2937;
    --radius-xl: 1.25rem;
    --radius-full: 999px;
    --shadow-soft: 0 18px 45px rgba(0, 0, 0, 0.45);
    --shadow-subtle: 0 8px 24px rgba(15, 23, 42, 0.7);
    --transition-fast: 180ms ease-out;
}

* {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
}

body {
    font-family: system-ui, -apple-system, BlinkMacSystemFont, "SF Pro Text", sans-serif;
    background: radial-gradient(circle at top, #111827 0, #020617 45%, #000 100%);
    color: var(--text);
    line-height: 1.6;
    -webkit-font-smoothing: antialiased;
}

a {
    color: inherit;
    text-decoration: none;
}

img {
    max-width: 100%;
    display: block;
}

.page {
    min-height: 100vh;
    display: flex;
    flex-direction: column;
}

.shell {
    width: 100%;
    max-width: 1080px;
    margin: 0 auto;
    padding: 1.5rem 1.25rem 3rem;
}

header {
    position: sticky;
    top: 0;
    z-index: 40;
    backdrop-filter: blur(18px);
    background: linear-gradient(to bottom, rgba(15, 23, 42, 0.9), rgba(15, 23, 42, 0.4) 50%, transparent 100%);
    border-bottom: 1px solid rgba(148, 163, 184, 0.18);
}

.nav {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 1.5rem;
    max-width: 1080px;
    margin: 0 auto;
    padding: 0.6rem 1.25rem;
}

.nav-left {
    display: flex;
    align-items: center;
    gap: 0.75rem;
}

.logo-mark {
    width: 44px;
    height: 44px;
    border-radius: 999px;
    background: radial-gradient(circle at 30% 0, #38bdf8 0, #0ea5e9 24%, #0369a1 55%, #020617 100%);
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0 18px 35px rgba(15, 23, 42, 0.9);
    border: 1px solid rgba(148, 163, 184, 0.7);
    position: relative;
    overflow: hidden;
}

.logo-mark::before {
    content: "";
    position: absolute;
    inset: 1px;
    border-radius: inherit;
    background: radial-gradient(circle at 0 0, rgba(248, 250, 252, 0.18), transparent 55%);
    opacity: 0.9;
}

.logo-mark::after {
    content: "";
    position: absolute;
    inset: -40%;
    background: radial-gradient(circle at 30% 0, rgba(56, 189, 248, 0.35), transparent 55%);
    opacity: 0.7;
    mix-blend-mode: screen;
    pointer-events: none;
}

.logo-mark span {
    position: relative;
    font-weight: 700;
    font-size: 0.9rem;
    letter-spacing: 0.2em;
    text-transform: uppercase;
}

.nav-title {
    display: flex;
    flex-direction: column;
}

.nav-title strong {
    letter-spacing: 0.04em;
    text-transform: uppercase;
    font-size: 0.75rem;
    color: var(--muted);
}

.nav-title span {
    font-weight: 600;
    font-size: 0.95rem;
}

.nav-links {
    display: flex;
    align-items: center;
    gap: 1.25rem;
    font-size: 0.9rem;
}

.nav-links a {
    color: var(--muted);
    position: relative;
    padding-bottom: 0.1rem;
    transition: color var(--transition-fast);
}

.nav-links a::after {
    content: "";
    position: absolute;
    left: 0;
    bottom: 0;
    width: 0;
    height: 2px;
    border-radius: 999px;
    background: linear-gradient(90deg, #38bdf8, #22c55e);
    transition: width var(--transition-fast);
}

.nav-links a:hover {
    color: var(--text);
}

.nav-links a:hover::after {
    width: 100%;
}

.nav-cta {
    padding: 0.4rem 0.95rem;
    border-radius: var(--radius-full);
    border: 1px solid rgba(148, 163, 184, 0.6);
    font-size: 0.8rem;
    color: var(--muted);
    display: inline-flex;
    align-items: center;
    gap: 0.4rem;
    background: radial-gradient(circle at top left, rgba(56, 189, 248, 0.18), transparent 55%);
    box-shadow: 0 0 0 1px rgba(15, 23, 42, 0.8);
    transition: transform 120ms ease-out, box-shadow 120ms ease-out, border-color 120ms ease-out, color 120ms ease-out;
    cursor: pointer;
}

.nav-cta span {
    font-size: 1rem;
}

.nav-cta:hover {
    transform: translateY(-1px);
    border-color: rgba(148, 163, 184, 1);
    color: var(--text);
    box-shadow: 0 14px 35px rgba(15, 23, 42, 0.9);
}

main {
    flex: 1;
}

.hero {
    display: grid;
    grid-template-columns: minmax(0, 3fr) minmax(0, 2.4fr);
    gap: 3.25rem;
    align-items: center;
    padding-top: 3rem;
}

@media (max-width: 880px) {
    .hero {
        grid-template-columns: minmax(0, 1fr);
        padding-top: 2rem;
    }

    .nav-links {
        display: none;
    }
}

.hero-badge {
    display: inline-flex;
    align-items: center;
    gap: 0.45rem;
    padding: 0.3rem 0.75rem;
    border-radius: var(--radius-full);
    background: rgba(15, 23, 42, 0.95);
    border: 1px solid rgba(148, 163, 184, 0.55);
    box-shadow: var(--shadow-subtle);
    margin-bottom: 1.2rem;
    font-size: 0.8rem;
    color: var(--muted);
}

.hero-badge-dot {
    width: 8px;
    height: 8px;
    border-radius: 999px;
    background: #22c55e;
    box-shadow: 0 0 0 6px rgba(34, 197, 94, 0.18);
}

.hero-title {
    font-size: clamp(2.2rem, 3vw + 1rem, 3.1rem);
    line-height: 1.1;
    margin-bottom: 1.1rem;
    letter-spacing: -0.03em;
}

.hero-title span {
    background: linear-gradient(120deg, #e5e7eb, #38bdf8, #22c55e);
    -webkit-background-clip: text;
    background-clip: text;
    color: transparent;
}

.hero-subtitle {
    font-size: 1rem;
    color: var(--muted);
    max-width: 34rem;
    margin-bottom: 1.6rem;
}

.hero-subtitle strong {
    color: #e5e7eb;
    font-weight: 600;
}

.hero-actions {
    display: flex;
    flex-wrap: wrap;
    gap: 0.85rem;
    margin-bottom: 2.1rem;
}

.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 0.45rem;
    padding: 0.75rem 1.4rem;
    border-radius: 999px;
    border: 1px solid transparent;
    font-size: 0.9rem;
    font-weight: 500;
    cursor: pointer;
    transition: transform 140ms ease-out, box-shadow 140ms ease-out, border-color 140ms ease-out, background 140ms ease-out, color 140ms ease-out;
    text-decoration: none;
    white-space: nowrap;
}

.btn-primary {
    background: linear-gradient(135deg, #38bdf8, #0ea5e9, #22c55e);
    color: #020617;
    box-shadow: 0 16px 40px rgba(56, 189, 248, 0.45);
}

.btn-primary:hover {
    transform: translateY(-1px);
    box-shadow: 0 20px 50px rgba(56, 189, 248, 0.7);
}

.btn-ghost {
    background: rgba(15, 23, 42, 0.9);
    border-color: rgba(148, 163, 184, 0.55);
    color: var(--muted);
}

.btn-ghost:hover {
    color: var(--text);
    border-color: rgba(148, 163, 184, 0.9);
    background: radial-gradient(circle at top left, rgba(56, 189, 248, 0.22), rgba(15, 23, 42, 0.9));
    box-shadow: 0 14px 35px rgba(15, 23, 42, 0.9);
}

.hero-meta {
    display: flex;
    flex-wrap: wrap;
    gap: 1.5rem;
    font-size: 0.8rem;
    color: var(--muted);
}

.hero-meta-group {
    display: flex;
    flex-direction: column;
    gap: 0.1rem;
}

.hero-meta-label {
    text-transform: uppercase;
    letter-spacing: 0.14em;
    font-size: 0.7rem;
    color: rgba(148, 163, 184, 0.85);
}

.hero-meta-value {
    font-weight: 500;
    color: #e5e7eb;
}

.hero-right {
    position: relative;
}

.hero-card {
    position: relative;
    border-radius: 1.75rem;
    background: radial-gradient(circle at top, #0b1120 0, #020617 60%, #000 100%);
    border: 1px solid rgba(148, 163, 184, 0.3);
    padding: 1.5rem 1.4rem 1.4rem;
    box-shadow: var(--shadow-soft);
    overflow: hidden;
    isolation: isolate;
}

.hero-orbit {
    position: absolute;
    inset: -40%;
    background:
        radial-gradient(circle at 0 0, rgba(56, 189, 248, 0.3), transparent 55%),
        radial-gradient(circle at 100% 0, rgba(34, 197, 94, 0.3), transparent 55%),
        radial-gradient(circle at 50% 100%, rgba(37, 99, 235, 0.25), transparent 50%);
    opacity: 0.35;
    pointer-events: none;
    z-index: -1;
}

.hero-card-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 1.15rem;
}

.hero-chip {
    font-size: 0.75rem;
    padding: 0.25rem 0.7rem;
    border-radius: 999px;
    background: rgba(15, 23, 42, 0.85);
    border: 1px solid rgba(148, 163, 184, 0.55);
    color: var(--muted);
    display: inline-flex;
    align-items: center;
    gap: 0.35rem;
}

.hero-chip-dot {
    width: 6px;
    height: 6px;
    border-radius: 999px;
    background: #38bdf8;
}

.hero-pill {
    display: inline-flex;
    align-items: center;
    gap: 0.35rem;
    border-radius: 999px;
    padding: 0.3rem 0.75rem;
    background: rgba(15, 23, 42, 0.85);
    border: 1px solid rgba(148, 163, 184, 0.55);
    font-size: 0.75rem;
    color: var(--muted);
}

.hero-pill span {
    font-size: 0.9rem;
}

.hero-stack {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 0.9rem;
}

.stack-card {
    background: rgba(15, 23, 42, 0.92);
    border-radius: 1rem;
    padding: 0.8rem 0.85rem;
    border: 1px solid rgba(30, 64, 175, 0.7);
    box-shadow: 0 10px 28px rgba(15, 23, 42, 0.9);
    font-size: 0.8rem;
}

.stack-label {
    font-size: 0.7rem;
    text-transform: uppercase;
    letter-spacing: 0.16em;
    color: rgba(148, 163, 184, 0.9);
    margin-bottom: 0.25rem;
}

.stack-main {
    font-weight: 600;
    margin-bottom: 0.15rem;
}

.stack-sub {
    font-size: 0.74rem;
    color: var(--muted);
}

.hero-footer {
    margin-top: 1.1rem;
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 0.75rem;
    font-size: 0.75rem;
    color: var(--muted);
}

.hero-footer strong {
    color: #e5e7eb;
    font-weight: 600;
}

.hero-footer-badges {
    display: flex;
    flex-wrap: wrap;
    gap: 0.45rem;
}

.mini-badge {
    border-radius: 999px;
    border: 1px solid rgba(148, 163, 184, 0.4);
    padding: 0.18rem 0.6rem;
    background: rgba(15, 23, 42, 0.9);
    font-size: 0.7rem;
}

.section {
    margin-top: 3.25rem;
}

.section-header {
    display: flex;
    justify-content: space-between;
    align-items: baseline;
    gap: 1.5rem;
    margin-bottom: 1.5rem;
    flex-wrap: wrap;
}

.section-kicker {
    font-size: 0.8rem;
    letter-spacing: 0.22em;
    text-transform: uppercase;
    color: rgba(148, 163, 184, 0.9);
    margin-bottom: 0.25rem;
}

.section-title {
    font-size: 1.4rem;
    letter-spacing: -0.02em;
}

.section-description {
    font-size: 0.9rem;
    color: var(--muted);
    max-width: 26rem;
}

.grid-two {
    display: grid;
    grid-template-columns: minmax(0, 1.6fr) minmax(0, 1.4fr);
    gap: 1.75rem;
}

@media (max-width: 880px) {
    .grid-two {
        grid-template-columns: minmax(0, 1fr);
    }
}

.card {
    background: rgba(15, 23, 42, 0.9);
    border-radius: var(--radius-xl);
    border: 1px solid rgba(31, 41, 55, 0.9);
    padding: 1.35rem 1.3rem;
    box-shadow: 0 18px 40px rgba(15, 23, 42, 0.9);
}

.card+.card {
    margin-top: 1rem;
}

.card-title {
    font-size: 1rem;
    margin-bottom: 0.5rem;
}

.card-text {
    font-size: 0.9rem;
    color: var(--muted);
}

.pill-row {
    display: flex;
    flex-wrap: wrap;
    gap: 0.4rem;
    margin-top: 0.8rem;
}

.pill {
    border-radius: 999px;
    border: 1px solid rgba(55, 65, 81, 0.9);
    padding: 0.22rem 0.7rem;
    font-size: 0.75rem;
    color: rgba(209, 213, 219, 0.94);
    background: radial-gradient(circle at top left, rgba(56, 189, 248, 0.1), rgba(15, 23, 42, 0.94));
}

.timeline {
    display: flex;
    flex-direction: column;
    gap: 1rem;
    font-size: 0.88rem;
}

.timeline-item {
    display: grid;
    grid-template-columns: auto minmax(0, 1fr);
    gap: 0.7rem 1rem;
    align-items: flex-start;
}

.timeline-bullet {
    width: 10px;
    height: 10px;
    border-radius: 999px;
    background: linear-gradient(135deg, #38bdf8, #22c55e);
    box-shadow: 0 0 0 4px rgba(56, 189, 248, 0.25);
    margin-top: 0.25rem;
}

.timeline-header {
    display: flex;
    justify-content: space-between;
    gap: 0.75rem;
    margin-bottom: 0.25rem;
}

.timeline-role {
    font-weight: 500;
}

.timeline-meta {
    font-size: 0.75rem;
    color: var(--muted);
}

.timeline-body {
    color: var(--muted);
}

.projects-grid {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 1.15rem;
}

@media (max-width: 720px) {
    .projects-grid {
        grid-template-columns: minmax(0, 1fr);
    }
}

.project-card {
    border-radius: 1.1rem;
    border: 1px solid rgba(31, 41, 55, 0.85);
    background: radial-gradient(circle at top left, rgba(56, 189, 248, 0.16), rgba(15, 23, 42, 0.96));
    padding: 1rem 1rem 0.95rem;
    display: flex;
    flex-direction: column;
    gap: 0.4rem;
    box-shadow: 0 16px 38px rgba(15, 23, 42, 0.9);
    transition: transform 140ms ease-out, box-shadow 140ms ease-out, border-color 140ms ease-out;
}

.project-card:hover {
    transform: translateY(-3px);
    border-color: rgba(148, 163, 184, 0.9);
    box-shadow: 0 22px 55px rgba(15, 23, 42, 0.95);
}

.project-title-row {
    display: flex;
    justify-content: space-between;
    align-items: baseline;
    gap: 0.5rem;
}

.project-title {
    font-size: 0.98rem;
    font-weight: 600;
}

.project-tag {
    font-size: 0.7rem;
    text-transform: uppercase;
    letter-spacing: 0.16em;
    color: rgba(148, 163, 184, 0.9);
}

.project-text {
    font-size: 0.86rem;
    color: var(--muted);
}

.project-meta {
    font-size: 0.78rem;
    color: rgba(209, 213, 219, 0.98);
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 0.65rem;
    margin-top: 0.35rem;
}

.project-links {
    display: flex;
    gap: 0.4rem;
    flex-wrap: wrap;
}

.project-link {
    font-size: 0.78rem;
    border-radius: 999px;
    padding: 0.2rem 0.65rem;
    border: 1px solid rgba(148, 163, 184, 0.7);
    background: rgba(15, 23, 42, 0.9);
    color: rgba(226, 232, 240, 0.98);
}

.contact-card {
    background: radial-gradient(circle at top left, rgba(56, 189, 248, 0.18), rgba(15, 23, 42, 0.96));
    border-radius: 1.4rem;
    border: 1px solid rgba(148, 163, 184, 0.9);
    padding: 1.35rem 1.3rem 1.4rem;
    box-shadow: 0 20px 55px rgba(15, 23, 42, 0.95);
}

.contact-layout {
    display: grid;
    grid-template-columns: minmax(0, 1.4fr) minmax(0, 1.6fr);
    gap: 1.4rem;
    align-items: start;
}

@media (max-width: 800px) {
    .contact-layout {
        grid-template-columns: minmax(0, 1fr);
    }
}

.contact-text {
    font-size: 0.9rem;
    color: var(--muted);
    margin-bottom: 1rem;
}

.contact-highlight {
    font-weight: 500;
    color: #e5e7eb;
}

.contact-meta {
    font-size: 0.82rem;
    color: rgba(209, 213, 219, 0.96);
    display: flex;
    flex-direction: column;
    gap: 0.3rem;
}

.contact-meta span {
    display: flex;
    align-items: center;
    gap: 0.45rem;
}

.contact-meta-label {
    font-size: 0.8rem;
    text-transform: uppercase;
    letter-spacing: 0.16em;
    color: rgba(148, 163, 184, 0.9);
}

.dot-badge {
    width: 10px;
    height: 10px;
    border-radius: 999px;
    background: #22c55e;
    box-shadow: 0 0 0 4px rgba(34, 197, 94, 0.32);
}

form {
    display: flex;
    flex-direction: column;
    gap: 0.75rem;
    font-size: 0.86rem;
}

label {
    display: flex;
    flex-direction: column;
    gap: 0.25rem;
}

.field-label {
    font-size: 0.78rem;
    text-transform: uppercase;
    letter-spacing: 0.14em;
    color: rgba(148, 163, 184, 0.95);
}

input[type="text"],
input[type="email"],
textarea {
    border-radius: 0.8rem;
    border: 1px solid rgba(51, 65, 85, 0.9);
    background: rgba(15, 23, 42, 0.95);
    padding: 0.6rem 0.75rem;
    color: var(--text);
    font-size: 0.86rem;
    outline: none;
    transition: border-color 140ms ease-out, box-shadow 140ms ease-out, background 140ms ease-out;
    resize: vertical;
    min-height: 42px;
}

textarea {
    min-height: 120px;
}

input::placeholder,
textarea::placeholder {
    color: rgba(148, 163, 184, 0.8);
}

input:focus,
textarea:focus {
    border-color: rgba(56, 189, 248, 0.9);
    box-shadow: 0 0 0 1px rgba(56, 189, 248, 0.6);
    background: rgba(15, 23, 42, 1);
}

.form-hint {
    font-size: 0.72rem;
    color: rgba(148, 163, 184, 0.95);
}

.submit-row {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    margin-top: 0.25rem;
    flex-wrap: wrap;
}

.submit-row small {
    font-size: 0.72rem;
    color: rgba(148, 163, 184, 0.95);
}

.social-list {
    list-style: none;
    display: flex;
    flex-direction: column;
    gap: 0.7rem;
    font-size: 0.86rem;
}

.social-item {
    border-radius: 0.9rem;
    border: 1px solid rgba(51, 65, 85, 0.9);
    background: rgba(15, 23, 42, 0.98);
    box-shadow: 0 10px 25px rgba(15, 23, 42, 0.9);
    transition: transform 120ms ease-out, box-shadow 120ms ease-out, border-color 120ms ease-out, background 120ms ease-out;
}

.social-link {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 0.75rem;
    padding: 0.65rem 0.75rem;
    text-decoration: none;
    color: inherit;
}

.social-main {
    display: flex;
    align-items: center;
    gap: 0.65rem;
}

.social-icon {
    width: 32px;
    height: 32px;
    border-radius: 999px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 0.9rem;
    font-weight: 600;
    background: radial-gradient(circle at 30% 0, rgba(56, 189, 248, 1) 0, rgba(14, 165, 233, 1) 45%, rgba(15, 23, 42, 1) 100%);
    box-shadow: 0 12px 24px rgba(56, 189, 248, 0.45);
}

.social-name {
    font-weight: 500;
}

.social-handle {
    font-size: 0.8rem;
    color: rgba(148, 163, 184, 0.95);
}

.social-action {
    font-size: 0.78rem;
    color: rgba(148, 163, 184, 0.95);
}

.social-item:hover {
    transform: translateY(-1px);
    border-color: rgba(148, 163, 184, 0.95);
    box-shadow: 0 16px 40px rgba(15, 23, 42, 0.95);
    background: radial-gradient(circle at top left, rgba(56, 189, 248, 0.16), rgba(15, 23, 42, 0.98));
}

.footer-inner {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    justify-content: center;
    gap: 0.75rem;
    font-size: 0.8rem;
    color: var(--muted);
    text-align: center;
}

.footer-links {
    display: flex;
    flex-wrap: wrap;
    gap: 0.7rem;
}

.footer-links a {
    color: rgba(156, 163, 175, 0.95);
}

.footer-links a:hover {
    color: #e5e7eb;
    text-decoration: underline;
    text-decoration-style: dotted;
}

@media (max-width: 600px) {
    .shell {
        padding-inline: 1rem;
    }

    .hero-card {
        margin-top: 0.75rem;
    }

    .footer-inner {
        align-items: flex-start;
    }
}

/* Tailwind utility classes for logo */
.text-slate-200 {
    color: rgb(203, 213, 225);
}

.text-primary {
    color: var(--accent);
}

.w-10 {
    width: 2.5rem;
}

.h-10 {
    height: 2.5rem;
}

.flex-shrink-0 {
    flex-shrink: 0;
}

.flex {
    display: flex;
}

.cursor-pointer {
    cursor: pointer;
}

.transition-colors {
    transition-property: color, background-color, border-color, text-decoration-color, fill, stroke;
    transition-timing-function: cubic-bezier(0.4, 0, 0.2, 1);
    transition-duration: 150ms;
}

.duration-300 {
    transition-duration: 300ms;
}

.group:hover .group-hover\:stroke-primary {
    stroke: var(--accent);
}

.group:hover .group-hover\:text-primary {
    color: var(--accent);
}

/* Additional utility classes for logo text */
.text-xl {
    font-size: 1.25rem;
    line-height: 1.75rem;
}

.font-bold {
    font-weight: 700;
}

.text-white {
    color: #ffffff;
}

.font-mono {
    font-family: ui-monospace, SFMono-Regular, "SF Mono", Consolas, "Liberation Mono", Menlo, monospace;
}

.tracking-tight {
    letter-spacing: -0.025em;
}
