/* Center gallery page titles */
.gallery h1 {
    text-align: center;
}
/* Reset and Base Styles */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
}

body {
    font-family: 'Poppins', sans-serif;
    line-height: 1.6;
    color: #333;
    background-color: #f9f9f9;
}

.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
}

/* Navigation Bar */
.navbar {
    background-color: #fff;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
    position: sticky;
    top: 0;
    z-index: 1000;
}

.nav-container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0.35rem 2px; /* Tighter horizontal padding to bring items very close to edges */
    display: flex;
    justify-content: space-between;
    align-items: center;
    min-height: 84px; /* Reduced min-height to make navbar visually smaller */
    overflow: visible; /* Prevent clipping */
}


.logo {
    display: flex;
    align-items: center;
    text-decoration: none;
    /* Lock the logo container width so it doesn't shift as the nav expands */
    flex: 0 0 220px; /* narrower fixed box for desktop so logo is closer to left edge */
    padding: 0 4px; /* Minimal padding to reduce space */
    margin: 0; /* Ensure no margin for tight spacing */
    justify-content: flex-start; /* keep image positioned consistently inside its box */
}

/* Keep the logo container fixed while allowing the image to be visually scaled (zoomed) inside it */
.logo {
    overflow: hidden; /* ensure scaled image doesn't push layout */
}

.logo-img {
    height: 78px; /* Reduced logo height so navbar is smaller */
    width: auto;
    max-width: 260px;
    object-fit: contain;
}

/* Visually zoom the logo inside its box without affecting layout */
.logo-img {
    transform-origin: center center;
    transform: scale(2); /* Larger desktop zoom */
    transition: transform 220ms ease;
}

@media (max-width: 768px) {
    .logo-img {
        height: 64px; /* Adjusted for tablets */
        max-width: 200px;
        transform: scale(1.9); /* Slightly smaller zoom on tablet */
    }
    .nav-container {
        min-height: 72px; /* Match logo size */
        padding: 0.4rem 10px; /* Slightly reduced padding */
    }
    .logo {
        flex: 0 0 100px; /* smaller fixed box for tablet */
        justify-content: center; /* center logo inside its box on tablet */
    }
}

@media (max-width: 480px) {
    .logo-img {
        height: 56px; /* Adjusted for small screens */
        max-width: 160px;
        transform: scale(1.9); /* Mobile: subtle zoom to avoid crowding */
    }
    .nav-container {
        min-height: 60px; /* Match logo size */
        padding: 0.35rem 10px;
    }
    .logo {
        flex: 0 0 100px; /* mobile fixed box */
        justify-content: center; /* center logo inside its box on mobile */
    }
}

.nav-menu {
    list-style: none;
    display: flex;
    gap: 0.9rem; /* tighter tabs for dense desktop layout */
    /* do not let menu grow; push it to the right with margin-left */
    flex: 0 0 auto;
    margin-left: auto; /* forces the nav-menu to the far right of the nav-container */
}

/* Desktop: reduce outer gutters and make logo/nav flush to container edges */
@media (min-width: 1200px) {
    .nav-container {
        max-width: 1400px; /* allow a wider content area */
        padding: 0.35rem 0; /* remove side gutters */
    }
    .logo {
        flex: 0 0 180px; /* tighter logo box so logo is more left */
        padding-left: 6px;
    }
    .nav-menu {
        gap: 0.75rem;
        margin-right: 8px; /* small right offset from edge */
    }
}

/* Extra-large monitors: make header full-bleed and flush to browser edges */
@media (min-width: 1600px) {
    .nav-container {
        max-width: 100%;
        padding: 0; /* completely remove gutters */
        margin: 0; /* ensure container spans full width */
    }
    .logo {
        flex: 0 0 160px; /* even tighter logo box */
        padding-left: 4px;
    }
    .nav-menu {
        gap: 0.6rem;
        margin-right: 4px; /* nearly flush to the right edge */
    }
}

.nav-menu li a {
    text-decoration: none;
    color: #333;
    font-size: 1rem;
    transition: color 0.3s ease;
}

.nav-menu li a:hover {
    color: #6b46c1;
    font-weight: 700;
}

/* Hamburger menu styles */
.hamburger {
    display: none;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    width: 40px;
    height: 40px;
    background: none;
    border: none;
    cursor: pointer;
    z-index: 10001;
}

