/* 🐱 RATE MY CAT - Ultra Premium Neo-Kawaii Design 🐱 */
/* Designed to be STUNNING, PLAYFUL, and full of CHARACTER */

@import url('https://fonts.googleapis.com/css2?family=Rubik+Bubbles&family=Quicksand:wght@400;500;600;700&family=Poppins:wght@400;500;600;700;800;900&display=swap');

:root {
    /* Vibrant Color Palette */
    --neon-pink: #FF2D95;
    --neon-purple: #9D4EDD;
    --electric-blue: #00D4FF;
    --sunset-orange: #FF6B35;
    --golden-yellow: #FFD60A;
    --lime-green: #7FFF00;
    --hot-coral: #FF6B6B;

    /* Gradient Magic */
    --gradient-hero: linear-gradient(135deg, #667eea 0%, #764ba2 50%, #FF2D95 100%);
    --gradient-card: linear-gradient(145deg, rgba(255, 255, 255, 0.95) 0%, rgba(255, 240, 250, 0.9) 100%);
    --gradient-rainbow: linear-gradient(90deg, #FF2D95, #FFD60A, #7FFF00, #00D4FF, #9D4EDD, #FF2D95);
    --gradient-cosmic: linear-gradient(135deg, #1a1a2e 0%, #16213e 50%, #1a1a2e 100%);
    --gradient-sunset: linear-gradient(135deg, #FF6B35 0%, #FF2D95 50%, #9D4EDD 100%);

    /* Background */
    --bg-dark: #0f0f1a;
    --bg-card: rgba(255, 255, 255, 0.08);
    --bg-glass: rgba(255, 255, 255, 0.05);

    /* Text */
    --text-light: #ffffff;
    --text-muted: rgba(255, 255, 255, 0.7);
    --text-dim: rgba(255, 255, 255, 0.5);

    /* Shadows & Effects */
    --glow-pink: 0 0 40px rgba(255, 45, 149, 0.5);
    --glow-purple: 0 0 40px rgba(157, 78, 221, 0.5);
    --glow-blue: 0 0 40px rgba(0, 212, 255, 0.5);
    --shadow-lg: 0 25px 50px -12px rgba(0, 0, 0, 0.5);

    /* Border Radius */
    --radius-sm: 12px;
    --radius-md: 20px;
    --radius-lg: 32px;
    --radius-xl: 48px;
}

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

html {
    scroll-behavior: smooth;
}

body {
    font-family: 'Quicksand', sans-serif;
    background: var(--bg-dark);
    color: var(--text-light);
    min-height: 100vh;
    overflow-x: hidden;
    line-height: 1.6;
}

/* ============= ANIMATED BACKGROUND ============= */
body::before {
    content: '';
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background:
        radial-gradient(circle at 20% 80%, rgba(255, 45, 149, 0.15) 0%, transparent 40%),
        radial-gradient(circle at 80% 20%, rgba(0, 212, 255, 0.15) 0%, transparent 40%),
        radial-gradient(circle at 50% 50%, rgba(157, 78, 221, 0.1) 0%, transparent 50%);
    z-index: -1;
    animation: cosmicPulse 8s ease-in-out infinite;
}

@keyframes cosmicPulse {

    0%,
    100% {
        opacity: 1;
        transform: scale(1);
    }

    50% {
        opacity: 0.8;
        transform: scale(1.05);
    }
}

/* Floating Cat Emojis */
.paw-prints-container {
    position: fixed;
    inset: 0;
    pointer-events: none;
    z-index: 0;
    overflow: hidden;
}

.paw-print {
    position: absolute;
    font-size: 3rem;
    opacity: 0.3;
    filter: blur(1px);
    animation: floatEmoji var(--duration) ease-in-out infinite;
    animation-delay: var(--delay);
    left: var(--x);
    top: 110%;
}

@keyframes floatEmoji {
    0% {
        transform: translateY(0) rotate(0deg) scale(1);
        opacity: 0;
    }

    10% {
        opacity: 0.3;
    }

    50% {
        transform: translateY(-50vh) rotate(180deg) scale(1.2);
        opacity: 0.5;
    }

    90% {
        opacity: 0.3;
    }

    100% {
        transform: translateY(-110vh) rotate(360deg) scale(1);
        opacity: 0;
    }
}

/* ============= NAVIGATION ============= */
.navbar {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    z-index: 1000;
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 1rem 3rem;
    background: rgba(15, 15, 26, 0.8);
    backdrop-filter: blur(20px);
    border-bottom: 1px solid rgba(255, 45, 149, 0.2);
}

.nav-brand {
    display: flex;
    align-items: center;
    gap: 0.75rem;
}

.logo-icon {
    font-size: 2.5rem;
    animation: catBounce 1.5s ease-in-out infinite;
    filter: drop-shadow(0 0 10px rgba(255, 45, 149, 0.5));
}

@keyframes catBounce {

    0%,
    100% {
        transform: translateY(0) rotate(-5deg);
    }

    50% {
        transform: translateY(-8px) rotate(5deg);
    }
}

.logo-text {
    font-family: 'Rubik Bubbles', cursive;
    font-size: 1.8rem;
    background: var(--gradient-rainbow);
    background-size: 300% 100%;
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    animation: rainbowShift 4s linear infinite;
}

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

    100% {
        background-position: 300% 50%;
    }
}

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

.nav-link {
    text-decoration: none;
    color: var(--text-muted);
    font-weight: 600;
    font-size: 0.95rem;
    padding: 0.5rem 1rem;
    border-radius: var(--radius-sm);
    transition: all 0.3s ease;
    position: relative;
}

.nav-link::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 50%;
    width: 0;
    height: 2px;
    background: var(--gradient-sunset);
    transition: all 0.3s ease;
    transform: translateX(-50%);
}

.nav-link:hover {
    color: var(--text-light);
    text-shadow: 0 0 20px rgba(255, 45, 149, 0.5);
}

.nav-link:hover::after {
    width: 80%;
}

/* ============= HERO SECTION ============= */
.hero {
    min-height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 8rem 2rem 4rem;
    position: relative;
    overflow: hidden;
}

/* Animated gradient orbs */
.hero::before {
    content: '😺';
    position: absolute;
    font-size: 400px;
    opacity: 0.03;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    animation: megaCatPulse 6s ease-in-out infinite;
}

@keyframes megaCatPulse {

    0%,
    100% {
        transform: translate(-50%, -50%) scale(1) rotate(0deg);
        opacity: 0.03;
    }

    50% {
        transform: translate(-50%, -50%) scale(1.1) rotate(5deg);
        opacity: 0.05;
    }
}

.hero-content {
    text-align: center;
    max-width: 800px;
    z-index: 1;
}

.hero-badge {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.75rem 2rem;
    background: rgba(255, 45, 149, 0.15);
    border: 1px solid rgba(255, 45, 149, 0.3);
    color: var(--neon-pink);
    border-radius: 50px;
    font-size: 0.95rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 2px;
    margin-bottom: 2rem;
    animation: badgePulse 2s ease-in-out infinite;
}

@keyframes badgePulse {

    0%,
    100% {
        box-shadow: 0 0 20px rgba(255, 45, 149, 0.3);
    }

    50% {
        box-shadow: 0 0 40px rgba(255, 45, 149, 0.6);
    }
}

.hero-title {
    font-family: 'Poppins', sans-serif;
    font-size: clamp(3rem, 8vw, 6rem);
    font-weight: 900;
    line-height: 1.1;
    margin-bottom: 1.5rem;
    text-shadow: 0 0 60px rgba(255, 45, 149, 0.3);
}

.gradient-text {
    display: block;
    background: linear-gradient(135deg, #FF2D95 0%, #00D4FF 50%, #FFD60A 100%);
    background-size: 200% 200%;
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    animation: textGradientFlow 3s ease-in-out infinite;
}

@keyframes textGradientFlow {

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

    50% {
        background-position: 100% 50%;
    }
}

.hero-subtitle {
    font-size: 1.4rem;
    color: var(--text-muted);
    margin-bottom: 3rem;
    max-width: 600px;
    margin-left: auto;
    margin-right: auto;
    line-height: 1.8;
}

.hero-decoration {
    position: absolute;
    font-size: 6rem;
    opacity: 0.15;
    animation: decorFloat 8s ease-in-out infinite;
    filter: blur(2px);
}

.hero-decoration.left {
    left: 5%;
    top: 25%;
    animation-delay: 0s;
}

.hero-decoration.right {
    right: 5%;
    bottom: 25%;
    animation-delay: -4s;
}

@keyframes decorFloat {

    0%,
    100% {
        transform: translateY(0) rotate(-15deg) scale(1);
    }

    50% {
        transform: translateY(-30px) rotate(15deg) scale(1.1);
    }
}

/* ============= UPLOAD ZONE ============= */
.upload-zone {
    display: block;
    /* Critical fix: label is inline by default */
    background: linear-gradient(145deg, rgba(255, 45, 149, 0.1), rgba(157, 78, 221, 0.1));
    border: 3px dashed var(--neon-pink);
    border-radius: var(--radius-xl);
    padding: 4rem 3rem;
    cursor: pointer;
    transition: all 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275);
    position: relative;
    overflow: hidden;
    width: 100%;
    /* Ensure full width */
}

.upload-zone::before {
    content: '';
    position: absolute;
    inset: -2px;
    background: var(--gradient-rainbow);
    background-size: 400% 100%;
    border-radius: var(--radius-xl);
    z-index: -1;
    opacity: 0;
    animation: rainbowBorder 3s linear infinite;
    transition: opacity 0.3s ease;
}

.upload-zone:hover::before {
    opacity: 1;
}

.upload-zone:hover {
    transform: translateY(-10px) scale(1.02);
    border-color: transparent;
    box-shadow: var(--glow-pink);
}

.upload-zone.dragging {
    border-color: var(--electric-blue);
    background: rgba(0, 212, 255, 0.15);
    transform: scale(1.05);
    box-shadow: var(--glow-blue);
}

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

    100% {
        background-position: 400% 50%;
    }
}

.upload-icon {
    font-size: 5rem;
    margin-bottom: 1.5rem;
    display: block;
    animation: uploadBounce 2s ease-in-out infinite;
    filter: drop-shadow(0 0 30px rgba(255, 45, 149, 0.5));
}

@keyframes uploadBounce {

    0%,
    100% {
        transform: translateY(0) scale(1);
    }

    50% {
        transform: translateY(-15px) scale(1.1);
    }
}

.upload-zone h3 {
    font-family: 'Poppins', sans-serif;
    font-size: 1.8rem;
    font-weight: 700;
    margin-bottom: 0.75rem;
    background: var(--gradient-sunset);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.upload-zone p {
    color: var(--text-muted);
    font-size: 1.1rem;
    margin-bottom: 1rem;
}

.upload-hint {
    font-size: 0.85rem;
    color: var(--text-dim);
    display: inline-block;
    padding: 0.5rem 1rem;
    background: rgba(255, 255, 255, 0.05);
    border-radius: 20px;
}

/* ============= PREVIEW ZONE ============= */
.preview-zone {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 2rem;
}

.preview-image-container {
    position: relative;
    max-width: 450px;
    border-radius: var(--radius-lg);
    overflow: hidden;
    box-shadow:
        0 0 0 4px rgba(255, 45, 149, 0.5),
        0 0 60px rgba(255, 45, 149, 0.3),
        var(--shadow-lg);
    animation: previewGlow 2s ease-in-out infinite;
}

@keyframes previewGlow {

    0%,
    100% {
        box-shadow: 0 0 0 4px rgba(255, 45, 149, 0.5), 0 0 60px rgba(255, 45, 149, 0.3);
    }

    50% {
        box-shadow: 0 0 0 4px rgba(0, 212, 255, 0.5), 0 0 80px rgba(0, 212, 255, 0.4);
    }
}

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

.remove-btn {
    position: absolute;
    top: 1rem;
    right: 1rem;
    width: 45px;
    height: 45px;
    border-radius: 50%;
    border: none;
    background: rgba(255, 107, 107, 0.9);
    color: white;
    font-size: 1.5rem;
    font-weight: bold;
    cursor: pointer;
    transition: all 0.3s ease;
    backdrop-filter: blur(10px);
}

.remove-btn:hover {
    background: var(--hot-coral);
    transform: rotate(90deg) scale(1.1);
    box-shadow: 0 0 20px rgba(255, 107, 107, 0.5);
}

.rate-btn {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 1rem;
    padding: 1.25rem 3rem;
    font-family: 'Poppins', sans-serif;
    font-size: 1.4rem;
    font-weight: 700;
    color: white;
    background: var(--gradient-sunset);
    background-size: 200% 100%;
    border: none;
    border-radius: 60px;
    cursor: pointer;
    transition: all 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275);
    box-shadow: var(--glow-pink);
    position: relative;
    overflow: hidden;
    text-transform: uppercase;
    letter-spacing: 2px;
}

.rate-btn::before {
    content: '';
    position: absolute;
    inset: 0;
    background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.3), transparent);
    transform: translateX(-100%);
    transition: transform 0.6s ease;
}

