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

body {
    font-family: 'Comic Sans MS', cursive, sans-serif;
    line-height: 1.6;
    color: #333;
    background: linear-gradient(135deg, #ffeaa7 0%, #fab1a0 50%, #fd79a8 100%);
    min-height: 100vh;
}

/* Navigation */
.navbar {
    background: rgba(255, 255, 255, 0.95);
    backdrop-filter: blur(10px);
    position: sticky;
    top: 0;
    z-index: 100;
    border-bottom: 3px solid #ff6b6b;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.1);
}

.nav-container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 1rem 2rem;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.logo {
    font-size: 1.5rem;
    font-weight: bold;
    color: #ff6b6b;
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.bee, .dog {
    font-size: 2rem;
    animation: bounce 2s infinite;
}

.dog {
    animation-delay: 1s;
}

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

.nav-links a {
    text-decoration: none;
    color: #333;
    font-weight: 600;
    padding: 0.5rem 1rem;
    border-radius: 25px;
    transition: all 0.3s ease;
    position: relative;
}

.nav-links a:hover,
.nav-links a.active {
    background: #ff6b6b;
    color: white;
    transform: translateY(-2px);
}

/* Hero Section */
.hero {
    text-align: center;
    padding: 4rem 2rem;
    position: relative;
    overflow: hidden;
}

.hero-content {
    max-width: 800px;
    margin: 0 auto;
    position: relative;
    z-index: 2;
}

.hero-title {
    font-size: 3rem;
    margin-bottom: 1rem;
    color: white;
    text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.3);
}

.highlight-insects {
    color: #00b894;
    text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.5);
}

.highlight-dogs {
    color: #fdcb6e;
    text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.5);
}

.hero-subtitle {
    font-size: 1.2rem;
    margin-bottom: 2rem;
    color: white;
    text-shadow: 1px 1px 2px rgba(0, 0, 0, 0.3);
}

.hero-badges {
    display: flex;
    justify-content: center;
    gap: 2rem;
    flex-wrap: wrap;
}

.badge {
    background: rgba(255, 255, 255, 0.9);
    padding: 1rem 1.5rem;
    border-radius: 50px;
    display: flex;
    align-items: center;
    gap: 0.5rem;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.2);
    transform: translateY(0);
    transition: transform 0.3s ease;
}

.badge:hover {
    transform: translateY(-5px);
}

.badge-icon {
    font-size: 1.5rem;
}

.badge-insects {
    border: 3px solid #00b894;
}

.badge-dogs {
    border: 3px solid #fdcb6e;
}

.hero-graphics {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    pointer-events: none;
    z-index: 1;
}

.floating-emoji {
    position: absolute;
    font-size: 2rem;
    animation: float 6s ease-in-out infinite;
    animation-delay: var(--delay);
}

.floating-emoji:nth-child(1) { top: 20%; left: 10%; }
.floating-emoji:nth-child(2) { top: 60%; left: 20%; }
.floating-emoji:nth-child(3) { top: 30%; right: 15%; }
.floating-emoji:nth-child(4) { top: 70%; right: 25%; }
.floating-emoji:nth-child(5) { top: 10%; right: 5%; }

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

/* Intro Cards */
.intro-cards {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(400px, 1fr));
    gap: 2rem;
    margin-bottom: 3rem;
}

.card {
    background: rgba(255, 255, 255, 0.95);
    padding: 2rem;
    border-radius: 20px;
    box-shadow: 0 8px 30px rgba(0, 0, 0, 0.1);
    transform: translateY(0);
    transition: all 0.3s ease;
    border: 3px solid transparent;
}

.card:hover {
    transform: translateY(-10px);
    box-shadow: 0 15px 40px rgba(0, 0, 0, 0.2);
}

.card-insects {
    border-color: #00b894;
}

.card-insects:hover {
    background: linear-gradient(135deg, #00b894, #00a085);
    color: white;
}

.card-dogs {
    border-color: #fdcb6e;
}

.card-dogs:hover {
    background: linear-gradient(135deg, #fdcb6e, #e17055);
    color: white;
}

.card h2 {
    margin-bottom: 1rem;
    font-size: 1.8rem;
}

.fun-list {
    list-style: none;
    margin: 1rem 0;
}

.fun-list li {
    padding: 0.5rem 0;
    font-size: 1.1rem;
}

.cta-button {
    display: inline-block;
    background: #ff6b6b;
    color: white;
    text-decoration: none;
    padding: 1rem 2rem;
    border-radius: 50px;
    font-weight: bold;
    margin-top: 1rem;
    transition: all 0.3s ease;
}

.cta-button:hover {
    background: #ff5252;
    transform: translateY(-2px);
    box-shadow: 0 5px 15px rgba(255, 107, 107, 0.4);
}

/* Comparison Section */
.comparison {
    margin: 4rem 0;
    text-align: center;
}

.section-title {
    font-size: 2.5rem;
    margin-bottom: 2rem;
    color: white;
    text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.3);
}

.comparison-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 2rem;
    margin-top: 2rem;
}

