:root {
    --bg-deep: #0a192f;
    --bg-surface: rgba(16, 33, 65, 0.7);
    --bg-card: rgba(16, 33, 65, 0.9);
    --accent-orange: #f97316;
    --accent-teal: #2dd4bf;
    --text-primary: #f8fafc;
    --text-secondary: #94a3b8;
    --glass-border: rgba(255, 255, 255, 0.1);
    --shadow-premium: 0 25px 50px -12px rgba(0, 0, 0, 0.5);
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    -webkit-font-smoothing: antialiased;
}

html {
    scroll-behavior: smooth;
}

body {
    background-color: var(--bg-deep);
    color: var(--text-primary);
    font-family: 'Outfit', sans-serif;
    line-height: 1.7;
    background-image:
        radial-gradient(circle at 20% 30%, rgba(45, 212, 191, 0.05) 0%, transparent 50%),
        radial-gradient(circle at 80% 70%, rgba(249, 115, 22, 0.05) 0%, transparent 50%);
    background-attachment: fixed;
}

/* Navigation */
.main-header {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    z-index: 100;
    padding: 1rem 2rem;
    background: rgba(10, 25, 47, 0.95);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    border-bottom: 1px solid var(--glass-border);
}

.main-header nav {
    max-width: 1400px;
    margin: 0 auto;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.logo {
    font-family: 'Montserrat', sans-serif;
    font-weight: 900;
    font-size: 1.5rem;
    letter-spacing: 2px;
    background: linear-gradient(90deg, var(--accent-teal), var(--accent-orange));
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    text-decoration: none;
}

.mobile-menu-btn {
    display: none;
    background: transparent;
    border: none;
    color: var(--text-primary);
    cursor: pointer;
}

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

.nav-links a {
    text-decoration: none;
    color: var(--text-secondary);
    font-weight: 500;
    font-size: 0.9rem;
    transition: color 0.3s;
}

.nav-links a:hover {
    color: var(--accent-teal);
}

/* Hero Section */
.hero {
    min-height: 60vh;
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 8rem 4rem 4rem;
    max-width: 1400px;
    margin: 0 auto;
    gap: 4rem;
}

.hero-content {
    flex: 1;
}

.taxonomy {
    display: inline-block;
    font-style: italic;
    color: var(--accent-teal);
    font-size: 1.1rem;
    margin-bottom: 0.5rem;
    letter-spacing: 1px;
}

.hero h1 {
    font-family: 'Montserrat', sans-serif;
    font-size: 4.5rem;
    font-weight: 900;
    letter-spacing: -2px;
    margin-bottom: 1rem;
    background: linear-gradient(to right, #fff, var(--text-secondary));
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
}

.tagline {
    font-size: 1.5rem;
    color: var(--text-secondary);
    font-weight: 300;
}

.hero-image {
    flex: 0 0 350px;
}

.hero-tiger {
    width: 350px;
    height: auto;
    filter: drop-shadow(0 25px 50px rgba(0, 0, 0, 0.5));
    animation: float 6s ease-in-out infinite;
}

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

/* Content Layout */
.content-wrapper {
    max-width: 1400px;
    margin: 0 auto;
    padding: 2rem;
    display: grid;
    grid-template-columns: 320px 1fr;
    gap: 3rem;
}

/* Sidebar */
.sidebar {
    position: sticky;
    top: 100px;
    height: fit-content;
    display: flex;
    flex-direction: column;
    gap: 1.5rem;
}

.info-card {
    background: var(--bg-card);
    border: 1px solid var(--glass-border);
    border-radius: 16px;
    padding: 1.5rem;
    backdrop-filter: blur(12px);
}

.info-card h3 {
    font-family: 'Montserrat', sans-serif;
    font-size: 1rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 2px;
    color: var(--accent-teal);
    margin-bottom: 1rem;
    padding-bottom: 0.5rem;
    border-bottom: 1px solid var(--glass-border);
}

.facts-table {
    width: 100%;
    border-collapse: collapse;
}

.facts-table tr {
    border-bottom: 1px solid rgba(255, 255, 255, 0.05);
}

.facts-table tr:last-child {
    border-bottom: none;
}

.facts-table th,
.facts-table td {
    padding: 0.6rem 0;
    text-align: left;
    font-size: 0.85rem;
}

.facts-table th {
    color: var(--text-secondary);
    font-weight: 400;
    width: 45%;
}

.facts-table td {
    color: var(--text-primary);
}

.facts-table em {
    color: var(--accent-teal);
}

.status-badge {
    display: inline-block;
    padding: 0.2rem 0.6rem;
    border-radius: 20px;
    font-size: 0.7rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.status-badge.endangered {
    background: rgba(239, 68, 68, 0.2);
    color: #ef4444;
    border: 1px solid rgba(239, 68, 68, 0.3);
}

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

.taxonomy-list li {
    padding: 0.4rem 0;
    font-size: 0.85rem;
    display: flex;
    justify-content: space-between;
    border-bottom: 1px solid rgba(255, 255, 255, 0.05);
}

.taxonomy-list li:last-child {
    border-bottom: none;
}

.taxonomy-list span {
    color: var(--text-secondary);
}

/* Main Content */
.main-content {
    min-width: 0;
}

.content-section {
    background: var(--bg-card);
    border: 1px solid var(--glass-border);
    border-radius: 24px;
    padding: 2.5rem;
    margin-bottom: 2rem;
    backdrop-filter: blur(12px);
}

.content-section h2 {
    font-family: 'Montserrat', sans-serif;
    font-size: 2rem;
    font-weight: 700;
    margin-bottom: 1.5rem;
    color: var(--text-primary);
    position: relative;
    padding-bottom: 0.75rem;
}

.content-section h2::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 60px;
    height: 3px;
    background: linear-gradient(90deg, var(--accent-teal), var(--accent-orange));
    border-radius: 2px;
}

.content-section h3 {
    font-family: 'Montserrat', sans-serif;
    font-size: 1.3rem;
    font-weight: 600;
    margin: 2rem 0 1rem;
    color: var(--accent-teal);
}

.content-section h4 {
    font-size: 1.1rem;
    font-weight: 600;
    margin-bottom: 0.5rem;
}

.content-section p {
    margin-bottom: 1rem;
    color: var(--text-secondary);
}

.content-section p.lead {
    font-size: 1.2rem;
    color: var(--text-primary);
    line-height: 1.8;
}

.content-section ul {
    margin: 1rem 0 1rem 1.5rem;
    color: var(--text-secondary);
}

.content-section li {
    margin-bottom: 0.5rem;
}

.content-section strong {
    color: var(--text-primary);
}

/* Feature Grid */
.feature-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 1.5rem;
    margin: 1.5rem 0;
}

.feature-card {
    background: rgba(0, 0, 0, 0.2);
    border: 1px solid var(--glass-border);
    border-radius: 16px;
    padding: 1.5rem;
    transition: transform 0.3s, border-color 0.3s;
}

.feature-card:hover {
    transform: translateY(-4px);
    border-color: var(--accent-teal);
}

.feature-icon {
    font-size: 2.5rem;
    margin-bottom: 1rem;
}

.feature-card h4 {
    color: var(--text-primary);
    margin-bottom: 0.5rem;
}

.feature-card p {
    font-size: 0.9rem;
    margin-bottom: 0;
}

/* Habitat List */
.habitat-list {
    list-style: none;
    margin-left: 0 !important;
}

.habitat-list li {
    padding: 0.75rem 1rem;
    background: rgba(45, 212, 191, 0.1);
    border-left: 3px solid var(--accent-teal);
    margin-bottom: 0.5rem;
    border-radius: 0 8px 8px 0;
}

/* Diet Grid */
.diet-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 1rem;
    margin: 1rem 0;
}