.rate-btn:hover::before {
    transform: translateX(100%);
}

.rate-btn:hover {
    transform: translateY(-5px) scale(1.05);
    background-position: 100% 0;
    box-shadow: 0 0 60px rgba(255, 45, 149, 0.6);
}

.btn-icon {
    font-size: 1.6rem;
    animation: starSpin 2s linear infinite;
}

@keyframes starSpin {
    0% {
        transform: rotate(0deg) scale(1);
    }

    50% {
        transform: rotate(180deg) scale(1.2);
    }

    100% {
        transform: rotate(360deg) scale(1);
    }
}

.btn-sparkle {
    animation: sparkleFloat 1s ease-in-out infinite;
}

@keyframes sparkleFloat {

    0%,
    100% {
        opacity: 1;
        transform: translateY(0) scale(1);
    }

    50% {
        opacity: 0.5;
        transform: translateY(-5px) scale(1.3);
    }
}

/* ============= LOADING OVERLAY ============= */
.loading-overlay {
    position: fixed;
    inset: 0;
    background: rgba(15, 15, 26, 0.98);
    backdrop-filter: blur(30px);
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 2000;
}

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

.loading-cat {
    margin-bottom: 2rem;
}

.loading-emoji {
    font-size: 8rem;
    display: inline-block;
    animation: loadingCatDance 0.5s ease-in-out infinite;
    filter: drop-shadow(0 0 50px rgba(255, 45, 149, 0.5));
}

