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

:root {
    --primary-blue: #0099ff;
    --primary-yellow: #ffcc00;
    --dark-blue: #003366;
    --light-bg: #f0f8ff;
    --text-color: #333;
    --white: #ffffff;
    --gray-100: #f7fafc;
    --gray-200: #edf2f7;
    --gray-300: #e2e8f0;
    --gray-600: #718096;
    --gray-800: #2d3748;
}

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

body {
    font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
    background: linear-gradient(135deg, #f0f8ff 0%, #e6f3ff 100%);
    color: var(--text-color);
    line-height: 1.7;
    font-size: 16px;
    position: relative;
    overflow-x: hidden;
}

/* Create more random emojis using additional pseudo-elements on different sections */
.hero::before,
.hero::after,
.info-section::before,
.info-section::after,
.feature-card::before {
    content: '';
    position: absolute;
    z-index: 0;
    pointer-events: none;
    opacity: 0.04;
    font-size: 2rem;
    line-height: 1;
}

/* More scattered emojis */
.gallery::before,
.gallery::after,
.contact-form::before,
.contact-form::after,
.section-title::before {
    content: '';
    position: absolute;
    z-index: 0;
    pointer-events: none;
    opacity: 0.04;
    font-size: 2rem;
    line-height: 1;
}
.gallery {
    position: relative;
}

.contact-form {
    position: relative;
}

/* Even more scattered emojis */
footer::before,
footer::after,
nav::before,
.tech-badges::before,
.tech-badges::after,
.feature-grid::before,
.feature-grid::after {
    content: '';
    position: absolute;
    z-index: 0;
    pointer-events: none;
    opacity: 0.04;
    font-size: 2rem;
    line-height: 1;
}

footer {
    position: relative;
}

nav {
    position: relative;
}

.tech-badges {
    position: relative;
}

.feature-grid {
    position: relative;
}

header {
    background: linear-gradient(135deg, var(--primary-blue) 0%, #0088e6 100%);
    padding: 1.2rem 0;
    box-shadow: 0 4px 20px rgba(0, 153, 255, 0.3);
    position: sticky;
    top: 0;
    z-index: 1000;
    border-bottom: 3px solid var(--primary-yellow);
}

nav {
    max-width: 1200px;
    margin: 0 auto;
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 0 20px;
}

.logo-container {
    display: flex;
    align-items: center;
    gap: 12px;
}


.logo-text {
    color: var(--white);
    font-family: 'Poppins', sans-serif;
    font-size: 1.6rem;
    font-weight: 700;
    text-decoration: none;
    text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.2);
    letter-spacing: -0.5px;
    transition: transform 0.2s ease;
}

.logo-text:hover {
    transform: translateY(-2px);
}

.burger-menu {
    display: none;
    flex-direction: column;
    cursor: pointer;
    gap: 5px;
    padding: 8px;
    border-radius: 6px;
    transition: background-color 0.3s ease;
}

.burger-menu:hover {
    background-color: rgba(255, 255, 255, 0.1);
}

.burger-menu span {
    width: 28px;
    height: 3px;
    background-color: var(--white);
    transition: all 0.3s cubic-bezier(0.68, -0.55, 0.265, 1.55);
    border-radius: 3px;
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.2);
}

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

.burger-menu.active span:nth-child(2) {
    opacity: 0;
    transform: translateX(-10px);
}

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

.nav-links {
    list-style: none;
    display: flex;
    gap: 30px;
}

.nav-links a {
    color: var(--white);
    text-decoration: none;
    font-weight: 600;
    font-size: 1rem;
    transition: all 0.3s ease;
    padding: 8px 16px;
    border-radius: 8px;
    position: relative;
}

.nav-links a::after {
    content: '';
    position: absolute;
    bottom: 4px;
    left: 50%;
    transform: translateX(-50%);
    width: 0;
    height: 2px;
    background: var(--primary-yellow);
    transition: width 0.3s ease;
}

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

.nav-links a:hover {
    color: var(--primary-yellow);
    background-color: rgba(255, 255, 255, 0.1);
    transform: translateY(-2px);
}

main {
    max-width: 1200px;
    margin: 0 auto;
    padding: 60px 20px;
    min-height: 80vh;
    position: relative;
    z-index: 1;
}

