@import url('https://fonts.googleapis.com/css2?family=Poppins:wght@100;200;300;400;500;600;700&display=swap');
@import url('https://fonts.googleapis.com/css2?family=Press+Start+2P&display=swap');
@import url('https://fonts.googleapis.com/css2?family=VT323&display=swap');

* {
    padding: 0;
    margin: 0;
    font-family: 'VT323', monospace;
    box-sizing: border-box;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
}

html {
    scroll-behavior: smooth;
    scroll-padding-top: 80px;
    height: 100%;
}

body {
    width: 100%;
    min-height: 100%;
    margin: 0;
    padding: 0;
    overflow-x: hidden;
    display: flex;
    flex-direction: column;
    background: linear-gradient(180deg, #0d0d12 0%, #13131f 50%, #0a0a0f 100%);
    background-attachment: fixed;
}

main {
    flex: 1 0 auto;
    display: flex;
    flex-direction: column;
}

.logo-group {
    display: flex;
    align-items: center;
    gap: 20px;
}

nav {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 60px;
    background: linear-gradient(180deg, rgba(13, 13, 18, 0.85), rgba(10, 10, 16, 0.85));
    backdrop-filter: blur(20px);
    border-bottom: 3px solid #1a1a25;
    z-index: 1000;
    transition: all 0.3s ease;
}

.nav-container {
    width: 100%;
    gap: 15px;
    max-width: 1400px;
    height: 100%;
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 0 20px;
    margin: 0 auto;
}

.nav-logo a {
    font-family: 'VT323', monospace;
    font-size: 1.8rem;
    color: #ffffff;
    text-decoration: none;
    letter-spacing: 2px;
    text-shadow: 2px 2px 0 #000;
    text-transform: uppercase;
    padding: 0; 
    padding-left: 22px;
    display: block;
}

.badge {
    background: linear-gradient(135deg, #ff6b6b 0%, #feca57 100%);
    padding: 4px 10px;
    border-radius: 3px;
    font-size: 0.7rem;
    color: #2d3436;
    font-weight: bold;
    box-shadow: 2px 2px 0 #000;
    animation: badgeGlow 2s ease-in-out infinite;
}

@keyframes badgeGlow {
    0%, 100% {
        box-shadow: 2px 2px 0 #000;
    }
    50% {
        box-shadow: 2px 2px 0 #000, 0 0 10px rgba(255, 107, 107, 0.5);
    }
}

.links {
    display: flex;
    gap: 20px;
    align-items: center;
}

.links a {
    font-family: 'VT323', monospace;
    font-size: 1.2rem;
    color: #4a5568;
    text-decoration: none;
    padding: 8px 16px;
    transition: all 0.3s ease;
    text-transform: uppercase;
    letter-spacing: 1px;
    position: relative;
}

.links a::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 50%;
    transform: translateX(-50%);
    width: 0;
    height: 2px;
    background: #ffffff;
    transition: width 0.3s ease;
}

.links a:hover {
    color: #ffffff;
}


.hamburger-menu {
    display: none;
    cursor: pointer;
    padding: 8px;
    z-index: 1002;
    position: relative;
}

.hamburger-icon {
    width: 20px;
    height: 14px;
    position: relative;
}

.hamburger-icon::before {
    display: none;
}

.hamburger-icon.active::before {
    display: none;
}

.hamburger-icon span {
    display: block;
    position: absolute;
    height: 2px;
    width: 100%;
    background: #ffffff;
    transition: all 0.3s ease;
    box-shadow: 1px 1px 0 #000;
}

.hamburger-icon span:nth-child(1) { top: 0; }
.hamburger-icon span:nth-child(2) { top: 6px; }
.hamburger-icon span:nth-child(3) { top: 12px; }

.hamburger-icon.active span:nth-child(1) {
    transform: translateY(6px) rotate(45deg);
    background: #ff6b6b;
}

.hamburger-icon.active span:nth-child(2) {
    opacity: 0;
    transform: scale(0);
}

.hamburger-icon.active span:nth-child(3) {
    transform: translateY(-6px) rotate(-45deg);
    background: #ff6b6b;
}

.no-scroll {
    overflow: hidden !important;
    height: 100vh;
}

.mobile-menu {
    position: fixed;
    top: 0;
    left: 0;
    width: 100vw;
    height: 100vh;
    background: rgba(13, 13, 18, 0.98);
    display: flex;
    justify-content: center;
    align-items: center;
    z-index: 999;
    opacity: 0;
    visibility: hidden;
    transition: opacity 0.3s ease, visibility 0.3s ease;
    box-sizing: border-box;
}

.mobile-menu.active {
    opacity: 1;
    visibility: visible;
    transform: translateY(0);
}

.mobile-menu .links {
    flex-direction: column;
    gap: 25px;
}

.mobile-menu .links a {
    font-size: 1.3rem;
    padding: 12px 30px;
    position: relative;
    transition: all 0.3s ease;
}

section {
    width: 100%;
    min-height: 100vh;
    display: block;
    position: relative;
}


#home {
    display: flex;
    justify-content: center;
    align-items: center;
    padding: 100px 20px;
    position: relative;
    min-height: 100vh;
}