@keyframes loadingCatDance {

    0%,
    100% {
        transform: translateY(0) rotate(-10deg) scale(1);
    }

    25% {
        transform: translateY(-20px) rotate(0deg) scale(1.1);
    }

    50% {
        transform: translateY(0) rotate(10deg) scale(1);
    }

    75% {
        transform: translateY(-10px) rotate(0deg) scale(1.05);
    }
}

.loading-content h3 {
    font-family: 'Poppins', sans-serif;
    font-size: 2rem;
    font-weight: 700;
    margin-bottom: 1rem;
    background: var(--gradient-sunset);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.loading-text {
    color: var(--text-muted);
    font-size: 1.2rem;
    margin-bottom: 2.5rem;
}

.loading-bar {
    width: 100%;
    height: 12px;
    background: rgba(255, 255, 255, 0.1);
    border-radius: 20px;
    overflow: hidden;
    position: relative;
}

.loading-progress {
    height: 100%;
    width: 0%;
    background: var(--gradient-rainbow);
    background-size: 300% 100%;
    border-radius: 20px;
    animation: loadingProgress 2s ease-in-out infinite, rainbowShift 2s linear infinite;
}

@keyframes loadingProgress {
    0% {
        width: 0%;
    }

    50% {
        width: 75%;
    }

    100% {
        width: 100%;
    }
}

/* ============= RESULTS SECTION ============= */
.results-section {
    padding: 4rem 2rem;
    position: relative;
}

.results-container {
    max-width: 1400px;
    margin: 0 auto;
}

/* Main Rating Card - THE SHOWSTOPPER */
.rating-card {
    background: linear-gradient(145deg, rgba(255, 45, 149, 0.15), rgba(157, 78, 221, 0.15));
    backdrop-filter: blur(30px);
    border-radius: var(--radius-xl);
    padding: 4rem;
    text-align: center;
    margin-bottom: 3rem;
    border: 2px solid rgba(255, 45, 149, 0.3);
    box-shadow:
        0 0 80px rgba(255, 45, 149, 0.2),
        inset 0 0 60px rgba(255, 45, 149, 0.05);
    animation: cardAppear 0.6s ease-out;
    position: relative;
    overflow: hidden;
}

.rating-card::before {
    content: '✨';
    position: absolute;
    font-size: 150px;
    opacity: 0.05;
    top: -30px;
    right: -30px;
    animation: floatStar 6s ease-in-out infinite;
}

@keyframes floatStar {

    0%,
    100% {
        transform: rotate(0deg) scale(1);
    }

    50% {
        transform: rotate(20deg) scale(1.1);
    }
}

@keyframes cardAppear {
    0% {
        opacity: 0;
        transform: translateY(50px) scale(0.9);
    }

    100% {
        opacity: 1;
        transform: translateY(0) scale(1);
    }
}

.card-header {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 1rem;
    margin-bottom: 2rem;
}

.card-icon {
    font-size: 2.5rem;
    animation: iconBounce 2s ease-in-out infinite;
}

@keyframes iconBounce {

    0%,
    100% {
        transform: translateY(0) scale(1);
    }

    50% {
        transform: translateY(-8px) scale(1.1);
    }
}

.card-header h2 {
    font-family: 'Poppins', sans-serif;
    font-size: 2.2rem;
    font-weight: 800;
    background: var(--gradient-sunset);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.card-header h3 {
    font-family: 'Poppins', sans-serif;
    font-size: 1.4rem;
    font-weight: 700;
}

/* Score Ring - MEGA IMPRESSIVE */
.score-display {
    display: flex;
    justify-content: center;
    margin-bottom: 2.5rem;
}

.score-ring {
    position: relative;
    width: 250px;
    height: 250px;
    filter: drop-shadow(0 0 40px rgba(255, 45, 149, 0.4));
}

.score-ring svg {
    transform: rotate(-90deg);
    width: 100%;
    height: 100%;
}

.score-bg {
    fill: none;
    stroke: rgba(255, 255, 255, 0.1);
    stroke-width: 12;
}

.score-progress {
    fill: none;
    stroke: url(#scoreGradient);
    stroke-width: 12;
    stroke-linecap: round;
    stroke-dasharray: 283;
    stroke-dashoffset: 283;
    transition: stroke-dashoffset 2s cubic-bezier(0.4, 0, 0.2, 1);
    filter: drop-shadow(0 0 10px rgba(255, 45, 149, 0.5));
}

.score-value {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    text-align: center;
}

.score-number {
    font-family: 'Poppins', sans-serif;
    font-size: 5rem;
    font-weight: 900;
    background: linear-gradient(135deg, #FF2D95 0%, #00D4FF 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    text-shadow: none;
    line-height: 1;
}

.score-max {
    font-size: 1.8rem;
    color: var(--text-muted);
    font-weight: 600;
}

.rating-summary {
    font-size: 1.3rem;
    color: var(--text-muted);
    max-width: 600px;
    margin: 0 auto;
    line-height: 1.8;
}

/* ============= RESULTS GRID ============= */
.results-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(350px, 1fr));
    gap: 2rem;
    margin-bottom: 4rem;
}

.result-card {
    background: linear-gradient(145deg, rgba(255, 255, 255, 0.08), rgba(255, 255, 255, 0.02));
    backdrop-filter: blur(20px);
    border-radius: var(--radius-lg);
    padding: 2.5rem;
    border: 1px solid rgba(255, 255, 255, 0.1);
    transition: all 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275);
    animation: cardSlideUp 0.5s ease-out backwards;
    position: relative;
    overflow: hidden;
}

.result-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 4px;
    background: var(--gradient-sunset);
    transform: scaleX(0);
    transition: transform 0.3s ease;
}