.hero {
    text-align: center;
    padding: 80px 40px;
    background: linear-gradient(135deg, var(--primary-blue) 0%, #4facfe 100%);
    color: white;
    border-radius: 24px;
    margin-bottom: 60px;
    box-shadow: 0 20px 60px rgba(0, 153, 255, 0.4), 
                0 0 0 1px rgba(255, 255, 255, 0.1) inset;
    border: 3px solid rgba(255, 255, 255, 0.2);
    position: relative;
    overflow: hidden;
}

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

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

.hero img {
    border-radius: 24px;
    position: relative;
    z-index: 1;
}

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

.hero h1 {
    font-family: 'Poppins', sans-serif;
    font-size: 3.5rem;
    font-weight: 800;
    margin-bottom: 24px;
    text-shadow: 3px 3px 6px rgba(0, 0, 0, 0.3);
    position: relative;
    z-index: 1;
    letter-spacing: -1px;
}

.hero p {
    font-size: 1.3rem;
    margin-bottom: 40px;
    max-width: 700px;
    margin-left: auto;
    margin-right: auto;
    position: relative;
    z-index: 1;
    line-height: 1.8;
    text-shadow: 1px 1px 3px rgba(0, 0, 0, 0.2);
}

.cta-button {
    display: inline-block;
    background: linear-gradient(135deg, var(--primary-yellow) 0%, #ffd700 100%);
    color: var(--dark-blue);
    padding: 18px 40px;
    border-radius: 50px;
    text-decoration: none;
    font-weight: 700;
    font-size: 1.2rem;
    font-family: 'Poppins', sans-serif;
    transition: all 0.3s cubic-bezier(0.68, -0.55, 0.265, 1.55);
    border: 3px solid rgba(255, 255, 255, 0.5);
    box-shadow: 0 8px 25px rgba(255, 204, 0, 0.4),
                0 0 0 0 rgba(255, 204, 0, 0.4);
    position: relative;
    z-index: 1;
    letter-spacing: 0.5px;
}

.cta-button:hover {
    transform: translateY(-4px) scale(1.05);
    box-shadow: 0 12px 35px rgba(255, 204, 0, 0.6),
                0 0 0 8px rgba(255, 204, 0, 0.1);
}

.cta-button:active {
    transform: translateY(-2px) scale(1.02);
}

.section-title {
    text-align: center;
    color: var(--dark-blue);
    margin-bottom: 50px;
    font-family: 'Poppins', sans-serif;
    font-size: 2.8rem;
    font-weight: 700;
    letter-spacing: -1px;
    text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.1);
    position: relative;
    padding-bottom: 20px;
}

.section-title::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 50%;
    transform: translateX(-50%);
    width: 80px;
    height: 4px;
    background: var(--primary-yellow);
    border-radius: 2px;
}

.gallery {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
    gap: 30px;
    margin-bottom: 80px;
}

.gallery-item {
    background: var(--white);
    padding: 20px;
    border-radius: 20px;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.1),
                0 0 0 1px rgba(0, 0, 0, 0.05);
    text-align: center;
    transition: all 0.4s cubic-bezier(0.68, -0.55, 0.265, 1.55);
    border: 2px solid var(--gray-200);
    overflow: hidden;
    position: relative;
}

.gallery-item::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 4px;
    background: var(--primary-yellow);
    transform: scaleX(0);
    transition: transform 0.3s ease;
}

.gallery-item:hover::before {
    transform: scaleX(1);
}

.gallery-item:hover {
    transform: translateY(-8px);
    box-shadow: 0 20px 40px rgba(0, 153, 255, 0.2),
                0 0 0 1px rgba(0, 153, 255, 0.1);
    border-color: var(--primary-blue);
}

.gallery-item img,
.placeholder-img {
    width: 100%;
    height: auto;
    border-radius: 12px;
    transition: transform 0.4s ease;
    border: 2px solid var(--gray-200);
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
}

.gallery-item:hover img,
.gallery-item:hover .placeholder-img {
    transform: scale(1.05);
}

.gallery-item p {
    margin-top: 16px;
    color: var(--gray-600);
    font-weight: 500;
    font-size: 0.95rem;
}

