/* Import Earthy Theme */
@import url("../../../css/earthy-theme.css");


* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: 'Poppins', sans-serif;
    line-height: 1.6;
    color: var(--text-dark);
    background-color: var(--white);
}

.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 2rem;
}

/* Hero Section */
.hero-section {
    position: relative;
    height: 100vh;
    min-height: 600px;
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: hidden;
}

.hero-background {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 1;
}

.hero-image {
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: center;
}

.hero-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(135deg, rgba(42, 72, 88, 0.8) 0%, rgba(139, 115, 85, 0.6) 100%);
    z-index: 2;
}

.hero-content {
    position: relative;
    z-index: 3;
    text-align: center;
    color: var(--white);
    max-width: 800px;
    margin: 0 auto;
}

.hero-title {
    font-size: 4rem;
    font-weight: 700;
    margin-bottom: 1.5rem;
    text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.3);
    line-height: 1.2;
}

.hero-subtitle {
    font-size: 1.3rem;
    font-weight: 400;
    opacity: 0.95;
    line-height: 1.7;
    text-shadow: 1px 1px 2px rgba(0, 0, 0, 0.3);
}

/* Introduction Section */
.introduction-section {
    padding: 6rem 0;
    background: var(--white);
}

.intro-content {
    display: grid;
    grid-template-columns: 2fr 1fr;
    gap: 4rem;
    align-items: center;
}

.intro-text h2 {
    font-size: 2.5rem;
    font-weight: 600;
    color: var(--primary-brown);
    margin-bottom: 2rem;
    line-height: 1.3;
}

.intro-text p {
    font-size: 1.1rem;
    line-height: 1.8;
    color: var(--text-medium);
    margin-bottom: 1.5rem;
}

.intro-image {
    position: relative;
    border-radius: var(--border-radius);
    overflow: hidden;
    box-shadow: var(--shadow-lg);
}

.intro-img {
    width: 100%;
    height: 400px;
    object-fit: cover;
    transition: var(--transition);
}

.intro-img:hover {
    transform: scale(1.05);
}

/* Features Section */
.features-section {
    padding: 6rem 0;
    background: var(--neutral-light);
}

.section-header {
    text-align: center;
    margin-bottom: 4rem;
}

.section-header h2 {
    font-size: 2.8rem;
    font-weight: 600;
    color: var(--primary-brown);
    margin-bottom: 1rem;
}

.section-header p {
    font-size: 1.2rem;
    color: var(--text-medium);
    max-width: 600px;
    margin: 0 auto;
    line-height: 1.7;
}

.features-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(350px, 1fr));
    gap: 2.5rem;
    margin-top: 3rem;
}

.feature-card {
    background: var(--white);
    padding: 3rem 2rem;
    border-radius: var(--border-radius);
    text-align: center;
    transition: var(--transition);
    box-shadow: var(--shadow-light);
    border: 1px solid var(--neutral-beige);
}

.feature-card:hover {
    transform: translateY(-10px);
    box-shadow: var(--shadow-lg);
    border-color: var(--accent-terracotta);
}

.feature-icon {
    background: linear-gradient(135deg, var(--primary-green) 0%, var(--accent-sage) 100%);
    color: var(--white);
    width: 80px;
    height: 80px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 2rem;
    font-size: 2rem;
    box-shadow: var(--shadow-md);
}

.feature-card h3 {
    font-size: 1.5rem;
    font-weight: 600;
    color: var(--primary-brown);
    margin-bottom: 1rem;
}

.feature-card p {
    font-size: 1rem;
    line-height: 1.7;
    color: var(--text-medium);
}

/* Gorilla Section */
.gorilla-section {
    padding: 6rem 0;
    background: var(--white);
}

.gorilla-content {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 4rem;
    align-items: center;
}

.gorilla-image {
    border-radius: var(--border-radius);
    overflow: hidden;
    box-shadow: var(--shadow-lg);
}

.gorilla-img {
    width: 100%;
    height: 500px;
    object-fit: cover;
    transition: var(--transition);
}

.gorilla-img:hover {
    transform: scale(1.05);
}

.gorilla-text h2 {
    font-size: 2.5rem;
    font-weight: 600;
    color: var(--primary-brown);
    margin-bottom: 2rem;
    line-height: 1.3;
}

.gorilla-text p {
    font-size: 1.1rem;
    line-height: 1.8;
    color: var(--text-medium);
    margin-bottom: 1.5rem;
}

.gorilla-stats {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(150px, 1fr));
    gap: 2rem;
    margin-top: 3rem;
}

