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

:root {
    --primary-color: #FF5A5F;
    --secondary-color: #2EC4B6;
    --accent-color: #FFD166;
    --dark-color: #011627;
    --light-color: #FDFFFC;
    --gray-color: #E6E8E6;
    --font-main: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    --font-heading: 'Montserrat', sans-serif;
}

html {
    scroll-behavior: smooth;
}

body {
    font-family: var(--font-main);
    line-height: 1.6;
    color: var(--dark-color);
    background-color: var(--light-color);
}

img, svg {
    max-width: 100%;
    height: auto;
}

.container {
    width: 90%;
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 15px;
}

/* Typography */
h1, h2, h3, h4, h5, h6 {
    font-family: var(--font-heading);
    margin-bottom: 1rem;
    line-height: 1.2;
    font-weight: 700;
    color: var(--dark-color);
}

h1 {
    font-size: 3.5rem;
    margin-bottom: 1.5rem;
}

h2 {
    font-size: 2.5rem;
    margin-bottom: 1.25rem;
    text-align: center;
    position: relative;
    padding-bottom: 15px;
}

h2:after {
    content: '';
    position: absolute;
    width: 80px;
    height: 3px;
    background: var(--primary-color);
    bottom: 0;
    left: 50%;
    transform: translateX(-50%);
}

h3 {
    font-size: 1.75rem;
}

p {
    margin-bottom: 1rem;
}

a {
    color: var(--primary-color);
    text-decoration: none;
    transition: all 0.3s ease;
}

a:hover {
    color: var(--secondary-color);
}

ul {
    list-style: none;
}

section {
    padding: 5rem 0;
}

.btn {
    display: inline-block;
    background-color: var(--primary-color);
    color: var(--light-color);
    padding: 12px 25px;
    border-radius: 30px;
    text-transform: uppercase;
    font-weight: 600;
    letter-spacing: 1px;
    transition: all 0.3s ease;
    border: none;
    cursor: pointer;
}

.btn:hover {
    background-color: var(--secondary-color);
    color: var(--light-color);
    transform: translateY(-3px);
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.1);
}

/* Header & Navigation */
header {
    background-color: var(--light-color);
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
    position: sticky;
    top: 0;
    z-index: 1000;
}

header .container {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 1.5rem 15px;
}

.logo a {
    display: flex;
    align-items: center;
    color: var(--dark-color);
    font-weight: 700;
    font-size: 1.5rem;
}

.logo svg {
    margin-right: 10px;
}

nav ul {
    display: flex;
}

nav li {
    margin-left: 1.5rem;
}

nav a {
    color: var(--dark-color);
    font-weight: 500;
    position: relative;
}

nav a::after {
    content: '';
    position: absolute;
    width: 0;
    height: 2px;
    background: var(--primary-color);
    left: 0;
    bottom: -5px;
    transition: width 0.3s;
}

nav a:hover::after,
nav a.active::after {
    width: 100%;
}

/* Hero Section */
.hero {
    background: linear-gradient(135deg, rgba(255, 90, 95, 0.8) 0%, rgba(46, 196, 182, 0.8) 100%);
    color: var(--light-color);
    text-align: center;
    padding: 8rem 0;
}

.hero h1 {
    color: var(--light-color);
    text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.2);
}

.hero p {
    font-size: 1.4rem;
    max-width: 600px;
    margin: 0 auto 2rem;
}

/* About Section */
.about {
    background-color: var(--gray-color);
}

.flex-container {
    display: flex;
    flex-wrap: wrap;
    gap: 2rem;
    margin-top: 3rem;
}

.text-content {
    flex: 1 1 500px;
}

.facts {
    flex: 1 1 300px;
    background-color: var(--light-color);
    padding: 2rem;
    border-radius: 10px;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.1);
}

.facts h3 {
    color: var(--primary-color);
    margin-bottom: 1rem;
}

.facts ul li {
    margin-bottom: 1rem;
    position: relative;
    padding-left: 30px;
}

.facts ul li:before {
    content: '✦';
    position: absolute;
    left: 0;
    color: var(--secondary-color);
    font-weight: bold;
}

/* Species Section */
.species-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
    gap: 2rem;
    margin-top: 3rem;
}

.species-card {
    background: var(--light-color);
    padding: 2rem;
    border-radius: 10px;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.05);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    text-align: center;
}

