/* Define the color palette from the user's image as CSS variables */
:root {
    --retro-pink: #D95B84;
    --retro-teal: #008080;
    --retro-beige: #FDF4E3;
    --retro-gold: #F4A22B;
    --retro-orange: #DD6031;
    --paper-texture-url: url('https://www.transparenttextures.com/patterns/paper-fibers.png');
}

/* ENHANCED: Responsive typography and layout foundation */
html {
    scroll-behavior: smooth;
    margin: 0;
    padding: 0;
    font-size: 16px; /* Base font size for rem calculations */
}

/* RESPONSIVE: Adjust base font size for better mobile readability */
@media (max-width: 480px) {
    html {
        font-size: 18px; /* Increased from 14px for much bigger base text */
    }
}

@media (min-width: 481px) and (max-width: 768px) {
    html {
        font-size: 17px; /* Increased from 15px */
    }
}

@media (min-width: 1200px) {
    html {
        font-size: 18px;
    }
}

/* Apply a paper texture background to the body */
body {
    background-color: var(--retro-beige);
    background-image: var(--paper-texture-url);
    font-family: 'Inter', sans-serif;
    color: #333;
    margin: 0;
    padding: 0;
    min-width: 320px; /* Prevent layout breaking on very small screens */
    overflow-x: hidden; /* Prevent horizontal scroll */
}

/* Basic styles for test pages */
body {
    font-family: Arial, sans-serif;
    margin: 0;
    padding: 20px;
    background-color: var(--retro-beige);
}

.container {
    max-width: 800px;
    margin: 0 auto;
    background: transparent;
    padding: 30px;
    border-radius: 10px;
    box-shadow: 0 4px 6px rgba(0,0,0,0.1);
}

h1 {
    color: #333;
    border-bottom: 2px solid #ddd;
    padding-bottom: 10px;
}

ul {
    list-style-type: none;
    padding: 0;
}

li {
    margin: 10px 0;
    padding: 10px;
    background: rgba(253, 244, 227, 0.3);
    border-left: 4px solid #007cba;
    border-radius: 4px;
}

a {
    color: #007cba;
    text-decoration: none;
    font-weight: bold;
}

a:hover {
    color: #005a8b;
    text-decoration: underline;
}

/* RESPONSIVE: Ensure consistent container behavior */
.container {
    width: 100%;
    margin-left: auto;
    margin-right: auto;
    padding-left: 1rem;
    padding-right: 1rem;
}

@media (min-width: 640px) {
    .container {
        max-width: 768px; /* Increased from 640px */
        padding-left: 1.5rem;
        padding-right: 1.5rem;
    }
}

@media (min-width: 768px) {
    .container {
        max-width: 1024px; /* Increased from 768px */
        padding-left: 2rem;
        padding-right: 2rem;
    }
}

@media (min-width: 1024px) {
    .container {
        max-width: 1400px; /* Increased from 1024px */
    }
}

@media (min-width: 1280px) {
    .container {
        max-width: 1600px; /* Increased from 1280px */
    }
}

/* Custom font for headings and the navbar using Lobster */
.font-lobster {
    font-family: 'Lobster', cursive;
}

/* Fixed navbar at the top with a retro feel */
.sticky-nav {
    position: sticky;
    top: 0;
    left: 0;
    right: 0;
    z-index: 1000;
    background: transparent;
    backdrop-filter: blur(20px) saturate(180%);
    -webkit-backdrop-filter: blur(20px) saturate(180%);
    border-bottom: 4px solid var(--retro-orange);
    border-top: 1px solid rgba(255, 255, 255, 0.2);
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.1);
    width: 100%;
    transition: all 0.3s ease;
    padding: 0.75rem 0; /* Responsive padding */
}

/* Mobile Navigation Specific Styles */
#mobile-menu {
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    background: rgba(253, 244, 227, 0.95);
    backdrop-filter: blur(20px) saturate(180%);
    -webkit-backdrop-filter: blur(20px) saturate(180%);
    border-bottom: 2px solid var(--retro-orange);
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.1);
    z-index: 999;
    transform: translateY(-10px);
    opacity: 0;
    transition: all 0.3s ease;
    pointer-events: none;
}

#mobile-menu.flex {
    opacity: 1;
    transform: translateY(0);
    pointer-events: auto;
}

#mobile-menu.hidden {
    opacity: 0;
    transform: translateY(-10px);
    pointer-events: none;
}

/* Mobile menu button animation */
#mobile-menu-button {
    position: relative;
    z-index: 1001;
}

#mobile-menu-button i {
    transition: transform 0.3s ease;
}

#mobile-menu-button:focus {
    outline: 2px solid var(--retro-teal);
    outline-offset: 2px;
}

