/* Mobile Styles - Creative Yaka */

/* Hide mobile logo on desktop */
.mobile-logo {
    display: none;
}

/* Ensure hamburger is visible ONLY on mobile via media query */
.hamburger-menu {
    display: none;
}

@media (max-width: 1024px) {

    /* --- General Mobile Resets --- */
    html,
    body {
        overflow-x: hidden;
        transform: none !important;
        perspective: none !important;
        filter: none !important;
        -webkit-transform: none !important;
        -webkit-filter: none !important;
        -webkit-perspective: none !important;
        contain: none !important;
        cursor: auto !important;
    }

    /* Disable Custom Cursor on Mobile */
    #custom-cursor {
        display: none !important;
    }

    .no-cursor,
    .no-cursor * {
        cursor: auto !important;
    }

    .section {
        padding: 50px 20px;
        min-height: auto;
    }

    /* Unified title sizes across all sections */
    .about-text-left h2,
    .portfolio-title h2,
    .contact-title h2,
    .contact-text-wrapper h2 {
        font-size: 6rem !important;
        text-align: center;
        margin-bottom: 5px;
    }

    /* --- HAMBURGER MENU (Glassmorphic - Always) --- */
    .hamburger-menu,
    nav .hamburger-menu,
    nav.nav-scrolled .hamburger-menu {
        display: flex !important;
        align-items: center !important;
        justify-content: center !important;
        position: fixed !important;
        top: 40px !important;
        right: 20px !important;
        width: 45px !important;
        height: 45px !important;
        /* Glassmorphism - locked */
        background: rgba(255, 255, 255, 0.25) !important;
        backdrop-filter: blur(15px) !important;
        -webkit-backdrop-filter: blur(15px) !important;
        border: 1px solid rgba(255, 255, 255, 0.4) !important;
        border-radius: 50% !important;
        z-index: 10000 !important;
        cursor: pointer !important;
        box-shadow: 0 4px 15px rgba(0, 0, 0, 0.15) !important;
        color: #333 !important;
        transition: none !important;
    }

    .hamburger-menu i,
    nav .hamburger-menu i,
    nav.nav-scrolled .hamburger-menu i {
        font-size: 1.2rem !important;
        color: #333 !important;
    }

    .hamburger-menu.active,
    nav .hamburger-menu.active,
    nav.nav-scrolled .hamburger-menu.active {
        background: #FF8C00 !important;
        border-color: #FF8C00 !important;
    }

    .hamburger-menu.active i,
    nav .hamburger-menu.active i,
    nav.nav-scrolled .hamburger-menu.active i {
        color: white !important;
    }

    /* --- MOBILE LOGO (Fixed - Outside Nav) --- */
    .mobile-logo {
        position: fixed !important;
        left: 50% !important;
        transform: translateX(-50%) !important;
        top: 30px !important;
        width: 100px !important;
        height: 100px !important;
        z-index: 9999 !important;
        display: block !important;
        pointer-events: auto !important;
        transition: all 0.3s ease !important;
    }

    .mobile-logo .rotating-text-wrapper svg {
        transition: all 0.3s ease !important;
        pointer-events: none !important;
        /* Ensure clicks pass through to the link */
    }

    .mobile-logo .nav-logo {
        width: 60px !important;
        height: auto !important;
        position: absolute !important;
        top: 50% !important;
        left: 50% !important;
        transform: translate(-50%, -50%) !important;
        transition: all 0.3s ease !important;
    }

    /* Scrolled State for Mobile Logo */
    .mobile-logo.scrolled {
        left: 20px !important;
        top: 20px !important;
        transform: none !important;
        width: 60px !important;
        height: 60px !important;
    }

    .mobile-logo.scrolled .rotating-text-wrapper svg {
        width: 50px !important;
        height: 50px !important;
    }

    .mobile-logo.scrolled .nav-logo {
        width: 30px !important;
    }

    /* Hide the desktop logo inside nav on mobile */
    nav .logo,
    .logo {
        display: none !important;
    }

    /* --- NAVIGATION OVERLAY --- */
    /* Make nav static so it doesn't create positioning context */
    nav {
        position: static !important;
        width: 100%;
        height: auto;
        z-index: 1;
        pointer-events: none;
        padding: 0 !important;
        margin: 0 !important;
        transform: none !important;
        perspective: none !important;
        filter: none !important;
        backdrop-filter: none !important;
        will-change: auto !important;
        background: transparent !important;
    }

    .nav-links {
        position: fixed;
        top: 0;
        left: 0;
        width: 100vw;
        height: 100vh;

        background: transparent;
        backdrop-filter: blur(25px);

        display: flex;
        flex-direction: column;
        justify-content: center;
        align-items: center;
        gap: 30px;

        opacity: 0;
        visibility: hidden;
        pointer-events: none;
        transition: opacity 0.3s ease;
        z-index: 6000;
        transform: none !important;
        margin: 0 !important;
    }

    body.menu-active .nav-links {
        opacity: 1;
        visibility: visible;
        pointer-events: auto;
    }

    /* Full-screen menu must never keep the desktop pill styling (rounded
       corners / tinted background) when the page was scrolled first. */
    nav.nav-scrolled .nav-links,
    body.menu-active nav.nav-scrolled .nav-links {
        background: transparent !important;
        backdrop-filter: blur(25px) !important;
        -webkit-backdrop-filter: blur(25px) !important;
        box-shadow: none !important;
        border-radius: 0 !important;
        padding: 0 !important;
        margin: 0 !important;
        padding-top: 0 !important;
    }

    .nav-links a {
        font-size: 2rem;
        color: #333;
        font-weight: 700;
        text-decoration: none;
    }

    /* --- MUSIC PLAYER --- */
    .music-player {
        position: fixed !important;
        display: none !important;
        background: rgba(255, 255, 255, 0.95);
        backdrop-filter: blur(15px);
        -webkit-backdrop-filter: blur(15px);
        padding: 12px 25px;
        border-radius: 50px;
        box-shadow: 0 5px 25px rgba(0, 0, 0, 0.15);
        width: auto;
        top: auto !important;
        right: auto !important;
        bottom: 100px !important;
        left: 50% !important;
        transform: translateX(-50%);
        z-index: 7000 !important;
    }

    body.menu-active .music-player {
        display: flex !important;
        align-items: center;
        gap: 10px;
        top: 160px !important;
        bottom: auto !important;
        left: 50% !important;
        right: auto !important;
        transform: translateX(-50%);
        opacity: 0;
        animation: fadeInPlayer 0.4s ease 0.3s forwards;
    }

    body.music-disabled .music-player,
    body.music-disabled.menu-active .music-player {
        display: none !important;
    }

    @keyframes fadeInPlayer {
        to {
            opacity: 1;
        }
    }


    /* --- WELCOME MODAL --- */
    .welcome-modal {
        display: flex;
        justify-content: center !important;
        align-items: center !important;
        padding: 15px !important;
        z-index: 11000;
    }

    .welcome-content {
        max-width: 85% !important;
        width: 85% !important;
        padding: 25px 25px 30px !important;
        margin: 0 !important;
        border-radius: 20px !important;
        position: relative;
        display: flex;
        flex-direction: column;
        align-items: center;
    }

    .welcome-logo {
        margin: 10px 0 22px !important;
    }

    /* Both .rotating-text (svg) and .nav-logo are position:absolute, so the
       wrapper collapses to 0 height and the logo spills over the heading.
       Give the wrapper a real box so the logo has true spacing. */
    .welcome-logo .rotating-text-wrapper {
        width: 115px !important;
        height: 115px !important;
    }

    .welcome-logo .rotating-text-wrapper svg {
        width: 115px !important;
        height: 115px !important;
    }

    .welcome-logo .nav-logo {
        width: 62px !important;
    }

    .welcome-content h2.welcome-ayubowan {
        margin: 0 0 0 !important;
    }

    .welcome-title {
        font-size: 1rem !important;
        margin-top: 6px !important;
    }

    /* Match "Creative Yaka's Realm" color to "Welcome to" (solid #333) */
    .welcome-gradient-title {
        font-size: 2rem !important;
        line-height: 1.1 !important;
        margin-bottom: 10px !important;
        color: #333 !important;
        background: none !important;
        -webkit-background-clip: initial !important;
        background-clip: initial !important;
        -webkit-text-fill-color: currentColor !important;
    }

    .welcome-content h2 {
        font-size: 2rem !important;
    }

    .loading-container {
        max-width: 240px !important;
        margin: 12px auto !important;
    }

    #enter-site-btn {
        padding: 12px 40px !important;
        font-size: 1.1rem !important;
        margin-top: 6px !important;
    }


    /* ============================================ */
    /* HOME SECTION - TITLE → CHARACTER            */
    /* ============================================ */
    /* Marquee Mobile */
    .home-marquee {
        padding: 10px 0 !important;
    }

    .marquee-track span {
        font-size: 1rem !important;
        letter-spacing: 2px !important;
        padding: 0 15px !important;
    }

    #home {
       /* padding-top: 55px;*/
		   padding-top: 150px;
        min-height: auto !important;
       /* padding-bottom: 25px;*/
		height: 900px !important;
    }

    .home-content {
        display: flex !important;
        flex-direction: column !important;
        align-items: center;
        width: 100%;
    }

    .main-title {
        text-align: center;
        padding-top: 20px;
        width: 100%;
        font-size: 25vw !important;
        margin-bottom: 0px;
		
	
    }

    /* Hide line break between CREATIVE and YAKA */
    .main-title br {
        display: none;
    }

    .text-creative,
    .text-yaka {
        display: inline-block;
        width: auto;
        font-size: 25vw;
        line-height: 0.9;
        margin: 0;
        padding: 0;
        text-align: center;
    }

    .text-yaka {
        display: flex !important;
        flex-direction: column !important;
        align-items: center;
        margin-top: 0;
        /* Always keep a small, fixed space between "YAKA" and the mascot */
        row-gap: 8px;
    }

    /* Generic Reset for Character Images on Mobile */
    .character-img {
        margin-left: 0 !important;
        margin-right: 0 !important;
        margin-top: 0 !important;
        max-width: 100% !important;
        transform: none !important;
        /* Disable parallax offsets */
    }

    .character-img[id="main-character"],
    canvas.character-img {
      /*  max-width: 72% !important; */
 max-width: 115% !important;
        height: auto !important;
        margin: 0 auto 10px auto !important;
        /* No negative pull - the row-gap above owns the spacing */
        display: block !important;
    }

    /* ============================================ */
    /* ABOUT SECTION - TITLE → CHARACTER → CONTENT */
    /* ============================================ */
    .about-content {
        display: flex !important;
        flex-direction: column !important;
        text-align: center;
        gap: 20px;
    }

    .about-text-left {
        order: 1 !important;
        margin-top: 30px;
    }

    .character-container-about {
        order: 2 !important;
        margin: 5px 0;
    }

    .about-text-right {
        order: 3 !important;
        max-width: 100%;
        padding: 0 15px;
    }

    .about-text-left h2 {
        font-size: 4rem;
        margin-bottom: 0px;
        /* Reduced from 20px */
    }

    .character-container-about img {
        max-width: 400px;
        height: auto;
        margin: -10px auto 30px auto !important;
        /* Reduced top margin to pull closer to title */
        display: block;
    }

    /* ============================================ */
    /* PORTFOLIO - TITLE → CHARACTER → CONTENT     */
    /* ============================================ */
    .portfolio-content-wrapper {
        display: flex !important;
        flex-direction: column !important;
    }

    .portfolio-right {
        order: 1 !important;
        position: static;
        width: 100% !important;
        margin-bottom: 0 !important;
        text-align: center;
        display: flex !important;
        flex-direction: column !important;
        align-items: center;
    }

    .portfolio-left {
        order: 2 !important;
        width: 100%;
    }

    .portfolio-header {
        display: flex !important;
        flex-direction: column !important;
        align-items: center;
        width: 100%;
    }

    .portfolio-title {
        order: 1 !important;
        text-align: center;
        width: 100%;
    }

    .character-container-portfolio {
        position: relative !important;
        top: 0 !important;
        right: auto !important;
        left: auto !important;
        display: flex !important;
        justify-content: center;
        align-items: center;
        order: 2 !important;
        margin: 10px auto;
        text-align: center;
        width: 100%;
        clear: both;
    }

    .portfolio-categories {
        order: 3 !important;
        margin: 0 !important;
        display: flex;
        flex-wrap: wrap !important;
        justify-content: center;
        align-items: center;
        width: 100%;
        text-align: center;
    }

    .portfolio-navigation {
        order: 4 !important;
        display: flex;
        justify-content: center;
        margin: 0 !important;
    }

    .portfolio-title h2 {
        font-size: 4rem;
        text-align: center;
    }

    .character-container-portfolio img {
        max-width: 400px;
        height: auto;
        margin: 10px auto 30px auto !important;
        /* Proper spacing */
        display: block;
    }

    .portfolio-grid {
        grid-template-columns: 1fr;
        gap: 20px;
    }

    /* ============================================ */
    /* CONTACT - CHARACTER → TITLE → CONTENT       */
    /* ============================================ */
    .contact-content {
        display: flex !important;
        flex-direction: column !important;
        text-align: center;
        gap: 0 !important;
    }

    .contact-left-section {
        display: flex !important;
        flex-direction: column !important;
        align-items: center;
        order: 1 !important;
    }

    .contact-text-wrapper {
        order: 2 !important;
        margin-left: 0 !important;
        width: 100%;
        text-align: center;
        margin-bottom: 40px !important;
    }

    .contact-character-img {
        height: auto !important;
        width: 80% !important;
        max-width: 400px !important;
        order: 1 !important;
        margin: 0 auto 0 auto !important;
        display: block;
    }

    .contact-form-container {
        order: 3 !important;
        width: 100%;
        padding: 0 15px;
    }

    .contact-text-wrapper h2 {
        font-size: 6rem !important;
        text-align: center;
        width: 100%;
    }

    .contact-label {
        font-size: 4.5rem !important;
    }

    /* Social Links Mobile */
    .social-links {
        justify-content: center !important;
        margin-top: 15px !important;
        z-index: 500 !important;
    }

    .social-links a {
        width: 45px !important;
        height: 45px !important;
        font-size: 1.2rem !important;
        pointer-events: auto !important;
        z-index: 600 !important;
    }

    /* Modal Mobile Adjustments */
    .modal {
        padding-top: 20px !important;
    }

    .modal-content {
        padding-bottom: 100px !important;
        /* Space for the close button */
        max-height: 85vh !important;
    }

    .modal-inner-content {
        padding-bottom: 20px !important;
    }

    /* Modal Close Button - Positioned at bottom on mobile */
    .close {
        position: fixed !important;
        top: auto !important;
        bottom: 30px !important;
        left: 50% !important;
        right: auto !important;
        transform: translateX(-50%) !important;
        font-size: 0 !important;
        /* Hide the × character */
        background: linear-gradient(135deg, #FF8C00, #FFD700) !important;
        color: white !important;
        width: auto !important;
        height: auto !important;
        padding: 12px 40px !important;
        border-radius: 50px !important;
        text-align: center !important;
        font-family: 'Bebas Neue', sans-serif !important;
        font-weight: normal !important;
        letter-spacing: 2px !important;
        box-shadow: 0 4px 20px rgba(255, 140, 0, 0.4) !important;
        z-index: 2002 !important;
        transition: all 0.3s ease !important;
    }

    .close::before {
        content: 'CLOSE' !important;
        font-size: 1.2rem !important;
        /* Set font size here instead */
    }

    .close:hover {
        transform: translateX(-50%) scale(1.05) !important;
        box-shadow: 0 6px 25px rgba(255, 140, 0, 0.6) !important;
    }

    .modal-text-content {
        color: #FFFFFF !important;
    }

    /* Portfolio modal + cinema (YouTube) embed close button - pinned to the
       bottom of the screen on mobile instead of the top-right corner. */
    #portfolio-modal .cinema-close,
    #cinema-backdrop .cinema-close {
        position: fixed !important;
        top: auto !important;
        right: auto !important;
        bottom: 30px !important;
        left: 50% !important;
        transform: translateX(-50%) !important;
        width: auto !important;
        height: auto !important;
        padding: 12px 40px !important;
        border-radius: 50px !important;
        border: none !important;
        background: linear-gradient(135deg, #FF8C00, #FFD700) !important;
        color: #fff !important;
        font-size: 0 !important;
        box-shadow: 0 4px 20px rgba(255, 140, 0, 0.4) !important;
        z-index: 2002 !important;
    }

    #portfolio-modal .cinema-close::before,
    #cinema-backdrop .cinema-close::before {
        content: 'CLOSE';
        font-size: 1.2rem !important;
        font-family: 'Bebas Neue', sans-serif !important;
        letter-spacing: 2px !important;
    }

    #portfolio-modal .cinema-close i,
    #cinema-backdrop .cinema-close i {
        display: none !important;
    }

    #portfolio-modal .cinema-close:hover,
    #cinema-backdrop .cinema-close:hover {
        transform: translateX(-50%) scale(1.05) !important;
        box-shadow: 0 6px 25px rgba(255, 140, 0, 0.6) !important;
    }

    /* Site Footer Mobile */
    .site-footer {
        padding: 25px 15px !important;
        margin-top: 30px !important;
        font-size: 1.1rem !important;
    }

    .site-footer p {
        flex-direction: row;
        text-align: center;
    }

    .heart-pulse {
        font-size: 1.2rem !important;
    }
}