:root {
    --primary: #f0a500;
    --text-color: #ffffff;
    --glass-bg: rgba(0, 0, 0, 0.4);
    --glass-border: rgba(255, 255, 255, 0.1);
    --font-main: 'Outfit', sans-serif;
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: var(--font-main);
    color: var(--text-color);
    background-color: #000;
    overflow: hidden;
    height: 100vh;
    display: flex;
    flex-direction: column;
}

/* Background Movement */
.bg-wrapper {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: -1;
    overflow: hidden;
}

.bg-layer {
    position: absolute;
    top: -15%;
    left: -15%;
    width: 130%;
    height: 130%;
    background-size: cover;
    background-position: center;
    transition: transform 0.15s ease-out;
}

/* Light Rays Overlay */
.bg-wrapper::after {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: radial-gradient(circle at 50% -20%, rgba(255, 255, 255, 0.15) 0%, transparent 60%);
    pointer-events: none;
}

/* Navbar */
.navbar {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 80px;
    z-index: 1000;
    background: transparent;
    border-bottom: none;
}

.nav-container {
    max-width: 1200px;
    margin: 0 auto;
    height: 100%;
    display: flex;
    justify-content: center;
    align-items: center;
    padding: 0 2rem;
    position: relative;
}

.nav-links {
    display: flex;
    gap: 3rem;
}

.menu-toggle {
    display: none;
    flex-direction: column;
    justify-content: space-between;
    width: 30px;
    height: 21px;
    cursor: pointer;
    position: absolute;
    right: 2rem;
    z-index: 1001;
}

.menu-toggle .bar {
    height: 3px;
    width: 100%;
    background-color: var(--primary);
    border-radius: 10px;
    transition: all 0.3s ease;
}

.menu-toggle.active .bar:nth-child(2) {
    opacity: 0;
}

.menu-toggle.active .bar:nth-child(1) {
    transform: translateY(9px) rotate(45deg);
}

.menu-toggle.active .bar:nth-child(3) {
    transform: translateY(-9px) rotate(-45deg);
}

.social-links {
    display: flex;
    gap: 1.5rem;
    margin-left: 2rem;
}

.nav-links a {
    text-decoration: none;
    color: var(--text-color);
    font-weight: 700;
    letter-spacing: 2px;
    font-size: 0.85rem;
    transition: all 0.3s ease;
    opacity: 0.7;
}

.nav-links a:hover,
.nav-links a.active {
    opacity: 1;
    color: var(--primary);
    text-shadow: 0 0 20px rgba(240, 165, 0, 0.8);
    transform: translateY(-2px);
}

.social-icon {
    width: 22px;
    height: 22px;
    fill: #fff;
    transition: transform 0.3s cubic-bezier(0.175, 0.885, 0.32, 1.275), fill 0.3s ease;
}

.social-icon:hover {
    transform: scale(1.3) rotate(5deg);
    fill: var(--primary);
}

/* Main Hero Content */
main {
    flex: 1;
    display: flex;
    justify-content: center;
    align-items: center;
    padding-top: 0;
    position: relative;
    z-index: 5;
    width: 100%;
}

.hero {
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
    gap: 0;
    transition: transform 0.1s ease-out;
    width: 100%;
    margin-top: -10vh;
}

.character-container {
    position: relative;
    max-width: 600px;
    width: 90vw;
    animation: float 5s ease-in-out infinite;
    filter: drop-shadow(0 20px 50px rgba(0, 0, 0, 0.6));
    margin-top: 2rem;
    /* Moved down from -4rem */
}

.character-img {
    width: 100%;
    height: auto;
}

.title-container {
    z-index: 10;
    position: relative;
    margin-top: -10vh;
    /* Perfectly centered above character as requested */
}

.title-img {
    max-width: 400px;
    width: 45vw;
    height: auto;
    filter: drop-shadow(0 10px 30px rgba(0, 0, 0, 0.5));

    position: relative;
    top: -100px;
}