.comparison-item {
    background: rgba(255, 255, 255, 0.95);
    padding: 2rem;
    border-radius: 20px;
    box-shadow: 0 8px 30px rgba(0, 0, 0, 0.1);
    transition: transform 0.3s ease;
}

.comparison-item:hover {
    transform: translateY(-5px);
}

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

.comparison-item h3 {
    margin-bottom: 1rem;
    color: #ff6b6b;
    font-size: 1.5rem;
}

/* CTA Section */
.cta-section {
    text-align: center;
    padding: 3rem 0;
    background: rgba(255, 255, 255, 0.1);
    border-radius: 20px;
    margin: 3rem 0;
}

.cta-section h2 {
    font-size: 2.5rem;
    margin-bottom: 1rem;
    color: white;
    text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.3);
}

.cta-section p {
    font-size: 1.2rem;
    margin-bottom: 2rem;
    color: white;
    text-shadow: 1px 1px 2px rgba(0, 0, 0, 0.3);
}

.cta-buttons {
    display: flex;
    justify-content: center;
    gap: 2rem;
    flex-wrap: wrap;
}

.cta-button-large {
    background: rgba(255, 255, 255, 0.9);
    color: #333;
    text-decoration: none;
    padding: 1.5rem 3rem;
    border-radius: 50px;
    font-weight: bold;
    font-size: 1.2rem;
    display: flex;
    align-items: center;
    gap: 1rem;
    transition: all 0.3s ease;
    box-shadow: 0 8px 30px rgba(0, 0, 0, 0.2);
}

.cta-button-large:hover {
    transform: translateY(-5px);
    box-shadow: 0 15px 40px rgba(0, 0, 0, 0.3);
    background: white;
}

.cta-button-large .icon {
    font-size: 1.5rem;
}

/* Footer */
.footer {
    background: rgba(0, 0, 0, 0.8);
    color: white;
    text-align: center;
    padding: 2rem;
    margin-top: 3rem;
}

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

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

/* Page Headers */
.page-header {
    background: linear-gradient(135deg, #00b894, #74b9ff);
    color: white;
    text-align: center;
    padding: 3rem 0;
    margin-bottom: 2rem;
}

.page-title {
    font-size: 2.5rem;
    margin-bottom: 1rem;
    text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.3);
}

.page-subtitle {
    font-size: 1.2rem;
    text-shadow: 1px 1px 2px rgba(0, 0, 0, 0.3);
}

/* Additional Styles for New Pages */
.insect-grid, .dog-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(350px, 1fr));
    gap: 2rem;
    margin: 2rem 0;
}

.insect-card, .dog-card {
    background: rgba(255, 255, 255, 0.95);
    border-radius: 20px;
    padding: 2rem;
    box-shadow: 0 8px 30px rgba(0, 0, 0, 0.1);
    transition: all 0.3s ease;
    border: 3px solid transparent;
}

.insect-card:hover, .dog-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 15px 40px rgba(0, 0, 0, 0.2);
}

.insect-card {
    border-color: #00b894;
}

.dog-card {
    border-color: #fdcb6e;
}

.insect-icon, .dog-icon {
    font-size: 3rem;
    margin-bottom: 1rem;
    display: block;
}

.feature-list {
    list-style: none;
    margin: 1rem 0;
}

.feature-list li {
    padding: 0.5rem 0;
    font-size: 1.1rem;
}

.fun-fact, .breed-examples {
    background: rgba(255, 107, 107, 0.1);
    padding: 1rem;
    border-radius: 10px;
    margin-top: 1rem;
    border-left: 4px solid #ff6b6b;
}

/* Gallery Styles */
.gallery-filters {
    text-align: center;
    margin-bottom: 3rem;
}

.filter-buttons {
    display: flex;
    justify-content: center;
    gap: 1rem;
    flex-wrap: wrap;
    margin-top: 1rem;
}

.filter-btn {
    background: rgba(255, 255, 255, 0.9);
    border: 2px solid #ff6b6b;
    color: #ff6b6b;
    padding: 0.8rem 1.5rem;
    border-radius: 25px;
    cursor: pointer;
    font-weight: bold;
    transition: all 0.3s ease;
}

.filter-btn:hover, .filter-btn.active {
    background: #ff6b6b;
    color: white;
    transform: translateY(-2px);
}

.gallery-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
    gap: 2rem;
    margin: 2rem 0;
}

