/* Fonts are now loaded via HTML for better performance */

/* Reset and Base Styles */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html {
    overflow-x: hidden;
    overflow-y: auto;
    width: 100%;
    max-width: 100vw;
    min-height: 100vh;
}

:root {
    /* Colors */
    --primary-bg: #ffffff;
    --secondary-bg: #f8fafc;
    --dark-bg: #0f172a;
    --accent-primary: #6366f1;
    --accent-secondary: #8b5cf6;
    --accent-gradient: linear-gradient(135deg, #6366f1 0%, #8b5cf6 100%);
    --text-primary: #0f172a;
    --text-secondary: #64748b;
    --text-muted: #94a3b8;
    --border-color: #e2e8f0;
    --border-light: #f1f5f9;
    
    /* Shadows */
    --shadow-sm: 0 1px 2px 0 rgba(0, 0, 0, 0.05);
    --shadow-md: 0 4px 6px -1px rgba(0, 0, 0, 0.1), 0 2px 4px -1px rgba(0, 0, 0, 0.06);
    --shadow-lg: 0 10px 15px -3px rgba(0, 0, 0, 0.1), 0 4px 6px -2px rgba(0, 0, 0, 0.05);
    --shadow-xl: 0 20px 25px -5px rgba(0, 0, 0, 0.1), 0 10px 10px -5px rgba(0, 0, 0, 0.04);
    --shadow-glow: 0 0 50px rgba(99, 102, 241, 0.15);
    
    /* Transitions */
    --transition-fast: all 0.15s ease;
    --transition-smooth: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    --transition-bounce: all 0.5s cubic-bezier(0.68, -0.55, 0.265, 1.55);
    
    /* Spacing */
    --space-xs: 0.5rem;
    --space-sm: 1rem;
    --space-md: 1.5rem;
    --space-lg: 2rem;
    --space-xl: 3rem;
    --space-2xl: 4rem;
    
    /* Typography */
    --font-size-xs: 0.75rem;
    --font-size-sm: 0.875rem;
    --font-size-base: 1rem;
    --font-size-lg: 1.125rem;
    --font-size-xl: 1.25rem;
    --font-size-2xl: 1.5rem;
    --font-size-3xl: 1.875rem;
    --font-size-4xl: 2.25rem;
    --font-size-5xl: 3rem;
    --font-size-6xl: 3.75rem;
    
    /* Border Radius */
    --radius-sm: 0.375rem;
    --radius-md: 0.5rem;
    --radius-lg: 0.75rem;
    --radius-xl: 1rem;
    --radius-2xl: 1.5rem;
    
    /* Original Glass Variables */
    --glass-bg: rgba(255, 255, 255, 0.1);
    --glass-border: rgba(255, 255, 255, 0.2);
    --accent-color: #6366f1;
}

body {
    font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
    line-height: 1.6;
    color: var(--text-primary);
    background: var(--primary-bg);
    overflow: hidden;
    height: 100vh;
    width: 100%;
    max-width: 100vw;
    margin: 0;
    padding: 0;
}

/* Mobile scrolling behavior - Only for landing page */
@media (max-width: 768px) {
    body.landing-active {
        overflow-y: auto;
        scroll-snap-type: y mandatory;
        scroll-behavior: smooth;
    }
    
    /* Keep other pages with no scrolling */
    body:not(.landing-active) {
        overflow: hidden;
        height: 100vh;
    }
}

/* Modern Navigation */
.modern-nav {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    z-index: 1000;
    background: rgba(255, 255, 255, 0.8);
    backdrop-filter: blur(20px);
    border-bottom: 1px solid var(--border-light);
    transition: var(--transition-smooth);
}

/* Hide navigation for specific sections only */
body.palettes-active .modern-nav,
body.preview-active .modern-nav {
    display: none !important;
    visibility: hidden !important;
    opacity: 0 !important;
}

/* Ensure navigation is always visible on landing and about pages */
body:not(.palettes-active):not(.preview-active) .modern-nav {
    display: block !important;
}

/* Prevent any scrollbars when in preview mode */
body.preview-active {
    overflow: hidden !important;
    height: 100vh !important;
}

html.preview-active {
    overflow: hidden !important;
    height: 100vh !important;
}

.modern-nav.scrolled {
    background: rgba(255, 255, 255, 0.95);
    box-shadow: var(--shadow-md);
}

.nav-container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 var(--space-lg);
    display: flex;
    align-items: center;
    justify-content: space-between;
    height: 70px;
}

.nav-brand {
    display: flex;
    align-items: center;
    gap: var(--space-sm);
    font-weight: 700;
    transition: all 0.3s ease;
    border-radius: 8px;
    padding: 0.5rem;
    margin: -0.5rem;
}

.nav-brand:hover {
    background: rgba(255, 255, 255, 0.1);
    transform: scale(1.05);
}

.brand-icon {
    transition: var(--transition-smooth);
}

.nav-brand:hover .brand-icon {
    transform: rotate(10deg) scale(1.1);
}

.brand-text {
    font-family: 'Poppins', sans-serif;
    font-weight: 800;
    font-size: 2.2rem;
    margin-left: 1rem;
    position: relative;
    display: inline-block;
    overflow: visible;
    line-height: 1;
    transform: scale(1.1);
}

