:root {
    --bg: #000000;
    --bg-soft: #0d1220;
    --panel: #111827;
    --panel-soft: #0f172a;
    --text: #f8fafc;
    --muted: #cbd5e1;
    --line: rgba(148, 163, 184, 0.26);
    --blue: #2563eb;
    --cyan: #0debd8;
    --cyan-strong: #69c7c7;
    --shadow-blue: 4px 4px 0 rgba(37, 99, 235, 0.78);
}

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

html {
    scroll-behavior: smooth;
    background: transparent;
}

body {
    font-family: "Outfit", sans-serif;
    color: var(--text);
    line-height: 1.6;
    overflow-x: hidden;
}

.bg-video-container {
    position: fixed;
    top: 0;
    left: 0;
    width: 100vw;
    height: 100vh;
    z-index: -1;
    overflow: hidden;
}

.bg-video {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.bg-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.7);
}

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

.container {
    width: min(1140px, 92%);
    margin: 0 auto;
}

.lang-btn {
    background: transparent;
    color: #f1f5f9;
    border: 1px solid rgba(255, 255, 255, 0.25);
    border-radius: 999px;
    padding: 0.3rem 0.65rem;
    font-size: 0.78rem;
    font-weight: 700;
    cursor: pointer;
    text-transform: uppercase;
    letter-spacing: 0.04em;
    line-height: 1.4;
    font-family: "Outfit", sans-serif;
    transition: color 0.2s ease, border-color 0.2s ease;
}

.lang-btn:hover {
    color: var(--cyan-strong);
    border-color: var(--cyan-strong);
}

.site-header {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    z-index: 40;
    background: rgba(0, 0, 0, 0.75);
    backdrop-filter: blur(12px);
    border-bottom: 1px solid rgba(255, 255, 255, 0.08);
}

.nav {
    min-height: 74px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 1rem;
}

.brand {
    font-family: "Space Grotesk", sans-serif;
    font-size: 2rem;
    font-weight: 700;
    color: var(--cyan-strong);
    text-shadow: 1.5px 1.5px 0 var(--blue);
}

.menu-btn {
    display: none;
    border: 1px solid rgba(255, 255, 255, 0.2);
    border-radius: 999px;
    background: transparent;
    color: #fff;
    font-weight: 600;
    padding: 0.38rem 0.9rem;
    cursor: pointer;
}

.nav-right {
    display: flex;
    align-items: center;
    gap: 1rem;
}

.nav-links {
    list-style: none;
    display: flex;
    align-items: center;
    gap: 1.4rem;
}

.nav-links a {
    font-weight: 700;
    color: #f1f5f9;
    transition: color 0.2s ease;
}

.nav-links a:hover,
.nav-links a.active {
    color: var(--blue);
}

.nav-social {
    display: flex;
    align-items: center;
    gap: 0.7rem;
}

.nav-social a {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    color: #f1f5f9;
    opacity: 0.92;
    transition: color 0.2s ease, transform 0.2s ease;
}

.nav-social a:hover {
    color: var(--cyan-strong);
    transform: translateY(-1px);
}

.nav-social svg {
    width: 1.55rem;
    height: 1.55rem;
    fill: currentColor;
}

.hero {
    min-height: 100vh;
    display: grid;
    place-items: center;
    position: relative;
    overflow: hidden;
}

.hero-content {
    position: relative;
    z-index: 1;
    text-align: center;
    padding-top: 6.2rem;
}

.hero-kicker {
    display: inline-flex;
    padding: 0.3rem 0.75rem;
    border-radius: 999px;
    border: 1px solid rgba(255, 255, 255, 0.25);
    background: rgba(37, 99, 235, 0.2);
    font-size: 0.74rem;
    letter-spacing: 0.08em;
    text-transform: uppercase;
    font-weight: 700;
}

.hero h1 {
    margin-top: 1.2rem;
    font-size: clamp(2.3rem, 7vw, 4.4rem);
    line-height: 1.05;
    text-shadow: 2px 2px 0 #2b3247;
}

.hero-role {
    margin-top: 0.8rem;
    min-height: 2.1rem;
    font-size: clamp(1.15rem, 3.6vw, 1.8rem);
    font-weight: 700;
    color: var(--cyan-strong);
}

