/* ============================================

CONSOLIDATED CSS - THE FAMOUS LIST PROJECT - REDESIGNED

============================================

Combined from: style.css, glitcheffect.css, modern-effects.css, kinetic-style.css, category-animation.css

Total original files: 5 → 1 optimized file + Dark Theme Redesign

============================================ */

/* ============================================

SECTION 1: FONT IMPORTS & BASE SETUP

============================================ */

@import url('https://fonts.googleapis.com/css2?family=Bebas+Neue:wght@400&display=swap');
@import url('https://fonts.googleapis.com/css2?family=Inter:ital,opsz,wght@0,14..32,100..900;1,14..32,100..900&display=swap');

/* Preserve existing custom fonts for compatibility */
@import url('https://fonts.googleapis.com/css2?family=Cinzel+Decorative:wght@400;700;900&display=swap');

@font-face {
    font-family: 'Compressa VF';
    src: url('https://res.cloudinary.com/dr6lvwubh/raw/upload/v1529908256/CompressaPRO-GX.woff2');
    font-style: normal;
}

/* ============================================

SECTION 2: CSS VARIABLES & GLOBAL STYLES

============================================ */

:root {
    /* New Typography System */
    --title-font: 'Bebas Neue', Impact, sans-serif;
    --body-font: 'Inter', Arial, sans-serif;
    --heading-font: 'Bebas Neue', Impact, sans-serif;

    /* Dark Theme Color System */
    --background-color: #000000;
    --text-color: #ffffff;
    --accent-color: #0080ff; /* Electric blue */
    --hover-color: #e5e5e5;

    /* Enhanced Dark Mode Palette */
    --dm-background: #000000;
    --dm-surface: #0a0a0a;
    --dm-surface-elevated: #1a1a1a;
    --dm-text-primary: #ffffff;
    --dm-text-secondary: #b3b3b3;
    --dm-text-muted: #808080;
    --dm-border: #333333;
    --dm-border-light: #404040;
    --dm-accent: #0080ff;
    --dm-accent-hover: #3399ff;

    /* Animation Variables */
    --animation-speed: 0.3s;
    --animation-timing: cubic-bezier(0.4, 0, 0.2, 1);
    --animation-bounce: cubic-bezier(0.68, -0.55, 0.265, 1.55);

    /* Noise and Texture Variables */
    --noise-opacity: 0.03;
    --noise-size: 200px;

    /* Gradient Variables with Electric Blue */
    --gradient-primary: linear-gradient(135deg, #000000 0%, #0080ff 25%, #000000 100%);
    --gradient-secondary: linear-gradient(135deg, #0080ff 0%, #3399ff 50%, #0080ff 100%);
    --gradient-text: linear-gradient(90deg, #ffffff 0%, #0080ff 50%, #ffffff 100%);
    --gradient-glow: linear-gradient(45deg, 
        rgba(0, 128, 255, 0.1) 0%, 
        rgba(0, 128, 255, 0.2) 25%, 
        rgba(51, 153, 255, 0.1) 50%, 
        rgba(0, 128, 255, 0.2) 75%, 
        rgba(0, 128, 255, 0.1) 100%);
}

/* Accessibility Support */
@media (prefers-reduced-motion: reduce) {
    :root {
        --animation-speed: 0.01ms;
        --animation-timing: linear;
    }

    *, *::before, *::after {
        animation-duration: 0.01ms !important;
        animation-iteration-count: 1 !important;
        transition-duration: 0.01ms !important;
        scroll-behavior: auto !important;
    }

    /* Disable scroll animations for users who prefer reduced motion */
    .fade-in-up, .fade-in-left, .fade-in-right,
    .scale-in, .scale-in-up, .slide-up, .slide-up-bounce,
    .bounce-in, .flip-in, .stagger-item, .stagger-scale {
        opacity: 1 !important;
        transform: none !important;
        transition: none !important;
    }
}

/* Performance optimizations for animations */
.fade-in-up, .fade-in-left, .fade-in-right,
.scale-in, .scale-in-up, .slide-up, .slide-up-bounce,
.bounce-in, .flip-in, .stagger-item, .stagger-scale {
    will-change: transform, opacity;
    backface-visibility: hidden;
    perspective: 1000px;
}

/* GPU acceleration for better performance */
.fade-in-up.visible, .fade-in-left.visible, .fade-in-right.visible,
.scale-in.visible, .scale-in-up.visible, .slide-up.visible, .slide-up-bounce.visible,
.bounce-in.visible, .flip-in.visible, .stagger-item.visible, .stagger-scale.visible {
    will-change: auto;
}

/* Global Reset & Base Styles */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
}

html {
    scroll-behavior: smooth;
}

body {
    background-color: var(--dm-background);
    color: var(--dm-text-primary);
    font-family: var(--body-font);
    overflow-x: hidden;
    min-height: 100vh;
    position: relative;
}

/* Optimized Custom Cursor System - Performance Focused */
* {
    cursor: none;
}

.custom-cursor {
    width: 16px;
    height: 16px;
    border: 2px solid var(--dm-accent);
    border-radius: 50%;
    position: fixed;
    pointer-events: none;
    z-index: 9999;
    transition: all 0.15s ease-out; /* Faster, smoother transitions */
    mix-blend-mode: difference;
    background: rgba(0, 128, 255, 0.1);
    transform: translate(-50%, -50%); /* Better positioning */
}

/* Enhanced hover states with dynamic effects */
.custom-cursor.hover {
    width: 32px;
    height: 32px;
    border: 3px solid var(--dm-accent-hover);
    background: rgba(0, 128, 255, 0.2);
    box-shadow: 0 0 20px rgba(0, 128, 255, 0.3);
    animation: cursorGlow 1.5s ease-in-out infinite alternate;
}

@keyframes cursorGlow {
    0% {
        box-shadow: 0 0 20px rgba(0, 128, 255, 0.3);
        transform: translate(-50%, -50%) scale(1);
    }
    100% {
        box-shadow: 0 0 30px rgba(0, 128, 255, 0.6);
        transform: translate(-50%, -50%) scale(1.1);
    }
}

/* Enhanced context-aware colors with dynamic effects */
.custom-cursor.text-hover {
    border-color: #00ff88;
    background: rgba(0, 255, 136, 0.15);
    animation: textCursorPulse 1s ease-in-out infinite alternate;
}

.custom-cursor.link-hover {
    border-color: var(--dm-accent-hover);
    background: rgba(0, 128, 255, 0.2);
    animation: linkCursorRipple 1.2s ease-in-out infinite;
}

.custom-cursor.button-hover {
    border-color: #ff6b6b;
    background: rgba(255, 107, 107, 0.15);
    animation: buttonCursorBounce 0.8s ease-in-out infinite alternate;
}

.custom-cursor.image-hover {
    border-color: #ffd93d;
    background: rgba(255, 217, 61, 0.15);
    animation: imageCursorRotate 2s linear infinite;
}

@keyframes textCursorPulse {
    0% { transform: translate(-50%, -50%) scale(1); }
    100% { transform: translate(-50%, -50%) scale(1.2); }
}

@keyframes linkCursorRipple {
    0% { box-shadow: 0 0 15px rgba(0, 128, 255, 0.4); }
    50% { box-shadow: 0 0 25px rgba(0, 128, 255, 0.8); }
    100% { box-shadow: 0 0 15px rgba(0, 128, 255, 0.4); }
}

@keyframes buttonCursorBounce {
    0% { transform: translate(-50%, -50%) translateY(0); }
    100% { transform: translate(-50%, -50%) translateY(-3px); }
}

@keyframes imageCursorRotate {
    0% { transform: translate(-50%, -50%) rotate(0deg); }
    100% { transform: translate(-50%, -50%) rotate(360deg); }
}

/* Enhanced cursor trail with particle effects */
.cursor-trail {
    position: fixed;
    width: 3px;
    height: 3px;
    background: var(--dm-accent);
    border-radius: 50%;
    pointer-events: none;
    z-index: 9998;
    opacity: 0.6;
    transform: translate(-50%, -50%);
    transition: all 0.3s ease-out;
    box-shadow: 0 0 10px var(--dm-accent);
    animation: trailPulse 2s ease-in-out infinite alternate;
}

@keyframes trailPulse {
    0% {
        opacity: 0.4;
        transform: translate(-50%, -50%) scale(1);
    }
    100% {
        opacity: 0.8;
        transform: translate(-50%, -50%) scale(1.2);
    }
}

/* Simplified trail colors */
.cursor-trail:nth-child(2) { background: var(--dm-accent-hover); }
.cursor-trail:nth-child(3) { background: rgba(0, 128, 255, 0.8); }
.cursor-trail:nth-child(4) { background: rgba(0, 128, 255, 0.6); }
.cursor-trail:nth-child(5) { background: rgba(0, 128, 255, 0.4); }
.cursor-trail:nth-child(6) { background: rgba(0, 128, 255, 0.2); }

/* Enhanced responsive cursor scaling with device-specific effects */
@media (max-width: 768px) {
    .custom-cursor {
        width: 15px;
        height: 15px;
        border-width: 1px;
    }

    .custom-cursor.hover {
        width: 30px;
        height: 30px;
        border-width: 2px;
    }

    .cursor-trail {
        width: 3px;
        height: 3px;
    }

    /* Touch device optimizations */
    .custom-cursor.touch-active {
        width: 25px;
        height: 25px;
        background: rgba(0, 128, 255, 0.3);
        border: 2px solid var(--dm-accent);
        animation: touchPulse 0.6s ease-in-out infinite alternate;
    }

    @keyframes touchPulse {
        0% { transform: translate(-50%, -50%) scale(1); }
        100% { transform: translate(-50%, -50%) scale(1.1); }
    }
}

@media (max-width: 480px) {
    .custom-cursor {
        width: 12px;
        height: 12px;
    }

    .custom-cursor.hover {
        width: 24px;
        height: 24px;
    }

    .cursor-trail {
        width: 2px;
        height: 2px;
    }

    /* Simplified effects for small screens */
    .cursor-particles {
        width: 2px;
        height: 2px;
    }

    .custom-cursor.magnetic-active {
        width: 30px;
        height: 30px;
    }
}

/* High-performance mode for slower devices */
@media (max-width: 768px) and (prefers-reduced-motion: reduce) {
    .cursor-trail {
        display: none;
    }

    .cursor-particles {
        display: none;
    }

    .custom-cursor {
        transition: none;
    }
}

/* Magnetic attraction effect for interactive elements */
.magnetic {
    transition: transform 0.3s cubic-bezier(0.23, 1, 0.32, 1);
}

.magnetic:hover {
    transform: scale(1.05);
}

/* Enhanced cursor magnetic effect */
.custom-cursor.magnetic-active {
    width: 40px;
    height: 40px;
    border: 4px solid var(--dm-accent);
    background: rgba(0, 128, 255, 0.3);
    box-shadow: 0 0 40px rgba(0, 128, 255, 0.6);
    animation: magneticPull 0.5s ease-out;
}

@keyframes magneticPull {
    0% {
        transform: translate(-50%, -50%) scale(1);
    }
    50% {
        transform: translate(-50%, -50%) scale(1.3);
    }
    100% {
        transform: translate(-50%, -50%) scale(1);
    }
}

/* Accessibility: Respect reduced motion */
@media (prefers-reduced-motion: reduce) {
    .custom-cursor,
    .cursor-trail {
        animation: none !important;
        transition: none !important;
    }

    .custom-cursor::before,
    .custom-cursor::after {
        display: none;
    }

    .magnetic {
        transform: none !important;
    }

    .custom-cursor.magnetic-active {
        animation: none !important;
        transform: translate(-50%, -50%) scale(1) !important;
    }
}

/* Enhanced Particle Effects on Cursor Hover */
.cursor-particles {
    position: fixed;
    width: 4px;
    height: 4px;
    background: var(--dm-accent);
    border-radius: 50%;
    pointer-events: none;
    z-index: 9997;
    opacity: 0;
    animation: particleBurst 1.5s ease-out forwards;
}

@keyframes particleBurst {
    0% {
        opacity: 0;
        transform: scale(0) rotate(0deg);
    }
    20% {
        opacity: 1;
        transform: scale(1) rotate(72deg);
    }
    40% {
        transform: scale(1.2) rotate(144deg);
    }
    60% {
        transform: scale(1) rotate(216deg);
    }
    80% {
        transform: scale(0.8) rotate(288deg);
    }
    100% {
        opacity: 0;
        transform: scale(0) rotate(360deg);
    }
}

/* Animated Noise Texture Background */
body::before {
    content: '';
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: -3;
    background-image:
        radial-gradient(circle at 1px 1px, rgba(255, 255, 255, var(--noise-opacity)) 1px, transparent 0);
    background-size: var(--noise-size) var(--noise-size);
    animation: noiseMove 20s linear infinite;
    pointer-events: none;
}

@keyframes noiseMove {
    0% { transform: translateX(0) translateY(0); }
    25% { transform: translateX(-50px) translateY(-25px); }
    50% { transform: translateX(-100px) translateY(-50px); }
    75% { transform: translateX(-50px) translateY(-75px); }
    100% { transform: translateX(0) translateY(-100px); }
}

/* Dynamic Gradient Background */
body::after {
    content: '';
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: -2;
    background: var(--gradient-glow);
    animation: gradientShift 30s ease-in-out infinite;
    pointer-events: none;
}

@keyframes gradientShift {
    0%, 100% { 
        opacity: 0.1;
        transform: scale(1) rotate(0deg);
    }
    33% { 
        opacity: 0.2;
        transform: scale(1.1) rotate(120deg);
    }
    66% { 
        opacity: 0.15;
        transform: scale(0.9) rotate(240deg);
    }
}

/* Typography */
h1, h2, h3, h4, h5, h6 {
    font-family: var(--heading-font);
    font-weight: 400;
    letter-spacing: 0.05em;
}

p, li, span {
  /*  font-family: var(--body-font); */
    line-height: 1.6;
}

/* Animated Preloader */
.preloader {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: var(--dm-background);
    z-index: 10000;
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 1;
    transition: opacity 0.5s ease-out;
}

.preloader.hide {
    opacity: 0;
    pointer-events: none;
}

.preloader-content {
    text-align: center;
}

.preloader-spinner {
    width: 60px;
    height: 60px;
    border: 3px solid transparent;
    border-top: 3px solid var(--dm-accent);
    border-radius: 50%;
    animation: preloaderSpin 1s linear infinite;
    margin: 0 auto 20px;
}

@keyframes preloaderSpin {
    0% { transform: rotate(0deg); }
    100% { transform: rotate(360deg); }
}

.preloader-progress {
    width: 200px;
    height: 2px;
    background: rgba(0, 128, 255, 0.2);
    margin: 20px auto;
    border-radius: 1px;
    overflow: hidden;
}

.preloader-progress-bar {
    height: 100%;
    background: var(--dm-accent);
    width: 0%;
    transition: width 0.3s ease;
    animation: progressGlow 2s ease-in-out infinite alternate;
}

@keyframes progressGlow {
    0% { box-shadow: 0 0 5px rgba(0, 128, 255, 0.3); }
    100% { box-shadow: 0 0 20px rgba(0, 128, 255, 0.8); }
}

/* ============================================

SECTION 3: ADVANCED TEXT ANIMATIONS

============================================ */

/* Character-by-character reveal animation - DISABLED for normal text display */
.text-reveal {
    overflow: visible; /* Changed from hidden to visible */
}

.text-reveal .char {
    display: inline; /* Changed from inline-block to inline for normal text flow */
    opacity: 1; /* Default visible for accessibility */
    transform: none; /* Remove all transforms */
    animation: none; /* Disable all animations */
    color: inherit; /* Ensure text color inheritance */
    transition: none; /* Disable transitions */
}

/* Disable all character animations */
@keyframes charReveal {
    0%, 100% {
        opacity: 1;
        transform: none;
        filter: none;
    }
}

/* Accessibility: Respect reduced motion preferences */
@media (prefers-reduced-motion: reduce) {
    .text-reveal .char {
        opacity: 1;
        transform: none;
        animation: none;
        filter: none;
    }
}

/* Remove special handling for empty characters - normal text behavior */
.text-reveal .char:empty::before,
.text-reveal .char:has-text('&nbsp;')::before {
    content: normal;
    opacity: 1;
    transition: none;
}

.text-reveal .char:empty.visible::before,
.text-reveal .char:has-text('&nbsp;').visible::before {
    opacity: 1;
}

/* Typewriter effect with enhanced cursor */
.typewriter {
    overflow: hidden;
    border-right: 3px solid var(--dm-accent);
    white-space: nowrap;
    animation: typewriter 4s steps(40, end), blinkCursor 0.8s infinite;
}

@keyframes typewriter {
    from { width: 0; }
    to { width: 100%; }
}

@keyframes blinkCursor {
    0%, 50% { border-color: var(--dm-accent); }
    51%, 100% { border-color: transparent; }
}

/* Clean text styling - no animations */
.wave-text .char {
    display: inline-block;
    animation: none;
    transform: none;
}

.wave-text {
    animation: none;
}

/* Blur to sharp transition */
.blur-reveal {
    filter: blur(10px);
    opacity: 0;
    transition: all 1s var(--animation-timing);
}

.blur-reveal.visible {
    filter: blur(0);
    opacity: 1;
}

/* Standardized title styling - clean and consistent across all pages */
.gradient-text,
.hero-title,
.collection-title,
.section-title,
.page-title,
.username-page-title,
.category-title,
.browse-collection-title,
.world-famous-title,
.diamond-title,
.gem-title,
.expression-title,
.name-title {
    color: var(--dm-text-primary);
    font-family: var(--heading-font);
    font-weight: 400;
    letter-spacing: 0.05em;
    text-shadow: 0 2px 4px rgba(0, 0, 0, 0.3);
    line-height: 1.2;
    /* Remove all gradient and animation effects */
    background: none;
    -webkit-background-clip: unset;
    background-clip: unset;
    -webkit-text-fill-color: var(--dm-text-primary);
    animation: none;
    position: static;
    /* Ensure consistent sizing */
    font-size: clamp(1.5rem, 4vw, 3rem);
}

/* Better visibility for text elements - normal text styling */
.text-reveal .char {
    text-shadow: none; /* Remove text shadow for normal appearance */
    font-weight: inherit;
    line-height: inherit;
    display: inline; /* Ensure normal text flow */
}

/* Enhanced contrast for interactive elements */
.magnetic:hover {
    text-shadow: 0 0 8px rgba(0, 128, 255, 0.5);
}

.cta-button:hover {
    text-shadow: 0 0 10px rgba(255, 255, 255, 0.3);
}

/* Improved focus indicators for accessibility */
*:focus {
    outline: 2px solid var(--dm-accent);
    outline-offset: 2px;
}

.magnetic:focus,
.cta-button:focus,
.category-card:focus {
    outline: 3px solid var(--dm-accent);
    outline-offset: 3px;
    box-shadow: 0 0 20px rgba(0, 128, 255, 0.3);
}


/* ============================================

SECTION 4: INTERACTIVE ELEMENTS

============================================ */

/* Magnetic attraction for interactive elements */
.magnetic {
    transition: transform 0.2s var(--animation-timing);
}

.magnetic.attract {
    transform: translateX(var(--attract-x, 0)) translateY(var(--attract-y, 0));
}

/* Ripple effect for clicks */
.ripple-container {
    position: relative;
    overflow: hidden;
}

.ripple {
    position: absolute;
    border-radius: 50%;
    background: rgba(0, 128, 255, 0.3);
    transform: scale(0);
    animation: rippleEffect 0.6s linear;
    pointer-events: none;
}

@keyframes rippleEffect {
    to {
        transform: scale(4);
        opacity: 0;
    }
}

/* 3D tilt effect for cards */
.tilt-card {
    transition: transform 0.3s var(--animation-timing);
    transform-style: preserve-3d;
}

.tilt-card:hover {
    transform: perspective(1000px) rotateX(var(--tilt-x, 0deg)) rotateY(var(--tilt-y, 0deg)) scale3d(1.05, 1.05, 1.05);
}

/* Morphing shapes background elements */
.morphing-shape {
    position: absolute;
    width: 100px;
    height: 100px;
    background: linear-gradient(45deg, rgba(0, 128, 255, 0.1), rgba(51, 153, 255, 0.1));
    border-radius: 50%;
    animation: morphingFloat 20s ease-in-out infinite;
}

.morphing-shape:nth-child(2) { animation-delay: -5s; }
.morphing-shape:nth-child(3) { animation-delay: -10s; }
.morphing-shape:nth-child(4) { animation-delay: -15s; }

@keyframes morphingFloat {
    0%, 100% {
        transform: translateX(0px) translateY(0px) scale(1) rotate(0deg);
        border-radius: 50%;
    }
    25% {
        transform: translateX(100px) translateY(-50px) scale(1.2) rotate(90deg);
        border-radius: 20% 80% 60% 40%;
    }
    50% {
        transform: translateX(-50px) translateY(-100px) scale(0.8) rotate(180deg);
        border-radius: 60% 40% 20% 80%;
    }
    75% {
        transform: translateX(-100px) translateY(50px) scale(1.1) rotate(270deg);
        border-radius: 40% 60% 80% 20%;
    }
}

/* ============================================

SECTION 5: SCROLL ANIMATIONS & INTERSECTIONS

============================================ */

/* Enhanced scroll-triggered reveal animations */
.fade-in-up {
    opacity: 0;
    transform: translateY(60px);
    transition: all 0.8s cubic-bezier(0.25, 0.46, 0.45, 0.94);
}

.fade-in-up.visible {
    opacity: 1;
    transform: translateY(0);
}

.fade-in-left {
    opacity: 0;
    transform: translateX(-60px);
    transition: all 0.8s cubic-bezier(0.25, 0.46, 0.45, 0.94);
}

.fade-in-left.visible {
    opacity: 1;
    transform: translateX(0);
}

.fade-in-right {
    opacity: 0;
    transform: translateX(60px);
    transition: all 0.8s cubic-bezier(0.25, 0.46, 0.45, 0.94);
}

.fade-in-right.visible {
    opacity: 1;
    transform: translateX(0);
}

/* Scale animations */
.scale-in {
    opacity: 0;
    transform: scale(0.8);
    transition: all 0.8s cubic-bezier(0.25, 0.46, 0.45, 0.94);
}

.scale-in.visible {
    opacity: 1;
    transform: scale(1);
}

.scale-in-up {
    opacity: 0;
    transform: scale(0.8) translateY(40px);
    transition: all 0.8s cubic-bezier(0.25, 0.46, 0.45, 0.94);
}

.scale-in-up.visible {
    opacity: 1;
    transform: scale(1) translateY(0);
}

/* Slide variations - proper visibility handling */
.slide-up {
    opacity: 0;
    transform: translateY(40px);
    transition: all 0.7s cubic-bezier(0.25, 0.46, 0.45, 0.94);
}

.slide-up.visible {
    opacity: 1;
    transform: translateY(0);
}

/* Fallback for when JavaScript doesn't load */
@media (prefers-reduced-motion: reduce), (max-width: 480px) {
    .slide-up {
        opacity: 1;
        transform: translateY(0);
    }
}

.slide-up-bounce {
    opacity: 0;
    transform: translateY(60px) scale(0.9);
    transition: all 0.9s cubic-bezier(0.68, -0.55, 0.265, 1.55);
}

.slide-up-bounce.visible {
    opacity: 1;
    transform: translateY(0) scale(1);
}

/* Fallback for when JavaScript doesn't load */
@media (prefers-reduced-motion: reduce), (max-width: 480px) {
    .slide-up-bounce {
        opacity: 1;
        transform: translateY(0) scale(1);
    }
}

/* Ensure About section is always visible as fallback */
.about-section {
    opacity: 1 !important;
    visibility: visible !important;
}

.about-section .about-content,
.about-section .section-title,
.about-section .about-description,
.about-section .features-grid,
.about-section .feature-item {
    opacity: 1 !important;
    transform: translateY(0) scale(1) !important;
    transition: none !important;
}

/* Bounce in effect */
.bounce-in {
    opacity: 0;
    transform: scale(0.3);
    transition: all 0.8s cubic-bezier(0.68, -0.55, 0.265, 1.55);
}

.bounce-in.visible {
    opacity: 1;
    transform: scale(1);
}

/* Flip in effect */
.flip-in {
    opacity: 0;
    transform: rotateY(-90deg) scale(0.9);
    transition: all 0.8s cubic-bezier(0.25, 0.46, 0.45, 0.94);
    transform-style: preserve-3d;
}

.flip-in.visible {
    opacity: 1;
    transform: rotateY(0deg) scale(1);
}

/* Enhanced stagger animations */
.stagger-item {
    opacity: 0;
    transform: translateY(40px) scale(0.95);
    transition: all 0.7s cubic-bezier(0.25, 0.46, 0.45, 0.94);
}

.stagger-item.visible {
    opacity: 1;
    transform: translateY(0) scale(1);
}

.stagger-item:nth-child(1) { transition-delay: 0.1s; }
.stagger-item:nth-child(2) { transition-delay: 0.2s; }
.stagger-item:nth-child(3) { transition-delay: 0.3s; }
.stagger-item:nth-child(4) { transition-delay: 0.4s; }
.stagger-item:nth-child(5) { transition-delay: 0.5s; }
.stagger-item:nth-child(6) { transition-delay: 0.6s; }
.stagger-item:nth-child(7) { transition-delay: 0.7s; }
.stagger-item:nth-child(8) { transition-delay: 0.8s; }

/* Stagger with different effects */
.stagger-scale:nth-child(1) { transition-delay: 0.1s; transform: translateY(40px) scale(0.9); }
.stagger-scale:nth-child(2) { transition-delay: 0.2s; transform: translateY(40px) scale(0.9); }
.stagger-scale:nth-child(3) { transition-delay: 0.3s; transform: translateY(40px) scale(0.9); }
.stagger-scale:nth-child(4) { transition-delay: 0.4s; transform: translateY(40px) scale(0.9); }
.stagger-scale:nth-child(5) { transition-delay: 0.5s; transform: translateY(40px) scale(0.9); }
.stagger-scale:nth-child(6) { transition-delay: 0.6s; transform: translateY(40px) scale(0.9); }

.stagger-scale.visible {
    transform: translateY(0) scale(1);
}

/* Smooth entrance for containers */
.stagger-container {
    overflow: hidden;
}

/* Enhanced hover effects for animated elements */
.category-card:hover {
    transform: translateY(-8px) scale(1.02);
}

.feature-item:hover {
    transform: translateY(-5px) scale(1.02);
}

.stat-item:hover .counter {
    transform: scale(1.1);
    transition: transform 0.3s ease;
}

/* Add subtle animation delays for more organic feel */
.category-card:nth-child(1) { animation-delay: 0.1s; }
.category-card:nth-child(2) { animation-delay: 0.2s; }
.category-card:nth-child(3) { animation-delay: 0.3s; }
.category-card:nth-child(4) { animation-delay: 0.4s; }
.category-card:nth-child(5) { animation-delay: 0.5s; }
.category-card:nth-child(6) { animation-delay: 0.6s; }

/* Mobile optimizations for animations */
@media (max-width: 768px) {
    .fade-in-up, .fade-in-left, .fade-in-right,
    .scale-in, .scale-in-up, .slide-up, .slide-up-bounce,
    .bounce-in, .flip-in, .stagger-item, .stagger-scale {
        transition-duration: 0.6s; /* Slightly faster on mobile */
    }

    .stagger-item:nth-child(n) {
        transition-delay: 0s; /* Remove delays on mobile for faster loading */
    }
}

/* Staggered animations */
.stagger-item {
    opacity: 0;
    transform: translateY(40px) scale(0.9);
    transition: all 0.6s var(--animation-timing);
}

.stagger-item.visible {
    opacity: 1;
    transform: translateY(0) scale(1);
}

.stagger-item:nth-child(1) { transition-delay: 0.1s; }
.stagger-item:nth-child(2) { transition-delay: 0.2s; }
.stagger-item:nth-child(3) { transition-delay: 0.3s; }
.stagger-item:nth-child(4) { transition-delay: 0.4s; }
.stagger-item:nth-child(5) { transition-delay: 0.5s; }

/* Parallax elements */
.parallax {
    transition: transform 0.1s ease-out;
}

/* Counter animation */
.counter {
    font-weight: bold;
    color: var(--dm-accent);
}

/* Progress bar animation */
.progress-bar {
    width: 100%;
    height: 4px;
    background: rgba(0, 128, 255, 0.2);
    border-radius: 2px;
    overflow: hidden;
}

.progress-bar-fill {
    height: 100%;
    background: linear-gradient(90deg, var(--dm-accent), var(--dm-accent-hover));
    transform: translateX(-100%);
    transition: transform 1s var(--animation-timing);
    border-radius: 2px;
    box-shadow: 0 0 10px rgba(0, 128, 255, 0.5);
}

.progress-bar-fill.animate {
    transform: translateX(0);
}

/* ============================================

SECTION 6: MAIN LAYOUT COMPONENTS

============================================ */

/* Header & Navigation - STABLE LAYOUT */
.main-header {
    position: fixed !important;
    top: 0 !important;
    left: 0 !important;
    right: 0 !important;
    width: 100% !important;
    z-index: 1000 !important;
    padding: 1rem 2rem !important;
    background: rgba(0, 0, 0, 0.8) !important;
    backdrop-filter: blur(20px) !important;
    border-bottom: 1px solid rgba(0, 128, 255, 0.1) !important;
    transition: all 0.3s var(--animation-timing) !important;
    display: block !important;
    visibility: visible !important;
    opacity: 1 !important;
}

.main-header.scrolled {
    background: rgba(0, 0, 0, 0.95);
    border-bottom: 1px solid rgba(0, 128, 255, 0.2);
}

.header-content {
    display: flex !important;
    justify-content: center !important; /* Center the logo */
    align-items: center !important;
    max-width: 1400px !important;
    margin: 0 auto !important;
    min-height: 50px !important; /* Ensure minimum height for logo visibility */
    width: 100% !important;
    position: relative !important;
}

.brand-logo {
    font-family: var(--heading-font);
    font-size: 1.8rem;
    color: var(--dm-text-primary);
    text-decoration: none;
    letter-spacing: 0.1em;
    transition: color 0.3s var(--animation-timing), text-shadow 0.3s var(--animation-timing);
    position: relative;
    z-index: 10;
    flex-shrink: 0; /* Prevent logo from shrinking */
    min-width: 200px; /* Ensure minimum width */
    display: block; /* Ensure it's always visible */
    margin: 0 auto; /* Center the logo */
    text-align: center; /* Center text within the logo */
    width: fit-content; /* Fit content width */
    max-width: 400px; /* Prevent excessive width */
    padding: 0.5rem 1rem; /* Add some padding for better appearance */
    border-radius: 8px; /* Add subtle border radius */
}

.brand-logo:hover {
    color: var(--dm-accent);
    text-shadow: 0 0 10px rgba(0, 128, 255, 0.3);
    transform: none;
    background: rgba(0, 128, 255, 0.05);
    border: 1px solid rgba(0, 128, 255, 0.2);
}

/* Navigation styles removed - keeping only logo */

/* Navigation styles removed - keeping only logo */

/* Enhanced Hero Section with Modern Design */
.hero {
    min-height: calc(100vh - 80px); /* Account for fixed header */
    display: flex;
    align-items: center;
    justify-content: center;
    position: relative;
    overflow: hidden;
    padding: 2rem 0;
   /* background:
        radial-gradient(ellipse at top, rgba(0, 128, 255, 0.1) 0%, transparent 50%),
        radial-gradient(ellipse at bottom, rgba(51, 153, 255, 0.05) 0%, transparent 50%),
        linear-gradient(135deg, rgba(0, 0, 0, 0.8) 0%, rgba(0, 128, 255, 0.02) 100%); */
    backdrop-filter: blur(15px);
    border-bottom: 1px solid rgba(0, 128, 255, 0.1);
    margin-top: 80px; /* Space for fixed header */
}

.hero::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    z-index: 1;
}


.hero-content {
    text-align: center;
    z-index: 10;
    position: relative;
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 2rem;
    animation: heroContentFadeIn 1.2s ease-out;
}

@keyframes heroContentFadeIn {
    0% {
        opacity: 0;
        transform: translateY(40px) scale(0.9);
    }
    100% {
        opacity: 1;
        transform: translateY(0) scale(1);
    }
}

.category-icon {
    font-size: clamp(3rem, 8vw, 6rem);
    margin-bottom: 2rem;
    display: inline-block;
    background: linear-gradient(135deg, var(--dm-accent), var(--dm-accent-hover));
    -webkit-background-clip: text;
    background-clip: text;
   /* -webkit-text-fill-color: transparent; */
    text-shadow: 0 0 30px rgba(0, 128, 255, 0.5);
    animation: iconFloat 3s ease-in-out infinite;
    filter: drop-shadow(0 4px 8px rgba(0, 128, 255, 0.3));
    position: relative;
}

@keyframes iconFloat {
    0%, 100% {
        transform: translateY(0px) rotate(0deg);
    }
    50% {
        transform: translateY(-10px) rotate(5deg);
    }
}

.category-icon::after {
    content: '';
    position: absolute;
    top: 50%;
    left: 50%;
    width: 120%;
    height: 120%;
    background: radial-gradient(circle, rgba(0, 128, 255, 0.2) 0%, transparent 70%);
    border-radius: 50%;
    transform: translate(-50%, -50%);
    animation: iconGlow 4s ease-in-out infinite;
    z-index: -1;
}

@keyframes iconGlow {
    0%, 100% {
        opacity: 0.3;
        transform: translate(-50%, -50%) scale(1);
    }
    50% {
        opacity: 0.6;
        transform: translate(-50%, -50%) scale(1.2);
    }
}

.hero-title {
    font-family: var(--heading-font);
    font-size: clamp(2.5rem, 8vw, 8rem);
    font-weight: 400;
    margin-bottom: 2rem;
    letter-spacing: 0.05em;
    color: var(--dm-text-primary);
    text-shadow:
        0 2px 4px rgba(0, 0, 0, 0.3),
        0 0 20px rgba(0, 128, 255, 0.3),
        0 0 40px rgba(0, 128, 255, 0.1);
    line-height: 1.1;
    position: relative;
    background: linear-gradient(135deg,
        var(--dm-text-primary) 0%,
        rgba(255, 255, 255, 0.9) 50%,
        var(--dm-text-primary) 100%);
    -webkit-background-clip: text;
    background-clip: text;
    /* -webkit-text-fill-color: transparent; */
    animation: titleReveal 1.5s ease-out 0.3s both;
    filter: drop-shadow(0 4px 8px rgba(0, 0, 0, 0.2));
}

@keyframes titleReveal {
    0% {
        opacity: 0;
        transform: translateY(30px) scale(0.9);
        filter: blur(10px);
    }
    100% {
        opacity: 1;
        transform: translateY(0) scale(1);
        filter: blur(0px);
    }
}

.hero-title::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(135deg,
        transparent 0%,
        rgba(0, 128, 255, 0.1) 50%,
        transparent 100%);
    z-index: -1;
    animation: titleShimmer 3s ease-in-out infinite;
    border-radius: 10px;
}

