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

:root {
    --bg: #080f1c;
    --surface: #0d1526;
    --card: rgba(255, 255, 255, 0.04);
    --card-hover: rgba(255, 255, 255, 0.07);
    --border: rgba(255, 255, 255, 0.08);
    --border-hi: rgba(255, 255, 255, 0.14);
    --text: #dde4f0;
    --muted: #7d8fa8;
    --faint: #4a5568;
    --accent: #5b9cf6;
    --accent-dim: rgba(91, 156, 246, 0.18);
    --glow: rgba(91, 156, 246, 0.15);
}

html {
    scroll-behavior: smooth;
}

body {
    font-family: 'Inter', sans-serif;
    font-size: 15px;
    line-height: 1.6;
    background: var(--bg);
    color: var(--text);
    min-height: 100vh;
    overflow-x: hidden;
    -webkit-font-smoothing: antialiased;
}

body::before {
    content: '';
    position: fixed;
    inset: 0;
    background:
        radial-gradient(ellipse 60% 40% at 15% 10%, rgba(59, 130, 246, .07) 0%, transparent 60%),
        radial-gradient(ellipse 50% 35% at 85% 85%, rgba(14, 165, 233, .05) 0%, transparent 55%);
    pointer-events: none;
    z-index: 0;
}

.wrap {
    position: relative;
    z-index: 1;
    width: min(1080px, 90%);
    margin: auto;
}