.hamburger span {
    display: block;
    width: 28px;
    height: 4px;
    margin: 4px 0;
    background: #6b46c1;
    border-radius: 2px;
    transition: 0.3s;
}

@media (max-width: 900px) {
    .hamburger {
        display: flex;
    }
    .nav-menu {
        display: none;
        flex-direction: column;
        position: absolute;
        top: 60px;
        left: 0;
        width: 100vw;
        background: #fff;
        box-shadow: 0 4px 18px rgba(0,0,0,0.09);
        z-index: 10000;
        padding: 1.5rem 0;
    }
    .nav-menu.active {
        display: flex;
    }
    .nav-container {
        position: relative;
    }
}

/* Dropdown Menu */
.dropdown {
    position: relative;
}

.dropdown .dropbtn {
    text-decoration: none;
    color: #333;
    font-size: 1rem;
    transition: color 0.3s ease;
}

.dropdown:hover .dropbtn {
    color: #6b46c1;
    font-weight: 700;
}

.dropdown-content {
    display: none;
    position: absolute;
    background-color: #fff;
    min-width: 160px;
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1);
    z-index: 1001;
    border-radius: 4px;
    top: 120%;
    left: 0;
}

.dropdown-content a {
    display: block;
    padding: 0.75rem 1rem;
    text-decoration: none;
    color: #333;
    font-size: 0.9rem;
    transition: background-color 0.3s ease, color 0.3s ease;
}

.dropdown-content a:hover {
    background-color: #f9f9f9;
    color: #6b46c1;
    font-weight: 700;
}

.dropdown:hover .dropdown-content {
    display: block;
}

@media (max-width: 768px) {
    .dropdown .dropbtn {
        display: block;
        width: 100%;
        padding: 0.5rem 0;
    }
    .dropdown-content {
        position: static;
        width: 100%;
        background-color: #f9f9f9;
        box-shadow: none;
        border-radius: 0;
    }
    .dropdown-content a {
        padding: 0.5rem 1rem;
        font-size: 0.9rem;
    }
    .dropdown:hover .dropdown-content {
        display: none;
    }
    .dropdown.active .dropdown-content {
        display: block;
    }
}

/* Minimal dropdown for mobile: only show/hide, no extra box or centering */
@media (max-width: 900px) {
    .dropdown-content {
        position: static;
        display: none;
        background: none;
        box-shadow: none;
        padding: 0;
        border-radius: 0;
    }
    .dropdown.open .dropdown-content {
        display: block;
    }
    .dropbtn {
        cursor: pointer;
    }
}

/* Dropdown menu: hover for desktop, click for mobile */
.dropdown-content {
    display: none;
}

@media (min-width: 901px) {
    .dropdown:hover .dropdown-content,
    .dropdown:focus-within .dropdown-content {
        display: block;
    }
    .dropdown-content {
        position: absolute;
        top: 100%;
        left: 0;
        background: #fff;
        box-shadow: 0 4px 18px rgba(0,0,0,0.09);
        padding: 0.5rem 1rem;
        border-radius: 0 0 10px 10px;
        z-index: 10000;
    }
    .dropdown {
        position: relative;
    }
}

@media (max-width: 900px) {
    .dropdown.open .dropdown-content {
        display: block;
        position: static;
        background: none;
        box-shadow: none;
        padding: 0;
        border-radius: 0;
    }
    .dropbtn {
        cursor: pointer;
    }
}

/* Make Gallery nav item visually match others on mobile */
@media (max-width: 900px) {
    .dropbtn {
        background: none;
        border: none;
        color: inherit;
        font: inherit;
        padding: 0.5rem 0.75rem;
        text-align: left;
        width: 100%;
        display: block;
        font-size: 1.1rem;
        letter-spacing: 0.02em;
    }
    .dropdown-content {
        background: none;
        box-shadow: none;
        border-radius: 0;
        padding: 0 0 0 1.5rem;
    }
    .dropdown-content a {
        color: inherit;
        padding: 0.5rem 0.75rem;
        display: block;
        text-align: left;
        font-size: 1rem;
        border: none;
        background: none;
        letter-spacing: 0.02em;
    }
}

/* Hero Section */
.hero {
    text-align: center;
    padding: 8rem 0 28rem 0; /* shortened from 42.9rem to 28rem for a more reasonable height */
    background: linear-gradient(135deg, rgba(74, 90, 94, 0.1), rgba(122, 138, 142, 0.1) 90%);
    color: #fff;
    position: relative;
    overflow: hidden;
    scroll-margin-top: 100px;
    width: 100vw; /* Full viewport width */
    margin: 0; /* Remove any default margins */
    left: 50%; /* Center the section */
    transform: translateX(-50%); /* Offset to align with viewport */
}

