:root {
    --bg: #f6f4ef;
    --bg-soft: #eeebe3;
    --surface: rgba(255, 255, 255, 0.62);
    --surface-strong: rgba(255, 255, 255, 0.82);
    --text: #171717;
    --muted: #5c6167;
    --line: rgba(23, 23, 23, 0.1);
    --accent: #2e5b88;
    --accent-2: #7f8fa3;
    --shadow: 0 14px 40px rgba(20, 20, 20, 0.08);
    --radius: 22px;
    --max: 1220px;
    --nav-h: 84px;
}

* {
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
}

body {
    margin: 0;
    font-family: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
    color: var(--text);
    background:
        radial-gradient(circle at top left, rgba(46, 91, 136, 0.12), transparent 28%),
        radial-gradient(circle at top right, rgba(127, 143, 163, 0.12), transparent 30%),
        linear-gradient(180deg, #fbfaf7 0%, var(--bg) 100%);
    line-height: 1.6;
}

main {
    padding: 0 1em;
}

a {
    color: inherit;
    text-decoration: none;
}

img {
    max-width: 100%;
    display: block;
}

.container {
    width: min(calc(100% - 2rem), var(--max));
    margin: 0 auto;
}

.site-header {
    position: sticky;
    top: 0;
    z-index: 50;
    backdrop-filter: blur(14px);
    background: rgba(246, 244, 239, 0.74);
    border-bottom: 1px solid rgba(23, 23, 23, 0.06);
}

.nav {
    min-height: var(--nav-h);
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 2rem;
}

.brand {
    display: flex;
    align-items: center;
    gap: 0.9rem;
    font-weight: 700;
    letter-spacing: -0.02em;
}

.brand-mark {
    width: 42px;
    height: 42px;
    border-radius: 14px;
    display: grid;
    place-items: center;
    color: white;
    box-shadow: 0 10px 24px rgba(46, 91, 136, 0.24);
    font-size: 0.95rem;
    background-image: url("Adrian Filip.jpeg");
    background-position: center;
    background-size: cover;
    background-repeat: no-repeat;
}

.brand small {
    display: block;
    color: var(--muted);
    font-weight: 500;
    letter-spacing: 0;
    font-size: 0.78rem;
    margin-top: 0.1rem;
}

.nav-links {
    display: flex;
    align-items: center;
    gap: 1.25rem;
    list-style: none;
    padding: 0;
    margin: 0;
  -webkit-user-select: none; /* Safari */
  -ms-user-select: none; /* IE 10 and IE 11 */
  user-select: none; /* Standard syntax */
}

.nav-links a {
    color: var(--muted);
    font-size: 0.97rem;
    transition: color 0.2s ease;
}

.nav-links a:hover,
.nav-links a.active {
    color: var(--text);
}

.menu-toggle {
    display: none;
    border: 0;
    background: transparent;
    padding: 0;
    width: 44px;
    height: 44px;
    cursor: pointer;
}

.menu-toggle span,
.menu-toggle::before,
.menu-toggle::after {
    content: "";
    display: block;
    width: 22px;
    height: 2px;
    background: var(--text);
    margin: 5px auto;
    transition: transform 0.25s ease, opacity 0.25s ease;
}

.hero {
    padding: 4.8rem 0 3.5rem;
}

.hero-grid {
    display: grid;
    grid-template-columns: 1.13fr 0.97fr;
    gap: 2rem;
    align-items: center;
}

.eyebrow {
    display: inline-flex;
    align-items: center;
    gap: 0.55rem;
    padding: 0.45rem 0.8rem;
    border: 1px solid var(--line);
    border-radius: 999px;
    background: rgba(255, 255, 255, 0.46);
    color: var(--muted);
    font-size: 0.88rem;
    margin-bottom: 1.25rem;
}

.eyebrow::before {
    content: "";
    width: 9px;
    height: 9px;
    border-radius: 999px;
    background: var(--accent);
    box-shadow: 0 0 0 6px rgba(46, 91, 136, 0.12);
}

h1,
h2,
h3 {
    margin: 0;
    line-height: 1.04;
    letter-spacing: -0.04em;
}

h1 {
    font-size: clamp(2.9rem, 7vw, 5.9rem);
    max-width: 10ch;
}

.hero p.lead {
    font-size: 1.15rem;
    max-width: 62ch;
    color: var(--muted);
    margin: 1.4rem 0 0;
}

.hero-actions {
    display: flex;
    flex-wrap: wrap;
    gap: 1rem;
    margin-top: 2rem;
}

.button {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 0.6rem;
    min-height: 50px;
    padding: 0.85rem 1.25rem;
    border-radius: 999px;
    font-weight: 600;
    transition: transform 0.2s ease, box-shadow 0.2s ease, background 0.2s ease;
}

.button:hover {
    transform: translateY(-1px);
}

.button-primary {
    background: var(--text);
    color: white;
    box-shadow: 0 12px 25px rgba(23, 23, 23, 0.14);
}

.button-secondary {
    border: 1px solid var(--line);
    background: rgba(255, 255, 255, 0.55);
    color: var(--text);
}

.hero-meta {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 0.9rem;
    margin-top: 2.25rem;
}

.meta-card,
.card,
.project-card,
.note,
.contact-panel,
.hero-visual {
    background: var(--surface);
    border: 1px solid rgba(255, 255, 255, 0.55);
    box-shadow: var(--shadow);
    backdrop-filter: blur(10px);
}

.meta-card {
    border-radius: 18px;
    padding: 1rem 1rem 0.9rem;
}

.meta-card strong {
    display: block;
    font-size: 0.82rem;
    color: var(--muted);
    font-weight: 600;
    letter-spacing: 0.02em;
    text-transform: uppercase;
    margin-bottom: 0.35rem;
}

.meta-card span {
    font-size: 1.05rem;
    font-weight: 700;
    letter-spacing: -0.02em;
}

.hero-visual {
    position: relative;
    min-height: 560px;
    border-radius: 34px;
    overflow: hidden;
    padding: 1.3rem;
    display: grid;
    grid-template-rows: auto auto auto;
    gap: 1rem;
    background:
        linear-gradient(160deg, rgba(255, 255, 255, 0.95), rgba(240, 236, 228, 0.7)),
        linear-gradient(135deg, rgba(46, 91, 136, 0.06), transparent);
}

.hero-panel-grid {
    display: grid;
    grid-template-columns: 1.02fr 0.98fr;
    gap: 1rem;
    align-items: stretch;
}

.mini-panel {
    border-radius: 22px;
    padding: 1rem;
    background: var(--surface-strong);
    border: 1px solid rgba(23, 23, 23, 0.06);
}

.mini-panel h3 {
    font-size: 1rem;
    letter-spacing: -0.03em;
    margin-bottom: 0.8rem;
}

.stack-list,
.principle-list,
.contact-list,
.project-tags {
    display: flex;
    flex-wrap: wrap;
    gap: 0.55rem;
    padding: 0;
    margin: 0;
    list-style: none;
    overflow: hidden;
    height: fit-content;
}

.stack-list li,
.project-tags li,
.contact-list a {
    display: inline-flex;
    align-items: center;
    min-height: 40px;
    padding: 0 0.78rem;
    border-radius: 999px;
    background: rgba(46, 91, 136, 0.08);
    border: 1px solid rgba(46, 91, 136, 0.12);
    font-size: 0.88rem;
    line-height: 1;
    color: #20364e;
    white-space: nowrap;
}

.hero-visual .stack-list li {
    min-height: 36px;
    padding: 0 0.72rem;
    font-size: 0.84rem;
}

.focus-list {
    display: grid;
    gap: 0.55rem;
    padding: 0;
    margin: 0;
    list-style: none;
}

.focus-list li {
    display: grid;
    grid-template-columns: auto 1fr;
    column-gap: 0.7rem;
    align-items: center;
    min-height: 48px;
    padding: 0.58rem 0.68rem;
    border-radius: 16px;
    background: rgba(46, 91, 136, 0.06);
    border: 1px solid rgba(46, 91, 136, 0.1);
}

.focus-list span {
    grid-row: span 2;
    width: 30px;
    height: 30px;
    border-radius: 999px;
    display: grid;
    place-items: center;
    background: rgba(46, 91, 136, 0.12);
    color: var(--accent);
    font-size: 0.72rem;
    font-weight: 800;
}

.focus-list strong {
    line-height: 1.1;
    letter-spacing: -0.02em;
    font-size: 0.95rem;
}

.focus-list small {
    color: var(--muted);
    line-height: 1.25;
    margin-top: 0.15rem;
}

.workflow-card {
    min-height: 166px;
    border-radius: 24px;
    padding: 1rem;
    background:
        linear-gradient(rgba(23, 23, 23, 0.04) 1px, transparent 1px),
        linear-gradient(90deg, rgba(23, 23, 23, 0.04) 1px, transparent 1px),
        linear-gradient(180deg, rgba(46, 91, 136, 0.06), rgba(127, 143, 163, 0.05));
    background-size: 34px 34px, 34px 34px, cover;
    overflow: hidden;
}

.workflow-card h3 {
    font-size: 1rem;
    letter-spacing: -0.03em;
    margin-bottom: 0.85rem;
}

.workflow-steps {
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 0.7rem;
}

.workflow-step {
    position: relative;
    z-index: 1;
    min-height: 90px;
    padding: 0.72rem;
    border-radius: 18px;
    background: rgba(255, 255, 255, 0.78);
    border: 1px solid rgba(23, 23, 23, 0.07);
    box-shadow: 0 10px 18px rgba(20, 20, 20, 0.04);
}

.workflow-step:not(:last-child)::after {
    content: "";
    position: absolute;
    top: 21px;
    left: calc(100% + 1px);
    width: calc(0.7rem - 2px);
    height: 1px;
    background: rgba(46, 91, 136, 0.32);
    z-index: -1;
}

.workflow-step span {
    display: block;
    width: 12px;
    height: 12px;
    margin-bottom: 0.9rem;
    border-radius: 999px;
    background: var(--accent);
    box-shadow: 0 0 0 8px rgba(46, 91, 136, 0.12);
}

.workflow-step strong {
    display: block;
    margin-bottom: 0.25rem;
    line-height: 1.1;
    letter-spacing: -0.02em;
    font-size: 0.92rem;
}

.workflow-step small {
    display: block;
    color: var(--muted);
    font-size: 0.74rem;
    line-height: 1.3;
}

.bring-list {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 0.65rem;
    padding: 0;
    margin: 0;
    list-style: none;
}

.bring-list li {
    padding: 0.75rem 0.8rem;
    border-radius: 16px;
    background: rgba(46, 91, 136, 0.055);
    border: 1px solid rgba(46, 91, 136, 0.09);
}

.bring-list strong,
.bring-list small {
    display: block;
}

.bring-list strong {
    margin-bottom: 0.25rem;
    line-height: 1.15;
    letter-spacing: -0.02em;
    font-size: 0.92rem;
}

.bring-list small {
    color: var(--muted);
    font-size: 0.78rem;
    line-height: 1.35;
}

section {
    padding: 2rem 0 1rem;
    scroll-margin-top: calc(var(--nav-h) + 24px);
}

.section-head {
    display: grid;
    grid-template-columns: 0.95fr 1.05fr;
    gap: 2rem;
    align-items: end;
    margin-bottom: 1.6rem;
}

.section-kicker {
    font-size: 0.88rem;
    letter-spacing: 0.14em;
    text-transform: uppercase;
    color: var(--muted);
    margin-bottom: 0.7rem;
    font-weight: 700;
}

.section-head h2 {
    font-size: clamp(2rem, 4vw, 3.5rem);
    max-width: 12ch;
}

.section-head p {
    margin: 0;
    color: var(--muted);
    max-width: 62ch;
    font-size: 1.04rem;
}

.cards-grid {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 1rem;
}

.card {
    border-radius: 24px;
    padding: 1.4rem;
}

.card-icon {
    width: 46px;
    height: 46px;
    border-radius: 16px;
    display: grid;
    place-items: center;
    background: rgba(46, 91, 136, 0.1);
    color: var(--accent);
    font-weight: 800;
    margin-bottom: 1rem;
}

.card h3 {
    font-size: 1.2rem;
    margin-bottom: 0.7rem;
}

.card p {
    margin: 0;
    color: var(--muted);
}

.projects-grid {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 1rem;
}

.project-card {
    border-radius: 28px;
    padding: 1.45rem;
    display: grid;
    gap: 1rem;
}

.project-top {
    display: flex;
    justify-content: space-between;
    gap: 1rem;
    align-items: start;
}

.project-index {
    color: var(--muted);
    font-weight: 700;
    font-size: 0.88rem;
    letter-spacing: 0.08em;
    text-transform: uppercase;
}

.project-card h3 {
    font-size: 1.4rem;
    margin-top: 0.35rem;
    max-width: 14ch;
}

.project-card p {
    margin: 0;
    color: var(--muted);
}

.project-link {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    font-weight: 700;
    color: var(--accent);
    text-align: right;
}

.skills-layout {
    display: grid;
    grid-template-columns: 0.9fr 1.1fr;
    gap: 1rem;
    align-items: start;
}

.note {
    border-radius: 28px;
    padding: 1.5rem;
}

.note h3 {
    font-size: 1.5rem;
    margin-bottom: 0.9rem;
}

.note p {
    margin: 0 0 1rem;
    color: var(--muted);
}

.skill-groups {
    display: grid;
    gap: 1rem;
}

.skill-group {
    border-radius: 24px;
    padding: 1.25rem;
    background: rgba(255, 255, 255, 0.56);
    border: 1px solid rgba(23, 23, 23, 0.08);
    box-shadow: var(--shadow);
}

.skill-group h3 {
    font-size: 1.05rem;
    margin-bottom: 0.8rem;
}

.principles-grid {
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 1rem;
}

.principle {
    border-radius: 22px;
    padding: 1.2rem;
    background: rgba(255, 255, 255, 0.52);
    border: 1px solid rgba(23, 23, 23, 0.08);
}

.principle strong {
    display: block;
    margin-bottom: 0.65rem;
    font-size: 1rem;
    letter-spacing: -0.02em;
}

.principle p {
    margin: 0;
    color: var(--muted);
    font-size: 0.97rem;
}

.about-layout {
    display: grid;
    grid-template-columns: 1.05fr 0.95fr;
    gap: 1rem;
}

.about-copy,
.about-side,
.contact-panel {
    border-radius: 28px;
    padding: 1.55rem;
    background: rgba(255, 255, 255, 0.56);
    border: 1px solid rgba(23, 23, 23, 0.08);
    box-shadow: var(--shadow);
}

.about-copy p,
.about-side p {
    color: var(--muted);
    margin: 0 0 1rem;
}

.about-copy p:last-child,
.about-side p:last-child {
    margin-bottom: 0;
}

.contact-layout {
    display: grid;
    grid-template-columns: 0.95fr 1.05fr;
    gap: 1rem;
    align-items: stretch;
}

.contact-panel h2 {
    font-size: clamp(2rem, 4vw, 3.1rem);
    margin-bottom: 1rem;
}

.contact-panel p {
    color: var(--muted);
    max-width: 52ch;
}

.contact-list {
    margin-top: 1.25rem;
}

.contact-list a:hover {
    background: rgba(46, 91, 136, 0.12);
}

.availability {
    display: inline-flex;
    align-items: center;
    gap: 0.55rem;
    color: var(--muted);
    margin-top: 1rem;
    font-size: 0.95rem;
}

.availability::before {
    content: "";
    width: 10px;
    height: 10px;
    border-radius: 999px;
    background: #2f8a57;
    box-shadow: 0 0 0 6px rgba(47, 138, 87, 0.14);
}

.footer {
    padding: 2.5rem 0 3rem;
    color: var(--muted);
    font-size: 0.95rem;
}

.fade-up {
    opacity: 0;
    transform: translateY(22px);
    transition: opacity 0.7s ease, transform 0.7s ease;
}

.fade-up.visible {
    opacity: 1;
    transform: translateY(0);
}

@media (max-width: 1080px) {

    .hero-grid,
    .section-head,
    .skills-layout,
    .about-layout,
    .contact-layout {
        grid-template-columns: 1fr;
    }

    .projects-grid,
    .cards-grid,
    .principles-grid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }

    .hero-visual {
        min-height: 460px;
    }
}

