* {
    box-sizing: border-box;
}

:root {
    --bg: #07111f;
    --panel: #0d1b2d;
    --panel-soft: #122337;
    --line: rgba(255, 255, 255, 0.08);
    --text: #f8fafc;
    --muted: #aab6c7;
    --green: #10b981;
    --green-strong: #059669;
    --green-soft: rgba(16, 185, 129, 0.16);
    --white-soft: rgba(255, 255, 255, 0.92);
    --shadow: 0 28px 80px rgba(0, 0, 0, 0.34);
}

html {
    scroll-behavior: smooth;
}

body {
    margin: 0;
    font-family: Inter, Arial, Helvetica, sans-serif;
    color: var(--text);
    background:
        radial-gradient(circle at 80% 8%, rgba(16, 185, 129, 0.2), transparent 28rem),
        radial-gradient(circle at 12% 16%, rgba(59, 130, 246, 0.12), transparent 24rem),
        var(--bg);
    line-height: 1.6;
}

body::before {
    content: "";
    position: fixed;
    inset: 0;
    pointer-events: none;
    background-image: linear-gradient(rgba(255, 255, 255, 0.025) 1px, transparent 1px);
    background-size: 100% 96px;
    opacity: 0.28;
}

a {
    color: inherit;
}

header {
    position: sticky;
    top: 0;
    z-index: 10;
    padding: 18px 24px;
    color: white;
    background: rgba(7, 17, 31, 0.86);
    border-bottom: 1px solid var(--line);
    backdrop-filter: blur(18px);
}

nav {
    display: flex;
    align-items: center;
    justify-content: space-between;
    width: min(1120px, 100%);
    margin: 0 auto;
    gap: 24px;
}

nav h1 {
    margin: 0;
    font-size: 1rem;
    line-height: 1.2;
}

.brand-link {
    color: white;
    font-weight: 800;
    text-decoration: none;
}

nav ul {
    display: flex;
    align-items: center;
    gap: 22px;
    margin: 0;
    padding: 0;
    list-style: none;
}

nav a {
    color: var(--white-soft);
    font-size: 0.9rem;
    font-weight: 700;
    text-decoration: none;
}

nav a:hover {
    color: var(--green);
}

.nav-icon-link {
    display: inline-flex;
    align-items: center;
    gap: 8px;
}

.linkedin-icon {
    display: inline-grid;
    width: 22px;
    height: 22px;
    place-items: center;
    border-radius: 5px;
    background: var(--white-soft);
    color: var(--bg);
    font-size: 0.8rem;
    font-weight: 900;
    line-height: 1;
}

.nav-cta {
    display: inline-flex;
    align-items: center;
    min-height: 36px;
    padding: 0 16px;
    border-radius: 7px;
    background: var(--green);
    color: white;
}

.nav-cta:hover {
    background: var(--green-strong);
    color: white;
}

main {
    width: min(1120px, calc(100% - 48px));
    margin: 0 auto;
    overflow: hidden;
    border: 1px solid var(--line);
    border-radius: 12px;
    background: rgba(7, 17, 31, 0.7);
    box-shadow: var(--shadow);
}

.hero {
    position: relative;
    display: grid;
    grid-template-columns: minmax(0, 1fr) minmax(280px, 0.82fr);
    align-items: center;
    gap: 52px;
    min-height: 620px;
    padding: 72px 34px 54px;
    background:
        radial-gradient(circle at 82% 48%, rgba(16, 185, 129, 0.38), transparent 15rem),
        linear-gradient(135deg, rgba(5, 10, 20, 0.98), rgba(10, 24, 40, 0.95));
}

.hero-content {
    position: relative;
    z-index: 1;
    max-width: 610px;
}

.eyebrow,
.section-kicker {
    margin: 0 0 14px;
    color: var(--green);
    font-size: 0.78rem;
    font-weight: 800;
    letter-spacing: 0;
    text-transform: uppercase;
}

.eyebrow {
    display: inline-flex;
    padding: 6px 10px;
    border: 1px solid rgba(16, 185, 129, 0.24);
    border-radius: 999px;
    background: var(--green-soft);
}

.hero h2 {
    max-width: 620px;
    margin: 0;
    color: white;
    font-size: clamp(2.8rem, 5.6vw, 5.1rem);
    line-height: 0.98;
}

.hero h2 span {
    color: var(--green);
}

.hero p:not(.eyebrow) {
    max-width: 540px;
    margin: 24px 0 0;
    color: var(--muted);
    font-size: 1.08rem;
}

.hero-actions {
    display: flex;
    flex-wrap: wrap;
    gap: 12px;
    margin-top: 30px;
}

.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-height: 44px;
    padding: 0 22px;
    border: 1px solid transparent;
    border-radius: 7px;
    background: var(--green);
    color: white;
    font-size: 0.92rem;
    font-weight: 800;
    text-decoration: none;
}

.btn:hover {
    background: var(--green-strong);
}

.btn-secondary {
    background: transparent;
    color: white;
    border-color: rgba(255, 255, 255, 0.28);
}

.btn-secondary:hover {
    background: rgba(255, 255, 255, 0.08);
}

.hero-stats {
    display: flex;
    flex-wrap: wrap;
    gap: 28px;
    margin-top: 42px;
}

.hero-stats div {
    min-width: 118px;
}

.hero-stats strong {
    display: block;
    color: var(--green);
    font-size: 1.08rem;
    line-height: 1.1;
}

.hero-stats span {
    display: block;
    margin-top: 4px;
    color: var(--muted);
    font-size: 0.78rem;
}

.hero-image {
    position: relative;
    justify-self: end;
    width: min(100%, 390px);
    aspect-ratio: 0.86;
    border-radius: 18px;
    overflow: hidden;
}