.result-card:hover::before {
    transform: scaleX(1);
}

.result-card:hover {
    transform: translateY(-10px);
    box-shadow: 0 25px 50px rgba(255, 45, 149, 0.2);
    border-color: rgba(255, 45, 149, 0.3);
}

@keyframes cardSlideUp {
    0% {
        opacity: 0;
        transform: translateY(40px);
    }

    100% {
        opacity: 1;
        transform: translateY(0);
    }
}

.result-card:nth-child(1) {
    animation-delay: 0.1s;
}

.result-card:nth-child(2) {
    animation-delay: 0.15s;
}

.result-card:nth-child(3) {
    animation-delay: 0.2s;
}

.result-card:nth-child(4) {
    animation-delay: 0.25s;
}

.result-card:nth-child(5) {
    animation-delay: 0.3s;
}

.result-card:nth-child(6) {
    animation-delay: 0.35s;
}

.result-card:nth-child(7) {
    animation-delay: 0.4s;
}

.result-card:nth-child(8) {
    animation-delay: 0.45s;
}

/* Card Type Variations */
.personality-card {
    border-left: 4px solid var(--neon-purple);
}

.personality-type {
    font-family: 'Rubik Bubbles', cursive;
    font-size: 2.2rem;
    background: linear-gradient(135deg, var(--neon-purple), var(--electric-blue));
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    margin-bottom: 0.75rem;
}

