/* IMPOSTOR Game Website - Modern CSS */

/* ==================== FONTS ==================== */
@font-face {
    font-family: 'Nunito Sans';
    src: url('../fonts/NunitoSans/NunitoSans-Medium.ttf') format('truetype');
    font-weight: 500;
    font-style: normal;
    font-display: swap;
}

@font-face {
    font-family: 'Nunito Sans';
    src: url('../fonts/NunitoSans/NunitoSans-SemiBold.ttf') format('truetype');
    font-weight: 600;
    font-style: normal;
    font-display: swap;
}

@font-face {
    font-family: 'Nunito Sans';
    src: url('../fonts/NunitoSans/NunitoSans-Bold.ttf') format('truetype');
    font-weight: 700;
    font-style: normal;
    font-display: swap;
}

@font-face {
    font-family: 'Baloo 2';
    src: url('../fonts/Baloo2/Baloo2-Regular.ttf') format('truetype');
    font-weight: 400;
    font-style: normal;
    font-display: swap;
}

@font-face {
    font-family: 'Baloo 2';
    src: url('../fonts/Baloo2/Baloo2-Medium.ttf') format('truetype');
    font-weight: 500;
    font-style: normal;
    font-display: swap;
}

@font-face {
    font-family: 'Baloo 2';
    src: url('../fonts/Baloo2/Baloo2-SemiBold.ttf') format('truetype');
    font-weight: 600;
    font-style: normal;
    font-display: swap;
}

@font-face {
    font-family: 'Baloo 2';
    src: url('../fonts/Baloo2/Baloo2-Bold.ttf') format('truetype');
    font-weight: 700;
    font-style: normal;
    font-display: swap;
}

@font-face {
    font-family: 'Baloo 2';
    src: url('../fonts/Baloo2/Baloo2-ExtraBold.ttf') format('truetype');
    font-weight: 800;
    font-style: normal;
    font-display: swap;
}

/* ==================== RESET & BASE ==================== */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

:root {
    --primary-cyan: #5FD8F1;
    --primary-magenta: #ff00ff;
    --accent-pink: #ff1493;
    --accent-blue: #00bfff;
    --green: #4CAF50;
    --red: #ff4444;
    --yellow: #ffeb3b;
    --purple: #ba68c8;
    --dark-bg: #0a0a14;
    --dark-purple: #1a1a2e;
    --dark-purple-2: #2d1b3d;
    --glass-bg: rgba(255, 255, 255, 0.05);
    --glass-border: rgba(255, 255, 255, 0.1);
    --text-light: #ffffff;
    --text-gray: #cccccc;
    --text-dark: #aaaaaa;
}

html {
    scroll-behavior: smooth;
}

body {
    font-family: 'Nunito Sans', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Oxygen, Ubuntu, Cantarell, sans-serif;
    background: rgba(26, 23, 39, 1);
    color: var(--text-light);
    line-height: 1.6;
    overflow-x: hidden;
    position: relative;
    background: linear-gradient(to right, #3d2c5f, #2a1f3f);
}

/* ==================== HEADER ==================== */
header {
    padding: 1.5rem 2rem;
    display: flex;
    justify-content: space-between;
    align-items: center;
    border-bottom: 1px solid var(--glass-border);
    animation: slideDown 0.5s ease-out;
}

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

.logo {
    text-decoration: none;
    position: relative;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: opacity 0.3s ease;
}

.logo:hover {
    opacity: 0.8;
}

.logo-icon {
    width: 50px;
    height: 50px;
}

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

nav a {
    color: var(--text-light);
    text-decoration: none;
    font-weight: 500;
    position: relative;
    padding: 0.5rem 1rem;
    transition: color 0.3s ease;
    font-size: 1rem;
}

nav a::before {
    content: '';
    position: absolute;
    bottom: 0;
    left: 50%;
    transform: translateX(-50%);
    width: 0;
    height: 2px;
    background: linear-gradient(90deg, var(--primary-cyan), var(--primary-magenta));
    transition: width 0.3s ease;
}

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

nav a:hover::before {
    width: 80%;
}

/* ==================== HERO SECTION ==================== */
.hero {
    text-align: center;
    padding: 6rem 2rem 4rem;
    max-width: 1200px;
    margin: 0 auto;
    animation: fadeInUp 0.8s ease-out;
    position: relative;
}

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

.hero-logo {
    width: 120px;
    height: 120px;
    margin: 0 auto 2rem;
    display: block;
}

h1 {
    font-family: 'Baloo 2', cursive;
    font-size: 4.5rem;
    margin-bottom: 1.5rem;
    background: linear-gradient(135deg, var(--primary-cyan), var(--primary-magenta), var(--accent-pink));
    background-size: 200% 200%;
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    font-weight: 800;
    letter-spacing: 2px;
    animation: gradientShift 5s ease infinite;
}

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

.tagline {
    font-size: 1.8rem;
    color: var(--text-gray);
    margin-bottom: 3rem;
    font-weight: 300;
    letter-spacing: 1px;
    animation: fadeInUp 0.8s ease-out 0.2s both;
}

/* ==================== DOWNLOAD SECTION ==================== */
.download-section {
    margin: 3rem auto;
    padding: 3rem;
    background: var(--glass-bg);
    border-radius: 30px;
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    border: 1px solid var(--glass-border);
    box-shadow:
        0 20px 60px rgba(0, 0, 0, 0.5),
        inset 0 1px 0 rgba(255, 255, 255, 0.1);
    animation: fadeInUp 0.8s ease-out 0.4s both;
    position: relative;
    overflow: hidden;
}

.download-section::before {
    content: '';
    position: absolute;
    top: -50%;
    left: -50%;
    width: 200%;
    height: 200%;
    background: linear-gradient(45deg, transparent, rgba(0, 255, 255, 0.05), transparent);
    transform: rotate(45deg);
    animation: shimmer 3s infinite;
}

@keyframes shimmer {
    0% { transform: translateX(-100%) rotate(45deg); }
    100% { transform: translateX(100%) rotate(45deg); }
}

#platform-text {
    font-size: 1.3rem;
    font-weight: 600;
    color: var(--text-light);
    margin-bottom: 2rem;
    position: relative;
    z-index: 1;
}