.hero-video {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    z-index: 0;
    opacity: 1;
    pointer-events: none;
}

/* Slightly zoom the background video and move it up inside the hero box */
.hero-video {
    transform-origin: center center;
    transform: scale(1.05) translateY(-7%); /* increased upward nudge */
    transition: transform 400ms ease;
}

@media (max-width: 768px) {
    .hero-video {
        transform: scale(1.02) translateY(-3.5%); /* slightly larger nudge on small screens */
    }
}

.hero-content {
    position: relative;
    z-index: 2; /* ensure content sits above the new overlay */
    padding: 0 20px;
    max-width: 100%; /* Remove max-width constraint */
    width: 100%; /* Ensure content spans full width */
    margin: 0 auto;
}

/* Small bottom overlay to visually blend hero into the .story background (#f9f9f9) */
.hero::after {
    content: '';
    position: absolute;
    left: 0;
    right: 0;
    bottom: 0;
    height: 60px; /* reduced overlay height to 80px for a shorter blend */
    background: linear-gradient(180deg, rgba(249,249,249,0) 0%, #f9f9f9 100%);
    pointer-events: none;
    z-index: 1; /* sits below hero-content but above video */
}

@media (max-width: 768px) {
    .hero::after {
        height:10px; /* reduced mobile overlay from 30px to 20px */
        /* Optional: Adjust gradient if needed */
        background: linear-gradient(180deg, rgba(249,249,249,0) 0%, #f9f9f9 100%);
    }
}

@media (max-width: 480px) {
    .hero::after {
        height: 10px; /* reduced small-mobile overlay to 20px */
        /* Optional: Further tweak gradient or opacity if desired */
        background: linear-gradient(180deg, rgba(249,249,249,0) 0%, #f9f9f9 100%);
    }
}

.hero-title {
    font-size: 3.5rem;
    font-weight: 700;
    margin-bottom: 1rem;
    text-transform: uppercase;
    letter-spacing: 2px;
    text-shadow: 0 0 10px rgba(255, 215, 0, 0.3); /* Subtle gold glow effect */
}

.hero-message {
    font-size: 1.3rem;
    max-width: 600px;
    margin: 0 auto 2.5rem; /* increased bottom margin for more spacing */
}

.cta-button {
    display: inline-block;
    padding: 1rem 2rem;
    background-color: #000;
    color: #fff;
    text-decoration: none;
    border-radius: 50px; /* Rounded shape */
    font-size: 1.1rem;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.2); /* Glassmorphism-inspired shadow */
}

/* Add small vertical spacing specifically between hero text blocks */
.hero-title + .hero-message { margin-top: 0.6rem; }
.hero-message + .cta-button { margin-top: 0.9rem; }

.cta-button:hover {
    transform: scale(1.05); /* Scale hover effect */
    box-shadow: 0 6px 20px rgba(0, 0, 0, 0.3);
}

/* Responsive Design for Hero */
@media (max-width: 768px) {
    .hero {
        padding: 4rem 0 9rem 0; /* reduced tablet bottom padding from 13.65rem to 9rem */
    }
    .hero-title {
        font-size: 2.5rem;
        letter-spacing: 1.5px; /* Adjusted for mobile readability */
    }
    .hero-message {
        font-size: 1.1rem;
    }
    .cta-button {
        padding: 0.8rem 1.5rem;
        font-size: 1rem;
    }
}

/* About Section */
.story {
    padding: 2rem 0 4rem 0; /* further reduced top padding to move About text up more */
    background-color: #f9f9f9;
    scroll-margin-top: 100px;
}

.story h2 {
    text-align: center;
    font-size: 2.5rem;
    margin-bottom: 2rem;
    color: #000;
}

.about-content {
    max-width: 800px;
    margin: 0 auto;
}

.about-content p {
    font-size: 1.1rem;
    line-height: 1.6;
    color: #333;
    text-align: center;
}

/* Projects Section */
.projects {
    padding: 4rem 0;
    background-color: #fff;
    scroll-margin-top: 100px;
}

.projects h2 {
    text-align: center;
    font-size: 2.5rem;
    margin-bottom: 2rem;
    color: #000;
}

.projects-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 1.5rem;
    padding: 1rem;
}

.project-item {
    position: relative;
    cursor: pointer;
    border-radius: 8px;
    overflow: hidden;
}

.project-item img {
    width: 100%;
    height: 250px;
    object-fit: contain;
    padding: 10px;
    background-color: #fff;
    border-radius: 6px;
    transition: transform 0.3s ease;
    box-sizing: border-box;
}

/* Ensure full astro.jpg (Project 2) is visible without cropping */
.project-item img[alt="Project 2"] {
    transform: scale(0.6);
    padding: 15px;
    height: auto;
    max-height: 250px;
}

/* Zoom out images 3, 4, 6, and 7 with increased padding */
.project-item img[alt="Project 3"],
.project-item img[alt="Project 4"],
.project-item img[alt="Project 6"],
.project-item img[alt="Project 7"] {
    padding: 40px;
}

.project-item:hover img {
    transform: scale(1.02);
}

/* Adjust hover effect for astro.jpg to maintain scale */
.project-item img[alt="Project 2"]:hover {
    transform: scale(0.62);
}

.project-overlay {
    display: none;
}

/* Gallery Section (used for PFP, Illustration, Meme, Video, Animation, etc.) */
.gallery {
    padding: 4rem 0;
    background-color: #f9f9f9;
    scroll-margin-top: 100px;
}

.gallery h2 {
    text-align: center;
    font-size: 2.5rem;
    margin-bottom: 2rem;
    color: #000;
}

.gallery-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
    gap: 1.5rem;
    padding: 1rem;
}