/* Ensure mobile menu stays within viewport */
@media (max-width: 768px) {
    .sticky-nav {
        position: relative;
    }
    
    #mobile-menu {
        position: absolute;
        top: 100%;
        left: 0;
        right: 0;
        width: 100%;
        max-height: calc(100vh - 80px);
        overflow-y: auto;
    }
}

/* RESPONSIVE: Adjust navbar padding for different screen sizes */
@media (max-width: 480px) {
    .sticky-nav {
        padding: 0.5rem 0;
        border-bottom-width: 2px;
    }
}

@media (min-width: 768px) {
    .sticky-nav {
        padding: 1rem 0;
    }
}

/* Navbar on scroll - slightly more opaque */
.sticky-nav.scrolled {
    background: transparent;
    backdrop-filter: blur(25px) saturate(200%);
    -webkit-backdrop-filter: blur(25px) saturate(200%);
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.15);
}

/* Base style for nav links */
.nav-link {
    transition: all 0.3s ease;
    text-shadow: 1px 1px var(--retro-orange);
    letter-spacing: 1px;
    padding: 0.25rem 0.75rem;
    border-radius: 0.5rem;
    color: var(--retro-teal); /* Sets the default dark teal color */
    display: inline-block;
    text-decoration: none;
}

/* RESPONSIVE: Adjust nav link sizes for mobile */
@media (max-width: 768px) {
    .nav-link {
        padding: 0.75rem 1.5rem;
        font-size: 1.75rem; /* Increased from 1.25rem for much bigger mobile nav */
        margin: 0.5rem 0;
        text-align: center;
        width: 100%;
        display: block;
        min-height: 44px; /* Ensure touch-friendly size */
    }
}

/* General hover effect: scales up, text becomes white */
.nav-link:hover, .nav-link.active {
    transform: scale(1.1); /* Pop effect */
    color: white; /* White text for contrast */
    text-shadow: none; /* Remove shadow on hover for cleaner look */
}

/* RESPONSIVE: Reduce transform scale on mobile to prevent overflow */
@media (max-width: 768px) {
    .nav-link:hover, .nav-link.active {
        transform: scale(1.05);
    }
}

/* Individual hover background colors */
.hover-bg-pink:hover, .nav-link.active.hover-bg-pink { background-color: var(--retro-pink); }
.hover-bg-teal:hover, .nav-link.active.hover-bg-teal { background-color: var(--retro-teal); }
.hover-bg-gold:hover, .nav-link.active.hover-bg-gold { background-color: var(--retro-gold); }
.hover-bg-orange:hover, .nav-link.active.hover-bg-orange { background-color: var(--retro-orange); }

/* Sticker effect for various elements */
.sticker {
    background: transparent;
    padding: 1rem;
    border-radius: 1rem;
    box-shadow: 0 4px 6px rgba(0,0,0,0.1), 0 1px 3px rgba(0,0,0,0.08);
    border: 2px dashed var(--retro-teal);
    transition: all 0.3s ease;
}

.sticker:hover {
    transform: rotate(2deg) scale(1.02);
}

/* RESPONSIVE: Adjust sticker padding and transform for mobile */
@media (max-width: 768px) {
    .sticker {
        padding: 0.75rem;
        border-radius: 0.75rem;
    }
    
    .sticker:hover {
        transform: rotate(1deg) scale(1.01);
    }
}

/* "Taped-on" effect for images */
.taped-image {
    position: relative;
    display: inline-block;
    padding: 1rem;
    background: transparent;
    box-shadow: 0 10px 20px rgba(0,0,0,0.19), 0 6px 6px rgba(0,0,0,0.23);
    border-radius: 4px;
    max-width: 100%; /* Ensure images don't overflow */
}

/* RESPONSIVE: Adjust image padding for mobile */
@media (max-width: 768px) {
    .taped-image {
        padding: 0.5rem;
        box-shadow: 0 6px 12px rgba(0,0,0,0.15), 0 3px 3px rgba(0,0,0,0.15);
    }
}

.taped-image img {
    width: 100%;
    height: auto;
    display: block;
}

.taped-image::before,
.taped-image::after {
    content: '';
    position: absolute;
    width: 100px;
    height: 30px;
    background-color: rgba(244, 162, 43, 0.5); /* Semi-transparent gold for tape */
    box-shadow: 0 1px 1px rgba(0,0,0,0.2);
    border-left: 1px dashed rgba(0,0,0,0.1);
    border-right: 1px dashed rgba(0,0,0,0.1);
}

.taped-image::before {
    top: -15px;
    left: 50%;
    transform: translateX(-50%) rotate(-5deg);
}

.taped-image::after {
    bottom: -15px;
    left: 50%;
    transform: translateX(-50%) rotate(8deg);
    display: none; /* Hide bottom tape on some elements for variety */
}

@media (min-width: 768px) {
     .taped-image::after {
        display: block;
     }
}

