:root {
    --color-bg: #070708;
    --color-bg-soft: #0f1014;
    --color-surface: #ffffff;
    --color-muted: #f4f5f8;
    --color-border: rgba(15, 16, 20, 0.08);
    --color-border-strong: rgba(15, 16, 20, 0.14);
    --color-text: #12131a;
    --color-text-muted: #5c6170;
    --color-accent: #ff9f1c;
    --color-accent-soft: rgba(255, 159, 28, 0.14);
    --color-line: rgba(255, 255, 255, 0.08);
    --shadow-soft: 0 18px 50px rgba(5, 6, 12, 0.08);
    --shadow-card: 0 14px 40px rgba(5, 6, 12, 0.06);
    --radius-lg: 18px;
    --radius-md: 12px;
    --radius-pill: 999px;
    --header-h: 76px;
    --font-sans: "DM Sans", system-ui, -apple-system, "Segoe UI", Roboto, Arial, sans-serif;
    --font-display: "Space Grotesk", var(--font-sans);
    --ease-out: cubic-bezier(0.22, 1, 0.36, 1);
}

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

html {
    scroll-padding-top: calc(var(--header-h) + 12px);
}

body {
    margin: 0;
    font-family: var(--font-sans);
    color: var(--color-text);
    background: var(--color-surface);
    line-height: 1.65;
    -webkit-font-smoothing: antialiased;
}

img {
    max-width: 100%;
    height: auto;
    display: block;
}

/* ---------- Header ---------- */

.site-header {
    position: fixed;
    inset: 0 0 auto 0;
    z-index: 1000;
    padding: 14px clamp(16px, 4vw, 48px) 12px;
    pointer-events: none;
}

.site-header__inner {
    pointer-events: auto;
    position: relative;
    z-index: 1003;
    max-width: 1200px;
    margin: 0 auto;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 16px;
    padding: 12px 18px;
    border-radius: var(--radius-pill);
    border: 1px solid transparent;
    background: transparent;
    backdrop-filter: blur(0);
    transition:
        background 0.45s var(--ease-out),
        border-color 0.45s var(--ease-out),
        box-shadow 0.45s var(--ease-out),
        backdrop-filter 0.45s var(--ease-out);
}

.site-header--hero .site-header__inner {
    border-color: rgba(255, 255, 255, 0.12);
    background: rgba(10, 10, 14, 0.35);
    backdrop-filter: blur(14px);
    box-shadow: 0 12px 40px rgba(0, 0, 0, 0.35);
}

.site-header--solid .site-header__inner {
    border-color: var(--color-border);
    background: rgba(255, 255, 255, 0.92);
    backdrop-filter: blur(16px);
    box-shadow: var(--shadow-soft);
}

.site-header__logo {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    text-decoration: none;
    color: inherit;
}

.site-header__logo-img {
    height: 44px;
    width: auto;
    transition: transform 0.35s var(--ease-out), opacity 0.25s ease;
}

/* Dark hero bar: horizontal logo tuned for dark backgrounds */
.site-header__logo-img--dark {
    display: block;
    filter: brightness(1.05);
}

/* Solid white bar: orange variant stays readable */
.site-header__logo-img--light {
    display: none;
    filter: none;
}

.site-header--solid .site-header__logo-img--dark {
    display: none;
}

.site-header--solid .site-header__logo-img--light {
    display: block;
}

.site-header__logo:hover .site-header__logo-img {
    transform: translateY(-2px);
    opacity: 0.92;
}

.site-nav {
    display: flex;
    align-items: center;
    gap: clamp(10px, 2vw, 26px);
}

.site-nav a {
    position: relative;
    font-size: 0.95rem;
    font-weight: 500;
    color: rgba(255, 255, 255, 0.92);
    text-decoration: none;
    padding: 6px 2px;
    transition: color 0.25s ease;
}

.site-nav a::after {
    content: "";
    position: absolute;
    left: 0;
    bottom: 0;
    width: 100%;
    height: 2px;
    border-radius: 2px;
    background: var(--color-accent);
    transform: scaleX(0);
    transform-origin: left;
    transition: transform 0.35s var(--ease-out);
}

.site-nav a:hover {
    color: #fff;
}