@keyframes titleShimmer {
    0%, 100% {
        opacity: 0;
        transform: translateX(-100%);
    }
    50% {
        opacity: 1;
        transform: translateX(100%);
    }
}

.hero-subtitle {
    font-family: var(--body-font);
    font-size: clamp(1rem, 2.5vw, 1.5rem);
    color: var(--dm-text-secondary);
    margin-bottom: 3rem;
    max-width: 700px;
    margin-left: auto;
    margin-right: auto;
    line-height: 1.6;
    text-shadow: 0 2px 4px rgba(0, 0, 0, 0.2);
    animation: subtitleFadeIn 1.2s ease-out 0.6s both;
    position: relative;
}

@keyframes subtitleFadeIn {
    0% {
        opacity: 0;
        transform: translateY(20px);
    }
    100% {
        opacity: 1;
        transform: translateY(0);
    }
}

.hero-subtitle::before {
    content: '';
    position: absolute;
    top: 50%;
    left: 50%;
    width: 100px;
    height: 1px;
    background: linear-gradient(90deg, transparent, var(--dm-accent), transparent);
    transform: translate(-50%, -50%);
    animation: subtitleAccent 2s ease-in-out infinite;
}

@keyframes subtitleAccent {
    0%, 100% {
        opacity: 0;
        width: 0;
    }
    50% {
        opacity: 1;
        width: 100px;
    }
}