/* Gallery items for Our Services section (yulix1.html) */
#gallery .gallery-item {
    position: relative;
    text-decoration: none;
    border: 2px solid #ddd;
    border-radius: 8px;
    overflow: hidden;
    display: inline-block;
    width: 100%;
}

#gallery .gallery-item img {
    width: 100%;
    height: auto;
    object-fit: contain;
    object-position: center;
    border-radius: 6px;
    display: block;
    transition: transform 0.3s ease;
}

/* Gallery items for other gallery pages (e.g., illustration.html, meme.html, pfp.html, sticker.html) */
#illustration .gallery-item,
#meme .gallery-item {
    width: 250px;
    height: 250px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: #fff;
    border: 2px solid #bbb;
    box-sizing: border-box;
    margin: 0;
    position: relative;
    text-decoration: none;
    border-radius: 8px;
    overflow: hidden;
    max-width: calc((100vw - 4.5rem) / 4);
    transform-origin: center;
}

#pfp .gallery-item,
#gif .gallery-item,
#sticker .gallery-item,
#more .gallery-item {
    position: relative;
    text-decoration: none;
    border: 2px solid #ddd;
    border-radius: 8px;
    overflow: hidden;
    width: 100%;
    height: auto;
    display: flex;
    align-items: center;
    justify-content: center;
    background: #fff;
    box-sizing: border-box;
}

/* Fixed four-column layout for illustration and meme galleries */
#illustration .gallery-grid,
#meme .gallery-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 1.5rem;
    max-width: 1200px;
    margin: 0 auto;
    padding: 1rem 0;
    justify-items: center;
    align-items: center;
    width: 100%;
    overflow-x: auto;
}

/* Fixed three-column layout for pfp, gif, and sticker galleries */
#pfp .gallery-grid,
#gif .gallery-grid,
#sticker .gallery-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 1.5rem;
    max-width: 1200px;
    margin: 0 auto;
    padding: 1rem 0;
    justify-items: center;
    align-items: center;
    width: 100%;
}

/* Image styles for gallery items */
#illustration .gallery-item img,
#meme .gallery-item img {
    width: 100%;
    height: 100%;
    object-fit: cover !important;
    border-radius: 8px;
    box-shadow: 0 2px 8px rgba(0,0,0,0.07);
    border: none;
    display: block;
    /* No hover zoom for meme or illustration */
    transition: none;
}

#pfp .gallery-item img,
#gif .gallery-item img,
#sticker .gallery-item img,
#more .gallery-item img {
    width: 100%;
    height: auto;
    object-fit: contain;
    object-position: center;
    border-radius: 6px;
    display: block;
    transition: transform 0.3s ease;
}



