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

:root {
    --primary-color: #2ecc71;
    --secondary-color: #27ae60;
    --background-color: #0f1419;
    --text-color: #ecf0f1;
    --card-bg: #1a1f2e;
    --accent-color: #e74c3c;
    --border-radius: 12px;
    --transition: all 0.3s ease;
    --bounce: cubic-bezier(0.68, -0.55, 0.265, 1.55);
    --elastic: cubic-bezier(0.34, 1.56, 0.64, 1);
}

html {
    scroll-behavior: smooth;
}

body {
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    background: linear-gradient(135deg, #0f1419 0%, #1a1f2e 50%, #0f1419 100%);
    background-attachment: fixed;
    color: var(--text-color);
    line-height: 1.6;
    overflow-x: hidden;
    position: relative;
}

/* Cursor trail effect */
body::before {
    content: '';
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    pointer-events: none;
    z-index: 0;
}

/* Navigation */
.navbar {
    background: rgba(15, 20, 25, 0.95);
    padding: 1rem 0;
    position: fixed;
    width: 100%;
    top: 0;
    z-index: 1000;
    border-bottom: 2px solid var(--primary-color);
    backdrop-filter: blur(10px);
}

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

.logo {
    font-size: 1.8rem;
    font-weight: bold;
    color: var(--primary-color);
    text-decoration: none;
    animation: wobble 2s ease-in-out infinite;
    cursor: pointer;
}

.logo:hover {
    animation: bounce 0.6s var(--bounce);
}

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

.nav-link {
    color: var(--text-color);
    text-decoration: none;
    font-weight: 500;
    transition: var(--transition);
    position: relative;
    font-size: 1.05rem;
    letter-spacing: 0.5px;
}

.nav-link::after {
    content: '';
    position: absolute;
    bottom: -5px;
    left: 0;
    width: 0;
    height: 3px;
    background: linear-gradient(90deg, var(--primary-color), #3498db);
    transition: width 0.4s var(--elastic);
    border-radius: 2px;
}

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

.nav-link:hover {
    color: var(--primary-color);
    transform: translateY(-3px);
    text-shadow: 0 0 10px rgba(46, 204, 113, 0.5);
}

.hamburger {
    display: none;
    flex-direction: column;
    cursor: pointer;
}

.hamburger span {
    width: 25px;
    height: 3px;
    background-color: var(--primary-color);
    margin: 5px 0;
    transition: var(--transition);
    border-radius: 2px;
}

/* Hero Section */
.hero {
    margin-top: 70px;
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 3rem;
    align-items: center;
    max-width: 1200px;
    margin-left: auto;
    margin-right: auto;
    padding: 4rem 2rem;
    min-height: 600px;
}

.hero-content h1 {
    font-size: 3.5rem;
    margin-bottom: 1.5rem;
    background: linear-gradient(135deg, var(--primary-color), #3498db);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.hero-content p {
    font-size: 1.2rem;
    color: #bdc3c7;
    margin-bottom: 2rem;
}

.cta-button {
    background: linear-gradient(135deg, var(--primary-color), #3498db);
    color: white;
    border: none;
    padding: 1rem 2.5rem;
    font-size: 1rem;
    border-radius: var(--border-radius);
    cursor: pointer;
    transition: var(--transition);
    font-weight: 600;
    box-shadow: 0 4px 15px rgba(46, 204, 113, 0.3);
    position: relative;
    overflow: hidden;
    letter-spacing: 1px;
    text-transform: uppercase;
    animation: pulse-button 2s ease-in-out infinite;
}

.cta-button::before {
    content: '';
    position: absolute;
    top: 50%;
    left: 50%;
    width: 0;
    height: 0;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.3);
    transform: translate(-50%, -50%);
    transition: width 0.6s, height 0.6s;
}

.cta-button:hover::before {
    width: 300px;
    height: 300px;
}

.cta-button:hover {
    transform: translateY(-5px) scale(1.05);
    box-shadow: 0 10px 30px rgba(46, 204, 113, 0.6);
    animation: none;
}

.cta-button:active {
    transform: translateY(-2px) scale(0.98);
}

.hero-image {
    position: relative;
    border-radius: var(--border-radius);
    overflow: hidden;
    box-shadow: 0 10px 40px rgba(46, 204, 113, 0.2);
    animation: float 4s ease-in-out infinite;
}

.hero-image::before {
    content: '';
    position: absolute;
    top: -50%;
    left: -50%;
    width: 200%;
    height: 200%;
    background: linear-gradient(45deg, transparent 30%, rgba(46, 204, 113, 0.2) 50%, transparent 70%);
    animation: shine 3s infinite;
    z-index: 1;
    pointer-events: none;
}

.hero-image img {
    width: 100%;
    height: auto;
    display: block;
    border-radius: var(--border-radius);
}

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

/* Sections */
section {
    padding: 4rem 2rem;
    max-width: 1200px;
    margin: 0 auto;
}

h2 {
    font-size: 2.5rem;
    text-align: center;
    margin-bottom: 1rem;
    background: linear-gradient(135deg, var(--primary-color), #3498db);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    animation: slideInDown 0.8s var(--bounce);
}

.section-subtitle {
    text-align: center;
    color: #95a5a6;
    margin-bottom: 3rem;
    font-size: 1.1rem;
}

/* Gallery Section */
.gallery {
    background: linear-gradient(135deg, rgba(46, 204, 113, 0.05), rgba(52, 152, 219, 0.05));
    border-radius: var(--border-radius);
    margin: 2rem auto;
}

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

/* Story Section */
.story-section {
    background: linear-gradient(135deg, rgba(46, 204, 113, 0.05), rgba(52, 152, 219, 0.05));
}

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

.story-card {
    background: var(--card-bg);
    border-radius: var(--border-radius);
    overflow: hidden;
    box-shadow: 0 5px 20px rgba(0, 0, 0, 0.3);
    border: 2px solid rgba(46, 204, 113, 0.2);
    transition: var(--transition);
    cursor: pointer;
}

.story-card:hover {
    transform: translateY(-10px) scale(1.03);
    border-color: var(--primary-color);
    box-shadow: 0 15px 40px rgba(46, 204, 113, 0.4);
    animation: bounce 0.6s var(--bounce);
}

.story-image {
    position: relative;
    height: 250px;
    overflow: hidden;
    border-bottom: 3px solid var(--primary-color);
}

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

.story-card:hover .story-image img {
    transform: scale(1.15) rotate(3deg);
    filter: brightness(1.2) saturate(1.3);
}

.story-text {
    padding: 2rem;
}

.story-text h3 {
    color: var(--primary-color);
    font-size: 1.5rem;
    margin-bottom: 1rem;
    text-shadow: 0 0 10px rgba(46, 204, 113, 0.3);
}

.story-text p {
    color: #bdc3c7;
    font-size: 1rem;
    line-height: 1.7;
}

/* Timeline Section */
.timeline-section {
    background: linear-gradient(135deg, rgba(52, 152, 219, 0.05), rgba(46, 204, 113, 0.05));
}

.timeline {
    position: relative;
    padding: 2rem 0;
}

.timeline-item {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 3rem;
    align-items: center;
    margin-bottom: 3rem;
    animation: fadeInUp 0.8s ease-out forwards;
}

.timeline-item:nth-child(even) {
    direction: rtl;
}

.timeline-item:nth-child(even) > * {
    direction: ltr;
}

.timeline-image {
    position: relative;
    height: 280px;
    border-radius: var(--border-radius);
    overflow: hidden;
    box-shadow: 0 10px 30px rgba(46, 204, 113, 0.3);
    cursor: pointer;
    transition: var(--transition);
}

.timeline-image:hover {
    transform: scale(1.05);
    box-shadow: 0 15px 40px rgba(46, 204, 113, 0.5);
}

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

.timeline-image:hover img {
    transform: scale(1.1) rotate(-2deg);
    filter: brightness(1.15);
}

.timeline-content {
    padding: 1.5rem;
    background: var(--card-bg);
    border-radius: var(--border-radius);
    border-left: 4px solid var(--primary-color);
    transition: var(--transition);
    cursor: pointer;
}

.timeline-item:nth-child(even) .timeline-content {
    border-left: none;
    border-right: 4px solid var(--primary-color);
}

.timeline-content:hover {
    transform: translateX(10px);
    box-shadow: 0 10px 30px rgba(46, 204, 113, 0.2);
    background: rgba(46, 204, 113, 0.1);
}

.timeline-content h3 {
    color: var(--primary-color);
    font-size: 1.4rem;
    margin-bottom: 0.8rem;
    animation: glow 1.5s ease-in-out infinite;
}

.timeline-content p {
    color: #bdc3c7;
    font-size: 1rem;
    line-height: 1.7;
    margin-bottom: 1rem;
}

.timeline-item:nth-child(1) { animation-delay: 0s; }
.timeline-item:nth-child(2) { animation-delay: 0.1s; }
.timeline-item:nth-child(3) { animation-delay: 0.2s; }
.timeline-item:nth-child(4) { animation-delay: 0.3s; }
.timeline-item:nth-child(5) { animation-delay: 0.4s; }

.gallery-item {
    position: relative;
    border-radius: var(--border-radius);
    overflow: hidden;
    cursor: pointer;
    height: 300px;
    box-shadow: 0 5px 20px rgba(0, 0, 0, 0.3);
    transition: var(--transition);
}

.gallery-item:hover {
    transform: scale(1.08) rotateY(5deg);
    box-shadow: 0 15px 40px rgba(46, 204, 113, 0.5);
    animation: jiggle 0.4s var(--bounce);
}

.gallery-item img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: var(--transition);
}

.gallery-item:hover img {
    transform: scale(1.15) rotate(2deg);
    filter: brightness(1.2);
}

.gallery-overlay {
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    background: linear-gradient(to top, rgba(0, 0, 0, 0.8), transparent);
    padding: 2rem;
    transform: translateY(100%);
    transition: var(--transition);
    display: flex;
    align-items: flex-end;
    height: 100%;
    justify-content: flex-end;
}

.gallery-item:hover .gallery-overlay {
    transform: translateY(0);
}

.gallery-overlay h3 {
    color: var(--primary-color);
    font-size: 1.3rem;
}

/* Species Section */
.species {
    background: rgba(26, 31, 46, 0.5);
    border-radius: var(--border-radius);
    margin: 2rem auto;
}

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

.species-card {
    background: var(--card-bg);
    border-radius: var(--border-radius);
    overflow: hidden;
    transition: var(--transition);
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.3);
    border: 2px solid rgba(46, 204, 113, 0.1);
    cursor: pointer;
    transform-origin: center;
}

.species-card:hover {
    transform: translateY(-15px) scale(1.05) rotateZ(-2deg);
    border-color: var(--primary-color);
    box-shadow: 0 20px 50px rgba(46, 204, 113, 0.3);
    animation: bounce 0.6s var(--bounce);
}

.species-card:hover:nth-child(even) {
    transform: translateY(-15px) scale(1.05) rotateZ(2deg);
}

.species-card img {
    width: 100%;
    height: 200px;
    object-fit: cover;
    transition: var(--transition);
}

.species-card:hover img {
    transform: scale(1.2) rotate(-3deg);
    filter: brightness(1.15) saturate(1.2);
}

.species-card h3 {
    padding: 1.5rem 1.5rem 0.5rem;
    color: var(--primary-color);
    font-size: 1.3rem;
}

.species-card p {
    padding: 0 1.5rem;
    color: #bdc3c7;
    font-size: 0.95rem;
    margin-bottom: 1rem;
}

.badge {
    display: inline-block;
    background: linear-gradient(135deg, var(--secondary-color), var(--primary-color));
    color: white;
    padding: 0.5rem 1.2rem;
    border-radius: 50px;
    font-size: 0.8rem;
    margin: 0 1.5rem 1.5rem;
    font-weight: 700;
    letter-spacing: 0.5px;
    animation: pop 0.6s var(--bounce);
    cursor: pointer;
    transition: var(--transition);
    box-shadow: 0 2px 10px rgba(46, 204, 113, 0.2);
}

.badge:hover {
    transform: scale(1.15) rotateZ(5deg);
    box-shadow: 0 5px 20px rgba(46, 204, 113, 0.5);
    animation: spin 1s linear infinite;
}

/* About Section */
.about {
    background: linear-gradient(135deg, rgba(46, 204, 113, 0.08), rgba(52, 152, 219, 0.08));
}

.about-content {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 3rem;
    align-items: center;
}

.about-text h2 {
    text-align: left;
    margin-bottom: 1.5rem;
}

.about-text p {
    color: #bdc3c7;
    margin-bottom: 1.5rem;
    line-height: 1.8;
}

.about-features {
    list-style: none;
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 1rem;
    margin-top: 2rem;
}

.about-features li {
    color: var(--primary-color);
    font-weight: 600;
    font-size: 1.1rem;
    animation: slideInRight 0.8s var(--bounce) forwards;
    opacity: 0;
}

.about-features li:nth-child(1) { animation-delay: 0s; }
.about-features li:nth-child(2) { animation-delay: 0.1s; }
.about-features li:nth-child(3) { animation-delay: 0.2s; }
.about-features li:nth-child(4) { animation-delay: 0.3s; }

@keyframes slideInRight {
    from {
        opacity: 0;
        transform: translateX(-50px) rotateZ(-5deg);
    }
    to {
        opacity: 1;
        transform: translateX(0) rotateZ(0);
    }
}

.about-image {
    border-radius: var(--border-radius);
    overflow: hidden;
    box-shadow: 0 10px 40px rgba(46, 204, 113, 0.2);
}

.about-image img {
    width: 100%;
    height: auto;
    display: block;
    border-radius: var(--border-radius);
}

/* Stats Section */
.stats {
    background: linear-gradient(135deg, var(--primary-color), var(--secondary-color));
    color: white;
    margin: 3rem auto;
    padding: 3rem 2rem;
    border-radius: var(--border-radius);
}

.stats-container {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 2rem;
}

.stat-item {
    text-align: center;
    animation: scaleUp 0.8s var(--bounce);
    cursor: pointer;
    transition: var(--transition);
}

.stat-item:hover {
    transform: scale(1.1);
    text-shadow: 0 0 20px rgba(255, 255, 255, 0.5);
}

.stat-item h3 {
    font-size: 2.5rem;
    margin-bottom: 0.5rem;
}

.stat-item p {
    font-size: 1rem;
    opacity: 0.9;
}

@keyframes scaleUp {
    from {
        opacity: 0;
        transform: scale(0) rotateZ(-180deg);
    }
    to {
        opacity: 1;
        transform: scale(1) rotateZ(0);
    }
}

/* Footer */
.footer {
    background: rgba(0, 0, 0, 0.8);
    color: #bdc3c7;
    margin-top: 3rem;
    border-top: 2px solid var(--primary-color);
}

.footer-content {
    max-width: 1200px;
    margin: 0 auto;
    padding: 3rem 2rem;
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 2rem;
}

.footer-section h4 {
    color: var(--primary-color);
    margin-bottom: 1rem;
}

.footer-section ul {
    list-style: none;
}

.footer-section a {
    color: #bdc3c7;
    text-decoration: none;
    transition: var(--transition);
    display: block;
    margin: 0.5rem 0;
    position: relative;
}

.footer-section a::before {
    content: '→';
    position: absolute;
    left: -20px;
    opacity: 0;
    transition: var(--transition);
}

.footer-section a:hover {
    color: var(--primary-color);
    transform: translateX(10px);
    text-shadow: 0 0 10px rgba(46, 204, 113, 0.5);
}

.footer-section a:hover::before {
    opacity: 1;
    left: -25px;
}

.footer-bottom {
    text-align: center;
    padding: 1.5rem 2rem;
    border-top: 1px solid rgba(46, 204, 113, 0.1);
    color: #7f8c8d;
}

/* Animations */
.fade-in {
    animation: fadeInUp 0.8s ease-out forwards;
}

@keyframes wobble {
    0%, 100% { transform: rotateZ(-1deg); }
    50% { transform: rotateZ(1deg); }
}

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

@keyframes jiggle {
    0%, 100% { transform: rotateZ(0); }
    25% { transform: rotateZ(5deg); }
    75% { transform: rotateZ(-5deg); }
}

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

@keyframes pulse-button {
    0%, 100% { box-shadow: 0 4px 15px rgba(46, 204, 113, 0.3); }
    50% { box-shadow: 0 4px 25px rgba(46, 204, 113, 0.6); }
}

@keyframes shine {
    0% { transform: translateX(-100%) translateY(-100%) rotate(45deg); }
    100% { transform: translateX(100%) translateY(100%) rotate(45deg); }
}

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

@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(50px) rotateZ(-3deg);
    }
    to {
        opacity: 1;
        transform: translateY(0) rotateZ(0);
    }
}