/* Enhanced Hero CTA Button */
.hero-cta {
    display: inline-flex;
    align-items: center;
    gap: 1rem;
    padding: 1rem 2rem;
    background: linear-gradient(135deg, var(--dm-accent), var(--dm-accent-hover));
    color: white;
    text-decoration: none;
    border-radius: 50px;
    font-weight: 500;
    font-size: 1.1rem;
    transition: all 0.4s var(--animation-timing);
    position: relative;
    overflow: hidden;
    box-shadow:
        0 8px 25px rgba(0, 128, 255, 0.3),
        0 0 50px rgba(0, 128, 255, 0.2);
    animation: ctaButtonEntrance 1.2s ease-out 0.9s both;
}

@keyframes ctaButtonEntrance {
    0% {
        opacity: 0;
        transform: translateY(30px) scale(0.8);
    }
    100% {
        opacity: 1;
        transform: translateY(0) scale(1);
    }
}

.hero-cta::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.3), transparent);
    transition: left 0.6s ease;
}

.hero-cta:hover::before {
    left: 100%;
}

.hero-cta:hover {
    transform: translateY(-3px) scale(1.05);
    box-shadow:
        0 15px 35px rgba(0, 128, 255, 0.4),
        0 0 80px rgba(0, 128, 255, 0.3);
    background: linear-gradient(135deg, var(--dm-accent-hover), var(--dm-accent));
}

