@font-face {
    font-family: 'Syne';
    src: url('/assets/fonts/Syne-Bold.ttf') format('truetype');
    font-weight: 700;
    font-style: normal;
    font-display: swap;
}

@font-face {
    font-family: 'Syne';
    src: url('/assets/fonts/Syne-ExtraBold.ttf') format('truetype');
    font-weight: 800;
    font-style: normal;
    font-display: swap;
}

@font-face {
    font-family: 'Space Grotesk';
    src: url('/assets/fonts/SpaceGrotesk-Regular.ttf') format('truetype');
    font-weight: 400;
    font-style: normal;
    font-display: swap;
}

@font-face {
    font-family: 'Space Grotesk';
    src: url('/assets/fonts/SpaceGrotesk-Medium.ttf') format('truetype');
    font-weight: 500;
    font-style: normal;
    font-display: swap;
}

@font-face {
    font-family: 'Space Grotesk';
    src: url('/assets/fonts/SpaceGrotesk-Bold.ttf') format('truetype');
    font-weight: 700;
    font-style: normal;
    font-display: swap;
}

:root {
    --bg-base: #f0f6f4;
    --bg-membrane: rgba(255, 255, 255, 0.45);
    --primary-ethereal: #3ecfb2;
    --primary-rgb: 62, 207, 178;
    --hover-active: #40d8bc;
    --hover-text: #0f2b25;
    --signal-bright: #78ffe7;
    --signal-rgb: 120, 255, 231;
    --secondary-ethereal: #ff9a9e;
    --accent-organic: #a8ede2;
    --text-deep: #0f2b25;
    --text-soft: #4a7a70;

    /* Light Neumorphic Molding */
    --neu-light-outer: 10px 10px 30px rgba(0, 0, 0, 0.05),
        -10px -10px 30px rgba(255, 255, 255, 0.9);
    --neu-light-inner: inset 4px 4px 10px rgba(0, 0, 0, 0.05),
        inset -4px -4px 10px rgba(255, 255, 255, 0.8);
    --organic-glow: 0 0 20px rgba(var(--primary-rgb), 0.3);

    /* Typography */
    --font-brand: 'Syne', sans-serif;
    --font-heading: 'Space Grotesk', sans-serif;
    --font-headers: var(--font-heading);
    --font-body: 'Space Grotesk', sans-serif;
    --heading-descender-pad: 0.08em;

    /* Button System */
    --btn-radius: 60px 20px 60px 20px;
    --btn-secondary-bg: linear-gradient(145deg, rgba(244, 248, 252, 0.9), rgba(228, 235, 242, 0.82));
    --btn-secondary-text: var(--text-deep);
    --btn-secondary-border: rgba(255, 255, 255, 0.65);
    --btn-secondary-shadow:
        7px 7px 14px rgba(160, 170, 180, 0.24),
        -7px -7px 14px rgba(255, 255, 255, 0.78);
    --btn-secondary-shadow-pressed:
        inset 6px 6px 12px rgba(160, 170, 180, 0.24),
        inset -6px -6px 12px rgba(255, 255, 255, 0.76);
    --btn-primary-bg: linear-gradient(145deg, rgba(238, 251, 247, 0.96), rgba(221, 245, 238, 0.94));
    --btn-primary-text: #0a211b;
    --btn-primary-border: rgba(109, 214, 191, 0.42);
    --btn-primary-shadow:
        7px 7px 14px rgba(160, 170, 180, 0.22),
        -7px -7px 14px rgba(255, 255, 255, 0.74),
        inset 0 0 0 1px rgba(151, 255, 232, 0.18),
        inset 0 0 14px rgba(62, 207, 178, 0.14);
    --btn-primary-shadow-hover:
        inset 7px 7px 14px rgba(160, 170, 180, 0.24),
        inset -7px -7px 14px rgba(255, 255, 255, 0.8),
        inset 0 0 24px rgba(62, 207, 178, 0.28),
        0 0 12px rgba(62, 207, 178, 0.18);
    --btn-primary-shadow-active:
        inset 8px 8px 16px rgba(160, 170, 180, 0.26),
        inset -8px -8px 16px rgba(255, 255, 255, 0.82),
        inset 0 0 28px rgba(62, 207, 178, 0.34),
        0 0 14px rgba(62, 207, 178, 0.2);
}

/* Global Focus States for Accessibility */
:focus-visible {
    outline: 2px solid var(--accent-organic);
    outline-offset: 4px;
    border-radius: 4px;
}

.btn:focus-visible,
.nav-links a:focus-visible,
.bio-orb:focus-visible {
    outline-offset: 8px;
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html {
    overflow-x: hidden;
}

body {
    font-family: var(--font-body);
    color: var(--text-deep);
    overflow-x: hidden;
    min-height: 100vh;
}

#hero,
#contact,
footer {
    position: relative;
    z-index: 1;
}

h1,
h2,
h3,
h4,
.navbar a,
.btn {
    font-family: var(--font-headers);
    font-weight: 800;
}

h1,
h2,
h3,
h4 {
    line-height: 1.22;
    padding-bottom: var(--heading-descender-pad);
}

.btn,
nav > a,
.nav-item > a,
.nav-dropdown-item,
.brand-mark {
    line-height: 1.2;
    padding-bottom: var(--heading-descender-pad);
}

/* Seamless Nav */
.brand-mark {
    position: fixed;
    top: 30px;
    left: 34px;
    transform: none;
    z-index: 1001;
    text-decoration: none;
    font-family: var(--font-brand);
    font-weight: 800;
    font-size: 1.15rem;
    letter-spacing: 1.2px;
    line-height: 1.16;
    color: var(--text-deep);
    text-transform: uppercase;
    transition: opacity 0.25s ease, transform 0.25s ease;
}

#hero-intro-content .hero-text-wrapper h1 {
    font-family: var(--font-brand);
}

