/* =====================================================
   Hero and desktop navigation
   ===================================================== */

html {
    scroll-behavior: smooth;
    scroll-padding-top: 90px;
}

body {
    overflow-x: hidden;
}

.top-navigation {
    position: fixed;
    top: 0;
    left: 0;
    z-index: 1150;
    display: flex;
    align-items: center;
    width: 100%;
    min-height: 82px;
    padding: 0 190px 0 32px;
    border-bottom: 1px solid rgba(0, 234, 255, 0.12);
    background: rgba(10, 11, 16, 0.72);
    backdrop-filter: blur(16px);
    -webkit-backdrop-filter: blur(16px);
}

.nav-brand {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    color: #e9f6fa;
    font-family: 'Orbitron', 'Noto Sans TC', sans-serif;
    font-size: 0.92rem;
    font-weight: 700;
    letter-spacing: 0.04em;
    text-decoration: none;
    text-shadow: none;
}

.nav-brand:hover {
    color: #ffffff;
}

.brand-mark {
    color: #00eaff;
    text-shadow: 0 0 12px rgba(0, 234, 255, 0.45);
}

.desktop-nav {
    position: absolute;
    left: 50%;
    display: flex;
    align-items: center;
    gap: 30px;
    transform: translateX(-50%);
}

.desktop-nav a {
    position: relative;
    padding: 8px 0;
    color: #9caab3;
    font-size: 0.88rem;
    font-weight: 600;
    letter-spacing: 0.04em;
    text-decoration: none;
    text-shadow: none;
    transition: color 0.2s ease;
}

.desktop-nav a::after {
    position: absolute;
    right: 0;
    bottom: 2px;
    left: 0;
    height: 2px;
    border-radius: 999px;
    background: #00eaff;
    content: "";
    transform: scaleX(0);
    transform-origin: center;
    transition: transform 0.2s ease;
}

.desktop-nav a:hover {
    color: #e9f6fa;
}

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

.hero-section {
    position: relative;
    display: flex;
    min-height: calc(100vh - 48px);
    padding: 110px 0 80px;
    align-items: center;
    border-bottom: 1px solid rgba(0, 234, 255, 0.18);
}

.hero-content {
    display: grid;
    width: 100%;
    grid-template-columns: minmax(0, 1.25fr) minmax(280px, 0.75fr);
    gap: clamp(48px, 8vw, 110px);
    align-items: center;
}

.hero-copy {
    position: relative;
    z-index: 2;
    max-width: 720px;
    text-align: left;
}

.hero-eyebrow,
.section-kicker {
    margin: 0 0 14px;
    color: #00eaff;
    font-family: 'Orbitron', 'Noto Sans TC', sans-serif;
    font-size: 0.76rem;
    font-weight: 700;
    letter-spacing: 0.2em;
    text-shadow: none;
}

.hero-title {
    min-height: 1.2em;
    margin: 0;
    color: #f1f8fa;
    font-size: clamp(3.2rem, 7vw, 6.4rem);
    font-weight: 700;
    line-height: 1.05;
    letter-spacing: -0.045em;
    text-shadow:
        0 0 28px rgba(0, 234, 255, 0.2),
        0 0 60px rgba(255, 0, 153, 0.08);
}

.hero-role {
    margin: 22px 0 12px;
    color: #d9e4e8;
    font-size: clamp(1.15rem, 2vw, 1.45rem);
    font-weight: 600;
    line-height: 1.45;
    text-shadow: none;
}

.hero-description {
    max-width: 650px;
    margin: 0;
    color: #96a6af;
    font-size: clamp(1rem, 1.5vw, 1.12rem);
    line-height: 1.8;
    text-shadow: none;
}

.hero-tags {
    display: flex;
    flex-wrap: wrap;
    gap: 9px;
    margin-top: 24px;
}

.hero-tags span {
    padding: 7px 12px;
    border: 1px solid rgba(0, 234, 255, 0.2);
    border-radius: 999px;
    color: #a9bbc4;
    background: rgba(0, 234, 255, 0.05);
    font-size: 0.78rem;
    font-weight: 600;
    letter-spacing: 0.04em;
    text-shadow: none;
}