.hero-cta .cta-icon {
    font-size: 1.2rem;
    transition: transform 0.3s ease;
}

.hero-cta:hover .cta-icon {
    transform: translateX(5px);
}

/* Hero decorative elements */
.hero::after {
    content: '';
    position: absolute;
    top: 10%;
    right: 10%;
    width: 200px;
    height: 200px;
    background: radial-gradient(circle, rgba(0, 128, 255, 0.1) 0%, transparent 70%);
    border-radius: 50%;
    animation: heroOrbFloat 15s ease-in-out infinite;
    z-index: 1;
}

@keyframes heroOrbFloat {
    0%, 100% {
        transform: translate(0, 0) rotate(0deg);
    }
    33% {
        transform: translate(-30px, -30px) rotate(120deg);
    }
    66% {
        transform: translate(30px, -60px) rotate(240deg);
    }
}

/* Category Cards */
.categories-section {
    padding: 8rem 2rem;
    position: relative;
}

.categories-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(350px, 1fr));
    gap: 3rem;
    max-width: 1400px;
    margin: 0 auto;
}

.category-card {
    background: rgba(255, 255, 255, 0.02);
    backdrop-filter: blur(20px);
    border: 1px solid rgba(0, 128, 255, 0.1);
    border-radius: 20px;
    padding: 3rem 2rem;
    text-align: center;
    position: relative;
    overflow: hidden;
    transition: all 0.5s var(--animation-timing);
    cursor: pointer;
}