.stat-item {
    text-align: center;
    padding: 1.5rem;
    background: var(--neutral-cream);
    border-radius: var(--border-radius);
    border: 2px solid var(--neutral-beige);
    transition: var(--transition);
}

.stat-item:hover {
    border-color: var(--accent-terracotta);
    transform: translateY(-3px);
}

.stat-number {
    font-size: 2.5rem;
    font-weight: 700;
    color: var(--primary-green);
    margin-bottom: 0.5rem;
}

.stat-label {
    font-size: 1rem;
    font-weight: 500;
    color: var(--text-medium);
    line-height: 1.4;
}

/* CTA Section */
.cta-section {
    padding: 5rem 0;
    background: linear-gradient(135deg, var(--primary-green) 0%, var(--primary-brown) 100%);
    color: var(--white);
    text-align: center;
}

.cta-content h2 {
    font-size: 2.8rem;
    font-weight: 700;
    margin-bottom: 1.5rem;
}

.cta-content p {
    font-size: 1.3rem;
    margin-bottom: 3rem;
    opacity: 0.95;
    max-width: 700px;
    margin-left: auto;
    margin-right: auto;
    line-height: 1.7;
}

.cta-buttons {
    display: flex;
    gap: 2rem;
    justify-content: center;
    flex-wrap: wrap;
}

.cta-btn {
    display: inline-flex;
    align-items: center;
    gap: 1rem;
    padding: 1.2rem 2.5rem;
    border-radius: var(--border-radius);
    text-decoration: none;
    font-weight: 600;
    font-size: 1.1rem;
    transition: var(--transition);
    box-shadow: var(--shadow-md);
}

.cta-btn.primary {
    background: var(--accent-terracotta);
    color: var(--white);
}

.cta-btn.primary:hover {
    background: var(--accent-light-brown);
    transform: translateY(-3px);
    box-shadow: var(--shadow-lg);
    color: var(--white);
}

.cta-btn.secondary {
    background: transparent;
    color: var(--white);
    border: 2px solid var(--white);
}

.cta-btn.secondary:hover {
    background: rgba(255, 255, 255, 0.1);
    transform: translateY(-3px);
    color: var(--white);
}

/* Responsive Design */
@media (max-width: 1024px) {
    .container {
        padding: 0 1.5rem;
    }

    .hero-title {
        font-size: 3.5rem;
    }

    .intro-content {
        grid-template-columns: 1fr;
        gap: 3rem;
    }

    .intro-text h2 {
        font-size: 2.2rem;
    }

    .gorilla-content {
        grid-template-columns: 1fr;
        gap: 3rem;
    }

    .features-grid {
        grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
        gap: 2rem;
    }
}

@media (max-width: 768px) {
    .container {
        padding: 0 1rem;
    }

    .hero-section {
        height: 80vh;
        min-height: 500px;
    }

    .hero-title {
        font-size: 2.8rem;
    }

    .hero-subtitle {
        font-size: 1.1rem;
    }

    .section-header h2 {
        font-size: 2.2rem;
    }

    .section-header p {
        font-size: 1.1rem;
    }

    .intro-text h2 {
        font-size: 2rem;
    }

    .intro-text p {
        font-size: 1rem;
    }

    .intro-img {
        height: 300px;
    }

    .features-grid {
        grid-template-columns: 1fr;
        gap: 2rem;
    }

    .feature-card {
        padding: 2rem 1.5rem;
    }

    .feature-icon {
        width: 60px;
        height: 60px;
        font-size: 1.5rem;
    }

    .main-gallery-img {
        height: 300px;
    }

    .gallery-grid {
        grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
        gap: 1rem;
    }

    .gallery-img {
        height: 150px;
    }

    .gorilla-img {
        height: 300px;
    }

    .gorilla-text h2 {
        font-size: 2rem;
    }

    .gorilla-text p {
        font-size: 1rem;
    }

    .gorilla-stats {
        grid-template-columns: 1fr;
        gap: 1.5rem;
    }

    .stat-number {
        font-size: 2rem;
    }

    .cta-content h2 {
        font-size: 2.2rem;
    }

    .cta-content p {
        font-size: 1.1rem;
    }

    .cta-buttons {
        flex-direction: column;
        align-items: center;
        gap: 1.5rem;
    }

    .cta-btn {
        width: 100%;
        max-width: 300px;
        justify-content: center;
    }
}

