@font-face {
    font-family: 'Outfit';
    src: url('../fonts/Outfit-VariableFont_wght.ttf') format('truetype');
    font-weight: 100 900;
    font-style: normal;
    font-display: swap;
}

:root {
    --brand-dark: #0f172a;
    --brand-purple: #673879;
    --brand-pink: #a92c51;
    --brand-blue: #067baf;
    --brand-cyan: #43a1b1;
    --brand-green: #4caf50;
    --brand-orange: #db7143;
    --linkedin: #0a66c2;

    --gray-50: oklch(98.5% 0.002 247.839);
    --gray-100: oklch(96.7% 0.003 264.542);
    --gray-200: oklch(92.8% 0.006 264.531);
    --gray-300: oklch(87.2% 0.01 258.338);
    --gray-400: oklch(70.7% 0.022 261.325);
    --gray-600: oklch(44.6% 0.03 256.802);
    --gray-800: oklch(27.8% 0.033 256.848);
    --gray-900: oklch(21% 0.034 264.665);
    --amber-500: oklch(76.9% 0.188 70.08);

    --shadow-sm: 0 1px 3px 0 rgb(0 0 0 / 0.1), 0 1px 2px -1px rgb(0 0 0 / 0.1);
    --shadow-lg: 0 10px 15px -3px rgb(0 0 0 / 0.1), 0 4px 6px -4px rgb(0 0 0 / 0.1);
    --shadow-xl: 0 20px 25px -5px rgb(0 0 0 / 0.1), 0 8px 10px -6px rgb(0 0 0 / 0.1);
    --shadow-2xl: 0 25px 50px -12px rgb(0 0 0 / 0.25);

    --ease: cubic-bezier(0.4, 0, 0.2, 1);
    --ease-out: cubic-bezier(0, 0, 0.58, 1);
    --ease-in-out: cubic-bezier(0.42, 0, 0.58, 1);
    --ease-spring: cubic-bezier(0.34, 1.4, 0.64, 1);
}

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

html {
    line-height: 1.5;
    -webkit-text-size-adjust: 100%;
    tab-size: 4;
    -webkit-tap-highlight-color: transparent;
    font-family: 'Outfit', ui-sans-serif, system-ui, sans-serif, 'Apple Color Emoji', 'Segoe UI Emoji', 'Segoe UI Symbol', 'Noto Color Emoji';
}

html,
body {
    height: 100%;
    background-color: var(--brand-dark);
    color: #fff;
}

h1, h2, h3, p {
    font-size: inherit;
    font-weight: inherit;
}

a {
    color: inherit;
    text-decoration: inherit;
}

button {
    font: inherit;
    color: inherit;
    background-color: transparent;
    cursor: pointer;
}

img,
svg {
    display: block;
    vertical-align: middle;
}

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

.icon {
    flex-shrink: 0;
    fill: none;
    stroke: currentColor;
    stroke-width: 2;
    stroke-linecap: round;
    stroke-linejoin: round;
}

/* Accessibility */
.skip-link {
    position: absolute;
    width: 1px;
    height: 1px;
    padding: 0;
    margin: -1px;
    overflow: hidden;
    clip-path: inset(50%);
    white-space: nowrap;
}

.skip-link:focus {
    top: 1rem;
    left: 1rem;
    z-index: 9999;
    width: auto;
    height: auto;
    margin: 0;
    padding: 0.5rem 1rem;
    overflow: visible;
    clip-path: none;
    border-radius: 0.25rem;
    background: #000;
    color: #fff;
    font-weight: 700;
}

/* Layout */
.page {
    min-height: 100vh;
    background-color: var(--gray-50);
    color: var(--gray-900);
    transition: color 0.3s var(--ease), background-color 0.3s var(--ease);
}

.dark .page {
    background-color: var(--brand-dark);
    color: var(--gray-100);
}

.page ::selection,
.page::selection {
    color: var(--brand-dark);
}

main {
    display: flex;
    flex-direction: column;
    min-height: 100vh;
    padding-top: 4rem;
}

/* Navbar */
.nav {
    position: fixed;
    top: 0;
    z-index: 50;
    width: 100%;
    border-bottom: 1px solid transparent;
    background-color: transparent;
    transition: all 0.3s var(--ease);
}