.category-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(0, 128, 255, 0.1), transparent);
    transition: left 0.8s ease;
}

.category-card:hover::before {
    left: 100%;
}

.category-card:hover {
    transform: translateY(-10px) scale(1.02);
    border-color: var(--dm-accent);
    background: rgba(255, 255, 255, 0.05);
    box-shadow: 0 25px 50px rgba(0, 128, 255, 0.2), 0 0 40px rgba(0, 128, 255, 0.1);
}

.category-icon {
    font-size: 3rem;
    margin-bottom: 1.5rem;
    display: block;
}

.category-title {
    font-family: var(--heading-font);
    font-size: 2rem;
    margin-bottom: 1rem;
    color: var(--dm-text-primary);
}

.category-description {
    color: var(--dm-text-secondary);
    line-height: 1.6;
    margin-bottom: 2rem;
}

.cta-button {
    display: inline-block;
    padding: 1rem 2rem;
    background: linear-gradient(45deg, var(--dm-accent), var(--dm-accent-hover));
    color: white;
    text-decoration: none;
    border-radius: 50px;
    font-weight: 500;
    transition: all 0.3s var(--animation-timing);
    position: relative;
    overflow: hidden;
}

.cta-button::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.2), transparent);
    transition: left 0.5s ease;
}

.cta-button:hover::before {
    left: 100%;
}

.cta-button:hover {
    transform: translateY(-3px);
    box-shadow: 0 15px 35px rgba(0, 128, 255, 0.4);
}

/* ============================================

SECTION 7: ENHANCED LEGACY COMPATIBILITY

============================================ */

/* Preserve existing animations with enhancements */
.kinetic-title {
    color: var(--dm-text-primary);
    font-family: var(--heading-font);
    text-transform: uppercase;
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    font-size: 10vw;
    font-weight: 400;
    text-align: center;
    width: 100%;
    overflow: hidden;
    letter-spacing: 0.05em;
}

.kinetic-title .letter {
    display: inline-block;
}

.text-pressure-title {
    font-family: var(--heading-font);
    text-transform: uppercase;
    font-size: clamp(3rem, 10vw, 8rem);
    line-height: 1;
    transform-origin: center top;
    margin: 0;
    text-align: center;
    user-select: none;
    white-space: nowrap;
    font-weight: 400;
    width: 100%;
    color: var(--dm-text-primary);
    letter-spacing: 0.05em;
}

.text-pressure-title span {
    display: inline-block;
}

/* Enhanced glitch effects with electric blue accents */
.glitch {
    position: relative;
    color: var(--dm-text-primary);
    font-family: var(--heading-font);
    animation: glitchSkew 1s infinite linear alternate-reverse;
}

.glitch::before,
.glitch::after {
    content: attr(data-text);
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: transparent;
}

.glitch::before {
    left: 2px;
    text-shadow: -2px 0 var(--dm-accent);
    animation: glitchAnim1 2.5s infinite linear alternate-reverse;
}

.glitch::after {
    left: -2px;
    text-shadow: -2px 0 var(--dm-accent-hover), 2px 2px var(--dm-accent);
    animation: glitchAnim2 2s infinite linear alternate-reverse;
}

@keyframes glitchSkew {
    0% { transform: skewX(0deg); }
    95% { transform: skewX(0deg); }
    100% { transform: skewX(2deg); }
}

@keyframes glitchAnim1 {
    0% { clip-path: inset(15% 0 86% 0); transform: translate(-1px, 0); opacity: 1; }
    5% { clip-path: inset(55% 0 25% 0); transform: translate(1px, 1px); }
    10% { clip-path: inset(10% 0 70% 0); transform: translate(-1px, -1px); }
    15% { clip-path: inset(80% 0 5% 0); transform: translate(1px, 0); }
    20% { clip-path: inset(40% 0 41% 0); }
    25% { clip-path: inset(90% 0 2% 0); }
    30% { clip-path: inset(15% 0 86% 0); opacity: 0.5; }
    100% { clip-path: inset(15% 0 86% 0); opacity: 1; transform: translate(0); }
}

@keyframes glitchAnim2 {
    0% { clip-path: inset(99% 0 2% 0); transform: translate(1px, 1px); opacity: 0.8; }
    10% { clip-path: inset(20% 0 71% 0); transform: translate(-1px, -1px); }
    15% { clip-path: inset(80% 0 15% 0); }
    25% { clip-path: inset(50% 0 31% 0); }
    30% { clip-path: inset(90% 0 2% 0); }
    35% { clip-path: inset(15% 0 86% 0); transform: translate(0); opacity: 1; }
    100% { clip-path: inset(15% 0 86% 0); transform: translate(0); }
}

/* Username list styling - Single Column */
.username-grid {
    display: grid;
    grid-template-columns: 1fr;
    gap: 0.5rem;
    padding: 0.5rem;
    width: 100%;
}

.animated-username-item {
    background: rgba(255, 255, 255, 0.02);
    border: 1px solid rgba(0, 128, 255, 0.1);
    border-radius: 12px;
    padding: 0.75rem;
    text-align: left;
    position: relative;
    transition: all 0.4s var(--animation-timing);
    overflow: hidden;
    font-size: 0.8rem;
    font-style: normal;
}

.animated-username-item::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(0, 128, 255, 0.1), transparent);
    transition: left 0.6s ease;
}

.animated-username-item:hover::before {
    left: 100%;
}

.animated-username-item:hover {
    transform: translateY(-5px);
    border-color: var(--dm-accent);
    background: rgba(255, 255, 255, 0.05);
    box-shadow: 0 15px 30px rgba(0, 128, 255, 0.2);
}

/* Animated hover image styling */
.animated-hover-image {
    position: absolute;
    right: -129px;
    top: 23%;
    transform: translateY(-50%) scale(0.6);
    width: 50%;
    height: 50%;
    object-fit: contain;
    transition: all 0.4s ease;
    opacity: 0;
}

.animated-username-item:hover .animated-hover-image {
    opacity: 1;
    transform: translateY(-50%) scale(0.7) skewX(10deg);
}

/* Enhanced Main Content Sections */
.content-page {
    min-height: calc(100vh - 160px);
    padding: 3rem 0;
    position: relative;
    z-index: 1;
    background: linear-gradient(180deg,
        rgba(0, 0, 0, 0.3) 0%,
        rgba(0, 128, 255, 0.02) 50%,
        rgba(0, 0, 0, 0.3) 100%);
}

.content-page .container {
    max-width: 1400px;
    margin: 0 auto;
    padding: 0 2rem;
    position: relative;
}

/* Enhanced section spacing and layout with better visual hierarchy */
.content-page section {
    margin-bottom: 5rem;
    position: relative;
    padding: 2rem 0;
    border-radius: 20px;
    background: rgba(255, 255, 255, 0.01);
    backdrop-filter: blur(10px);
    border: 1px solid rgba(0, 128, 255, 0.05);
    transition: all 0.4s var(--animation-timing);
}

.content-page section:hover {
    background: rgba(255, 255, 255, 0.02);
    border-color: rgba(0, 128, 255, 0.1);
    transform: translateY(-2px);
    box-shadow: 0 10px 30px rgba(0, 128, 255, 0.1);
}

.content-page section:last-child {
    margin-bottom: 3rem;
}

/* Enhanced collection layouts with improved visual hierarchy */
.username-collection,
.collections-overview,
.featured-expression,
.gem-showcase {
    padding: 4rem 0;
    position: relative;
    background: linear-gradient(135deg,
        rgba(0, 128, 255, 0.02) 0%,
        rgba(255, 255, 255, 0.01) 50%,
        rgba(0, 128, 255, 0.02) 100%);
    border-radius: 25px;
    margin: 2rem 0;
    border: 1px solid rgba(0, 128, 255, 0.08);
}

.collection-title,
.section-title {
    font-family: var(--heading-font);
    font-size: clamp(2rem, 4vw, 3rem);
    font-weight: 400;
    margin-bottom: 2rem;
    color: var(--dm-text-primary);
    text-align: center;
    letter-spacing: 0.05em;
    text-shadow: 0 2px 4px rgba(0, 0, 0, 0.3);
    line-height: 1.2;
    position: relative;
    padding: 1rem 0;
}

.collection-title::after,
.section-title::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 50%;
    transform: translateX(-50%);
    width: 80px;
    height: 3px;
    background: linear-gradient(90deg, transparent, var(--dm-accent), transparent);
    border-radius: 2px;
}

.collection-description {
    font-family: var(--body-font);
    font-size: 1.2rem;
    line-height: 1.8;
    color: var(--dm-text-secondary);
    text-align: center;
    margin-bottom: 4rem;
    max-width: 900px;
    margin-left: auto;
    margin-right: auto;
    padding: 0 2rem;
}

/* Footer */
.main-footer {
    padding: 4rem 2rem 2rem;
    background: rgba(0, 0, 0, 0.8);
    border-top: 1px solid rgba(0, 128, 255, 0.1);
    text-align: center;
    margin-top: 8rem;
}

.footer-content {
    max-width: 1400px;
    margin: 0 auto;
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
    gap: 2rem;
}

.footer-links a {
    color: var(--dm-text-secondary);
    text-decoration: none;
    margin: 0 1rem;
    transition: color 0.3s var(--animation-timing);
}

.footer-links a:hover {
    color: var(--dm-accent);
}

/* ============================================

SECTION 8: RESPONSIVE DESIGN

============================================ */

@media (max-width: 1200px) {
    .categories-grid {
        grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
        gap: 2rem;
    }
}