.brand-mark:hover {
    opacity: 0.86;
    transform: translateY(-1px);
}

.mobile-nav-toggle {
    display: none;
}

.lang-toggle {
    position: fixed;
    top: 30px;
    right: 34px;
    z-index: 1206;
    display: inline-flex;
    align-items: center;
    gap: 4px;
    padding: 4px;
    border-radius: 999px;
    border: 1px solid rgba(255, 255, 255, 0.82);
    background: rgba(240, 246, 244, 0.96);
    box-shadow: 0 8px 20px rgba(15, 43, 37, 0.08);
}

.lang-btn {
    appearance: none;
    border: none;
    min-width: 46px;
    height: 34px;
    border-radius: 999px;
    background: transparent;
    color: var(--text-soft);
    font-family: var(--font-body);
    font-size: 0.74rem;
    font-weight: 700;
    letter-spacing: 0.8px;
    cursor: pointer;
    transition: background 0.2s ease, color 0.2s ease, box-shadow 0.2s ease;
}

.lang-btn:hover {
    color: var(--text-deep);
}

.lang-btn.is-active {
    color: #ecfff9;
    background: linear-gradient(135deg, #168269 0%, #2cb89d 55%, #7af7df 100%);
    box-shadow: 0 0 14px rgba(var(--primary-rgb), 0.35);
}

nav {
    position: fixed;
    top: 30px;
    left: 50%;
    transform: translateX(-50%);
    background: rgba(255, 255, 255, 0.45);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    border: 1px solid rgba(255, 255, 255, 0.5);
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.05);
    border-radius: 60px 20px 60px 20px;
    z-index: 1000;
    display: flex;
    align-items: center;
    padding: 15px 44px;
    isolation: isolate;
    backface-visibility: hidden;
    -webkit-backface-visibility: hidden;
    transition: transform 0.6s cubic-bezier(0.23, 1, 0.32, 1),
                box-shadow 0.4s cubic-bezier(0.23, 1, 0.32, 1);
}

nav.nav-scroll-hidden:not(.mobile-open):not(:focus-within):not(:hover) {
    /* Keep a small visible hint so the collapsed nav still feels discoverable. */
    transform: translateX(-50%) translateY(-130%);
}

nav>a,
.nav-item>a {
    margin: 0 14px;
    text-decoration: none;
    color: var(--text-soft);
    font-weight: 600;
    font-size: 0.85rem;
    letter-spacing: 2px;
    white-space: nowrap;
    transition: all 0.4s;
    text-transform: uppercase;
}

nav>a:hover,
.nav-item>a:hover {
    color: var(--text-deep);
    transform: scale(1.1);
}

.nav-item {
    position: relative;
    display: flex;
    align-items: center;
    padding-bottom: 10px;
    margin-bottom: -10px;
}

.has-dropdown::after {
    content: '';
    position: absolute;
    top: 100%;
    left: 50%;
    transform: translateX(-50%);
    width: 240px;
    height: 14px;
}

.nav-dropdown {
    position: absolute;
    top: 100%;
    left: 50%;
    transform: translateX(-50%) translateY(10px);
    min-width: 230px;
    padding: 8px;
    border-radius: 14px;
    background: rgba(255, 255, 255, 0.72);
    border: 1px solid rgba(255, 255, 255, 0.82);
    box-shadow: 0 12px 28px rgba(0, 0, 0, 0.08), var(--neu-light-outer);
    backdrop-filter: blur(14px);
    -webkit-backdrop-filter: blur(14px);
    opacity: 0;
    visibility: hidden;
    pointer-events: none;
    transition: opacity 0.18s ease, transform 0.2s ease, visibility 0.2s ease;
    z-index: 1100;
}

.has-dropdown:hover .nav-dropdown,
.has-dropdown.open .nav-dropdown,
.has-dropdown:focus-within .nav-dropdown {
    opacity: 1;
    visibility: visible;
    pointer-events: auto;
    transform: translateX(-50%) translateY(0);
}

.nav-dropdown-item {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 100%;
    border: none;
    background: transparent;
    text-align: center;
    padding: 10px 12px;
    border-radius: 10px;
    color: var(--text-soft);
    font-family: var(--font-body);
    font-size: 0.82rem;
    font-weight: 600;
    letter-spacing: 0.35px;
    cursor: pointer;
    transition: background 0.16s ease, color 0.16s ease, transform 0.16s ease;
}

.nav-dropdown-item:hover,
.nav-dropdown-item:focus-visible {
    background: rgba(var(--primary-rgb), 0.17);
    color: var(--text-deep);
    transform: translateY(-1px);
}