.nav.is-scrolled,
.nav.is-open {
    background-color: rgb(15 23 42 / 0.9);
    -webkit-backdrop-filter: blur(12px);
    backdrop-filter: blur(12px);
    border-bottom-color: rgb(255 255 255 / 0.1);
    box-shadow: var(--shadow-lg);
}

.nav.is-open {
    height: 100dvh;
    background-color: rgb(15 23 42 / 0.7);
    -webkit-backdrop-filter: blur(24px);
    backdrop-filter: blur(24px);
}

.nav.is-past-hero {
    background-color: rgb(72 39 85 / 0.95);
    -webkit-backdrop-filter: blur(24px);
    backdrop-filter: blur(24px);
}

.dark .nav.is-past-hero {
    background-color: rgb(15 23 42 / 0.9);
}

@supports (backdrop-filter: blur(1px)) {
    .nav.is-scrolled,
    .nav.is-open {
        background-color: rgb(15 23 42 / 0.6);
    }

    .nav.is-past-hero {
        background-color: rgb(72 39 85 / 0.9);
    }

    .dark .nav.is-past-hero {
        background-color: rgb(15 23 42 / 0.8);
    }
}

.nav.is-open {
    border-bottom-color: transparent;
    box-shadow: none;
}

.nav-container {
    max-width: 80rem;
    margin: 0 auto;
    padding: 0 1rem;
}

.nav-bar {
    display: flex;
    justify-content: space-between;
    align-items: center;
    height: 4rem;
}

.logo {
    flex-shrink: 0;
    font-size: 1.5rem;
    line-height: 2rem;
    font-weight: 700;
    letter-spacing: -0.05em;
    color: #fff;
    transition: all 0.3s var(--ease);
}

.nav-links {
    display: none;
    position: absolute;
    left: 50%;
    transform: translateX(-50%);
    gap: 2rem;
}

.nav-link {
    color: var(--gray-300);
    font-weight: 500;
    transition: color 0.15s var(--ease);
}

.nav-link:hover {
    color: var(--brand-cyan);
}

.nav-actions {
    display: none;
    align-items: center;
    gap: 1rem;
}

.lang-switch {
    font-size: 0.875rem;
    line-height: 1.25rem;
    font-weight: 600;
    color: var(--gray-300);
    transition: color 0.15s var(--ease);
}

.lang-switch:hover {
    color: var(--brand-cyan);
}

.theme-toggle {
    padding: 0.5rem;
    border-radius: 9999px;
    transition: background-color 0.15s var(--ease);
}

.theme-toggle:hover {
    background-color: rgb(255 255 255 / 0.1);
}

.theme-toggle .icon {
    display: none;
}

.theme-toggle[data-theme='system'] .icon-system,
.theme-toggle[data-theme='light'] .icon-light,
.theme-toggle[data-theme='dark'] .icon-dark {
    display: block;
}

.icon-system {
    color: var(--brand-cyan);
}

.icon-light {
    color: var(--amber-500);
}

.icon-dark {
    color: var(--brand-purple);
}

.menu-toggle {
    margin-left: 1rem;
    padding: 0.5rem;
    border-radius: 0.375rem;
    color: var(--gray-200);
}

.menu-toggle:hover {
    background-color: rgb(255 255 255 / 0.1);
}

.menu-toggle .icon-close,
.nav.is-open .menu-toggle .icon-open {
    display: none;
}

.nav.is-open .menu-toggle .icon-close {
    display: block;
}

.mobile-menu {
    height: 0;
    overflow: hidden;
    opacity: 0;
    visibility: hidden;
    transition: height 0.3s var(--ease), opacity 0.3s var(--ease), visibility 0s 0.3s;
}

.nav.is-open .mobile-menu {
    height: calc(100dvh - 4rem);
    opacity: 1;
    visibility: visible;
    transition: height 0.3s var(--ease), opacity 0.3s var(--ease), visibility 0s;
}

.mobile-menu-inner {
    display: flex;
    flex-direction: column;
    align-items: center;
    padding: 1.5rem 1rem;
}

.mobile-link {
    display: block;
    width: 100%;
    margin-bottom: 1rem;
    padding: 0.5rem 1rem;
    border-radius: 9999px;
    font-size: 1.25rem;
    line-height: 1.75rem;
    font-weight: 500;
    text-align: center;
    color: var(--gray-200);
    transition: all 0.15s var(--ease);
}