/* Polaroid effect for portfolio items */
.polaroid {
    background: transparent;
    padding: 1rem;
    padding-bottom: 4rem;
    box-shadow: 0 4px 8px rgba(0,0,0,0.2);
    transition: all 0.3s ease-in-out;
    border-radius: 2px;
    max-width: 100%; /* Prevent overflow */
    box-sizing: border-box;
}

.polaroid:hover {
    transform: scale(1.05) rotate(3deg) !important;
    z-index: 10;
}

.polaroid img {
    width: 100%;
    height: auto;
    object-fit: cover;
    display: block;
}

/* RESPONSIVE: Adjust polaroid sizing and effects for mobile */
@media (max-width: 768px) {
    .polaroid {
        padding: 0.75rem;
        padding-bottom: 3rem;
        box-shadow: 0 2px 4px rgba(0,0,0,0.15);
    }
    
    .polaroid:hover {
        transform: scale(1.02) rotate(2deg) !important;
    }
}

/* Funky button style */
.funky-btn {
    background-color: var(--retro-pink);
    color: white;
    padding: 0.75rem 1.5rem;
    border-radius: 9999px;
    font-weight: bold;
    transition: all 0.3s ease;
    box-shadow: 4px 4px 0 var(--retro-teal);
    border: 2px solid #333;
    text-decoration: none;
    display: inline-block;
    text-align: center;
    min-width: fit-content;
}

.funky-btn:hover {
    background-color: var(--retro-gold);
    transform: translate(2px, 2px);
    box-shadow: 2px 2px 0 var(--retro-teal);
}

/* RESPONSIVE: Adjust button sizing for mobile */
@media (max-width: 768px) {
    .funky-btn {
        padding: 0.625rem 1.25rem;
        font-size: 0.9rem;
        box-shadow: 3px 3px 0 var(--retro-teal);
        width: 100%;
        max-width: 280px;
        margin: 0 auto;
    }
    
    .funky-btn:hover {
        transform: translate(1px, 1px);
        box-shadow: 1px 1px 0 var(--retro-teal);
    }
}

/* Retro flower divider */
.retro-divider {
    width: 100%;
    height: 25px;
    background-image: url("data:image/svg+xml,%3Csvg width='25' height='25' viewBox='0 0 25 25' xmlns='http://www.w3.org/2000/svg'%3E%3Cg fill='%23F4A22B'%3E%3Ccircle cx='12.5' cy='5' r='4'/%3E%3Ccircle cx='20' cy='12.5' r='4'/%3E%3Ccircle cx='12.5' cy='20' r='4'/%3E%3Ccircle cx='5' cy='12.5' r='4'/%3E%3C/g%3E%3Ccircle cx='12.5' cy='12.5' r='4' fill='%23DD6031'/%3E%3C/svg%3E");
    background-repeat: repeat-x;
    background-position: center;
    background-size: 25px 25px;
    position: relative;
    overflow: visible;
}

/* RESPONSIVE: Adjust retro-divider for mobile */
@media (max-width: 768px) {
    .retro-divider {
        height: 20px;
        background-size: 20px 20px;
    }
}

@media (max-width: 480px) {
    .retro-divider {
        height: 15px;
        background-size: 15px 15px;
    }
}

/* Large screens - bigger divider */
@media (min-width: 1200px) {
    .retro-divider {
        height: 30px;
        background-size: 30px 30px;
    }
}

/* Styles for scroll animations */
.scroll-animate {
    opacity: 0;
    transform: translateY(50px);
    transition: opacity 1s ease-out, transform 1s ease-out;
}

.scroll-animate.visible,
.scroll-animate.animate-fade-in {
    opacity: 1;
    transform: translateY(0);
}



/* Specific rotation classes for reusable transforms */
.rotate-neg-3 {
    transform: rotate(-3deg);
}

.rotate-2 {
    transform: rotate(2deg);
}

.rotate-neg-4 {
    transform: rotate(-4deg);
}

.rotate-neg-1 {
    transform: rotate(-1deg);
}

/* Text shadow utility classes */
.text-shadow-gold {
    text-shadow: 2px 2px var(--retro-gold);
}

.text-shadow-orange {
    text-shadow: 2px 2px var(--retro-orange);
}

.text-shadow-pink {
    text-shadow: 2px 2px var(--retro-pink);
}

.text-shadow-gold-small {
    text-shadow: 1px 1px var(--retro-gold);
}

/* RESPONSIVE: Adjust text shadows for mobile readability */
@media (max-width: 768px) {
    .text-shadow-gold {
        text-shadow: 1.5px 1.5px var(--retro-gold);
    }
    
    .text-shadow-orange {
        text-shadow: 1.5px 1.5px var(--retro-orange);
    }
    
    .text-shadow-pink {
        text-shadow: 1.5px 1.5px var(--retro-pink);
    }
    
    .text-shadow-gold-small {
        text-shadow: 1px 1px var(--retro-gold);
    }
}