.gallery-item {
    transition: all 0.3s ease;
}

.gallery-card {
    background: rgba(255, 255, 255, 0.95);
    border-radius: 15px;
    overflow: hidden;
    box-shadow: 0 8px 30px rgba(0, 0, 0, 0.1);
    transition: all 0.3s ease;
}

.gallery-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 15px 40px rgba(0, 0, 0, 0.2);
}

.image-placeholder {
    height: 200px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 4rem;
    color: white;
    text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.3);
}

.insect-bg {
    background: linear-gradient(135deg, #00b894, #00a085);
}

.dog-bg {
    background: linear-gradient(135deg, #fdcb6e, #e17055);
}

.comparison-bg {
    background: linear-gradient(135deg, #ff6b6b, #fd79a8);
}

.gallery-info {
    padding: 1.5rem;
}

.gallery-info h3 {
    margin-bottom: 0.5rem;
    color: #333;
}

.gallery-tags {
    display: flex;
    gap: 0.5rem;
    flex-wrap: wrap;
    margin-top: 1rem;
}

.tag {
    background: #ff6b6b;
    color: white;
    padding: 0.3rem 0.8rem;
    border-radius: 15px;
    font-size: 0.8rem;
    font-weight: bold;
}

/* Stats and Records */
.stats-grid, .record-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 2rem;
    margin: 2rem 0;
}

.stat-card, .record-card {
    background: rgba(255, 255, 255, 0.9);
    padding: 2rem;
    border-radius: 15px;
    text-align: center;
    box-shadow: 0 8px 30px rgba(0, 0, 0, 0.1);
    transition: transform 0.3s ease;
}

.stat-card:hover, .record-card:hover {
    transform: translateY(-5px);
}

.stat-icon, .record-icon {
    font-size: 2.5rem;
    margin-bottom: 1rem;
}

.stat-number {
    font-size: 2rem;
    font-weight: bold;
    color: #ff6b6b;
    margin-bottom: 0.5rem;
}

/* Fun Facts Page Styles */
.battle-card {
    background: rgba(255, 255, 255, 0.95);
    border-radius: 20px;
    padding: 2rem;
    margin: 2rem 0;
    box-shadow: 0 8px 30px rgba(0, 0, 0, 0.1);
}

.battle-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 1rem;
    flex-wrap: wrap;
}

.battle-score {
    display: flex;
    align-items: center;
    gap: 1rem;
}

.score-insects {
    color: #00b894;
    font-weight: bold;
}

.score-dogs {
    color: #fdcb6e;
    font-weight: bold;
}

.vs {
    font-weight: bold;
    color: #ff6b6b;
}

.battle-content {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 2rem;
    margin: 1rem 0;
}

.battle-side h4 {
    color: #ff6b6b;
    margin-bottom: 1rem;
}

.battle-winner {
    background: rgba(255, 107, 107, 0.1);
    padding: 1rem;
    border-radius: 10px;
    border-left: 4px solid #ff6b6b;
    margin-top: 1rem;
}

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

.similarity-card, .superpower-card {
    background: rgba(255, 255, 255, 0.95);
    padding: 2rem;
    border-radius: 15px;
    box-shadow: 0 8px 30px rgba(0, 0, 0, 0.1);
    transition: transform 0.3s ease;
}

.similarity-card:hover, .superpower-card:hover {
    transform: translateY(-5px);
}

.similarity-icon, .power-icon {
    font-size: 3rem;
    margin-bottom: 1rem;
}

.similarity-comparison p {
    margin: 0.5rem 0;
    padding: 0.5rem;
    background: rgba(0, 0, 0, 0.05);
    border-radius: 8px;
}

.weird-facts-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(400px, 1fr));
    gap: 2rem;
    margin: 2rem 0;
}

.weird-fact-card {
    background: rgba(255, 255, 255, 0.95);
    padding: 2rem;
    border-radius: 15px;
    box-shadow: 0 8px 30px rgba(0, 0, 0, 0.1);
}

.weird-fact-card.insects {
    border-left: 5px solid #00b894;
}

.weird-fact-card.dogs {
    border-left: 5px solid #fdcb6e;
}

.weird-list {
    list-style: none;
}

.weird-list li {
    padding: 0.5rem 0;
    border-bottom: 1px solid rgba(0, 0, 0, 0.1);
}

/* Size Comparison */
.size-chart {
    display: flex;
    justify-content: space-around;
    align-items: end;
    margin: 2rem 0;
    flex-wrap: wrap;
    gap: 2rem;
}

.size-item {
    text-align: center;
    flex: 1;
    min-width: 200px;
}