.placeholder-img {
    background: linear-gradient(135deg, var(--gray-200) 0%, var(--gray-300) 100%);
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--gray-600);
    min-height: 200px;
    font-weight: 500;
    border: 2px dashed var(--gray-300);
}

.feature-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 30px;
    margin-bottom: 60px;
}

.feature-card {
    background: var(--white);
    padding: 35px;
    border-radius: 20px;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.1),
                0 0 0 1px rgba(0, 0, 0, 0.05);
    text-align: center;
    transition: all 0.4s cubic-bezier(0.68, -0.55, 0.265, 1.55);
    border: 2px solid var(--gray-200);
    overflow: hidden;
    position: relative;
}

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

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

.feature-card:hover {
    transform: translateY(-8px);
    box-shadow: 0 20px 40px rgba(0, 153, 255, 0.2),
                0 0 0 1px rgba(0, 153, 255, 0.1);
    border-color: var(--primary-blue);
}

.feature-card .icon {
    font-size: 3.5rem;
    margin-bottom: 20px;
    display: inline-block;
    animation: bounce 2s ease-in-out infinite;
    filter: drop-shadow(0 4px 8px rgba(0, 0, 0, 0.1));
}

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

.feature-card h3 {
    color: var(--primary-blue);
    margin-bottom: 15px;
    font-family: 'Poppins', sans-serif;
    font-size: 1.5rem;
    font-weight: 700;
    letter-spacing: -0.5px;
}

.feature-card p {
    color: var(--gray-600);
    line-height: 1.8;
    font-size: 1rem;
}

.feature-card ul {
    text-align: left;
    margin-top: 15px;
    list-style: none;
    padding-left: 0;
}

.feature-card ul li {
    padding: 8px 0;
    padding-left: 25px;
    position: relative;
    color: var(--gray-600);
}

.feature-card ul li::before {
    content: '✓';
    position: absolute;
    left: 0;
    color: var(--primary-blue);
    font-weight: bold;
    font-size: 1.2rem;
}

.contact-form {
    max-width: 650px;
    margin: 0 auto;
    background: var(--white);
    padding: 50px;
    border-radius: 24px;
    box-shadow: 0 15px 40px rgba(0, 0, 0, 0.1),
                0 0 0 1px rgba(0, 0, 0, 0.05);
    border: 2px solid var(--gray-200);
    animation: fadeInUp 0.6s ease-out;
}

.form-group {
    margin-bottom: 25px;
}

.form-group label {
    display: block;
    margin-bottom: 10px;
    color: var(--dark-blue);
    font-weight: 600;
    font-size: 0.95rem;
    font-family: 'Poppins', sans-serif;
}

.form-group input,
.form-group textarea,
.form-group select {
    width: 100%;
    padding: 14px 18px;
    border: 2px solid var(--gray-300);
    border-radius: 12px;
    font-size: 1rem;
    font-family: 'Inter', sans-serif;
    transition: all 0.3s ease;
    background: var(--white);
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.05);
}

.form-group input:focus,
.form-group textarea:focus,
.form-group select:focus {
    border-color: var(--primary-blue);
    outline: none;
    box-shadow: 0 4px 12px rgba(0, 153, 255, 0.2),
                0 0 0 3px rgba(0, 153, 255, 0.1);
    transform: translateY(-2px);
}

.tech-badges {
    display: flex;
    justify-content: center;
    gap: 15px;
    margin-top: 30px;
    flex-wrap: wrap;
}