.site-nav a:hover::after {
    transform: scaleX(1);
}

.site-header--solid .site-nav a {
    color: var(--color-text-muted);
}

.site-header--solid .site-nav a:hover {
    color: var(--color-text);
}

.site-nav a.is-active {
    color: #fff;
}

.site-header--solid .site-nav a.is-active {
    color: var(--color-text);
}

.site-nav a.is-active::after {
    transform: scaleX(1);
    box-shadow:
        0 0 14px rgba(255, 159, 28, 0.7),
        0 2px 10px rgba(255, 159, 28, 0.35);
}

.site-nav__toggle {
    display: none;
    pointer-events: auto;
    border: none;
    background: rgba(255, 255, 255, 0.08);
    color: #fff;
    width: 44px;
    height: 44px;
    border-radius: 12px;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: background 0.25s ease, transform 0.25s ease;
}

.site-nav__toggle-bar {
    width: 18px;
    height: 2px;
    background: currentColor;
    border-radius: 2px;
    box-shadow: 0 -6px 0 currentColor, 0 6px 0 currentColor;
}

.site-nav__toggle:hover {
    background: rgba(255, 255, 255, 0.14);
}

.site-nav__toggle.active {
    transform: rotate(90deg);
}

.site-header--solid .site-nav__toggle {
    background: rgba(15, 16, 20, 0.06);
    color: var(--color-text);
}

.mobile-nav {
    pointer-events: auto;
    position: fixed;
    inset: 0;
    z-index: 1002;
    background: radial-gradient(120% 120% at 50% 0%, rgba(255, 159, 28, 0.08), transparent 55%), rgba(5, 6, 10, 0.94);
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 22px;
    opacity: 0;
    visibility: hidden;
    transform: translateY(-8px);
    transition:
        opacity 0.35s var(--ease-out),
        visibility 0.35s,
        transform 0.35s var(--ease-out);
}

.mobile-nav.is-open {
    opacity: 1;
    visibility: visible;
    transform: translateY(0);
}

.mobile-nav a {
    color: rgba(255, 255, 255, 0.92);
    font-size: clamp(1.35rem, 4vw, 1.85rem);
    font-weight: 600;
    font-family: var(--font-display);
    text-decoration: none;
    letter-spacing: -0.02em;
    position: relative;
    padding-bottom: 10px;
    transition:
        color 0.25s ease,
        transform 0.35s var(--ease-out),
        text-shadow 0.35s ease;
}

.mobile-nav a::after {
    content: "";
    position: absolute;
    left: 50%;
    bottom: 0;
    width: min(160px, 70vw);
    height: 3px;
    border-radius: 2px;
    background: var(--color-accent);
    transform: translateX(-50%) scaleX(0);
    transform-origin: center;
    opacity: 0.95;
    transition: transform 0.4s var(--ease-out), box-shadow 0.4s ease;
    box-shadow: 0 0 18px rgba(255, 159, 28, 0.55);
}

.mobile-nav a:hover {
    color: var(--color-accent);
    transform: translateX(6px);
}

.mobile-nav a:hover::after {
    transform: translateX(calc(-50% + 6px)) scaleX(0.35);
}

.mobile-nav a.is-active {
    color: var(--color-accent);
    text-shadow: 0 0 28px rgba(255, 159, 28, 0.35);
}

.mobile-nav a.is-active::after {
    transform: translateX(-50%) scaleX(1);
    box-shadow:
        0 0 22px rgba(255, 159, 28, 0.75),
        0 3px 12px rgba(255, 159, 28, 0.35);
}

.mobile-nav a.is-active:hover {
    transform: translateX(6px);
}

.mobile-nav a.is-active:hover::after {
    transform: translateX(calc(-50% + 6px)) scaleX(1);
}

@media (max-width: 900px) {
    .site-nav {
        display: none;
    }

    .site-nav__toggle {
        display: inline-flex;
    }
}

body.mobile-menu-open {
    overflow: hidden;
}

/* ---------- Hero ---------- */

.hero-parallax {
    position: relative;
    min-height: 100vh;
    min-height: 100dvh;
    background: radial-gradient(120% 90% at 10% -10%, rgba(255, 159, 28, 0.14), transparent 55%), var(--color-bg);
    color: #fff;
    overflow: clip;
}