.hero-title {
    text-align: center;
    position: relative;
    z-index: 2;
}

.hero-title h1 {
    font-family: 'VT323', monospace;
    font-size: 5rem;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    margin-bottom: 20px;
    letter-spacing: 1px;
    animation: titlePulse 3s ease-in-out infinite;
}

@keyframes titlePulse {
    0%, 100% {
        filter: brightness(1);
    }
    50% {
        filter: brightness(1.2);
    }
}

.hero-title .subtitle {
    font-family: 'VT323', monospace;
    font-size: 1.2rem;
    color: #aab2c0;
    letter-spacing: 1px;
    text-transform: uppercase;
    margin-bottom: 30px;
}

.hero-title .description {
    font-family: 'VT323', monospace;
    font-size: 1rem;
    color: #8892b0;
    line-height: 2;
    max-width: 700px;
    margin: 0 auto;
    text-shadow: 1px 1px 2px rgba(0, 0, 0, 0.5);
}


.decoration-circles {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    pointer-events: none;
    z-index: 0;
    overflow: hidden;
}

.decoration-circles::before,
.decoration-circles::after {
    content: '';
    position: fixed;
    border-radius: 50%;
}

.decoration-circles::before {
    width: 300px;
    height: 300px;
    top: 10%;
    left: -50px;
    border: 2px dashed rgba(102, 126, 234, 0.15);
    animation: rotateCircle 30s linear infinite;
    opacity: 0.5;
}

.decoration-circles::after {
    width: 250px;
    height: 250px;
    bottom: 15%;
    right: -30px;
    border: 2px dotted rgba(118, 75, 162, 0.15);
    animation: rotateCircle 25s linear infinite reverse;
}

.decoration-circles .circle-1,
.decoration-circles .circle-2,
.decoration-circles .circle-3,
.decoration-circles .circle-4 {
    position: fixed;
    border-radius: 50%;
}

.decoration-circles .circle-1 {
    width: 150px;
    height: 150px;
    top: 60%;
    left: 10%;
    border: 3px solid rgba(254, 202, 87, 0.08);
    opacity: 0.5;
}

.decoration-circles .circle-2 {
    width: 200px;
    height: 200px;
    top: 20%;
    right: 15%;
    border: 2px solid rgba(255, 107, 107, 0.08);
    opacity: 0.5;
}

.decoration-circles .circle-3 {
    width: 100px;
    height: 100px;
    bottom: 30%;
    left: 30%;
    border: 4px solid rgba(38, 222, 129, 0.08);
    opacity: 0.5;
}

.decoration-circles .circle-4 {
    width: 180px;
    height: 180px;
    top: 40%;
    left: 60%;
    border: 2px solid rgba(240, 147, 251, 0.08);
    opacity: 0.5;
}

@keyframes rotateCircle {
    0% { transform: rotate(0deg); }
    100% { transform: rotate(360deg); }
}

@keyframes pulseCircle {
    0%, 100% {
        transform: scale(1);
        opacity: 0.3;
    }
    50% {
        transform: scale(1.1);
        opacity: 0.6;
    }
}


.ornament {
    position: fixed;
    width: 100%;
    height: 100%;
    pointer-events: none;
    z-index: 0;
}

.ornament::before,
.ornament::after {
    content: '';
    position: fixed;
    width: 200px;
    height: 200px;
    border: 2px solid rgba(102, 126, 234, 0.2);
    border-radius: 50%;
    animation: ornamentRotate 20s linear infinite;
    opacity: 0.5;
}