.brand-palex {
    background: linear-gradient(135deg, #6366f1, #8b5cf6, #06b6d4, #10b981);
    background-size: 300% 300%;
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    animation: brandColorShift 3s ease-in-out infinite;
    text-shadow: 0 0 60px rgba(99, 102, 241, 0.8), 0 0 100px rgba(99, 102, 241, 0.4);
    position: relative;
    z-index: 2;
}

.brand-ai {
    background: linear-gradient(135deg, #f59e0b, #ef4444, #ec4899, #8b5cf6);
    background-size: 200% 200%;
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    animation: aiGlow 2s ease-in-out infinite alternate;
    font-weight: 800;
    position: relative;
    z-index: 2;
    text-transform: uppercase;
    letter-spacing: 0.1em;
}

.brand-glow {
    position: absolute;
    top: -30px;
    left: -30px;
    right: -30px;
    bottom: -30px;
    background: radial-gradient(circle, rgba(99, 102, 241, 0.4) 0%, rgba(139, 92, 246, 0.3) 30%, transparent 70%);
    border-radius: 50%;
    animation: brandPulse 4s ease-in-out infinite;
    z-index: 1;
    filter: blur(20px);
}

.brand-particles {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    pointer-events: none;
    z-index: 3;
}

.particle {
    position: absolute;
    width: 8px;
    height: 8px;
    background: linear-gradient(45deg, #6366f1, #8b5cf6);
    border-radius: 50%;
    opacity: 0;
    animation: particleFloat 6s linear infinite;
    box-shadow: 0 0 20px currentColor;
}

.particle:nth-child(1) {
    left: 10%;
    animation-delay: 0s;
    background: linear-gradient(45deg, #06b6d4, #10b981);
}

.particle:nth-child(2) {
    left: 30%;
    animation-delay: 1.2s;
    background: linear-gradient(45deg, #f59e0b, #ef4444);
}

.particle:nth-child(3) {
    left: 50%;
    animation-delay: 2.4s;
    background: linear-gradient(45deg, #ec4899, #8b5cf6);
}

.particle:nth-child(4) {
    left: 70%;
    animation-delay: 3.6s;
    background: linear-gradient(45deg, #6366f1, #06b6d4);
}

.particle:nth-child(5) {
    left: 90%;
    animation-delay: 4.8s;
    background: linear-gradient(45deg, #10b981, #f59e0b);
}

@keyframes brandColorShift {
    0% { 
        background-position: 0% 50%;
        filter: hue-rotate(0deg);
    }
    50% { 
        background-position: 100% 50%;
        filter: hue-rotate(180deg);
    }
    100% { 
        background-position: 0% 50%;
        filter: hue-rotate(360deg);
    }
}

@keyframes aiGlow {
    0% { 
        background-position: 0% 50%;
        text-shadow: 0 0 40px rgba(245, 158, 11, 1), 0 0 80px rgba(245, 158, 11, 0.5);
        transform: scale(1);
    }
    100% { 
        background-position: 100% 50%;
        text-shadow: 0 0 60px rgba(239, 68, 68, 1), 0 0 120px rgba(236, 72, 153, 0.8), 0 0 160px rgba(139, 92, 246, 0.4);
        transform: scale(1.1);
    }
}

@keyframes brandPulse {
    0%, 100% { 
        transform: scale(1);
        opacity: 0.3;
    }
    50% { 
        transform: scale(1.2);
        opacity: 0.6;
    }
}

@keyframes particleFloat {
    0% {
        opacity: 0;
        transform: translateY(0px) rotate(0deg) scale(0.5);
    }
    10% {
        opacity: 1;
        transform: translateY(-10px) rotate(36deg) scale(1);
    }
    90% {
        opacity: 1;
        transform: translateY(-60px) rotate(324deg) scale(1.2);
    }
    100% {
        opacity: 0;
        transform: translateY(-80px) rotate(360deg) scale(0.8);
    }
}

.brand-text:hover .brand-palex {
    animation-duration: 1s;
}

.brand-text:hover .brand-ai {
    animation-duration: 0.8s;
}

.brand-text:hover .brand-glow {
    animation-duration: 2s;
}

.brand-text:hover .particle {
    animation-duration: 3s;
}

.nav-links {
    display: none; /* Hidden since navigation links were removed */
}

.nav-link {
    font-weight: 500;
    color: var(--text-secondary);
    text-decoration: none;
    padding: var(--space-xs) var(--space-sm);
    border-radius: var(--radius-md);
    transition: var(--transition-smooth);
    position: relative;
}

.nav-link:hover,
.nav-link.active {
    color: var(--accent-primary);
}

.nav-link.active::after {
    content: '';
    position: absolute;
    bottom: -2px;
    left: 50%;
    transform: translateX(-50%);
    width: 20px;
    height: 2px;
    background: var(--accent-gradient);
    border-radius: 1px;
}

.nav-actions {
    display: flex;
    align-items: center;
    gap: var(--space-md);
}

.nav-cta {
    background: var(--accent-gradient);
    color: white;
    border: none;
    padding: var(--space-sm) var(--space-lg);
    border-radius: var(--radius-lg);
    font-weight: 600;
    font-size: var(--font-size-sm);
    cursor: pointer;
    transition: var(--transition-smooth);
    display: flex;
    align-items: center;
    gap: var(--space-xs);
    box-shadow: var(--shadow-md);
}

.nav-cta:hover {
    transform: translateY(-2px);
    box-shadow: var(--shadow-lg);
}

.mobile-menu-toggle {
    display: none;
    flex-direction: column;
    gap: 4px;
    background: none;
    border: none;
    cursor: pointer;
    padding: var(--space-xs);
}

.mobile-menu-toggle span {
    width: 24px;
    height: 2px;
    background: var(--text-primary);
    border-radius: 1px;
    transition: var(--transition-smooth);
}

@media (max-width: 768px) {
    .nav-links {
        display: none;
    }
    
    .mobile-menu-toggle {
        display: flex;
    }
    
    .nav-container {
        padding: 0 var(--space-md);
    }
}

/* Hero Section */
.hero-section {
    height: 100vh;
    max-height: 100vh;
    position: relative;
    display: flex;
    align-items: flex-start;
    justify-content: center;
    padding: 80px 0 var(--space-lg);
    overflow: hidden;
    box-sizing: border-box;
}

.hero-background {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(135deg, #f8fafc 0%, #e2e8f0 100%);
}

.gradient-orb {
    position: absolute;
    border-radius: 50%;
    filter: blur(100px);
    opacity: 0.6;
    animation: float 20s ease-in-out infinite;
}

.orb-1 {
    width: 400px;
    height: 400px;
    background: linear-gradient(135deg, #6366f1, #8b5cf6);
    top: 10%;
    left: 10%;
    animation-delay: 0s;
}

.orb-2 {
    width: 300px;
    height: 300px;
    background: linear-gradient(135deg, #06b6d4, #3b82f6);
    top: 60%;
    right: 20%;
    animation-delay: -10s;
}

.orb-3 {
    width: 500px;
    height: 500px;
    background: linear-gradient(135deg, #8b5cf6, #ec4899);
    bottom: 10%;
    left: 50%;
    transform: translateX(-50%);
    animation-delay: -5s;
}

.hero-grid {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background-image: 
        linear-gradient(rgba(99, 102, 241, 0.03) 1px, transparent 1px),
        linear-gradient(90deg, rgba(99, 102, 241, 0.03) 1px, transparent 1px);
    background-size: 50px 50px;
}

.hero-container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 2rem var(--space-lg) 0;
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: var(--space-2xl);
    align-items: center;
    position: relative;
    z-index: 2;
    width: 100%;
    box-sizing: border-box;
    min-height: auto;
}

.hero-content {
    animation: slideInLeft 1s ease-out;
    width: 100%;
    max-width: 100%;
    overflow: visible;
}

.hero-badge-floating {
    position: absolute;
    top: 120px;
    left: 50%;
    transform: translateX(-50%);
    display: inline-flex;
    align-items: center;
    gap: var(--space-xs);
    background: rgba(255, 255, 255, 0.9);
    backdrop-filter: blur(20px);
    border: 1px solid var(--border-color);
    padding: var(--space-sm) var(--space-lg);
    border-radius: var(--radius-2xl);
    font-size: var(--font-size-sm);
    font-weight: 600;
    color: var(--accent-primary);
    box-shadow: var(--shadow-lg);
    z-index: 10;
    animation: badgeFloat 3s ease-in-out infinite;
    white-space: nowrap;
}

@keyframes badgeFloat {
    0%, 100% { transform: translateX(-50%) translateY(0px); }
    50% { transform: translateX(-50%) translateY(-10px); }
}

.hero-title {
    font-family: 'Poppins', sans-serif;
    font-size: clamp(2.2rem, 7vw, 3.5rem);
    font-weight: 800;
    line-height: 1.2;
    margin-bottom: var(--space-lg);
    display: block;
    text-align: left;
    margin-left: -2rem;
}

.hero-title .title-word {
    margin-right: 1rem;
}

.title-word {
    display: inline-block;
    animation: fadeInUp 0.8s ease-out forwards;
    opacity: 0;
    transform: translateY(30px);
}

.title-word:nth-child(1) { animation-delay: 0.1s; }
.title-word:nth-child(2) { animation-delay: 0.2s; }
.title-word:nth-child(3) { animation-delay: 0.3s; }
.title-word:nth-child(4) { animation-delay: 0.4s; }

.title-word.highlight {
    background: linear-gradient(135deg, #ff6b6b, #feca57);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    position: relative;
}

.title-word.energy-word {
    background: linear-gradient(135deg, #6366f1, #8b5cf6) !important;
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.title-word.gradient-text {
    background: linear-gradient(135deg, #6366f1, #8b5cf6, #06b6d4);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    background-size: 200% 200%;
    animation: gradientShift 3s ease-in-out infinite;
    color: #6366f1; /* Fallback color */
    font-weight: 800;
}

@keyframes fadeInUp {
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

@keyframes gradientShift {
    0%, 100% { background-position: 0% 50%; }
    50% { background-position: 100% 50%; }
}
@supports not (-webkit-background-clip: text) {
    .gradient-text {
        color: var(--accent-primary) !important;
        -webkit-text-fill-color: var(--accent-primary) !important;
        background: none !important;
    }
}

/* Back Arrow Styles */
.back-arrow {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
    background: rgba(255, 255, 255, 0.15);
    border: 1px solid rgba(255, 255, 255, 0.3);
    border-radius: 12px;
    padding: 0.75rem 1rem;
    color: white;
    font-family: 'Inter', sans-serif;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
    backdrop-filter: blur(20px);
    position: fixed;
    top: 1.5rem;
    left: 1.5rem;
    z-index: 1001;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
}

.back-arrow:hover {
    background: rgba(255, 255, 255, 0.25);
    border-color: rgba(255, 255, 255, 0.4);
    transform: translateX(-3px) scale(1.05);
    box-shadow: 0 6px 20px rgba(0, 0, 0, 0.2);
}

.back-arrow svg {
    transition: transform 0.3s ease;
    flex-shrink: 0;
}

.back-arrow span {
    font-size: 0.9rem;
    font-weight: 600;
    white-space: nowrap;
}

.back-arrow:hover svg {
    transform: translateX(-2px);
}

.preview-back {
    position: fixed;
    top: 1.5rem;
    left: 1.5rem;
    z-index: 1002;
    pointer-events: auto;
}

.hero-subtitle {
    font-family: 'Poppins', sans-serif;
    font-size: clamp(0.9rem, 2vw, 1.1rem);
    font-weight: 400;
    line-height: 1.6;
    color: var(--text-secondary);
    margin-bottom: var(--space-lg);
    max-width: 85%;
    letter-spacing: 0.01em;
}

.hero-stats {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: var(--space-lg);
    margin-bottom: var(--space-lg);
    padding: var(--space-md) var(--space-lg);
    background: rgba(255, 255, 255, 0.6);
    backdrop-filter: blur(10px);
    border: 1px solid var(--border-light);
    border-radius: var(--radius-xl);
    box-shadow: var(--shadow-sm);
    max-width: 600px;
    margin-left: auto;
    margin-right: auto;
}

.stat-item {
    text-align: center;
    flex: 1;
}

.stat-number {
    display: block;
    font-size: 1.4rem;
    font-weight: 700;
    color: var(--text-primary);
    line-height: 1.2;
}

.stat-label {
    font-size: 0.8rem;
    color: var(--text-secondary);
    font-weight: 500;
    margin-top: 0.2rem;
}

.stat-divider {
    width: 1px;
    height: 30px;
    background: var(--border-color);
}

.hero-actions {
    display: flex;
    align-items: center;
    gap: var(--space-md);
    margin-bottom: var(--space-xl);
}

.btn-primary {
    background: var(--accent-gradient);
    color: white;
    border: none;
    padding: var(--space-md) var(--space-xl);
    border-radius: var(--radius-lg);
    font-weight: 600;
    font-size: var(--font-size-base);
    cursor: pointer;
    transition: var(--transition-smooth);
    display: flex;
    align-items: center;
    gap: var(--space-sm);
    box-shadow: var(--shadow-lg);
}

.btn-primary:hover {
    transform: translateY(-3px);
    box-shadow: var(--shadow-xl);
}

.btn-secondary {
    background: rgba(255, 255, 255, 0.8);
    color: var(--text-primary);
    border: 1px solid var(--border-color);
    padding: var(--space-md) var(--space-xl);
    border-radius: var(--radius-lg);
    font-weight: 600;
    font-size: var(--font-size-base);
    cursor: pointer;
    transition: var(--transition-smooth);
    display: flex;
    align-items: center;
    gap: var(--space-sm);
    backdrop-filter: blur(10px);
}

.btn-secondary:hover {
    background: rgba(255, 255, 255, 0.9);
    transform: translateY(-2px);
    box-shadow: var(--shadow-md);
}

/* Social proof styles removed as section was removed */

/* Hero Visual Elements */
.hero-visual {
    position: relative;
    animation: slideInRight 1s ease-out;
}

.hero-card-stack {
    position: relative;
    width: 100%;
    height: 400px;
}

.hero-card {
    position: absolute;
    width: 280px;
    height: 180px;
    background: rgba(255, 255, 255, 0.9);
    backdrop-filter: blur(20px);
    border: 1px solid var(--border-light);
    border-radius: var(--radius-2xl);
    box-shadow: var(--shadow-xl);
    overflow: hidden;
    transition: var(--transition-smooth);
}

.hero-card:hover {
    transform: translateY(-10px) rotate(2deg);
    box-shadow: var(--shadow-xl), var(--shadow-glow);
}

.card-1 {
    top: 0;
    left: 0;
    z-index: 3;
    animation: cardFloat1 6s ease-in-out infinite;
}

.card-2 {
    top: 60px;
    right: 0;
    z-index: 2;
    animation: cardFloat2 6s ease-in-out infinite -2s;
}

.card-3 {
    bottom: 0;
    left: 50%;
    transform: translateX(-50%);
    z-index: 1;
    animation: cardFloat3 6s ease-in-out infinite -4s;
}

.card-gradient {
    height: 60%;
    background: var(--accent-gradient);
    position: relative;
    overflow: hidden;
}

.gradient-1 {
    background: linear-gradient(135deg, #ff6b6b, #ffa726, #ffcc02);
}

.gradient-2 {
    background: linear-gradient(135deg, #4fc3f7, #29b6f6, #0277bd);
}

.gradient-3 {
    background: linear-gradient(135deg, #66bb6a, #43a047, #2e7d32);
}

.card-content {
    padding: var(--space-md);
    height: 40%;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
}

.card-title {
    font-weight: 600;
    font-size: var(--font-size-sm);
    color: var(--text-primary);
}

.card-colors {
    display: flex;
    gap: var(--space-xs);
}

.color-dot {
    width: 12px;
    height: 12px;
    border-radius: 50%;
    border: 2px solid rgba(255, 255, 255, 0.8);
}

.floating-elements {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    pointer-events: none;
}

.floating-icon {
    position: absolute;
    width: 48px;
    height: 48px;
    background: rgba(255, 255, 255, 0.9);
    backdrop-filter: blur(10px);
    border: 1px solid var(--border-light);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--accent-primary);
    box-shadow: var(--shadow-md);
}

.icon-1 {
    top: 20%;
    right: 10%;
    animation: iconFloat1 8s ease-in-out infinite;
}

.icon-2 {
    bottom: 30%;
    left: 10%;
    animation: iconFloat2 8s ease-in-out infinite -3s;
}

.icon-3 {
    top: 50%;
    right: 30%;
    animation: iconFloat3 8s ease-in-out infinite -6s;
}

.scroll-indicator {
    position: absolute;
    bottom: var(--space-xl);
    left: 50%;
    transform: translateX(-50%);
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: var(--space-sm);
    color: var(--text-muted);
    animation: bounce 2s ease-in-out infinite;
}

.scroll-text {
    font-size: var(--font-size-sm);
    font-weight: 500;
}

.scroll-arrow {
    opacity: 0.6;
}

/* Animations */
@keyframes float {
    0%, 100% { 
        transform: translateY(0px) rotate(0deg) scale(1); 
        opacity: 0.6;
    }
    25% { 
        transform: translateY(-40px) rotate(90deg) scale(1.1); 
        opacity: 0.8;
    }
    50% { 
        transform: translateY(-20px) rotate(180deg) scale(0.9); 
        opacity: 1;
    }
    75% { 
        transform: translateY(20px) rotate(270deg) scale(1.05); 
        opacity: 0.7;
    }
}

@keyframes slideInLeft {
    from {
        opacity: 0;
        transform: translateX(-50px);
    }
    to {
        opacity: 1;
        transform: translateX(0);
    }
}

@keyframes slideInRight {
    from {
        opacity: 0;
        transform: translateX(50px);
    }
    to {
        opacity: 1;
        transform: translateX(0);
    }
}

@keyframes cardFloat1 {
    0%, 100% { transform: translateY(0px) rotate(0deg); }
    50% { transform: translateY(-15px) rotate(2deg); }
}

@keyframes cardFloat2 {
    0%, 100% { transform: translateY(0px) rotate(0deg); }
    50% { transform: translateY(-10px) rotate(-1deg); }
}

@keyframes cardFloat3 {
    0%, 100% { transform: translateX(-50%) translateY(0px) rotate(0deg); }
    50% { transform: translateX(-50%) translateY(-12px) rotate(1deg); }
}

@keyframes iconFloat1 {
    0%, 100% { transform: translateY(0px); }
    50% { transform: translateY(-20px); }
}

@keyframes iconFloat2 {
    0%, 100% { transform: translateY(0px); }
    50% { transform: translateY(-15px); }
}

@keyframes iconFloat3 {
    0%, 100% { transform: translateY(0px); }
    50% { transform: translateY(-25px); }
}

@keyframes bounce {
    0%, 20%, 50%, 80%, 100% { transform: translateX(-50%) translateY(0); }
    40% { transform: translateX(-50%) translateY(-10px); }
    60% { transform: translateX(-50%) translateY(-5px); }
}

/* Desktop specific adjustments */
@media (min-width: 1025px) {
    .hero-container {
        padding: 1rem var(--space-lg) 0;
    }
    
    .hero-section {
        min-height: 100vh;
        height: auto;
        align-items: flex-start;
        padding-top: 60px;
    }
}

/* Responsive Design */
@media (max-width: 1024px) {
    .hero-container {
        grid-template-columns: 1fr;
        gap: var(--space-xl);
        text-align: center;
        padding: 0 var(--space-md);
    }
    
    .hero-title {
        font-size: clamp(2rem, 6vw, 3rem);
    }
    
    .hero-stats {
        justify-content: center;
    }
}

@media (max-width: 768px) {
    .hero-section {
        padding-top: 120px;
    }
    
    .hero-badge-floating {
        top: 80px;
        padding: var(--space-xs) var(--space-sm);
        font-size: var(--font-size-xs);
        transform: translateX(-50%) scale(0.9);
    }
    
    .hero-title {
        font-size: clamp(1.8rem, 5vw, 2.5rem);
        margin-top: var(--space-lg);
    }
    
    .hero-subtitle {
        font-size: clamp(0.9rem, 2vw, 1.1rem);
        max-width: 95%;
        margin: 0 auto var(--space-lg) auto;
    }
    
    .hero-actions {
        flex-direction: column;
        align-items: stretch;
        gap: var(--space-md);
        margin-top: var(--space-lg);
    }
    
    .hero-container {
        padding: 0 var(--space-sm);
        gap: var(--space-lg);
    }
    
    .hero-stats {
        flex-direction: column;
        gap: var(--space-md);
    }
    
    .stat-divider {
        width: 100%;
        height: 1px;
    }
    
    .hero-card-stack {
        height: 300px;
    }
    
    .hero-card {
        width: 220px;
        height: 140px;
    }
}

/* Extra small mobile devices */
@media (max-width: 480px) {
    .hero-badge-floating {
        top: 70px;
        font-size: 0.75rem;
        padding: 0.5rem 1rem;
        transform: translateX(-50%) scale(0.8);
    }
    
    .hero-section {
        padding-top: 100px;
    }
    
    .hero-title {
        font-size: clamp(1.5rem, 6vw, 2rem);
        margin-top: var(--space-xl);
    }
    
    .hero-subtitle {
        font-size: clamp(0.85rem, 3vw, 1rem);
        max-width: 100%;
        padding: 0 var(--space-xs);
    }
}

/* Custom Cursor */
.cursor-glow {
    position: fixed;
    width: 20px;
    height: 20px;
    background: radial-gradient(circle, rgba(99, 102, 241, 0.8) 0%, transparent 70%);
    border-radius: 50%;
    pointer-events: none;
    z-index: 9999;
    transition: transform 0.1s ease;
    mix-blend-mode: screen;
}

/* Section Management */
.section {
    min-height: 100vh;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100vh;
    opacity: 0;
    visibility: hidden;
    transform: translateY(50px);
    transition: var(--transition-smooth);
    z-index: 1;
    overflow-y: auto;
    display: none; /* Ensure sections are completely hidden initially */
}

/* Remove scrollbar for home page */
#landing {
    overflow: hidden !important;
}

/* Ensure landing section is visible on page load */
#landing.active {
    display: block !important;
    opacity: 1 !important;
    visibility: visible !important;
    transform: translateY(0) !important;
}

/* Prevent transitions during initial page load */
.preload * {
    transition: none !important;
    animation: none !important;
}

/* Allow scrolling for palettes section when needed */
#palettes {
    overflow-y: auto !important;
}

.section.active {
    display: block; /* Show the active section */
    opacity: 1;
    visibility: visible;
    transform: translateY(0);
    z-index: 10;
}

#preview {
    overflow: hidden !important;
}

#preview.active {
    z-index: 1001;
    overflow: hidden !important;
}

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

/* Landing Section */
#landing {
    display: flex;
    align-items: center;
    justify-content: center;
    position: relative;
    overflow: hidden;
}

.background-effects {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    pointer-events: none;
}

.light-streak {
    position: absolute;
    background: linear-gradient(45deg, transparent, rgba(99, 102, 241, 0.15), rgba(139, 92, 246, 0.1), transparent);
    border-radius: 50%;
    filter: blur(80px);
    animation: float 12s ease-in-out infinite;
    opacity: 0.8;
}

.streak-1 {
    width: 400px;
    height: 400px;
    top: 10%;
    left: 10%;
    animation-delay: 0s;
}

.streak-2 {
    width: 300px;
    height: 300px;
    top: 60%;
    right: 10%;
    animation-delay: -2s;
}

.streak-3 {
    width: 500px;
    height: 500px;
    bottom: 10%;
    left: 50%;
    transform: translateX(-50%);
    animation-delay: -4s;
}

@keyframes float {
    0%, 100% { 
        transform: translateY(0px) rotate(0deg) scale(1); 
        opacity: 0.6;
    }
    25% { 
        transform: translateY(-40px) rotate(90deg) scale(1.1); 
        opacity: 0.8;
    }
    50% { 
        transform: translateY(-20px) rotate(180deg) scale(0.9); 
        opacity: 1;
    }
    75% { 
        transform: translateY(20px) rotate(270deg) scale(1.05); 
        opacity: 0.7;
    }
}


.landing-content {
    text-align: center;
    z-index: 2;
    position: relative;
}

.main-title {
    font-size: clamp(3rem, 8vw, 6rem);
    font-weight: 700;
    line-height: 1.1;
    margin-bottom: 1.5rem;
}

.title-line {
    display: block;
    opacity: 0;
    transform: translateY(50px);
    animation: slideUp 1s ease-out forwards;
}

.title-line:nth-child(2) {
    animation-delay: 0.2s;
}

.gradient-text {
    background: linear-gradient(135deg, #6366f1, #8b5cf6, #ec4899);
    background-size: 200% 200%;
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    animation: gradientShift 3s ease-in-out infinite;
}

@keyframes slideUp {
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

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

.subtitle {
    font-size: 1.25rem;
    color: var(--text-secondary);
    margin-bottom: 3rem;
    opacity: 0;
    animation: fadeIn 1s ease-out 0.6s forwards;
}

@keyframes fadeIn {
    to { opacity: 1; }
}

.cta-container {
    margin-bottom: 4rem;
    opacity: 0;
    animation: fadeIn 1s ease-out 0.8s forwards;
}

.cta-button {
    position: relative;
    background: linear-gradient(135deg, var(--accent-color), var(--accent-secondary));
    border: none;
    padding: 1.25rem 3rem;
    border-radius: 50px;
    font-size: 1.1rem;
    font-weight: 600;
    color: white;
    cursor: pointer;
    overflow: hidden;
    transition: var(--transition-smooth);
    box-shadow: var(--shadow-primary), var(--shadow-glow);
}

.cta-button:hover {
    transform: translateY(-5px) scale(1.05);
    box-shadow: 0 35px 60px -12px rgba(0, 0, 0, 0.3), 0 0 80px rgba(99, 102, 241, 0.5);
}

.button-shimmer {
    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.6s ease;
}

.cta-button:hover .button-shimmer {
    left: 100%;
}

.button-ripple {
    position: absolute;
    top: 50%;
    left: 50%;
    width: 0;
    height: 0;
    background: rgba(255, 255, 255, 0.1);
    border-radius: 50%;
    transform: translate(-50%, -50%);
    transition: width 0.6s ease, height 0.6s ease;
}

.cta-button:active .button-ripple {
    width: 300px;
    height: 300px;
}

.features-preview {
    display: flex;
    justify-content: center;
    gap: 3rem;
    opacity: 0;
    animation: fadeIn 1s ease-out 1s forwards;
}

.feature-item {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 0.5rem;
    color: var(--text-secondary);
    transition: var(--transition-smooth);
}

.feature-item:hover {
    color: var(--text-primary);
    transform: translateY(-5px);
}

.feature-icon {
    font-size: 2rem;
    margin-bottom: 0.5rem;
}


/* Palette Selection Section */
#palettes {
    background: linear-gradient(135deg, #0f0f23 0%, #1a1a2e 50%, #16213e 100%);
    padding: 4rem 0;
    min-height: 100vh;
}

.section-header {
    text-align: center;
    margin-bottom: 4rem;
}

.section-title {
    font-size: 3rem;
    font-weight: 700;
    margin-bottom: 2rem;
    color: #ffffff;
    text-shadow: 0 2px 4px rgba(0, 0, 0, 0.3);
}

.controls {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 1.5rem;
    flex-wrap: wrap;
}

.search-container {
    position: relative;
}

.search-input {
    background: linear-gradient(145deg, rgba(255, 255, 255, 0.98), rgba(248, 250, 252, 0.9));
    border: 2px solid rgba(99, 102, 241, 0.15);
    border-radius: 22px;
    padding: 1.3rem 1.8rem 1.3rem 4.2rem;
    color: #1e293b;
    font-family: 'Outfit', 'Inter', sans-serif;
    font-size: 1.05rem;
    font-weight: 500;
    letter-spacing: 0.01em;
    width: 380px;
    backdrop-filter: blur(30px);
    transition: all 0.5s cubic-bezier(0.175, 0.885, 0.32, 1.275);
    box-shadow: 
        0 12px 40px rgba(99, 102, 241, 0.08),
        0 6px 20px rgba(0, 0, 0, 0.06),
        inset 0 2px 4px rgba(255, 255, 255, 0.95),
        inset 0 -2px 4px rgba(99, 102, 241, 0.03);
    position: relative;
    overflow: hidden;
}

.search-input::placeholder {
    color: #64748b;
    font-weight: 500;
    opacity: 0.8;
}

.search-input:focus {
    outline: none;
    background: linear-gradient(145deg, rgba(255, 255, 255, 1), rgba(248, 250, 252, 0.95));
    border-color: #6366f1;
    box-shadow: 
        0 12px 48px rgba(99, 102, 241, 0.25),
        0 8px 24px rgba(0, 0, 0, 0.15),
        inset 0 2px 4px rgba(255, 255, 255, 1),
        inset 0 -2px 4px rgba(99, 102, 241, 0.1);
    transform: translateY(-3px) scale(1.02);
}

.search-input::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.4), transparent);
    transition: left 0.6s;
}

.search-input:hover::before {
    left: 100%;
}

.search-icon {
    position: absolute;
    left: 1.5rem;
    top: 50%;
    transform: translateY(-50%);
    color: #6366f1;
    font-size: 1.2rem;
    pointer-events: none;
    z-index: 2;
    text-shadow: 0 1px 2px rgba(0, 0, 0, 0.1);
}

.category-filter {
    background: linear-gradient(145deg, rgba(255, 255, 255, 0.98), rgba(248, 250, 252, 0.9));
    border: 2px solid rgba(99, 102, 241, 0.15);
    border-radius: 20px;
    padding: 1.3rem 4rem 1.3rem 1.8rem;
    color: #1e293b;
    font-family: 'Outfit', 'Inter', sans-serif;
    font-weight: 600;
    font-size: 1.05rem;
    letter-spacing: 0.02em;
    cursor: pointer;
    backdrop-filter: blur(30px);
    transition: all 0.5s cubic-bezier(0.175, 0.885, 0.32, 1.275);
    box-shadow: 
        0 12px 40px rgba(99, 102, 241, 0.08),
        0 6px 20px rgba(0, 0, 0, 0.06),
        inset 0 2px 4px rgba(255, 255, 255, 0.95),
        inset 0 -2px 4px rgba(99, 102, 241, 0.03);
    min-width: 200px;
    appearance: none;
    background-image: 
        linear-gradient(145deg, rgba(255, 255, 255, 0.98), rgba(248, 250, 252, 0.9)),
        url("data:image/svg+xml,%3csvg xmlns='http://www.w3.org/2000/svg' fill='none' viewBox='0 0 20 20'%3e%3cpath stroke='%236366f1' stroke-linecap='round' stroke-linejoin='round' stroke-width='2.5' d='M6 8l4 4 4-4'/%3e%3c/svg%3e");
    background-position: 0 0, right 1.5rem center;
    background-repeat: no-repeat, no-repeat;
    background-size: 100% 100%, 1.3rem;
    position: relative;
    overflow: hidden;
}

.category-filter:hover {
    background: linear-gradient(145deg, rgba(255, 255, 255, 1), rgba(248, 250, 252, 0.95));
    border-color: #6366f1;
    box-shadow: 
        0 12px 48px rgba(99, 102, 241, 0.2),
        0 8px 24px rgba(0, 0, 0, 0.12),
        inset 0 2px 4px rgba(255, 255, 255, 1),
        inset 0 -2px 4px rgba(99, 102, 241, 0.08);
    transform: translateY(-3px) scale(1.02);
}

.category-filter::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;
    z-index: 1;
}

.category-filter:hover::before {
    left: 100%;
}

.randomize-btn {
    background: linear-gradient(135deg, #6366f1, #8b5cf6);
    border: none;
    border-radius: 16px;
    padding: 1rem 1.5rem;
    color: white;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    box-shadow: 0 4px 20px rgba(99, 102, 241, 0.3);
    position: relative;
    overflow: hidden;
}

.randomize-btn::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;
}

.randomize-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 32px rgba(99, 102, 241, 0.4);
}

.randomize-btn:hover::before {
    left: 100%;
}

/* Favorites Toggle Button */
.favorites-toggle-btn {
    background: linear-gradient(135deg, #e91e63, #f06292);
    border: none;
    border-radius: 16px;
    padding: 1rem 1.5rem;
    color: white;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    box-shadow: 0 4px 20px rgba(233, 30, 99, 0.3);
    position: relative;
    overflow: hidden;
}

.favorites-toggle-btn::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;
}

.favorites-toggle-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 32px rgba(233, 30, 99, 0.4);
}

.favorites-toggle-btn:hover::before {
    left: 100%;
}

/* Floating Favorites Panel */
.favorites-panel {
    position: fixed;
    top: 50%;
    right: 2rem;
    transform: translateY(-50%);
    width: 350px;
    max-height: 70vh;
    background: linear-gradient(145deg, rgba(255, 255, 255, 0.95), rgba(248, 250, 252, 0.9));
    border-radius: 24px;
    backdrop-filter: blur(30px);
    box-shadow: 
        0 20px 60px rgba(0, 0, 0, 0.15),
        0 8px 32px rgba(0, 0, 0, 0.1),
        inset 0 1px 0 rgba(255, 255, 255, 0.9);
    z-index: 1000;
    overflow: hidden;
    animation: slideInRight 0.4s cubic-bezier(0.4, 0, 0.2, 1);
}

@keyframes slideInRight {
    from {
        opacity: 0;
        transform: translateY(-50%) translateX(100%);
    }
    to {
        opacity: 1;
        transform: translateY(-50%) translateX(0);
    }
}

.favorites-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 1.5rem 2rem;
    border-bottom: 1px solid rgba(0, 0, 0, 0.1);
    background: linear-gradient(135deg, rgba(255, 255, 255, 0.8), rgba(248, 250, 252, 0.6));
}

.favorites-title {
    font-family: 'Poppins', sans-serif;
    font-size: 1.2rem;
    font-weight: 700;
    color: #2d3748;
    margin: 0;
}

.favorites-close {
    background: none;
    border: none;
    font-size: 1.5rem;
    color: #64748b;
    cursor: pointer;
    padding: 0.5rem;
    border-radius: 50%;
    transition: all 0.3s ease;
}

.favorites-close:hover {
    background: rgba(239, 68, 68, 0.1);
    color: #ef4444;
    transform: scale(1.1);
}

.favorites-grid {
    padding: 1.5rem;
    max-height: calc(70vh - 80px);
    overflow-y: auto;
    display: grid;
    grid-template-columns: 1fr;
    gap: 1rem;
}

.no-favorites {
    text-align: center;
    padding: 2rem 1rem;
    color: #64748b;
    font-family: 'Inter', sans-serif;
    font-style: italic;
}

.favorite-item {
    background: linear-gradient(145deg, rgba(255, 255, 255, 0.9), rgba(248, 250, 252, 0.8));
    border-radius: 16px;
    padding: 1rem;
    backdrop-filter: blur(20px);
    box-shadow: 0 4px 16px rgba(0, 0, 0, 0.08);
    transition: all 0.3s ease;
    cursor: pointer;
    border: 2px solid transparent;
}

.favorite-item:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 24px rgba(0, 0, 0, 0.12);
    border-color: rgba(99, 102, 241, 0.3);
    background: linear-gradient(145deg, rgba(255, 255, 255, 1), rgba(248, 250, 252, 0.95));
}

.favorite-colors {
    display: flex;
    height: 60px;
    border-radius: 12px;
    overflow: hidden;
    margin-bottom: 0.75rem;
}

.favorite-color {
    flex: 1;
    transition: all 0.3s ease;
}

.favorite-info {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.favorite-name {
    font-family: 'Outfit', sans-serif;
    font-weight: 600;
    font-size: 0.9rem;
    color: #1e293b;
}

.remove-favorite {
    background: rgba(239, 68, 68, 0.1);
    border: none;
    border-radius: 50%;
    width: 24px;
    height: 24px;
    color: #ef4444;
    cursor: pointer;
    font-size: 1rem;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.3s ease;
}

.remove-favorite:hover {
    background: rgba(239, 68, 68, 0.2);
    transform: scale(1.1);
}

.palettes-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
    gap: 2rem;
    margin-top: 3rem;
}

.palette-card {
    background: rgba(255, 255, 255, 0.05);
    backdrop-filter: blur(10px);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 20px;
    padding: 1.5rem;
    cursor: pointer;
    transition: all 0.6s cubic-bezier(0.68, -0.55, 0.265, 1.55);
    box-shadow: 0 10px 40px rgba(0, 0, 0, 0.3);
    position: relative;
    overflow: hidden;
}

.palette-card:hover {
    transform: translateY(-15px) scale(1.05);
    box-shadow: 0 25px 80px rgba(0, 0, 0, 0.5), 0 0 50px rgba(99, 102, 241, 0.3);
    border-color: rgba(99, 102, 241, 0.4);
}

.palette-colors-preview {
    display: flex;
    height: 140px;
    border-radius: 15px;
    overflow: hidden;
    margin-bottom: 1.5rem;
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.4);
    position: relative;
    background: linear-gradient(-45deg, transparent, rgba(255, 255, 255, 0.1), transparent);
    background-size: 200% 200%;
    animation: shimmer 3s ease-in-out infinite;
}

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

.color-swatch {
    flex: 1;
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    position: relative;
    overflow: hidden;
}

.color-swatch::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;
}

.palette-card:hover .color-swatch {
    transform: scale(1.02);
}

.palette-card:hover .color-swatch::before {
    left: 100%;
}

.palette-name {
    font-size: 1.25rem;
    font-weight: 600;
    margin-bottom: 0.5rem;
    color: #ffffff;
    text-shadow: 0 2px 4px rgba(0, 0, 0, 0.3);
    opacity: 0;
    transform: translateY(20px);
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
}

.palette-card:hover .palette-name {
    opacity: 1;
    transform: translateY(0);
}

.palette-category {
    color: rgba(255, 255, 255, 0.7);
    font-size: 0.9rem;
    font-weight: 400;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    opacity: 0;
    transform: translateY(20px);
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    transition-delay: 0.1s;
}

.palette-card:hover .palette-category {
    opacity: 1;
    transform: translateY(0);
}

.wave-effect {
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.1), transparent);
    transition: left 0.6s ease;
}

.palette-card:hover .wave-effect {
    left: 100%;
}

.favorite-btn {
    position: absolute;
    top: 1rem;
    right: 1rem;
    background: rgba(255, 255, 255, 0.1);
    border: 1px solid rgba(255, 255, 255, 0.2);
    border-radius: 50%;
    width: 40px;
    height: 40px;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: all 0.3s ease;
    backdrop-filter: blur(10px);
    opacity: 0;
}

.palette-card:hover .favorite-btn {
    opacity: 1;
}

.favorite-btn:hover {
    background: rgba(255, 255, 255, 0.2);
    transform: scale(1.1);
}

.favorite-btn.active {
    background: rgba(255, 99, 132, 0.2);
    border-color: rgba(255, 99, 132, 0.4);
}

/* Gradient Preview Section */
/* Positioning handled by .section class */

.preview-container {
    position: relative;
    width: 100vw;
    height: 100vh;
    overflow: hidden;
}

/* ULTRA ALIVE Gradient Background Animation */
.gradient-canvas {
    width: 100vw;
    height: 100vh;
    display: block;
    position: fixed;
    top: 0;
    left: 0;
    z-index: 1;
    /* Default colors - will be overridden by JavaScript */
    background: 
        linear-gradient(135deg, #ff6b6b, #ffa726, #ffcc02),
        radial-gradient(ellipse at 20% 30%, rgba(255, 255, 255, 0.2) 0%, transparent 50%),
        radial-gradient(ellipse at 80% 70%, rgba(255, 255, 255, 0.15) 0%, transparent 60%),
        radial-gradient(ellipse at 40% 80%, rgba(0, 0, 0, 0.08) 0%, transparent 40%),
        conic-gradient(from 0deg at 30% 70%, transparent 0deg, rgba(255, 255, 255, 0.1) 90deg, transparent 180deg),
        conic-gradient(from 180deg at 70% 30%, transparent 0deg, rgba(255, 255, 255, 0.08) 90deg, transparent 180deg);
    background-size: 150% 150%, 80% 80%, 120% 120%, 100% 100%, 200% 200%, 180% 180%;
    animation: 
        hyperAliveFlow 12s cubic-bezier(0.25, 0.46, 0.45, 0.94) infinite,
        energyShimmer 8s linear infinite,
        colorMutation 20s ease-in-out infinite;
    transition: all 0.6s cubic-bezier(0.4, 0, 0.2, 1);
    filter: saturate(1.2) contrast(1.08) brightness(1.02) hue-rotate(0deg);
    transform-origin: center center;
}

/* Removed unused animation */

/* ULTRA ALIVE Animation Keyframes */
@keyframes hyperAliveFlow {
    0% { background-position: 40% 50%, 20% 30%, 80% 70%, 40% 80%, 30% 70%, 70% 30%; }
    16% { background-position: 60% 35%, 35% 15%, 65% 85%, 75% 65%, 45% 55%, 55% 45%; }
    33% { background-position: 75% 60%, 70% 80%, 30% 20%, 90% 40%, 80% 20%, 20% 80%; }
    50% { background-position: 55% 75%, 85% 65%, 15% 35%, 60% 90%, 65% 85%, 35% 15%; }
    66% { background-position: 35% 40%, 50% 90%, 90% 50%, 25% 75%, 20% 60%, 80% 40%; }
    83% { background-position: 50% 25%, 25% 50%, 75% 75%, 85% 15%, 90% 10%, 10% 90%; }
    100% { background-position: 40% 50%, 20% 30%, 80% 70%, 40% 80%, 30% 70%, 70% 30%; }
}

@keyframes organicBreathe {
    0%, 100% { 
        background-size: 150% 150%, 80% 80%, 120% 120%, 100% 100%, 200% 200%, 180% 180%;
        filter: saturate(1.2) contrast(1.08) brightness(1.02) hue-rotate(0deg);
        transform: scale(1) rotate(0deg);
    }
    33% { 
        background-size: 170% 170%, 95% 95%, 140% 140%, 115% 115%, 220% 220%, 200% 200%;
        filter: saturate(1.35) contrast(1.12) brightness(1.08) hue-rotate(5deg);
        transform: scale(1.01) rotate(0.5deg);
    }
    66% { 
        background-size: 160% 160%, 85% 85%, 130% 130%, 105% 105%, 210% 210%, 190% 190%;
        filter: saturate(1.25) contrast(1.1) brightness(1.05) hue-rotate(-3deg);
        transform: scale(1.005) rotate(-0.3deg);
    }
}

@keyframes energyShimmer {
    0% { background-position: 40% 50%, 0% 0%, 100% 100%, 50% 50%, 0deg, 180deg; }
    25% { background-position: 60% 30%, 25% 75%, 75% 25%, 80% 20%, 90deg, 270deg; }
    50% { background-position: 80% 70%, 100% 0%, 0% 100%, 30% 70%, 180deg, 0deg; }
    75% { background-position: 30% 80%, 75% 25%, 25% 75%, 70% 30%, 270deg, 90deg; }
    100% { background-position: 40% 50%, 0% 0%, 100% 100%, 50% 50%, 360deg, 540deg; }
}

@keyframes livingPulse {
    0%, 100% { 
        transform: scale(1) rotate(0deg);
        opacity: 1;
        filter: saturate(1.2) contrast(1.08) brightness(1.02);
    }
    25% { 
        transform: scale(1.015) rotate(0.2deg);
        opacity: 0.98;
        filter: saturate(1.3) contrast(1.1) brightness(1.05);
    }
    50% { 
        transform: scale(1.025) rotate(0deg);
        opacity: 0.95;
        filter: saturate(1.4) contrast(1.12) brightness(1.08);
    }
    75% { 
        transform: scale(1.01) rotate(-0.2deg);
        opacity: 0.97;
        filter: saturate(1.25) contrast(1.09) brightness(1.04);
    }
}

@keyframes colorMutation {
    0%, 100% { filter: saturate(1.2) contrast(1.08) brightness(1.02) hue-rotate(0deg); }
    20% { filter: saturate(1.4) contrast(1.12) brightness(1.06) hue-rotate(10deg); }
    40% { filter: saturate(1.1) contrast(1.15) brightness(0.98) hue-rotate(-5deg); }
    60% { filter: saturate(1.5) contrast(1.05) brightness(1.1) hue-rotate(15deg); }
    80% { filter: saturate(1.0) contrast(1.2) brightness(1.0) hue-rotate(-10deg); }
}

@keyframes dimensionalShift {
    0%, 100% { 
        transform: scale(1) rotate(0deg) perspective(1000px) rotateX(0deg) rotateY(0deg);
        background-size: 150% 150%, 80% 80%, 120% 120%, 100% 100%, 200% 200%, 180% 180%;
    }
    25% { 
        transform: scale(1.01) rotate(0.5deg) perspective(1000px) rotateX(0.5deg) rotateY(0.2deg);
        background-size: 160% 160%, 90% 90%, 130% 130%, 110% 110%, 220% 220%, 200% 200%;
    }
    50% { 
        transform: scale(1.02) rotate(0deg) perspective(1000px) rotateX(0deg) rotateY(0.5deg);
        background-size: 170% 170%, 85% 85%, 140% 140%, 105% 105%, 240% 240%, 190% 190%;
    }
    75% { 
        transform: scale(1.005) rotate(-0.3deg) perspective(1000px) rotateX(-0.3deg) rotateY(0deg);
        background-size: 155% 155%, 95% 95%, 125% 125%, 115% 115%, 210% 210%, 210% 210%;
    }
}

.preview-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    padding: 2rem;
    pointer-events: none;
    z-index: 10;
}

.palette-info {
    text-align: center;
    pointer-events: auto;
}

.palette-name {
    font-size: 3rem;
    font-weight: 700;
    margin-bottom: 1rem;
    text-shadow: 0 0 20px rgba(0, 0, 0, 0.5);
    animation: glow 2s ease-in-out infinite alternate;
}

@keyframes glow {
    from { text-shadow: 0 0 20px rgba(255, 255, 255, 0.5); }
    to { text-shadow: 0 0 30px rgba(255, 255, 255, 0.8), 0 0 40px rgba(99, 102, 241, 0.3); }
}

.palette-colors {
    display: flex;
    justify-content: center;
    gap: 1rem;
}

.color-info {
    background: var(--glass-bg);
    border: 1px solid var(--glass-border);
    border-radius: 10px;
    padding: 0.5rem 1rem;
    backdrop-filter: blur(10px);
    font-family: monospace;
    font-size: 0.9rem;
}

.palette-card {
    background: var(--glass-bg);
    border: 1px solid var(--glass-border);
    border-radius: 20px;
    backdrop-filter: blur(20px);
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    cursor: pointer;
    position: relative;
    overflow: hidden;
}

.palette-number {
    position: absolute;
    top: 12px;
    left: 12px;
    background: rgba(0, 0, 0, 0.7);
    color: white;
    font-size: 0.75rem;
    font-weight: 600;
    font-family: 'Inter', monospace;
    padding: 0.25rem 0.5rem;
    border-radius: 8px;
    z-index: 10;
    backdrop-filter: blur(10px);
    border: 1px solid rgba(255, 255, 255, 0.1);
    transition: all 0.3s ease;
}

.palette-card:hover .palette-number,
.palette-card.scroll-hover .palette-number {
    background: rgba(99, 102, 241, 0.9);
    border-color: rgba(99, 102, 241, 0.5);
    transform: scale(1.05);
}

/* Professional Control Buttons */
.preview-controls {
    display: flex;
    justify-content: center;
    gap: 2rem;
    margin-top: 3rem;
    pointer-events: auto;
    z-index: 20;
    position: relative;
}

.pro-control-btn {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    background: rgba(0, 0, 0, 0.4);
    backdrop-filter: blur(20px);
    border: 1px solid rgba(255, 255, 255, 0.15);
    color: white;
    padding: 0.875rem 1.5rem;
    border-radius: 12px;
    font-family: inherit;
    cursor: pointer;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    position: relative;
    overflow: hidden;
    min-width: 140px;
    pointer-events: auto;
    z-index: 30;
}

.pro-control-btn::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.1), transparent);
    transition: left 0.6s ease;
}