.mobile-link:hover {
    color: #fff;
    background-color: rgb(255 255 255 / 0.1);
}

.mobile-divider {
    width: 3rem;
    height: 1px;
    margin: 1rem 0;
    background-color: rgb(255 255 255 / 0.1);
}

.mobile-lang-switch {
    margin-bottom: 1rem;
    padding: 0.5rem 1rem;
    font-size: 1.125rem;
    line-height: 1.75rem;
    font-weight: 500;
    color: var(--brand-cyan);
    transition: color 0.15s var(--ease);
}

.mobile-lang-switch:hover {
    color: var(--brand-green);
}

.mobile-theme {
    padding-top: 0.5rem;
}

/* Badge */
.badge {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.5rem 1rem;
    border: 1px solid;
    border-radius: 9999px;
    color: var(--brand-green);
}

.badge .icon {
    color: var(--brand-pink);
}

.badge span {
    font-size: 0.875rem;
    line-height: 1.25rem;
    font-weight: 500;
    letter-spacing: 0.025em;
    text-transform: uppercase;
}

/* Hero */
.hero {
    position: relative;
    display: flex;
    align-items: center;
    justify-content: center;
    min-height: 100dvh;
    margin-top: -4rem;
    padding-top: 6rem;
    overflow: hidden;
    background-color: var(--brand-dark);
}

.stars,
.hero-atmosphere {
    position: absolute;
    inset: 0;
    overflow: hidden;
    pointer-events: none;
}

.star {
    position: absolute;
    border-radius: 9999px;
    background-color: #fff;
    animation: twinkle var(--duration) var(--ease-in-out) var(--delay) infinite both;
}

@keyframes twinkle {
    0%,
    100% {
        opacity: 0.2;
        transform: scale(1);
    }

    50% {
        opacity: 0.8;
        transform: scale(1.2);
    }
}

.hero-atmosphere {
    background:
        radial-gradient(ellipse 700px 700px at 15% 20%, rgba(139, 92, 246, 0.15) 0%, transparent 60%),
        radial-gradient(ellipse 600px 600px at 85% 50%, rgba(67, 161, 177, 0.2) 0%, transparent 60%),
        radial-gradient(ellipse 500px 500px at 30% 75%, rgba(236, 72, 153, 0.15) 0%, transparent 60%);
}