@media (max-width: 768px) {
    .main-header {
        padding: 1rem;
        position: fixed; /* Ensure it stays fixed on mobile */
        top: 0;
        left: 0;
        right: 0;
    }

    .header-content {
        justify-content: center !important; /* Center the logo when alone */
        align-items: center !important;
        gap: 0; /* No gap needed for single element */
        min-height: 60px; /* Ensure adequate height */
        width: 100% !important;
        position: relative !important;
    }

    .brand-logo {
        font-size: 1.5rem; /* Slightly smaller but still visible */
        min-width: 150px; /* Ensure minimum width on mobile */
        flex-shrink: 0; /* Never shrink */
        margin: 0 auto; /* Center on mobile */
        text-align: center; /* Center text */
    }

    /* Navigation styles removed - keeping only logo */

    /* Enhanced Hero Mobile Styles */
    .hero {
        min-height: calc(100vh - 70px);
        margin-top: 70px;
        padding: 1rem 0;
    }

    .hero-content {
        padding: 0 1rem;
    }

    .category-icon {
        font-size: clamp(2.5rem, 10vw, 4rem);
        margin-bottom: 1.5rem;
    }

    .hero-title {
        font-size: clamp(2rem, 10vw, 4rem);
        margin-bottom: 1.5rem;
        letter-spacing: 0.02em;
    }

    .hero-subtitle {
        font-size: clamp(0.9rem, 3vw, 1.2rem);
        margin-bottom: 2rem;
        padding: 0 1rem;
    }

    .hero-cta {
        padding: 0.8rem 1.5rem;
        font-size: 1rem;
        gap: 0.5rem;
    }

    .hero::after {
        width: 150px;
        height: 150px;
        top: 5%;
        right: 5%;
    }

    .categories-grid {
        grid-template-columns: 1fr;
        gap: 2rem;
        padding: 0 1rem;
    }

    .category-card {
        padding: 2rem 1.5rem;
    }

    .footer-content {
        flex-direction: column;
        text-align: center;
    }

    /* Simplify animations on mobile */
    .morphing-shape {
        display: none;
    }

    body::before {
        animation-duration: 40s;
    }

    /* Reduce hero background effects on mobile */
    .hero::before {
        animation-duration: 30s;
    }

    @keyframes heroBackgroundShift {
        0%, 100% {
            transform: scale(1) rotate(0deg);
            opacity: 0.2;
        }
        50% {
            transform: scale(1.05) rotate(180deg);
            opacity: 0.3;
        }
    }
}

@media (max-width: 480px) {
    .main-header {
        padding: 0.8rem 1rem; /* Slightly less padding on very small screens */
    }

    .header-content {
        min-height: 50px; /* Adequate height for very small screens */
        justify-content: center !important; /* Center logo on small screens */
    }

    .brand-logo {
        font-size: 1.3rem; /* Smaller but still readable */
        min-width: 120px; /* Minimum width for very small screens */
        letter-spacing: 0.05em; /* Tighter spacing for small screens */
        margin: 0 auto; /* Center on very small screens */
        text-align: center; /* Center text */
    }

    /* Navigation styles removed - keeping only logo */

    .categories-section {
        padding: 4rem 1rem;
    }

    /* Enhanced Hero Mobile Styles for Small Screens */
    .hero {
        min-height: calc(100vh - 60px);
        margin-top: 60px;
        padding: 0.5rem 0;
    }

    .hero-content {
        padding: 0 0.5rem;
    }

    .category-icon {
        font-size: clamp(2rem, 12vw, 3rem);
        margin-bottom: 1rem;
    }

    .hero-title {
        font-size: clamp(1.5rem, 12vw, 3rem);
        margin-bottom: 1rem;
        letter-spacing: 0.01em;
    }

    .hero-subtitle {
        font-size: clamp(0.8rem, 4vw, 1rem);
        margin-bottom: 1.5rem;
        padding: 0 0.5rem;
        line-height: 1.5;
    }

    .hero-cta {
        padding: 0.7rem 1.2rem;
        font-size: 0.9rem;
        border-radius: 25px;
    }

    .hero::after {
        width: 100px;
        height: 100px;
        top: 2%;
        right: 2%;
    }

    .preloader-progress {
        width: 150px;
    }

    /* Disable complex animations on very small screens */
    @media (max-width: 480px) and (prefers-reduced-motion: no-preference) {
        body::before,
        body::after {
            animation-duration: 60s;
        }

        .gradient-text {
            animation-duration: 5s;
        }

        /* Simplify hero animations on very small screens */
        .hero::before {
            animation-duration: 40s;
        }

        .category-icon::after {
            animation-duration: 6s;
        }

        .hero-title::before {
            animation-duration: 4s;
        }
    }

    /* High contrast mode adjustments for mobile */
    @media (max-width: 480px) and (prefers-contrast: high) {
        .hero {
            background: rgba(0, 0, 0, 0.95);
        }

        .hero-title {
            text-shadow: 0 2px 4px rgba(0, 0, 0, 0.8);
        }
    }
}

/* Enhanced Accessibility Support for Hero Section */

/* Reduced motion preferences */
@media (prefers-reduced-motion: reduce) {
    .hero::before,
    .hero::after,
    .category-icon,
    .hero-title::before,
    .hero-subtitle::before {
        animation: none !important;
    }

    .hero-content {
        animation: none;
    }

    .hero-title {
        animation: none;
        text-shadow: 0 2px 4px rgba(0, 0, 0, 0.5);
    }

    .hero-subtitle {
        animation: none;
    }

    .hero-cta {
        animation: none;
        transition: all 0.2s ease;
    }

    .hero-cta:hover {
        transform: translateY(-2px);
    }
}

/* High contrast mode support */
@media (prefers-contrast: high) {
    :root {
        --dm-background: #000000;
        --dm-text-primary: #ffffff;
        --dm-accent: #00aaff;
        --noise-opacity: 0;
    }

    .hero {
        background: rgba(0, 0, 0, 0.95);
        border-bottom: 2px solid var(--dm-accent);
    }

    .hero::before {
        display: none;
    }

    .hero::after {
        background: radial-gradient(circle, rgba(0, 170, 255, 0.2) 0%, transparent 70%);
    }

    .category-icon {
        background: var(--dm-accent);
        -webkit-text-fill-color: white;
        text-shadow: none;
        filter: none;
    }

    .hero-title {
        background: var(--dm-text-primary);
        -webkit-text-fill-color: var(--dm-background);
        text-shadow: none;
    }

    .hero-subtitle {
        color: var(--dm-text-primary);
        text-shadow: none;
    }

    .hero-cta {
        background: var(--dm-accent);
        border: 2px solid var(--dm-accent);
        box-shadow: 0 4px 15px rgba(0, 170, 255, 0.4);
    }

    .category-card {
        border: 2px solid var(--dm-accent);
        background: rgba(0, 0, 0, 0.9);
    }
}

/* Focus management for hero section */
.hero-cta:focus {
    outline: 3px solid var(--dm-accent);
    outline-offset: 3px;
    box-shadow:
        0 0 20px rgba(0, 128, 255, 0.6),
        0 8px 25px rgba(0, 128, 255, 0.3);
}

/* Print styles for hero section */
@media print {
    .hero {
        background: white !important;
        color: black !important;
        min-height: auto !important;
        margin-top: 0 !important;
        padding: 2rem 0 !important;
    }

    .hero::before,
    .hero::after {
        display: none !important;
    }

    .hero-title,
    .hero-subtitle {
        color: black !important;
        text-shadow: none !important;
        background: none !important;
        -webkit-text-fill-color: black !important;
    }

    .category-icon {
        background: none !important;
        -webkit-text-fill-color: black !important;
        text-shadow: none !important;
    }

    .hero-cta {
        background: black !important;
        color: white !important;
        border: 2px solid black !important;
    }
}

/* Print styles */
@media print {
    .custom-cursor,
    .cursor-trail,
    .preloader,
    .morphing-shape,
    body::before,
    body::after {
        display: none !important;
    }

    body {
        background: white !important;
        color: black !important;
    }

    .main-header {
        position: static !important;
        background: white !important;
        border-bottom: 1px solid black !important;
    }
}

/* ============================================

SECTION 9: PAGE-SPECIFIC STYLES

=========================================== */

/* ===== SHARED STYLES FOR ALL COLLECTION PAGES ===== */

/* Breadcrumb Navigation */
.breadcrumb {
    padding: 1rem 2rem;
    background: rgba(0, 0, 0, 0.3);
 /*   border-bottom: 1px solid rgba(0, 128, 255, 0.1); */
    margin-top: 80px;
}

.breadcrumb a {
    color: var(--dm-text-secondary);
    text-decoration: none;
    transition: color 0.3s var(--animation-timing);
}

.breadcrumb a:hover {
    color: var(--dm-accent);
}

.breadcrumb span {
    color: var(--dm-text-primary);
}

/* Page Header */
.page-header {
    text-align: center;
    padding: 4rem 2rem 2rem;
    position: relative;
}

.page-title {
    font-family: var(--heading-font);
    font-size: clamp(2.5rem, 6vw, 4rem);
    margin-bottom: 1rem;
    color: var(--dm-text-primary);
    font-weight: 400;
    letter-spacing: 0.05em;
    text-shadow: 0 2px 4px rgba(0, 0, 0, 0.3);
    line-height: 1.2;
    /* Remove gradient and animation effects */
    background: none;
    -webkit-background-clip: unset;
    background-clip: unset;
    -webkit-text-fill-color: var(--dm-text-primary);
    animation: none;
}

.page-subtitle {
    font-size: 1.2rem;
    color: var(--dm-text-secondary);
    max-width: 600px;
    margin: 0 auto;
    line-height: 1.6;
}

/* Enhanced Username Collections Grid - Compact Full Width */
.username-collections {
    padding: 2rem;
    max-width: 100%;
    margin: 0 auto;
    background: rgba(0, 0, 0, 0.2);
    border-radius: 20px;
    border: 1px solid rgba(0, 128, 255, 0.1);
}

.username-grid {
    display: grid;
    grid-template-columns: 1fr;
    gap: 0.5rem;
    margin-top: 2rem;
    padding: 0.5rem;
    width: 100%;
}

