:root {
    --primary: #7CA0B9;
    --primary-dark: #56A3D9;
    --secondary: #A9C7DA;
    --accent: #F6A53A;
    --warning: #CBA24A;
    --dark: #1C1C1C;
    --gray: #444F5A;
    --light-gray: #E6EEF3;
    --white: #F8F7F4;
    --gradient: linear-gradient(135deg, #7CA0B9 0%, #56A3D9 100%);
    --gradient-soft: linear-gradient(135deg, #A9C7DA 0%, #E6EEF3 100%);
    --gradient-ocean: linear-gradient(135deg, #56A3D9 0%, #A9C7DA 100%);
    --gradient-sunset: linear-gradient(135deg, #F6A53A 0%, #CBA24A 100%);
    --shadow-sm: 0 1px 3px rgba(0, 0, 0, 0.1);
    --shadow-md: 0 4px 6px rgba(0, 0, 0, 0.1);
    --shadow-lg: 0 10px 25px rgba(0, 0, 0, 0.1);
    --shadow-xl: 0 20px 40px rgba(0, 0, 0, 0.15);
    --radius: 12px;
    --radius-lg: 20px;
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: 'Encode Sans Condensed', -apple-system, BlinkMacSystemFont, sans-serif;
    color: var(--dark);
    line-height: 1.6;
    overflow-x: hidden;
    background: var(--white);
}

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

/* Navigation */
.navbar {
    position: fixed;
    top: 0;
    width: 100%;
    background: rgba(248, 247, 244, 0.98);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    z-index: 1000;
    padding: 1rem 0;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    border-bottom: 1px solid rgba(0, 0, 0, 0.05);
}

.navbar.scrolled {
    padding: 0.75rem 0;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.08);
}

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

.logo {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    font-size: 1.5rem;
    font-weight: 700;
    color: var(--dark);
    height: 32px;
}

.logo .logo-wordmark {
    height: 100px;
}

.logo-link,
.logo-link:hover,
.logo-link:visited,
.logo-link:active {
    text-decoration: none;
}

.logo-icon {
    width: 48px;
    height: auto;
    max-width: none;
    margin: 0 -8px;
    display: block;
    animation: pulse 2s cubic-bezier(0.4, 0, 0.6, 1) infinite;
}

@keyframes pulse {
    0%, 100% {
        opacity: 1;
    }
    50% {
        opacity: 0.7;
    }
}

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

.nav-links a {
    color: var(--gray);
    text-decoration: none;
    font-weight: 500;
    transition: color 0.3s;
}

.nav-links a:hover {
    color: var(--primary);
}

.cta-button {
    background: var(--primary);
    color: var(--white) !important;
    padding: 0.5rem 1.5rem;
    border-radius: var(--radius);
    transition: background 0.3s, transform 0.2s;
}

.cta-button:hover {
    background: var(--primary-dark);
    transform: translateY(-2px);
}

/* Mobile Menu */
.mobile-menu-btn {
    display: none;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    width: 30px;
    height: 30px;
    background: none;
    border: none;
    cursor: pointer;
    z-index: 1001;
}

.mobile-menu-btn span {
    display: block;
    width: 25px;
    height: 2px;
    background: var(--dark);
    margin: 3px 0;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

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

.mobile-menu-btn.active span:nth-child(2) {
    opacity: 0;
}

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

/* Hero Section */
.hero {
    padding: 140px 0 100px;
    background: linear-gradient(180deg, var(--white) 0%, var(--light-gray) 100%);
    position: relative;
    overflow: hidden;
}

.hero::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-image: url('assets/hero.jpg');
    background-size: cover;
    background-position: center;
    opacity: 0.5;
    animation: background-pan 60s linear infinite;
    z-index: 0;
}

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

/* Hero Two-Column Layout */
.hero-layout {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 4rem;
    align-items: center;
    position: relative;
    z-index: 1;
}

.hero-content {
    text-align: left;
    max-width: 600px;
    position: relative;
    z-index: 1;
}

.badge {
    display: inline-block;
    background: var(--gradient);
    color: var(--white);
    padding: 0.6rem 1.2rem;
    border-radius: 50px;
    font-size: 0.875rem;
    font-weight: 600;
    margin-bottom: 2rem;
    animation: float 3s ease-in-out infinite;
    box-shadow: 0 4px 15px rgba(124, 160, 185, 0.3);
    letter-spacing: 0.5px;
    text-transform: uppercase;
}

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

.hero-title {
    font-size: clamp(2.5rem, 5vw, 4.5rem);
    font-weight: 800;
    line-height: 1.1;
    margin-bottom: 1.5rem;
    letter-spacing: -1px;
}

.gradient-text {
    background: var(--gradient);
    background-size: 200% 200%;
    -webkit-background-clip: text;
    background-clip: text;
    -webkit-text-fill-color: transparent;
    animation: gradientShift 4s ease infinite;
}

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

.hero-subtitle {
    font-size: 1.25rem;
    color: var(--gray);
    max-width: 600px;
    margin: 0 auto 2rem;
    line-height: 1.7;
}

.hero-actions {
    display: flex;
    gap: 1rem;
    justify-content: center;
    margin-bottom: 3rem;
}

.primary-button {
    background: var(--gradient);
    color: var(--white);
    border: none;
    padding: 1rem 2rem;
    font-size: 1rem;
    font-weight: 600;
    border-radius: var(--radius);
    cursor: pointer;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    box-shadow: 0 4px 15px rgba(124, 160, 185, 0.3);
    position: relative;
    overflow: hidden;
    text-decoration: none;
}

.primary-button::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(135deg, #56A3D9 0%, #7CA0B9 100%);
    opacity: 0;
    transition: opacity 0.3s;
}

.primary-button:hover::before {
    opacity: 1;
}

.primary-button span {
    position: relative;
    z-index: 1;
}

.primary-button:hover {
    transform: translateY(-3px) scale(1.02);
    box-shadow: 0 8px 25px rgba(124, 160, 185, 0.4);
}

.primary-button.large {
    padding: 1.2rem 3rem;
    font-size: 1.1rem;
}

.secondary-button {
    background: var(--white);
    color: var(--primary);
    border: 2px solid var(--primary);
    padding: 1rem 2rem;
    font-size: 1rem;
    font-weight: 600;
    border-radius: var(--radius);
    cursor: pointer;
    transition: all 0.3s;
    text-decoration: none;
}

.secondary-button:hover {
    background: var(--primary);
    color: var(--white);
    transform: translateY(-2px);
}

.hero-stats {
    display: flex;
    justify-content: center;
    gap: 4rem;
    margin-top: 4rem;
    position: relative;
    z-index: 1;
}

.stat {
    text-align: center;
}

.stat-number {
    font-size: 2.5rem;
    font-weight: 800;
    background: var(--gradient);
    -webkit-background-clip: text;
    background-clip: text;
    -webkit-text-fill-color: transparent;
}

.stat-label {
    color: var(--gray);
    font-size: 0.9rem;
}

/* Hero Card Deck Animation */
.hero-cards {
    position: relative;
    height: 400px;
    display: flex;
    justify-content: center;
    align-items: center;
    perspective: 1200px;
}

.card-deck {
    position: relative;
    width: 280px;
    height: 360px;
    transform-style: preserve-3d;
}

.curiosity-hero-card {
    position: absolute;
    width: 100%;
    height: 100%;
    transform-style: preserve-3d;
    transition: transform 0.8s cubic-bezier(0.4, 0, 0.2, 1),
                opacity 0.4s ease,
                z-index 0s;
    cursor: pointer;
    will-change: transform, opacity;
}

.card-inner {
    position: relative;
    width: 100%;
    height: 100%;
}

.card-front,
.card-back {
    position: absolute;
    width: 100%;
    height: 100%;
    backface-visibility: hidden;
    border-radius: 20px;
    overflow: hidden;
    box-shadow: 0 15px 35px rgba(0, 0, 0, 0.15), 0 5px 15px rgba(0, 0, 0, 0.08);
}

.card-front {
    background: var(--dark);
    display: flex;
    flex-direction: column;
    justify-content: flex-end;
    border: 1px solid rgba(124, 160, 185, 0.15);
}

.card-image {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    z-index: 0;
}

.card-content-overlay {
    position: relative;
    z-index: 1;
    padding: 1.5rem;
    background: linear-gradient(to top, rgba(0, 0, 0, 0.85) 0%, rgba(0, 0, 0, 0.6) 60%, transparent 100%);
}

.card-back {
    background: var(--gradient);
    transform: rotateY(180deg);
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
}

.card-back .card-logo {
    font-size: 4rem;
    animation: pulse 2s ease-in-out infinite;
}

.card-back span {
    color: var(--white);
    font-size: 1.2rem;
    font-weight: 700;
    letter-spacing: 1px;
}

.card-category {
    font-size: 0.75rem;
    font-weight: 600;
    color: var(--secondary);
    text-transform: uppercase;
    letter-spacing: 1px;
    margin-bottom: 0.5rem;
}

.card-title {
    font-size: 1.2rem;
    font-weight: 700;
    color: #fff;
    line-height: 1.3;
    margin-bottom: 0.5rem;
}

.card-teaser {
    font-size: 0.85rem;
    color: rgba(255, 255, 255, 0.8);
    line-height: 1.4;
}

/* Card Stack Positioning */
.curiosity-hero-card[data-position="0"] {
    z-index: 5;
    transform: translateZ(0px) translateY(0px) rotate(0deg);
}

.curiosity-hero-card[data-position="1"] {
    z-index: 4;
    transform: translateZ(-15px) translateY(8px) rotate(2deg);
}

.curiosity-hero-card[data-position="2"] {
    z-index: 3;
    transform: translateZ(-30px) translateY(16px) rotate(4deg);
}

.curiosity-hero-card[data-position="3"] {
    z-index: 2;
    transform: translateZ(-45px) translateY(24px) rotate(6deg);
}

.curiosity-hero-card[data-position="4"] {
    z-index: 1;
    transform: translateZ(-60px) translateY(32px) rotate(8deg);
}

/* Hover effect for top card */
.curiosity-hero-card[data-position="0"]:hover {
    transform: translateZ(20px) translateY(-10px) rotate(-2deg);
}

.curiosity-hero-card[data-position="0"]:hover .card-front {
    box-shadow: 0 25px 50px rgba(0, 0, 0, 0.2), 0 10px 20px rgba(0, 0, 0, 0.1);
}

/* Shimmer effect on cards */
.card-front::after {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(
        90deg,
        transparent,
        rgba(255, 255, 255, 0.2),
        transparent
    );
    transition: left 0.5s ease;
    pointer-events: none;
    z-index: 2;
}

.curiosity-hero-card[data-position="0"]:hover .card-front::after {
    left: 100%;
}

/* Custom Mixes Section */
.custom-mixes-section {
    padding: 100px 0;
    background: linear-gradient(180deg, var(--light-gray) 0%, var(--white) 100%);
}

.mix-demo {
    max-width: 700px;
    margin: 0 auto;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 1.5rem;
}

.mix-input-stage {
    width: 100%;
    text-align: center;
}

.mix-prompt-label,
.mix-result-label {
    font-size: 0.85rem;
    font-weight: 600;
    color: var(--gray);
    text-transform: uppercase;
    letter-spacing: 1px;
    margin-bottom: 0.75rem;
}

.mix-user-input {
    background: var(--white);
    border: 2px solid var(--primary);
    border-radius: var(--radius-lg);
    padding: 1.25rem 1.75rem;
    font-size: 1.15rem;
    font-style: italic;
    color: var(--dark);
    box-shadow: var(--shadow-md);
    display: inline-block;
    max-width: 100%;
}

.typing-text {
    color: var(--dark);
}

.cursor {
    color: var(--primary);
    animation: blink 1s infinite;
    font-style: normal;
}

@keyframes blink {
    0%, 50% { opacity: 1; }
    51%, 100% { opacity: 0; }
}

.mix-arrow {
    color: var(--primary);
    animation: bounce-down 2s ease-in-out infinite;
}

@keyframes bounce-down {
    0%, 100% { transform: translateY(0); }
    50% { transform: translateY(8px); }
}

.mix-output-stage {
    width: 100%;
}

.mix-card-preview {
    background: var(--white);
    border-radius: var(--radius-lg);
    box-shadow: var(--shadow-lg);
    overflow: hidden;
    border: 1px solid rgba(124, 160, 185, 0.15);
}

.mix-header {
    display: flex;
    align-items: center;
    gap: 1rem;
    padding: 1.5rem;
    background: var(--gradient);
    color: var(--white);
}

.mix-icon {
    font-size: 2.5rem;
}

.mix-title-block {
    flex: 1;
}

.mix-name {
    font-size: 1.4rem;
    font-weight: 700;
    margin-bottom: 0.25rem;
}

.mix-count {
    font-size: 0.9rem;
    opacity: 0.9;
}

.mix-topics {
    padding: 1rem;
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
}

.mix-topic-card {
    display: flex;
    align-items: flex-start;
    gap: 1rem;
    padding: 1rem;
    background: var(--light-gray);
    border-radius: var(--radius);
    transition: all 0.3s ease;
}

.mix-topic-card:hover {
    transform: translateX(5px);
    background: rgba(124, 160, 185, 0.15);
}

.mix-topic-card.faded {
    opacity: 0.5;
    background: transparent;
    border: 1px dashed var(--gray);
}

.mix-topic-card.faded:hover {
    transform: none;
    background: transparent;
}

.topic-icon {
    font-size: 1.5rem;
    flex-shrink: 0;
}

.topic-content h4 {
    font-size: 1rem;
    font-weight: 600;
    color: var(--dark);
    margin-bottom: 0.25rem;
}

.topic-content p {
    font-size: 0.9rem;
    color: var(--gray);
    line-height: 1.4;
}

/* Curiosities Section */
.curiosities-section {
    padding: 80px 0;
    background: var(--light-gray);
}

.curiosities-scroller {
    display: flex;
    gap: 1.5rem;
    padding: 1.5rem 0;
    overflow-x: auto;
    scrollbar-width: none; /* Firefox */
    -ms-overflow-style: none;  /* IE and Edge */
}

.curiosities-scroller::-webkit-scrollbar {
    display: none; /* Chrome, Safari, and Opera */
}

.curiosity-card {
    flex: 0 0 300px;
    background: var(--white);
    border-radius: var(--radius-lg);
    overflow: hidden;
    box-shadow: var(--shadow-md);
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

.curiosity-card:hover {
    transform: translateY(-5px);
    box-shadow: var(--shadow-lg);
}

.curiosity-card img {
    width: 100%;
    height: 200px;
    object-fit: cover;
}

.curiosity-card .card-content {
    padding: 1.5rem;
}

.curiosity-card h3 {
    font-size: 1.1rem;
    font-weight: 700;
    line-height: 1.4;
    color: var(--dark);
}

/* Features Section */
.features {
    padding: 80px 0;
    background: var(--white);
}

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

.section-header h2 {
    font-size: 2.5rem;
    font-weight: 800;
    margin-bottom: 1rem;
}

.section-header p {
    font-size: 1.1rem;
    color: var(--gray);
}

.features-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 2rem;
}

.feature-card {
    background: var(--white);
    padding: 2.5rem;
    border-radius: var(--radius-lg);
    text-align: center;
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    border: 1px solid rgba(0, 0, 0, 0.05);
    position: relative;
    overflow: hidden;
}

.feature-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 3px;
    background: var(--gradient);
    transform: translateX(-100%);
    transition: transform 0.4s;
}

.feature-card:hover::before {
    transform: translateX(0);
}

.feature-card:hover {
    transform: translateY(-8px);
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.1);
    border-color: rgba(124, 160, 185, 0.2);
}

.feature-card:hover .feature-icon {
    transform: scale(1.1) rotate(5deg);
}

.feature-icon {
    font-size: 3.5rem;
    margin-bottom: 1.5rem;
    display: inline-block;
    transition: transform 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

.feature-card h3 {
    font-size: 1.25rem;
    margin-bottom: 0.5rem;
    color: var(--dark);
}

.feature-card p {
    color: var(--gray);
    line-height: 1.6;
}

/* How It Works Section */
.how-it-works {
    padding: 80px 0;
    background: linear-gradient(135deg, rgba(124, 160, 185, 0.05) 0%, rgba(86, 163, 217, 0.05) 100%);
}

.steps {
    display: flex;
    justify-content: space-between;
    align-items: center;
    max-width: 900px;
    margin: 0 auto;
    position: relative;
}

.step {
    flex: 1;
    text-align: center;
    padding: 2rem;
}

.step-number {
    display: inline-block;
    width: 70px;
    height: 70px;
    line-height: 70px;
    background: var(--gradient);
    color: var(--white);
    border-radius: 50%;
    font-size: 1.5rem;
    font-weight: 700;
    margin-bottom: 1.5rem;
    box-shadow: 0 8px 20px rgba(124, 160, 185, 0.3);
    position: relative;
    animation: bobble 4s ease-in-out infinite;
}

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

.step h3 {
    font-size: 1.25rem;
    margin-bottom: 0.5rem;
    color: var(--dark);
}

.step p {
    color: var(--gray);
    line-height: 1.6;
}

.step-connector {
    width: 100px;
    height: 2px;
    background: var(--gradient);
    position: relative;
}

/* Testimonials Section */
.testimonials {
    padding: 80px 0;
    background: var(--white);
}

.testimonials-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 2rem;
}

.testimonial {
    background: var(--white);
    padding: 2.5rem;
    border-radius: var(--radius-lg);
    text-align: center;
    border: 1px solid rgba(0, 0, 0, 0.05);
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    position: relative;
}

.testimonial:hover {
    transform: translateY(-5px);
    box-shadow: 0 15px 35px rgba(0, 0, 0, 0.08);
}

.stars {
    font-size: 1.2rem;
    margin-bottom: 1rem;
    color: var(--warning);
}

.testimonial p {
    font-size: 1.1rem;
    color: var(--dark);
    line-height: 1.6;
    margin-bottom: 1.5rem;
    font-style: italic;
}

.testimonial-author {
    display: flex;
    flex-direction: column;
    gap: 0.25rem;
}

.testimonial-author strong {
    color: var(--dark);
    font-weight: 600;
}

.testimonial-author span {
    color: var(--gray);
    font-size: 0.9rem;
}

/* CTA Section */
.cta-section {
    padding: 100px 0;
    background: var(--gradient);
    background-size: 200% 200%;
    animation: gradientFlow 15s ease infinite;
    color: var(--white);
    position: relative;
    overflow: hidden;
}

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

.cta-section::before {
    content: '';
    position: absolute;
    top: -50%;
    left: -50%;
    width: 200%;
    height: 200%;
    background: radial-gradient(circle, rgba(255, 255, 255, 0.1) 0%, transparent 70%);
    animation: rotate 30s linear infinite;
}

@keyframes rotate {
    from {
        transform: rotate(0deg);
    }
    to {
        transform: rotate(360deg);
    }
}

.cta-content {
    text-align: center;
    max-width: 600px;
    margin: 0 auto;
}

.cta-content h2 {
    font-size: 2.5rem;
    font-weight: 800;
    margin-bottom: 1rem;
}

.cta-content p {
    font-size: 1.1rem;
    margin-bottom: 2rem;
    opacity: 0.95;
}

.cta-actions {
    margin-bottom: 1rem;
}

.cta-note {
    font-size: 0.9rem;
    opacity: 0.8;
}

/* Footer */
.footer {
    background: var(--dark);
    color: var(--white);
    padding: 60px 0 30px;
}

.footer-content {
    display: grid;
    grid-template-columns: 2fr 3fr;
    gap: 4rem;
    margin-bottom: 3rem;
}

.footer-brand .logo {
    color: var(--white);
    margin-bottom: 1rem;
}

.footer-brand p {
    color: rgba(248, 247, 244, 0.7);
}

.footer-links {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 2rem;
}

.footer-column h4 {
    font-size: 0.9rem;
    text-transform: uppercase;
    letter-spacing: 1px;
    margin-bottom: 1rem;
    color: rgba(248, 247, 244, 0.9);
}

.footer-column a {
    display: block;
    color: rgba(248, 247, 244, 0.7);
    text-decoration: none;
    margin-bottom: 0.5rem;
    transition: color 0.3s;
}

.footer-column a:hover {
    color: var(--white);
}

.footer-bottom {
    padding-top: 2rem;
    border-top: 1px solid rgba(248, 247, 244, 0.1);
    text-align: center;
}

.footer-bottom p {
    color: rgba(248, 247, 244, 0.5);
    font-size: 0.9rem;
}

/* Loading animation */
.loading-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: var(--white);
    z-index: 10000;
    display: flex;
    justify-content: center;
    align-items: center;
    transition: opacity 0.5s;
}