.download-buttons {
    display: flex;
    gap: 1.5rem;
    justify-content: center;
    flex-wrap: wrap;
    margin-top: 2rem;
    position: relative;
    z-index: 1;
}

.download-buttons a {
    transition: opacity 0.3s ease;
    display: inline-block;
}

.download-buttons a img {
    display: block;
    height: 60px;
    width: auto;
}

.download-buttons a:hover {
    opacity: 0.6;
}

/* ==================== BUTTONS ==================== */
.btn {
    padding: 1.2rem 3rem;
    font-size: 1.2rem;
    border: none;
    border-radius: 50px;
    cursor: pointer;
    transition: all 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275);
    text-decoration: none;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 0.8rem;
    font-weight: 700;
    position: relative;
    overflow: hidden;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.3);
}

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

.btn:hover::before {
    width: 300px;
    height: 300px;
}

.btn-primary {
    background: linear-gradient(135deg, var(--primary-magenta), var(--accent-pink));
    color: var(--text-light);
    position: relative;
    z-index: 1;
}

.btn-primary:hover {
    transform: translateY(-5px) scale(1.05);
    box-shadow: 0 10px 20px rgba(0, 0, 0, 0.3);
}

.btn-secondary {
    background: linear-gradient(135deg, var(--primary-cyan), var(--accent-blue));
    color: #000;
    position: relative;
    z-index: 1;
}

.btn-secondary:hover {
    transform: translateY(-5px) scale(1.05);
    box-shadow: 0 10px 20px rgba(0, 0, 0, 0.3);
}

/* ==================== FEATURES SECTION ==================== */
.features {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 2.5rem;
    padding: 6rem 2rem;
    max-width: 1300px;
    margin: 0 auto;
}

.feature-card {
    background: var(--glass-bg);
    padding: 2.5rem;
    border-radius: 25px;
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    border: 1px solid var(--glass-border);
    transition: all 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275);
    position: relative;
    overflow: hidden;
    animation: fadeInUp 0.6s ease-out both;
}

.feature-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(135deg, rgba(0, 255, 255, 0.1), rgba(255, 0, 255, 0.1));
    opacity: 0;
    transition: opacity 0.4s ease;
}

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

.feature-card:nth-child(1) { animation-delay: 0.1s; }
.feature-card:nth-child(2) { animation-delay: 0.2s; }
.feature-card:nth-child(3) { animation-delay: 0.3s; }
.feature-card:nth-child(4) { animation-delay: 0.4s; }
.feature-card:nth-child(5) { animation-delay: 0.5s; }
.feature-card:nth-child(6) { animation-delay: 0.6s; }

.feature-card:hover {
    transform: translateY(-15px) scale(1.02);
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.4);
    border-color: var(--primary-magenta);
}

.feature-icon {
    font-size: 4rem;
    margin-bottom: 1.5rem;
    animation: float 3s ease-in-out infinite;
    position: relative;
    z-index: 1;
}

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