.hero-actions {
    display: flex;
    flex-wrap: wrap;
    gap: 12px;
    margin-top: 32px;
    align-items: center;
}

.hero-button {
    display: inline-flex;
    min-height: 46px;
    padding: 0 18px;
    align-items: center;
    justify-content: center;
    gap: 9px;
    border: 1px solid transparent;
    border-radius: 12px;
    font-size: 0.88rem;
    font-weight: 700;
    letter-spacing: 0.02em;
    text-decoration: none;
    text-shadow: none;
    transition:
        transform 0.2s ease,
        box-shadow 0.2s ease,
        border-color 0.2s ease,
        background-color 0.2s ease;
}

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

.hero-button-primary {
    color: #061114;
    background: #00eaff;
    box-shadow: 0 8px 25px rgba(0, 234, 255, 0.18);
}

.hero-button-primary:hover {
    color: #061114;
    box-shadow: 0 10px 30px rgba(0, 234, 255, 0.3);
}

.hero-button-secondary {
    border-color: rgba(220, 231, 238, 0.22);
    color: #e4edf0;
    background: rgba(255, 255, 255, 0.04);
}

.hero-button-secondary:hover {
    border-color: rgba(0, 234, 255, 0.45);
    color: #ffffff;
    background: rgba(0, 234, 255, 0.07);
}

.hero-text-link {
    padding: 10px 6px;
    color: #a9b8c0;
    font-size: 0.88rem;
    font-weight: 600;
    text-decoration: none;
    text-shadow: none;
}

.hero-text-link:hover {
    color: #00eaff;
}

.hero-visual {
    position: relative;
    display: grid;
    width: min(100%, 370px);
    aspect-ratio: 1;
    margin: 0 auto;
    place-items: center;
}

.hero-photo-frame {
    position: relative;
    z-index: 2;
    width: 68%;
    aspect-ratio: 1;
    padding: 6px;
    border: 1px solid rgba(0, 234, 255, 0.6);
    border-radius: 50%;
    background: linear-gradient(
        135deg,
        rgba(0, 234, 255, 0.28),
        rgba(255, 0, 153, 0.18)
    );
    box-shadow:
        0 0 35px rgba(0, 234, 255, 0.16),
        0 18px 60px rgba(0, 0, 0, 0.38);
}

.hero-photo {
    display: block;
    width: 100%;
    height: 100%;
    border-radius: 50%;
    object-fit: cover;
}

.profile-orbit {
    position: absolute;
    border: 1px solid rgba(0, 234, 255, 0.18);
    border-radius: 50%;
}

.profile-orbit-large {
    inset: 2%;
    animation: orbitRotate 18s linear infinite;
}

.profile-orbit-small {
    inset: 13%;
    border-style: dashed;
    border-color: rgba(255, 0, 153, 0.2);
    animation: orbitRotate 12s linear infinite reverse;
}

.orbit-dot {
    position: absolute;
    z-index: 3;
    width: 9px;
    height: 9px;
    border-radius: 50%;
    background: #00eaff;
    box-shadow: 0 0 15px #00eaff;
}

.orbit-dot-one {
    top: 14%;
    right: 14%;
}

.orbit-dot-two {
    bottom: 18%;
    left: 9%;
    width: 7px;
    height: 7px;
    background: #ff4db8;
    box-shadow: 0 0 15px #ff0099;
}

@keyframes orbitRotate {
    to {
        transform: rotate(360deg);
    }
}

.scroll-indicator {
    position: absolute;
    bottom: 24px;
    left: 50%;
    display: flex;
    align-items: center;
    flex-direction: column;
    gap: 6px;
    color: #778791;
    font-size: 0.66rem;
    font-weight: 700;
    letter-spacing: 0.16em;
    text-decoration: none;
    text-shadow: none;
    transform: translateX(-50%);
}

.scroll-indicator i {
    color: #00eaff;
    animation: scrollBounce 1.8s ease-in-out infinite;
}

@keyframes scrollBounce {
    0%,
    100% {
        transform: translateY(0);
    }

    50% {
        transform: translateY(5px);
    }
}

.about-section {
    display: grid;
    grid-template-columns: minmax(240px, 0.8fr) minmax(0, 1.2fr);
    gap: clamp(40px, 8vw, 100px);
    align-items: start;
    text-align: left;
}