.hero-copy {
    margin: 1rem auto 0;
    max-width: 700px;
    color: #d9e2f1;
    font-size: clamp(1rem, 2vw, 1.13rem);
}

.hero-actions {
    margin-top: 1.5rem;
    display: flex;
    justify-content: center;
    flex-wrap: wrap;
    gap: 0.7rem;
}

.btn {
    border-radius: 999px;
    padding: 0.72rem 1.2rem;
    font-weight: 700;
    border: 1px solid transparent;
    transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.btn:hover {
    transform: translateY(-2px);
}

.btn-primary {
    background: var(--blue);
    color: #fff;
    box-shadow: 2px 2px 0 var(--cyan);
}

.btn-ghost {
    background: transparent;
    color: #fff;
    border-color: rgba(255, 255, 255, 0.35);
}

.social-row {
    margin-top: 1.3rem;
    display: flex;
    justify-content: center;
    flex-wrap: wrap;
    gap: 0.9rem;
}

.social-row a {
    color: #cbd5e1;
    border: 1px solid rgba(255, 255, 255, 0.2);
    border-radius: 999px;
    padding: 0.35rem 0.78rem;
    font-weight: 600;
    transition: color 0.2s ease, border-color 0.2s ease;
}

.social-row a:hover {
    color: var(--cyan);
    border-color: var(--cyan);
}

.tech-strip {
    overflow: hidden;
    border-top: 1px solid rgba(255, 255, 255, 0.08);
    border-bottom: 1px solid rgba(255, 255, 255, 0.08);
    background: #070b16;
}

.tech-track {
    width: max-content;
    display: flex;
    align-items: center;
    gap: 1.6rem;
    padding: 1rem 0;
    animation: techScroll 45s linear infinite;
}

.tech-strip:hover .tech-track {
    animation-play-state: paused;
}

.tech-item {
    display: flex;
    align-items: center;
    gap: 0.52rem;
    color: #e2e8f0;
    font-weight: 600;
}

.tech-item img {
    width: 1.6rem;
    height: 1.6rem;
    object-fit: contain;
}

.section {
    margin-top: 5rem;
}

.about-grid {
    background: var(--panel);
    border-radius: 1rem;
    padding: 1.2rem;
    border: 1px solid rgba(255, 255, 255, 0.08);
    display: grid;
    grid-template-columns: 0.95fr 1.05fr;
    gap: 1.25rem;
    align-items: center;
    box-shadow: var(--shadow-blue);
}

.about-image-wrap {
    height: 100%;
}

.about-photo-card {
    position: relative;
    border-radius: 0.9rem;
    overflow: hidden;
    border: 1px solid rgba(255, 255, 255, 0.15);
    box-shadow: 0 14px 32px rgba(0, 0, 0, 0.35);
    transition: transform 0.2s ease, box-shadow 0.2s ease;
    transform-style: preserve-3d;
    --tilt-x: 0deg;
    --tilt-y: 0deg;
    --lift: 0px;
    transform: perspective(950px) rotateX(var(--tilt-x)) rotateY(var(--tilt-y)) translateY(var(--lift));
    cursor: pointer;
}

.about-photo-card:hover {
    --lift: -4px;
    box-shadow: 0 18px 36px rgba(0, 0, 0, 0.45);
}

.about-photo-card:focus-visible {
    outline: 2px solid var(--cyan);
    outline-offset: 3px;
}

.about-video {
    width: 100%;
    min-height: 250px;
    object-fit: cover;
    border-radius: 0.9rem;
    display: block;
}

.greeting-avatar {
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: 58% 22%;
    transform: scale(1.28);
}

.greeting-character {
    position: absolute;
    right: 0.9rem;
    top: 0.9rem;
    width: 72px;
    height: 72px;
    border-radius: 999px;
    border: 2px solid rgba(105, 199, 199, 0.82);
    overflow: hidden;
    box-shadow: 0 10px 24px rgba(0, 0, 0, 0.45);
    background: #0b1220;
    transform-origin: 78% 78%;
}



.greeting-bubble {
    position: absolute;
    right: 0.9rem;
    top: 5.9rem;
    font-size: 0.76rem;
    font-weight: 700;
    color: #e2e8f0;
    background: rgba(0, 0, 0, 0.9);
    border: 1px solid rgba(105, 199, 199, 0.65);
    border-radius: 999px;
    padding: 0.26rem 0.62rem;
    opacity: 0;
    transform: translateY(-8px);
    transition: opacity 0.2s ease, transform 0.2s ease;
    pointer-events: none;
}

.about-photo-card.is-greeting .greeting-character {
    animation: characterSalute 1.1s ease-in-out;
}

.about-photo-card.is-greeting .greeting-bubble {
    opacity: 1;
    transform: translateY(0);
}

.photo-note {
    margin-top: 0.5rem;
    font-size: 0.9rem;
    color: #9fb0c9;
}

.section-kicker {
    color: var(--cyan-strong);
    font-weight: 700;
    letter-spacing: 0.04em;
    text-transform: uppercase;
    font-size: 0.78rem;
}

.section h2 {
    margin-top: 0.5rem;
    font-size: clamp(1.6rem, 3.6vw, 2.4rem);
    line-height: 1.15;
    text-shadow: 1px 1px 0 #2b3247;
}

.section p {
    margin-top: 0.8rem;
    color: var(--muted);
    font-size: 1.02rem;
}

.text-link {
    display: inline-block;
    margin-top: 0.9rem;
    color: var(--cyan);
    font-weight: 700;
}

.section-head {
    margin-bottom: 1rem;
}

.project-grid {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 1rem;
}

.project-card {
    background: var(--panel);
    border-radius: 1rem;
    border: 1px solid rgba(255, 255, 255, 0.08);
    overflow: hidden;
    transition: transform 0.2s ease;
    box-shadow: var(--shadow-blue);
}

.project-card:hover {
    transform: translateY(-4px);
}

.project-image {
    width: 100%;
    aspect-ratio: 16 / 9;
    object-fit: cover;
}

.project-image-fallback {
    display: grid;
    place-items: center;
    background: linear-gradient(135deg, #1e3a5f, #0d6f67);
    color: #fff;
    font-size: 1.3rem;
    font-weight: 700;
}

.project-content {
    padding: 1rem;
}

.project-content h3 {
    font-size: 1.25rem;
}

.tag-list {
    margin-top: 0.85rem;
    list-style: none;
    display: flex;
    flex-wrap: wrap;
    gap: 0.45rem;
}

.tag-list li {
    background: rgba(37, 99, 235, 0.2);
    color: #93c5fd;
    border: 1px solid rgba(37, 99, 235, 0.5);
    border-radius: 0.55rem;
    padding: 0.22rem 0.5rem;
    font-size: 0.78rem;
    font-weight: 700;
}

.project-actions {
    margin-top: 1rem;
}

.project-actions a {
    display: inline-block;
    border: 1px solid var(--blue);
    color: #bfdbfe;
    border-radius: 0.55rem;
    padding: 0.38rem 0.8rem;
    font-size: 0.9rem;
    font-weight: 700;
}

.project-actions a:hover {
    background: var(--blue);
    color: #0b1220;
}

.faq-list {
    display: grid;
    gap: 0.8rem;
}

.faq-item {
    background: var(--panel);
    border: 1px solid rgba(255, 255, 255, 0.08);
    border-radius: 0.9rem;
    overflow: hidden;
    box-shadow: var(--shadow-blue);
}

.faq-question {
    width: 100%;
    padding: 0.95rem 1rem;
    border: 0;
    background: transparent;
    color: #fff;
    display: flex;
    justify-content: space-between;
    align-items: center;
    font-size: 1rem;
    font-weight: 700;
    cursor: pointer;
    text-align: left;
}

.faq-symbol {
    color: var(--blue);
    font-size: 1.3rem;
    line-height: 1;
    transition: transform 0.2s ease;
}

.faq-answer {
    max-height: 0;
    overflow: hidden;
    transition: max-height 0.3s ease;
    color: var(--muted);
    padding: 0 1rem;
}

.faq-item.is-open .faq-answer {
    max-height: 230px;
    padding: 0 1rem 1rem;
}

.faq-item.is-open .faq-symbol {
    transform: rotate(45deg);
}

.cta-section {
    margin-top: 5rem;
}

.cta-box {
    background: var(--panel);
    border-radius: 1rem;
    border: 1px solid rgba(255, 255, 255, 0.08);
    box-shadow: 3px 3px 0 rgba(13, 235, 216, 0.65);
    text-align: center;
    padding: clamp(1.4rem, 4vw, 2.8rem);
}

.cta-box h2 {
    font-size: clamp(1.8rem, 4vw, 2.7rem);
    text-shadow: 2px 2px 0 #2b3247;
}

.cta-box p {
    margin-top: 0.75rem;
    color: var(--muted);
    font-size: 1.05rem;
}

.cta-actions {
    margin-top: 1.2rem;
    display: flex;
    justify-content: center;
    flex-wrap: wrap;
    gap: 0.75rem;
}

.contact-line {
    margin-top: 1rem;
    color: #f8fafc;
    font-weight: 600;
}

.contact-social-links {
    margin-top: 1rem;
    display: grid;
    gap: 0.45rem;
    justify-content: center;
}

.contact-social-links a {
    display: inline-flex;
    align-items: center;
    gap: 0.45rem;
    color: #cbd5e1;
    font-size: 0.94rem;
    border: 1px solid rgba(255, 255, 255, 0.18);
    border-radius: 0.75rem;
    padding: 0.35rem 0.6rem;
}

.contact-social-links a svg {
    width: 1rem;
    height: 1rem;
    fill: currentColor;
    flex: 0 0 auto;
}

.contact-social-links a:hover {
    color: var(--cyan);
    border-color: var(--cyan);
}

.site-footer {
    margin-top: 5rem;
    border-top: 1px solid rgba(255, 255, 255, 0.08);
    background: #000000;
}

.footer-grid {
    padding: 2rem 0;
    display: grid;
    grid-template-columns: auto 1fr auto;
    align-items: center;
    gap: 1rem;
}

.footer-grid ul {
    list-style: none;
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 1rem;
    color: #aab6ca;
    font-weight: 600;
}

.footer-grid p {
    color: #8b96a9;
}

.reveal {
    opacity: 0;
    transform: translateY(18px);
    transition: opacity 0.5s ease, transform 0.5s ease;
}

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

@keyframes techScroll {
    from {
        transform: translateX(0);
    }
    to {
        transform: translateX(-50%);
    }
}

@keyframes characterSalute {
    0% {
        transform: translateY(0) rotate(0deg) scale(1);
    }
    22% {
        transform: translateY(-3px) rotate(14deg) scale(1.04);
    }
    44% {
        transform: translateY(-2px) rotate(-9deg) scale(1.03);
    }
    66% {
        transform: translateY(-3px) rotate(10deg) scale(1.04);
    }
    82% {
        transform: translateY(-1px) rotate(-5deg) scale(1.02);
    }
    100% {
        transform: translateY(0) rotate(0deg) scale(1);
    }
}

@media (max-width: 980px) {
    .about-grid,
    .project-grid {
        grid-template-columns: 1fr;
    }
}

@media (max-width: 760px) {
    .menu-btn {
        display: inline-flex;
    }

    .nav-right {
        gap: 0.65rem;
    }

    .nav-social svg {
        width: 1.42rem;
        height: 1.42rem;
    }

    .nav-links {
        display: none;
        position: absolute;
        top: 74px;
        left: 0;
        right: 0;
        width: min(92%, 420px);
        margin: 0 auto;
        background: #0e1526;
        border: 1px solid rgba(255, 255, 255, 0.12);
        border-radius: 0.9rem;
        padding: 0.9rem;
        flex-direction: column;
        align-items: flex-start;
        gap: 0.8rem;
        box-shadow: 0 16px 35px rgba(0, 0, 0, 0.4);
    }

    .nav-links.open {
        display: flex;
    }

    .hero-content {
        padding-top: 5.7rem;
    }

    .footer-grid {
        grid-template-columns: 1fr;
        text-align: center;
    }
}

@media (prefers-reduced-motion: reduce) {
    .about-photo-card {
        transform: none;
        transition: none;
    }

    .greeting-character,
    .greeting-bubble {
        animation: none;
        transition: none;
    }
}
