@import url('https://fonts.googleapis.com/css2?family=Outfit:wght@300;400;600;800&family=Playfair+Display:ital,wght@0,400;0,700;1,400&display=swap');

:root {
    --primary-vivid: #D4005F;
    /* Deeper Rose for contrast */
    --secondary-vivid: #5D00D6;
    /* Deeper Purple */
    --accent-vivid: #00A3B0;
    /* Deeper Cyan */
    --bg-light: #F0FFF0;
    /* Honeydew / Light Green */
    --card-bg: rgba(0, 0, 0, 0.05);
    --glass-bg: rgba(240, 255, 240, 0.8);
    --text-dark: #1A2F1A;
    --text-gray: #4A5D4A;
    --white: #FFFFFF;

    --font-heading: 'Playfair Display', serif;
    --font-body: 'Outfit', sans-serif;

    --transition: all 0.4s cubic-bezier(0.165, 0.84, 0.44, 1);
}

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

body {
    background-color: var(--bg-light);
    color: var(--text-dark);
    font-family: var(--font-body);
    line-height: 1.6;
    overflow-x: hidden;
    scroll-behavior: smooth;
}

h1,
h2,
h3 {
    font-family: var(--font-heading);
}

/* Background Animation */
body::before {
    content: '';
    position: fixed;
    top: -50%;
    left: -50%;
    width: 200%;
    height: 200%;
    background: radial-gradient(circle at center, #E0FFE0 0%, #F0FFF0 70%);
    z-index: -2;
}

body::after {
    content: '';
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background:
        radial-gradient(circle at 20% 30%, rgba(0, 255, 127, 0.1) 0%, transparent 40%),
        radial-gradient(circle at 80% 70%, rgba(0, 163, 176, 0.1) 0%, transparent 40%);
    z-index: -1;
    pointer-events: none;
}

/* Floating Menu */
.navbar {
    position: fixed;
    top: 20px;
    left: 50%;
    transform: translateX(-50%);
    width: 90%;
    max-width: 800px;
    background: var(--glass-bg);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 100px;
    padding: 10px 30px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    z-index: 1000;
    box-shadow: 0 10px 40px rgba(0, 0, 0, 0.5);
    animation: slideDown 0.8s ease forwards;
}

@keyframes slideDown {
    from {
        opacity: 0;
        transform: translate(-50%, -100%);
    }

    to {
        opacity: 1;
        transform: translate(-50%, 0);
    }
}

.nav-brand {
    font-family: var(--font-heading);
    font-weight: 700;
    font-size: 1.5rem;
    background: linear-gradient(45deg, var(--primary-vivid), var(--accent-vivid));
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
}

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

.nav-links a {
    text-decoration: none;
    color: var(--text-dark);
    font-weight: 500;
    font-size: 0.9rem;
    text-transform: uppercase;
    letter-spacing: 1px;
    transition: var(--transition);
    position: relative;
    padding: 5px 0;
}

.nav-links a::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 0;
    height: 2px;
    background: var(--primary-vivid);
    transition: var(--transition);
}

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

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

.blog-btn {
    background: linear-gradient(45deg, var(--primary-vivid), var(--secondary-vivid));
    padding: 8px 20px;
    border-radius: 50px;
    color: white !important;
    font-weight: 600 !important;
}

.blog-btn:hover {
    box-shadow: 0 0 20px rgba(255, 0, 127, 0.4);
    transform: translateY(-2px);
}

/* Sections */
section {
    padding: 120px 5% 60px;
    min-height: 80vh;
}

.section-title {
    text-align: center;
    margin-bottom: 60px;
}

.section-title h2 {
    font-size: 3.5rem;
    margin-bottom: 10px;
    background: linear-gradient(to right, #1A2F1A, #4A5D4A);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
}

.section-title p {
    color: var(--text-gray);
    font-size: 1.2rem;
}

/* Hero Section */
.hero {
    height: 100vh;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    text-align: center;
    position: relative;
}

.hero h1 {
    font-size: 6rem;
    line-height: 1;
    margin-bottom: 20px;
    text-shadow: 0 0 30px rgba(112, 0, 255, 0.3);
}

.hero p {
    font-size: 1.5rem;
    max-width: 700px;
    color: var(--text-gray);
}

/* Butterfly Cards Grid */
.butterfly-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
    gap: 30px;
    margin-top: 40px;
}

.butterfly-card {
    background: var(--card-bg);
    border: 1px solid rgba(255, 255, 255, 0.05);
    border-radius: 24px;
    padding: 30px;
    transition: var(--transition);
    cursor: pointer;
    overflow: hidden;
    position: relative;
}

.butterfly-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(45deg, transparent, rgba(255, 255, 255, 0.05));
    opacity: 0;
    transition: var(--transition);
}

.butterfly-card:hover {
    background: rgba(255, 255, 255, 0.08);
    transform: translateY(-10px);
    border-color: var(--primary-vivid);
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.4);
}

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

.butterfly-card h3 {
    font-size: 2rem;
    margin-bottom: 15px;
    color: var(--accent-vivid);
}

.butterfly-card .scientific {
    font-family: var(--font-body);
    font-style: italic;
    color: var(--text-gray);
    display: block;
    margin-bottom: 15px;
    font-size: 0.9rem;
}

.butterfly-card p {
    font-size: 1rem;
    color: rgba(0, 0, 0, 0.8);
}

.continent-tag {
    display: inline-block;
    padding: 4px 12px;
    border-radius: 100px;
    background: rgba(112, 0, 255, 0.2);
    color: var(--accent-vivid);
    font-size: 0.8rem;
    font-weight: 600;
    margin-top: 20px;
}

/* Specific Continents Colors */
.asia .butterfly-card:hover {
    border-color: #FFD700;
}

.africa .butterfly-card:hover {
    border-color: #FFA500;
}

.americas .butterfly-card:hover {
    border-color: #00FF00;
}

.europe .butterfly-card:hover {
    border-color: #007FFF;
}

.oceania .butterfly-card:hover {
    border-color: #FF00FF;
}

/* Rarest Section Decoration */
.rarest-section {
    background: radial-gradient(circle at top right, rgba(255, 0, 127, 0.1), transparent);
}

.rarest-card {
    border-left: 4px solid var(--primary-vivid);
}

/* Footer */
footer {
    padding: 60px 5%;
    text-align: center;
    border-top: 1px solid rgba(0, 0, 0, 0.05);
    color: var(--text-gray);
}

@media (max-width: 768px) {
    .navbar {
        padding: 10px 15px;
    }

    .nav-links {
        display: none;
    }

    /* Mobile menu could be hidden or burger */
    .hero h1 {
        font-size: 3.5rem;
    }

    .section-title h2 {
        font-size: 2.5rem;
    }
}