.main-title {
    font-size: 9rem;
    font-weight: 900;
    margin-bottom: -2rem;
    color: #fff;
    text-shadow: 0 10px 30px rgba(0, 0, 0, 0.5);
    letter-spacing: -2px;
    background: linear-gradient(to bottom, #fff, #bbb);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
}

.sub-title {
    font-size: 2.2rem;
    font-weight: 600;
    letter-spacing: 15px;
    color: var(--primary);
    text-shadow: 0 0 20px rgba(240, 165, 0, 0.4);
    margin-bottom: 1rem;
}

.mobile-character {
    display: none;
    /* Hidden on desktop */
}

/* Footer */
.footer {
    width: 100%;
    padding: 1rem;
    background: transparent;
    z-index: 20;
    position: absolute;
    bottom: 0;
}

.footer-content {
    max-width: 900px;
    margin: 0 auto;
}

.disclaimer {
    font-size: 0.7rem;
    text-align: center;
    line-height: 1.4;
    opacity: 0.6;
    color: #fff;
    letter-spacing: 1px;
}

/* Animations */
@keyframes float {

    0%,
    100% {
        transform: translateY(0);
    }

    50% {
        transform: translateY(-15px);
    }
}

/* Mobile Responsiveness */
@media (max-width: 768px) {
    .bg-layer {
        background-image: url('bghp.png') !important;
        top: 0;
        left: 0;
        width: 100%;
        height: 100%;
        transform: none !important;
        /* Disable parallax gaps */
    }

    .menu-toggle {
        display: flex;
    }

    .social-links {
        margin-left: 0;
        margin-top: 1rem;
    }

    .nav-links {
        position: fixed;
        top: 0;
        right: -100%;
        width: 100%;
        height: 100vh;
        background: rgba(0, 0, 0, 0.95);
        backdrop-filter: blur(10px);
        flex-direction: column;
        justify-content: center;
        align-items: center;
        transition: 0.5s;
        gap: 2rem;
        z-index: 999;
    }

    .nav-links.active {
        right: 0;
    }

    .nav-links a {
        font-size: 1.5rem;
        opacity: 1;
    }

    .social-icon {
        width: 30px;
        height: 30px;
    }

    .hero {
        margin-top: 0;
        padding-top: 2vh;
        display: flex;
        flex-direction: column;
        align-items: center;

        .title-img {
            width: 60vw;
            max-width: 250px;
        }

        .mobile-character {
            display: block;
            width: 80vw;
            max-width: 350px;
            margin-top: 5rem;
            /* Lowered from 2rem */
            animation: none;
            /* Disabled floating as requested */
            filter: drop-shadow(0 20px 50px rgba(0, 0, 0, 0.6));
        }

        .mobile-character img {
            width: 100%;
            height: auto;
        }

        width: 100vw;
        max-width: 100%;
        overflow: visible;
    }

    .main-title {
        font-size: 4.5rem;
        margin-bottom: -1rem;
    }

    .sub-title {
        font-size: 1.2rem;
        letter-spacing: 8px;
        margin-bottom: 2rem;
    }

    .character-container {
        max-width: 320px;
        /* Smaller as requested */
        width: 90vw;
        margin: 0 auto;
        /* Perfectly centered */
        display: flex;
        justify-content: center;
        margin-top: 0;
    }

    .character-img {
        width: 100%;
        height: auto;
        object-fit: contain;
    }
}

/* Modal Styling */
.modal {
    display: none;
    position: fixed;
    z-index: 2000;
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
    background: url('bghp.png') center/cover no-repeat fixed;
    /* Use bghp.png as requested */
    backdrop-filter: blur(10px);
    overflow-y: auto;
    padding: 40px 20px;
}

.modal-content {
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid rgba(255, 255, 255, 0.1);
    margin: auto;
    padding: 40px;
    width: 90%;
    max-width: 1200px;
    border-radius: 20px;
    position: relative;
}

.modal-title {
    color: var(--primary);
    text-align: center;
    font-size: 2.5rem;
    margin-bottom: 30px;
    letter-spacing: 5px;
}

.close-modal {
    position: absolute;
    right: 25px;
    top: 15px;
    color: #fff;
    font-size: 40px;
    font-weight: bold;
    cursor: pointer;
    transition: 0.3s;
}

.close-modal:hover {
    color: var(--primary);
}

.gallery-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(250px, 1fr));
    gap: 20px;
}

.gallery-item {
    width: 100%;
    border-radius: 10px;
    overflow: hidden;
    transition: transform 0.3s ease;
    border: 1px solid rgba(255, 255, 255, 0.1);
}