.personality-desc,
.roast-text,
.compliment-text,
.celebrity-text,
.horoscope-text,
.meme-text {
    color: var(--text-muted);
    font-size: 1.05rem;
    line-height: 1.7;
}

.roast-card {
    border-left: 4px solid var(--sunset-orange);
}

.roast-text {
    font-style: italic;
    color: var(--sunset-orange);
}

.compliment-card {
    border-left: 4px solid var(--neon-pink);
}

.compliment-text {
    color: var(--neon-pink);
}

.meme-card {
    border-left: 4px solid var(--golden-yellow);
}

.meme-text {
    font-family: 'Poppins', sans-serif;
    font-size: 1.15rem;
    font-weight: 600;
    color: var(--golden-yellow);
    background: rgba(255, 214, 10, 0.1);
    padding: 1.25rem;
    border-radius: var(--radius-md);
}

.names-card {
    border-left: 4px solid var(--electric-blue);
}

.names-list,
.talents-list {
    display: flex;
    flex-wrap: wrap;
    gap: 0.75rem;
    margin-top: 0.5rem;
}

.name-tag {
    background: linear-gradient(135deg, var(--electric-blue), var(--neon-purple));
    color: white;
    padding: 0.6rem 1.25rem;
    border-radius: 50px;
    font-size: 0.95rem;
    font-weight: 600;
    box-shadow: 0 4px 15px rgba(0, 212, 255, 0.3);
    transition: all 0.3s ease;
}