@media (max-width: 1180px) and (min-width: 1081px) {
    .workflow-steps {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }

    .workflow-step:not(:last-child)::after {
        display: none;
    }
}

@media (max-width: 760px) {
    :root {
        --nav-h: 76px;
    }

    .nav {
        position: relative;
        gap: 0;
    }

    .menu-toggle {
        display: block;
        flex: 0 0 44px;
        margin-left: auto;
    }

    .nav-links {
        position: absolute;
        top: calc(100% + 0.75rem);
        right: 0;
        left: 0;
        display: grid;
        gap: 0;
        background: rgba(251, 250, 247, 0.96);
        backdrop-filter: blur(16px);
        border: 1px solid rgba(23, 23, 23, 0.08);
        border-radius: 22px;
        padding: 0.55rem;
        box-shadow: var(--shadow);
        opacity: 0;
        pointer-events: none;
        transform: translateY(-8px);
        transition: opacity 0.2s ease, transform 0.2s ease;
    }

    .nav-links.open {
        opacity: 1;
        pointer-events: auto;
        transform: translateY(0);
    }

    .nav-links a {
        display: block;
        padding: 0.8rem 0.9rem;
        border-radius: 16px;
    }

    .nav-links a:hover {
        background: rgba(46, 91, 136, 0.06);
    }

    h1 {
        max-width: 12ch;
    }

    .hero {
        padding-top: 3.2rem;
    }

    .hero-meta,
    .cards-grid,
    .projects-grid,
    .principles-grid {
        grid-template-columns: 1fr;
    }

    .hero-panel-grid {
        grid-template-columns: 1fr;
    }

    .bring-list {
        grid-template-columns: 1fr;
    }

    .workflow-steps {
        grid-template-columns: 1fr;
    }

    .workflow-step {
        min-height: auto;
    }

    .workflow-step:not(:last-child)::after {
        top: calc(100% + 1px);
        left: 25px;
        width: 1px;
        height: calc(0.7rem - 2px);
    }

    .workflow-step span {
        margin-bottom: 0.8rem;
    }

    .hero-visual {
        min-height: auto;
    }

    .container {
        width: min(calc(100% - 1.2rem), var(--max));
    }
}