/* RESPONSIVE: Typography scaling utilities */
.responsive-text-xs {
    font-size: 0.75rem;
}

.responsive-text-sm {
    font-size: 0.875rem;
}

.responsive-text-base {
    font-size: 1rem;
}

.responsive-text-lg {
    font-size: 1.125rem;
}

.responsive-text-xl {
    font-size: 1.25rem;
}

.responsive-text-2xl {
    font-size: 1.5rem;
}

.responsive-text-3xl {
    font-size: 1.875rem;
}

.responsive-text-4xl {
    font-size: 2.25rem;
}

.responsive-text-5xl {
    font-size: 3rem;
}

.responsive-text-6xl {
    font-size: 3.75rem;
}

/* Custom large text sizes for hero section */
.text-11xl {
    font-size: 10rem; /* Larger than text-9xl (8rem) */
    line-height: 1;
}

.text-12xl {
    font-size: 12rem; /* Even larger for maximum impact */
    line-height: 1;
}

/* Mobile typography adjustments */
@media (max-width: 640px) {
    .responsive-text-xl { font-size: 1.125rem; }
    .responsive-text-2xl { font-size: 1.25rem; }
    .responsive-text-3xl { font-size: 1.5rem; }
    .responsive-text-4xl { font-size: 1.875rem; }
    .responsive-text-5xl { font-size: 2.25rem; }
    .responsive-text-6xl { font-size: 2.5rem; }
    
    /* Mobile responsive sizes for custom large text */
    .text-11xl { font-size: 4rem; }
    .text-12xl { font-size: 5rem; }
}

/* Tablet typography adjustments */
@media (min-width: 641px) and (max-width: 768px) {
    .responsive-text-4xl { font-size: 2rem; }
    .responsive-text-5xl { font-size: 2.5rem; }
    .responsive-text-6xl { font-size: 3rem; }
    
    /* Tablet responsive sizes for custom large text */
    .text-11xl { font-size: 6rem; }
    .text-12xl { font-size: 7rem; }
}

/* Text with small backdrop effect - retro style */
.text-backdrop {
    background: var(--retro-beige);
    padding: 0.5rem 1rem;
    border-radius: 1rem;
    border: 2px dashed var(--retro-teal);
    box-shadow: 0 4px 6px rgba(0,0,0,0.1), 0 1px 3px rgba(0,0,0,0.08);
    display: inline-block;
    transform: rotate(-1deg);
    transition: all 0.3s ease;
}

/* Contact sticker - enhanced clickable styling */
.contact-sticker {
    background: var(--retro-beige);
    border-radius: 1rem;
    border: 3px dashed var(--retro-teal);
    box-shadow: 0 8px 16px rgba(0,0,0,0.15), 0 4px 6px rgba(0,0,0,0.1);
    transform: rotate(1deg);
    transition: all 0.3s ease;
    position: relative;
}

.contact-sticker:hover {
    transform: rotate(2deg) scale(1.05);
    box-shadow: 0 12px 24px rgba(0,0,0,0.2), 0 6px 8px rgba(0,0,0,0.15);
    border-color: var(--retro-pink);
    background: linear-gradient(135deg, var(--retro-beige) 0%, rgba(253, 244, 227, 0.9) 100%);
}

.contact-sticker:active {
    transform: rotate(1deg) scale(1.02);
    transition: all 0.1s ease;
}

/* Add a subtle glow effect on hover */
.contact-sticker:hover::before {
    content: '';
    position: absolute;
    top: -2px;
    left: -2px;
    right: -2px;
    bottom: -2px;
    background: linear-gradient(45deg, var(--retro-pink), var(--retro-teal), var(--retro-orange), var(--retro-gold));
    border-radius: 1rem;
    z-index: -1;
    opacity: 0.3;
    filter: blur(8px);
}

/* Background blend mode utility for about section */
.bg-paper-texture-blend {
    background-image: var(--paper-texture-url);
    background-blend-mode: multiply;
}

/* Transition delay utilities */
.transition-delay-200 {
    transition-delay: 200ms;
}

.transition-delay-400 {
    transition-delay: 400ms;
}

/* Page Transition Effects */
.page-transition {
    opacity: 1;
    transition: opacity 0.3s ease-in-out;
}

.page-transition.fade-out {
    opacity: 0;
}

.page-transition.fade-in {
    opacity: 1;
}

/* Smooth page transitions */
body {
    opacity: 0;
    animation: fadeInPage 0.4s ease-in forwards;
}