.about-section .section-heading h2 {
    margin: 0;
    color: #e9f4f7;
    font-size: clamp(1.9rem, 4vw, 3.2rem);
    line-height: 1.25;
    text-shadow: none;
}

.about-summary {
    padding-left: 28px;
    border-left: 1px solid rgba(0, 234, 255, 0.24);
}

.about-summary p {
    margin: 0 0 18px;
    color: #9babb4;
    font-size: 1.05rem;
    line-height: 1.85;
    text-shadow: none;
}

.about-links {
    display: flex;
    flex-wrap: wrap;
    gap: 22px;
    margin-top: 26px;
}

.about-links a {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    color: #c5d2d7;
    font-weight: 600;
    text-decoration: none;
    text-shadow: none;
}

.about-links a:hover {
    color: #00eaff;
}

/* Light mode */
.light-mode .top-navigation {
    border-bottom-color: rgba(111, 78, 55, 0.12);
    background: rgba(245, 230, 202, 0.78);
}

.light-mode .nav-brand,
.light-mode .hero-title,
.light-mode .about-section .section-heading h2 {
    color: #3f3129;
}

.light-mode .desktop-nav a,
.light-mode .hero-description,
.light-mode .about-summary p {
    color: #746357;
}

.light-mode .hero-role {
    color: #514239;
}

.light-mode .hero-tags span {
    border-color: rgba(111, 78, 55, 0.2);
    color: #6f5b4d;
    background: rgba(111, 78, 55, 0.05);
}

.light-mode .hero-button-primary {
    color: #ffffff;
    background: #8b5a2b;
    box-shadow: 0 8px 25px rgba(139, 90, 43, 0.18);
}

.light-mode .hero-button-primary:hover {
    color: #ffffff;
    box-shadow: 0 10px 30px rgba(139, 90, 43, 0.26);
}

.light-mode .hero-button-secondary {
    border-color: rgba(90, 70, 55, 0.22);
    color: #5a4637;
    background: rgba(255, 255, 255, 0.3);
}

.light-mode .hero-text-link,
.light-mode .about-links a {
    color: #6f594a;
}

.light-mode .hero-text-link:hover,
.light-mode .about-links a:hover,
.light-mode .desktop-nav a:hover {
    color: #8b5a2b;
}

.light-mode .about-summary {
    border-left-color: rgba(111, 78, 55, 0.24);
}

.light-mode .hero-section {
    border-bottom-color: rgba(111, 78, 55, 0.18);
}

/* Responsive layout */
@media (min-width: 769px) {
    .menu-btn {
        display: none;
    }
}

@media (max-width: 900px) {
    .desktop-nav {
        gap: 18px;
    }

    .desktop-nav a {
        font-size: 0.8rem;
    }

    .hero-content {
        gap: 32px;
    }
}

@media (max-width: 768px) {
    .top-navigation {
        display: none;
    }

    .hero-section {
        min-height: auto;
        padding: 90px 0 100px;
    }

    .hero-content {
        display: flex;
        flex-direction: column-reverse;
        gap: 38px;
    }

    .hero-copy {
        text-align: center;
    }

    .hero-description {
        margin-right: auto;
        margin-left: auto;
    }

    .hero-tags,
    .hero-actions {
        justify-content: center;
    }

    .hero-visual {
        width: min(75vw, 290px);
    }

    .hero-title {
        font-size: clamp(3rem, 14vw, 4.6rem);
    }

    .about-section {
        display: block;
        text-align: left;
    }

    .about-summary {
        margin-top: 30px;
        padding-left: 20px;
    }

    .scroll-indicator {
        bottom: 20px;
    }
}

@media (max-width: 480px) {
    .hero-actions {
        display: grid;
        grid-template-columns: 1fr 1fr;
    }

    .hero-button {
        width: 100%;
    }

    .hero-text-link {
        grid-column: 1 / -1;
        text-align: center;
    }

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

@media (prefers-reduced-motion: reduce) {
    html {
        scroll-behavior: auto;
    }

    .profile-orbit,
    .scroll-indicator i {
        animation: none;
    }
}