.loading-spinner {
    width: 50px;
    height: 50px;
    border: 3px solid rgba(124, 160, 185, 0.2);
    border-top-color: var(--primary);
    border-radius: 50%;
    animation: spin 1s linear infinite;
}

@keyframes spin {
    to {
        transform: rotate(360deg);
    }
}

/* Scroll indicator */
.scroll-indicator {
    position: absolute;
    bottom: 30px;
    left: 50%;
    transform: translateX(-50%);
    animation: bounce 2s infinite;
}

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

/* Responsive Design */
@media (max-width: 1024px) {
    .container {
        padding: 0 30px;
    }

    .hero-layout {
        grid-template-columns: 1fr;
        gap: 3rem;
        text-align: center;
    }

    .hero-content {
        text-align: center;
        max-width: 100%;
    }

    .hero-cards {
        height: 350px;
    }

    .card-deck {
        width: 260px;
        height: 330px;
    }

    .hero-title {
        font-size: 3rem;
    }

    .features-grid {
        grid-template-columns: repeat(2, 1fr);
    }

    .custom-mixes-section {
        padding: 80px 0;
    }

    .mix-user-input {
        font-size: 1.05rem;
        padding: 1rem 1.5rem;
    }
}

@media (max-width: 768px) {
    .navbar {
        padding: 0.75rem 0;
    }

    .mobile-menu-btn {
        display: flex;
    }

    .nav-links {
        position: fixed;
        top: 0;
        right: -100%;
        width: 80%;
        max-width: 300px;
        height: 100vh;
        background: var(--white);
        flex-direction: column;
        justify-content: center;
        align-items: center;
        gap: 2rem;
        transition: right 0.3s cubic-bezier(0.4, 0, 0.2, 1);
        box-shadow: -5px 0 20px rgba(0, 0, 0, 0.1);
    }

    .nav-links.active {
        right: 0;
    }

    .nav-links a {
        font-size: 1.2rem;
    }

    .hero {
        padding: 100px 0 60px;
    }

    .hero::before,
    .hero::after {
        display: none;
    }

    .hero-layout {
        gap: 2rem;
    }

    .hero-cards {
        height: 300px;
    }

    .card-deck {
        width: 220px;
        height: 280px;
    }

    .card-content-overlay {
        padding: 1.25rem;
    }

    .card-title {
        font-size: 1.05rem;
    }

    .card-teaser {
        font-size: 0.8rem;
    }

    .card-category {
        font-size: 0.7rem;
    }

    .hero-title {
        font-size: 2.5rem;
    }

    .hero-subtitle {
        font-size: 1.1rem;
    }

    .hero-actions {
        flex-direction: column;
        width: 100%;
        padding: 0 20px;
        align-items: center;
    }

    .custom-mixes-section {
        padding: 60px 0;
    }

    .mix-user-input {
        font-size: 1rem;
        padding: 1rem 1.25rem;
    }

    .mix-header {
        padding: 1.25rem;
    }

    .mix-icon {
        font-size: 2rem;
    }

    .mix-name {
        font-size: 1.2rem;
    }

    .mix-topic-card {
        padding: 0.875rem;
    }

    .topic-icon {
        font-size: 1.25rem;
    }

    .topic-content h4 {
        font-size: 0.95rem;
    }

    .topic-content p {
        font-size: 0.85rem;
    }

    .primary-button,
    .secondary-button {
        width: 100%;
        max-width: 300px;
    }

    .hero-stats {
        flex-direction: row;
        gap: 1.5rem;
        flex-wrap: wrap;
        justify-content: space-around;
    }

    .stat {
        flex: 0 0 auto;
        min-width: 80px;
    }

    .stat-number {
        font-size: 1.8rem;
    }

    .features-grid {
        grid-template-columns: 1fr;
        gap: 1.5rem;
    }

    .feature-card {
        padding: 2rem;
    }

    .steps {
        flex-direction: column;
        gap: 2rem;
    }

    .step-connector {
        width: 2px;
        height: 50px;
        margin: -1rem auto;
    }

    .testimonials-grid {
        grid-template-columns: 1fr;
    }

    .section-header h2 {
        font-size: 2rem;
    }

    .cta-content h2 {
        font-size: 2rem;
    }

    .footer-content {
        grid-template-columns: 1fr;
        gap: 2rem;
        text-align: center;
    }

    .footer-links {
        grid-template-columns: 1fr;
        text-align: center;
    }

    .footer-column {
        margin-bottom: 1.5rem;
    }
}