.pro-control-btn:hover::before {
    left: 100%;
}

.pro-control-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 10px 25px rgba(0, 0, 0, 0.3);
    border-color: rgba(255, 255, 255, 0.3);
    background: rgba(0, 0, 0, 0.6);
}

.pro-control-btn.download {
    background: linear-gradient(135deg, rgba(34, 197, 94, 0.2), rgba(16, 185, 129, 0.2));
    border-color: rgba(34, 197, 94, 0.3);
}

.pro-control-btn.download:hover {
    background: linear-gradient(135deg, rgba(34, 197, 94, 0.4), rgba(16, 185, 129, 0.4));
    border-color: rgba(34, 197, 94, 0.6);
    box-shadow: 0 10px 25px rgba(34, 197, 94, 0.3);
}

.pro-control-btn.share {
    background: linear-gradient(135deg, rgba(99, 102, 241, 0.2), rgba(139, 92, 246, 0.2));
    border-color: rgba(99, 102, 241, 0.3);
}

.pro-control-btn.share:hover {
    background: linear-gradient(135deg, rgba(99, 102, 241, 0.4), rgba(139, 92, 246, 0.4));
    border-color: rgba(99, 102, 241, 0.6);
    box-shadow: 0 10px 25px rgba(99, 102, 241, 0.3);
}

