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

body {
    font-family: 'Inter', 'Zen Kaku Gothic New', sans-serif;
    background-color: #050505;
    color: #f0f0f0;
    line-height: 1.6;
    -webkit-font-smoothing: antialiased;
}

a {
    color: inherit;
    text-decoration: none;
    transition: opacity 0.3s ease;
}

a:hover {
    opacity: 0.7;
}

/* Layout */
main {
    width: 100%;
}

/* Hero */
.hero {
    height: 100svh;
    width: 100%;
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
    background-color: #000;
    /* Fallback */
    transition: background-image 0.5s ease-in-out;
    position: relative;
    display: flex;
    justify-content: center;
    align-items: flex-end;
    padding-bottom: 2rem;
    overflow: hidden;
}

.hero::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 100%;
    height: 40%;
    background: linear-gradient(to top, rgba(0, 0, 0, 0.8) 0%, rgba(0, 0, 0, 0) 100%);
    pointer-events: none;
    z-index: 1;
}

.scroll-indicator {
    z-index: 2;
}


/* Scroll Indicator */
.scroll-indicator {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 0.5rem;
    color: rgba(255, 255, 255, 0.5);
    font-size: 0.7rem;
    letter-spacing: 0.2em;
    font-weight: 300;
    pointer-events: none;
    z-index: 10;
}

.scroll-indicator .mouse {
    width: 20px;
    height: 35px;
    border: 1px solid rgba(255, 255, 255, 0.3);
    border-radius: 20px;
    display: flex;
    justify-content: center;
    padding-top: 5px;
}

.scroll-indicator .wheel {
    width: 2px;
    height: 6px;
    background: rgba(255, 255, 255, 0.5);
    border-radius: 1px;
    animation: scroll-wheel 2s infinite;
}

.scroll-indicator .arrow {
    display: flex;
    flex-direction: column;
    align-items: center;
}

.scroll-indicator .arrow span {
    display: block;
    width: 10px;
    height: 10px;
    border-bottom: 1px solid rgba(255, 255, 255, 0.3);
    border-right: 1px solid rgba(255, 255, 255, 0.3);
    transform: rotate(45deg);
    margin: -4px;
    animation: scroll-arrow 2s infinite;
}

.scroll-indicator .arrow span:nth-child(2) {
    animation-delay: 0.2s;
}

@keyframes scroll-wheel {
    0% {
        transform: translateY(0);
        opacity: 1;
    }

    100% {
        transform: translateY(15px);
        opacity: 0;
    }
}

@keyframes scroll-arrow {
    0% {
        opacity: 0;
        transform: rotate(45deg) translate(-5px, -5px);
    }

    50% {
        opacity: 1;
    }

    100% {
        opacity: 0;
        transform: rotate(45deg) translate(5px, 5px);
    }
}

/* Second View */
.second-view {
    min-height: 50vh;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    padding: 4rem 1rem;
    text-align: center;
}

.core-message {
    font-size: 2.5rem;
    margin-bottom: 4rem;
    letter-spacing: 0.1em;
    font-weight: 300;
    text-transform: uppercase;
}

.external-links {
    display: flex;
    flex-wrap: wrap;
    gap: 1.5rem;
    justify-content: center;
}

.external-links a {
    font-size: 0.9rem;
    padding: 0.5rem 1rem;
    border: 1px solid rgba(255, 255, 255, 0.2);
    border-radius: 999px;
    background: rgba(255, 255, 255, 0.05);
}

/* Footer */
footer {
    padding: 2rem;
    text-align: center;
    font-size: 0.8rem;
    opacity: 0.6;
}

footer nav {
    display: flex;
    justify-content: center;
    gap: 2rem;
}

/* About Page */
.about-page {
    display: flex;
    flex-direction: column;
    min-height: 100vh;
    justify-content: center;
}

.about-content {
    flex: 1;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    text-align: center;
    padding: 2rem;
}