.size-visual {
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 1rem;
    background: linear-gradient(135deg, #ff6b6b, #fd79a8);
}

.size-visual.smallest {
    width: 40px;
    height: 40px;
}

.size-visual.small {
    width: 80px;
    height: 80px;
}

.size-visual.large {
    width: 120px;
    height: 120px;
}

.size-visual.largest {
    width: 160px;
    height: 160px;
}

.size-emoji {
    font-size: 2rem;
    filter: drop-shadow(2px 2px 4px rgba(0, 0, 0, 0.3));
}

/* Quiz Styles */
.quiz-container {
    max-width: 800px;
    margin: 0 auto;
}

.quiz-question {
    background: rgba(255, 255, 255, 0.95);
    padding: 2rem;
    border-radius: 15px;
    margin: 2rem 0;
    box-shadow: 0 8px 30px rgba(0, 0, 0, 0.1);
}

.quiz-options {
    display: flex;
    gap: 1rem;
    margin: 1rem 0;
    flex-wrap: wrap;
}

.quiz-option {
    background: rgba(255, 107, 107, 0.1);
    border: 2px solid #ff6b6b;
    color: #ff6b6b;
    padding: 1rem 2rem;
    border-radius: 25px;
    cursor: pointer;
    font-weight: bold;
    transition: all 0.3s ease;
    flex: 1;
    min-width: 150px;
}

.quiz-option:hover {
    background: #ff6b6b;
    color: white;
    transform: translateY(-2px);
}

.quiz-answer {
    display: none;
    background: rgba(0, 184, 148, 0.1);
    padding: 1rem;
    border-radius: 10px;
    margin-top: 1rem;
    border-left: 4px solid #00b894;
}

/* Additional utility classes */
.personality-grid, .job-cards, .benefit-cards {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 2rem;
    margin: 2rem 0;
}

.personality-card, .job-card, .benefit-card {
    background: rgba(255, 255, 255, 0.95);
    padding: 2rem;
    border-radius: 15px;
    box-shadow: 0 8px 30px rgba(0, 0, 0, 0.1);
    transition: transform 0.3s ease;
    text-align: center;
}

.personality-card:hover, .job-card:hover, .benefit-card:hover {
    transform: translateY(-5px);
}

.personality-icon, .job-icon, .benefit-icon {
    font-size: 3rem;
    margin-bottom: 1rem;
}

.personality-traits {
    display: flex;
    gap: 0.5rem;
    flex-wrap: wrap;
    justify-content: center;
    margin-top: 1rem;
}

.trait {
    background: #ff6b6b;
    color: white;
    padding: 0.3rem 0.8rem;
    border-radius: 15px;
    font-size: 0.8rem;
    font-weight: bold;
}

.stat-boxes {
    display: flex;
    justify-content: center;
    gap: 2rem;
    margin: 2rem 0;
    flex-wrap: wrap;
}

.stat-box {
    background: rgba(255, 255, 255, 0.1);
    padding: 1.5rem;
    border-radius: 15px;
    text-align: center;
    min-width: 150px;
}

.stat-box .stat-number {
    font-size: 2rem;
    font-weight: bold;
    color: white;
    text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.3);
}

.stat-box .stat-label {
    color: white;
    font-weight: bold;
    text-shadow: 1px 1px 2px rgba(0, 0, 0, 0.3);
}

.comparison-badges {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 1rem;
    margin: 2rem 0;
    flex-wrap: wrap;
}

.badge-vs {
    background: #ff6b6b;
    color: white;
    font-weight: bold;
    font-size: 1.2rem;
}

/* Responsive Design */
@media (max-width: 768px) {
    .nav-container {
        flex-direction: column;
        gap: 1rem;
    }
    
    .nav-links {
        gap: 1rem;
    }
    
    .hero-title, .page-title {
        font-size: 2rem;
    }
    
    .intro-cards, .insect-grid, .dog-grid {
        grid-template-columns: 1fr;
    }
    
    .comparison-grid, .gallery-grid {
        grid-template-columns: 1fr;
    }
    
    .cta-buttons {
        flex-direction: column;
        align-items: center;
    }
    
    .floating-emoji {
        display: none;
    }
    
    .battle-content {
        grid-template-columns: 1fr;
    }
    
    .battle-header {
        flex-direction: column;
        gap: 1rem;
    }
    
    .size-chart {
        flex-direction: column;
        align-items: center;
    }
    
    .quiz-options {
        flex-direction: column;
    }
}

@media (max-width: 480px) {
    .hero-badges, .comparison-badges {
        flex-direction: column;
        align-items: center;
    }
    
    .badge {
        width: 100%;
        max-width: 300px;
        justify-content: center;
    }
    
    .filter-buttons {
        flex-direction: column;
        align-items: center;
    }
    
    .filter-btn {
        width: 100%;
        max-width: 200px;
    }
}