.hero-image::before {
    content: "";
    position: absolute;
    inset: 26% -12% -12%;
    background: radial-gradient(circle, rgba(16, 185, 129, 0.48), transparent 62%);
}

.hero-image img {
    position: relative;
    width: 100%;
    height: 100%;
    display: block;
    object-fit: cover;
    object-position: center;
    filter: saturate(1.02) contrast(1.04);
}

section {
    padding: 48px 34px;
    background: rgba(10, 24, 40, 0.82);
    border-top: 1px solid var(--line);
}

section h2 {
    max-width: 760px;
    margin: 0 0 18px;
    color: white;
    font-size: clamp(1.7rem, 3vw, 2.4rem);
    line-height: 1.15;
}

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

.focus-grid,
.project-grid {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 18px;
    margin-top: 28px;
}

.focus-card,
.project-card {
    min-height: 176px;
    padding: 24px;
    border: 1px solid var(--line);
    border-radius: 8px;
    background: linear-gradient(180deg, rgba(255, 255, 255, 0.055), rgba(255, 255, 255, 0.025));
}

.card-icon {
    display: inline-grid;
    width: 34px;
    height: 34px;
    margin-bottom: 18px;
    place-items: center;
    border-radius: 8px;
    background: var(--green-soft);
    color: var(--green);
    font-size: 0.76rem;
    font-weight: 900;
}

.focus-card h3,
.project-card h3 {
    margin: 0 0 10px;
    color: white;
    font-size: 1.06rem;
    line-height: 1.25;
}

.focus-card p,
.project-card p {
    color: var(--muted);
    font-size: 0.94rem;
}

.project-card a {
    display: inline-flex;
    margin-top: 20px;
    color: var(--green);
    font-size: 0.88rem;
    font-weight: 800;
    text-decoration: none;
}

.project-card a:hover {
    text-decoration: underline;
}

.contact-section {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 32px;
    background: rgba(7, 17, 31, 0.96);
}

.contact-section h2 {
    margin-bottom: 0;
}

.contact-list {
    display: grid;
    gap: 10px;
    min-width: min(100%, 340px);
    padding: 22px;
    border: 1px solid var(--line);
    border-radius: 8px;
    background: rgba(255, 255, 255, 0.04);
}

.contact-list p {
    max-width: none;
    color: var(--muted);
}

.contact-list a {
    color: var(--green);
    font-weight: 800;
    text-decoration: none;
}

.contact-list a:hover {
    text-decoration: underline;
}

footer {
    width: min(1120px, calc(100% - 48px));
    margin: 0 auto 40px;
    color: #ecfeff;
    background: #0c2a2d;
    border: 1px solid var(--line);
    border-top: 0;
    border-radius: 0 0 12px 12px;
}

.footer-inner {
    display: grid;
    grid-template-columns: 1.1fr auto 1fr;
    align-items: end;
    gap: 48px;
    min-height: 240px;
    padding: 54px 34px 34px;
}

.footer-profile {
    display: grid;
    gap: 14px;
}

.footer-profile p,
.footer-meta p {
    margin: 0;
}

.footer-name {
    font-weight: 800;
}

.footer-profile a,
.footer-meta a {
    color: #ecfeff;
    font-weight: 800;
    text-decoration: none;
}

.footer-profile a:hover,
.footer-meta a:hover {
    text-decoration: underline;
}

.footer-socials {
    display: flex;
    align-items: center;
    gap: 16px;
    justify-self: start;
}

.footer-socials a {
    display: inline-grid;
    width: 30px;
    height: 30px;
    place-items: center;
    border-radius: 5px;
    background: #ecfeff;
    color: #0c2a2d;
    font-size: 0.94rem;
    font-weight: 900;
    line-height: 1;
    text-decoration: none;
}

.footer-meta {
    display: flex;
    justify-content: flex-end;
    gap: 28px;
    text-align: right;
}

@media (max-width: 820px) {
    body {
        background: var(--bg);
    }

    header {
        padding: 16px 20px;
    }

    nav {
        align-items: flex-start;
        flex-direction: column;
        gap: 14px;
    }

    nav ul {
        width: 100%;
        justify-content: space-between;
        gap: 12px;
    }

    nav a {
        font-size: 0.88rem;
    }

    .nav-icon-link span:last-child,
    .nav-cta {
        display: none;
    }

    main,
    footer {
        width: min(100% - 28px, 560px);
    }

    .hero {
        grid-template-columns: 1fr;
        gap: 32px;
        min-height: 0;
        padding: 36px 20px 40px;
    }

    .hero-image {
        justify-self: start;
        width: min(100%, 320px);
        aspect-ratio: 1;
        order: -1;
    }

    .hero h2 {
        font-size: clamp(2.2rem, 11vw, 3.3rem);
    }

    .hero p:not(.eyebrow) {
        font-size: 1rem;
    }

    .hero-actions {
        flex-direction: column;
    }

    .btn {
        width: 100%;
    }

    .hero-stats {
        gap: 18px;
    }

    section {
        padding: 38px 20px;
    }

    .focus-grid,
    .project-grid {
        grid-template-columns: 1fr;
    }

    .contact-section {
        align-items: stretch;
        flex-direction: column;
    }

    .footer-inner {
        grid-template-columns: 1fr;
        align-items: start;
        gap: 32px;
        min-height: 0;
        padding: 42px 20px 30px;
    }

    .footer-meta {
        flex-direction: column;
        justify-content: flex-start;
        gap: 10px;
        text-align: left;
    }
}

@media (max-width: 430px) {
    nav ul {
        flex-wrap: wrap;
        justify-content: flex-start;
    }

    .hero-stats {
        display: grid;
        grid-template-columns: 1fr 1fr;
    }
}
