/* ===== Reset & Base ===== */
*,
*::before,
*::after {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
}

:root {
    --bg: #080b10;
    --surface: #0e121c;
    --surface-alt: #131824;
    --text: #e4e7ee;
    --text-heading: #eef0f5;
    --muted: #858a9a;
    --subtle: #565b6b;
    --accent: #7aaae2;
    --accent-warm: #d9b15c;
    --accent-soft: #558cc4;
    --border: #1a1f2b;
    --border-hover: #252b3a;
    --tag-bg: #141a26;
    --tag-tint-1: #131c2a;
    --tag-tint-2: #1a1826;
    --tag-tint-3: #131c24;
    --glow: rgba(122, 170, 226, 0.07);
    --glow-warm: rgba(217, 177, 92, 0.05);
}

html {
    font-family:
        "Inter",
        -apple-system,
        BlinkMacSystemFont,
        "Segoe UI",
        Roboto,
        Oxygen,
        Ubuntu,
        Cantarell,
        "Helvetica Neue",
        sans-serif;
    font-size: 17px;
    line-height: 1.65;
    color: var(--text);
    background: var(--bg);
    scroll-behavior: smooth;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
}

body {
    min-height: 100vh;
    display: flex;
    flex-direction: column;
    position: relative;
    overflow-x: hidden;
}

/* ===== Parallax ambient orbs (moved to HTML elements for JS parallax) ===== */
.orb {
    position: fixed;
    border-radius: 50%;
    pointer-events: none;
    z-index: 0;
    will-change: transform;
    filter: blur(90px);
}

.orb--1 {
    top: -10%;
    left: 40%;
    width: 900px;
    height: 700px;
    background: radial-gradient(
        ellipse at center,
        rgba(122, 170, 226, 0.065) 0%,
        transparent 65%
    );
}

.orb--2 {
    top: 35%;
    right: -15%;
    width: 620px;
    height: 620px;
    background: radial-gradient(
        ellipse at center,
        rgba(217, 177, 92, 0.05) 0%,
        transparent 65%
    );
}

.orb--3 {
    bottom: 0%;
    left: -12%;
    width: 520px;
    height: 520px;
    background: radial-gradient(
        ellipse at center,
        rgba(85, 140, 196, 0.045) 0%,
        transparent 65%
    );
}

body::before {
    content: none;
}

body::after {
    content: none;
}