.name-tag:hover {
    transform: translateY(-3px) scale(1.05);
    box-shadow: 0 8px 25px rgba(0, 212, 255, 0.4);
}

.celebrity-card {
    border-left: 4px solid var(--golden-yellow);
}

.horoscope-card {
    border-left: 4px solid #9D8FFF;
}

.talents-card {
    border-left: 4px solid var(--lime-green);
}

.talent-tag {
    background: linear-gradient(135deg, var(--lime-green), var(--electric-blue));
    color: #0f0f1a;
    padding: 0.6rem 1.25rem;
    border-radius: 50px;
    font-size: 0.95rem;
    font-weight: 700;
    box-shadow: 0 4px 15px rgba(127, 255, 0, 0.3);
    transition: all 0.3s ease;
}

.talent-tag:hover {
    transform: translateY(-3px) scale(1.05);
}

/* ============= SHARE SECTION ============= */
.share-section {
    text-align: center;
    padding: 3rem;
    background: linear-gradient(145deg, rgba(255, 45, 149, 0.1), rgba(157, 78, 221, 0.1));
    border-radius: var(--radius-xl);
    border: 1px solid rgba(255, 45, 149, 0.2);
}

.share-section h3 {
    font-family: 'Poppins', sans-serif;
    font-size: 1.8rem;
    font-weight: 700;
    margin-bottom: 2rem;
    background: var(--gradient-sunset);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.share-buttons {
    display: flex;
    justify-content: center;
    gap: 1.5rem;
    flex-wrap: wrap;
}

.share-btn {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    padding: 1rem 2rem;
    border: none;
    border-radius: 50px;
    font-family: 'Quicksand', sans-serif;
    font-size: 1.05rem;
    font-weight: 700;
    cursor: pointer;
    transition: all 0.3s cubic-bezier(0.175, 0.885, 0.32, 1.275);
}

.share-btn.twitter {
    background: #000;
    color: white;
    border: 2px solid #333;
}

.share-btn.twitter:hover {
    background: #1a1a1a;
    transform: translateY(-3px);
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.3);
}

.share-btn.copy {
    background: var(--neon-purple);
    color: white;
}

.share-btn.copy:hover {
    transform: translateY(-3px);
    box-shadow: var(--glow-purple);
}

.share-btn.new {
    background: var(--gradient-sunset);
    color: white;
}

.share-btn.new:hover {
    transform: translateY(-3px);
    box-shadow: var(--glow-pink);
}

/* ============= FEATURES SECTION ============= */
.features-section {
    padding: 6rem 2rem;
    position: relative;
}

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

.section-badge {
    display: inline-block;
    padding: 0.6rem 1.5rem;
    background: rgba(255, 45, 149, 0.15);
    border: 1px solid rgba(255, 45, 149, 0.3);
    color: var(--neon-pink);
    border-radius: 50px;
    font-size: 0.9rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 2px;
    margin-bottom: 1.5rem;
}

.section-header h2 {
    font-family: 'Poppins', sans-serif;
    font-size: clamp(2rem, 5vw, 3.5rem);
    font-weight: 800;
    margin-bottom: 1rem;
    background: linear-gradient(135deg, #fff 0%, rgba(255, 255, 255, 0.7) 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.section-header p {
    font-size: 1.2rem;
    color: var(--text-muted);
    max-width: 600px;
    margin: 0 auto;
}

.features-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 2rem;
    max-width: 1400px;
    margin: 0 auto;
}

.feature-card {
    background: linear-gradient(145deg, rgba(255, 255, 255, 0.08), rgba(255, 255, 255, 0.02));
    backdrop-filter: blur(20px);
    border-radius: var(--radius-lg);
    padding: 2.5rem;
    text-align: center;
    border: 1px solid rgba(255, 255, 255, 0.1);
    transition: all 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275);
}

.feature-card:hover {
    transform: translateY(-10px);
    border-color: rgba(255, 45, 149, 0.3);
    box-shadow: 0 20px 40px rgba(255, 45, 149, 0.15);
}

.feature-icon {
    font-size: 3.5rem;
    margin-bottom: 1.5rem;
    display: block;
    animation: featureFloat 3s ease-in-out infinite;
}

.feature-card:nth-child(odd) .feature-icon {
    animation-delay: -1.5s;
}

@keyframes featureFloat {

    0%,
    100% {
        transform: translateY(0);
    }

    50% {
        transform: translateY(-10px);
    }
}

.feature-card h3 {
    font-family: 'Poppins', sans-serif;
    font-size: 1.3rem;
    font-weight: 700;
    margin-bottom: 0.75rem;
}

.feature-card p {
    color: var(--text-muted);
    font-size: 0.95rem;
    line-height: 1.6;
}