.gallery-item:hover {
    transform: scale(1.05);
    border-color: var(--primary);
}

.gallery-item img {
    width: 100%;
    height: 250px;
    object-fit: cover;
    display: block;
}

@media (max-width: 768px) {
    .modal-content {
        padding: 20px;
        width: 95%;
    }

    .gallery-grid {
        grid-template-columns: repeat(auto-fill, minmax(140px, 1fr));
        gap: 10px;
    }

    .gallery-item img {
        height: 150px;
    }
}

/* Book Story Modal */
.book-container {
    max-width: 1000px;
    width: 95%;
    height: 85vh;
    margin: auto;
    position: relative;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 20px;
}

.book {
    width: 100%;
    height: 100%;
    background: #4d2d18; /* Brown cover */
    border-radius: 10px;
    box-shadow: 0 30px 60px rgba(0, 0, 0, 0.7);
    display: flex;
    padding: 10px;
    position: relative;
    border: 8px solid #3d2413;
    overflow: hidden;
}

.book::before {
    content: '';
    position: absolute;
    top: 0;
    left: 50%;
    width: 2px;
    height: 100%;
    background: rgba(0, 0, 0, 0.3);
    z-index: 10;
    transform: translateX(-50%);
}

.book-page {
    flex: 1;
    background: #fdfbf7; /* Paper color */
    height: 100%;
    padding: 50px;
    color: #2c1e13;
    overflow-y: auto;
    position: relative;
    background-image: 
        linear-gradient(90deg, rgba(0,0,0,0.05) 0%, transparent 5%, transparent 95%, rgba(0,0,0,0.05) 100%);
}

.left-page {
    border-radius: 5px 0 0 5px;
    box-shadow: inset -10px 0 20px rgba(0,0,0,0.1);
}

.right-page {
    border-radius: 0 5px 5px 0;
    box-shadow: inset 10px 0 20px rgba(0,0,0,0.1);
}

.page-content {
    font-size: 1rem;
    line-height: 1.8;
    font-weight: 500;
    opacity: 0.9;
}

.page-content h3 {
    margin-bottom: 25px;
    color: #4d2d18;
    font-size: 1.5rem;
    font-weight: 800;
    text-align: center;
    border-bottom: 2px solid rgba(77, 45, 24, 0.1);
    padding-bottom: 15px;
}

.nav-arrow {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    background: rgba(0, 0, 0, 0.2);
    border: 2px solid rgba(255, 255, 255, 0.3);
    color: #fff;
    font-size: 2rem;
    cursor: pointer;
    z-index: 2100;
    transition: all 0.3s cubic-bezier(0.175, 0.885, 0.32, 1.275);
    width: 60px;
    height: 60px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    backdrop-filter: blur(5px);
}

.nav-arrow:hover {
    background: var(--primary);
    border-color: var(--primary);
    transform: translateY(-50%) scale(1.1);
    box-shadow: 0 0 20px rgba(240, 165, 0, 0.5);
}

.nav-arrow:disabled {
    opacity: 0.3;
    cursor: not-allowed;
    pointer-events: none;
}

.prev-arrow {
    left: -80px;
}

.next-arrow {
    right: -80px;
}

.story-close {
    position: absolute;
    right: -50px;
    top: -50px;
    font-size: 50px;
    z-index: 2200;
}

@media (max-width: 1200px) {
    .prev-arrow { left: -20px; }
    .next-arrow { right: -20px; }
}

@media (max-width: 768px) {
    .book-container {
        height: 85vh;
        width: 100%;
        padding: 10px;
    }
    .book {
        flex-direction: column;
        border-width: 4px;
    }
    .book::before {
        display: none;
    }
    .book-page {
        padding: 30px 20px;
    }
    .nav-arrow {
        width: 50px;
        height: 50px;
        font-size: 1.5rem;
    }
    .prev-arrow { left: 0; }
    .next-arrow { right: 0; }
    .story-close {
        right: 10px;
        top: 10px;
        background: rgba(0,0,0,0.5);
        width: 40px;
        height: 40px;
        border-radius: 50%;
        display: flex;
        align-items: center;
        justify-content: center;
        font-size: 30px;
    }
}