.ornament::before {
    top: -100px;
    left: -50px;
    border-style: dashed;
}

.ornament::after {
    bottom: -100px;
    right: -50px;
    border-style: dotted;
    animation-delay: 10s;
}

@keyframes ornamentRotate {
    0% { transform: rotate(0deg); }
    100% { transform: rotate(360deg); }
}


#about {
    padding: 100px 20px 80px;
    background: transparent;
    min-height: 100vh;
}

#about .center-text h2 {
    font-family: 'VT323', monospace;
    font-size: 1.2rem;
    color: #ffffff;
    text-align: center;
    margin-bottom: 50px;
    margin-top: 40px;
    letter-spacing: 3px;
    text-shadow: 3px 3px 0 #000;
    text-transform: uppercase;
}

#about .about-content {
    display: flex;
    justify-content: center;
    gap: 30px;
    flex-wrap: wrap;
    max-width: 1000px;
    margin: 0 auto;
    position: relative;
    z-index: 1;
}

.about-box-link {
    text-decoration: none;
    color: inherit;
    transition: transform 0.3s ease;
}

#about .about-box {
    background: linear-gradient(180deg, rgba(45, 55, 72, 0.95), rgba(26, 26, 46, 0.95));
    border: 3px solid #4a5568;
    padding: 30px 25px;
    width: 280px;
    text-align: center;
    position: relative;
    box-shadow: 5px 5px 0 #1a1a2e;
    transition: all 0.1s ease;
}

#about .about-box:hover {
    border-color: #feca57;
    box-shadow: 7px 7px 0 #1a1a2e;
}

#about .about-box:nth-child(2) {
    border-color: #feca57;
}

#about .about-box:nth-child(3) {
    border-color: #26de81;
}

#about .about-box h3 {
    font-size: 1.2rem;
    color: #ffffff;
    margin-bottom: 15px;
    text-shadow: 2px 2px 0 #000;
    text-transform: uppercase;
}

#about .about-box p {
    font-size: 0.9rem;
    color: #aab2c0;
    line-height: 1.7;
    text-align: center;
    max-width: 220px;
    margin: 0 auto;
}

.about-img {
    width: 70px;
    height: 70px;
    border-radius: 50%;
    margin-bottom: 20px;
    object-fit: cover;
    border: 3px solid #4a5568;
}


#project {
    padding: 100px 20px 80px;
    background: transparent;
    min-height: 100vh;
}

#project .center-text h2 {
    font-family: 'VT323', monospace;
    font-size: 1.2rem;
    color: #ffffff;
    text-align: center;
    margin-bottom: 50px;
    margin-top: 40px;
    letter-spacing: 3px;
    text-shadow: 3px 3px 0 #000;
    text-transform: uppercase;
}

#project .project-content {
    display: flex;
    justify-content: center;
    gap: 30px;
    flex-wrap: wrap;
    max-width: 1000px;
    margin: 0 auto;
    position: relative;
    z-index: 1;
}

#project .project-box {
    background: linear-gradient(180deg, rgba(45, 55, 72, 0.95), rgba(26, 26, 46, 0.95));
    border: 3px solid #ff6b6b;
    padding: 20px;
    width: 300px;
    position: relative;
    box-shadow: 5px 5px 0 #1a1a2e;
    transition: all 0.3s ease;
}

.quest-marker {
    position: absolute;
    top: -15px;
    right: -15px;
    background: #ff6b6b;
    color: #ffffff;
    padding: 8px 15px;
    font-size: 0.8rem;
    box-shadow: 2px 2px 0 #1a1a2e;
    animation: questPing 1.5s ease-in-out infinite;
    text-transform: uppercase;
}

@keyframes questPing {
    0%, 100% {
        transform: scale(1);
    }
    50% {
        transform: scale(1.1);
    }
}

#project .project-box img {
    width: 100%;
    height: 170px;
    object-fit: cover;
    border: 3px solid #4a5568;
    margin-bottom: 15px;
    box-shadow: 3px 3px 0 #1a1a2e;
}

#project .project-info h3 {
    font-size: 1.1rem;
    color: #ffffff;
    margin-bottom: 12px;
    text-shadow: 2px 2px 0 #000;
    text-transform: uppercase;
}

