/* ============================================
   TYPES OF BUG — Premium Design System
   ============================================ */

/* ---------- CSS Custom Properties ---------- */
:root {
    /* Colors — Earthy, Natural Palette */
    --color-bg-primary: #0a0e0d;
    --color-bg-secondary: #111816;
    --color-bg-tertiary: #1a2320;
    --color-bg-card: #141c19;
    --color-bg-card-hover: #1c2926;
    --color-bg-glass: rgba(20, 28, 25, 0.7);

    --color-text-primary: #e8ede9;
    --color-text-secondary: #9ba8a0;
    --color-text-muted: #6b7d73;

    --color-accent-1: #4ade80; /* Emerald green */
    --color-accent-2: #22d3ee; /* Cyan */
    --color-accent-3: #f59e0b; /* Amber */
    --color-accent-4: #a78bfa; /* Violet */

    --gradient-primary: linear-gradient(135deg, #4ade80 0%, #22d3ee 50%, #a78bfa 100%);
    --gradient-card: linear-gradient(180deg, rgba(74, 222, 128, 0.06) 0%, rgba(20, 28, 25, 0) 100%);
    --gradient-hero: linear-gradient(180deg, rgba(10, 14, 13, 0) 0%, rgba(10, 14, 13, 0.4) 40%, rgba(10, 14, 13, 0.95) 85%, #0a0e0d 100%);

    --border-color: rgba(74, 222, 128, 0.1);
    --border-color-hover: rgba(74, 222, 128, 0.25);

    /* Typography */
    --font-display: 'Playfair Display', Georgia, serif;
    --font-body: 'Inter', -apple-system, sans-serif;
    --font-mono: 'JetBrains Mono', monospace;

    /* Sizes */
    --container-max: 1280px;
    --radius-sm: 8px;
    --radius-md: 12px;
    --radius-lg: 20px;
    --radius-xl: 28px;

    /* Shadows */
    --shadow-sm: 0 2px 8px rgba(0, 0, 0, 0.2);
    --shadow-md: 0 8px 24px rgba(0, 0, 0, 0.3);
    --shadow-lg: 0 16px 48px rgba(0, 0, 0, 0.4);
    --shadow-glow: 0 0 40px rgba(74, 222, 128, 0.15);

    /* Transitions */
    --transition-fast: 0.2s cubic-bezier(0.4, 0, 0.2, 1);
    --transition-base: 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    --transition-slow: 0.5s cubic-bezier(0.4, 0, 0.2, 1);
    --transition-spring: 0.6s cubic-bezier(0.34, 1.56, 0.64, 1);
}

/* ---------- Reset & Base ---------- */
*, *::before, *::after {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
    font-size: 16px;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
}

body {
    font-family: var(--font-body);
    background-color: var(--color-bg-primary);
    color: var(--color-text-primary);
    line-height: 1.7;
    overflow-x: hidden;
}

a {
    text-decoration: none;
    color: inherit;
    transition: color var(--transition-fast);
}

img {
    max-width: 100%;
    height: auto;
    display: block;
}

ul { list-style: none; }

.container {
    max-width: var(--container-max);
    margin: 0 auto;
    padding: 0 24px;
}

/* ---------- Gradient Text ---------- */
.gradient-text {
    background: var(--gradient-primary);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

/* ---------- Buttons ---------- */
.btn {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 14px 28px;
    border-radius: var(--radius-md);
    font-family: var(--font-body);
    font-size: 0.95rem;
    font-weight: 600;
    cursor: pointer;
    border: none;
    transition: all var(--transition-base);
    position: relative;
    overflow: hidden;
}

.btn-primary {
    background: var(--gradient-primary);
    color: #0a0e0d;
}

.btn-primary:hover {
    transform: translateY(-2px);
    box-shadow: var(--shadow-glow);
}

.btn-secondary {
    background: transparent;
    color: var(--color-text-primary);
    border: 1px solid var(--border-color);
    backdrop-filter: blur(10px);
}

.btn-secondary:hover {
    border-color: var(--color-accent-1);
    background: rgba(74, 222, 128, 0.05);
    transform: translateY(-2px);
}

.btn-lg {
    padding: 18px 36px;
    font-size: 1.05rem;
}

/* ============================================
   NAVIGATION
   ============================================ */
.navbar {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    z-index: 1000;
    padding: 16px 0;
    transition: all var(--transition-base);
}

.navbar.scrolled {
    background: var(--color-bg-glass);
    backdrop-filter: blur(20px) saturate(180%);
    border-bottom: 1px solid var(--border-color);
    padding: 10px 0;
}

.nav-container {
    max-width: var(--container-max);
    margin: 0 auto;
    padding: 0 24px;
    display: flex;
    align-items: center;
    justify-content: space-between;
}

.nav-logo {
    display: flex;
    align-items: center;
    gap: 10px;
    font-family: var(--font-display);
    font-size: 1.3rem;
    font-weight: 700;
    color: var(--color-text-primary);
}

.logo-icon {
    width: 36px;
    height: 36px;
    color: var(--color-accent-1);
}

.nav-menu {
    display: flex;
    align-items: center;
    gap: 4px;
}

.nav-link {
    padding: 10px 18px;
    border-radius: var(--radius-sm);
    font-size: 0.9rem;
    font-weight: 500;
    color: var(--color-text-secondary);
    transition: all var(--transition-fast);
    display: flex;
    align-items: center;
    gap: 6px;
}

.nav-link:hover,
.nav-link.active {
    color: var(--color-text-primary);
    background: rgba(74, 222, 128, 0.06);
}

.nav-link.active {
    color: var(--color-accent-1);
}

/* Dropdown */
.nav-dropdown {
    position: relative;
}

.dropdown-menu {
    position: absolute;
    top: calc(100% + 8px);
    left: 50%;
    transform: translateX(-50%) translateY(10px);
    min-width: 240px;
    padding: 8px;
    background: var(--color-bg-card);
    border: 1px solid var(--border-color);
    border-radius: var(--radius-md);
    box-shadow: var(--shadow-lg);
    opacity: 0;
    visibility: hidden;
    transition: all var(--transition-base);
    backdrop-filter: blur(20px);
}

.nav-dropdown:hover .dropdown-menu {
    opacity: 1;
    visibility: visible;
    transform: translateX(-50%) translateY(0);
}

.dropdown-menu li a {
    display: block;
    padding: 10px 16px;
    border-radius: var(--radius-sm);
    font-size: 0.88rem;
    color: var(--color-text-secondary);
    transition: all var(--transition-fast);
}

.dropdown-menu li a:hover {
    background: rgba(74, 222, 128, 0.06);
    color: var(--color-accent-1);
    padding-left: 22px;
}

/* Mobile Nav Toggle */
.nav-toggle {
    display: none;
    flex-direction: column;
    gap: 5px;
    background: none;
    border: none;
    cursor: pointer;
    padding: 8px;
}

.nav-toggle span {
    width: 24px;
    height: 2px;
    background: var(--color-text-primary);
    border-radius: 2px;
    transition: all var(--transition-fast);
}

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

.hero-bg {
    position: absolute;
    inset: 0;
    z-index: 0;
}

.hero-bg-img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transform: scale(1.05);
    animation: heroZoom 20s ease-in-out infinite alternate;
}

@keyframes heroZoom {
    0% { transform: scale(1.05); }
    100% { transform: scale(1.12); }
}

.hero-overlay {
    position: absolute;
    inset: 0;
    background: var(--gradient-hero);
}

.hero-particles {
    position: absolute;
    inset: 0;
    z-index: 1;
    pointer-events: none;
}

.hero-particle {
    position: absolute;
    width: 3px;
    height: 3px;
    background: var(--color-accent-1);
    border-radius: 50%;
    opacity: 0;
    animation: particleFloat 8s infinite;
}

@keyframes particleFloat {
    0% {
        opacity: 0;
        transform: translateY(0) scale(0);
    }
    10% {
        opacity: 0.6;
        transform: scale(1);
    }
    90% {
        opacity: 0.2;
    }
    100% {
        opacity: 0;
        transform: translateY(-200px) scale(0);
    }
}

.hero-content {
    position: relative;
    z-index: 2;
    text-align: center;
    padding: 0 24px;
    max-width: 880px;
}

.hero-badge {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    padding: 8px 20px;
    background: rgba(74, 222, 128, 0.08);
    border: 1px solid rgba(74, 222, 128, 0.2);
    border-radius: 100px;
    font-size: 0.82rem;
    font-weight: 500;
    color: var(--color-accent-1);
    letter-spacing: 0.04em;
    text-transform: uppercase;
    margin-bottom: 32px;
    animation: fadeInUp 0.8s ease both;
}

.badge-dot {
    width: 8px;
    height: 8px;
    border-radius: 50%;
    background: var(--color-accent-1);
    animation: pulse 2s infinite;
}

@keyframes pulse {
    0%, 100% { opacity: 1; box-shadow: 0 0 0 0 rgba(74, 222, 128, 0.4); }
    50% { opacity: 0.8; box-shadow: 0 0 0 8px rgba(74, 222, 128, 0); }
}

.hero-title {
    font-family: var(--font-display);
    font-size: clamp(2.5rem, 6vw, 4.5rem);
    font-weight: 800;
    line-height: 1.15;
    margin-bottom: 24px;
    animation: fadeInUp 0.8s ease 0.15s both;
}

.hero-subtitle {
    font-size: clamp(1rem, 2vw, 1.2rem);
    color: var(--color-text-secondary);
    max-width: 600px;
    margin: 0 auto 40px;
    line-height: 1.8;
    animation: fadeInUp 0.8s ease 0.3s both;
}

.hero-actions {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 16px;
    flex-wrap: wrap;
    animation: fadeInUp 0.8s ease 0.45s both;
}

.hero-stats {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 40px;
    margin-top: 64px;
    animation: fadeInUp 0.8s ease 0.6s both;
}

.stat {
    text-align: center;
}

.stat-number {
    display: block;
    font-family: var(--font-display);
    font-size: 2rem;
    font-weight: 700;
    color: var(--color-accent-1);
}

.stat-label {
    font-size: 0.82rem;
    color: var(--color-text-muted);
    text-transform: uppercase;
    letter-spacing: 0.06em;
}

.stat-divider {
    width: 1px;
    height: 40px;
    background: var(--border-color);
}

.scroll-indicator {
    position: absolute;
    bottom: 40px;
    left: 50%;
    transform: translateX(-50%);
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 12px;
    z-index: 2;
    animation: fadeInUp 0.8s ease 0.8s both;
}

.scroll-indicator span {
    font-size: 0.72rem;
    color: var(--color-text-muted);
    text-transform: uppercase;
    letter-spacing: 0.1em;
}

.scroll-line {
    width: 1px;
    height: 40px;
    background: var(--border-color);
    position: relative;
    overflow: hidden;
}

.scroll-line::after {
    content: '';
    position: absolute;
    top: -100%;
    left: 0;
    width: 100%;
    height: 50%;
    background: var(--color-accent-1);
    animation: scrollDown 2s infinite;
}

@keyframes scrollDown {
    0% { top: -50%; }
    100% { top: 150%; }
}

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

/* ============================================
   SECTION HEADERS
   ============================================ */
.section-header {
    text-align: center;
    margin-bottom: 64px;
}

.section-tag {
    display: inline-block;
    padding: 6px 16px;
    background: rgba(74, 222, 128, 0.06);
    border: 1px solid rgba(74, 222, 128, 0.15);
    border-radius: 100px;
    font-size: 0.78rem;
    font-weight: 600;
    color: var(--color-accent-1);
    letter-spacing: 0.08em;
    text-transform: uppercase;
    margin-bottom: 20px;
}

.section-title {
    font-family: var(--font-display);
    font-size: clamp(2rem, 4vw, 3.2rem);
    font-weight: 700;
    line-height: 1.2;
    margin-bottom: 16px;
}

.section-desc {
    font-size: 1.05rem;
    color: var(--color-text-secondary);
    max-width: 600px;
    margin: 0 auto;
    line-height: 1.7;
}

/* ============================================
   CATEGORIES SECTION
   ============================================ */
.categories-section {
    padding: 120px 0;
    position: relative;
}

.categories-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 24px;
}

.category-card {
    position: relative;
    border-radius: var(--radius-lg);
    overflow: hidden;
    border: 1px solid var(--border-color);
    background: var(--color-bg-card);
    transition: all var(--transition-slow);
    cursor: pointer;
    display: block;
}

.category-card:hover {
    border-color: var(--border-color-hover);
    transform: translateY(-8px);
    box-shadow: var(--shadow-glow);
}

.category-card--large {
    grid-column: 1 / -1;
    display: grid;
    grid-template-columns: 1fr 1fr;
    min-height: 400px;
}

.category-card--large .card-image {
    height: 100%;
}

.card-image {
    position: relative;
    height: 240px;
    overflow: hidden;
}

.card-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform var(--transition-slow);
}