@media (max-width: 480px) {
    .hero-title {
        font-size: 2.2rem;
    }

    .hero-subtitle {
        font-size: 1rem;
    }

    .section-header h2 {
        font-size: 1.8rem;
    }

    .intro-text h2 {
        font-size: 1.8rem;
    }

    .feature-card {
        padding: 1.5rem 1rem;
    }

    .gorilla-text h2 {
        font-size: 1.8rem;
    }

    .cta-content h2 {
        font-size: 1.8rem;
    }

    .gallery-overlay {
        padding: 2rem 1rem 1rem;
    }

    .gallery-overlay h3 {
        font-size: 1.4rem;
    }

    .gallery-overlay p {
        font-size: 1rem;
    }
}

/* Print Styles */
@media print {
    .hero-section,
    .cta-section {
        background: var(--white) !important;
        color: var(--text-dark) !important;
    }

    .hero-overlay {
        display: none;
    }

    .feature-icon {
        background: var(--neutral-beige) !important;
        color: var(--text-dark) !important;
    }

    .cta-btn {
        border: 2px solid var(--text-dark) !important;
        color: var(--text-dark) !important;
    }
}

/* Animation Classes */
.animate-in {
    animation: fadeInUp 0.8s ease-out forwards;
}

@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(30px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* Lightbox Styles */
.lightbox {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.9);
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 9999;
    animation: fadeIn 0.3s ease-out;
}

.lightbox-content {
    position: relative;
    max-width: 90%;
    max-height: 90%;
    text-align: center;
}

.lightbox-img {
    max-width: 100%;
    max-height: 80vh;
    object-fit: contain;
    border-radius: var(--border-radius);
    box-shadow: var(--shadow-lg);
}

.lightbox-close {
    position: absolute;
    top: -40px;
    right: -40px;
    color: var(--white);
    font-size: 2rem;
    cursor: pointer;
    background: rgba(0, 0, 0, 0.5);
    width: 40px;
    height: 40px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: var(--transition);
}

.lightbox-close:hover {
    background: rgba(0, 0, 0, 0.8);
}

.lightbox-caption {
    color: var(--white);
    margin-top: 1rem;
    font-size: 1.1rem;
    opacity: 0.9;
}

/* Notification Styles */
.notification {
    position: fixed;
    top: 20px;
    right: 20px;
    padding: 1rem 1.5rem;
    border-radius: var(--border-radius);
    color: var(--white);
    font-weight: 500;
    z-index: 9998;
    transform: translateX(100%);
    transition: transform 0.3s ease-out;
    box-shadow: var(--shadow-lg);
}

.notification.show {
    transform: translateX(0);
}

.notification-success {
    background: var(--primary-green);
}

.notification-error {
    background: #e74c3c;
}

.notification-info {
    background: var(--primary-brown);
}

/* Back to Top Button */
.back-to-top {
    display: none;
}

.back-to-top.show {
    opacity: 1;
    visibility:hidden;
}

.back-to-top:hover {
    transform: translateY(-3px);
    box-shadow: var(--shadow-lg);
    background: linear-gradient(135deg, var(--accent-sage) 0%, var(--primary-green) 100%);
}

/* Form Styles */
.field-error {
    color: #e74c3c;
    font-size: 0.9rem;
    margin-top: 0.5rem;
}

.error {
    border-color: #e74c3c !important;
    box-shadow: 0 0 0 2px rgba(231, 76, 60, 0.2) !important;
}

/* Lazy Loading */
.lazy {
    opacity: 0;
    transition: opacity 0.3s;
}

.lazy.loaded {
    opacity: 1;
}

/* Additional Interactive Elements */
.gallery-img,
.main-gallery-img {
    cursor: pointer;
}

.gallery-img:hover,
.main-gallery-img:hover {
    opacity: 0.9;
}

/* Fade In Animation */
@keyframes fadeIn {
    from {
        opacity: 0;
    }
    to {
        opacity: 1;
    }
}

