:root {
    --bg: #0b0f1a;
    --bg-soft: #101829;
    --card: #141e35;
    --text: #f8fafc;
    --muted: #b6c2d9;
    --accent: #f97316;
    --accent-2: #38bdf8;
    --line: rgba(248, 250, 252, 0.12);
    --shadow: 0 24px 60px rgba(8, 15, 40, 0.35);
}

* {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
}

body {
    color: #f8fafc;
    background: #0b0f1a;
    font-family: "Space Grotesk", sans-serif;
    color: #f8fafc;
    background: radial-gradient(circle at top, rgba(56, 189, 248, 0.18), transparent 60%),
        radial-gradient(circle at 20% 30%, rgba(249, 115, 22, 0.18), transparent 55%),
        #0b0f1a;
    min-height: 100vh;
}

.bg-texture {
    position: fixed;
    top: 0;
    right: 0;
    bottom: 0;
    left: 0;
    background-image: linear-gradient(120deg, rgba(255, 255, 255, 0.04) 0%, rgba(255, 255, 255, 0) 45%),
        radial-gradient(circle, rgba(255, 255, 255, 0.03) 1px, transparent 1px);
    background-size: 100% 100%, 24px 24px;
    pointer-events: none;
    z-index: 0;
}

main,
nav,
footer {
    position: relative;
    z-index: 1;
}

h1,
h2,
h3 {
    font-family: "Fraunces", serif;
    font-weight: 600;
    letter-spacing: -0.02em;
}

h1 {
    font-size: 3.2rem;
    line-height: 1.1;
}

h2 {
    font-size: 2.3rem;
    margin-bottom: 0.4rem;
}

h3 {
    font-size: 1.35rem;
}

p {
    font-size: 1.05rem;
    line-height: 1.7;
    color: #b6c2d9;
}

ul {
    list-style: none;
}

a {
    color: #f8fafc;
    text-decoration: none;
}

a:hover {
    color: #38bdf8;
}

.nav {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 1.8rem 6vw;
    gap: 1.5rem;
}

.brand {
    display: flex;
    align-items: center;
    gap: 1rem;
}

.logo {
    width: 64px;
    height: 64px;
    border-radius: 14px;
    object-fit: cover;
    box-shadow: 0 24px 60px rgba(8, 15, 40, 0.35);
}

.brand-text {
    display: flex;
    flex-direction: column;
}

.brand-name {
    font-weight: 600;
    font-size: 1.1rem;
}

.brand-role {
    font-size: 0.9rem;
    color: #b6c2d9;
}

.nav-links {
    display: flex;
    gap: 1.8rem;
}

@media (min-width: 901px) {
    .nav-links {
        flex: 1;
        justify-content: center;
    }
}

.nav-toggle {
    display: none;
    background: transparent;
    border: 1px solid rgba(248, 250, 252, 0.2);
    border-radius: 12px;
    padding: 0.6rem;
    cursor: pointer;
}

.nav-toggle span {
    display: block;
    width: 20px;
    height: 2px;
    background: #f8fafc;
    border-radius: 999px;
    transition: transform 0.2s ease, opacity 0.2s ease;
}

.nav-toggle span + span {
    margin-top: 6px;
}

.nav.open .nav-toggle span:first-child {
    transform: translateY(4px) rotate(45deg);
}

.nav.open .nav-toggle span:last-child {
    transform: translateY(-4px) rotate(-45deg);
}

.nav-link {
    background: transparent;
    border: none;
    color: #b6c2d9;
    font-size: 1rem;
    cursor: pointer;
    position: relative;
    padding-bottom: 0.2rem;
}

.nav-link:hover {
    color: #f8fafc;
}