@keyframes spin {
    from { transform: rotateZ(0deg); }
    to { transform: rotateZ(360deg); }
}

@keyframes heartbeat {
    0%, 100% { transform: scale(1); }
    10%, 30% { transform: scale(0.9); }
    20%, 50%, 80%, 100% { transform: scale(1); }
    40%, 60% { transform: scale(1.1); }
}

@keyframes pop {
    0% { transform: scale(0) rotateZ(-180deg); }
    50% { transform: scale(1.2); }
    100% { transform: scale(1) rotateZ(0deg); }
}

@keyframes glow {
    0%, 100% { 
        box-shadow: 0 0 5px rgba(46, 204, 113, 0.5);
        text-shadow: 0 0 10px rgba(46, 204, 113, 0.3);
    }
    50% { 
        box-shadow: 0 0 20px rgba(46, 204, 113, 1);
        text-shadow: 0 0 20px rgba(46, 204, 113, 0.8);
    }
}

/* Responsive Design */
@media (max-width: 768px) {
    .hero {
        grid-template-columns: 1fr;
        padding: 2rem 1rem;
        margin-top: 100px;
    }

    .hero-content h1 {
        font-size: 2rem;
    }

    .nav-menu {
        display: none;
    }

    .hamburger {
        display: flex;
    }

    h2 {
        font-size: 1.8rem;
    }

    .timeline-item {
        grid-template-columns: 1fr;
        gap: 1.5rem;
        direction: ltr !important;
    }

    .timeline-item:nth-child(even) {
        direction: ltr;
    }

    .timeline-item:nth-child(even) .timeline-content {
        border-left: 4px solid var(--primary-color);
        border-right: none;
    }

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

    .about-content {
        grid-template-columns: 1fr;
    }

    .stats-container {
        grid-template-columns: 1fr 1fr;
    }

    .footer-content {
        grid-template-columns: 1fr;
    }

    section {
        padding: 2rem 1rem;
    }
}

@media (max-width: 480px) {
    .hero-content h1 {
        font-size: 1.5rem;
    }

    .hero-content p {
        font-size: 1rem;
    }

    h2 {
        font-size: 1.5rem;
    }

    .stats-container {
        grid-template-columns: 1fr;
    }

    .nav-menu.active {
        display: flex;
        flex-direction: column;
        position: absolute;
        top: 60px;
        left: 0;
        right: 0;
        background: rgba(15, 20, 25, 0.98);
        padding: 1rem;
        gap: 0.5rem;
    }
}