.about-content p {
    margin-bottom: 0.5rem;
    font-size: 0.95rem;
}

@media (max-width: 768px) {
    .external-links {
        flex-direction: column;
        gap: 1rem;
        min-width: 200px;
    }

    .external-links a {
        width: 100%;
        text-align: center;
    }

    .core-message {
        font-size: 1.8rem;
        margin-bottom: 3rem;
    }

    .hero {
        background-position: 95% bottom;
    }
}

/* Restored Styles */

/* Glass Navigation */
.glass-nav {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 12px 5%;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    z-index: 100;
    background: rgba(0, 0, 0, 0.3);
    backdrop-filter: blur(10px);
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
    transition: all 0.3s ease, transform 0.4s ease;
}

.glass-nav.nav-hidden {
    transform: translateY(-100%);
}

.glass-nav .logo img {
    height: 48px;
    width: auto;
    display: block;
}

.glass-nav ul {
    display: flex;
    list-style: none;
    gap: 2rem;
}

.glass-nav a {
    color: rgba(255, 255, 255, 0.78);
    text-decoration: none;
    font-weight: 300;
    transition: opacity 0.3s ease;
}

.glass-nav a:hover {
    opacity: 1;
}

/* Hamburger Menu */
.hamburger-menu {
    display: none;
    flex-direction: column;
    justify-content: space-around;
    width: 30px;
    height: 30px;
    background: transparent;
    border: none;
    cursor: pointer;
    padding: 0;
    z-index: 101;
    position: relative;
}

.hamburger-menu span {
    width: 100%;
    height: 2px;
    background: rgba(255, 255, 255, 0.9);
    border-radius: 2px;
    transition: all 0.3s ease;
    transform-origin: center;
}

.hamburger-menu.active span:nth-child(1) {
    transform: rotate(45deg) translate(8px, 8px);
}

.hamburger-menu.active span:nth-child(2) {
    opacity: 0;
}

.hamburger-menu.active span:nth-child(3) {
    transform: rotate(-45deg) translate(8px, -8px);
}

/* Footer Restored */
footer {
    text-align: center;
    padding: 3rem 2rem;
    background: rgba(0, 0, 0, 0.85);
    color: rgba(255, 255, 255, 0.6);
    font-size: 0.85rem;
    border-top: 1px solid rgba(255, 255, 255, 0.1);
    opacity: 1;
}

footer nav {
    display: none;
}

/* Responsive */
@media (max-width: 1024px) {
    .hamburger-menu {
        display: flex;
        /* Removed absolute positioning to use flex layout */
        z-index: 101;
    }

    /* .glass-nav uses default PC styles (fixed, space-between, padding) */

    /* Removed center alignment for logo to match PC (Left aligned) */

    .nav-menu {
        position: fixed;
        top: 0;
        right: -100%;
        width: 350px;
        height: 100vh;
        background: rgba(0, 0, 0, 0.95);
        backdrop-filter: blur(20px);
        flex-direction: column;
        justify-content: flex-start;
        align-items: flex-start;
        padding: 7rem 3rem 4rem;
        gap: 1rem;
        transition: right 0.3s ease;
        border-left: 1px solid rgba(255, 255, 255, 0.1);
        z-index: 99;
    }

    .nav-menu.active {
        right: 0;
    }

    .nav-menu li {
        width: 100%;
        border-bottom: 1px solid rgba(255, 255, 255, 0.1);
        margin-bottom: 0.5rem;
    }

    .nav-menu a {
        display: block;
        padding: 1.5rem 0;
        font-size: 1.2rem;
    }
}

@media (max-width: 768px) {
    /* Removed padding override - inherits 12px 5% from PC */
    /* Removed logo height override - inherits 48px from PC */

    .external-links {
        flex-direction: column;
        gap: 1rem;
        min-width: 200px;
    }

    .external-links a {
        width: 100%;
        text-align: center;
    }
}