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

body {
    background-color: #000;
    background-image: url("image/yange_rbg-modified.png");
    background-size: 600px;
    background-repeat: no-repeat;
    background-position: center;
    background-attachment: fixed;
    color: #e0e0e0;
    font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
    font-size: 13px;
    text-transform: lowercase;
    overflow-x: hidden;
}

nav {
    display: flex;
    justify-content: flex-start;
    align-items: center;
    gap: 40px;
    padding: 0.5px 5%; 
    background-color: #fff;
    border-bottom: 1px solid #e0e0e0;
    position: fixed;
    top: 0;
    width: 100%;
    z-index: 1000;
}

nav a { 
    color: #000; 
    font-size: 15px; 
    letter-spacing: 2px; 
    text-decoration: none; 
}

nav a:hover { 
    color: #888; 
}

.main-container {
    width: 100%;
    min-height: 100vh;
    margin-top: 100px;
    padding: 0 5%;
    display: flex;
    flex-direction: column;
    align-items: center;
    position: relative;
}

.bg-dome {
    position: absolute;
    top: 150px;
    bottom: 0;
    left: 50%;
    transform: translateX(-50%);
    width: 90%;
    max-width: 1200px;
    border: 1px solid #222;
    border-bottom: none;
    border-radius: 300px 300px 0 0;
    z-index: -1;
}

.scrolling-content {
    width: 80%;
    max-width: 1000px;
    z-index: 1;
    display: flex;
    flex-direction: column;
    align-items: center;
}

.intro-text { 
    align-self: flex-start; 
    margin: 50px 0 50px 20px; 
    color: #aaa; 
    line-height: 1.6; 
    max-width: 500px; 
}

.home-page { 
    overflow: hidden; 
}

.hero-content {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 20px;
}

.hero-section {
    display: flex;
    justify-content: center;
    align-items: center;
    height: 100vh; 
    background-color: transparent; 
    animation: fadeIn 2s ease-in;
}

.center-logo {
    max-width: 100%;
    height: auto;
    display: block;
    margin: 0 auto;
}

@keyframes fadeIn {
    from { opacity: 0; }
    to { opacity: 1; }
}

.grid { 
    display: grid; 
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr)); 
    gap: 20px; 
    width: 100%; 
}

.grid-item { 
    width: 100%; 
    aspect-ratio: 1/1; 
    background-color: rgba(17, 17, 17, 0.9); 
    border: 1px solid #000; 
    display: flex; 
    align-items: flex-end; 
    padding: 10px; 
}

.project-box { 
    width: 100%; 
    border: 1px solid #222; 
    padding: 30px; 
    margin-bottom: 30px; 
    background-color: rgba(3, 3, 3, 0.9); 
}

footer {
    position: absolute;
    bottom: 30px;
    width: 100%;
    text-align: center;
    color: #444;
    font-size: 10px;
    letter-spacing: 5px;
    text-transform: lowercase;
}

.home-page footer {
    position: absolute;
    bottom: 20px;
}

.catalog-link {
    color: #888;
    text-decoration: none;
    letter-spacing: 4px;
    font-size: 14px;
    transition: 0.3s;
    margin-top: -20px;
}

.catalog-link:hover {
    color: #fff;
}

@media (max-width: 768px) {
    nav {
        gap: 15px;
        justify-content: center;
        flex-wrap: wrap;
        padding: 10px 5%;
    }

    nav a {
        font-size: 11px;
        letter-spacing: 1px;
    }

    .main-container {
        margin-top: 130px;
    }

    .bg-dome {
        width: 95%;
        border-radius: 150px 150px 0 0;
        top: 100px;
    }

    .scrolling-content {
        width: 95%;
    }

    .intro-text {
        margin-left: 0;
        font-size: 12px;
    }

    model-viewer {
        height: 350px !important;
    }

    .audio-track {
        flex-direction: column;
        align-items: flex-start;
        gap: 10px;
    }

    audio {
        width: 100%;
    }
    
    .center-logo {
        width: 60%;
    }

    .hero-section img {
        max-width: 85%;
        height: auto;
    }

    .catalog-link {
        font-size: 12px;
        letter-spacing: 2px;
    }
}