/* Handle zoom and small viewports for illustration and meme */
@media (max-width: 1200px) {
    #illustration .gallery-item,
    #meme .gallery-item {
        width: calc((100vw - 4.5rem) / 4);
        height: calc((100vw - 4.5rem) / 4);
    }
    #illustration .gallery-item img,
    #meme .gallery-item img {
        width: 100%;
        height: 100%;
    }
}

@media (max-width: 768px) {
    #illustration .gallery-item,
    #meme .gallery-item {
        width: calc((100vw - 3rem) / 4);
        height: calc((100vw - 3rem) / 4);
    }
}

@media (max-width: 480px) {
    #illustration .gallery-item,
    #meme .gallery-item {
        width: calc((100vw - 1.5rem) / 4);
        height: calc((100vw - 1.5rem) / 4);
    }
}

/* Gallery Overlay for hover titles */
.gallery-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.6);
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 0;
    transition: opacity 0.3s ease;
    border-radius: 6px;
    color: #fff;
    font-family: 'Poppins', sans-serif;
    font-weight: 700;
    font-size: 2rem;
    text-align: center;
    padding: 1rem 2rem;
    line-height: 1.2;
    text-transform: uppercase;
}

/* Ensure gallery-overlay is always visible on mobile for the services section */
@media (max-width: 768px) {
    #gallery .gallery-overlay {
        opacity: 1; /* Always show the overlay on mobile */
        background: rgba(0, 0, 0, 0.6); /* Ensure background is visible */
        font-size: 1rem; /* Adjust font size for mobile readability */
        padding: 0.5rem; /* Adjust padding for mobile */
    }
    #gallery .gallery-item:hover .gallery-overlay {
        opacity: 1; /* Ensure hover doesn't change the opacity */
    }
}

.gallery-item:hover .gallery-overlay {
    opacity: 1;
}

/* Remove hover text for video, animation, illustration, and sticker pages */

#meme .gallery-item .gallery-overlay {
    display: none !important;
}

#meme .gallery-item:hover,
#meme .gallery-item:hover img,
#meme .gallery-item:hover .gallery-overlay {
    /* Remove all hover effects for meme gallery items */
    filter: none !important;
    transform: none !important;
    opacity: 1 !important;
    box-shadow: none !important;
}

/* Video styles for pages with videos (e.g., animation.html, video.html) */
#animation .gallery-item .video-container,
#video .gallery-item .video-container {
    position: relative;
    width: 100%;
    aspect-ratio: 16/9;
    height: auto;
    overflow: hidden;
    display: flex;
    align-items: center;
    justify-content: center;
}

#animation .gallery-item video,
#video .gallery-item video {
    width: 100%;
    height: 100%;
    max-width: 100%;
    max-height: 100%;
    object-fit: cover;
    object-position: center;
    border-radius: 6px;
    transition: transform 0.3s ease;
}

#animation .gallery-item:hover video,
#video .gallery-item:hover video {
    transform: scale(1.05);
}

#animation .gallery-item .mute-toggle,
#video .gallery-item .mute-toggle {
    position: absolute;
    top: 10px;
    right: 10px;
    background: rgba(0, 0, 0, 0.5);
    border: none;
    border-radius: 50%;
    width: 32px;
    height: 32px;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: background 0.3s ease;
    z-index: 10;
}

#animation .gallery-item .mute-toggle:hover,
#video .gallery-item .mute-toggle:hover {
    background: rgba(0, 0, 0, 0.7);
}

#animation .gallery-item .sound-icon,
#video .gallery-item .sound-icon {
    width: 20px;
    height: 20px;
}

#animation .gallery-item .sound-icon .sound-on,
#video .gallery-item .sound-icon .sound-on {
    display: block;
}

#animation .gallery-item .sound-icon .sound-off,
#video .gallery-item .sound-icon .sound-off {
    display: none;
}

#animation .gallery-item .mute-toggle.muted .sound-on,
#video .gallery-item .mute-toggle.muted .sound-on {
    display: none;
}

#animation .gallery-item .mute-toggle.muted .sound-off,
#video .gallery-item .mute-toggle.muted .sound-off {
    display: block;
}

/* Lightbox */
.lightbox {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.8);
    align-items: center;
    justify-content: center;
    z-index: 2000;
}

.lightbox.active {
    display: flex;
}

.lightbox-video-container {
    position: relative;
    max-width: 90%;
    max-height: 80vh;
    margin: auto;
}

.lightbox-video-container img {
    width: 100%;
    height: auto;
    max-height: 80vh;
    object-fit: contain;
    border-radius: 8px;
}