.tech-badge {
    background: linear-gradient(135deg, #e1f0ff 0%, #cce7ff 100%);
    padding: 10px 20px;
    border-radius: 25px;
    color: var(--primary-blue);
    font-weight: 600;
    font-size: 0.9rem;
    border: 2px solid rgba(0, 153, 255, 0.2);
    box-shadow: 0 4px 12px rgba(0, 153, 255, 0.15);
    transition: all 0.3s ease;
}

.tech-badge:hover {
    transform: translateY(-3px);
    box-shadow: 0 6px 16px rgba(0, 153, 255, 0.25);
    border-color: var(--primary-blue);
}

footer {
    background: linear-gradient(135deg, var(--dark-blue) 0%, #002244 100%);
    color: var(--white);
    text-align: center;
    padding: 30px 20px;
    margin-top: 80px;
    box-shadow: 0 -4px 20px rgba(0, 0, 0, 0.1);
    border-top: 3px solid var(--primary-yellow);
}

footer p {
    font-size: 0.95rem;
    opacity: 0.9;
}

.info-section {
    background: var(--white);
    padding: 50px;
    border-radius: 24px;
    margin-bottom: 40px;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.08),
                0 0 0 1px rgba(0, 0, 0, 0.05);
    border: 2px solid var(--gray-200);
    animation: fadeInUp 0.6s ease-out;
    position: relative;
    overflow: hidden;
}

.info-section h2 {
    font-family: 'Poppins', sans-serif;
    color: var(--dark-blue);
    margin-bottom: 25px;
    font-size: 2rem;
    font-weight: 700;
}

.info-section p {
    color: var(--gray-600);
    line-height: 1.8;
    margin-bottom: 15px;
}

.info-section ul {
    list-style: none;
    padding-left: 0;
    margin-top: 20px;
}

.info-section ul li {
    padding: 12px 0;
    padding-left: 30px;
    position: relative;
    color: var(--gray-600);
    border-bottom: 1px solid var(--gray-200);
}

.info-section ul li:last-child {
    border-bottom: none;
}

.info-section ul li::before {
    content: '→';
    position: absolute;
    left: 0;
    color: var(--primary-blue);
    font-weight: bold;
    font-size: 1.2rem;
}

/* ============================================
   EVOLVE AND BATTLE SECTION
   ============================================ */

.evolve-battle-section {
    position: relative;
    margin: 60px -20px;
    padding: 80px 20px;
    overflow: hidden;
    border-radius: 24px;
}

.evolve-battle-bg {
    position: absolute;
    inset: 0;
    background: 
        radial-gradient(ellipse at 20% 30%, rgba(255, 100, 50, 0.15) 0%, transparent 50%),
        radial-gradient(ellipse at 80% 70%, rgba(138, 43, 226, 0.15) 0%, transparent 50%),
        radial-gradient(ellipse at 50% 50%, rgba(255, 204, 0, 0.08) 0%, transparent 70%),
        linear-gradient(180deg, #0a0a1a 0%, #1a1a2e 50%, #16213e 100%);
    z-index: 0;
}

.evolve-battle-bg::before {
    content: '';
    position: absolute;
    inset: 0;
    background-image: 
        radial-gradient(circle at 25% 25%, rgba(255, 255, 255, 0.02) 1px, transparent 1px),
        radial-gradient(circle at 75% 75%, rgba(255, 255, 255, 0.02) 1px, transparent 1px);
    background-size: 60px 60px;
    animation: bgPulse 8s ease-in-out infinite;
}

@keyframes bgPulse {
    0%, 100% { opacity: 0.5; }
    50% { opacity: 1; }
}

.evolve-battle-bg::after {
    content: '';
    position: absolute;
    inset: 0;
    background: radial-gradient(ellipse at 50% 0%, rgba(255, 204, 0, 0.05) 0%, transparent 50%);
    animation: lightning 8s ease-in-out infinite;
    pointer-events: none;
}

@keyframes lightning {
    0%, 89%, 91%, 93%, 100% { opacity: 0; }
    90%, 92% { opacity: 1; }
}

.evolve-battle-content {
    position: relative;
    z-index: 1;
    max-width: 900px;
    margin: 0 auto;
    text-align: center;
}

.evolve-title {
    font-family: 'Poppins', sans-serif;
    font-size: clamp(2rem, 8vw, 4rem);
    font-weight: 800;
    margin-bottom: 16px;
    letter-spacing: 2px;
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 12px;
    flex-wrap: wrap;
}

.title-evolve {
    background: linear-gradient(135deg, #00ff88 0%, #00d4aa 50%, #00b8d4 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    text-shadow: 0 0 40px rgba(0, 255, 136, 0.5);
    animation: glowEvolve 3s ease-in-out infinite;
}

@keyframes glowEvolve {
    0%, 100% { filter: drop-shadow(0 0 20px rgba(0, 255, 136, 0.6)); }
    50% { filter: drop-shadow(0 0 35px rgba(0, 255, 136, 0.9)); }
}

.title-and {
    color: rgba(255, 255, 255, 0.4);
    font-weight: 300;
    font-size: 0.6em;
}

.title-battle {
    background: linear-gradient(135deg, #ff6b35 0%, #ff4757 50%, #ff3366 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    animation: glowBattle 3s ease-in-out infinite 0.5s;
}

@keyframes glowBattle {
    0%, 100% { filter: drop-shadow(0 0 20px rgba(255, 107, 53, 0.6)); }
    50% { filter: drop-shadow(0 0 35px rgba(255, 107, 53, 0.9)); }
}

.evolve-subtitle {
    color: rgba(255, 255, 255, 0.7);
    font-size: 1.1rem;
    margin-bottom: 40px;
    font-weight: 400;
}

/* Pet Selector Tabs */
.pet-selector {
    display: flex;
    justify-content: center;
    gap: 12px;
    margin-bottom: 40px;
    flex-wrap: wrap;
}

.pet-tab {
    background: rgba(255, 255, 255, 0.05);
    border: 2px solid rgba(255, 255, 255, 0.1);
    border-radius: 16px;
    padding: 8px;
    cursor: pointer;
    transition: all 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275);
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 8px;
    width: 90px;
}

.pet-tab img {
    width: 60px;
    height: 60px;
    border-radius: 12px;
    object-fit: cover;
    transition: all 0.3s ease;
    filter: grayscale(30%);
}

.pet-tab .pet-name {
    color: rgba(255, 255, 255, 0.6);
    font-size: 0.75rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.pet-tab:hover {
    background: rgba(255, 255, 255, 0.1);
    border-color: rgba(255, 204, 0, 0.3);
    transform: translateY(-4px);
}

.pet-tab:hover img {
    filter: grayscale(0%);
    transform: scale(1.05);
}

.pet-tab.active {
    background: linear-gradient(135deg, rgba(255, 204, 0, 0.2) 0%, rgba(255, 107, 53, 0.2) 100%);
    border-color: var(--primary-yellow);
    box-shadow: 
        0 0 20px rgba(255, 204, 0, 0.3),
        inset 0 0 20px rgba(255, 204, 0, 0.05);
}

.pet-tab.active img {
    filter: grayscale(0%);
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.3);
}

.pet-tab.active .pet-name {
    color: var(--primary-yellow);
}

/* Evolution Display */
.evolution-display {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 30px;
}

.evolution-stage {
    position: relative;
    width: min(320px, 85vw);
    height: min(320px, 85vw);
    display: flex;
    align-items: center;
    justify-content: center;
}

.stage-glow {
    position: absolute;
    inset: -20px;
    background: radial-gradient(circle, rgba(255, 204, 0, 0.3) 0%, transparent 70%);
    border-radius: 50%;
    animation: stageGlow 2s ease-in-out infinite;
    pointer-events: none;
}

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

.evolution-stage img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    border-radius: 24px;
    box-shadow: 
        0 20px 60px rgba(0, 0, 0, 0.5),
        0 0 0 3px rgba(255, 255, 255, 0.1),
        inset 0 0 30px rgba(255, 255, 255, 0.05);
    transition: all 0.5s cubic-bezier(0.175, 0.885, 0.32, 1.275);
    position: relative;
    z-index: 1;
}

.evolution-stage img.evolving {
    animation: evolveFlash 0.5s ease-out;
}

@keyframes evolveFlash {
    0% { transform: scale(1); filter: brightness(1); }
    30% { transform: scale(1.08); filter: brightness(1.5) saturate(1.3); }
    100% { transform: scale(1); filter: brightness(1); }
}

.level-badge {
    position: absolute;
    bottom: -12px;
    left: 50%;
    transform: translateX(-50%);
    background: linear-gradient(135deg, #ffcc00 0%, #ff9500 100%);
    color: #1a1a2e;
    padding: 8px 24px;
    border-radius: 30px;
    font-family: 'Poppins', sans-serif;
    font-weight: 800;
    font-size: 1rem;
    letter-spacing: 1px;
    box-shadow: 
        0 4px 20px rgba(255, 204, 0, 0.5),
        inset 0 2px 0 rgba(255, 255, 255, 0.3);
    z-index: 2;
    transition: all 0.3s ease;
}

/* Level Progress Bar */
.level-progress-container {
    width: 100%;
    max-width: 400px;
    position: relative;
    padding-top: 30px;
}

.level-markers {
    display: flex;
    justify-content: space-between;
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    padding: 0 8px;
}

.level-marker {
    color: rgba(255, 255, 255, 0.4);
    font-size: 0.75rem;
    font-weight: 600;
    transition: all 0.3s ease;
    width: 20px;
    text-align: center;
}

.level-marker.active {
    color: var(--primary-yellow);
    transform: scale(1.2);
}

.level-marker.max-level {
    color: #ff6b35;
}

.level-slider {
    -webkit-appearance: none;
    appearance: none;
    width: 100%;
    height: 8px;
    background: rgba(255, 255, 255, 0.1);
    border-radius: 10px;
    outline: none;
    cursor: pointer;
    position: relative;
    z-index: 2;
}

.level-slider::-webkit-slider-thumb {
    -webkit-appearance: none;
    appearance: none;
    width: 28px;
    height: 28px;
    background: linear-gradient(135deg, #ffcc00 0%, #ff9500 100%);
    border-radius: 50%;
    cursor: grab;
    box-shadow: 
        0 2px 10px rgba(255, 204, 0, 0.5),
        0 0 0 4px rgba(255, 204, 0, 0.2);
    transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.level-slider::-webkit-slider-thumb:hover {
    transform: scale(1.1);
    box-shadow: 
        0 4px 15px rgba(255, 204, 0, 0.7),
        0 0 0 6px rgba(255, 204, 0, 0.3);
}

.level-slider::-webkit-slider-thumb:active {
    cursor: grabbing;
    transform: scale(0.95);
}

.level-slider::-moz-range-thumb {
    width: 28px;
    height: 28px;
    background: linear-gradient(135deg, #ffcc00 0%, #ff9500 100%);
    border-radius: 50%;
    cursor: grab;
    border: none;
    box-shadow: 
        0 2px 10px rgba(255, 204, 0, 0.5),
        0 0 0 4px rgba(255, 204, 0, 0.2);
}

.slider-track-fill {
    position: absolute;
    bottom: 0;
    left: 0;
    height: 8px;
    background: linear-gradient(90deg, #00ff88 0%, #ffcc00 50%, #ff6b35 100%);
    border-radius: 10px;
    pointer-events: none;
    z-index: 1;
    transition: width 0.1s ease;
}

/* Auto-play Button */
.autoplay-btn {
    display: flex;
    align-items: center;
    gap: 10px;
    background: transparent;
    border: 2px solid rgba(255, 255, 255, 0.2);
    color: rgba(255, 255, 255, 0.7);
    padding: 12px 28px;
    border-radius: 30px;
    font-family: 'Poppins', sans-serif;
    font-weight: 600;
    font-size: 0.95rem;
    cursor: pointer;
    transition: all 0.3s ease;
    margin-top: 10px;
}

.autoplay-btn:hover {
    background: rgba(255, 255, 255, 0.05);
    border-color: var(--primary-yellow);
    color: var(--primary-yellow);
}

.autoplay-btn.playing {
    background: linear-gradient(135deg, rgba(255, 204, 0, 0.2) 0%, rgba(255, 107, 53, 0.2) 100%);
    border-color: var(--primary-yellow);
    color: var(--primary-yellow);
}

.autoplay-btn .play-icon {
    font-size: 0.8rem;
    transition: transform 0.3s ease;
}

.autoplay-btn.playing .play-icon {
    animation: pulse 1s ease-in-out infinite;
}

@keyframes pulse {
    0%, 100% { transform: scale(1); }
    50% { transform: scale(1.2); }
}

/* Evolution Timeline (horizontal scroll for mobile) */
.evolution-timeline {
    display: none;
    gap: 12px;
    overflow-x: auto;
    padding: 20px 10px;
    margin-top: 30px;
    scroll-snap-type: x mandatory;
    -webkit-overflow-scrolling: touch;
    scrollbar-width: none;
}

.evolution-timeline::-webkit-scrollbar {
    display: none;
}

.timeline-item {
    flex: 0 0 auto;
    width: 100px;
    scroll-snap-align: center;
    cursor: pointer;
    transition: all 0.3s ease;
}

.timeline-item img {
    width: 100%;
    height: 100px;
    object-fit: cover;
    border-radius: 12px;
    border: 2px solid rgba(255, 255, 255, 0.1);
    transition: all 0.3s ease;
}

.timeline-item:hover img,
.timeline-item.active img {
    border-color: var(--primary-yellow);
    box-shadow: 0 0 20px rgba(255, 204, 0, 0.4);
}

.timeline-item .timeline-level {
    color: rgba(255, 255, 255, 0.6);
    font-size: 0.7rem;
    font-weight: 600;
    text-align: center;
    margin-top: 6px;
}

.timeline-item.active .timeline-level {
    color: var(--primary-yellow);
}

@media (max-width: 768px) {
    .hero {
        padding: 50px 20px;
    }
    
    .hero h1 {
        font-size: 2.2rem;
    }
    
    .hero p {
        font-size: 1.1rem;
    }
    
    .section-title {
        font-size: 2rem;
    }
    
    .burger-menu {
        display: flex;
    }
    
    .nav-links {
        position: absolute;
        top: 100%;
        left: 0;
        right: 0;
        background: linear-gradient(135deg, var(--primary-blue) 0%, #0088e6 100%);
        flex-direction: column;
        padding: 20px;
        gap: 10px;
        box-shadow: 0 10px 30px rgba(0, 0, 0, 0.3);
        transform: translateY(-100%);
        opacity: 0;
        visibility: hidden;
        transition: all 0.3s cubic-bezier(0.68, -0.55, 0.265, 1.55);
        z-index: 1000;
        border-bottom: 3px solid var(--primary-yellow);
    }
    
    .nav-links.active {
        transform: translateY(0);
        opacity: 1;
        visibility: visible;
    }
    
    .nav-links li {
        width: 100%;
    }
    
    .nav-links a {
        display: block;
        padding: 12px;
        border-bottom: 1px solid rgba(255, 255, 255, 0.1);
        border-radius: 8px;
    }
    
    nav {
        position: relative;
    }
    
    .gallery {
        grid-template-columns: 1fr;
    }
    
    .feature-grid {
        grid-template-columns: 1fr;
    }
    
    .contact-form {
        padding: 30px 20px;
    }

    /* Evolve & Battle Mobile Styles */
    .evolve-battle-section {
        padding: 50px 15px;
        margin: 40px -20px;
    }

    .evolve-title {
        gap: 8px;
    }

    .evolve-subtitle {
        font-size: 0.95rem;
        padding: 0 10px;
        margin-bottom: 30px;
    }

    .pet-selector {
        gap: 8px;
        margin-bottom: 30px;
    }

    .pet-tab {
        width: 75px;
        padding: 6px;
        border-radius: 12px;
    }

    .pet-tab img {
        width: 50px;
        height: 50px;
        border-radius: 10px;
    }

    .pet-tab .pet-name {
        font-size: 0.65rem;
    }

    .evolution-stage {
        width: min(280px, 80vw);
        height: min(280px, 80vw);
    }

    .evolution-stage img {
        border-radius: 20px;
    }

    .level-badge {
        padding: 6px 18px;
        font-size: 0.85rem;
    }

    .level-progress-container {
        max-width: 320px;
        padding: 0 10px;
        padding-top: 25px;
    }

    .level-marker {
        font-size: 0.65rem;
        width: 16px;
    }

    .level-slider::-webkit-slider-thumb {
        width: 24px;
        height: 24px;
    }

    .autoplay-btn {
        padding: 10px 22px;
        font-size: 0.85rem;
    }

    /* Show timeline on mobile */
    .evolution-timeline {
        display: flex;
    }

    .timeline-item {
        width: 85px;
    }

    .timeline-item img {
        height: 85px;
    }
}

/* Extra small screens */
@media (max-width: 400px) {
    .evolve-title {
        flex-direction: column;
        gap: 4px;
    }
    
    .title-and {
        display: none;
    }
    
    .pet-selector {
        gap: 6px;
    }
    
    .pet-tab {
        width: 68px;
        padding: 5px;
    }
    
    .pet-tab img {
        width: 45px;
        height: 45px;
    }
    
    .evolution-stage {
        width: min(250px, 85vw);
        height: min(250px, 85vw);
    }
    
    .level-progress-container {
        max-width: 280px;
    }
}