.diet-item {
    background: rgba(0, 0, 0, 0.2);
    padding: 1rem;
    border-radius: 12px;
    border: 1px solid var(--glass-border);
}

.diet-item strong {
    display: block;
    color: var(--accent-orange);
    margin-bottom: 0.5rem;
    font-size: 0.85rem;
    text-transform: uppercase;
    letter-spacing: 1px;
}

.diet-item p {
    font-size: 0.9rem;
    margin: 0;
}

/* Rivals Grid */
.rivals-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 1rem;
    margin: 1rem 0;
}

.rival-card {
    background: rgba(0, 0, 0, 0.2);
    padding: 1.25rem;
    border-radius: 12px;
    border: 1px solid var(--glass-border);
    transition: transform 0.3s, border-color 0.3s;
}

.rival-card:hover {
    transform: translateY(-4px);
    border-color: var(--accent-orange);
}

.rival-card h4 {
    color: var(--accent-teal);
    margin-bottom: 0.5rem;
    font-size: 1.1rem;
}

.rival-card p {
    font-size: 0.9rem;
    margin: 0;
}

/* Section Images */
.section-image {
    margin: 1.5rem 0;
    text-align: center;
}

.section-image img {
    max-width: 100%;
    height: auto;
    border-radius: 16px;
    box-shadow: var(--shadow-premium);
}

.image-caption {
    font-size: 0.9rem;
    font-style: italic;
    color: var(--text-secondary);
    margin-top: 0.75rem;
}

/* Highlight Box */
.highlight-box {
    background: linear-gradient(135deg, rgba(45, 212, 191, 0.1), rgba(249, 115, 22, 0.1));
    border: 1px solid var(--accent-teal);
    border-radius: 16px;
    padding: 1.5rem;
    margin: 1.5rem 0;
}