/* Enhanced Username Item Styling - Compact */
.username-item {
    background: rgba(255, 255, 255, 0.02);
    backdrop-filter: blur(20px);
    border: 1px solid rgba(0, 128, 255, 0.1);
    border-radius: 15px;
    padding: 0.75rem;
    text-align: center;
    position: relative;
    transition: all 0.4s var(--animation-timing);
    overflow: hidden;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.1);
    font-size: 0.8rem;
    font-style: normal;
}

.username-item::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(0, 128, 255, 0.1), transparent);
    transition: left 0.6s ease;
}

.username-item:hover::before {
    left: 100%;
}

.username-item:hover {
    transform: translateY(-8px);
    border-color: var(--dm-accent);
    background: rgba(255, 255, 255, 0.05);
    box-shadow: 0 20px 40px rgba(0, 128, 255, 0.2), 0 0 30px rgba(0, 128, 255, 0.1);
}

.username-item:hover::before {
    left: 100%;
}

.username-link {
    color: var(--dm-text-primary);
    text-decoration: none;
    display: block;
    transition: color 0.3s var(--animation-timing);
}

.username-link:hover {
    color: var(--dm-accent);
}

.username-text {
    font-family: var(--body-font);
    font-size: 0.8rem;
    font-style: normal;
    margin-top: 0.5rem;
    word-break: break-all;
}

/* ===== WORLD FAMOUS PAGE STYLES ===== */

.world-famous-container {
    max-width: 1400px;
    margin: 0 auto;
    padding: 2rem;
}

.world-famous-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
    gap: 2rem;
    margin-top: 2rem;
}

.world-famous-item {
    background: rgba(255, 255, 255, 0.02);
    backdrop-filter: blur(20px);
    border: 1px solid rgba(0, 128, 255, 0.1);
    border-radius: 15px;
    padding: 2rem;
    text-align: center;
    position: relative;
    transition: all 0.4s var(--animation-timing);
    overflow: hidden;
}

.world-famous-item::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(0, 128, 255, 0.1), transparent);
    transition: left 0.6s ease;
}

.world-famous-item:hover::before {
    left: 100%;
}

.world-famous-item:hover {
    transform: translateY(-5px) scale(1.02);
    border-color: var(--dm-accent);
    background: rgba(255, 255, 255, 0.05);
    box-shadow: 0 15px 30px rgba(0, 128, 255, 0.2);
}

.world-famous-link {
    color: var(--dm-text-primary);
    text-decoration: none;
    display: block;
    transition: color 0.3s var(--animation-timing);
}

.world-famous-link:hover {
    color: var(--dm-accent);
}

.world-famous-icon {
    font-size: 2rem;
    margin-bottom: 1rem;
    display: block;
}

.world-famous-title {
    font-family: var(--heading-font);
    font-size: 1.5rem;
    margin-bottom: 0.5rem;
}

.world-famous-description {
    color: var(--dm-text-secondary);
    font-size: 0.9rem;
    line-height: 1.5;
}

/* ===== FAMOUS DIAMONDS PAGE STYLES ===== */

.diamonds-container {
    max-width: 1400px;
    margin: 0 auto;
    padding: 2rem;
}

.diamonds-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
    gap: 2rem;
    margin-top: 2rem;
}

.diamond-item {
    background: rgba(255, 255, 255, 0.02);
    backdrop-filter: blur(20px);
    border: 1px solid rgba(0, 128, 255, 0.1);
    border-radius: 15px;
    padding: 2rem;
    text-align: center;
    position: relative;
    transition: all 0.4s var(--animation-timing);
    overflow: hidden;
}

.diamond-item::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(0, 128, 255, 0.1), transparent);
    transition: left 0.6s ease;
}

.diamond-item:hover::before {
    left: 100%;
}

.diamond-item:hover {
    transform: translateY(-5px) scale(1.02);
    border-color: var(--dm-accent);
    background: rgba(255, 255, 255, 0.05);
    box-shadow: 0 15px 30px rgba(0, 128, 255, 0.2);
}

.diamond-link {
    color: var(--dm-text-primary);
    text-decoration: none;
    display: block;
    transition: color 0.3s var(--animation-timing);
}

.diamond-link:hover {
    color: var(--dm-accent);
}

.diamond-icon {
    font-size: 2rem;
    margin-bottom: 1rem;
    display: block;
    color: var(--dm-accent);
}

.diamond-title {
    font-family: var(--heading-font);
    font-size: 1.5rem;
    margin-bottom: 0.5rem;
}

.diamond-description {
    color: var(--dm-text-secondary);
    font-size: 0.9rem;
    line-height: 1.5;
}

/* Diamond sparkle effect */
.diamond-item::after {
    content: '✨';
    position: absolute;
    top: 1rem;
    right: 1rem;
    font-size: 1rem;
    opacity: 0;
    transition: opacity 0.3s ease;
}

.diamond-item:hover::after {
    opacity: 1;
}

/* ===== FAMOUS GEMS PAGE STYLES ===== */

.gems-container {
    max-width: 1400px;
    margin: 0 auto;
    padding: 2rem;
}

.gems-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
    gap: 2rem;
    margin-top: 2rem;
}

.gem-item {
    background: rgba(255, 255, 255, 0.02);
    backdrop-filter: blur(20px);
    border: 1px solid rgba(0, 128, 255, 0.1);
    border-radius: 15px;
    padding: 2rem;
    text-align: center;
    position: relative;
    transition: all 0.4s var(--animation-timing);
    overflow: hidden;
}

.gem-item::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(0, 128, 255, 0.1), transparent);
    transition: left 0.6s ease;
}

.gem-item:hover::before {
    left: 100%;
}

.gem-item:hover {
    transform: translateY(-5px) scale(1.02);
    border-color: var(--dm-accent);
    background: rgba(255, 255, 255, 0.05);
    box-shadow: 0 15px 30px rgba(0, 128, 255, 0.2);
}

.gem-link {
    color: var(--dm-text-primary);
    text-decoration: none;
    display: block;
    transition: color 0.3s var(--animation-timing);
}

.gem-link:hover {
    color: var(--dm-accent);
}

.gem-icon {
    font-size: 2rem;
    margin-bottom: 1rem;
    display: block;
    color: var(--dm-accent);
}

.gem-title {
    font-family: var(--heading-font);
    font-size: 1.5rem;
    margin-bottom: 0.5rem;
}

.gem-description {
    color: var(--dm-text-secondary);
    font-size: 0.9rem;
    line-height: 1.5;
}

/* Gem category styling */
.gem-category {
    background: rgba(0, 128, 255, 0.1);
    border: 1px solid rgba(0, 128, 255, 0.2);
    border-radius: 25px;
    padding: 0.5rem 1rem;
    font-size: 0.8rem;
    color: var(--dm-accent);
    display: inline-block;
    margin-top: 1rem;
}

/* ===== FAMOUS EXPRESSIONS PAGE STYLES ===== */

.expressions-container {
    max-width: 1400px;
    margin: 0 auto;
    padding: 2rem;
}

.expressions-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
    gap: 2rem;
    margin-top: 2rem;
}

.expression-item {
    background: rgba(255, 255, 255, 0.02);
    backdrop-filter: blur(20px);
    border: 1px solid rgba(0, 128, 255, 0.1);
    border-radius: 15px;
    padding: 2rem;
    text-align: center;
    position: relative;
    transition: all 0.4s var(--animation-timing);
    overflow: hidden;
}

.expression-item::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(0, 128, 255, 0.1), transparent);
    transition: left 0.6s ease;
}

.expression-item:hover::before {
    left: 100%;
}

.expression-item:hover {
    transform: translateY(-5px) scale(1.02);
    border-color: var(--dm-accent);
    background: rgba(255, 255, 255, 0.05);
    box-shadow: 0 15px 30px rgba(0, 128, 255, 0.2);
}

.expression-link {
    color: var(--dm-text-primary);
    text-decoration: none;
    display: block;
    transition: color 0.3s var(--animation-timing);
}

.expression-link:hover {
    color: var(--dm-accent);
}

.expression-icon {
    font-size: 2rem;
    margin-bottom: 1rem;
    display: block;
    color: var(--dm-accent);
}

.expression-title {
    font-family: var(--heading-font);
    font-size: 1.5rem;
    margin-bottom: 0.5rem;
}

.expression-description {
    color: var(--dm-text-secondary);
    font-size: 0.9rem;
    line-height: 1.5;
}

/* Expression category filter */
.category-filter {
    display: flex;
    justify-content: center;
    gap: 1rem;
    margin-bottom: 2rem;
    flex-wrap: wrap;
}

.category-btn {
    background: rgba(255, 255, 255, 0.02);
    border: 1px solid rgba(0, 128, 255, 0.1);
    border-radius: 25px;
    padding: 0.5rem 1rem;
    color: var(--dm-text-secondary);
    cursor: pointer;
    transition: all 0.3s var(--animation-timing);
}

.category-btn:hover,
.category-btn.active {
    background: var(--dm-accent);
    color: white;
    border-color: var(--dm-accent);
}

/* ===== FAMOUS NAMES PAGE STYLES ===== */

.names-container {
    max-width: 1400px;
    margin: 0 auto;
    padding: 2rem;
}

.names-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
    gap: 2rem;
    margin-top: 2rem;
}

.name-item {
    background: rgba(255, 255, 255, 0.02);
    backdrop-filter: blur(20px);
    border: 1px solid rgba(0, 128, 255, 0.1);
    border-radius: 15px;
    padding: 2rem;
    text-align: center;
    position: relative;
    transition: all 0.4s var(--animation-timing);
    overflow: hidden;
}

.name-item::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(0, 128, 255, 0.1), transparent);
    transition: left 0.6s ease;
}

.name-item:hover::before {
    left: 100%;
}

.name-item:hover {
    transform: translateY(-5px) scale(1.02);
    border-color: var(--dm-accent);
    background: rgba(255, 255, 255, 0.05);
    box-shadow: 0 15px 30px rgba(0, 128, 255, 0.2);
}