/* Disabled state for download button */
.pro-control-btn[style*="pointer-events: none"] {
    cursor: not-allowed !important;
    opacity: 0.6 !important;
    transform: none !important;
}

.pro-control-btn[style*="pointer-events: none"]:hover {
    transform: none !important;
    box-shadow: 0 10px 25px rgba(0, 0, 0, 0.3) !important;
}

.btn-icon {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 36px;
    height: 36px;
    border-radius: 8px;
    background: rgba(255, 255, 255, 0.1);
    transition: all 0.3s ease;
    pointer-events: none;
}

.btn-icon svg {
    pointer-events: none;
}

.pro-control-btn:hover .btn-icon {
    background: rgba(255, 255, 255, 0.2);
    transform: scale(1.1);
}

.btn-content {
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    gap: 0.25rem;
    pointer-events: none;
}

.btn-title {
    font-size: 1rem;
    font-weight: 600;
    line-height: 1;
    pointer-events: none;
}

.btn-subtitle {
    font-size: 0.75rem;
    opacity: 0.7;
    line-height: 1;
    pointer-events: none;
}

/* Modal Styles */
.modal#preview {
    position: fixed;
    top: 0;
    left: 0;
    width: 100vw;
    height: 100vh;
    background: var(--dark-bg);
    z-index: 1001;
    overflow: hidden;
}

#preview.active {
    z-index: 1001;
}

.modal {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.8);
    backdrop-filter: blur(10px);
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 10000;
    opacity: 0;
    visibility: hidden;
    transition: var(--transition-smooth);
}

.modal.active {
    opacity: 1;
    visibility: visible;
}

.modal-content {
    background: var(--glass-bg);
    border: 1px solid var(--glass-border);
    border-radius: 20px;
    padding: 2rem;
    max-width: 500px;
    width: 90%;
    backdrop-filter: blur(20px);
    transform: scale(0.8);
    transition: var(--transition-bounce);
}

.modal.active .modal-content {
    transform: scale(1);
}

.glass-card {
    box-shadow: var(--shadow-primary);
}

.modal-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 2rem;
}

.modal-header h3 {
    font-size: 1.5rem;
    font-weight: 600;
}

.close-btn {
    background: none;
    border: none;
    font-size: 1.5rem;
    color: var(--text-secondary);
    cursor: pointer;
    transition: var(--transition-smooth);
}

.close-btn:hover {
    color: var(--text-primary);
    transform: scale(1.2);
}

.download-preview {
    margin-bottom: 2rem;
}

.download-canvas {
    width: 100%;
    height: 200px;
    border-radius: 10px;
}

.personalization {
    margin-bottom: 2rem;
}

