/* Mihai Tuhari personal website */
:root {
    --bg: #080d1a;
    --bg-soft: rgba(17, 24, 39, 0.72);
    --card: rgba(15, 23, 42, 0.72);
    --card-border: rgba(255, 255, 255, 0.12);
    --text: #f8fafc;
    --muted: #cbd5e1;
    --soft: #94a3b8;
    --purple: #8a3b8f;
    --purple-strong: #c026d3;
    --teal: #14b8a6;
    --teal-soft: #5eead4;
    --shadow: 0 24px 80px rgba(0, 0, 0, 0.35);
    --radius: 28px;
}

* {
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
}

body {
    margin: 0;
    min-height: 100vh;
    font-family: "Nunito", system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
    color: var(--text);
    background: radial-gradient(circle at 10% 10%, rgba(138, 59, 143, 0.34), transparent 34%),
    radial-gradient(circle at 90% 35%, rgba(20, 184, 166, 0.28), transparent 38%),
    linear-gradient(135deg, #080d1a 0%, #111827 48%, #031b25 100%);
    overflow-x: hidden;
}

body::before {
    content: "";
    position: fixed;
    inset: 0;
    background-image: url("images/banner-geometric.png");
    background-size: cover;
    background-position: center;
    opacity: 0.18;
    pointer-events: none;
    z-index: -3;
}

#network-bg {
    position: fixed;
    inset: 0;
    width: 100%;
    height: 100%;
    z-index: -2;
    pointer-events: none;
}

a {
    color: inherit;
}

.site-header {
    position: sticky;
    top: 0;
    z-index: 20;
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 22px clamp(20px, 5vw, 72px);
    backdrop-filter: blur(18px);
    background: rgba(8, 13, 26, 0.62);
    border-bottom: 1px solid rgba(255, 255, 255, 0.08);
}

.brand {
    display: inline-flex;
    align-items: center;
    gap: 12px;
    text-decoration: none;
    font-weight: 900;
    letter-spacing: 0.02em;
}