/* ===== Fade-in on load ===== */
@keyframes fadeUp {
    from {
        opacity: 0;
        transform: translateY(28px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.nav {
    animation: fadeUp 0.6s ease-out both;
}

.hero__image {
    animation: fadeUp 0.6s 0.1s ease-out both;
}

.hero__text {
    animation: fadeUp 0.6s 0.2s ease-out both;
}

.section {
    animation: fadeUp 0.7s ease-out both;
    animation-timeline: view();
    animation-range: entry 0% entry 85%;
}

@supports not (animation-timeline: view()) {
    .section {
        animation: none;
        opacity: 1;
        transform: none;
    }
}

/* ===== Navigation ===== */
.nav {
    width: 100%;
    padding: 0 2rem;
    position: sticky;
    top: 0;
    z-index: 100;
    transition:
        background 0.4s ease,
        backdrop-filter 0.4s ease,
        box-shadow 0.4s ease;
}

.nav__inner {
    display: flex;
    justify-content: space-between;
    align-items: center;
    max-width: 1100px;
    width: 100%;
    margin: 0 auto;
    padding: 1.5rem 0;
    transition: padding 0.35s ease;
}

.nav--scrolled {
    background: rgba(8, 11, 16, 0.75);
    backdrop-filter: blur(20px) saturate(1.5);
    -webkit-backdrop-filter: blur(20px) saturate(1.5);
    box-shadow:
        0 1px 0 rgba(255, 255, 255, 0.05),
        0 6px 30px rgba(0, 0, 0, 0.4);
}

.nav--scrolled .nav__inner {
    padding-top: 0.875rem;
    padding-bottom: 0.875rem;
}

.nav__name {
    font-weight: 600;
    font-size: 0.95rem;
    color: var(--text-heading);
    letter-spacing: -0.01em;
}

.nav__links {
    display: flex;
    gap: 2.25rem;
}

.nav__links a {
    color: var(--subtle);
    text-decoration: none;
    font-size: 0.875rem;
    font-weight: 450;
    transition: color 0.25s;
    position: relative;
    padding-bottom: 2px;
}

.nav__links a::after {
    content: "";
    position: absolute;
    bottom: 0;
    left: 0;
    width: 0;
    height: 1.5px;
    background: var(--accent);
    border-radius: 1px;
    transition: width 0.3s cubic-bezier(0.25, 0.8, 0.25, 1);
}

.nav__links a:hover {
    color: var(--text-heading);
}

.nav__links a:hover::after {
    width: 100%;
}

/* ===== Language toggle ===== */
.nav__lang-toggle {
    display: inline-flex;
    align-items: center;
    gap: 0.15rem;
    background: transparent;
    border: none;
    padding: 0;
    margin-left: 2rem;
    cursor: pointer;
    font-family: inherit;
    font-size: 0.75rem;
    font-weight: 400;
    color: var(--subtle);
    letter-spacing: 0.02em;
    transition: all 0.25s ease;
    user-select: none;
    white-space: nowrap;
}

.nav__lang-toggle:hover {
    color: var(--muted);
}

.nav__lang-option {
    padding: 0 0.15rem;
    transition: color 0.25s ease;
    line-height: 1;
}

.nav__lang-option--active {
    color: var(--accent);
    font-weight: 500;
}

.nav__lang-divider {
    opacity: 0.25;
    user-select: none;
}

@media (max-width: 800px) {
    .nav__lang-toggle {
        margin-left: 1rem;
    }
}

/* ===== Hero ===== */
.hero {
    max-width: 1100px;
    margin: 0 auto;
    padding: 5rem 2rem 6.5rem;
    display: flex;
    align-items: center;
    gap: 5rem;
    position: relative;
    z-index: 1;
}

.hero__text {
    flex: 1;
}

.hero__text h1 {
    font-size: 3.4rem;
    font-weight: 700;
    letter-spacing: -0.035em;
    line-height: 1.1;
    margin-bottom: 0.75rem;
    background: linear-gradient(
        135deg,
        #f4f6fa 0%,
        var(--accent) 55%,
        #7aaae2 100%
    );
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    filter: drop-shadow(0 0 22px rgba(122, 170, 226, 0.18));
}

.hero__tagline {
    font-size: 1.2rem;
    font-weight: 500;
    color: var(--accent-warm);
    margin-bottom: 1.5rem;
    letter-spacing: -0.01em;
}

.hero__intro {
    font-size: 1.05rem;
    color: var(--muted);
    max-width: 34rem;
    line-height: 1.75;
}

.hero__image {
    flex-shrink: 0;
    position: relative;
    width: 260px;
    height: 260px;
}

.hero__image img {
    width: 100%;
    height: 100%;
    border-radius: 50%;
    object-fit: cover;
    display: block;
    border: 2px solid rgba(255, 255, 255, 0.07);
    box-shadow:
        0 4px 30px rgba(0, 0, 0, 0.55),
        0 0 0 14px rgba(122, 170, 226, 0.04);
    transition:
        transform 0.45s cubic-bezier(0.25, 0.8, 0.25, 1.15),
        box-shadow 0.45s ease,
        border-color 0.45s ease;
}

.hero__image:hover img {
    transform: scale(1.04);
    border-color: rgba(255, 255, 255, 0.14);
    box-shadow:
        0 8px 44px rgba(0, 0, 0, 0.65),
        0 0 0 1px rgba(122, 170, 226, 0.18),
        0 0 0 14px rgba(122, 170, 226, 0.1);
}

/* ===== Sections ===== */
.section {
    max-width: 1100px;
    margin: 0 auto;
    padding: 5rem 2rem;
    position: relative;
    z-index: 1;
}

.section:nth-child(even) {
    background: var(--surface);
    max-width: 100%;
    padding-left: calc((100% - 1100px) / 2 + 2rem);
    padding-right: calc((100% - 1100px) / 2 + 2rem);
    border-top: 1px solid var(--border);
    border-bottom: 1px solid var(--border);
}

.section__heading {
    font-size: 0.75rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.1em;
    color: var(--subtle);
    margin-bottom: 1.5rem;
    display: flex;
    align-items: center;
    gap: 0.4rem;
}

.section__heading-icon {
    color: var(--accent);
    opacity: 0.6;
}

/* ===== Features ===== */
.features {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 3.5rem;
}

.feature {
    padding: 0.75rem 0;
}

.feature h3 {
    font-size: 1.1rem;
    font-weight: 600;
    color: var(--text-heading);
    margin-bottom: 0.75rem;
    letter-spacing: -0.01em;
    transition: color 0.35s;
}

.feature:hover h3 {
    color: var(--accent);
}

.feature p {
    font-size: 0.925rem;
    color: var(--muted);
    line-height: 1.7;
}

/* ===== Approach ===== */
.approach {
    max-width: 44rem;
}

.approach__quote {
    font-size: 1.25rem;
    font-weight: 440;
    color: var(--text);
    line-height: 1.7;
    border-left: 3px solid var(--accent-warm);
    margin-bottom: 1.75rem;
    letter-spacing: -0.005em;
    background: linear-gradient(90deg, var(--glow-warm) 0%, transparent 100%);
    padding: 1.75rem 1.75rem 1.75rem 2.25rem;
    border-radius: 0 8px 8px 0;
    transition:
        border-color 0.35s,
        background 0.35s,
        transform 0.35s ease;
}

.approach__quote:hover {
    border-left-color: var(--accent);
    background: linear-gradient(90deg, var(--glow) 0%, transparent 100%);
    transform: translateX(5px);
}

.approach__sub {
    font-size: 0.95rem;
    color: var(--muted);
    line-height: 1.7;
}

/* ===== Topics ===== */
.topics {
    display: flex;
    flex-wrap: wrap;
    gap: 0.625rem;
}

.topic {
    display: inline-block;
    padding: 0.55rem 1.15rem;
    font-size: 0.85rem;
    font-weight: 450;
    border-radius: 999px;
    transition: all 0.3s cubic-bezier(0.25, 0.8, 0.25, 1.15);
    cursor: default;
    background: var(--tag-bg);
    color: var(--muted);
    border: 1px solid transparent;
}

.topic:nth-child(3n + 1) {
    background: var(--tag-tint-1);
}
.topic:nth-child(3n + 2) {
    background: var(--tag-tint-2);
}
.topic:nth-child(3n + 3) {
    background: var(--tag-tint-3);
}

.topic:hover {
    background: var(--accent-soft) !important;
    color: #ffffff;
    border-color: var(--accent);
    transform: translateY(-2px) scale(1.04);
    box-shadow: 0 6px 22px rgba(122, 170, 226, 0.25);
}

/* ===== Footer ===== */
.footer {
    background: var(--surface-alt);
    border-top: 1px solid var(--border);
    margin-top: auto;
    padding: 4.5rem 2rem;
    text-align: center;
    position: relative;
    z-index: 1;
}

.footer p {
    max-width: 40rem;
    margin: 0 auto 1.5rem;
    font-size: 0.95rem;
    color: var(--muted);
    line-height: 1.7;
    transition: color 0.35s;
}

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

.footer__copy {
    font-size: 0.8rem !important;
    color: var(--subtle) !important;
    margin-bottom: 0 !important;
}

.footer__email {
    margin-bottom: 0.5rem !important;
}

.footer__email a {
    color: var(--accent);
    text-decoration: none;
    font-size: 0.9rem;
    transition: opacity 0.25s;
}

.footer__email a:hover {
    opacity: 0.75;
}

/* ===== Responsive ===== */
@media (max-width: 800px) {
    .hero {
        flex-direction: column-reverse;
        gap: 2.5rem;
        padding: 3rem 1.5rem 4.5rem;
    }

    .hero__image {
        width: 180px;
        height: 180px;
    }

    .hero__text h1 {
        font-size: 2.5rem;
    }

    .hero__tagline {
        font-size: 1.1rem;
    }

    /* bg parallax handled by JS on mobile too */

    .features {
        grid-template-columns: 1fr;
        gap: 2.5rem;
    }

    .section {
        padding: 3.5rem 1.5rem;
    }

    .section:nth-child(even) {
        padding-left: 1.5rem;
        padding-right: 1.5rem;
    }

    .nav {
        padding: 1.25rem 1.5rem;
    }

    .nav__links {
        gap: 1.5rem;
    }

    body::before,
    body::after {
        display: none;
    }
}

/* ===== Nav name as link ===== */
.nav__name {
    text-decoration: none;
}
.nav__name:hover {
    color: var(--accent);
}

/* ===== Active nav link ===== */
.nav__link--active {
    color: var(--text-heading) !important;
}
.nav__link--active::after {
    width: 100% !important;
}

/* ===== Hero CTA buttons ===== */
.hero__cta {
    display: flex;
    gap: 1rem;
    margin-top: 2.25rem;
    flex-wrap: wrap;
}

.btn {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.7rem 1.6rem;
    border-radius: 6px;
    font-size: 0.9rem;
    font-weight: 500;
    text-decoration: none;
    letter-spacing: -0.01em;
    transition: all 0.3s cubic-bezier(0.25, 0.8, 0.25, 1.15);
    cursor: pointer;
    border: none;
}

.btn--primary {
    background: var(--accent);
    color: #080b10;
    box-shadow: 0 4px 20px rgba(122, 170, 226, 0.3);
}

.btn--primary:hover {
    background: #8fc0f0;
    box-shadow: 0 6px 28px rgba(122, 170, 226, 0.45);
    transform: translateY(-2px);
}

.btn--ghost {
    background: transparent;
    color: var(--muted);
    border: 1px solid var(--border-hover);
}

.btn--ghost:hover {
    color: var(--text-heading);
    border-color: var(--subtle);
    background: rgba(255, 255, 255, 0.03);
    transform: translateY(-2px);
}

/* ===== Hero tagline stagger ===== */
.hero__tagline-word {
    display: inline-block;
    margin-right: 0.35em;
    opacity: 0;
    transform: translateY(12px);
    animation: fadeUp 0.5s ease-out both;
}

.hero__tagline-word:nth-child(1) {
    animation-delay: 0.35s;
}
.hero__tagline-word:nth-child(2) {
    animation-delay: 0.5s;
}
.hero__tagline-word:nth-child(3) {
    animation-delay: 0.65s;
}

/* ===== Feature icon ===== */
.feature__icon {
    color: var(--accent-warm);
    opacity: 0.75;
    margin-right: 0.3rem;
    transition:
        color 0.35s,
        opacity 0.35s;
}

.feature:hover .feature__icon {
    opacity: 1;
    color: var(--accent);
}

/* ===== Scroll-reveal ===== */
.reveal {
    opacity: 0;
    transform: translateY(22px);
    transition:
        opacity 0.6s ease var(--reveal-delay, 0ms),
        transform 0.6s ease var(--reveal-delay, 0ms);
}

.reveal.is-visible {
    opacity: 1;
    transform: translateY(0);
}

/* ===== Responsive additions ===== */
@media (max-width: 800px) {
    .hero__cta {
        margin-top: 1.75rem;
    }
    .btn {
        padding: 0.65rem 1.3rem;
        font-size: 0.875rem;
    }
    .orb {
        filter: blur(60px);
    }
    .orb--1 {
        width: 500px;
        height: 400px;
    }
    .orb--2 {
        width: 350px;
        height: 350px;
    }
    .orb--3 {
        width: 300px;
        height: 300px;
    }
}