.species-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 20px rgba(0, 0, 0, 0.1);
}

.species-card h3 {
    color: var(--primary-color);
    margin-bottom: 1rem;
}

/* Conservation Section */
.conservation {
    background: linear-gradient(135deg, rgba(46, 196, 182, 0.1) 0%, rgba(255, 209, 102, 0.1) 100%);
    text-align: center;
}

.conservation p {
    max-width: 800px;
    margin: 0 auto 1.5rem;
}

/* Entertainment Section */
.entertainment {
    background-color: var(--gray-color);
}

.resource-links {
    max-width: 800px;
    margin: 2rem auto;
}

.resource-links ul {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(200px, 1fr));
    gap: 1rem;
    margin-top: 1rem;
}

.resource-links li {
    padding: 0.5rem;
    transition: transform 0.3s ease;
}

.resource-links li:hover {
    transform: translateY(-3px);
}

/* Contact Section */
.contact {
    text-align: center;
}

form {
    max-width: 600px;
    margin: 2rem auto;
}

.form-group {
    margin-bottom: 1.5rem;
    text-align: left;
}

label {
    display: block;
    margin-bottom: 0.5rem;
    font-weight: 600;
}

input, textarea {
    width: 100%;
    padding: 12px;
    border: 1px solid #ddd;
    border-radius: 5px;
    transition: border-color 0.3s ease;
    font-family: var(--font-main);
}

input:focus, textarea:focus {
    border-color: var(--secondary-color);
    outline: none;
}

/* Footer */
footer {
    background-color: var(--dark-color);
    color: var(--light-color);
    padding: 4rem 0 2rem;
}

.footer-content {
    display: flex;
    flex-wrap: wrap;
    justify-content: space-between;
    gap: 2rem;
    margin-bottom: 3rem;
}

.footer-logo {
    flex: 1 1 300px;
    display: flex;
    align-items: center;
}

.footer-logo span {
    font-size: 1.5rem;
    font-weight: 700;
    margin-left: 10px;
}

.footer-links {
    flex: 1 1 200px;
}

.footer-links ul li {
    margin-bottom: 0.5rem;
}

.footer-links a {
    color: var(--gray-color);
}

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

.footer-newsletter {
    flex: 1 1 300px;
}

.footer-newsletter form {
    display: flex;
    margin-top: 1rem;
}

.footer-newsletter input {
    flex-grow: 1;
    margin-right: 10px;
    border-radius: 5px 0 0 5px;
}

.footer-newsletter button {
    background-color: var(--primary-color);
    color: var(--light-color);
    border: none;
    padding: 0 20px;
    border-radius: 0 5px 5px 0;
    cursor: pointer;
    transition: background-color 0.3s;
}

.footer-newsletter button:hover {
    background-color: var(--secondary-color);
}

.footer-bottom {
    text-align: center;
    padding-top: 2rem;
    border-top: 1px solid rgba(255, 255, 255, 0.1);
}

/* Mobile Responsiveness */
@media (max-width: 768px) {
    h1 {
        font-size: 2.5rem;
    }
    
    h2 {
        font-size: 2rem;
    }
    
    header .container {
        flex-direction: column;
    }
    
    nav {
        margin-top: 1rem;
    }
    
    nav ul {
        flex-wrap: wrap;
        justify-content: center;
    }
    
    nav li {
        margin: 0.5rem 1rem;
    }
    
    .hero {
        padding: 5rem 0;
    }
    
    .flex-container, .species-grid {
        gap: 1rem;
    }
    
    .footer-content {
        flex-direction: column;
        align-items: center;
        text-align: center;
    }
    
    .footer-links ul {
        display: flex;
        flex-wrap: wrap;
        justify-content: center;
        gap: 1rem;
    }
    
    .footer-links ul li {
        margin: 0;
    }
    
    .footer-newsletter form {
        flex-direction: column;
    }
    
    .footer-newsletter input, .footer-newsletter button {
        margin: 0.5rem 0;
        border-radius: 5px;
    }
}

@media (max-width: 480px) {
    section {
        padding: 3rem 0;
    }
    
    h1 {
        font-size: 2rem;
    }
    
    h2 {
        font-size: 1.75rem;
    }
    
    .hero p {
        font-size: 1.1rem;
    }
}