#project .project-info p {
    font-size: 0.85rem;
    color: #aab2c0;
    line-height: 1.6;
    margin-bottom: 12px;
}

#project .project-info small {
    font-size: 0.75rem;
    color: #8892b0;
    display: block;
    padding: 5px;
    background: #2d3748;
    border: 2px solid #4a5568;
}


#catalog {
    width: 100%;
    flex: 1 0 auto;
    padding: 100px 20px 80px;
    background: transparent;
    max-width: 100%;
    box-sizing: border-box;
}

.catalog-container {
    max-width: 1100px;
    margin: 0 auto;
    width: 100%;
    box-sizing: border-box;
    overflow: hidden;
}

.catalog-container h2 {
    font-family: 'VT323', monospace;
    font-size: 1.2rem;
    color: #ffffff;
    text-align: center;
    margin-bottom: 15px;
    text-shadow: 3px 3px 0 #000;
    text-transform: uppercase;
}

.catalog-container .subtitle {
    color: #8892b0;
    font-size: 0.95rem;
    text-align: center;
    margin-bottom: 60px;
    font-weight: 300;
}

.catalog-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 20px;
    width: 100%;
}

.catalog-item {
    background: linear-gradient(180deg, rgba(45, 55, 72, 0.95), rgba(26, 26, 46, 0.95));
    border: 3px solid #4a5568;
    text-decoration: none;
    display: block;
    position: relative;
    box-shadow: 5px 5px 0 #1a1a2e;
    transition: all 0.1s ease;
    box-sizing: border-box;
}

.catalog-item:hover {
    border-color: #feca57;
    box-shadow: 7px 7px 0 #1a1a2e;
}

.item-header {
    position: absolute;
    top: -12px;
    left: 50%;
    transform: translateX(-50%);
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    padding: 6px 20px;
    color: #ffffff;
    font-size: 0.8rem;
    font-weight: bold;
    box-shadow: 3px 3px 0 #1a1a2e;
    z-index: 10;
    text-transform: uppercase;
    border-radius: 4px;
    white-space: nowrap;
    box-sizing: border-box;
}

.catalog-item img {
    width: 100%;
    height: 180px;
    object-fit: cover;
    border-bottom: 3px solid #4a5568;
    background: #2d3748;
    display: block;
    box-sizing: border-box;
}

.catalog-item-content {
    padding: 25px;
}

.catalog-item h3 {
    color: #ffffff;
    font-size: 1.15rem;
    margin-bottom: 12px;
    text-shadow: 2px 2px 0 #000;
    text-transform: uppercase;
}

.catalog-item p {
    color: #aab2c0;
    font-size: 0.9rem;
    line-height: 1.6;
    margin-bottom: 15px;
}

.catalog-item .category-tag {
    display: inline-block;
    padding: 6px 15px;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: #ffffff;
    font-size: 0.8rem;
    font-weight: bold;
    border: 2px solid #1a1a2e;
    box-shadow: 2px 2px 0 #1a1a2e;
    text-shadow: 1px 1px 0 #1a1a2e;
    text-transform: uppercase;
}


#contact {
    flex: 1 0 auto;
    width: 100%;
    box-sizing: border-box;
    padding: 120px 15px 50px;
    display: flex;
    flex-direction: column;
    align-items: center;
    position: relative;
}

.contact-container {
    max-width: 550px;
    width: 100%;
    text-align: center;
    margin: 0 auto;
}

.contact-container h2 {
    font-family: 'VT323', monospace;
    font-size: 1.2rem;
    color: #ffffff;
    margin-bottom: 15px;
    text-shadow: 3px 3px 0 #000;
    text-transform: uppercase;
}

.contact-container .subtitle {
    color: #8892b0;
    font-size: 0.95rem;
    margin-bottom: 50px;
    font-weight: 300;
}

.contact-form {
    display: flex;
    flex-direction: column;
    gap: 18px;
    max-width: 450px;
    margin: 0 auto 50px;
}

.form-group input,
.form-group textarea {
    width: 100%;
    padding: 16px 20px;
    background: #2d3748;
    border: 3px solid #4a5568;
    box-shadow: 4px 4px 0 #1a1a2e;
    color: #ffffff;
    font-size: 0.95rem;
    font-family: 'VT323', monospace;
    outline: none;
    transition: all 0.3s ease;
}