.hero-fade {
    position: absolute;
    bottom: 0;
    left: 0;
    z-index: 5;
    width: 100%;
    height: 5rem;
    pointer-events: none;
    background: linear-gradient(to top, #0f172a 0%, #0f172a 10%, rgba(15, 23, 42, 0.8) 20%, rgba(15, 23, 42, 0.4) 40%, transparent 100%);
}

.hero-container {
    position: relative;
    z-index: 10;
    width: 100%;
    max-width: 64rem;
    margin: 0 auto;
    padding: 0 1.5rem 5rem;
    text-align: center;
}

.hero-content {
    display: flex;
    flex-direction: column;
    align-items: center;
    animation: fade-up 0.6s var(--ease-out) 0.1s both;
}

@keyframes fade-up {
    from {
        opacity: 0;
        transform: translateY(20px);
    }
}

.hero-badge {
    margin-bottom: 2rem;
    border-color: rgb(255 255 255 / 0.2);
    background-image: linear-gradient(to bottom right in oklab, rgb(255 255 255 / 0.15), rgb(255 255 255 / 0.05));
    box-shadow: var(--shadow-lg);
}

.hero-badge .icon {
    fill: rgb(169 44 81 / 0.2);
}

.hero-title-wrap {
    position: relative;
    display: inline-block;
    margin-bottom: 2rem;
}

.hero-title-glow {
    position: absolute;
    top: 50%;
    left: 50%;
    width: 150%;
    height: 250%;
    transform: translate(-50%, -50%);
    background: radial-gradient(ellipse at center, rgba(236, 72, 153, 0.2) 0%, rgba(236, 72, 153, 0.1) 40%, transparent 70%);
}

.hero-title {
    position: relative;
    font-size: 2.25rem;
    line-height: 1.1111;
    font-weight: 700;
    letter-spacing: -0.025em;
}

.hero-title span {
    display: block;
    color: var(--brand-cyan);
    background-image: linear-gradient(to right, #067baf, #43a1b1);
    -webkit-background-clip: text;
    background-clip: text;
    -webkit-text-fill-color: transparent;
}

.hero-intro {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 2rem;
    max-width: 48rem;
    margin: 0 auto 2.5rem;
}

.hero-avatar {
    flex-shrink: 0;
    width: 5.5rem;
    height: 5.5rem;
    padding: 0.25rem;
    overflow: hidden;
    border: 2px solid rgb(103 56 121 / 0.4);
    border-radius: 9999px;
    background-color: rgb(15 23 42 / 0.5);
    box-shadow: var(--shadow-xl);
    animation: pop-in 0.6s var(--ease-spring) 0.4s both;
}

@keyframes pop-in {
    from {
        opacity: 0;
        transform: scale(0);
    }
}

.hero-avatar img {
    width: 100%;
    height: 100%;
    border-radius: 9999px;
    object-fit: cover;
    object-position: center 20%;
    transform: scale(1.5) translateY(8px) translateX(6px);
}

.hero-description {
    font-size: 1.25rem;
    line-height: 1.625;
    font-weight: 300;
    color: var(--gray-300);
}

.hero-actions {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 1rem;
}

.hero-cta {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    padding: 1rem 2rem;
    border-radius: 9999px;
    background-color: #fff;
    color: var(--brand-dark);
    font-size: 1.125rem;
    line-height: 1.75rem;
    font-weight: 700;
    box-shadow: var(--shadow-lg);
    transition: box-shadow 0.15s var(--ease), transform 0.2s var(--ease-spring);
}

.hero-cta:hover {
    transform: scale(1.05);
    box-shadow: 0 10px 15px -3px rgb(6 123 175 / 0.5), 0 4px 6px -4px rgb(6 123 175 / 0.5);
}

.hero-cta:active {
    transform: scale(0.95);
}

.hero-cta .icon {
    transition: transform 0.15s var(--ease);
}

.hero-cta:hover .icon {
    transform: translateX(0.25rem);
}

/* Contact */
.contact {
    position: relative;
    padding: 6rem 0;
    overflow: hidden;
    background-color: var(--gray-50);
}

.dark .contact {
    background-color: rgb(15 23 42 / 0.5);
}

.contact-blob {
    position: absolute;
    top: 5rem;
    right: -5rem;
    width: 24rem;
    height: 24rem;
    border-radius: 9999px;
    background-color: rgb(169 44 81 / 0.1);
    filter: blur(64px);
    pointer-events: none;
}

.contact-container {
    position: relative;
    z-index: 10;
    max-width: 64rem;
    margin: 0 auto;
    padding: 0 1.5rem;
}

.contact-badge-wrap {
    display: flex;
    justify-content: center;
    margin-bottom: 3rem;
}

.contact-badge {
    border-color: rgb(15 23 42 / 0.1);
    background-color: rgb(15 23 42 / 0.05);
    -webkit-backdrop-filter: blur(12px);
    backdrop-filter: blur(12px);
    box-shadow: var(--shadow-sm);
}

.dark .contact-badge {
    border-color: rgb(255 255 255 / 0.2);
    background-color: rgb(255 255 255 / 0.1);
}

.contact-grid {
    display: grid;
    grid-template-columns: minmax(0, 1fr);
    align-items: center;
    gap: 4rem;
}

.contact-media {
    position: relative;
    display: flex;
    justify-content: center;
    isolation: isolate;
}

.contact-photo {
    position: relative;
    width: 100%;
    aspect-ratio: 1 / 1;
    padding: 0.25rem;
    overflow: hidden;
    border-radius: 2rem;
    background-image: linear-gradient(to top right in oklab, var(--brand-purple), var(--brand-orange));
    box-shadow: var(--shadow-2xl);
}

.contact-photo img {
    width: 100%;
    height: 100%;
    border-radius: 1.8rem;
    object-fit: cover;
}

.contact-glow {
    position: absolute;
    inset: 0;
    z-index: -10;
    background-color: rgb(67 161 177 / 0.2);
    filter: blur(64px);
    transform: scale(1.1);
}

.contact-body {
    text-align: center;
}

.contact-title {
    margin-bottom: 1.5rem;
    font-size: 2.25rem;
    line-height: 1.1111;
    font-weight: 700;
    color: var(--gray-900);
}

.dark .contact-title {
    color: #fff;
}

.contact-subtitle {
    margin-bottom: 2rem;
    font-size: 1.25rem;
    line-height: 1.625;
    color: var(--gray-600);
}

.dark .contact-subtitle {
    color: var(--gray-400);
}

.contact-actions {
    display: flex;
    flex-direction: column;
    gap: 1rem;
    max-width: 28rem;
    margin: 0 auto;
}

.contact-button {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.75rem;
    width: 100%;
    padding: 1rem 2rem;
    border-radius: 0.75rem;
    color: #fff;
    font-size: 1.125rem;
    line-height: 1.75rem;
    font-weight: 700;
    box-shadow: var(--shadow-lg);
    transition: box-shadow 0.15s var(--ease), transform 0.2s var(--ease-spring);
}

.contact-button:hover {
    transform: scale(1.02);
}

.contact-button:active {
    transform: scale(0.98);
}

.contact-button-email {
    background-color: var(--brand-purple);
}

.contact-button-email:hover {
    box-shadow: 0 10px 15px -3px rgb(103 56 121 / 0.5), 0 4px 6px -4px rgb(103 56 121 / 0.5);
}

.contact-button-linkedin {
    background-color: var(--linkedin);
}

.contact-button-linkedin:hover {
    box-shadow: 0 10px 15px -3px rgb(10 102 194 / 0.5), 0 4px 6px -4px rgb(10 102 194 / 0.5);
}

/* Scroll reveal (only when JS is available) */
.js .reveal {
    opacity: 0;
    transition: opacity 0.6s var(--ease-out), transform 0.6s var(--ease-spring);
}

.js .reveal-left {
    transform: translateX(-50px);
}

.js .reveal-right {
    transform: translateX(50px);
    transition-delay: 0.2s;
}

.js .reveal.is-visible {
    opacity: 1;
    transform: none;
}

/* Footer */
.footer {
    background-color: var(--gray-900);
    color: #fff;
}

.footer-container {
    max-width: 80rem;
    margin: 0 auto;
    padding: 3rem 1rem;
    text-align: center;
}

.footer p {
    font-size: 0.875rem;
    line-height: 1.25rem;
    color: var(--gray-400);
}

/* Breakpoints */
@media (min-width: 40rem) {
    .nav-container,
    .footer-container {
        padding-left: 1.5rem;
        padding-right: 1.5rem;
    }

    .hero-actions {
        flex-direction: row;
    }
}

@media (min-width: 48rem) {
    .nav-links,
    .nav-actions {
        display: flex;
    }

    .menu-toggle-wrap,
    .mobile-menu {
        display: none;
    }

    .hero-atmosphere {
        background:
            radial-gradient(ellipse 1200px 1200px at 15% 20%, rgba(139, 92, 246, 0.15) 0%, transparent 60%),
            radial-gradient(ellipse 1100px 1100px at 85% 50%, rgba(67, 161, 177, 0.2) 0%, transparent 60%),
            radial-gradient(ellipse 900px 900px at 30% 75%, rgba(236, 72, 153, 0.15) 0%, transparent 60%);
    }

    .hero-title {
        font-size: 4.5rem;
        line-height: 1;
    }

    .hero-intro {
        flex-direction: row;
        text-align: left;
    }

    .hero-avatar {
        width: 7rem;
        height: 7rem;
    }

    .hero-description {
        font-size: 1.5rem;
    }

    .contact-grid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }

    .contact-media {
        justify-content: flex-end;
    }

    .contact-body {
        text-align: left;
    }

    .contact-title {
        font-size: 3rem;
        line-height: 1;
    }

    .contact-actions {
        margin: 0;
    }
}

@media (min-width: 64rem) {
    .nav-container,
    .footer-container {
        padding-left: 2rem;
        padding-right: 2rem;
    }

    .hero-title {
        font-size: 6rem;
    }
}

@media (prefers-reduced-motion: reduce) {
    *,
    ::before,
    ::after {
        animation-duration: 0.01ms !important;
        animation-iteration-count: 1 !important;
        transition-duration: 0.01ms !important;
        transition-delay: 0s !important;
    }

    .star {
        animation: none;
        opacity: 0.5;
    }

    .hero-cta:hover,
    .hero-cta:active,
    .contact-button:hover,
    .contact-button:active {
        transform: none;
    }
}

main:focus {
    outline: none;
}