/* Mobile Responsive Adjustments for Interactive Elements */
@media (max-width: 768px) {
    .lightbox-close {
        top: -30px;
        right: -30px;
        width: 30px;
        height: 30px;
        font-size: 1.5rem;
    }

    .notification {
        top: 10px;
        right: 10px;
        left: 10px;
        transform: translateY(-100%);
    }

    .notification.show {
        transform: translateY(0);
    }

    .back-to-top {
        /* bottom: 20px;
        right: 20px;
        width: 45px;
        height: 45px;
        font-size: 1.1rem; */
        display: none;
    }
}
      .gallery-section {
        padding: 40px 20px;
        max-width: 1200px;
        margin: 0 auto;
        position: relative;
        bottom: -150px;
      }

      /* Main sliding image container */
      .main-image-container {
        position: relative;
        width: 100%;
        height: 500px;
        margin-bottom: 20px;
        border-radius: 10px;
        overflow: hidden;
        box-shadow: 0 10px 30px rgba(0, 0, 0, 0.2);
        bottom: -50px;
        z-index: -1;
      }

      .main-image {
        width: 100%;
        height: 100%;
        object-fit: cover;
        transition: opacity 0.5s ease-in-out;
      }

      /* Navigation arrows for main image */
      .nav-arrow {
        position: absolute;
        top: 50%;
        transform: translateY(-50%);
        background: rgba(0, 0, 0, 0.7);
        color: white;
        border: none;
        border-radius: 50%;
        width: 50px;
        height: 50px;
        font-size: 1.2rem;
        cursor: pointer;
        transition: all 0.3s ease;
        display: flex;
        align-items: center;
        justify-content: center;
        z-index: 10;
      }

      .nav-arrow:hover {
        background: rgba(0, 0, 0, 0.9);
        transform: translateY(-50%) scale(1.1);
      }

      .nav-arrow.left {
        left: 20px;
      }

      .nav-arrow.right {
        right: 20px;
      }

      /* Thumbnail row */
      .thumbnail-row {
        display: grid;
        grid-template-columns: repeat(4, 1fr);
        gap: 15px;
        margin-bottom: 40px;
      }

      .thumbnail {
        aspect-ratio: 4/3;
        border-radius: 8px;
        overflow: hidden;
        cursor: pointer;
        transition: all 0.3s ease;
        box-shadow: 0 4px 15px rgba(0, 0, 0, 0.1);
        border: 3px solid transparent;
      }

      .thumbnail:hover {
        transform: translateY(-5px);
        box-shadow: 0 8px 25px rgba(0, 0, 0, 0.2);
      }

      .thumbnail.active {
        border-color: #667eea;
        transform: translateY(-3px);
      }

      .thumbnail img {
        width: 100%;
        height: 100%;
        object-fit: cover;
        transition: transform 0.3s ease;
      }

      .thumbnail:hover img {
        transform: scale(1.05);
      }

      @keyframes shimmer {
        0% {
          left: -100%;
        }
        100% {
          left: 100%;
        }
      }

      .empty-content {
        text-align: center;
        color: #666;
        z-index: 1;
      }

      .empty-content i {
        font-size: 3rem;
        margin-bottom: 15px;
        opacity: 0.5;
      }

      .empty-content p {
        font-size: 1.1rem;
        opacity: 0.7;
      }

      /* Background Section */
      .background-section {
        position: relative;
        top: -100%;
        width: 100%;
        height: 250vh;
        z-index: -2;
        background:
          url("../../../images/conservationist/4.jpg")
            center/cover no-repeat;
        display: flex;
        align-items: center;
        justify-content: center;
        color: white;
        text-align: center;
      }

      .background-content {
        max-width: 600px;
        padding: 40px;
      }

      .background-content h2 {
        font-size: 3rem;
        margin-bottom: 20px;
        text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.7);
      }

      .background-content p {
        font-size: 1.2rem;
        line-height: 1.6;
        text-shadow: 1px 1px 2px rgba(0, 0, 0, 0.7);
      }

      /* Responsive Design */
      @media (max-width: 768px) {
        .gallery-section {
          padding: 20px 15px;
        }

        .main-image-container {
          height: 300px;
        }

        .thumbnail-row {
          grid-template-columns: repeat(2, 1fr);
          gap: 10px;
        }

        .nav-arrow {
          width: 40px;
          height: 40px;
          font-size: 1rem;
        }

        .nav-arrow.left {
          left: 10px;
        }

        .nav-arrow.right {
          right: 10px;
        }

        .empty-section {
          height: 200px;
        }

        .empty-content i {
          font-size: 2rem;
        }

        .empty-content p {
          font-size: 1rem;
        }

        .background-content h2 {
          font-size: 2rem;
        }

        .background-content p {
          font-size: 1rem;
        }
      }

      @media (max-width: 480px) {
        .gallery-section {
          padding: 15px 10px;
        }

        .main-image-container {
          height: 250px;
        }

        .thumbnail-row {
          grid-template-columns: repeat(2, 1fr);
          gap: 8px;
        }

        .nav-arrow {
          width: 35px;
          height: 35px;
          font-size: 0.9rem;
        }

        .background-content {
          padding: 20px;
        }
      }