.nav-link::after {
    content: "";
    position: absolute;
    left: 0;
    bottom: 0;
    width: 100%;
    height: 2px;
    background: linear-gradient(90deg, #f97316, #38bdf8);
    transform: scaleX(0);
    transform-origin: left;
    transition: transform 0.25s ease;
}

.nav-link:hover::after,
.nav-link:focus-visible::after {
    transform: scaleX(1);
}

.btn {
    border: 1px solid transparent;
    background: #f97316;
    color: #0b0f1a;
    padding: 0.65rem 1.5rem;
    border-radius: 999px;
    font-weight: 600;
    cursor: pointer;
    transition: transform 0.2s ease, box-shadow 0.2s ease;
    box-shadow: 0 14px 30px rgba(249, 115, 22, 0.25);
}

.btn:hover {
    transform: translateY(-2px);
}

.btn.ghost {
    background: transparent;
    color: #f8fafc;
    border-color: rgba(248, 250, 252, 0.12);
    box-shadow: none;
}

.btn.primary {
    background: #f97316;
}

.hero {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 3rem;
    padding: 3rem 6vw 2rem;
    align-items: center;
}

.hero-content {
    display: flex;
    flex-direction: column;
    gap: 1.5rem;
}

.eyebrow {
    text-transform: uppercase;
    font-size: 0.85rem;
    letter-spacing: 0.2em;
    color: #38bdf8;
}

.lead {
    font-size: 1.15rem;
}

.accent {
    color: #f97316;
}

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

.hero-socials {
    display: flex;
    gap: 1.5rem;
    font-size: 0.95rem;
}

.hero-socials a,
.footer-links a {
    position: relative;
    padding-bottom: 0.2rem;
    color: #f8fafc;
    transition: color 0.25s ease;
}

.hero-socials a::after,
.footer-links a::after {
    content: "";
    position: absolute;
    left: 0;
    bottom: 0;
    width: 100%;
    height: 2px;
    background: linear-gradient(90deg, #f97316, #38bdf8);
    transform: scaleX(0);
    transform-origin: left;
    transition: transform 0.25s ease;
}

.hero-socials a:hover,
.footer-links a:hover {
    color: #38bdf8;
    text-shadow: 0 0 12px rgba(56, 189, 248, 0.45);
}

.hero-socials a:hover::after,
.footer-links a:hover::after,
.hero-socials a:focus-visible::after,
.footer-links a:focus-visible::after {
    transform: scaleX(1);
}

.hero-visual {
    display: flex;
    flex-direction: column;
    gap: 1.5rem;
}

.hero-panel {
    background: linear-gradient(140deg, rgba(56, 189, 248, 0.2), rgba(249, 115, 22, 0.18));
    padding: 2rem;
    border-radius: 24px;
    border: 1px solid rgba(248, 250, 252, 0.12);
    box-shadow: 0 24px 60px rgba(8, 15, 40, 0.35);
    transition: transform 0.3s ease, border-color 0.3s ease, box-shadow 0.3s ease;
}

.hero-panel:hover {
    transform: translateY(-4px);
    border-color: rgba(249, 115, 22, 0.45);
    box-shadow: 0 28px 60px rgba(8, 15, 40, 0.4);
}

.stat-grid {
    display: grid;
    gap: 1rem;
}

.stat {
    background: #141e35;
    padding: 1rem 1.3rem;
    border-radius: 18px;
    border: 1px solid rgba(248, 250, 252, 0.12);
    transition: transform 0.3s ease, border-color 0.3s ease, box-shadow 0.3s ease;
}

.stat:hover {
    transform: translateY(-4px);
    border-color: rgba(56, 189, 248, 0.45);
    box-shadow: 0 18px 40px rgba(8, 15, 40, 0.35);
}

.stat-label {
    display: block;
    font-size: 0.85rem;
    color: #38bdf8;
}

.stat-value {
    font-size: 1rem;
    font-weight: 600;
}

.section {
    padding: 4rem 6vw;
}

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

.card-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
    gap: 1.6rem;
}

.card {
    background: #141e35;
    padding: 1.8rem;
    border-radius: 24px;
    border: 1px solid rgba(248, 250, 252, 0.12);
    box-shadow: 0 24px 60px rgba(8, 15, 40, 0.35);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.card:hover {
    transform: translateY(-6px);
    box-shadow: 0 30px 70px rgba(8, 15, 40, 0.45);
    border-color: rgba(56, 189, 248, 0.45);
}

.card p {
    margin: 0.9rem 0 1.2rem;
}

.tag-row {
    display: flex;
    flex-wrap: wrap;
    gap: 0.6rem;
    color: #b6c2d9;
    font-size: 0.9rem;
}

.tag-row li,
.tag-row span {
    padding: 0.35rem 0.8rem;
    border-radius: 999px;
    background: rgba(56, 189, 248, 0.12);
}

.skills {
    margin-top: 2.5rem;
    display: flex;
    flex-direction: column;
    gap: 1rem;
}

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

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

.float {
    animation: float 6s ease-in-out infinite;
}

@keyframes float {
    0%,
    100% {
        transform: translateY(0);
    }
    50% {
        transform: translateY(-10px);
    }
}

.timeline {
    display: grid;
    gap: 1.5rem;
    position: relative;
}

.timeline::before {
    content: "";
    position: absolute;
    left: 12px;
    top: 0;
    bottom: 0;
    width: 2px;
    background: linear-gradient(#38bdf8, transparent);
}

.timeline-item {
    display: grid;
    grid-template-columns: 24px 1fr;
    gap: 1.2rem;
    position: relative;
}

.timeline-dot {
    transition: transform 0.3s ease;
}

.timeline-item:hover .timeline-dot {
    transform: scale(1.2);
}

.timeline-dot {
    width: 12px;
    height: 12px;
    border-radius: 50%;
    background: #f97316;
    margin-top: 0.4rem;
}

.timeline-content {
    background: #141e35;
    padding: 1.6rem;
    border-radius: 20px;
    border: 1px solid rgba(248, 250, 252, 0.12);
    transition: transform 0.3s ease, border-color 0.3s ease, box-shadow 0.3s ease;
}

.timeline-content:hover {
    transform: translateY(-4px);
    border-color: rgba(249, 115, 22, 0.45);
    box-shadow: 0 22px 50px rgba(8, 15, 40, 0.4);
}

.meta {
    color: #38bdf8;
    margin: 0.4rem 0 0.9rem;
    font-size: 0.95rem;
}

.split {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
    gap: 2rem;
}

.callout {
    background: linear-gradient(140deg, rgba(56, 189, 248, 0.2), rgba(249, 115, 22, 0.16));
    padding: 2rem;
    border-radius: 24px;
    border: 1px solid rgba(248, 250, 252, 0.12);
}

.inline-links {
    display: flex;
    flex-wrap: wrap;
    gap: 1rem;
    margin-top: 1.5rem;
}

.inline-links a {
    font-weight: 500;
    border-bottom: 1px solid transparent;
}

.inline-links a:hover {
    border-bottom-color: #38bdf8;
}

.contact {
    padding-bottom: 5rem;
}

.contact-card {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 2rem;
    background: #141e35;
    padding: 2rem;
    border-radius: 24px;
    border: 1px solid rgba(248, 250, 252, 0.12);
    box-shadow: 0 24px 60px rgba(8, 15, 40, 0.35);
    flex-wrap: wrap;
}

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

.footer {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 2rem 6vw 3rem;
    border-top: 1px solid rgba(248, 250, 252, 0.12);
    gap: 2rem;
    flex-wrap: wrap;
}

.footer-brand {
    display: flex;
    align-items: center;
    gap: 1rem;
}

.footer-logo {
    width: 52px;
    height: 52px;
    border-radius: 12px;
    object-fit: cover;
}

.footer-title {
    font-weight: 600;
    color: #f8fafc;
}

.footer-subtitle {
    font-size: 0.9rem;
    color: #b6c2d9;
}

.footer-links {
    display: flex;
    gap: 1.4rem;
    flex-wrap: wrap;
}

.back-top {
    background: transparent;
    border: 1px solid rgba(248, 250, 252, 0.12);
    color: #f8fafc;
    padding: 0.5rem 1.2rem;
    border-radius: 999px;
    cursor: pointer;
}

.back-top:hover {
    color: #38bdf8;
    border-color: #38bdf8;
}

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

    .nav-links {
        flex-wrap: wrap;
        gap: 1rem;
    }
}

@media (max-width: 700px) {
    .nav {
        padding: 1.2rem 6vw;
        align-items: stretch;
    }

    .nav-toggle {
        display: inline-flex;
        align-self: flex-end;
    }

    .nav-links {
        display: none;
        width: 100%;
        flex-direction: column;
        gap: 0.6rem;
        padding: 0.8rem 0;
        border-top: 1px solid rgba(248, 250, 252, 0.12);
        border-bottom: 1px solid rgba(248, 250, 252, 0.12);
    }

    .nav.open .nav-links {
        display: flex;
    }

    .nav .btn {
        width: 100%;
        text-align: center;
    }

    .hero-actions {
        flex-direction: column;
        align-items: flex-start;
    }

    .hero-actions .btn,
    .contact-actions .btn {
        width: 100%;
        text-align: center;
    }

    .hero-socials {
        gap: 0.8rem;
        flex-wrap: wrap;
    }

    .hero-panel,
    .contact-card,
    .card,
    .timeline-content {
        padding: 1.4rem;
    }

    .stat-grid {
        grid-template-columns: 1fr;
    }

    .tag-row {
        gap: 0.45rem;
    }

    .footer {
        flex-direction: column;
        align-items: flex-start;
    }

    .footer-links {
        gap: 0.8rem;
    }

    .hero {
        padding-top: 2rem;
    }

    .hero-socials {
        flex-direction: column;
        gap: 0.6rem;
    }

    .contact-card {
        align-items: flex-start;
    }

    .card-grid {
        grid-template-columns: 1fr;
    }

    .timeline::before {
        left: 6px;
    }
}

@media (max-width: 900px) {
    h1 {
        font-size: 2.6rem;
    }

    h2 {
        font-size: 2rem;
    }
}

@media (max-width: 600px) {
    h1 {
        font-size: 2.2rem;
    }

    h2 {
        font-size: 1.7rem;
    }
}