.highlight-box p {
    color: var(--text-primary);
}

.highlight-box p:last-child {
    margin-bottom: 0;
}

/* Alert Box */
.alert-box {
    background: rgba(239, 68, 68, 0.1);
    border: 1px solid rgba(239, 68, 68, 0.3);
    border-radius: 16px;
    padding: 1.5rem;
    margin-bottom: 1.5rem;
}

.alert-box h3 {
    color: #ef4444;
    margin: 0 0 0.5rem 0;
    font-size: 1.2rem;
}

.alert-box p {
    margin: 0;
    color: var(--text-primary);
}

/* Threats List */
.threats-list {
    list-style: none;
    margin-left: 0 !important;
}

.threats-list li {
    padding: 1rem;
    background: rgba(239, 68, 68, 0.05);
    border-left: 3px solid #ef4444;
    margin-bottom: 0.5rem;
    border-radius: 0 8px 8px 0;
}

/* Mission Grid */
.mission-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 1rem;
    margin: 1.5rem 0;
}

.mission-item {
    background: rgba(45, 212, 191, 0.1);
    border: 1px solid rgba(45, 212, 191, 0.2);
    border-radius: 12px;
    padding: 1.25rem;
    text-align: center;
}

.mission-icon {
    font-size: 2rem;
    display: block;
    margin-bottom: 0.75rem;
}

.mission-item p {
    font-size: 0.9rem;
    margin: 0;
    color: var(--text-primary);
}

/* Traits Grid */
.traits-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
    gap: 1rem;
    margin: 1.5rem 0;
}

.trait {
    background: rgba(0, 0, 0, 0.2);
    border: 1px solid var(--glass-border);
    border-radius: 12px;
    padding: 1.25rem;
    text-align: center;
    transition: transform 0.3s, border-color 0.3s;
}

.trait:hover {
    transform: translateY(-4px);
    border-color: var(--accent-orange);
}

.trait h4 {
    color: var(--text-primary);
    margin-bottom: 0.5rem;
}

.trait p {
    font-size: 0.85rem;
    margin: 0;
}

/* Footer */
footer {
    background: rgba(0, 0, 0, 0.3);
    border-top: 1px solid var(--glass-border);
    padding: 3rem 2rem;
    margin-top: 4rem;
    text-align: center;
}

.footer-content {
    max-width: 600px;
    margin: 0 auto;
}

.footer-logo {
    font-family: 'Montserrat', sans-serif;
    font-weight: 900;
    font-size: 2rem;
    letter-spacing: 2px;
    background: linear-gradient(90deg, var(--accent-teal), var(--accent-orange));
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    margin-bottom: 0.5rem;
}

footer p {
    color: var(--text-secondary);
    margin-bottom: 0.5rem;
}

.footer-tagline {
    font-style: italic;
    margin-bottom: 1.5rem !important;
}

.footer-links {
    display: flex;
    justify-content: center;
    gap: 2rem;
    margin-bottom: 1.5rem;
}

.footer-links a {
    color: var(--text-secondary);
    text-decoration: none;
    transition: color 0.3s;
}

.footer-links a:hover {
    color: var(--accent-teal);
}

.copyright {
    font-size: 0.8rem;
    color: var(--text-secondary);
    opacity: 0.7;
}

/* Responsive */
@media (max-width: 1024px) {
    .content-wrapper {
        grid-template-columns: 1fr;
    }

    .sidebar {
        position: static;
        display: grid;
        grid-template-columns: repeat(2, 1fr);
        gap: 1rem;
    }

    .hero {
        flex-direction: column;
        text-align: center;
        padding: 7rem 2rem 3rem;
    }

    .hero-tiger {
        width: 250px;
    }

    .hero h1 {
        font-size: 3rem;
    }
}

@media (max-width: 768px) {
    .mobile-menu-btn {
        display: block;
    }

    .nav-links {
        position: fixed;
        top: 0;
        left: 0;
        width: 100%;
        height: 100vh;
        background: rgba(10, 25, 47, 0.98);
        flex-direction: column;
        justify-content: center;
        align-items: center;
        gap: 2rem;
        transform: translateX(100%);
        transition: transform 0.3s ease;
    }

    .nav-links.active {
        transform: translateX(0);
    }

    .nav-links a {
        font-size: 1.5rem;
    }

    .sidebar {
        grid-template-columns: 1fr;
    }

    .hero-tiger {
        width: 180px;
    }

    .hero h1 {
        font-size: 2.5rem;
    }

    .content-section {
        padding: 1.5rem;
    }

    .feature-grid,
    .rivals-grid {
        grid-template-columns: 1fr;
    }

    .diet-grid {
        grid-template-columns: 1fr;
    }

    .content-wrapper {
        padding: 1rem;
    }
}