/* ============= LEADERBOARD SECTION ============= */
.leaderboard-section {
    padding: 6rem 2rem;
}

.leaderboard-container {
    max-width: 800px;
    margin: 0 auto;
}

.leaderboard-empty {
    text-align: center;
    padding: 4rem 2rem;
    background: linear-gradient(145deg, rgba(255, 255, 255, 0.05), rgba(255, 255, 255, 0.02));
    border-radius: var(--radius-xl);
    border: 2px dashed rgba(255, 255, 255, 0.2);
}

.empty-icon {
    font-size: 5rem;
    display: block;
    margin-bottom: 1.5rem;
    animation: crownFloat 3s ease-in-out infinite;
}

@keyframes crownFloat {

    0%,
    100% {
        transform: translateY(0) rotate(-5deg);
    }

    50% {
        transform: translateY(-15px) rotate(5deg);
    }
}

.leaderboard-empty h3 {
    font-family: 'Poppins', sans-serif;
    font-size: 1.8rem;
    font-weight: 700;
    margin-bottom: 0.5rem;
}

.leaderboard-empty p {
    color: var(--text-muted);
    margin-bottom: 1.5rem;
}

.cta-link {
    display: inline-block;
    color: var(--neon-pink);
    text-decoration: none;
    font-weight: 700;
    padding: 0.75rem 2rem;
    border: 2px solid var(--neon-pink);
    border-radius: 50px;
    transition: all 0.3s ease;
}

.cta-link:hover {
    background: var(--neon-pink);
    color: white;
    transform: translateY(-3px);
    box-shadow: var(--glow-pink);
}

.leaderboard-list {
    display: flex;
    flex-direction: column;
    gap: 1rem;
}

.leaderboard-item {
    display: flex;
    align-items: center;
    gap: 1.5rem;
    padding: 1.25rem 1.5rem;
    background: linear-gradient(145deg, rgba(255, 255, 255, 0.08), rgba(255, 255, 255, 0.02));
    border-radius: var(--radius-md);
    border: 1px solid rgba(255, 255, 255, 0.1);
    transition: all 0.3s ease;
}

.leaderboard-item:hover {
    transform: translateX(10px);
    border-color: rgba(255, 45, 149, 0.3);
}

.leaderboard-rank {
    font-size: 1.5rem;
    font-weight: 800;
    min-width: 50px;
    text-align: center;
}

.leaderboard-rank.gold {
    color: #FFD60A;
    text-shadow: 0 0 20px rgba(255, 214, 10, 0.5);
}

.leaderboard-rank.silver {
    color: #C0C0C0;
    text-shadow: 0 0 20px rgba(192, 192, 192, 0.5);
}

.leaderboard-rank.bronze {
    color: #CD7F32;
    text-shadow: 0 0 20px rgba(205, 127, 50, 0.5);
}

.leaderboard-image {
    width: 60px;
    height: 60px;
    border-radius: 50%;
    object-fit: cover;
    border: 3px solid rgba(255, 45, 149, 0.5);
}

.leaderboard-info {
    flex: 1;
}

.leaderboard-name {
    font-weight: 700;
    font-size: 1.1rem;
}

.leaderboard-personality {
    color: var(--text-muted);
    font-size: 0.9rem;
}