.lightbox-video-container video {
    width: 100%;
    height: auto;
    max-height: 80vh;
    object-fit: contain;
    border-radius: 8px;
}

.lightbox-mute-toggle {
    position: absolute;
    top: 10px;
    right: 10px;
    background: rgba(0, 0, 0, 0.5);
    border: none;
    border-radius: 50%;
    width: 40px;
    height: 40px;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: background 0.3s ease;
    z-index: 10;
}

.lightbox-mute-toggle:hover {
    background: rgba(0, 0, 0, 0.7);
}

.lightbox-mute-toggle .sound-icon {
    width: 24px;
    height: 24px;
}

.lightbox-close {
    position: absolute;
    top: 20px;
    right: 20px;
    font-size: 2rem;
    color: #fff;
    cursor: pointer;
}

#lightbox-caption {
    color: #fff;
    margin-top: 1rem;
    font-size: 1.2rem;
}

/* Lightbox Arrow Buttons */
.lightbox-arrow {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    background: rgba(0,0,0,0.5);
    color: #fff;
    border: none;
    border-radius: 50%;
    width: 48px;
    height: 48px;
    font-size: 2rem;
    cursor: pointer;
    z-index: 20;
}

.lightbox-arrow-left {
    left: 20px;
}

.lightbox-arrow-right {
    right: 20px;
}

/* Responsive Design */
@media (max-width: 768px) {
    .hero {
        padding: 4rem 0 4rem 0; /* reduced small/mobile bottom padding from 6rem to 4rem */
    }
    .hero-title {
        font-size: 2.5rem;
    }
    .hero-message {
        font-size: 1.1rem;
    }
    .story {
        padding: 1.5rem 0 3rem 0; /* further reduced top padding on mobile */
    }
    .story h2,
    .projects h2,
    .gallery h2,
    .contact h2 {
        font-size: 2rem;
    }
    .about-content p {
        font-size: 1rem;
    }
    .gallery-grid {
        grid-template-columns: repeat(2, 1fr);
    }
    .gallery-overlay {
        font-size: 1.5rem;
        padding: 0.8rem 1.5rem;
    }
    #animation .gallery-item .mute-toggle,
    #video .gallery-item .mute-toggle {
        width: 28px;
        height: 28px;
    }
    .animation .gallery-item .sound-icon,
    #video .gallery-item .sound-icon {
        width: 16px;
        height: 16px;
    }
    .social-links {
        gap: 1.5rem;
    }
    .social-links img {
        width: 40px;
        height: 40px;
    }
    .lightbox-mute-toggle {
        width: 36px;
        height: 36px;
    }
    .lightbox-mute-toggle .sound-icon {
        width: 20px;
        height: 20px;
    }
}

@media (max-width: 480px) {
    .gallery-grid {
        grid-template-columns: 1fr;
    }
    .gallery-overlay {
        font-size: 1.2rem;
        padding: 0.5rem 1rem;
    }
}

/* Contact Section */
.contact {
    padding: 4rem 0;
    background-color: #fff;
    text-align: center;
    scroll-margin-top: 100px;
}

.contact h2 {
    font-size: 2.5rem;
    margin-bottom: 1rem;
    color: #000;
}

.contact p {
    font-size: 1.2rem;
    margin-bottom: 2rem;
}

hr {
    border: none;
    height: 1px;
    background-color: #ddd;
    margin: 2rem 0;
}

#contact-form {
    max-width: 500px;
    margin: 0 auto;
    text-align: left;
}

#contact-form label {
    display: block;
    margin-bottom: 0.5rem;
    font-weight: 700;
}

#contact-form input,
#contact-form textarea {
    width: 100%;
    padding: 0.75rem;
    margin-bottom: 1rem;
    border: 1px solid #ddd;
    border-radius: 4px;
    font-size: 1rem;
}

#contact-form button {
    display: block;
    margin: 0 auto;
    background-color: #6b46c1;
    color: #fff;
    padding: 0.75rem 1.5rem;
    border: none;
    border-radius: 4px;
    cursor: pointer;
    font-size: 1rem;
    transition: background-color 0.3s ease;
}

#contact-form button:hover {
    background-color: #553c9a;
}

/* Footer */
.footer {
    background-color: #333;
    color: #fff;
    padding: 2rem 0;
    width: 100vw;
    position: relative;
    left: 50%;
    right: 50%;
    margin-left: -50vw;
    margin-right: -50vw;
}