.feature-card:hover .feature-icon {
    animation: bounce 0.6s ease;
}

@keyframes bounce {
    0%, 100% { transform: translateY(0); }
    25% { transform: translateY(-15px); }
    50% { transform: translateY(0); }
    75% { transform: translateY(-7px); }
}

.feature-card h3 {
    color: var(--primary-magenta);
    margin-bottom: 1rem;
    font-size: 1.6rem;
    font-weight: 700;
    position: relative;
    z-index: 1;
}

.feature-card p {
    color: var(--text-gray);
    line-height: 1.8;
    position: relative;
    z-index: 1;
}

/* ==================== CATEGORIES SECTION ==================== */
.categories {
    padding: 6rem 2rem;
    max-width: 1300px;
    margin: 0 auto;
    text-align: center;
}

.categories h2 {
    font-family: 'Baloo 2', cursive;
    font-size: 3.5rem;
    margin-bottom: 1rem;
    color: var(--primary-cyan);
    font-weight: 800;
}

.categories > p {
    color: var(--text-gray);
    font-size: 1.2rem;
    margin-bottom: 3rem;
}

.category-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(160px, 1fr));
    gap: 1.5rem;
    margin-top: 3rem;
}

.category-badge {
    padding: 1.8rem 1rem;
    border-radius: 20px;
    font-weight: 700;
    color: #000;
    font-size: 1.1rem;
    transition: all 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275);
    cursor: pointer;
    position: relative;
    overflow: hidden;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.3);
}

.category-badge::before {
    content: '';
    position: absolute;
    top: 50%;
    left: 50%;
    width: 0;
    height: 0;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.3);
    transform: translate(-50%, -50%);
    transition: width 0.6s, height 0.6s;
}

.category-badge:hover::before {
    width: 300px;
    height: 300px;
}

.category-badge:hover {
    transform: translateY(-10px) scale(1.05) rotate(2deg);
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.4);
}

.cat-cyan {
    background: linear-gradient(135deg, rgba(95, 216, 241, 0.95), rgba(0, 191, 255, 0.95));
}

.cat-red {
    background: linear-gradient(135deg, rgba(255, 68, 68, 0.95), rgba(255, 102, 102, 0.95));
}

.cat-green {
    background: linear-gradient(135deg, rgba(76, 175, 80, 0.95), rgba(102, 187, 106, 0.95));
}

.cat-yellow {
    background: linear-gradient(135deg, rgba(255, 235, 59, 0.95), rgba(253, 216, 53, 0.95));
}

.cat-purple {
    background: linear-gradient(135deg, rgba(186, 104, 200, 0.95), rgba(171, 71, 188, 0.95));
}

.cat-blue {
    background: linear-gradient(135deg, rgba(92, 107, 192, 0.95), rgba(121, 134, 203, 0.95));
}

/* Category patterns - using background images */
.category-badge::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    opacity: 0.15;
    border-radius: 20px;
    background-size: 60px 60px;
    pointer-events: none;
}

/* ==================== HOW TO PLAY SECTION ==================== */
.how-to-play {
    padding: 6rem 2rem;
    max-width: 1000px;
    margin: 0 auto;
    text-align: center;
}

.how-to-play h2 {
    font-family: 'Baloo 2', cursive;
    font-size: 3.5rem;
    margin-bottom: 3rem;
    color: var(--primary-magenta);
    font-weight: 800;
}

.steps {
    display: flex;
    flex-direction: column;
    gap: 2rem;
    text-align: left;
}

.step {
    background: var(--glass-bg);
    padding: 2rem;
    border-radius: 20px;
    border-left: 5px solid var(--primary-magenta);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    transition: all 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275);
    animation: fadeInLeft 0.6s ease-out both;
    position: relative;
    overflow: hidden;
}

.step::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 5px;
    height: 100%;
    background: linear-gradient(180deg, var(--primary-cyan), var(--primary-magenta));
    transform: scaleY(0);
    transform-origin: top;
    transition: transform 0.4s ease;
}

.step:hover::before {
    transform: scaleY(1);
}

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

.step:nth-child(1) { animation-delay: 0.1s; }
.step:nth-child(2) { animation-delay: 0.2s; }
.step:nth-child(3) { animation-delay: 0.3s; }
.step:nth-child(4) { animation-delay: 0.4s; }
.step:nth-child(5) { animation-delay: 0.5s; }
.step:nth-child(6) { animation-delay: 0.6s; }
.step:nth-child(7) { animation-delay: 0.7s; }