.brand-dot {
    width: 14px;
    height: 14px;
    position: relative;
    top: -1px;
    border-radius: 999px;
    background: linear-gradient(135deg, #d218ff 0%, #6a35ff 50%, #18e5c6 100%);
    box-shadow: 0 0 28px rgba(20, 184, 166, 0.7);
}

.nav {
    display: flex;
    gap: 22px;
    color: var(--muted);
    font-size: 15px;
    font-weight: 800;
}

.nav a {
    text-decoration: none;
    transition: color 0.2s ease;
}

.nav a:hover {
    color: var(--teal-soft);
}

.section {
    width: min(1160px, calc(100% - 40px));
    margin: 0 auto;
    padding: 60px 0;
}

.hero {
    min-height: calc(100vh - 80px);
    display: grid;
    grid-template-columns: minmax(0, 1.35fr) minmax(300px, 0.65fr);
    gap: 42px;
    align-items: center;
}

.eyebrow {
    margin: 0 0 18px;
    color: var(--teal-soft);
    font-weight: 900;
    text-transform: uppercase;
    letter-spacing: 0.14em;
    font-size: 13px;
}

.eyebrow-break {
    display: none;
}

h1, h2, h3 {
    margin: 0;
    line-height: 1.08;
}

h1, h2 {
    font-family: "Merriweather", Georgia, serif;
}

h1 {
    max-width: 860px;
    font-size: clamp(48px, 7vw, 94px);
    letter-spacing: -0.06em;
}

h2 {
    font-size: clamp(32px, 4vw, 56px);
    letter-spacing: -0.04em;
}

h3 {
    font-size: 24px;
}

.lead {
    color: var(--muted);
    font-size: clamp(20px, 2vw, 26px);
    line-height: 1.55;
}

.hero-actions,
.contact-links {
    display: flex;
    flex-wrap: wrap;
    gap: 14px;
    margin-top: 34px;
}

.button {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-height: 50px;
    padding: 0 22px;
    border-radius: 999px;
    text-decoration: none;
    font-weight: 900;
    transition: transform 0.2s ease, border-color 0.2s ease, background 0.2s ease;
}

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

.button.primary {
    color: #06111d;
    background: linear-gradient(135deg, var(--teal-soft), #a7f3d0);
}

.button.secondary {
    color: var(--text);
    border: 1px solid rgba(255, 255, 255, 0.18);
    background: rgba(255, 255, 255, 0.06);
}

.button.secondary:hover {
    border-color: rgba(94, 234, 212, 0.7);
}

.hero-card,
.card,
.rescue-inner {
    border: 1px solid var(--card-border);
    background: linear-gradient(180deg, rgba(255, 255, 255, 0.10), rgba(255, 255, 255, 0.045));
    box-shadow: var(--shadow);
    backdrop-filter: blur(22px);
}

.hero-card {
    padding: 30px;
    border-radius: var(--radius);
}

.avatar-wrap {
    width: 120px;
    height: 120px;
    display: grid;
    place-items: center;
    border-radius: 999px;
    padding: 3px;
    background: linear-gradient(135deg, var(--purple-strong), var(--teal));
    margin-bottom: 22px;
}

.avatar-image {
    width: 100%;
    height: 100%;
    display: block;
    border-radius: 999px;
    object-fit: cover;
    object-position: center;
}

.buttons {
    display: flex;
    gap: 14px;
}

.fw-normal {
    font-weight: 500;
}

.hero-card p,
.card p,
.copy p,
.rescue-grid span,
.contact p,
.footer {
    color: var(--muted);
    line-height: 1.65;
    font-size: 17px;
}

.stats {
    display: grid;
    gap: 14px;
    margin-top: 28px;
}

.stats div {
    padding: 16px;
    border-radius: 18px;
    background: rgba(255, 255, 255, 0.06);
    border: 1px solid rgba(255, 255, 255, 0.08);
}

.stats strong {
    display: block;
    font-size: 26px;
    color: var(--teal-soft);
}

.stats span {
    color: var(--soft);
    font-weight: 700;
}

.split {
    display: grid;
    grid-template-columns: 0.9fr 1.1fr;
    gap: 64px;
    align-items: center;
}

.copy p:first-child {
    margin-top: 55px;
}

.section-heading {
    max-width: 820px;
    margin-bottom: 34px;
}

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

.card {
    padding: 28px;
    border-radius: 24px;
}

.tag {
    display: inline-flex;
    margin-bottom: 22px;
    padding: 7px 11px;
    border-radius: 999px;
    color: var(--teal-soft);
    background: rgba(20, 184, 166, 0.10);
    border: 1px solid rgba(94, 234, 212, 0.18);
    font-weight: 900;
    font-size: 13px;
    text-transform: uppercase;
    letter-spacing: 0.08em;
}

.rescue-inner {
    position: relative;
    overflow: hidden;
    padding: clamp(34px, 5vw, 64px);
    border-radius: 34px;
}

.rescue-inner::after {
    content: "";
    position: absolute;
    inset: auto -20% -45% 25%;
    height: 360px;
    background: radial-gradient(circle, rgba(20, 184, 166, 0.24), transparent 65%);
    pointer-events: none;
}

.rescue-grid {
    position: relative;
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 18px;
    margin: 36px 0;
    z-index: 1;
}

.rescue-grid div {
    padding: 22px;
    border-radius: 22px;
    background: rgba(8, 13, 26, 0.48);
    border: 1px solid rgba(255, 255, 255, 0.10);
}

.rescue-grid strong {
    display: block;
    margin-bottom: 8px;
    font-size: 20px;
}

.rescue-grid span {
    display: block;
}

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

.skills span {
    padding: 12px 16px;
    border-radius: 999px;
    color: var(--text);
    background: rgba(255, 255, 255, 0.07);
    border: 1px solid rgba(255, 255, 255, 0.10);
    font-weight: 800;
}

.contact {
    text-align: center;
    padding-bottom: 120px;
}

.contact .contact-links {
    justify-content: center;
}

.footer {
    display: flex;
    justify-content: center;
    gap: 20px;
    padding: 28px clamp(20px, 5vw, 72px);
    border-top: 1px solid rgba(255, 255, 255, 0.08);
    background: rgba(8, 13, 26, 0.55);
}

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

.feature-card,
.bring-item {
    padding: 26px;
    border-radius: 24px;
    background: linear-gradient(180deg, rgba(255, 255, 255, 0.10), rgba(255, 255, 255, 0.045));
    border: 1px solid rgba(255, 255, 255, 0.12);
    box-shadow: var(--shadow);
    backdrop-filter: blur(22px);
}

.feature-card span {
    display: inline-flex;
    margin-bottom: 18px;
    font-size: 34px;
}

.feature-card h3,
.bring-item h3 {
    margin: 0 0 12px;
    font-size: 22px;
    line-height: 1.2;
}

.feature-card p,
.bring-item p {
    margin: 0;
    color: var(--muted);
    font-size: 17px;
    line-height: 1.6;
}

.what-i-bring {
    display: grid;
    gap: 18px;
}

.bring-item {
    position: relative;
    overflow: hidden;
}

.bring-item::before {
    content: "";
    position: absolute;
    top: 0;
    left: 0;
    width: 4px;
    height: 100%;
    background: linear-gradient(180deg, var(--teal-soft), var(--purple-strong));
    opacity: 0.9;
}

.bring-item h3,
.bring-item p {
    position: relative;
    z-index: 1;
}

@media (max-width: 900px) {
    .section[id] {
        scroll-margin-top: 90px;
    }

    .copy p:first-child {
        margin-top: 0;
    }

    .site-header {
        align-items: flex-start;
        gap: 16px;
        flex-direction: column;
    }

    .nav {
        width: 100%;
        overflow-x: auto;
        padding-bottom: 4px;
    }

    .hero,
    .split,
    .cards,
    .rescue-grid {
        grid-template-columns: 1fr;
    }

    .split {
        gap: 32px;
    }

    .hero {
        padding-top: 52px;
    }

    .section {
        padding: 30px 0;
    }

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

    .skills {
        font-size: 13px;
    }

    #about-grid {
        padding-top: 0;
    }
}

@media (max-width: 560px) {
    .section {
        width: min(100% - 28px, 1160px);
    }

    .buttons {
        flex-direction: column;
    }

    .buttons .button {
        width: 100%;
    }

    .eyebrow-dot {
        display: none;
    }

    .eyebrow-break {
        display: inline;
    }

    footer {
        font-size: 15px;
    }

    h1 {
        font-size: 44px;
    }

    .lead {
        font-size: 17px;
    }

    .hero-card {
        padding: 22px;
    }
}