.footer-container {
    width: 100%;
    padding: 0 20px;
    text-align: center;
}

.footer-menu {
    list-style: none;
    display: flex;
    justify-content: center;
    gap: 1.5rem;
    margin: 1rem 0;
}

.footer-menu li a {
    color: #fff;
    text-decoration: none;
    transition: color 0.3s ease;
}

.footer-menu li a:hover {
    color: #b794f4;
}

.social-links {
    display: flex;
    justify-content: center;
    gap: 1rem;
}

.social-links img {
    width: 24px;
    height: 24px;
}

/* Rules to Remove Hover Text for Video, Animation, Illustration, and Sticker Pages */
#video .gallery-item .gallery-overlay,
#animation .gallery-item .gallery-overlay,
#illustration .gallery-item .gallery-overlay,
#sticker .gallery-item .gallery-overlay {
    display: none !important;
}

/* Rules to Remove Lightbox Caption for All Video and Sticker Content */
.lightbox.active #lightbox-caption {
    display: none !important;
}

/* Ensure GIF and Sticker boxes hug the content by matching their natural size */
#gif .gallery-item,
#sticker .gallery-item {
    width: 100%;
    height: auto;
    border: 2px solid #ddd;
    border-radius: 8px;
    overflow: hidden;
    display: inline-block;
}

#gif .gallery-item .video-container,
#sticker .gallery-item .video-container {
    width: 100%;
    height: auto;
}

#gif .gallery-item img,
#sticker .gallery-item img {
    width: 100%;
    height: auto;
    object-fit: contain;
    object-position: center;
    border-radius: 6px;
    display: block;
}

#gif .gallery-item:hover img,
#sticker .gallery-item:hover img {
    transform: none; /* Disable hover scaling for GIFs and Stickers */
}

/* Make .dropbtn visually match .nav-menu li a on desktop */
@media (min-width: 901px) {
    .dropdown .dropbtn {
        background: none;
        border: none;
        color: #333;
        font-size: 1rem;
        font-family: inherit;
        padding: 0;
        margin: 0;
        cursor: pointer;
        transition: color 0.3s ease;
        text-decoration: none;
        font-weight: 400;
        letter-spacing: 0;
        outline: none;
        box-shadow: none;
        display: inline;
    }
    .dropdown:hover .dropbtn {
        color: #6b46c1;
        font-weight: 700;
    }
}

/* Ensure dropdown arrow is visible and next to Gallery text in mobile nav */
@media (max-width: 900px) {
    .dropdown {
        display: flex;
        align-items: center;
    }
    .dropbtn, .dropdown-arrow {
        display: inline-block;
        vertical-align: middle;
        margin: 0;
        padding: 0;
        font-size: 1rem;
        color: #333;
        background: none;
        border: none;
    }
    .dropdown-arrow {
        font-size: 1.1em;
        margin-left: 0.15em;
        cursor: pointer;
    }
}

/* Make Gallery dropdown arrow look the same on mobile as desktop */
@media (max-width: 900px) {
    .dropdown {
        display: flex;
        align-items: center;
        width: auto;
        background: none;
        border: none;
        padding: 0;
    }
    .dropbtn {
        display: inline-block;
        color: #333;
        font-size: 1rem;
        font-weight: 400;
        background: none;
        border: none;
        text-decoration: none;
        cursor: pointer;
        font-family: inherit;
        padding: 0;
        margin: 0;
        vertical-align: middle;
        outline: none;
        box-shadow: none;
        letter-spacing: 0;
    }
    .dropdown-arrow {
        display: inline-block;
        vertical-align: middle;
        font-size: 1em;
        color: #333;
        background: none;
        border: none;
        padding: 0 0.2em;
        margin: 0;
        cursor: pointer;
        z-index: 1;
    }
}

/* Hide dropdown arrow on desktop, show only on mobile */
@media (min-width: 901px) {
    .dropdown-arrow {
        display: none !important;
    }
}

@media (max-width: 900px) {
    .dropdown-arrow {
        display: inline-block;
    }
}


/* Remove hover overlay for Banners and More sections */
#banners .gallery-item .gallery-overlay,
#more .gallery-item .gallery-overlay {
    display: none !important;
}

/* Remove image scaling on hover for Banners and More sections */
#banners .gallery-item:hover img,
#more .gallery-item:hover img {
    transform: none;
}