.input-label {
    display: block;
    margin-bottom: 0.5rem;
    color: var(--text-secondary);
    font-weight: 500;
}

.name-input {
    width: 100%;
    background: var(--glass-bg);
    border: 1px solid var(--glass-border);
    border-radius: 10px;
    padding: 0.75rem 1rem;
    color: var(--text-primary);
    font-size: 1rem;
    transition: var(--transition-smooth);
}

.name-input:focus {
    outline: none;
    border-color: var(--accent-color);
    box-shadow: 0 0 20px rgba(99, 102, 241, 0.3);
}

.share-options {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(160px, 1fr));
    gap: 1rem;
    padding: 0.5rem;
}

@media (max-width: 768px) {
    .share-options {
        grid-template-columns: repeat(auto-fit, minmax(140px, 1fr));
        gap: 0.75rem;
    }
}

@media (max-width: 480px) {
    .share-options {
        grid-template-columns: 1fr 1fr;
        gap: 0.5rem;
    }
}

.download-option, .share-option {
    background: linear-gradient(145deg, rgba(255, 255, 255, 0.9), rgba(248, 250, 252, 0.8));
    border: 1px solid rgba(99, 102, 241, 0.1);
    border-radius: 12px;
    padding: 0.75rem 1rem;
    cursor: pointer;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    display: flex;
    align-items: center;
    gap: 0.75rem;
    color: var(--text-primary);
    backdrop-filter: blur(10px);
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.05);
    font-weight: 500;
}

.download-option:hover, .share-option:hover {
    background: linear-gradient(145deg, rgba(255, 255, 255, 1), rgba(248, 250, 252, 0.95));
    transform: translateY(-2px) scale(1.02);
    border-color: rgba(99, 102, 241, 0.3);
    box-shadow: 0 8px 24px rgba(99, 102, 241, 0.15);
}

.option-icon, .share-icon {
    font-size: 1.5rem;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
    transition: all 0.3s ease;
}

.share-option:hover .share-icon {
    transform: scale(1.1);
}

.share-message, .unlock-message {
    text-align: center;
    margin-bottom: 2rem;
}

.unlock-message {
    color: var(--accent-color);
    font-weight: 500;
}

/* Responsive Design */
@media (max-width: 768px) {
    .container {
        padding: 0 1rem;
    }
    
    .main-title {
        font-size: 2.5rem;
    }
    
    .features-preview {
        flex-direction: column;
        gap: 1.5rem;
    }
    
    .controls {
        flex-direction: column;
        gap: 1rem;
    }
    
    .search-input {
        width: 100%;
    }
    
    .palettes-grid {
        grid-template-columns: 1fr;
        gap: 1rem;
    }
    
    .preview-controls {
        flex-wrap: wrap;
    }
    
    .control-btn {
        padding: 0.75rem 1.5rem;
        font-size: 0.9rem;
    }
    
    .palette-name {
        font-size: 2rem;
    }
    
    .modal-content {
        margin: 1rem;
        padding: 1.5rem;
    }
}

@media (max-width: 480px) {
    .main-title {
        font-size: 2rem;
    }
    
    .subtitle {
        font-size: 1rem;
    }
    
    .cta-button {
        padding: 1rem 2rem;
        font-size: 1rem;
    }
    
    .section-title {
        font-size: 2rem;
    }
    
    .palette-name {
        font-size: 1.5rem;
    }
}

/* Animations for page transitions */
@keyframes slideInFromRight {
    from {
        opacity: 0;
        transform: translateX(100px);
    }
    to {
        opacity: 1;
        transform: translateX(0);
    }
}

@keyframes slideInFromLeft {
    from {
        opacity: 0;
        transform: translateX(-100px);
    }
    to {
        opacity: 1;
        transform: translateX(0);
    }
}

.slide-in-right {
    animation: slideInFromRight 0.6s ease-out;
}

.slide-in-left {
    animation: slideInFromLeft 0.6s ease-out;
}

/* Confetti animation */
@keyframes confetti-fall {
    0% {
        transform: translateY(-100vh) rotate(0deg);
        opacity: 1;
    }
    100% {
        transform: translateY(100vh) rotate(360deg);
        opacity: 0;
    }
}

.confetti {
    position: fixed;
    width: 10px;
    height: 10px;
    background: var(--accent-color);
    animation: confetti-fall 3s linear infinite;
    z-index: 10000;
}

/* Favorites heart icon */
.favorite-btn {
    position: absolute;
    top: 1rem;
    right: 1rem;
    background: none;
    border: none;
    font-size: 1.5rem;
    cursor: pointer;
    transition: var(--transition-smooth);
    opacity: 0;
}

.palette-card:hover .favorite-btn {
    opacity: 1;
}

.favorite-btn.active {
    color: #ef4444;
    transform: scale(1.2);
}

.favorite-btn:hover {
    transform: scale(1.3);
}

/* Loading Screen Styles */
.loading-screen {
    position: fixed;
    top: 0;
    left: 0;
    width: 100vw;
    height: 100vh;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 10000;
    transition: opacity 0.5s ease-out, visibility 0.5s ease-out;
    /* Hide by default - no loading screen needed */
    opacity: 0;
    visibility: hidden;
}

.loading-screen.hidden {
    opacity: 0;
    visibility: hidden;
}

.loading-content {
    text-align: center;
    color: white;
}

.loading-logo {
    margin-bottom: 2rem;
    animation: loadingPulse 2s ease-in-out infinite;
}

.loading-text {
    font-size: 1.5rem;
    font-weight: 600;
    margin-bottom: 2rem;
    opacity: 0.9;
}

.loading-bar {
    width: 200px;
    height: 4px;
    background: rgba(255, 255, 255, 0.2);
    border-radius: 2px;
    overflow: hidden;
    margin: 0 auto;
}

.loading-progress {
    width: 0%;
    height: 100%;
    background: linear-gradient(90deg, #ffffff, #f0f0f0);
    border-radius: 2px;
    animation: loadingProgress 2s ease-in-out infinite;
}

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

@keyframes loadingProgress {
    0% { width: 0%; }
    50% { width: 70%; }
    100% { width: 100%; }
}

/* Error Boundary Styles */
.error-boundary {
    position: fixed;
    top: 0;
    left: 0;
    width: 100vw;
    height: 100vh;
    background: linear-gradient(135deg, #dc2626 0%, #991b1b 100%);
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 10001;
    color: white;
    transition: opacity 0.3s ease-out, visibility 0.3s ease-out;
}

.error-boundary.hidden {
    opacity: 0;
    visibility: hidden;
    pointer-events: none;
}

.error-content {
    text-align: center;
    max-width: 500px;
    padding: 2rem;
}

.error-icon {
    font-size: 4rem;
    margin-bottom: 1rem;
    animation: errorShake 0.5s ease-in-out;
}

.error-content h3 {
    font-size: 2rem;
    font-weight: 700;
    margin-bottom: 1rem;
}

.error-content p {
    font-size: 1.1rem;
    margin-bottom: 2rem;
    opacity: 0.9;
    line-height: 1.6;
}

.retry-button {
    background: rgba(255, 255, 255, 0.2);
    border: 2px solid rgba(255, 255, 255, 0.3);
    color: white;
    padding: 1rem 2rem;
    border-radius: 12px;
    font-size: 1rem;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
    backdrop-filter: blur(10px);
}

.retry-button:hover {
    background: rgba(255, 255, 255, 0.3);
    border-color: rgba(255, 255, 255, 0.5);
    transform: translateY(-2px);
}

@keyframes errorShake {
    0%, 100% { transform: translateX(0); }
    25% { transform: translateX(-5px); }
    75% { transform: translateX(5px); }
}

/* Notification System */
.notification-container {
    position: fixed;
    top: 2rem;
    right: 2rem;
    z-index: 10000;
    display: flex;
    flex-direction: column;
    gap: 1rem;
    max-width: 400px;
}

.notification {
    background: rgba(0, 0, 0, 0.9);
    border: 1px solid rgba(255, 255, 255, 0.2);
    border-radius: 12px;
    padding: 1rem 1.5rem;
    color: white;
    backdrop-filter: blur(20px);
    box-shadow: 0 10px 25px rgba(0, 0, 0, 0.3);
    transform: translateX(100%);
    animation: slideInNotification 0.3s ease-out forwards;
    position: relative;
    overflow: hidden;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 1rem;
}

/* Notification without close button */
.notification:not(:has(.notification-close)) {
    padding: 1rem 1.5rem;
    justify-content: center;
}

.notification-content {
    flex: 1;
}

.notification-close {
    background: none;
    border: none;
    color: rgba(255, 255, 255, 0.7);
    font-size: 1.2rem;
    cursor: pointer;
    padding: 0.25rem;
    border-radius: 4px;
    transition: all 0.3s ease;
    flex-shrink: 0;
}

.notification-close:hover {
    color: white;
    background: rgba(255, 255, 255, 0.1);
}

.notification.success {
    border-color: rgba(34, 197, 94, 0.5);
    background: rgba(34, 197, 94, 0.1);
}

.notification.error {
    border-color: rgba(239, 68, 68, 0.5);
    background: rgba(239, 68, 68, 0.1);
}

.notification.warning {
    border-color: rgba(245, 158, 11, 0.5);
    background: rgba(245, 158, 11, 0.1);
}

.notification.info {
    border-color: rgba(99, 102, 241, 0.5);
    background: rgba(99, 102, 241, 0.1);
}

.notification::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 4px;
    height: 100%;
    background: currentColor;
}

.notification.success::before { background: #22c55e; }
.notification.error::before { background: #ef4444; }
.notification.warning::before { background: #f59e0b; }
.notification.info::before { background: #6366f1; }

@keyframes slideInNotification {
    from { transform: translateX(100%); opacity: 0; }
    to { transform: translateX(0); opacity: 1; }
}

@keyframes slideOutNotification {
    from { transform: translateX(0); opacity: 1; }
    to { transform: translateX(100%); opacity: 0; }
}

/* Enhanced Modal Styles */
.professional-modal {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.8);
    backdrop-filter: blur(15px);
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 10000;
    animation: fadeIn 0.3s ease-out;
}

.modal-content-pro {
    background: rgba(20, 20, 20, 0.95);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 20px;
    padding: 2rem;
    width: 90%;
    max-width: 600px;
    max-height: 80vh;
    overflow-y: auto;
    animation: slideUpModal 0.4s cubic-bezier(0.2, 0.8, 0.2, 1);
    backdrop-filter: blur(20px);
    box-shadow: 0 25px 50px rgba(0, 0, 0, 0.5);
}

.modal-header-pro {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 2rem;
    padding-bottom: 1rem;
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
}

.modal-header-pro h3 {
    margin: 0;
    font-size: 1.5rem;
    font-weight: 700;
    color: white;
}

.close-btn-pro {
    background: none;
    border: none;
    color: rgba(255, 255, 255, 0.7);
    font-size: 2rem;
    cursor: pointer;
    transition: all 0.3s ease;
    width: 40px;
    height: 40px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
}

.close-btn-pro:hover {
    color: white;
    background: rgba(255, 255, 255, 0.1);
    transform: scale(1.1);
}

.download-preview-pro {
    margin-bottom: 2rem;
    border-radius: 12px;
    overflow: hidden;
    border: 1px solid rgba(255, 255, 255, 0.1);
}

.download-preview-pro canvas {
    width: 100%;
    height: auto;
    display: block;
}

.download-options-pro {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(120px, 1fr));
    gap: 1rem;
}

.download-option-pro {
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid rgba(255, 255, 255, 0.1);
    color: white;
    padding: 1.5rem 1rem;
    border-radius: 12px;
    cursor: pointer;
    transition: all 0.3s ease;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    text-align: center;
    min-height: 100px;
    position: relative;
    overflow: hidden;
}

.download-option-pro::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.1), transparent);
    transition: left 0.6s ease;
}

.download-option-pro:hover::before {
    left: 100%;
}

.download-option-pro:hover {
    background: rgba(255, 255, 255, 0.1);
    border-color: rgba(255, 255, 255, 0.3);
    transform: translateY(-5px);
    box-shadow: 0 15px 30px rgba(0, 0, 0, 0.3);
}

.option-icon-pro {
    font-size: 2.5rem;
    margin-bottom: 0.5rem;
    display: block;
}