.hero-parallax__grid {
    position: absolute;
    inset: -40%;
    background-image:
        linear-gradient(rgba(255, 255, 255, 0.05) 1px, transparent 1px),
        linear-gradient(90deg, rgba(255, 255, 255, 0.05) 1px, transparent 1px);
    background-size: 64px 64px;
    mask-image: radial-gradient(closest-side at 50% 35%, #000 0%, transparent 75%);
    opacity: 0.45;
    animation: gridDrift 38s linear infinite;
}

.hero-parallax__glow {
    position: absolute;
    border-radius: 50%;
    filter: blur(90px);
    opacity: 0.55;
    pointer-events: none;
}

.hero-parallax__glow--one {
    width: min(520px, 70vw);
    height: min(520px, 70vw);
    background: rgba(255, 159, 28, 0.35);
    top: -120px;
    right: -80px;
    animation: floatA 14s ease-in-out infinite;
}

.hero-parallax__glow--two {
    width: min(420px, 55vw);
    height: min(420px, 55vw);
    background: rgba(9, 132, 227, 0.28);
    bottom: -140px;
    left: -100px;
    animation: floatB 18s ease-in-out infinite;
}

.hero-content {
    position: relative;
    z-index: 2;
    min-height: 100vh;
    min-height: 100dvh;
    display: flex;
    flex-direction: column;
    justify-content: center;
    padding: calc(var(--header-h) + 32px) clamp(20px, 5vw, 56px) 120px;
    max-width: 1200px;
    margin: 0 auto;
}

.hero-kicker {
    font-size: 0.95rem;
    letter-spacing: 0.08em;
    text-transform: uppercase;
    color: rgba(255, 255, 255, 0.62);
    margin: 0 0 14px;
    opacity: 0;
    transform: translateY(12px);
}

.hero-kicker.animate-in {
    animation: fadeUp 0.8s var(--ease-out) forwards;
    animation-delay: var(--delay, 0s);
}

.name-wrapper {
    margin-bottom: clamp(48px, 10vh, 120px);
}

.big-name {
    font-family: var(--font-display);
    font-size: clamp(2.75rem, 9.2vw, 6.25rem);
    font-weight: 700;
    line-height: 0.95;
    letter-spacing: -0.04em;
    margin: 0;
    white-space: pre;
}

.contact-details {
    margin-top: clamp(18px, 3vh, 30px);
    opacity: 0;
    transform: translateY(16px);
    transition: opacity 0.55s var(--ease-out), transform 0.55s var(--ease-out);
}

.contact-details.visible {
    opacity: 1;
    transform: translateY(0);
}

.contact-details p {
    font-size: 1.05rem;
    margin: 10px 0;
    display: flex;
    align-items: center;
    gap: 12px;
    color: rgba(255, 255, 255, 0.88);
}

.contact-details i {
    color: var(--color-accent);
    font-size: 1.05rem;
}

.hero-footer {
    position: absolute;
    bottom: clamp(28px, 6vh, 56px);
    left: clamp(20px, 5vw, 56px);
    right: clamp(20px, 5vw, 56px);
    display: flex;
    justify-content: space-between;
    align-items: flex-end;
    gap: 16px;
    flex-wrap: wrap;
    font-size: 0.82rem;
    text-transform: uppercase;
    letter-spacing: 0.16em;
    color: rgba(255, 255, 255, 0.55);
}

.hero-footer .location,
.hero-footer .role {
    opacity: 0;
}

.hero-footer .location.animate {
    animation: slideFromRight 1s var(--ease-out) forwards;
}

.hero-footer .role.animate {
    animation: slideFromLeft 1s var(--ease-out) forwards;
}

.hero-scroll-hint {
    position: absolute;
    bottom: clamp(22px, 5vh, 40px);
    left: 50%;
    transform: translateX(-50%);
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 10px;
    color: rgba(255, 255, 255, 0.55);
    text-decoration: none;
    font-size: 0.72rem;
    letter-spacing: 0.28em;
    text-transform: uppercase;
    opacity: 0;
    animation: fadeUp 1s var(--ease-out) 1.2s forwards;
}

.hero-scroll-hint__mouse {
    width: 22px;
    height: 34px;
    border-radius: 12px;
    border: 2px solid rgba(255, 255, 255, 0.28);
    position: relative;
}

.hero-scroll-hint__mouse::after {
    content: "";
    position: absolute;
    top: 7px;
    left: 50%;
    width: 4px;
    height: 8px;
    border-radius: 4px;
    background: rgba(255, 255, 255, 0.65);
    transform: translateX(-50%);
    animation: scrollWheel 2s ease-in-out infinite;
}

.hero-scroll-hint:hover {
    color: #fff;
}

@media (max-width: 768px) {
    .hero-footer {
        position: relative;
        bottom: auto;
        left: auto;
        right: auto;
        margin-top: 24px;
        flex-direction: column;
        align-items: flex-start;
    }

    .hero-scroll-hint {
        display: none;
    }

    .big-name {
        white-space: pre-line;
    }
}

/* ---------- Sections ---------- */

.section {
    padding: clamp(72px, 11vw, 120px) 0;
}

.section--surface {
    background: var(--color-surface);
}

.section--muted {
    background: linear-gradient(180deg, var(--color-muted) 0%, #eef0f6 100%);
}

.section--dark {
    background: radial-gradient(120% 90% at 10% 0%, rgba(255, 159, 28, 0.12), transparent 50%), var(--color-bg-soft);
    color: #fff;
}

.section-header {
    max-width: 720px;
    margin: 0 auto 12px;
}

.section-eyebrow {
    font-size: 0.8rem;
    text-transform: uppercase;
    letter-spacing: 0.2em;
    color: var(--color-accent);
    font-weight: 600;
    margin-bottom: 10px;
}

.section-eyebrow--on-dark {
    color: rgba(255, 255, 255, 0.75);
}

.section-title {
    font-family: var(--font-display);
    font-weight: 700;
    letter-spacing: -0.03em;
    font-size: clamp(1.85rem, 4vw, 2.65rem);
    margin-bottom: 12px;
}

.section-lead {
    color: var(--color-text-muted);
    font-size: 1.08rem;
    max-width: 56ch;
}

.connect-heading {
    font-family: var(--font-display);
    letter-spacing: -0.03em;
}

.surface-card {
    background: var(--color-surface);
    border: 1px solid var(--color-border);
    border-radius: var(--radius-lg);
    padding: clamp(22px, 3vw, 32px);
    box-shadow: var(--shadow-card);
    height: 100%;
}

.surface-card--lift {
    transition: transform 0.45s var(--ease-out), box-shadow 0.45s var(--ease-out);
}

.surface-card--lift:hover {
    transform: translateY(-6px);
    box-shadow: var(--shadow-soft);
}

.surface-card__title {
    font-family: var(--font-display);
    font-size: 1.25rem;
    font-weight: 600;
    margin-bottom: 14px;
}

.check-list {
    padding-left: 1.15rem;
    margin: 0;
    color: var(--color-text-muted);
}

.check-list li {
    margin-bottom: 8px;
}

.skill-categories {
    display: flex;
    flex-direction: column;
    gap: 18px;
}

.skill-group h5 {
    font-size: 0.95rem;
    font-weight: 600;
    margin-bottom: 10px;
    color: var(--color-text);
}

.skill-badge {
    background: linear-gradient(135deg, rgba(9, 132, 227, 0.12), rgba(255, 159, 28, 0.12));
    color: var(--color-text);
    border: 1px solid var(--color-border-strong);
    padding: 8px 14px;
    border-radius: var(--radius-pill);
    margin: 4px;
    display: inline-block;
    font-size: 0.88rem;
    font-weight: 500;
    transition: transform 0.25s ease, border-color 0.25s ease;
}

.skill-badge:hover {
    transform: translateY(-2px);
    border-color: rgba(255, 159, 28, 0.45);
}

/* ---------- Experience ---------- */

.experience-list {
    position: relative;
    max-width: 920px;
    margin: 0 auto;
    padding-left: 8px;
}

.experience-list::before {
    content: "";
    position: absolute;
    left: 22px;
    top: 10px;
    bottom: 10px;
    width: 2px;
    background: linear-gradient(180deg, rgba(255, 159, 28, 0.5), rgba(9, 132, 227, 0.35));
    border-radius: 2px;
    opacity: 0.9;
}

.exp-card {
    position: relative;
    margin-bottom: 18px;
}

.exp-card__toggle {
    width: 100%;
    display: grid;
    grid-template-columns: auto 1fr auto;
    grid-template-rows: auto auto;
    column-gap: 16px;
    row-gap: 6px;
    align-items: center;
    text-align: left;
    border: 1px solid var(--color-border);
    border-radius: var(--radius-lg);
    padding: 18px 20px;
    background: rgba(255, 255, 255, 0.92);
    cursor: pointer;
    box-shadow: var(--shadow-card);
    transition:
        transform 0.35s var(--ease-out),
        box-shadow 0.35s var(--ease-out),
        border-color 0.35s ease,
        background 0.35s ease;
}

.exp-card__toggle:hover {
    transform: translateY(-3px);
    box-shadow: var(--shadow-soft);
    border-color: rgba(255, 159, 28, 0.35);
}

.exp-card.is-open .exp-card__toggle {
    border-color: rgba(255, 159, 28, 0.55);
    background: #fff;
}

.exp-card__timeline-dot {
    grid-row: span 2;
    width: 14px;
    height: 14px;
    border-radius: 50%;
    margin-left: 4px;
    background: radial-gradient(circle at 30% 30%, #fff, rgba(255, 159, 28, 0.95));
    box-shadow: 0 0 0 6px rgba(255, 159, 28, 0.18);
}

.exp-card__heading {
    display: flex;
    flex-direction: column;
    gap: 4px;
}

.exp-card__company {
    font-family: var(--font-display);
    font-weight: 600;
    font-size: 1.15rem;
    letter-spacing: -0.02em;
}

.exp-card__range {
    font-size: 0.9rem;
    color: var(--color-text-muted);
}

.exp-card__roles-preview {
    grid-column: 2 / -2;
    font-size: 0.92rem;
    color: var(--color-text-muted);
}

.exp-card__chevron {
    grid-column: 3;
    grid-row: span 2;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 38px;
    height: 38px;
    border-radius: 12px;
    background: rgba(15, 16, 20, 0.05);
    color: var(--color-text);
    transition: transform 0.45s var(--ease-out), background 0.25s ease;
}

.exp-card.is-open .exp-card__chevron {
    transform: rotate(180deg);
    background: var(--color-accent-soft);
    color: var(--color-accent);
}

.exp-card__panel {
    overflow: hidden;
    margin-top: 10px;
    padding: 0 8px 6px 52px;
}

.exp-card__panel[hidden] {
    display: none;
}

.role-track {
    list-style: none;
    margin: 0;
    padding: 0;
}

.role-step {
    position: relative;
    padding-left: 22px;
    margin-bottom: 22px;
}

.role-step:last-child {
    margin-bottom: 8px;
}

.role-step::before {
    content: "";
    position: absolute;
    left: 6px;
    top: 8px;
    bottom: -26px;
    width: 2px;
    background: linear-gradient(180deg, rgba(15, 16, 20, 0.2), transparent);
}

.role-step:last-child::before {
    display: none;
}

.role-step::after {
    content: "";
    position: absolute;
    left: 0;
    top: 6px;
    width: 14px;
    height: 14px;
    border-radius: 50%;
    border: 2px solid rgba(15, 16, 20, 0.35);
    background: #fff;
}

.role-step__meta {
    display: flex;
    flex-wrap: wrap;
    gap: 8px 14px;
    align-items: baseline;
    margin-bottom: 8px;
}

.role-step__title {
    font-weight: 600;
    font-size: 1.02rem;
}

.role-step__dates {
    font-size: 0.88rem;
    color: var(--color-text-muted);
}

.role-step__desc {
    margin: 0;
    color: var(--color-text-muted);
    font-size: 0.98rem;
}

.role-step__desc > p:last-child {
    margin-bottom: 0;
}

.role-step-list {
    margin: 0.5rem 0 0;
    padding-left: 1.15rem;
}

.role-step-list li {
    margin-bottom: 0.35rem;
}

.role-step-list li:last-child {
    margin-bottom: 0;
}

.role-track-hint {
    font-size: 0.88rem;
    color: var(--color-text-muted);
    background: rgba(255, 159, 28, 0.08);
    border: 1px dashed rgba(255, 159, 28, 0.35);
    border-radius: var(--radius-md);
    padding: 12px 14px;
    margin: 6px 0 14px;
}

.role-track-hint i {
    margin-right: 8px;
    color: var(--color-accent);
}

.tech-stack {
    display: flex;
    flex-wrap: wrap;
    gap: 10px 14px;
    align-items: baseline;
    padding-top: 14px;
    margin-top: 8px;
    border-top: 1px solid var(--color-border);
}

.tech-stack__label {
    font-size: 0.72rem;
    font-weight: 700;
    letter-spacing: 0.14em;
    text-transform: uppercase;
    color: var(--color-text-muted);
}

.tech-stack__tags {
    font-size: 0.92rem;
    color: var(--color-text-muted);
}

@media (max-width: 640px) {
    .experience-list {
        padding-left: 0;
    }

    .experience-list::before {
        left: 14px;
    }

    .exp-card__toggle {
        grid-template-columns: auto 1fr auto;
        padding: 16px;
    }

    .exp-card__roles-preview {
        grid-column: 1 / -1;
        padding-left: 34px;
    }

    .exp-card__panel {
        padding-left: 18px;
    }
}

/* ---------- Projects ---------- */

.project-card {
    border-radius: var(--radius-lg) !important;
    overflow: hidden;
    border: 1px solid var(--color-border) !important;
    box-shadow: var(--shadow-card);
    transition: transform 0.45s var(--ease-out), box-shadow 0.45s var(--ease-out);
}

.project-card:hover {
    transform: translateY(-8px);
    box-shadow: var(--shadow-soft);
}

.project-card__link {
    display: block;
    color: inherit;
    text-decoration: none;
    outline: none;
}

.project-card__link:focus-visible {
    outline: 2px solid var(--color-accent);
    outline-offset: 3px;
}

.project-card__media {
    background: var(--color-muted);
}

.project-card__img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: top center;
    transition: transform 0.6s var(--ease-out);
}

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

/* ---------- Contact ---------- */

.contact-info .contact-item {
    padding: 18px 20px;
    border-radius: var(--radius-lg);
    border: 1px solid rgba(255, 255, 255, 0.12);
    background: rgba(255, 255, 255, 0.04);
    backdrop-filter: blur(10px);
    transition: transform 0.35s var(--ease-out), border-color 0.35s ease;
}

.contact-info .contact-item:hover {
    transform: translateY(-4px);
    border-color: rgba(255, 159, 28, 0.45);
}

.contact-item {
    display: flex;
    align-items: flex-start;
    gap: 14px;
    margin-bottom: 16px;
}

.contact-item i {
    font-size: 1.35rem;
    color: var(--color-accent);
    margin-top: 4px;
}

.contact-item .label {
    color: rgba(255, 255, 255, 0.55);
    margin-bottom: 4px;
    font-size: 0.82rem;
    text-transform: uppercase;
    letter-spacing: 0.12em;
}

.contact-item .value {
    color: #fff;
    font-weight: 600;
    font-size: 1.05rem;
    margin: 0;
}

.contact-form {
    background: #fff;
    padding: clamp(22px, 3vw, 36px);
    border-radius: var(--radius-lg);
    border: 1px solid var(--color-border);
    box-shadow: var(--shadow-soft);
}

.contact-form--elevated {
    box-shadow: 0 22px 70px rgba(0, 0, 0, 0.35);
}

.contact-form label {
    color: var(--color-text-muted);
    margin-bottom: 6px;
    font-size: 0.88rem;
    font-weight: 500;
}

.contact-form .form-control {
    border: 1px solid var(--color-border-strong);
    border-radius: 12px;
    padding: 0.72rem 1rem;
    font-size: 1rem;
    transition: border-color 0.25s ease, box-shadow 0.25s ease;
}

.contact-form .form-control:focus {
    border-color: rgba(255, 159, 28, 0.65);
    box-shadow: 0 0 0 4px rgba(255, 159, 28, 0.15);
}

.contact-form textarea.form-control {
    min-height: 140px;
}

.contact-form button {
    width: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
}

.btn-submit {
    background: #111218;
    color: #fff;
    padding: 0.95rem 1.75rem;
    border-radius: 12px;
    font-weight: 600;
    border: none;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    transition: background 0.3s ease, transform 0.25s ease;
}

.btn-submit i {
    transition: transform 0.3s var(--ease-out);
}

.btn-submit:hover {
    background: var(--color-accent);
    color: #111218;
}

.btn-submit:hover i {
    transform: translateX(5px);
}

.contact-form button:disabled {
    opacity: 0.65;
    cursor: not-allowed;
}

.contact-form .spinner-border {
    width: 1.15rem;
    height: 1.15rem;
}

.contact-form .alert {
    margin-bottom: 0;
}

/* ---------- Footer ---------- */

.site-footer {
    background: var(--color-bg);
    color: rgba(255, 255, 255, 0.72);
    padding: 28px 0 36px;
    border-top: 1px solid var(--color-line);
}

.site-footer__inner {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    justify-content: space-between;
    gap: 16px;
}

.social-icons a {
    color: rgba(255, 255, 255, 0.72);
    font-size: 1.35rem;
    margin-right: 14px;
    transition: color 0.25s ease, transform 0.25s ease;
    display: inline-flex;
}

.social-icons a:hover {
    color: var(--color-accent);
    transform: translateY(-3px);
}

/* ---------- Back to top ---------- */

.back-to-top {
    position: fixed;
    bottom: 28px;
    right: 28px;
    width: 48px;
    height: 48px;
    background: linear-gradient(135deg, #0984e3, #ff9f1c);
    color: #fff;
    border: none;
    border-radius: 50%;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 18px;
    box-shadow: 0 14px 35px rgba(0, 0, 0, 0.28);
    transition: opacity 0.35s ease, visibility 0.35s ease, transform 0.35s var(--ease-out);
    opacity: 0;
    visibility: hidden;
    z-index: 950;
}

.back-to-top.visible {
    opacity: 1;
    visibility: visible;
}

.back-to-top:hover {
    transform: translateY(-4px) scale(1.03);
}

@media (max-width: 768px) {
    .back-to-top {
        bottom: 18px;
        right: 18px;
        width: 42px;
        height: 42px;
    }
}

/* ---------- Legacy / Bootstrap tweaks ---------- */

.bg-light {
    background-color: var(--color-muted) !important;
}

.text-secondary-emphasis {
    color: var(--color-text-muted) !important;
}

/* ---------- Motion ---------- */

@keyframes fadeUp {
    from {
        opacity: 0;
        transform: translateY(14px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}

@keyframes slideFromRight {
    0% {
        transform: translateX(48px);
        opacity: 0;
    }

    100% {
        transform: translateX(0);
        opacity: 1;
    }
}

@keyframes slideFromLeft {
    0% {
        transform: translateX(-48px);
        opacity: 0;
    }

    100% {
        transform: translateX(0);
        opacity: 1;
    }
}

@keyframes gridDrift {
    from {
        transform: rotate(0deg) translate3d(0, 0, 0);
    }

    to {
        transform: rotate(360deg) translate3d(0, 0, 0);
    }
}

@keyframes floatA {
    0%,
    100% {
        transform: translate3d(0, 0, 0);
    }

    50% {
        transform: translate3d(-24px, 18px, 0);
    }
}

@keyframes floatB {
    0%,
    100% {
        transform: translate3d(0, 0, 0);
    }

    50% {
        transform: translate3d(26px, -16px, 0);
    }
}

@keyframes scrollWheel {
    0% {
        opacity: 1;
        transform: translate(-50%, 0);
    }

    70% {
        opacity: 0;
        transform: translate(-50%, 10px);
    }

    100% {
        opacity: 0;
        transform: translate(-50%, 10px);
    }
}

@media (prefers-reduced-motion: reduce) {
    *,
    *::before,
    *::after {
        animation-duration: 0.001ms !important;
        animation-iteration-count: 1 !important;
        transition-duration: 0.001ms !important;
        scroll-behavior: auto !important;
    }

    .hero-parallax__grid {
        animation: none;
    }

    .hero-parallax__glow--one,
    .hero-parallax__glow--two {
        animation: none;
    }

    .hero-scroll-hint__mouse::after {
        animation: none;
    }
}