.category-card:hover .card-image img {
    transform: scale(1.08);
}

.card-overlay {
    position: absolute;
    inset: 0;
    background: linear-gradient(180deg, transparent 40%, rgba(10, 14, 13, 0.6) 100%);
}

.category-card--large .card-overlay {
    background: linear-gradient(90deg, transparent 40%, rgba(10, 14, 13, 0.3) 100%);
}

.card-content {
    padding: 28px;
    display: flex;
    flex-direction: column;
    justify-content: flex-end;
}

.category-card--large .card-content {
    padding: 40px;
    justify-content: center;
}

.card-order {
    font-family: var(--font-mono);
    font-size: 0.75rem;
    color: var(--color-accent-2);
    letter-spacing: 0.05em;
    margin-bottom: 8px;
}

.card-title {
    font-family: var(--font-display);
    font-size: 1.5rem;
    font-weight: 700;
    margin-bottom: 10px;
    line-height: 1.3;
}

.category-card--large .card-title {
    font-size: 2rem;
}

.card-desc {
    font-size: 0.9rem;
    color: var(--color-text-secondary);
    line-height: 1.7;
    margin-bottom: 16px;
}

.card-meta {
    display: flex;
    align-items: center;
    justify-content: space-between;
}

.species-count {
    font-size: 0.82rem;
    font-weight: 600;
    color: var(--color-accent-1);
}