.step:hover {
    transform: translateX(10px);
    box-shadow: 0 10px 20px rgba(0, 0, 0, 0.3);
    border-left-color: var(--primary-cyan);
}

.step-number {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 45px;
    height: 45px;
    background: linear-gradient(135deg, var(--primary-magenta), var(--accent-pink));
    border-radius: 50%;
    text-align: center;
    margin-right: 1.5rem;
    font-weight: 900;
    font-size: 1.3rem;
    box-shadow: 0 3px 8px rgba(0, 0, 0, 0.3);
    transition: transform 0.3s ease;
}

.step:hover .step-number {
    transform: scale(1.2) rotate(360deg);
}

.step strong {
    color: var(--primary-cyan);
}

/* ==================== CONTAINER (for other pages) ==================== */
.container {
    max-width: 900px;
    margin: 3rem auto;
    padding: 3rem;
    background: var(--glass-bg);
    border-radius: 30px;
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    border: 1px solid var(--glass-border);
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.5);
    animation: fadeInUp 0.6s ease-out;
}

.last-updated {
    color: var(--text-dark);
    margin-bottom: 2rem;
    font-style: italic;
    font-size: 0.95rem;
}

.intro {
    text-align: center;
    color: var(--text-gray);
    margin-bottom: 3rem;
    font-size: 1.2rem;
}

h2 {
    font-family: 'Baloo 2', cursive;
    color: var(--primary-magenta);
    margin-top: 2.5rem;
    margin-bottom: 1.5rem;
    font-size: 2.2rem;
    font-weight: 700;
}

h3 {
    font-family: 'Baloo 2', cursive;
    color: var(--primary-cyan);
    margin-top: 2rem;
    margin-bottom: 1rem;
    font-size: 1.6rem;
    font-weight: 600;
}

p {
    margin-bottom: 1.2rem;
    color: var(--text-gray);
    line-height: 1.8;
}

ul {
    margin-left: 2.5rem;
    margin-bottom: 1.5rem;
}

li {
    margin-bottom: 0.8rem;
    color: var(--text-gray);
}

a {
    color: var(--primary-cyan);
    text-decoration: none;
    transition: all 0.3s ease;
    position: relative;
}

a:hover {
    color: var(--primary-magenta);
}

/* ==================== CONTACT PAGE ==================== */
.contact-methods {
    display: flex;
    flex-direction: column;
    gap: 2rem;
}

.contact-card {
    background: var(--glass-bg);
    padding: 2.5rem;
    border-radius: 20px;
    border: 1px solid var(--glass-border);
    transition: all 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275);
    position: relative;
    overflow: hidden;
}

.contact-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(135deg, rgba(0, 255, 255, 0.05), rgba(255, 0, 255, 0.05));
    opacity: 0;
    transition: opacity 0.4s ease;
}

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

.contact-card:hover {
    transform: translateY(-10px) scale(1.02);
    box-shadow: 0 15px 30px rgba(0, 0, 0, 0.3);
    border-color: var(--primary-magenta);
}

.contact-icon {
    font-size: 3.5rem;
    margin-bottom: 1.5rem;
    animation: float 3s ease-in-out infinite;
}

.contact-card h2 {
    color: var(--primary-magenta);
    margin-bottom: 1rem;
    font-size: 1.8rem;
    margin-top: 0;
}

.contact-card p {
    color: var(--text-gray);
    margin-bottom: 1.5rem;
}

.email-link {
    display: inline-block;
    padding: 1rem 2.5rem;
    background: linear-gradient(135deg, var(--primary-cyan), var(--accent-blue));
    color: #000;
    text-decoration: none;
    border-radius: 50px;
    font-weight: 700;
    transition: all 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275);
    box-shadow: 0 3px 10px rgba(0, 0, 0, 0.2);
    position: relative;
    overflow: hidden;
}

.email-link::before {
    content: '';
    position: absolute;
    top: 50%;
    left: 50%;
    width: 0;
    height: 0;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.3);
    transform: translate(-50%, -50%);
    transition: width 0.6s, height 0.6s;
}

.email-link:hover::before {
    width: 300px;
    height: 300px;
}

.email-link:hover {
    transform: scale(1.1);
    box-shadow: 0 8px 20px rgba(0, 0, 0, 0.3);
    color: #000;
}

/* ==================== FOOTER ==================== */
footer {
    padding: 2rem 3rem;
    margin-top: 6rem;
    border-top: 1px solid var(--glass-border);
    display: flex;
    justify-content: space-between;
    align-items: center;
}