@media (max-width: 480px) {
    .container {
        padding: 0 20px;
    }

    .hero-cards {
        height: 260px;
    }

    .card-deck {
        width: 200px;
        height: 250px;
    }

    .card-content-overlay {
        padding: 1rem;
    }

    .card-title {
        font-size: 0.95rem;
        margin-bottom: 0.35rem;
    }

    .card-teaser {
        font-size: 0.75rem;
    }

    .card-category {
        font-size: 0.65rem;
        margin-bottom: 0.35rem;
    }

    .card-back .card-logo {
        font-size: 3rem;
    }

    .card-back span {
        font-size: 1rem;
    }

    .mix-user-input {
        font-size: 0.9rem;
        padding: 0.875rem 1rem;
    }

    .mix-header {
        padding: 1rem;
        gap: 0.75rem;
    }

    .mix-icon {
        font-size: 1.75rem;
    }

    .mix-name {
        font-size: 1.1rem;
    }

    .mix-count {
        font-size: 0.8rem;
    }

    .mix-topics {
        padding: 0.75rem;
        gap: 0.4rem;
    }

    .mix-topic-card {
        padding: 0.75rem;
        gap: 0.75rem;
    }

    .topic-icon {
        font-size: 1.1rem;
    }

    .topic-content h4 {
        font-size: 0.9rem;
    }

    .topic-content p {
        font-size: 0.8rem;
    }

    .hero-title {
        font-size: 2rem;
        line-height: 1.2;
    }

    .badge {
        font-size: 0.8rem;
        padding: 0.5rem 0.8rem;
    }

    .hero-subtitle {
        font-size: 1rem;
    }

    .primary-button,
    .secondary-button {
        padding: 0.875rem 1.5rem;
        font-size: 0.95rem;
    }

    .feature-icon {
        font-size: 2.5rem;
    }

    .feature-card h3 {
        font-size: 1.1rem;
    }

    .feature-card p {
        font-size: 0.9rem;
    }
}

/* Accessibility improvements */
@media (prefers-reduced-motion: reduce) {
    *,
    *::before,
    *::after {
        animation-duration: 0.01ms !important;
        animation-iteration-count: 1 !important;
        transition-duration: 0.01ms !important;
        scroll-behavior: auto !important;
    }

    /* Keep cards visible but disable complex animations */
    .curiosity-hero-card {
        transition: none !important;
    }
}

/* Dark mode support */
@media (prefers-color-scheme: dark) {
    :root {
        --primary: #8FB5C8;
        --primary-dark: #6AB8E8;
        --secondary: #A9C7DA;
        --accent: #F7B54A;
        --warning: #DDB95A;
        --dark: #F0F0F0;
        --gray: #B8C4D0;
        --light-gray: #2A3848;
        --white: #1E2A38;
    }

    body {
        background: #1A2836;
    }

    .navbar {
        background: rgba(30, 42, 56, 0.95);
    }

    .hero {
        background: linear-gradient(180deg, #1A2836 0%, #151D26 100%);
    }

    .feature-card,
    .testimonial {
        background: #1E2A38;
        border-color: rgba(255, 255, 255, 0.1);
    }

    .footer {
        background: var(--dark);
    }
}