.card-arrow {
    width: 36px;
    height: 36px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
    background: rgba(74, 222, 128, 0.1);
    color: var(--color-accent-1);
    font-size: 1.1rem;
    transition: all var(--transition-base);
}

.category-card:hover .card-arrow {
    background: var(--color-accent-1);
    color: var(--color-bg-primary);
    transform: translateX(4px);
}

/* ============================================
   FEATURED SECTION
   ============================================ */
.featured-section {
    padding: 120px 0;
    background: var(--color-bg-secondary);
    position: relative;
}

.featured-section::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 1px;
    background: var(--gradient-primary);
    opacity: 0.3;
}

.featured-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 24px;
}

.featured-card {
    background: var(--color-bg-card);
    border: 1px solid var(--border-color);
    border-radius: var(--radius-lg);
    overflow: hidden;
    transition: all var(--transition-slow);
}

.featured-card:hover {
    transform: translateY(-6px);
    border-color: var(--border-color-hover);
    box-shadow: var(--shadow-md);
}

.featured-image {
    height: 220px;
    overflow: hidden;
}

.featured-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform var(--transition-slow);
}

.featured-card:hover .featured-image img {
    transform: scale(1.06);
}

.featured-info {
    padding: 24px;
}

.featured-tag {
    display: inline-block;
    padding: 4px 12px;
    border-radius: 100px;
    font-size: 0.72rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.08em;
    background: rgba(245, 158, 11, 0.1);
    color: var(--color-accent-3);
    border: 1px solid rgba(245, 158, 11, 0.2);
    margin-bottom: 14px;
}