.form-group input:focus,
.form-group textarea:focus {
    border-color: #667eea;
    box-shadow: 5px 5px 0 #1a1a2e;
}

.form-group input::placeholder,
.form-group textarea::placeholder {
    color: #636e72;
}

.form-group textarea {
    min-height: 130px;
    resize: vertical;
}

.contact-form button {
    padding: 16px 40px;
    background: #2d3748;
    border: 3px solid #4a5568;
    color: #636e72;
    font-size: 1rem;
    font-weight: bold;
    cursor: pointer;
    font-family: 'VT323', monospace;
    text-transform: uppercase;
    transition: all 0.3s ease;
    box-shadow: 4px 4px 0 #1a1a2e;
}

.contact-form button:hover {
    color: #ffffff;
}

.contact-info {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 50px;
    flex-wrap: wrap;
}

.contact-item a {
    display: flex;
    align-items: center;
    gap: 15px;
    color: #aab2c0;
    font-size: 0.95rem;
    text-decoration: none;
    padding: 12px 25px;
    background: #2d3748;
    border: 3px solid #4a5568;
    box-shadow: 3px 3px 0 #1a1a2e;
    transition: all 0.3s ease;
}


footer {
    flex-shrink: 0;
    background: linear-gradient(180deg, rgba(13, 13, 18, 0.85), rgba(10, 10, 16, 0.85));
    backdrop-filter: blur(20px);
    border-top: 3px solid #1a1a25;
    padding: 25px 40px;
    z-index: 10;
    margin-top: auto;
    box-shadow: 0 -5px 0 #0a0a10;
    position: relative;
    text-align: left;
    width: 100%;
    box-sizing: border-box;
    bottom: 0;
    left: 0;
}

footer p {
    color: #ffffff;
    font-size: 0.85rem;
    font-weight: 300;
}

.music-container {
    display: flex;
    align-items: center;
}

.music-dot-btn {
    background: none;
    border: 2px solid #ffffff; 
    width: 24px;
    height: 24px;
    border-radius: 60%;
    color: #ffffff;
    cursor: pointer;
    display: flex;
    justify-content: center;
    align-items: center;
    position: relative;
    font-size: 10px;
    padding: 0;
}

.music-dot-btn::after {
    content: '';
    position: absolute;
    width: 2px;
    height: 0;
    background-color: #ff4757; 
    transform: rotate(45deg);
    z-index: 5;
}

.music-dot-btn.muted::after {
    height: 100%;
}

.dot-indicator {
    display: none; 
}

.music-dot-btn:hover {
    color: white;
}