@keyframes fadeInPage {
    from {
        opacity: 0;
        transform: translateY(10px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* Floating SVG Animation */
.floating-svg {
    position: absolute;
    animation: float 6s ease-in-out infinite;
    opacity: 0.7;
    z-index: 5;
    width: 120px;
    height: 120px;
}

/* Make SVGs within floating containers responsive */
.floating-svg svg {
    width: 100%;
    height: 100%;
    max-width: none;
    max-height: none;
}

/* RESPONSIVE: Adjust floating SVG size and position for mobile */
@media (max-width: 768px) {
    .floating-svg {
        display: none !important; /* Hide all floating SVGs on mobile */
    }
}

@media (max-width: 480px) {
    .floating-svg {
        display: none !important; /* Ensure SVGs stay hidden on small mobile */
    }
}

/* Tablet adjustments */
@media (min-width: 481px) and (max-width: 768px) {
    .floating-svg {
        width: 40px;
        height: 40px;
        opacity: 0.6;
    }
}

/* Large desktop - bigger SVGs */
@media (min-width: 1200px) {
    .floating-svg {
        width: 80px;
        height: 80px;
        opacity: 0.8;
    }
}

.floating-svg-1 {
    top: 8%;
    left: 5%;
    animation-delay: 0s;
}

.floating-svg-2 {
    bottom: 10%;
    right: 5%;
    animation: floatDiagonal 8s ease-in-out infinite;
    animation-delay: 2s;
}

.floating-svg-3 {
    top: 5%;
    right: 5%;
    animation: float 6s ease-in-out infinite;
    animation-delay: 4s;
    width: 240px;
    height: 240px;
}

.floating-svg-4 {
    bottom: 15%;
    left: 5%;
    animation: float 6s ease-in-out infinite;
    animation-delay: 1s;
    width: 480px;
    height: 480px;
}

/* RESPONSIVE: Adjust SVG positions for mobile */
@media (max-width: 768px) {
    .floating-svg {
        display: none !important; /* Hide all floating SVGs on mobile */
    }
}

@media (max-width: 480px) {
    .floating-svg {
        display: none !important; /* Ensure SVGs stay hidden on small mobile */
    }
}

/* Tablet adjustments */
@media (min-width: 481px) and (max-width: 768px) {
    .floating-svg-1 {
        top: 6%;
        left: 4%;
    }
    
    .floating-svg-2 {
        bottom: 8%;
        right: 4%;
    }
    
    .floating-svg-3 {
        top: 4%;
        right: 4%;
    }
    
    .floating-svg-4 {
        bottom: 12%;
        left: 4%;
    }
}

/* Large screens - more spacing */
@media (min-width: 1200px) {
    .floating-svg-1 {
        top: 10%;
        left: 8%;
    }
    
    .floating-svg-2 {
        bottom: 12%;
        right: 8%;
    }
    
    .floating-svg-3 {
        top: 6%;
        right: 8%;
    }
    
    .floating-svg-4 {
        bottom: 18%;
        left: 8%;
    }
}

.floating-svg-5 {
    top: 45%;
    left: 2%;
    animation-delay: 3s;
}

.floating-svg-6 {
    top: 65%;
    right: 3%;
    animation-delay: 2.5s;
}

.floating-svg-7 {
    bottom: 50%;
    left: 25%;
    animation-delay: 1.5s;
}

@keyframes float {
    0%, 100% {
        transform: translateY(0px) rotate(0deg);
    }
    25% {
        transform: translateY(-15px) rotate(2deg);
    }
    50% {
        transform: translateY(-25px) rotate(-1deg);
    }
    75% {
        transform: translateY(-10px) rotate(1deg);
    }
}

@keyframes floatDiagonal {
    0%, 100% {
        transform: translate(0px, 0px) rotate(0deg);
    }
    25% {
        transform: translate(-10px, -20px) rotate(-2deg);
    }
    50% {
        transform: translate(-20px, -30px) rotate(1deg);
    }
    75% {
        transform: translate(-15px, -15px) rotate(-1deg);
    }
}

/* Content blur effect when scrolling behind nav */
.blur-content {
    transition: filter 0.3s ease;
}

.blur-content.blur-active {
    filter: blur(8px);
}

/* Main content area that will be blurred */
.page-content {
    position: relative;
    z-index: 1;
}

/* Filter buttons for art mediums */
.filter-btn {
    background-color: transparent;
    color: var(--retro-teal);
    padding: 0.75rem 1.5rem;
    border: 2px dashed var(--retro-teal);
    border-radius: 0.5rem;
    font-family: 'Lobster', cursive;
    font-size: 1.1rem;
    font-weight: 400;
    cursor: pointer;
    transition: all 0.3s ease;
    margin: 0.25rem;
    position: relative;
    overflow: hidden;
    text-decoration: none;
    display: inline-block;
}

.filter-btn:hover {
    background-color: var(--retro-teal);
    color: white;
    transform: translateY(-2px);
    box-shadow: 0 4px 8px rgba(0, 128, 128, 0.3);
}

.filter-btn.active {
    background-color: var(--retro-teal);
    color: white;
    border-style: solid;
    transform: scale(1.05);
}

/* RESPONSIVE: Adjust filter buttons for mobile */
@media (max-width: 768px) {
    .filter-btn {
        padding: 0.625rem 1.25rem;
        font-size: 1rem;
        margin: 0.125rem;
        width: 100%;
        max-width: 200px;
        text-align: center;
    }
    
    .filter-btn:hover {
        transform: translateY(-1px);
    }
    
    .filter-btn.active {
        transform: scale(1.02);
    }
}

/* Filter container styling */
.filter-container {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    align-items: center;
    margin: 3rem auto 2rem auto;
    gap: 1rem;
    max-width: 1200px;
    padding: 0 1rem;
}

/* Art section transition effects */
.art-section {
    transition: opacity 0.4s ease-in-out, transform 0.4s ease-in-out;
}

.art-section.hidden {
    opacity: 0;
    transform: translateY(20px);
    pointer-events: none;
}

/* Mobile dropdown styles - HIDDEN on mobile */
@media (max-width: 767px) {
    .filter-container {
        display: none !important;
    }
    
    .filter-dropdown {
        display: none !important;
    }
    
    .filter-dropdown-button {
        width: 100%;
        background-color: transparent;
        color: var(--retro-teal);
        padding: 0.75rem 1.5rem;
        border: 2px dashed var(--retro-teal);
        border-radius: 0.5rem;
        font-family: 'Lobster', cursive;
        font-size: 1.1rem;
        cursor: pointer;
        display: flex !important;
        justify-content: space-between;
        align-items: center;
        transition: all 0.3s ease;
    }
    
    .filter-dropdown-button:hover {
        background-color: var(--retro-teal);
        color: white;
    }
    
    .filter-dropdown-content {
        position: absolute;
        top: 100%;
        left: 0;
        right: 0;
        background: rgba(255, 255, 255, 0.95);
        border: 2px dashed var(--retro-teal);
        border-top: none;
        border-radius: 0 0 0.5rem 0.5rem;
        box-shadow: 0 4px 8px rgba(0, 128, 128, 0.3);
        opacity: 0;
        visibility: hidden;
        transform: translateY(-10px);
        transition: all 0.3s ease;
        z-index: 9999;
        max-height: 300px;
        overflow-y: auto;
        display: block !important;
    }
    
    .filter-dropdown.open .filter-dropdown-content {
        opacity: 1;
        visibility: visible;
        transform: translateY(0);
    }
    
    .filter-dropdown-item {
        display: block !important;
        width: 100%;
        padding: 0.75rem 1.5rem;
        background: transparent;
        border: none;
        color: var(--retro-teal);
        font-family: 'Lobster', cursive;
        font-size: 1rem;
        text-align: left;
        cursor: pointer;
        transition: background-color 0.2s ease;
        border-bottom: 1px dashed rgba(0, 128, 128, 0.3);
    }
    
    .filter-dropdown-item:last-child {
        border-bottom: none;
    }
    
    .filter-dropdown-item:hover,
    .filter-dropdown-item.active {
        background-color: rgba(0, 128, 128, 0.1);
        color: var(--retro-teal);
    }
    
    .filter-dropdown-arrow {
        transition: transform 0.3s ease;
        display: inline-block !important;
    }
    
    .filter-dropdown.open .filter-dropdown-arrow {
        transform: rotate(180deg);
    }
    
    /* Hide regular filter buttons on mobile */
    .filter-btn {
        display: none !important;
    }
}

/* Show regular filter buttons on tablet and larger */
@media (min-width: 768px) {
    .filter-container {
        position: relative;
        display: flex !important;
        justify-content: center;
        align-items: center;
        margin: 3rem auto 2rem auto;
        max-width: 1200px;
        padding: 0 1rem;
    }
    
    .filter-dropdown {
        position: relative;
        width: 100%;
        max-width: 320px;
        margin: 0 auto;
        display: block !important;
    }
    
    .filter-dropdown-button {
        width: 100%;
        background-color: transparent;
        color: var(--retro-teal);
        padding: 0.75rem 1.5rem;
        border: 2px dashed var(--retro-teal);
        border-radius: 0.5rem;
        font-family: 'Lobster', cursive;
        font-size: 1.1rem;
        cursor: pointer;
        display: flex !important;
        justify-content: space-between;
        align-items: center;
        transition: all 0.3s ease;
    }
    
    .filter-dropdown-button:hover {
        background-color: var(--retro-teal);
        color: white;
    }
    
    .filter-dropdown-content {
        position: absolute;
        top: 100%;
        left: 0;
        right: 0;
        background: rgba(255, 255, 255, 0.95);
        border: 2px dashed var(--retro-teal);
        border-top: none;
        border-radius: 0 0 0.5rem 0.5rem;
        box-shadow: 0 4px 8px rgba(0, 128, 128, 0.3);
        opacity: 0;
        visibility: hidden;
        transform: translateY(-10px);
        transition: all 0.3s ease;
        z-index: 9999;
        max-height: 300px;
        overflow-y: auto;
        display: block !important;
    }
    
    .filter-dropdown.open .filter-dropdown-content {
        opacity: 1;
        visibility: visible;
        transform: translateY(0);
    }
    
    .filter-dropdown-item {
        display: block !important;
        width: 100%;
        padding: 0.75rem 1.5rem;
        background: transparent;
        border: none;
        color: var(--retro-teal);
        font-family: 'Lobster', cursive;
        font-size: 1rem;
        text-align: left;
        cursor: pointer;
        transition: background-color 0.2s ease;
        border-bottom: 1px dashed rgba(0, 128, 128, 0.3);
    }
    
    .filter-dropdown-item:last-child {
        border-bottom: none;
    }
    
    .filter-dropdown-item:hover,
    .filter-dropdown-item.active {
        background-color: rgba(0, 128, 128, 0.1);
        color: var(--retro-teal);
    }
    
    .filter-dropdown-arrow {
        transition: transform 0.3s ease;
        display: inline-block !important;
    }
    
    .filter-dropdown.open .filter-dropdown-arrow {
        transform: rotate(180deg);
    }
}
    
/* Show regular filter buttons on desktop */
@media (min-width: 1024px) {
    .filter-container {
        display: flex !important;
        justify-content: center;
        align-items: center;
        flex-wrap: wrap;
        margin: 3rem auto 2rem auto;
        gap: 1.5rem;
        max-width: 1200px;
        padding: 0 2rem;
    }
    
    .filter-dropdown {
        display: none !important;
    }
    
    .filter-btn {
        display: inline-block !important;
        flex: 0 0 auto;
    }
}

/* Mobile-specific styles - show ALL artwork content by default */
@media (max-width: 767px) {
    .art-section {
        display: block !important;
    }
    
    .art-section.mobile-visible {
        display: block !important;
    }
    
    /* Hide the entire artwork grid container on mobile initially */
    .my-16.scroll-animate {
        display: none;
        transition: margin-top 0.3s ease;
    }
    
    .my-16.scroll-animate.mobile-show {
        display: block;
    }
    
    /* Add dynamic margin when dropdown is open */
    .filter-container.dropdown-open + .my-16.scroll-animate {
        margin-top: 280px; /* Adjust based on dropdown height */
    }
    
    /* Also push content down for any content after filter container */
    .filter-container.dropdown-open ~ * {
        margin-top: 280px;
        transition: margin-top 0.3s ease;
    }
    
    /* Reset margin when dropdown is closed */
    .filter-container:not(.dropdown-open) + .my-16.scroll-animate,
    .filter-container:not(.dropdown-open) ~ * {
        margin-top: 0;
        transition: margin-top 0.3s ease;
    }
}

/* Mobile button text override */
@media (max-width: 767px) {
    .mobile-btn-text::before {
        content: attr(data-mobile);
    }
    .mobile-btn-text {
        font-size: 0;
    }
}

@media (min-width: 768px) {
    .mobile-btn-text::before {
        content: attr(data-desktop);
    }
    .mobile-btn-text {
        font-size: 0;
    }
}

/* ===== COMPREHENSIVE RESPONSIVE UTILITIES ===== */

/* Responsive Grid System */
.responsive-grid {
    display: grid;
    gap: 1rem;
    grid-template-columns: 1fr;
}

@media (min-width: 640px) {
    .responsive-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 1.5rem;
    }
}

@media (min-width: 768px) {
    .responsive-grid {
        gap: 2rem;
    }
}

@media (min-width: 1024px) {
    .responsive-grid {
        grid-template-columns: repeat(3, 1fr);
        gap: 2.5rem;
    }
}

@media (min-width: 1280px) {
    .responsive-grid {
        grid-template-columns: repeat(4, 1fr);
        gap: 3rem;
    }
}

/* Responsive Flexbox Utilities */
.responsive-flex {
    display: flex;
    flex-direction: column;
    gap: 1rem;
}

@media (min-width: 768px) {
    .responsive-flex {
        flex-direction: row;
        gap: 2rem;
    }
}

/* Responsive Spacing */
.responsive-spacing {
    padding: 1rem;
    margin: 1rem 0;
}

@media (min-width: 640px) {
    .responsive-spacing {
        padding: 1.5rem;
        margin: 1.5rem 0;
    }
}

@media (min-width: 768px) {
    .responsive-spacing {
        padding: 2rem;
        margin: 2rem 0;
    }
}

@media (min-width: 1024px) {
    .responsive-spacing {
        padding: 3rem;
        margin: 3rem 0;
    }
}

/* Image Responsive Utilities */
.responsive-img {
    width: 100%;
    height: auto;
    object-fit: cover;
    display: block;
}

.responsive-img-contain {
    width: 100%;
    height: auto;
    object-fit: contain;
    display: block;
}

/* Mobile-first responsive breakpoint utilities */
@media (max-width: 639px) {
    .hidden-mobile { display: none !important; }
    .block-mobile { display: block !important; }
    .flex-mobile { display: flex !important; }
    .text-center-mobile { text-align: center !important; }
    .w-full-mobile { width: 100% !important; }
}

@media (min-width: 640px) and (max-width: 767px) {
    .hidden-tablet { display: none !important; }
    .block-tablet { display: block !important; }
    .flex-tablet { display: flex !important; }
}

@media (min-width: 768px) {
    .hidden-desktop { display: none !important; }
    .block-desktop { display: block !important; }
    .flex-desktop { display: flex !important; }
}

/* Touch-friendly improvements for mobile */
@media (hover: none) and (pointer: coarse) {
    .touch-target {
        min-height: 44px;
        min-width: 44px;
        padding: 0.75rem;
    }
    
    /* Reduce hover effects on touch devices */
    .hover-reduce:hover {
        transform: none !important;
    }
}

/* High DPI display optimizations */
@media (-webkit-min-device-pixel-ratio: 2), (min-resolution: 192dpi) {
    .high-dpi-optimized {
        image-rendering: -webkit-optimize-contrast;
        image-rendering: crisp-edges;
    }
}

/* Landscape vs Portrait orientations */
@media (orientation: landscape) and (max-height: 500px) {
    .landscape-compress {
        padding-top: 0.5rem;
        padding-bottom: 0.5rem;
    }
}

@media (orientation: portrait) {
    .portrait-stack {
        flex-direction: column;
    }
}

/* Accessibility improvements for responsive design */
@media (prefers-reduced-motion: reduce) {
    .motion-reduce {
        animation: none !important;
        transition: none !important;
        transform: none !important;
    }
}

/* WIP Preview Card Styles */
.wip-preview-card {
    position: relative;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    cursor: pointer;
}

.wip-preview-card:hover {
    transform: scale(1.05) rotate(0deg) !important;
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.2);
}

.wip-preview-card::before {
    content: '';
    position: absolute;
    top: -10px;
    left: -10px;
    right: -10px;
    bottom: -10px;
    background: linear-gradient(45deg, var(--retro-pink), var(--retro-teal), var(--retro-orange), var(--retro-gold));
    background-size: 300% 300%;
    animation: wipGradient 3s ease infinite;
    border-radius: inherit;
    z-index: -1;
    opacity: 0;
    transition: opacity 0.3s ease;
}

.wip-preview-card:hover::before {
    opacity: 0.3;
}

@keyframes wipGradient {
    0% { background-position: 0% 50%; }
    50% { background-position: 100% 50%; }
    100% { background-position: 0% 50%; }
}

/* WIP Badge animations */
.wip-preview-card .bg-retro-pink,
.wip-preview-card .bg-retro-orange {
    animation: wipPulse 2s ease-in-out infinite;
}

@keyframes wipPulse {
    0%, 100% { transform: scale(1); }
    50% { transform: scale(1.1); }
}

/* 404 Game Button Styles */
.game-btn {
    background: linear-gradient(45deg, var(--retro-pink), var(--retro-orange));
    color: white;
    padding: 0.75rem 1.5rem;
    border-radius: 9999px;
    font-weight: bold;
    transition: all 0.3s ease;
    box-shadow: 4px 4px 0 var(--retro-teal);
    border: 2px solid #333;
    text-decoration: none;
    display: inline-block;
    position: relative;
    overflow: hidden;
    text-transform: uppercase;
    letter-spacing: 1px;
}

.game-btn:hover {
    background: linear-gradient(45deg, var(--retro-gold), var(--retro-pink));
    transform: translate(2px, 2px);
    box-shadow: 2px 2px 0 var(--retro-teal);
}

.game-btn:before {
    content: "🎮";
    margin-right: 0.5rem;
    font-size: 1.2em;
}

.game-btn:after {
    content: "";
    position: absolute;
    top: 50%;
    left: 50%;
    width: 0;
    height: 0;
    background: rgba(255, 255, 255, 0.3);
    border-radius: 50%;
    transform: translate(-50%, -50%);
    transition: width 0.6s, height 0.6s;
}

.game-btn:hover:after {
    width: 300px;
    height: 300px;
}