.featured-info h3 {
    font-family: var(--font-display);
    font-size: 1.3rem;
    font-weight: 700;
    margin-bottom: 10px;
}

.featured-info p {
    font-size: 0.9rem;
    color: var(--color-text-secondary);
    line-height: 1.7;
}

/* ============================================
   TAXONOMY SECTION
   ============================================ */
.taxonomy-section {
    padding: 120px 0;
}

.taxonomy-visual {
    max-width: 700px;
    margin: 0 auto;
}

.taxonomy-hierarchy {
    display: flex;
    flex-direction: column;
    align-items: center;
}

.taxon-level {
    width: 100%;
    max-width: 500px;
    padding: 24px 32px;
    background: var(--color-bg-card);
    border: 1px solid var(--border-color);
    border-radius: var(--radius-md);
    text-align: center;
    transition: all var(--transition-base);
    position: relative;
}

.taxon-level:hover {
    border-color: var(--border-color-hover);
    transform: scale(1.02);
    box-shadow: var(--shadow-glow);
}

.taxon-level--highlight {
    background: rgba(74, 222, 128, 0.06);
    border-color: rgba(74, 222, 128, 0.3);
}

.taxon-badge {
    display: inline-block;
    padding: 3px 12px;
    font-size: 0.72rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.08em;
    color: var(--color-accent-2);
    background: rgba(34, 211, 238, 0.08);
    border: 1px solid rgba(34, 211, 238, 0.15);
    border-radius: 100px;
    margin-bottom: 10px;
}