.option-text-pro {
    font-size: 1rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

@keyframes fadeIn {
    from { opacity: 0; }
    to { opacity: 1; }
}

@keyframes slideUpModal {
    from { 
        transform: translateY(30px) scale(0.95); 
        opacity: 0; 
    }
    to { 
        transform: translateY(0) scale(1); 
        opacity: 1; 
    }
}

@keyframes fadeOut {
    from { opacity: 1; }
    to { opacity: 0; }
}

/* Progress Indicators */
.progress-ring {
    width: 60px;
    height: 60px;
    transform: rotate(-90deg);
}

.progress-ring-circle {
    fill: none;
    stroke: rgba(255, 255, 255, 0.2);
    stroke-width: 4;
    stroke-linecap: round;
    stroke-dasharray: 188.5;
    stroke-dashoffset: 188.5;
    transition: stroke-dashoffset 0.3s ease;
}

.progress-ring-progress {
    stroke: #6366f1;
    stroke-dashoffset: calc(188.5 - (188.5 * var(--progress)) / 100);
}

/* Accessibility Improvements */
.sr-only {
    position: absolute;
    width: 1px;
    height: 1px;
    padding: 0;
    margin: -1px;
    overflow: hidden;
    clip: rect(0, 0, 0, 0);
    white-space: nowrap;
    border: 0;
}

/* Focus styles for keyboard navigation */
.pro-control-btn:focus,
.download-option-pro:focus,
.palette-card:focus {
    outline: 2px solid #6366f1;
    outline-offset: 2px;
}

/* High contrast mode support */
@media (prefers-contrast: high) {
    .palette-card {
        border: 2px solid white;
    }
    
    .pro-control-btn {
        border: 2px solid white;
    }
}

/* Reduced motion support */
@media (prefers-reduced-motion: reduce) {
    * {
        animation-duration: 0.01ms !important;
        animation-iteration-count: 1 !important;
        transition-duration: 0.01ms !important;
    }
    
    .gradient-canvas {
        animation: none !important;
    }
}

/* Enhanced Mobile Optimizations */

/* Mobile Navigation */
@media (max-width: 768px) {
    .nav-container {
        padding: 0.5rem 1rem;
    }
    
    .brand-text {
        font-size: 1.8rem;
        margin-left: 0.5rem;
        transform: scale(1);
    }
    
    .brand-icon {
        width: 28px;
        height: 28px;
    }
    
    .nav-actions {
        gap: 0.5rem;
    }
}

/* Mobile Hero Section - Clean & Balanced Layout */
@media (max-width: 768px) {
    .hero-section {
        padding: 80px 0 40px;
        min-height: 100vh;
        height: auto;
        max-height: none;
        display: flex;
        align-items: flex-start;
        justify-content: center;
        overflow: visible;
        scroll-snap-align: start;
    }
    
    .hero-container {
        display: grid;
        grid-template-areas: 
            "title"
            "visual"
            "content";
        gap: 1.5rem;
        text-align: center;
        align-items: center;
        justify-items: center;
        width: 100%;
        max-width: 100%;
        padding: 0 1.5rem;
    }
    
    /* 1. Hero Title - Perfectly Sized */
    .hero-title {
        grid-area: title;
        font-size: 2.2rem;
        line-height: 1.1;
        margin: -1rem 0 0 0;
        width: 100%;
        max-width: 500px;
        font-weight: 700;
    }
    
    /* 2. Visual Cards - Proportional Scaling */
    .hero-visual {
        grid-area: visual;
        margin: 0;
        transform: scale(0.75);
        width: 100%;
        display: flex;
        justify-content: center;
        max-width: 400px;
    }
    
    .hero-card-stack {
        justify-content: center;
        align-items: center;
    }
    
    /* 3. Content Container - Clean Spacing */
    .hero-content {
        grid-area: content;
        display: flex;
        flex-direction: column;
        align-items: center;
        width: 100%;
        max-width: 500px;
        gap: 1.5rem;
    }
    
    /* Subtitle - Balanced Typography */
    .hero-subtitle {
        font-size: 1rem;
        line-height: 1.5;
        margin: 0;
        max-width: 100%;
        opacity: 0.9;
    }
    
    /* Stats - Clean Grid Layout */
    .hero-stats {
        display: grid;
        grid-template-columns: repeat(3, 1fr);
        gap: 0.5rem;
        width: 100%;
        max-width: 280px;
        margin: 0 auto;
        padding: 0.5rem 0.75rem;
        border-radius: 8px;
    }
    
    .stat-number {
        font-size: 0.8rem;
    }
    
    .stat-label {
        font-size: 0.5rem;
    }
    
    .stat-item {
        display: flex;
        flex-direction: column;
        align-items: center;
        gap: 0.25rem;
    }
    
    
    .stat-divider {
        display: none;
    }
    
    /* CTA Button - Perfect Proportions */
    .hero-actions {
        width: 100%;
        display: flex;
        justify-content: center;
        margin: 0;
    }
    
    .hero-primary {
        width: 100%;
        max-width: 260px;
        padding: 0.75rem 1.75rem;
        font-size: 0.9rem;
        font-weight: 600;
        min-height: 44px;
        border-radius: 10px;
    }
    
    .hero-actions {
        scroll-snap-align: end;
        scroll-margin-bottom: 2rem;
    }
}

/* Tablet Optimization - Medium Screens */
@media (max-width: 1024px) and (min-width: 769px) {
    .hero-section {
        padding: 90px 0 50px;
    }
    
    .hero-container {
        padding: 0 2rem;
        max-width: 800px;
        margin: 0 auto;
    }
    
    .hero-title {
        font-size: 2.8rem;
        line-height: 1.15;
    }
    
    .hero-subtitle {
        font-size: 1.15rem;
        max-width: 85%;
    }
    
    .hero-visual {
        transform: scale(0.9);
    }
    
    .hero-stats {
        gap: 1.5rem;
        max-width: 400px;
    }
    
    .hero-primary {
        max-width: 300px;
        padding: 1rem 2.25rem;
        font-size: 1.05rem;
    }
    
    /* Tablet color code optimization */
    .color-info {
        padding: 0.4rem 0.8rem;
        font-size: 0.8rem;
        border-radius: 9px;
    }
}

/* Mobile Palette Grid */
@media (max-width: 768px) {
    .palettes-grid {
        grid-template-columns: 1fr;
        gap: 1rem;
        padding: 0 1rem;
    }
    
    .palette-card {
        margin-bottom: 1rem;
    }
    
    .palette-colors {
        height: 120px;
        gap: 0.5rem;
    }
    
    .color-swatch {
        min-height: 120px;
    }
    
    /* Optimize color code display for mobile */
    .color-info {
        padding: 0.375rem 0.75rem;
        font-size: 0.75rem;
        border-radius: 8px;
        min-width: auto;
        text-align: center;
    }
    
    /* Professional section mobile optimization */
    .pro-section-title {
        font-size: 2.2rem;
    }
    
    .pro-subtitle {
        font-size: 1rem;
    }
    
    .pro-filter-grid {
        grid-template-columns: 1fr;
        gap: 0.75rem;
    }
    
    .pro-action-btn {
        padding: 0.75rem 1rem;
        font-size: 0.8rem;
        gap: 0.5rem;
        border-radius: 8px;
        min-width: 100px;
        flex: 1;
    }
    
    .pro-action-btn span {
        white-space: nowrap;
        overflow: visible;
        text-overflow: unset;
        font-size: 0.8rem;
    }
    
    .pro-category-filter {
        padding: 0.75rem 1rem;
        font-size: 0.65rem;
        border-radius: 8px;
        min-width: 120px;
        width: 100% !important;
        background-size: 0.8rem;
        padding-right: 2.5rem;
        box-sizing: border-box;
    }
    
    .pro-filter-container {
        width: 100%;
        min-width: 120px;
    }
    
    /* Make the action buttons container flex properly */
    .pro-filter-grid > div:last-child {
        display: flex;
        gap: 0.75rem;
        width: 100%;
        flex-wrap: wrap;
    }
    
    /* Ensure buttons take equal space */
    .pro-filter-grid .pro-action-btn {
        flex: 1 1 auto;
        text-align: center;
    }
    
    .palette-info {
        padding: 1rem;
    }
    
    .palette-name {
        font-size: 1.1rem;
    }
    
    .palette-actions {
        gap: 0.5rem;
    }
    
    .palette-btn {
        padding: 0.6rem 1rem;
        font-size: 0.9rem;
    }
    
    /* Keep beautiful hover effects on mobile - just optimize them */
    .palette-card:hover,
    .palette-card.scroll-hover {
        transform: translateY(-8px) scale(1.02);
        box-shadow: 0 20px 60px rgba(0, 0, 0, 0.4), 0 0 40px rgba(99, 102, 241, 0.25);
        border-color: rgba(99, 102, 241, 0.3);
    }
    
    .palette-card:hover .color-swatch,
    .palette-card.scroll-hover .color-swatch {
        transform: scale(1.01);
    }
    
    .palette-card:hover .color-swatch::before,
    .palette-card.scroll-hover .color-swatch::before {
        left: 100%;
    }
    
    .palette-card:hover .palette-name,
    .palette-card.scroll-hover .palette-name {
        opacity: 1;
        transform: translateY(0);
    }
    
    .palette-card:hover .palette-category,
    .palette-card.scroll-hover .palette-category {
        opacity: 1;
        transform: translateY(0);
    }
    
    .palette-card:hover .wave-effect,
    .palette-card.scroll-hover .wave-effect {
        left: 100%;
    }
    
    .palette-card:hover .favorite-btn,
    .palette-card.scroll-hover .favorite-btn {
        opacity: 1;
    }
}

/* Mobile Controls */
@media (max-width: 768px) {
    .controls-bar {
        flex-direction: column;
        gap: 1rem;
        padding: 1rem;
        position: sticky;
        top: 80px;
        z-index: 100;
    }
    
    .search-container {
        width: 100%;
        max-width: none;
    }
    
    .search-input {
        font-size: 16px; /* Prevents zoom on iOS */
        padding: 0.8rem 1rem;
    }
    
    .filter-buttons {
        flex-wrap: wrap;
        justify-content: center;
        gap: 0.5rem;
    }
    
    .filter-btn {
        padding: 0.6rem 1rem;
        font-size: 0.85rem;
        min-width: auto;
    }
}

/* Mobile Modals */
@media (max-width: 768px) {
    .modal-content {
        width: 95vw;
        max-width: none;
        margin: 1rem;
        max-height: 90vh;
        overflow-y: auto;
    }
    
    .modal-header {
        padding: 1rem;
        position: sticky;
        top: 0;
        background: rgba(255, 255, 255, 0.95);
        backdrop-filter: blur(10px);
        z-index: 10;
    }
    
    .modal-body {
        padding: 1rem;
    }
    
    .close-modal {
        width: 40px;
        height: 40px;
        font-size: 1.5rem;
    }
}

/* Mobile Toast Notifications */
@media (max-width: 768px) {
    .notification-container {
        top: 1rem;
        right: 1rem;
        left: 1rem;
    }
    
    .notification {
        max-width: none !important;
        width: 100% !important;
        transform: translateY(-100%) !important;
        right: 0 !important;
        left: 0 !important;
    }
    
    .notification.show {
        transform: translateY(0) !important;
    }
}

/* Small Mobile - Ultra Clean & Compact */
@media (max-width: 480px) {
    .brand-text {
        font-size: 1.4rem;
    }
    
    .hero-section {
        padding: 70px 0 30px;
        min-height: 100vh;
        height: auto;
        max-height: none;
        overflow: visible;
        scroll-snap-align: start;
    }
    
    .hero-container {
        grid-template-areas: 
            "title"
            "visual"
            "content";
        gap: 1.25rem;
        padding: 0 1.25rem;
    }
    
    /* Compact Title */
    .hero-title {
        grid-area: title;
        font-size: 1.8rem;
        line-height: 1.1;
        max-width: 100%;
        margin: -1.5rem 0 0 0;
    }
    
    /* Smaller Visual Cards */
    .hero-visual {
        grid-area: visual;
        transform: scale(0.65);
        margin: 0;
        max-width: 300px;
    }
    
    /* Compact Content */
    .hero-content {
        grid-area: content;
        gap: 0.8rem;
        max-width: 100%;
    }
    
    /* Smaller Subtitle */
    .hero-subtitle {
        font-size: 0.9rem;
        line-height: 1.4;
        margin: 0;
    }
    
    /* Vertical Stats for Small Screens */
    .hero-stats {
        display: flex;
        flex-direction: column;
        gap: 0.4rem;
        width: 100%;
        max-width: 160px;
        margin: 0 auto;
        padding: 0.4rem 0.6rem;
        border-radius: 6px;
    }
    
    .stat-item {
        gap: 0.1rem;
    }
    
    .stat-number {
        font-size: 0.7rem;
    }
    
    .stat-label {
        font-size: 0.45rem;
    }
    
    /* Compact Button */
    .hero-primary {
        max-width: 240px;
        padding: 0.6rem 1.5rem;
        font-size: 0.8rem;
        min-height: 40px;
        border-radius: 8px;
        margin-top: 0.5rem;
    }
    
    /* Small Mobile Palette Optimizations */
    .palette-colors {
        height: 100px;
        gap: 0.375rem;
    }
    
    .color-swatch {
        min-height: 100px;
    }
    
    /* Ultra compact color codes for small screens */
    .color-info {
        padding: 0.25rem 0.5rem;
        font-size: 0.7rem;
        border-radius: 6px;
        min-width: auto;
        max-width: 70px;
        overflow: hidden;
        text-overflow: ellipsis;
        white-space: nowrap;
    }
    
    /* Professional section small mobile */
    .pro-section-title {
        font-size: 1.8rem;
    }
    
    .pro-subtitle {
        font-size: 0.9rem;
    }
    
    .pro-search-input {
        padding: 0.75rem 0.75rem 0.75rem 3rem;
        font-size: 0.9rem;
    }
    
    .pro-category-filter {
        padding: 0.65rem 0.8rem;
        font-size: 0.6rem;
        border-radius: 6px;
        background-size: 0.7rem;
        padding-right: 2.2rem;
        min-width: 110px;
        width: 100% !important;
        box-sizing: border-box;
    }
    
    .pro-filter-container {
        width: 100%;
        min-width: 110px;
    }
    
    .pro-action-btn {
        padding: 0.65rem 0.8rem;
        font-size: 0.7rem;
        gap: 0.3rem;
        border-radius: 6px;
        min-height: 40px;
        min-width: 90px;
        flex: 1;
    }
    
    .pro-action-btn span {
        font-size: 0.7rem;
        white-space: nowrap;
        overflow: visible;
        text-overflow: unset;
    }
    
    .pro-action-btn .btn-icon {
        width: 12px;
        height: 12px;
        flex-shrink: 0;
    }
    
    .pro-action-btn .btn-icon svg {
        width: 12px;
        height: 12px;
    }
    
    .pro-category-filter {
        padding: 0.4rem 0.6rem;
        font-size: 0.6rem;
        border-radius: 4px;
        min-height: 36px;
        max-width: 100px;
    }
    
    .hero-actions {
        scroll-snap-align: end;
        scroll-margin-bottom: 1.5rem;
    }
    
    .modal-content {
        width: 98vw;
        margin: 0.5rem;
    }
    
    .filter-btn {
        padding: 0.5rem 0.8rem;
        font-size: 0.8rem;
    }
}

/* Professional Color Mood Section */
.pro-header {
    text-align: center;
    margin-bottom: 3rem;
    position: relative;
}

.pro-title-container {
    position: relative;
    display: inline-block;
}

.pro-section-title {
    font-family: 'Outfit', sans-serif;
    font-size: 3rem;
    font-weight: 800;
    line-height: 1.1;
    margin: 0;
    position: relative;
    z-index: 2;
}

.title-gradient {
    background: linear-gradient(135deg, #6366f1, #8b5cf6, #06b6d4);
    background-size: 300% 300%;
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    animation: titleColorShift 4s ease-in-out infinite;
}

.title-accent {
    background: linear-gradient(135deg, #f59e0b, #ef4444, #ec4899);
    background-size: 200% 200%;
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    animation: accentGlow 3s ease-in-out infinite alternate;
    text-shadow: 0 0 40px rgba(245, 158, 11, 0.5);
}

.title-glow {
    position: absolute;
    top: -20px;
    left: -20px;
    right: -20px;
    bottom: -20px;
    background: radial-gradient(circle, rgba(99, 102, 241, 0.2) 0%, transparent 70%);
    border-radius: 50%;
    animation: titlePulse 6s ease-in-out infinite;
    z-index: 1;
    filter: blur(30px);
}

.pro-subtitle {
    font-family: 'Inter', sans-serif;
    font-size: 1.1rem;
    color: rgba(255, 255, 255, 0.7);
    margin-top: 1rem;
    font-weight: 400;
}

/* Professional Controls */
.pro-controls {
    display: flex;
    flex-direction: column;
    gap: 2rem;
    margin-bottom: 3rem;
}

.pro-search-container {
    display: flex;
    justify-content: center;
}

.search-wrapper {
    position: relative;
    width: 100%;
    max-width: 500px;
}

.pro-search-input {
    width: 100%;
    padding: 1rem 1rem 1rem 3.5rem;
    background: rgba(255, 255, 255, 0.1);
    border: 1px solid rgba(255, 255, 255, 0.2);
    border-radius: 16px;
    color: white;
    font-size: 1rem;
    font-family: 'Inter', sans-serif;
    backdrop-filter: blur(20px);
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

.pro-search-input:focus {
    outline: none;
    border-color: rgba(99, 102, 241, 0.5);
    box-shadow: 0 0 30px rgba(99, 102, 241, 0.3);
    background: rgba(255, 255, 255, 0.15);
}

.search-icon-pro {
    position: absolute;
    left: 1rem;
    top: 50%;
    transform: translateY(-50%);
    color: rgba(255, 255, 255, 0.6);
    z-index: 2;
}

.search-glow {
    position: absolute;
    top: -2px;
    left: -2px;
    right: -2px;
    bottom: -2px;
    background: linear-gradient(45deg, rgba(99, 102, 241, 0.3), rgba(139, 92, 246, 0.3));
    border-radius: 18px;
    opacity: 0;
    transition: opacity 0.3s ease;
    z-index: -1;
}

.pro-search-input:focus + .search-glow {
    opacity: 1;
}

/* Professional Filter Grid */
.pro-filter-grid {
    display: grid;
    grid-template-columns: 2fr 1fr 1fr;
    gap: 1rem;
    align-items: center;
}

.pro-filter-container {
    position: relative;
}

.pro-category-filter {
    width: 100%;
    min-width: 140px;
    padding: 1rem 1.5rem;
    background: rgba(255, 255, 255, 0.1);
    border: 1px solid rgba(255, 255, 255, 0.2);
    border-radius: 12px;
    color: white;
    font-size: 0.8rem;
    font-family: 'Inter', sans-serif;
    font-weight: 500;
    backdrop-filter: blur(20px);
    cursor: pointer;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    appearance: none;
    background-image: url("data:image/svg+xml,%3csvg xmlns='http://www.w3.org/2000/svg' fill='none' viewBox='0 0 20 20'%3e%3cpath stroke='%23ffffff' stroke-linecap='round' stroke-linejoin='round' stroke-width='1.5' d='M6 8l4 4 4-4'/%3e%3c/svg%3e");
    background-position: right 1rem center;
    background-repeat: no-repeat;
    background-size: 1rem;
    padding-right: 3rem;
    white-space: nowrap;
}

.pro-category-filter option {
    background: rgba(30, 30, 30, 0.95);
    color: white;
    padding: 0.75rem 1rem;
    font-family: 'Inter', sans-serif;
    font-weight: 500;
    border: none;
}

.pro-category-filter option:hover {
    background: rgba(99, 102, 241, 0.2);
}

.pro-category-filter option[value="all"] {
    font-weight: 600;
    color: #6366f1;
}

.pro-category-filter option[value="calm"] {
    color: #06b6d4;
}

.pro-category-filter option[value="luxury"] {
    color: #8b5cf6;
}

.pro-category-filter option[value="energy"] {
    color: #f59e0b;
}

.pro-category-filter option[value="dream"] {
    color: #ec4899;
}

.pro-category-filter option[value="nature"] {
    color: #10b981;
}

.pro-category-filter option[value="neon"] {
    color: #06b6d4;
}

.pro-category-filter option[value="retro"] {
    color: #f97316;
}

.pro-category-filter option[value="minimal"] {
    color: #9ca3af;
}

.pro-category-filter:focus {
    outline: none;
    border-color: rgba(99, 102, 241, 0.5);
    box-shadow: 0 0 25px rgba(99, 102, 241, 0.2);
}

.filter-glow {
    position: absolute;
    top: -2px;
    left: -2px;
    right: -2px;
    bottom: -2px;
    background: linear-gradient(45deg, rgba(6, 182, 212, 0.3), rgba(16, 185, 129, 0.3));
    border-radius: 14px;
    opacity: 0;
    transition: opacity 0.3s ease;
    z-index: -1;
}

.pro-category-filter:focus + .filter-glow {
    opacity: 1;
}

/* Professional Action Buttons */
.pro-action-btn {
    position: relative;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
    padding: 1rem 1.5rem;
    background: rgba(255, 255, 255, 0.1);
    border: 1px solid rgba(255, 255, 255, 0.2);
    border-radius: 12px;
    color: white;
    font-size: 0.9rem;
    font-weight: 600;
    font-family: 'Inter', sans-serif;
    backdrop-filter: blur(20px);
    cursor: pointer;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    overflow: visible;
}

.surprise-btn {
    background: linear-gradient(135deg, rgba(245, 158, 11, 0.2), rgba(239, 68, 68, 0.2));
    border-color: rgba(245, 158, 11, 0.3);
}

.surprise-btn:hover {
    transform: translateY(-2px) scale(1.02);
    box-shadow: 0 10px 30px rgba(245, 158, 11, 0.3);
    border-color: rgba(245, 158, 11, 0.5);
}

.favorites-btn {
    background: linear-gradient(135deg, rgba(236, 72, 153, 0.2), rgba(239, 68, 68, 0.2));
    border-color: rgba(236, 72, 153, 0.3);
}

.favorites-btn:hover {
    transform: translateY(-2px) scale(1.02);
    box-shadow: 0 10px 30px rgba(236, 72, 153, 0.3);
    border-color: rgba(236, 72, 153, 0.5);
}

.btn-icon {
    display: flex;
    align-items: center;
    justify-content: center;
}

.btn-particles {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    pointer-events: none;
}

.btn-particles .particle {
    position: absolute;
    width: 3px;
    height: 3px;
    background: rgba(255, 255, 255, 0.6);
    border-radius: 50%;
    opacity: 0;
    animation: btnParticleFloat 3s linear infinite;
}

.btn-particles .particle:nth-child(1) {
    left: 20%;
    animation-delay: 0s;
}

.btn-particles .particle:nth-child(2) {
    left: 50%;
    animation-delay: 1s;
}

.btn-particles .particle:nth-child(3) {
    left: 80%;
    animation-delay: 2s;
}

.favorites-count {
    position: absolute;
    top: -10px;
    right: -10px;
    background: linear-gradient(135deg, #ef4444, #ec4899);
    color: white;
    font-size: 0.75rem;
    font-weight: 700;
    padding: 0.3rem 0.6rem;
    border-radius: 12px;
    min-width: 22px;
    text-align: center;
    box-shadow: 0 4px 12px rgba(239, 68, 68, 0.4);
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    opacity: 1;
    z-index: 100;
    border: 2px solid rgba(255, 255, 255, 0.2);
}

/* Always show favorites counter for better UX */

.favorites-count.animate {
    animation: favoritePulse 0.4s ease-out;
}

@keyframes favoritePulse {
    0% { 
        transform: scale(1);
        box-shadow: 0 4px 12px rgba(239, 68, 68, 0.4);
    }
    50% { 
        transform: scale(1.3);
        box-shadow: 0 6px 20px rgba(239, 68, 68, 0.6);
    }
    100% { 
        transform: scale(1);
        box-shadow: 0 4px 12px rgba(239, 68, 68, 0.4);
    }
}

/* Animations */
@keyframes titleColorShift {
    0%, 100% { background-position: 0% 50%; }
    50% { background-position: 100% 50%; }
}

@keyframes accentGlow {
    0% { 
        background-position: 0% 50%;
        filter: brightness(1);
    }
    100% { 
        background-position: 100% 50%;
        filter: brightness(1.2);
    }
}

@keyframes titlePulse {
    0%, 100% { 
        transform: scale(1);
        opacity: 0.2;
    }
    50% { 
        transform: scale(1.1);
        opacity: 0.4;
    }
}

@keyframes btnParticleFloat {
    0% {
        opacity: 0;
        transform: translateY(0px) scale(0.5);
    }
    20% {
        opacity: 1;
        transform: translateY(-10px) scale(1);
    }
    80% {
        opacity: 1;
        transform: translateY(-20px) scale(1);
    }
    100% {
        opacity: 0;
        transform: translateY(-30px) scale(0.5);
    }
}

/* Navigation Styling */
.nav-links {
    display: flex;
    align-items: center;
    gap: 2rem;
}

.nav-actions {
    display: flex;
    align-items: center;
    gap: 1.5rem;
}

.nav-link {
    color: var(--text-primary);
    text-decoration: none;
    font-weight: 500;
    font-size: 1rem;
    transition: all 0.3s ease;
    padding: 0.5rem 1rem;
    border-radius: 8px;
}

.nav-link:hover {
    color: var(--primary);
    background: rgba(99, 102, 241, 0.1);
}

/* Mobile Menu Toggle Button */
.mobile-menu-toggle {
    display: none;
    flex-direction: column;
    justify-content: space-around;
    width: 30px;
    height: 30px;
    background: transparent;
    border: none;
    cursor: pointer;
    padding: 0;
    z-index: 1001;
}

.mobile-menu-toggle span {
    width: 100%;
    height: 3px;
    background: var(--text-primary);
    border-radius: 2px;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    transform-origin: center;
}

.mobile-menu-toggle.active span:nth-child(1) {
    transform: rotate(45deg) translate(7px, 7px);
}

.mobile-menu-toggle.active span:nth-child(2) {
    opacity: 0;
    transform: translateX(20px);
}

.mobile-menu-toggle.active span:nth-child(3) {
    transform: rotate(-45deg) translate(7px, -7px);
}

@media (max-width: 768px) {
    .mobile-menu-toggle {
        display: flex;
    }
}

/* Mobile Menu */
.mobile-menu {
    position: fixed;
    top: 70px;
    left: 0;
    right: 0;
    background: rgba(255, 255, 255, 0.95);
    backdrop-filter: blur(20px);
    border-top: 1px solid rgba(0, 0, 0, 0.1);
    transform: translateY(-100%);
    opacity: 0;
    visibility: hidden;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    z-index: 1000;
}

.mobile-menu.active {
    transform: translateY(0);
    opacity: 1;
    visibility: visible;
}

.mobile-menu-content {
    padding: 2rem;
    max-width: 1200px;
    margin: 0 auto;
}

.mobile-nav-link {
    display: block;
    color: var(--text-primary);
    text-decoration: none;
    font-weight: 500;
    font-size: 1.1rem;
    padding: 1rem 0;
    border-bottom: 1px solid rgba(0, 0, 0, 0.1);
    transition: all 0.3s ease;
}

.mobile-nav-link:hover {
    color: var(--primary);
    padding-left: 1rem;
}

.mobile-nav-link:last-child {
    border-bottom: none;
}

/* About Section - Professional Design */
#about {
    position: relative;
    background: linear-gradient(135deg, 
        rgba(15, 23, 42, 0.95) 0%, 
        rgba(30, 41, 59, 0.95) 25%, 
        rgba(51, 65, 85, 0.95) 50%, 
        rgba(30, 41, 59, 0.95) 75%, 
        rgba(15, 23, 42, 0.95) 100%);
    backdrop-filter: blur(20px);
    padding-top: 70px;
    transform: translateZ(0);
    backface-visibility: hidden;
    contain: layout style paint;
}

#about::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: 
        radial-gradient(circle at 20% 30%, rgba(99, 102, 241, 0.1) 0%, transparent 50%),
        radial-gradient(circle at 80% 70%, rgba(139, 92, 246, 0.1) 0%, transparent 50%),
        radial-gradient(circle at 50% 50%, rgba(6, 182, 212, 0.05) 0%, transparent 50%);
    z-index: 1;
    pointer-events: none;
    will-change: auto;
}

.about-content {
    position: relative;
    z-index: 2;
    max-width: 1400px;
    margin: 0 auto;
    padding: 2rem 2rem 5rem;
    color: white;
    opacity: 1;
    transition: opacity 0.3s ease-in-out;
}

.about-hero {
    text-align: center;
    margin-bottom: 6rem;
    padding: 3rem 0;
    position: relative;
}

.about-hero::after {
    content: '';
    position: absolute;
    bottom: -2rem;
    left: 50%;
    transform: translateX(-50%);
    width: 100px;
    height: 4px;
    background: linear-gradient(90deg, #6366f1, #8b5cf6, #06b6d4);
    border-radius: 2px;
    box-shadow: 0 4px 20px rgba(99, 102, 241, 0.4);
}

.about-title {
    font-family: 'Outfit', sans-serif;
    font-size: 4.5rem;
    font-weight: 900;
    line-height: 1.05;
    margin: 0 0 2rem 0;
    text-shadow: 0 8px 32px rgba(0, 0, 0, 0.4);
    position: relative;
}

.about-title::before {
    content: '';
    position: absolute;
    top: -20px;
    left: -20px;
    right: -20px;
    bottom: -20px;
    background: radial-gradient(circle, rgba(99, 102, 241, 0.15) 0%, transparent 70%);
    border-radius: 50%;
    filter: blur(40px);
    z-index: -1;
    animation: titlePulse 4s ease-in-out infinite;
}

.about-subtitle {
    font-size: 1.6rem;
    color: rgba(255, 255, 255, 0.95);
    margin: 0;
    font-weight: 300;
    letter-spacing: 1px;
    text-shadow: 0 4px 16px rgba(0, 0, 0, 0.2);
    max-width: 600px;
    margin: 0 auto;
    line-height: 1.4;
}

.about-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 2.5rem;
    margin-bottom: 6rem;
    padding: 0 1rem;
    max-width: 1200px;
    margin-left: auto;
    margin-right: auto;
}

.about-card {
    position: relative;
    background: linear-gradient(145deg, 
        rgba(255, 255, 255, 0.12) 0%, 
        rgba(255, 255, 255, 0.08) 100%);
    border: 1px solid rgba(255, 255, 255, 0.2);
    border-radius: 28px;
    padding: 3rem 2.5rem;
    text-align: center;
    backdrop-filter: blur(30px);
    transition: all 0.5s cubic-bezier(0.4, 0, 0.2, 1);
    box-shadow: 
        0 12px 40px rgba(0, 0, 0, 0.15),
        inset 0 1px 0 rgba(255, 255, 255, 0.2);
    overflow: hidden;
}

.about-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(145deg, 
        rgba(99, 102, 241, 0.05) 0%, 
        rgba(139, 92, 246, 0.05) 50%,
        rgba(6, 182, 212, 0.05) 100%);
    opacity: 0;
    transition: opacity 0.5s ease;
    z-index: 1;
}

.about-card:hover::before {
    opacity: 1;
}

.about-card:hover {
    transform: translateY(-12px) scale(1.03);
    border-color: rgba(99, 102, 241, 0.5);
    box-shadow: 
        0 30px 60px rgba(0, 0, 0, 0.3),
        0 0 40px rgba(99, 102, 241, 0.3),
        inset 0 1px 0 rgba(255, 255, 255, 0.3);
    background: linear-gradient(145deg, 
        rgba(255, 255, 255, 0.18) 0%, 
        rgba(255, 255, 255, 0.12) 100%);
}

.about-card > * {
    position: relative;
    z-index: 2;
}

.about-icon {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 90px;
    height: 90px;
    background: linear-gradient(135deg, 
        rgba(99, 102, 241, 0.3) 0%, 
        rgba(139, 92, 246, 0.3) 50%,
        rgba(6, 182, 212, 0.3) 100%);
    border-radius: 50%;
    margin-bottom: 2rem;
    color: #ffffff;
    box-shadow: 
        0 8px 25px rgba(99, 102, 241, 0.2),
        inset 0 1px 0 rgba(255, 255, 255, 0.2);
    transition: all 0.4s ease;
    position: relative;
}

.about-icon::before {
    content: '';
    position: absolute;
    inset: -2px;
    background: linear-gradient(135deg, #6366f1, #8b5cf6, #06b6d4);
    border-radius: 50%;
    z-index: -1;
    opacity: 0;
    transition: opacity 0.4s ease;
}

.about-card:hover .about-icon::before {
    opacity: 1;
}

.about-card:hover .about-icon {
    transform: scale(1.1) rotate(5deg);
    box-shadow: 
        0 12px 35px rgba(99, 102, 241, 0.4),
        inset 0 1px 0 rgba(255, 255, 255, 0.3);
}

.about-card h3 {
    font-size: 1.5rem;
    font-weight: 800;
    margin: 0 0 1.5rem 0;
    color: white;
    text-shadow: 0 4px 15px rgba(0, 0, 0, 0.3);
    letter-spacing: 0.5px;
    font-family: 'Outfit', sans-serif;
}

.about-card p {
    color: rgba(255, 255, 255, 0.92);
    line-height: 1.8;
    margin: 0;
    font-size: 1.05rem;
    font-weight: 400;
    text-shadow: 0 2px 8px rgba(0, 0, 0, 0.15);
    letter-spacing: 0.2px;
}

.about-mission {
    text-align: center;
    max-width: 1000px;
    margin: 4rem auto;
    padding: 4rem 3rem;
    position: relative;
    background: linear-gradient(145deg, 
        rgba(255, 255, 255, 0.12) 0%, 
        rgba(255, 255, 255, 0.06) 100%);
    border-radius: 40px;
    backdrop-filter: blur(30px);
    border: 1px solid rgba(255, 255, 255, 0.2);
    box-shadow: 
        0 20px 60px rgba(0, 0, 0, 0.2),
        inset 0 1px 0 rgba(255, 255, 255, 0.2);
    overflow: hidden;
}

.about-mission::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: 
        radial-gradient(circle at 30% 20%, rgba(99, 102, 241, 0.08) 0%, transparent 50%),
        radial-gradient(circle at 70% 80%, rgba(139, 92, 246, 0.08) 0%, transparent 50%);
    z-index: 1;
}

.about-mission > * {
    position: relative;
    z-index: 2;
}

.about-mission h2 {
    font-size: 3.5rem;
    font-weight: 900;
    margin: 0 0 3rem 0;
    background: linear-gradient(135deg, #6366f1, #8b5cf6, #06b6d4, #10b981);
    background-size: 300% 300%;
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    animation: titleColorShift 5s ease-in-out infinite;
    text-shadow: 0 8px 30px rgba(99, 102, 241, 0.4);
    font-family: 'Outfit', sans-serif;
    letter-spacing: -0.5px;
}

.about-mission p {
    font-size: 1.3rem;
    line-height: 2;
    color: rgba(255, 255, 255, 0.95);
    margin-bottom: 4rem;
    font-weight: 300;
    text-shadow: 0 4px 15px rgba(0, 0, 0, 0.2);
    letter-spacing: 0.3px;
    max-width: 800px;
    margin-left: auto;
    margin-right: auto;
    margin-bottom: 4rem;
}

.about-stats {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 3rem;
    margin-top: 5rem;
    padding: 0 1rem;
}

.stat {
    text-align: center;
    padding: 2.5rem 2rem;
    position: relative;
    background: linear-gradient(145deg, 
        rgba(255, 255, 255, 0.1) 0%, 
        rgba(255, 255, 255, 0.05) 100%);
    border-radius: 24px;
    backdrop-filter: blur(25px);
    border: 1px solid rgba(255, 255, 255, 0.15);
    transition: all 0.5s cubic-bezier(0.4, 0, 0.2, 1);
    box-shadow: 
        0 10px 30px rgba(0, 0, 0, 0.1),
        inset 0 1px 0 rgba(255, 255, 255, 0.2);
    overflow: hidden;
}

.stat::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(145deg, 
        rgba(245, 158, 11, 0.05) 0%, 
        rgba(239, 68, 68, 0.05) 50%,
        rgba(236, 72, 153, 0.05) 100%);
    opacity: 0;
    transition: opacity 0.5s ease;
    z-index: 1;
}

.stat:hover::before {
    opacity: 1;
}

.stat:hover {
    transform: translateY(-10px) scale(1.02);
    background: linear-gradient(145deg, 
        rgba(255, 255, 255, 0.15) 0%, 
        rgba(255, 255, 255, 0.08) 100%);
    box-shadow: 
        0 25px 50px rgba(0, 0, 0, 0.25),
        0 0 30px rgba(245, 158, 11, 0.2),
        inset 0 1px 0 rgba(255, 255, 255, 0.3);
    border-color: rgba(245, 158, 11, 0.3);
}

.stat > * {
    position: relative;
    z-index: 2;
}

.stat-number {
    display: block;
    font-size: 3.6rem;
    font-weight: 900;
    background: linear-gradient(135deg, #f59e0b, #ef4444, #ec4899, #8b5cf6);
    background-size: 300% 300%;
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    margin-bottom: 1rem;
    animation: titleColorShift 4s ease-in-out infinite;
    text-shadow: 0 8px 25px rgba(245, 158, 11, 0.4);
    font-family: 'Outfit', sans-serif;
    letter-spacing: -0.5px;
}

.stat-label {
    color: rgba(255, 255, 255, 0.95);
    font-size: 1.2rem;
    font-weight: 700;
    letter-spacing: 0.8px;
    text-shadow: 0 2px 10px rgba(0, 0, 0, 0.2);
    font-family: 'Outfit', sans-serif;
    text-transform: uppercase;
}

/* Mobile Responsiveness for About Section */
@media (max-width: 768px) {
    .nav-links {
        display: none;
    }
    
    /* Hide About link in main nav on mobile - only show in burger menu */
    .nav-actions .nav-link {
        display: none;
    }
    
    .about-content {
        padding: 2rem 1.5rem 4rem;
    }
    
    .back-arrow {
        top: 1rem;
        left: 1rem;
        padding: 0.6rem 0.8rem;
        border-radius: 10px;
        gap: 0.3rem;
        font-size: 0.9rem;
        z-index: 1001;
        background: rgba(0, 0, 0, 0.3);
        backdrop-filter: blur(15px);
    }
    
    .back-arrow span {
        font-size: 0.8rem;
    }
    
    .back-arrow svg {
        width: 20px;
        height: 20px;
    }
    
    .preview-back {
        top: 1rem;
        left: 1rem;
    }
    
    .about-hero {
        margin-bottom: 4rem;
        padding: 2rem 0;
    }
    
    .about-title {
        font-size: 3.2rem;
    }
    
    .about-subtitle {
        font-size: 1.3rem;
        max-width: 90%;
    }
    
    .about-grid {
        grid-template-columns: 1fr;
        gap: 2rem;
        margin-bottom: 4rem;
        padding: 0;
        max-width: 100%;
    }
    
    .about-card {
        padding: 2.5rem 2rem;
    }
    
    .about-icon {
        width: 80px;
        height: 80px;
    }
    
    .about-mission {
        padding: 3rem 2rem;
        margin: 3rem auto;
        border-radius: 32px;
    }
    
    .about-mission h2 {
        font-size: 2.8rem;
    }
    
    .about-mission p {
        font-size: 1.2rem;
        line-height: 1.8;
    }
    
    .about-stats {
        grid-template-columns: 1fr;
        gap: 2rem;
        margin-top: 3rem;
        padding: 0;
    }
    
    .stat {
        padding: 2rem 1.5rem;
    }
    
    .stat-number {
        font-size: 2.8rem;
    }
    
    .stat-label {
        font-size: 1.1rem;
    }
}

@media (max-width: 1024px) and (min-width: 769px) {
    .about-grid {
        grid-template-columns: 1fr;
        gap: 2.5rem;
        max-width: 600px;
    }
    
    .about-card {
        padding: 2.5rem 2rem;
    }
}

@media (max-width: 480px) {
    .about-title {
        font-size: 2rem;
    }
    
    .about-icon {
        width: 60px;
        height: 60px;
    }
    
    .about-icon svg {
        width: 32px;
        height: 32px;
    }
    
    .stat-number {
        font-size: 2.2rem;
    }
}

/* Scroll-based hover effects for mobile */
@media (max-width: 768px) {
    /* Disable default hover effects on mobile */
    .about-card:hover {
        transform: none;
        border-color: rgba(255, 255, 255, 0.2);
        box-shadow: 
            0 8px 32px rgba(0, 0, 0, 0.3),
            0 4px 16px rgba(0, 0, 0, 0.2);
        background: linear-gradient(145deg, 
            rgba(255, 255, 255, 0.12) 0%, 
            rgba(255, 255, 255, 0.08) 100%);
    }
    
    .about-card:hover::before {
        opacity: 0;
    }
    
    .about-card:hover .about-icon {
        transform: none;
        box-shadow: 
            0 8px 25px rgba(99, 102, 241, 0.25),
            inset 0 1px 0 rgba(255, 255, 255, 0.2);
    }
    
    .about-card:hover .about-icon::before {
        opacity: 0;
    }
    
    /* Apply hover effects when card is in view */
    .about-card.scroll-hover {
        transform: translateY(-8px) scale(1.02);
        border-color: rgba(99, 102, 241, 0.4);
        box-shadow: 
            0 15px 45px rgba(0, 0, 0, 0.4),
            0 8px 25px rgba(99, 102, 241, 0.2),
            inset 0 1px 0 rgba(255, 255, 255, 0.15);
        background: linear-gradient(145deg, 
            rgba(255, 255, 255, 0.15) 0%, 
            rgba(255, 255, 255, 0.1) 100%);
    }
    
    .about-card.scroll-hover::before {
        opacity: 1;
    }
    
    .about-card.scroll-hover .about-icon {
        transform: scale(1.08) rotate(3deg);
        box-shadow: 
            0 10px 30px rgba(99, 102, 241, 0.35),
            inset 0 1px 0 rgba(255, 255, 255, 0.25);
    }
    
    .about-card.scroll-hover .about-icon::before {
        opacity: 1;
    }
}

/* Ultra small screens - Maximum compactness */
@media (max-width: 360px) {
    .pro-filter-grid {
        gap: 0.5rem;
    }
    
    .pro-action-btn {
        padding: 0.5rem 0.6rem;
        font-size: 0.65rem;
        gap: 0.25rem;
        border-radius: 4px;
        min-height: 36px;
        min-width: 80px;
        flex: 1;
    }
    
    .pro-action-btn span {
        font-size: 0.65rem;
        white-space: nowrap;
        overflow: visible;
        text-overflow: unset;
    }
    
    .pro-action-btn .btn-icon {
        width: 10px;
        height: 10px;
    }
    
    .pro-action-btn .btn-icon svg {
        width: 10px;
        height: 10px;
    }
    
    .pro-category-filter {
        padding: 0.5rem 0.6rem;
        font-size: 0.55rem;
        border-radius: 4px;
        background-size: 0.6rem;
        padding-right: 2rem;
        min-height: 32px;
        min-width: 100px;
        width: 100% !important;
        box-sizing: border-box;
    }
    
    .pro-filter-container {
        width: 100%;
        min-width: 100px;
    }
}

/* Touch-friendly interactions - Disable ALL hover effects */
@media (hover: none) and (pointer: coarse) {
    .palette-btn, .hero-primary, .hero-secondary, .filter-btn {
        min-height: 44px; /* iOS recommended touch target */
    }
    
    .close-modal {
        min-width: 44px;
        min-height: 44px;
    }
    
    .color-swatch {
        cursor: default;
    }
    
    /* Keep beautiful hover effects on touch devices - optimized for touch */
    .palette-card:hover,
    .palette-card.scroll-hover {
        transform: translateY(-6px) scale(1.015);
        box-shadow: 0 15px 50px rgba(0, 0, 0, 0.35), 0 0 35px rgba(99, 102, 241, 0.2);
        border-color: rgba(99, 102, 241, 0.25);
    }
    
    .palette-card:hover .color-swatch,
    .palette-card.scroll-hover .color-swatch {
        transform: scale(1.005);
    }
    
    .palette-card:hover .color-swatch::before,
    .palette-card.scroll-hover .color-swatch::before {
        left: 100%;
    }
    
    .palette-card:hover .palette-name,
    .palette-card.scroll-hover .palette-name {
        opacity: 1;
        transform: translateY(0);
    }
    
    .palette-card:hover .palette-category,
    .palette-card.scroll-hover .palette-category {
        opacity: 1;
        transform: translateY(0);
    }
    
    .palette-card:hover .wave-effect,
    .palette-card.scroll-hover .wave-effect {
        left: 100%;
    }
    
    .palette-card:hover .favorite-btn,
    .palette-card.scroll-hover .favorite-btn {
        opacity: 1;
    }
    
    .palette-btn:hover {
        transform: translateY(-1px) scale(1.02);
    }
}