footer p {
    color: var(--text-gray);
    margin: 0;
}

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

footer a {
    color: #ffffff;
    text-decoration: none;
    transition: all 0.3s ease;
    font-weight: 500;
}

footer a:hover {
    color: var(--primary-cyan);
}

/* ==================== UTILITIES ==================== */
.hidden {
    display: none !important;
}

/* ==================== RESPONSIVE DESIGN ==================== */
@media (max-width: 1024px) {
    .features {
        grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
        gap: 2rem;
    }
}

@media (max-width: 768px) {
    h1 {
        font-size: 2.5rem;
    }

    .tagline {
        font-size: 1.3rem;
    }

    header {
        flex-direction: column;
        gap: 1.5rem;
        padding: 1.5rem;
    }

    nav {
        flex-direction: row;
        flex-wrap: wrap;
        gap: 1rem;
        justify-content: center;
    }

    nav a {
        font-size: 0.9rem;
        padding: 0.5rem;
    }

    .hero {
        padding: 4rem 1.5rem 3rem;
    }

    .download-section {
        padding: 2rem;
        margin: 2rem 1rem;
    }

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

    .btn {
        width: 100%;
        padding: 1rem 2rem;
        font-size: 1.1rem;
    }

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

    .categories {
        padding: 4rem 1.5rem;
    }

    .categories h2 {
        font-size: 2rem;
    }

    .category-grid {
        grid-template-columns: repeat(auto-fit, minmax(130px, 1fr));
        gap: 1rem;
    }

    .category-badge {
        padding: 1.5rem 0.8rem;
        font-size: 1rem;
    }

    .how-to-play {
        padding: 4rem 1.5rem;
    }

    .how-to-play h2 {
        font-size: 2rem;
    }

    .step {
        padding: 1.5rem;
    }

    .step-number {
        width: 35px;
        height: 35px;
        font-size: 1.1rem;
        margin-right: 1rem;
    }

    .container {
        margin: 2rem 1rem;
        padding: 2rem;
    }

    h2 {
        font-size: 1.6rem;
    }

    h3 {
        font-size: 1.3rem;
    }

    .contact-icon {
        font-size: 3rem;
    }

    footer {
        flex-direction: column-reverse;
        gap: 1.5rem;
        padding: 2rem 1.5rem;
        text-align: center;
    }

    .footer-links {
        flex-direction: row;
        gap: 1rem;
    }
}

@media (max-width: 480px) {
    h1 {
        font-size: 2rem;
        letter-spacing: 1px;
    }

    .tagline {
        font-size: 1.1rem;
    }

    .logo {
        font-size: 1.5rem;
    }

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

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

/* ==================== SCROLL ANIMATIONS ==================== */
@media (prefers-reduced-motion: no-preference) {
    .feature-card,
    .step,
    .category-badge {
        opacity: 0;
        animation: fadeInUp 0.6s ease-out forwards;
    }
}

/* Disable animations for users who prefer reduced motion */
@media (prefers-reduced-motion: reduce) {
    *,
    *::before,
    *::after {
        animation-duration: 0.01ms !important;
        animation-iteration-count: 1 !important;
        transition-duration: 0.01ms !important;
    }
}

/* ==================== DECORATIVE ELEMENTS ==================== */
.hero-character {
    position: absolute;
    width: 120px;
    height: auto;
    opacity: 0.8;
    animation: floatCharacter 4s ease-in-out infinite;
    pointer-events: none;
}

.hero-character-left {
    left: 5%;
    top: 20%;
    animation-delay: 0s;
}

.hero-character-right {
    right: 5%;
    top: 30%;
    animation-delay: 1s;
}

@keyframes floatCharacter {
    0%, 100% {
        transform: translateY(0) rotate(-5deg);
    }
    50% {
        transform: translateY(-20px) rotate(5deg);
    }
}

.feature-character {
    width: 80px;
    height: auto;
    position: absolute;
    top: -30px;
    right: -20px;
    opacity: 0.6;
    transition: all 0.4s ease;
}

.feature-card:hover .feature-character {
    opacity: 1;
    transform: scale(1.2) rotate(10deg);
}

/* Category Badge with Icons */
.category-badge {
    position: relative;
    overflow: visible;
}

.category-icon {
    width: 40px;
    height: 40px;
    margin-bottom: 0.5rem;
}

@media (max-width: 768px) {
    .hero-character {
        width: 80px;
    }

    .hero-character-left,
    .hero-character-right {
        display: none;
    }

    .feature-character {
        width: 60px;
    }

    .category-icon {
        width: 35px;
        height: 35px;
    }
}