.taxon-name {
    font-family: var(--font-display);
    font-size: 1.4rem;
    font-weight: 700;
    margin-bottom: 4px;
}

.taxon-desc {
    font-size: 0.85rem;
    color: var(--color-text-muted);
}

.taxon-connector {
    display: flex;
    align-items: center;
    justify-content: center;
    height: 36px;
}

.connector-line {
    width: 2px;
    height: 100%;
    background: var(--border-color);
    position: relative;
}

.connector-line::after {
    content: '';
    position: absolute;
    top: 0;
    left: -3px;
    width: 8px;
    height: 8px;
    background: var(--color-accent-1);
    border-radius: 50%;
    opacity: 0.5;
}

/* ============================================
   FACTS SECTION
   ============================================ */
.facts-section {
    padding: 120px 0;
    background: var(--color-bg-secondary);
    position: relative;
}

.facts-section::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 1px;
    background: var(--gradient-primary);
    opacity: 0.3;
}

.facts-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 24px;
}

.fact-card {
    padding: 32px;
    background: var(--color-bg-card);
    border: 1px solid var(--border-color);
    border-radius: var(--radius-lg);
    transition: all var(--transition-base);
}

.fact-card:hover {
    border-color: var(--border-color-hover);
    transform: translateY(-4px);
    box-shadow: var(--shadow-sm);
}

.fact-icon {
    font-size: 2.4rem;
    margin-bottom: 18px;
    display: block;
}

.fact-card h3 {
    font-family: var(--font-display);
    font-size: 1.3rem;
    font-weight: 700;
    margin-bottom: 10px;
    color: var(--color-accent-1);
}

.fact-card p {
    font-size: 0.9rem;
    color: var(--color-text-secondary);
    line-height: 1.7;
}

/* ============================================
   CTA SECTION
   ============================================ */
.cta-section {
    padding: 120px 0;
    text-align: center;
    position: relative;
    overflow: hidden;
}

.cta-section::before {
    content: '';
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 600px;
    height: 600px;
    border-radius: 50%;
    background: radial-gradient(circle, rgba(74, 222, 128, 0.06) 0%, transparent 70%);
    pointer-events: none;
}

.cta-content {
    position: relative;
    z-index: 1;
}

.cta-content h2 {
    font-family: var(--font-display);
    font-size: clamp(2rem, 4vw, 3rem);
    font-weight: 700;
    margin-bottom: 20px;
    line-height: 1.2;
}

.cta-content p {
    font-size: 1.05rem;
    color: var(--color-text-secondary);
    max-width: 560px;
    margin: 0 auto 36px;
    line-height: 1.7;
}

/* ============================================
   FOOTER
   ============================================ */
.footer {
    padding: 80px 0 32px;
    background: var(--color-bg-secondary);
    border-top: 1px solid var(--border-color);
}

.footer-grid {
    display: grid;
    grid-template-columns: 1.5fr repeat(3, 1fr);
    gap: 48px;
    margin-bottom: 56px;
}

.footer-brand .nav-logo {
    margin-bottom: 16px;
}

.footer-brand p {
    font-size: 0.9rem;
    color: var(--color-text-muted);
    line-height: 1.7;
    max-width: 300px;
}

.footer-links h4 {
    font-family: var(--font-display);
    font-size: 1rem;
    font-weight: 700;
    margin-bottom: 20px;
    color: var(--color-text-primary);
}

.footer-links ul li {
    margin-bottom: 10px;
}

.footer-links ul li a {
    font-size: 0.88rem;
    color: var(--color-text-muted);
    transition: all var(--transition-fast);
}

.footer-links ul li a:hover {
    color: var(--color-accent-1);
    padding-left: 6px;
}

.footer-bottom {
    padding-top: 32px;
    border-top: 1px solid var(--border-color);
    text-align: center;
}

.footer-bottom p {
    font-size: 0.82rem;
    color: var(--color-text-muted);
}

/* ============================================
   CATEGORY PAGES 
   ============================================ */