.leaderboard-score {
    font-family: 'Poppins', sans-serif;
    font-size: 1.8rem;
    font-weight: 800;
    background: var(--gradient-sunset);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

/* ============= CAT FACTS SECTION ============= */
.facts-section {
    padding: 6rem 2rem;
}

.facts-carousel {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 1.5rem;
    max-width: 1200px;
    margin: 0 auto 3rem;
}

.fact-card {
    background: linear-gradient(145deg, rgba(255, 255, 255, 0.08), rgba(255, 255, 255, 0.02));
    backdrop-filter: blur(20px);
    border-radius: var(--radius-lg);
    padding: 2rem;
    border: 1px solid rgba(255, 255, 255, 0.1);
    transition: all 0.3s ease;
}

.fact-card:hover {
    transform: translateY(-5px);
    border-color: rgba(0, 212, 255, 0.3);
}

.fact-icon {
    font-size: 2.5rem;
    display: block;
    margin-bottom: 1rem;
}

.fact-card p {
    color: var(--text-muted);
    line-height: 1.7;
}

.fact-card .highlight {
    color: var(--electric-blue);
    font-weight: 700;
}

.get-fact-btn {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.75rem;
    padding: 1rem 2.5rem;
    margin: 0 auto 2rem;
    background: linear-gradient(135deg, var(--electric-blue), var(--neon-purple));
    color: white;
    border: none;
    border-radius: 50px;
    font-family: 'Quicksand', sans-serif;
    font-size: 1.1rem;
    font-weight: 700;
    cursor: pointer;
    transition: all 0.3s ease;
}

.get-fact-btn:hover {
    transform: translateY(-3px);
    box-shadow: var(--glow-blue);
}

.get-fact-btn:disabled {
    opacity: 0.7;
    cursor: not-allowed;
}

.ai-fact {
    max-width: 700px;
    margin: 0 auto;
    padding: 2rem;
    background: linear-gradient(145deg, rgba(0, 212, 255, 0.15), rgba(157, 78, 221, 0.15));
    border-radius: var(--radius-lg);
    border: 1px solid rgba(0, 212, 255, 0.3);
    text-align: center;
}

.ai-fact p {
    color: var(--text-light);
    font-size: 1.15rem;
    line-height: 1.7;
}

/* ============= FOOTER ============= */
.footer {
    padding: 4rem 2rem 2rem;
    background: linear-gradient(180deg, transparent, rgba(255, 45, 149, 0.05));
    border-top: 1px solid rgba(255, 45, 149, 0.2);
}

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

.footer-brand {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.75rem;
    margin-bottom: 1rem;
}

.footer-tagline {
    color: var(--text-muted);
    font-size: 1.1rem;
    margin-bottom: 2rem;
}

.footer-links {
    display: flex;
    justify-content: center;
    gap: 2rem;
    margin-bottom: 2rem;
    flex-wrap: wrap;
}

.footer-links a {
    color: var(--text-muted);
    text-decoration: none;
    font-weight: 600;
    transition: color 0.3s ease;
}

.footer-links a:hover {
    color: var(--neon-pink);
}

.footer-copy,
.footer-power {
    color: var(--text-dim);
    font-size: 0.9rem;
    margin-bottom: 0.5rem;
}

.footer-power {
    color: var(--neon-purple);
    font-weight: 600;
}

.footer-cats {
    display: flex;
    justify-content: center;
    gap: 1rem;
    margin-top: 2rem;
    font-size: 2rem;
}

.footer-cats span {
    animation: catWave 2s ease-in-out infinite;
}

.footer-cats span:nth-child(1) {
    animation-delay: 0s;
}

.footer-cats span:nth-child(2) {
    animation-delay: 0.1s;
}

.footer-cats span:nth-child(3) {
    animation-delay: 0.2s;
}

.footer-cats span:nth-child(4) {
    animation-delay: 0.3s;
}

.footer-cats span:nth-child(5) {
    animation-delay: 0.4s;
}

.footer-cats span:nth-child(6) {
    animation-delay: 0.5s;
}

.footer-cats span:nth-child(7) {
    animation-delay: 0.6s;
}

@keyframes catWave {

    0%,
    100% {
        transform: translateY(0) rotate(0deg);
    }

    50% {
        transform: translateY(-10px) rotate(10deg);
    }
}

/* ============= RESPONSIVE ============= */
/* ============= RESPONSIVE ============= */
@media (max-width: 768px) {
    .navbar {
        padding: 0.75rem 1.5rem;
    }

    .nav-links {
        display: none;
    }

    .nav-brand {
        width: 100%;
        justify-content: center;
    }

    .hero {
        padding: 8rem 1.5rem 3rem;
        /* Increased top padding to clear navbar */
        min-height: 100vh;
        /* Restore min-height for better spacing */
        display: flex;
        flex-direction: column;
        justify-content: center;
    }

    .hero-title {
        font-size: clamp(2.5rem, 10vw, 3.5rem);
        margin-bottom: 1rem;
    }

    .hero-subtitle {
        font-size: 1rem;
        padding: 0;
        margin-bottom: 2rem;
    }

    /* Fix Upload Zone Layout */
    .upload-zone {
        padding: 2rem 1.5rem;
        margin: 0 auto;
        width: 100%;
        max-width: 100%;
        box-sizing: border-box;
    }

    .upload-content {
        display: flex;
        flex-direction: column;
        align-items: center;
        width: 100%;
    }

    .upload-icon {
        font-size: 3rem;
        margin-bottom: 1rem;
    }

    .upload-zone h3 {
        font-size: 1.3rem;
        text-align: center;
    }

    .upload-zone p {
        font-size: 0.95rem;
        text-align: center;
    }

    .upload-hint {
        font-size: 0.75rem;
        white-space: normal;
        text-align: center;
        line-height: 1.4;
    }

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

    .result-card {
        padding: 1.5rem;
    }

    .share-buttons {
        flex-direction: column;
        align-items: center;
        gap: 1rem;
    }

    .share-btn {
        width: 100%;
        max-width: 100%;
        justify-content: center;
    }

    .hero-decoration {
        font-size: 3rem;
        opacity: 0.1;
    }
}