@media screen and (max-width: 1024px) {

    * {
        box-sizing: border-box;
    }
    
    html, body {
        overflow-x: hidden;
        height: auto !important;
        min-height: 100vh;
        margin: 0;
        padding: 0;
        max-width: 100vw;
        position: relative;
        background-color: #0b0b13;
    }
    
    .nav-container .links {
        display: none;
    }
    
    .hamburger-menu {
        display: block;
    }
    
    .logo-group {
        gap: 5px;
    }

    nav {
        height: 55px;
        max-width: 100vw;
        box-sizing: border-box;
    }
    
    .nav-container {
        padding: 0 20px;
        justify-content: space-between;
        max-width: 100vw;
        box-sizing: border-box;
    }
    
    .nav-logo a {
        font-size: 1.5rem;
        padding: 6px 10px;
    }
    
    .music-dot-btn {
        width: 22px;
        height: 22px;
        font-size: 8px;
    }

    .hero-title h1 {
        font-size: 3rem;
    }
    
    .hero-title .subtitle {
        font-size: 1rem;
        margin-bottom: 20px;
    }
    
    .hero-title .description {
        font-size: 0.9rem;
        max-width: 90%;
    }
    

    #about {
        padding: 80px 15px 60px;
        max-width: 100vw;
        overflow-x: hidden;
    }
    
    #about .about-content {
        gap: 20px;
        max-width: 100%;
        justify-content: center;
        align-items: center;
    }
    
    #about .about-box {
        width: 100%;
        max-width: 320px;
        padding: 25px 20px;
        margin: 0 auto;
        text-align: center;
    }
    
    #about .about-box h3 {
        font-size: 1.1rem;
    }
    
    #about .about-box p {
        font-size: 0.85rem;
        max-width: 100%;
    }
    

    #project {
        padding: 80px 15px 60px;
        max-width: 100vw;
        overflow-x: hidden;
    }
    
    #project .project-content {
        gap: 20px;
        max-width: 100%;
        justify-content: center;
        align-items: center;
    }
    
    #project .project-box {
        width: 100%;
        max-width: 320px;
        padding: 15px;
        margin: 0 auto;
        text-align: center;
    }
    
    #project .project-box img {
        height: 150px;
    }
    
    #project .project-info h3 {
        font-size: 1rem;
    }
    
    #project .project-info p {
        font-size: 0.7rem;
    }
    

    #catalog {
        flex: 1 0 auto;
        padding: 80px 15px 60px;
        overflow-x: hidden;
        box-sizing: border-box;
        width: 100%;
    }
    
    .catalog-container {
        max-width: 100%;
        padding: 0 10px;
        box-sizing: border-box;
        width: 100%;
    }
    
    .catalog-grid {
        grid-template-columns: repeat(auto-fill, minmax(250px, 1fr));
        gap: 20px;
        justify-content: center;
        width: 100%;
        box-sizing: border-box;
    }
    
    .catalog-item {
        max-width: 300px;
        margin: 0 auto;
        box-sizing: border-box;
        width: 100%;
    }
    

    #contact {
        flex: 1 0 auto;
        padding: 80px 15px 50px;
        overflow-x: hidden;
    }
    
    .contact-form {
        gap: 15px;
        max-width: 100%;
    }
    
    .form-group input,
    .form-group textarea {
        padding: 14px 16px;
        font-size: 0.9rem;
    }
    
    .contact-form button {
        padding: 14px 30px;
        font-size: 0.9rem;
    }
    
    .contact-info {
        gap: 15px;
        flex-direction: column;
        width: 100%;
    }
    
    .contact-item a {
        width: 100%;
        justify-content: center;
        padding: 10px 20px;
        font-size: 0.9rem;
    }
    

    footer {
        padding: 20px 15px;
        text-align: left;
        width: 100%;
        box-sizing: border-box;
    }
    
    footer p {
        font-size: 0.7rem;
    }
    
    

    .decoration-circles .circle-1 {
        width: 100px;
        height: 100px;
    }
    
    .decoration-circles .circle-2 {
        width: 150px;
        height: 150px;
    }
    
    .decoration-circles .circle-3 {
        width: 80px;
        height: 80px;
    }
    
    .decoration-circles .circle-4 {
        width: 120px;
        height: 120px;
    }
}

@media screen and (max-width: 480px) {

    * {
        box-sizing: border-box;
    }
    
    html, body {
        overflow-x: hidden;
        height: auto !important;
        margin: 0;
        padding: 0;
        max-width: 100vw;
        position: relative;
        background-color: #0b0b13;
    }
    
    .nav-logo a {
        font-size: 1.2rem;
        padding: 4px 8px;
    }
    
    .music-dot-btn {
        width: 20px;
        height: 20px;
    }

    .hero-title h1 {
        font-size: 2.5rem;
    }
    
    .hero-title .subtitle {
        font-size: 0.9rem;
    }
    
    .hero-title .description {
        font-size: 0.85rem;
    }
    
    #about .about-box,
    #project .project-box {
        padding: 20px 15px;
    }
    

    #catalog {
        flex: 1 0 auto;
        padding: 80px 10px 60px;
        overflow-x: hidden;
        box-sizing: border-box;
        width: 100%;
    }
    
    .catalog-container {
        padding: 0 5px;
        box-sizing: border-box;
        width: 100%;
    }
    
    .catalog-grid {
        grid-template-columns: repeat(auto-fill, minmax(220px, 1fr));
        gap: 15px;
        justify-content: center;
        width: 100%;
        box-sizing: border-box;
    }
    
    .catalog-item {
        max-width: 280px;
        margin: 0 auto;
        box-sizing: border-box;
        width: 100%;
    }

    .mobile-menu {
        width: 100vw;
        height: 100vh;
        top: 0;
        max-width: 100vw;
        overflow-x: hidden;
        box-sizing: border-box;
    }

    .mobile-menu .links a {
        font-size: 1rem;
        padding: 8px 20px;
    }

    .hamburger-icon {
        width: 18px;
        height: 12px;
    }

    
    .hamburger-icon span {
        height: 1.5px;
    }
    
    .hamburger-icon span:nth-child(1) { top: 0; }
    .hamburger-icon span:nth-child(2) { top: 5px; }
    .hamburger-icon span:nth-child(3) { top: 10px; }
    
    .hamburger-icon.active span:nth-child(1) {
        transform: translateY(5px) rotate(45deg);
    }
    
    .hamburger-icon.active span:nth-child(3) {
        transform: translateY(-5px) rotate(-45deg);
    }
    
    .music-container {
        margin-left: 10px;
    }
    .music-btn {
        padding: 4px 8px;
        font-size: 0.8rem;
    }
}