header {
    padding: 36px 0 0;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.logo {
    font-size: 13px;
    font-weight: 600;
    letter-spacing: .12em;
    color: var(--accent);
    text-transform: uppercase;
    opacity: .85;
}

nav {
    display: flex;
    gap: 6px;
}

nav a {
    color: var(--muted);
    text-decoration: none;
    font-size: 13.5px;
    padding: 6px 14px;
    border-radius: 100px;
    transition: color .25s, background .25s;
}

nav a:hover {
    color: var(--text);
    background: rgba(255, 255, 255, .05);
}

.hero {
    padding: 120px 0 100px;
    display: grid;
    grid-template-columns: 1.15fr 0.85fr;
    gap: 64px;
    align-items: center;
}

.hero-eyebrow {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    font-size: 12.5px;
    letter-spacing: .1em;
    text-transform: uppercase;
    color: var(--accent);
    margin-bottom: 28px;
    opacity: .8;
}

.hero-eyebrow span {
    display: inline-block;
    width: 20px;
    height: 1px;
    background: var(--accent);
    opacity: .6;
}

h1 {
    font-family: 'Lora', serif;
    font-size: clamp(2.6rem, 5vw, 4.4rem);
    font-weight: 600;
    line-height: 1.12;
    letter-spacing: -.02em;
    margin-bottom: 28px;
    color: #eef2fa;
}

h1 em {
    font-style: italic;
    color: var(--accent);
}

.subtitle {
    color: var(--muted);
    font-size: .95rem;
    line-height: 1.85;
    max-width: 480px;
    margin-bottom: 44px;
}

.buttons {
    display: flex;
    gap: 12px;
    flex-wrap: wrap;
}

.btn {
    padding: 11px 22px;
    border-radius: 10px;
    text-decoration: none;
    font-size: 13.5px;
    font-weight: 500;
    transition: all .25s ease;
    border: 1px solid transparent;
    letter-spacing: .01em;
}

.btn-primary {
    background: var(--accent);
    color: #06101f;
    box-shadow: 0 0 24px var(--glow);
}

.btn-primary:hover {
    background: #7eb3f8;
    box-shadow: 0 0 36px rgba(91, 156, 246, .3);
    transform: translateY(-1px);
}

.btn-ghost {
    background: transparent;
    border-color: var(--border-hi);
    color: var(--muted);
}

.btn-ghost:hover {
    border-color: rgba(255, 255, 255, .22);
    color: var(--text);
    background: rgba(255, 255, 255, .04);
}

.about-card {
    background: var(--card);
    border: 1px solid var(--border);
    border-radius: 20px;
    padding: 36px;
    position: relative;
    overflow: hidden;
    backdrop-filter: blur(20px);
}

.about-card::after {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 1px;
    background: linear-gradient(90deg, transparent, rgba(91, 156, 246, .4), transparent);
}

.card-label {
    font-size: 11px;
    font-weight: 600;
    letter-spacing: .12em;
    text-transform: uppercase;
    color: var(--accent);
    margin-bottom: 20px;
    opacity: .75;
}

.about-card h3 {
    font-size: 1.15rem;
    font-weight: 600;
    color: #eef2fa;
    margin-bottom: 14px;
    line-height: 1.4;
}

.about-card p {
    color: var(--muted);
    font-size: .9rem;
    line-height: 1.8;
    margin-bottom: 28px;
}

.stack {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
}

.stack span {
    background: var(--accent-dim);
    border: 1px solid rgba(91, 156, 246, .2);
    padding: 5px 12px;
    border-radius: 100px;
    font-size: 11.5px;
    color: #9ec5fc;
    font-weight: 500;
}

.divider {
    height: 1px;
    background: linear-gradient(90deg, transparent, var(--border-hi), transparent);
    margin: 0;
}

.section {
    padding: 96px 0;
}

.section-head {
    margin-bottom: 56px;
}

.section-tag {
    font-size: 11px;
    font-weight: 600;
    letter-spacing: .12em;
    text-transform: uppercase;
    color: var(--accent);
    display: inline-flex;
    align-items: center;
    gap: 8px;
    margin-bottom: 16px;
    opacity: .75;
}

.section-tag::before {
    content: '';
    display: inline-block;
    width: 16px;
    height: 1px;
    background: var(--accent);
    opacity: .6;
}

h2 {
    font-family: 'Lora', serif;
    font-size: clamp(1.8rem, 3vw, 2.6rem);
    font-weight: 600;
    color: #eef2fa;
    letter-spacing: -.02em;
    line-height: 1.2;
    margin-bottom: 12px;
}

.section-sub {
    color: var(--muted);
    font-size: .9rem;
    line-height: 1.8;
    max-width: 520px;
}

.projects {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 20px;
}

.project-card {
    background: var(--card);
    border: 1px solid var(--border);
    border-radius: 16px;
    padding: 30px;
    transition: border-color .3s, background .3s, transform .3s;
    display: flex;
    flex-direction: column;
}

.project-card:hover {
    border-color: var(--border-hi);
    background: var(--card-hover);
    transform: translateY(-4px);
}

.project-icon {
    font-size: 1.5rem;
    margin-bottom: 20px;
    display: block;
    line-height: 1;
}

.project-card h4 {
    font-size: 1rem;
    font-weight: 600;
    color: #dde4f0;
    margin-bottom: 10px;
    line-height: 1.4;
}

.project-link {
    color: inherit;
    text-decoration: none;
    transition: color .2s;
}

.project-link:hover {
    color: var(--accent);
}

.project-card p {
    color: var(--muted);
    font-size: .875rem;
    line-height: 1.75;
    flex: 1;
    margin-bottom: 24px;
}

.project-image-wrap {
    width: 100%;
    aspect-ratio: 16 / 9;
    overflow: hidden;
    border-radius: 8px;
}

.project-image {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
    transition: transform .6s ease;
}

.project-card:hover .project-image {
    transform: scale(1.04);
}

.project-content {
    padding: 28px 0 0 0;
    display: flex;
    flex-direction: column;
    flex: 1;
}

.project-actions {
    margin-top: 28px;
}

.project-button {
    display: inline-flex;
    align-items: center;
    gap: 10px;

    padding: 10px 16px;
    border-radius: 10px;

    background: rgba(255, 255, 255, .04);
    border: 1px solid rgba(255, 255, 255, .08);

    color: var(--muted);
    text-decoration: none;
    font-size: 13px;
    font-weight: 500;

    transition: all .25s ease;
}

.project-button:hover {
    background: rgba(255, 255, 255, .07);
    border-color: rgba(255, 255, 255, .14);
    color: var(--text);
    transform: translateY(-1px);
}

.project-button i {
    font-size: 11px;
}

nav a {
    display: inline-flex;
    align-items: center;
    gap: 8px;
}

nav a i {
    font-size: 14px;
}

.tags {
    display: flex;
    flex-wrap: wrap;
    gap: 6px;
}

.tag {
    font-size: 11px;
    padding: 4px 10px;
    border-radius: 100px;
    background: rgba(255, 255, 255, .05);
    border: 1px solid rgba(255, 255, 255, .07);
    color: var(--faint);
    font-weight: 500;
}

.quote-wrap {
    padding: 0 0 96px;
}

.quote-block {
    text-align: center;
    padding: 60px 48px;
    background: var(--card);
    border: 1px solid var(--border);
    border-radius: 20px;
    position: relative;
    overflow: hidden;
}

.quote-block::before {
    content: '\201C';
    position: absolute;
    top: -20px;
    left: 50%;
    transform: translateX(-50%);
    font-family: 'Lora', serif;
    font-size: 10rem;
    color: var(--accent);
    opacity: .06;
    line-height: 1;
    pointer-events: none;
}

.quote-text {
    font-family: 'Lora', serif;
    font-style: italic;
    font-size: clamp(1.1rem, 2.2vw, 1.4rem);
    color: #c8d8ee;
    line-height: 1.7;
    max-width: 560px;
    margin: 0 auto;
}

footer {
    border-top: 1px solid var(--border);
    padding: 32px 0;
    display: flex;
    justify-content: space-between;
    align-items: center;
    color: var(--faint);
    font-size: 13px;
}

footer a {
    color: var(--muted);
    text-decoration: none;
    transition: color .2s;
}

footer a:hover {
    color: var(--text);
}

.fade-up {
    opacity: 0;
    transform: translateY(24px);
    transition: opacity .65s ease, transform .65s ease;
}

.fade-up.visible {
    opacity: 1;
    transform: translateY(0);
}

nav a {
    color: var(--muted);
    text-decoration: none;
    font-size: 13.5px;
    padding: 6px 14px;
    border-radius: 100px;
    transition: color .25s, background .25s;

    display: inline-flex;
    align-items: center;
    gap: 8px;
}

nav a svg {
    width: 15px;
    height: 15px;
    stroke-width: 2;
}

.image-modal {
    position: fixed;
    inset: 0;
    background: rgba(3, 7, 18, .82);

    backdrop-filter: blur(10px);

    display: flex;
    justify-content: center;
    align-items: center;

    opacity: 0;
    visibility: hidden;

    transition: all .28s ease;

    z-index: 9999;
}

.image-modal.show {
    opacity: 1;
    visibility: visible;
}

.modal-image {
    max-width: 88%;
    max-height: 82vh;

    border-radius: 18px;

    border: 1px solid rgba(255, 255, 255, .08);

    box-shadow:
        0 20px 80px rgba(0, 0, 0, .45);

    transform: scale(.94);

    transition: transform .28s ease;
}

.image-modal.show .modal-image {
    transform: scale(1);
}

.close-modal {
    position: absolute;

    top: 28px;
    right: 36px;

    color: white;

    font-size: 42px;
    cursor: pointer;

    opacity: .7;

    transition: opacity .2s;
}

.close-modal:hover {
    opacity: 1;
}

.project-image {
    cursor: zoom-in;
}

@media (max-width: 900px) {
    .hero {
        grid-template-columns: 1fr;
        padding: 72px 0 64px;
        gap: 48px;
    }

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

    nav .nav-text,
    nav .nav-text-only {
        display: none;
    }

    nav a {
        padding: 8px 10px;
        gap: 0;
    }

    nav a i {
        font-size: 16px;
    }

    footer {
        flex-direction: column;
        gap: 8px;
        text-align: center;
    }
}

@media (max-width: 640px) {
    .wrap {
        width: 92%;
    }

    .quote-block {
        padding: 48px 28px;
    }
}