.Home {
    position: relative;
    width: 100%;
    height: 100svh;
    background-color: #ffffff; /* slightly closer to the image, maybe #f4dac4 */
 
    display: flex;
    align-items: center;
    overflow: hidden;
}

.Home header {
    /* removed absolute positioning since we moved it to the menu-btn */
    z-index: 10;
}

.menu-btn {
    display: flex;
    flex-direction: column;
    gap: 7px;
    cursor: pointer;
}

.menu-btn span {
    display: block;
    width: 40px;
    height: 5px;
    background-color: #fff;
    border-radius: 8px;
}

.home-content {
    display: flex;
    width: 100%;
    height: 100%;
    align-items: center;
    position: relative;
    padding-left: 5vw;
    max-width: 1800px;
    margin: 0 auto;
}

.text-content {
    max-width: 450px;
    z-index: 5;
    position: relative;
    margin-top: -40svh;
}

.text-content h2 {
    font-size: 2rem;
    font-weight: 900;
    color: #111;
    margin-bottom: 2rem;
    line-height: 1.2;
    font-family: Arial, Helvetica, sans-serif;
}

.text-content p {
    font-size: 1.15rem;
    color: #333;
    line-height: 1.5;
    font-weight: 400;
    letter-spacing: 0.01em;
}

.graphics {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    display: flex;
    justify-content: center;
    align-items: center;
    pointer-events: none;
}

.text-bg, .text-fg {
    position: absolute;
    font-size: 8.5vw;
    font-weight: 900;
    letter-spacing: 0.02em;
    top: 60%;
    left: 50%;
    transform: translate(-50%, -50%);
    white-space: nowrap;
    margin: 0;
    line-height: 1;
    font-family: Arial, Helvetica, sans-serif;
}

.text-bg {
    color: #0b0b0b;
    z-index: 1; 
}

.character-img {
    position: absolute;
    bottom: -40svh;
    left: 48%; /* slightly offset left to match perspective */
    transform: translateX(-50%);
    height: 140svh;
    width: auto;
    object-fit: contain;
    z-index: 2;
}

.text-fg {
    color: transparent;
    -webkit-text-stroke: 1.5px #0b0b0b;
    z-index: 3;
}

body.no-scroll {
    overflow: hidden;
}

/* --- Navigation Menu --- */
.nav-menu {
    position: fixed;
    top: 0;
    right: -100%;
    width: 320px;
    max-width: 100vw; /* Prevent menu from expanding page width */
    height: 100svh;
    background-color: #111;
    color: #fff;
    transition: 0.5s cubic-bezier(0.77, 0, 0.175, 1);
    z-index: 9;
    padding: 6rem 3rem 3rem;
    overflow-y: auto;
    box-shadow: -10px 0 30px rgba(0,0,0,0.1);
}

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

.nav-menu ul {
    list-style: none;
    display: flex;
    flex-direction: column;
    gap: 1rem;
}

.nav-menu ul li a {
    text-decoration: none;
    color: #fff;
    font-size: 1.6rem;
    font-weight: 800;
    display: flex;
    flex-direction: column;
    transition: 0.3s ease;
    font-family: Arial, Helvetica, sans-serif;
}

.nav-menu ul li a:hover {
    color: #FFE0B4;
    transform: translateX(10px);
}

.nav-menu ul li a span {
    font-size: 0.85rem;
    font-weight: 400;
    color: #888;
    margin-top: 0.2rem;
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
}

/* Menu Button Animation */
.menu-btn {
    position: fixed;
    top: 3rem;
    right: 3rem;
    z-index: 100;
    transition: 0.3s ease;
    mix-blend-mode: difference;
}

.menu-btn.active span:nth-child(1) {
    transform: translateY(12px) rotate(45deg);
    background-color: #fff;
}

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

.menu-btn.active span:nth-child(3) {
    transform: translateY(-12px) rotate(-45deg);
    background-color: #fff;
}

/* --- Responsive Design for Home Section --- */

@media (max-width: 1400px) {
    .character-img {
        height: 120svh;
        bottom: -30svh;
    }
    .text-content {
        margin-top: -30svh;
    }
}

@media (max-width: 1024px) {
    .text-content h2 {
        font-size: 1.75rem;
    }
    .text-content p {
        font-size: 1.05rem;
    }
    .text-bg, .text-fg {
        font-size: 10vw;
    }
    .character-img {
        height: 100svh;
        bottom: -20svh;
    }
    .home-content {
        padding-left: 8vw;
    }
}

@media (max-width: 768px) {
    .home-content {
        padding-left: 0;
        justify-content: center;
        text-align: center;
    }
    .text-content {
        margin-top: -40svh;
        max-width: 80%;
    }
    .text-content h2 br, .text-content p br {
        display: none; 
    }
    .text-bg, .text-fg {
        font-size: 10vw;
        top: 65%;
    }
    .character-img {
        height: 80svh;
        bottom: -10svh;
    }
    .menu-btn {
        position: absolute;
    }
}

@media (max-width: 600px) {
    .nav-menu {
        width: 100%;
        padding: 6rem 2rem 2rem;
    }
    .nav-menu ul {
        gap: 1rem;
    }
    .nav-menu ul li a {
        font-size: 1.5rem;
    }
    .text-content {
        margin-top: -45svh;
        max-width: 90%;
    }
    .text-content h2 {
        font-size: 1.5rem;
        margin-bottom: 1rem;
    }
    .text-content p {
        font-size: 0.95rem;
    }
    .text-bg, .text-fg {
        font-size: 14vw;
        top: 65%;
    }
    .character-img {
        height: 65svh;
        bottom: -5svh;
    }
    .menu-btn {
        top: 2rem;
        right: 2rem;
    }
    .menu-btn span {
        width: 35px;
        height: 4px;
    }
}

@media (max-width: 480px) {
    .text-content {
        margin-top: -40svh;
    }
    .text-bg, .text-fg {
        font-size: 11vw;
        top: 60%;
    }
    .character-img {
        height: 90svh;
        bottom: -20svh;
    }
    .text-content h2 {
        font-size: 1.35rem;
    }
    .text-content p {
        font-size: 0.85rem;
    }
}

/* Fix for small height screens so menu items don't overflow */
@media (max-height: 800px) {
    .nav-menu {
        padding-top: 6rem;
    }
    .nav-menu ul {
        gap: 1rem;
    }
    .nav-menu ul li a {
        font-size: 1.5rem;
    }
}

@media (max-height: 600px) {
    .nav-menu {
        padding-top: 4rem;
    }
    .nav-menu ul {
        gap: 0.75rem;
    }
    .nav-menu ul li a {
        font-size: 1.25rem;
    }
    .nav-menu ul li a span {
        font-size: 0.8rem;
        margin-top: 0.2rem;
    }
}