.page-hero {
    position: relative;
    min-height: 60vh;
    display: flex;
    align-items: flex-end;
    padding-bottom: 80px;
    overflow: hidden;
}

.page-hero .hero-bg {
    position: absolute;
    inset: 0;
}

.page-hero .hero-bg-img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.page-hero .hero-overlay {
    position: absolute;
    inset: 0;
    background: linear-gradient(180deg, rgba(10, 14, 13, 0.3) 0%, rgba(10, 14, 13, 0.95) 85%, #0a0e0d 100%);
}

.page-hero-content {
    position: relative;
    z-index: 2;
    max-width: var(--container-max);
    margin: 0 auto;
    padding: 0 24px;
}

.page-hero-content .breadcrumb {
    display: flex;
    align-items: center;
    gap: 8px;
    margin-bottom: 20px;
    font-size: 0.85rem;
    color: var(--color-text-muted);
}

.page-hero-content .breadcrumb a {
    color: var(--color-accent-1);
}

.page-hero-content .breadcrumb span {
    color: var(--color-text-muted);
}

.page-hero-content h1 {
    font-family: var(--font-display);
    font-size: clamp(2.5rem, 5vw, 4rem);
    font-weight: 800;
    margin-bottom: 12px;
    line-height: 1.15;
}

.page-hero-content .page-order {
    font-family: var(--font-mono);
    font-size: 0.9rem;
    color: var(--color-accent-2);
    margin-bottom: 16px;
}

.page-hero-content .page-intro {
    font-size: 1.1rem;
    color: var(--color-text-secondary);
    max-width: 600px;
    line-height: 1.7;
}

/* Page Content */
.page-content {
    padding: 80px 0;
}

.content-grid {
    display: grid;
    grid-template-columns: 2fr 1fr;
    gap: 48px;
}

.content-main h2 {
    font-family: var(--font-display);
    font-size: 1.8rem;
    font-weight: 700;
    margin-bottom: 16px;
    margin-top: 48px;
    line-height: 1.3;
}

.content-main h2:first-child {
    margin-top: 0;
}

.content-main p {
    font-size: 1rem;
    color: var(--color-text-secondary);
    line-height: 1.85;
    margin-bottom: 20px;
}

.content-main ul {
    margin-bottom: 20px;
    padding-left: 24px;
}

.content-main ul li {
    list-style: disc;
    font-size: 0.95rem;
    color: var(--color-text-secondary);
    line-height: 1.8;
    margin-bottom: 8px;
}

.content-main ul li strong {
    color: var(--color-text-primary);
}

.content-image {
    width: 100%;
    border-radius: var(--radius-lg);
    overflow: hidden;
    margin: 32px 0;
    border: 1px solid var(--border-color);
}

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

.content-image figcaption {
    padding: 12px 16px;
    font-size: 0.82rem;
    color: var(--color-text-muted);
    background: var(--color-bg-card);
    font-style: italic;
}

/* Sidebar */
.content-sidebar {
    position: sticky;
    top: 100px;
    align-self: start;
}

.sidebar-card {
    background: var(--color-bg-card);
    border: 1px solid var(--border-color);
    border-radius: var(--radius-lg);
    padding: 28px;
    margin-bottom: 24px;
}

.sidebar-card h3 {
    font-family: var(--font-display);
    font-size: 1.1rem;
    font-weight: 700;
    margin-bottom: 20px;
    padding-bottom: 12px;
    border-bottom: 1px solid var(--border-color);
}

.info-row {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 10px 0;
    border-bottom: 1px solid rgba(74, 222, 128, 0.05);
}

.info-row:last-child {
    border-bottom: none;
}

.info-label {
    font-size: 0.85rem;
    color: var(--color-text-muted);
}

.info-value {
    font-size: 0.85rem;
    font-weight: 600;
    color: var(--color-accent-1);
}

.related-list {
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.related-list a {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 10px 14px;
    border-radius: var(--radius-sm);
    font-size: 0.88rem;
    color: var(--color-text-secondary);
    transition: all var(--transition-fast);
    border: 1px solid transparent;
}

.related-list a:hover {
    background: rgba(74, 222, 128, 0.05);
    border-color: var(--border-color);
    color: var(--color-accent-1);
}

.related-list a span {
    font-size: 1.2rem;
}

/* ============================================
   IDENTIFICATION PAGE
   ============================================ */
.id-hero {
    padding: 140px 0 60px;
    text-align: center;
    background: var(--color-bg-secondary);
}

/* --- Filter Bar --- */
.id-controls {
    background: var(--color-bg-secondary);
    padding: 0 0 8px;
    border-bottom: 1px solid var(--border-color);
    position: relative;
}

.id-filter-bar {
    display: grid;
    grid-template-columns: 1fr 1fr 1fr;
    gap: 24px;
    align-items: end;
}

.id-filter-field {
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.id-filter-label {
    font-size: 0.82rem;
    font-weight: 600;
    color: var(--color-text-secondary);
    letter-spacing: 0.02em;
}

.id-input-wrapper {
    position: relative;
}

.id-input,
.id-select {
    width: 100%;
    padding: 12px 16px;
    background: var(--color-bg-card);
    border: 1px solid var(--border-color);
    border-radius: var(--radius-sm);
    color: var(--color-text-primary);
    font-family: var(--font-body);
    font-size: 0.92rem;
    transition: all var(--transition-fast);
    outline: none;
}

.id-input::placeholder {
    color: var(--color-text-muted);
}

.id-input:focus,
.id-select:focus {
    border-color: var(--color-accent-1);
    box-shadow: 0 0 0 3px rgba(74, 222, 128, 0.08);
}

.id-input:hover,
.id-select:hover {
    border-color: rgba(74, 222, 128, 0.3);
}

.id-select-wrapper {
    position: relative;
}

.id-select {
    appearance: none;
    -webkit-appearance: none;
    -moz-appearance: none;
    padding-right: 40px;
    cursor: pointer;
}

.id-select option {
    background: var(--color-bg-card);
    color: var(--color-text-primary);
    padding: 8px;
}

.id-select-chevron {
    position: absolute;
    right: 14px;
    top: 50%;
    transform: translateY(-50%);
    color: var(--color-text-muted);
    pointer-events: none;
    transition: color var(--transition-fast);
}

.id-select:focus + .id-select-chevron {
    color: var(--color-accent-1);
}

.id-results-info {
    padding: 16px 0 8px;
}

.id-results-count {
    font-size: 0.82rem;
    color: var(--color-text-muted);
}

.id-results-count strong {
    color: var(--color-accent-1);
    font-weight: 700;
}

/* --- ID Grid --- */
.id-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 24px;
    padding: 48px 0 80px;
}

.id-card {
    background: var(--color-bg-card);
    border: 1px solid var(--border-color);
    border-radius: var(--radius-lg);
    overflow: hidden;
    transition: all var(--transition-slow);
    cursor: pointer;
}

.id-card.id-card--hidden {
    display: none;
}

.id-card:hover {
    transform: translateY(-6px);
    border-color: var(--border-color-hover);
    box-shadow: var(--shadow-glow);
}

.id-card-image {
    height: 200px;
    overflow: hidden;
}

.id-card-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform var(--transition-slow);
}

.id-card:hover .id-card-image img {
    transform: scale(1.06);
}

.id-card-body {
    padding: 24px;
}

.id-card-body h3 {
    font-family: var(--font-display);
    font-size: 1.2rem;
    font-weight: 700;
    margin-bottom: 8px;
}

.id-card-body .id-order {
    font-family: var(--font-mono);
    font-size: 0.75rem;
    color: var(--color-accent-2);
    margin-bottom: 10px;
}

.id-card-body p {
    font-size: 0.88rem;
    color: var(--color-text-secondary);
    line-height: 1.7;
    margin-bottom: 14px;
}

.id-features {
    display: flex;
    flex-wrap: wrap;
    gap: 6px;
}

.id-feature {
    padding: 4px 10px;
    background: rgba(74, 222, 128, 0.06);
    border: 1px solid rgba(74, 222, 128, 0.1);
    border-radius: 100px;
    font-size: 0.72rem;
    color: var(--color-accent-1);
    font-weight: 500;
}

/* --- No Results --- */
.id-no-results {
    text-align: center;
    padding: 80px 24px;
}

.id-no-results-icon {
    margin-bottom: 24px;
    color: var(--color-text-muted);
    opacity: 0.4;
}

.id-no-results h3 {
    font-family: var(--font-display);
    font-size: 1.6rem;
    font-weight: 700;
    margin-bottom: 10px;
    color: var(--color-text-primary);
}

.id-no-results p {
    font-size: 0.95rem;
    color: var(--color-text-muted);
    margin-bottom: 28px;
    max-width: 420px;
    margin-left: auto;
    margin-right: auto;
}

/* ============================================
   ABOUT PAGE
   ============================================ */
.about-hero {
    padding: 160px 0 80px;
    text-align: center;
    position: relative;
}

.about-content {
    padding: 80px 0;
}

.about-content .content-block {
    max-width: 800px;
    margin: 0 auto 60px;
}

.about-content .content-block h2 {
    font-family: var(--font-display);
    font-size: 1.8rem;
    font-weight: 700;
    margin-bottom: 20px;
    line-height: 1.3;
}

.about-content .content-block p {
    font-size: 1rem;
    color: var(--color-text-secondary);
    line-height: 1.85;
    margin-bottom: 18px;
}

/* ============================================
   ANIMATIONS — Scroll Reveal
   ============================================ */
.reveal {
    opacity: 0;
    transform: translateY(40px);
    transition: all 0.8s cubic-bezier(0.4, 0, 0.2, 1);
}

.reveal.revealed {
    opacity: 1;
    transform: translateY(0);
}

.reveal-delay-1 { transition-delay: 0.1s; }
.reveal-delay-2 { transition-delay: 0.2s; }
.reveal-delay-3 { transition-delay: 0.3s; }
.reveal-delay-4 { transition-delay: 0.4s; }
.reveal-delay-5 { transition-delay: 0.5s; }

/* ============================================
   RESPONSIVE DESIGN
   ============================================ */
@media (max-width: 1024px) {
    .categories-grid {
        grid-template-columns: repeat(2, 1fr);
    }
    .category-card--large {
        grid-column: 1 / -1;
    }
    .facts-grid {
        grid-template-columns: repeat(2, 1fr);
    }
    .footer-grid {
        grid-template-columns: repeat(2, 1fr);
    }
    .content-grid {
        grid-template-columns: 1fr;
    }
    .content-sidebar {
        position: static;
    }
    .id-filter-bar {
        grid-template-columns: 1fr 1fr;
    }
    .id-filter-bar .id-filter-field:first-child {
        grid-column: 1 / -1;
    }
}

@media (max-width: 768px) {
    .nav-toggle {
        display: flex;
    }
    .nav-menu {
        position: fixed;
        top: 0;
        right: -100%;
        width: 80%;
        max-width: 360px;
        height: 100vh;
        background: var(--color-bg-card);
        border-left: 1px solid var(--border-color);
        flex-direction: column;
        align-items: flex-start;
        padding: 80px 32px 32px;
        transition: right var(--transition-slow);
        gap: 4px;
    }
    .nav-menu.open {
        right: 0;
    }
    .dropdown-menu {
        position: static;
        transform: none;
        opacity: 1;
        visibility: visible;
        background: transparent;
        border: none;
        box-shadow: none;
        padding-left: 16px;
        max-height: 0;
        overflow: hidden;
        transition: max-height var(--transition-base);
    }
    .nav-dropdown.active .dropdown-menu {
        max-height: 400px;
    }
    .categories-grid {
        grid-template-columns: 1fr;
    }
    .category-card--large {
        grid-template-columns: 1fr;
    }
    .category-card--large .card-image {
        height: 250px;
    }
    .hero-stats {
        flex-direction: column;
        gap: 20px;
    }
    .stat-divider {
        width: 40px;
        height: 1px;
    }
    .facts-grid {
        grid-template-columns: 1fr;
    }
    .featured-grid {
        grid-template-columns: 1fr;
    }
    .footer-grid {
        grid-template-columns: 1fr;
        gap: 36px;
    }
    .page-hero {
        min-height: 50vh;
    }
    .id-grid {
        grid-template-columns: 1fr;
    }
    .id-filter-bar {
        grid-template-columns: 1fr;
    }
    .id-filter-bar .id-filter-field:first-child {
        grid-column: auto;
    }
}

@media (max-width: 480px) {
    .hero-title {
        font-size: 2rem;
    }
    .hero-actions {
        flex-direction: column;
        width: 100%;
    }
    .hero-actions .btn {
        width: 100%;
        justify-content: center;
    }
}