.name-link {
    color: var(--dm-text-primary);
    text-decoration: none;
    display: block;
    transition: color 0.3s var(--animation-timing);
}

.name-link:hover {
    color: var(--dm-accent);
}

.name-icon {
    font-size: 2rem;
    margin-bottom: 1rem;
    display: block;
    color: var(--dm-accent);
}

.name-title {
    font-family: var(--heading-font);
    font-size: 1.5rem;
    margin-bottom: 0.5rem;
}

.name-description {
    color: var(--dm-text-secondary);
    font-size: 0.9rem;
    line-height: 1.5;
}

/* ===== USERNAME PAGE TEMPLATE STYLES ===== */

.username-page-container {
    max-width: 1400px;
    margin: 0 auto;
    padding: 2rem;
}

.username-page-header {
    text-align: center;
    padding: 2rem 0;
    margin-top: 80px;
}

.username-page-title {
    font-family: var(--heading-font);
    font-size: clamp(2rem, 5vw, 3rem);
    margin-bottom: 1rem;
    color: var(--dm-text-primary);
    font-weight: 400;
    letter-spacing: 0.05em;
    text-shadow: 0 2px 4px rgba(0, 0, 0, 0.3);
    line-height: 1.2;
    /* Remove gradient and animation effects */
    background: none;
    -webkit-background-clip: unset;
    background-clip: unset;
    -webkit-text-fill-color: var(--dm-text-primary);
    animation: none;
}

.username-page-description {
    font-size: 1.1rem;
    color: var(--dm-text-secondary);
    max-width: 600px;
    margin: 0 auto;
    line-height: 1.6;
}

.username-page-grid {
    display: grid;
    grid-template-columns: 1fr;
    gap: 0.5rem;
    margin-top: 2rem;
    width: 100%;
}

/* ===== BROWSE COLLECTIONS PAGE STYLES ===== */

.browse-collections-container {
    max-width: 1400px;
    margin: 0 auto;
    padding: 2rem;
}

.browse-collections-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(350px, 1fr));
    gap: 3rem;
    margin-top: 2rem;
}

.browse-collection-item {
    background: rgba(255, 255, 255, 0.02);
    backdrop-filter: blur(20px);
    border: 1px solid rgba(0, 128, 255, 0.1);
    border-radius: 20px;
    padding: 3rem 2rem;
    text-align: center;
    position: relative;
    transition: all 0.5s var(--animation-timing);
    overflow: hidden;
}

.browse-collection-item::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(0, 128, 255, 0.1), transparent);
    transition: left 0.8s ease;
}

.browse-collection-item:hover::before {
    left: 100%;
}

.browse-collection-item:hover {
    transform: translateY(-10px) scale(1.02);
    border-color: var(--dm-accent);
    background: rgba(255, 255, 255, 0.05);
    box-shadow: 0 25px 50px rgba(0, 128, 255, 0.2);
}

.browse-collection-link {
    color: var(--dm-text-primary);
    text-decoration: none;
    display: block;
    transition: color 0.3s var(--animation-timing);
}

.browse-collection-link:hover {
    color: var(--dm-accent);
}

.browse-collection-icon {
    font-size: 3rem;
    margin-bottom: 1.5rem;
    display: block;
}

.browse-collection-title {
    font-family: var(--heading-font);
    font-size: 2rem;
    margin-bottom: 1rem;
}

.browse-collection-description {
    color: var(--dm-text-secondary);
    line-height: 1.6;
    margin-bottom: 2rem;
}

.browse-collection-count {
    background: rgba(0, 128, 255, 0.1);
    border: 1px solid rgba(0, 128, 255, 0.2);
    border-radius: 25px;
    padding: 0.5rem 1rem;
    font-size: 0.9rem;
    color: var(--dm-accent);
    display: inline-block;
}

/* ===== RESPONSIVE DESIGN FOR PAGE-SPECIFIC STYLES ===== */

@media (max-width: 768px) {
    .breadcrumb {
        padding: 0.5rem 1rem;
        margin-top: 70px;
    }

    .page-header {
        padding: 2rem 1rem 1rem;
    }

    .username-collections,
    .world-famous-container,
    .diamonds-container,
    .gems-container,
    .expressions-container,
    .names-container,
    .username-page-container,
    .browse-collections-container {
        padding: 1rem;
    }

    .username-grid,
    .world-famous-grid,
    .diamonds-grid,
    .gems-grid,
    .expressions-grid,
    .names-grid,
    .username-page-grid {
        grid-template-columns: 1fr;
        gap: 0.8rem;
        padding: 0.25rem;
    }

    .category-filter {
        gap: 0.5rem;
    }

    .category-btn {
        font-size: 0.8rem;
        padding: 0.4rem 0.8rem;
    }
}

@media (max-width: 480px) {
    .page-title {
        font-size: clamp(1.5rem, 8vw, 2.5rem);
    }

    .username-item,
    .world-famous-item,
    .diamond-item,
    .gem-item,
    .expression-item,
    .name-item {
        padding: 1rem;
    }

    .browse-collection-item {
        padding: 2rem 1.5rem;
    }
}

/* ============================================
   BRAND LOGO STABILITY FIX
============================================ */

/* Ensure brand logo stability and visibility - CRITICAL FIXES */
.brand-logo {
    transform: none !important;
    transition: color 0.3s var(--animation-timing), text-shadow 0.3s var(--animation-timing) !important;
    position: relative !important;
    display: block !important;
    visibility: visible !important;
    opacity: 1 !important;
    z-index: 9999 !important; /* Maximum z-index to ensure visibility */
    float: left !important; /* Force left alignment */
    clear: none !important;
    margin-right: auto !important; /* Push other elements to the right */
    width: auto !important;
    min-width: 200px !important;
    max-width: 300px !important;
    flex-shrink: 0 !important;
    overflow: visible !important;
}

.brand-logo:hover {
    transform: none !important;
    color: var(--dm-accent);
    text-shadow: 0 0 10px rgba(0, 128, 255, 0.3);
}

/* Additional mobile logo stability - ENHANCED */
@media (max-width: 768px) {
    .brand-logo {
        position: relative !important;
        left: auto !important;
        top: auto !important;
        margin: 0 !important;
        padding: 0.5rem 0 !important;
        width: auto !important;
        min-width: 150px !important;
        max-width: 250px !important;
        flex-shrink: 0 !important;
        display: block !important;
        visibility: visible !important;
        opacity: 1 !important;
        z-index: 9999 !important;
        float: left !important;
        transform: none !important;
    }

    /* Ensure header maintains horizontal layout */
    .header-content {
        display: flex !important;
        flex-direction: row !important;
        align-items: center !important;
        justify-content: space-between !important;
        width: 100% !important;
        min-height: 60px !important;
    }
}

@media (max-width: 480px) {
    .brand-logo {
        min-width: 120px !important;
        font-size: 1.2rem !important;
        padding: 0.3rem 0 !important;
        display: block !important;
        visibility: visible !important;
        opacity: 1 !important;
        position: relative !important;
        z-index: 9999 !important;
    }

    .header-content {
        display: flex !important;
        flex-direction: row !important;
        align-items: center !important;
        justify-content: space-between !important;
        min-height: 50px !important;
    }
}

/* ABSOLUTE FALLBACK - Logo always visible */
.brand-logo {
   position: relative !important;
   display: block !important;
   visibility: visible !important;
   opacity: 1 !important;
   z-index: 99999 !important;
   transform: none !important;
   float: left !important;
   margin-right: auto !important;
   width: auto !important;
   min-width: 120px !important;
   max-width: 300px !important;
   flex-shrink: 0 !important;
   overflow: visible !important;
   pointer-events: auto !important;
}

/* Ensure header content always maintains layout */
.header-content {
    display: flex !important;
    flex-direction: row !important;
    align-items: center !important;
    justify-content: space-between !important;
    width: 100% !important;
    min-height: 50px !important;
    position: relative !important;
}

/* ============================================
  ABSOLUTE FALLBACK - LOGO ALWAYS VISIBLE
  This ensures the logo never disappears on any screen size
============================================ */

.brand-logo,
.main-header .brand-logo,
.header-content .brand-logo {
   display: block !important;
   visibility: visible !important;
   opacity: 1 !important;
   position: relative !important;
   z-index: 99999 !important;
   transform: none !important;
   float: left !important;
   margin-right: auto !important;
   width: auto !important;
   min-width: 120px !important;
   max-width: 300px !important;
   flex-shrink: 0 !important;
   overflow: visible !important;
   pointer-events: auto !important;
   font-size: 1.2rem !important;
   padding: 0.3rem 0 !important;
   color: var(--dm-text-primary) !important;
   font-family: var(--heading-font) !important;
   text-decoration: none !important;
   letter-spacing: 0.05em !important;
   transition: color 0.3s var(--animation-timing), text-shadow 0.3s var(--animation-timing) !important;
}

.main-header,
.header-content {
   display: block !important;
   visibility: visible !important;
   opacity: 1 !important;
   position: fixed !important;
   top: 0 !important;
   left: 0 !important;
   right: 0 !important;
   width: 100% !important;
   z-index: 1000 !important;
   background: rgba(0, 0, 0, 0.8) !important;
   padding: 1rem 2rem !important;
}

/* Mobile-specific absolute fallbacks */
@media (max-width: 768px), (max-width: 480px) {
   .brand-logo,
   .main-header .brand-logo,
   .header-content .brand-logo {
       display: block !important;
       visibility: visible !important;
       opacity: 1 !important;
       position: relative !important;
       z-index: 99999 !important;
       transform: none !important;
       float: left !important;
       margin-right: auto !important;
       width: auto !important;
       min-width: 120px !important;
       max-width: 200px !important;
       flex-shrink: 0 !important;
       font-size: 1.1rem !important;
       padding: 0.4rem 0 !important;
   }

   .header-content {
       display: flex !important;
       flex-direction: row !important;
       align-items: center !important;
       justify-content: space-between !important;
       width: 100% !important;
       min-height: 50px !important;
       position: relative !important;
   }
}