@media screen and (max-width: 400px) {

    * {
        box-sizing: border-box;
    }
    
    html, body {
        overflow-x: hidden;
        height: auto !important;
        min-height: 100vh;
        margin: 0;
        padding: 0;
        max-width: 100vw;
        position: relative;
        background-color: #0b0b13;
    }
    
    .nav-logo a {
        font-size: 1rem;
        padding: 3px 6px;
    }
    
    nav {
        height: 45px;
        box-sizing: border-box;
    }
    
    .nav-container {
        padding: 0 10px;
        box-sizing: border-box;
    }

    .logo-group {
        gap: 3px;
    }
    

    .hamburger-menu {
        display: block !important;
    }
    
    .hamburger-icon {
        width: 16px;
        height: 10px;
    }
    
    .hamburger-icon span {
        height: 1.5px;
    }
    
    .hamburger-icon span:nth-child(1) { top: 0; }
    .hamburger-icon span:nth-child(2) { top: 4.5px; }
    .hamburger-icon span:nth-child(3) { top: 9px; }
    
    .hamburger-icon.active span:nth-child(1) {
        transform: translateY(4.5px) rotate(45deg);
    }
    
    .hamburger-icon.active span:nth-child(3) {
        transform: translateY(-4.5px) rotate(-45deg);
    }
    
    .hero-title h1 {
        font-size: 2rem;
    }
    
    .hero-title .subtitle {
        font-size: 0.8rem;
    }
    
    .hero-title .description {
        font-size: 0.75rem;
        max-width: 95%;
    }
    
    #home {
        padding: 70px 10px;
    }
    
    #about .about-box,
    #project .project-box {
        padding: 15px 12px;
    }
    

    #catalog {
        padding: 70px 5px 50px;
        overflow-x: hidden;
        box-sizing: border-box;
        width: 100%;
    }
    
    .catalog-container {
        padding: 0 5px;
        box-sizing: border-box;
        width: 100%;
    }
    
    .catalog-grid {
        grid-template-columns: repeat(auto-fill, minmax(180px, 1fr));
        gap: 12px;
        justify-content: center;
        width: 100%;
        box-sizing: border-box;
    }
    
    .catalog-item {
        max-width: 220px;
        margin: 0 auto;
        box-sizing: border-box;
        width: 100%;
    }
    
    .catalog-item-content {
        padding: 15px;
    }
    
    .catalog-item h3 {
        font-size: 1rem;
    }
    
    .catalog-item p {
        font-size: 0.8rem;
    }
    

    .mobile-menu {
        width: 100vw;
        height: 100vh;
        top: 0;
        max-width: 100vw;
        overflow-x: hidden;
        box-sizing: border-box;
    }
    

    footer {
        padding: 20px 15px;
        max-width: 100vw;
        width: 100%;
        box-sizing: border-box;
    }
    
    .mobile-menu .links a {
        font-size: 0.9rem;
        padding: 6px 15px;
    }
    
    .mobile-menu .links {
        gap: 15px;
    }
    

    .catalog-grid, .hero-title, .mobile-menu {
        -webkit-overflow-scrolling: touch;
        will-change: transform;
}

    main, section, header, footer {
        width: 100%;
        overflow-x: hidden;
        box-sizing: border-box;
    }

}

#snowCanvas {
    position: fixed !important;
    top: 0 !important;
    left: 0 !important;
    width: 100vw !important;
    height: 100vh !important;
    z-index: 0 !important;
    pointer-events: none !important;
    background: transparent !important;
    display: block !important;
}