@import url('https://fonts.googleapis.com/css2?family=Bree+Serif&display=swap');

:root {
    --primary: #30c77c;
    --light: #F3F4F5;
    --dark: #282F34;
}

.bree-serif-regular {
    font-family: "Bree Serif", serif;
    font-weight: 400;
    font-style: normal;
}

body {
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
}

h1,
h2,
h3,
h4,
h5 {
    font-family: "Bree Serif", serif;
}

.text-primary {
    color: var(--primary) !important;
}

.bg-primary {
    background-color: var(--primary) !important;
}

.back-to-top {
    position: fixed;
    display: none;
    right: 45px;
    bottom: 45px;
    z-index: 99;
}

/* Button */
.btn {
    font-weight: 500;
    transition: .5s;
}

.btn.btn-primary,
.btn.btn-secondary {
    color: #FFFFFF;
}

.btn-primary {
    background-color: var(--primary);
    border-color: var(--primary);
}

.btn-primary:hover {
    background-color: #28a866;
    border-color: #28a866;
}

.btn-square {
    width: 38px;
    height: 38px;
}

.btn-sm-square {
    width: 32px;
    height: 32px;
}

.btn-lg-square {
    width: 48px;
    height: 48px;
}

.btn-square,
.btn-sm-square,
.btn-lg-square {
    padding: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: normal;
}

/* Navbar */
.navbar.sticky-top {
    top: -100px;
    transition: .5s;
}

.navbar .navbar-brand {
    display: flex;
    align-items: center;
}

.navbar .navbar-brand img {
    max-height: 50px;
}

.navbar .navbar-brand .logo-1 {
    height: 60px;
    width: auto;
    max-height: 60px;
    object-fit: contain;
    transition: transform 0.3s ease;
}

.navbar .navbar-brand .logo-2 {
    height: 90px;
    width: auto;
    max-height: 90px;
    object-fit: contain;
    transition: transform 0.3s ease;
}

.logo-1:hover,
.logo-2:hover {
    transform: scale(1.1);
}

@media (max-width: 991.98px) {
    .navbar .navbar-brand .logo-1 {
        height: 45px;
        max-height: 45px;
    }

    .navbar .navbar-brand .logo-2 {
        height: 65px;
        max-height: 65px;
    }
}

@media (max-width: 767.98px) {
    .navbar .navbar-brand .logo-1 {
        height: 35px;
        max-height: 35px;
    }

    .navbar .navbar-brand .logo-2 {
        height: 50px;
        max-height: 50px;
    }
}

@media (max-width: 575.98px) {
    .navbar .navbar-brand .logo-1 {
        height: 30px;
        max-height: 30px;
    }

    .navbar .navbar-brand .logo-2 {
        height: 45px;
        max-height: 45px;
    }

    .navbar .navbar-brand {
        flex-wrap: wrap;
    }
}

.navbar .dropdown-toggle::after {
    border: none;
    content: "\f107";
    font-family: "Font Awesome 5 Free";
    font-weight: 900;
    vertical-align: middle;
    margin-left: 8px;
}

.navbar .navbar-nav .nav-link {
    margin-right: 30px;
    padding: 25px 0;
    color: var(--dark);
    font-size: 15px;
    font-weight: 500;
    text-transform: uppercase;
    outline: none;
    transition: color 0.3s ease;
}

.navbar .navbar-nav .nav-link:hover,
.navbar .navbar-nav .nav-link.active {
    color: var(--primary);
}

@media (max-width: 991.98px) {
    .navbar .navbar-nav .nav-link {
        margin-right: 0;
        padding: 10px 0;
    }

    .navbar .navbar-nav {
        border-top: 1px solid #EEEEEE;
    }

    .navbar.sticky-top {
        position: relative;
        top: 0;
    }
}

@media (min-width: 992px) {
    .navbar .nav-item .dropdown-menu {
        display: block;
        border: none;
        margin-top: 0;
        top: 150%;
        opacity: 0;
        visibility: hidden;
        transition: .5s;
    }

    .navbar .nav-item:hover .dropdown-menu {
        top: 100%;
        visibility: visible;
        transition: .5s;
        opacity: 1;
    }
}

/* Header */
.header-bg {
    background: linear-gradient(rgba(0, 0, 0, .7), rgba(0, 0, 0, .7)), url(../img/pakhal-img/1\ \(17\).jpg) center center no-repeat;
    background-size: cover;
}

.carousel-item img {
    height: 500px;
    object-fit: cover;
}

/* Img Border */
.img-border {
    position: relative;
    height: 100%;
    min-height: 400px;
}

.img-border::before {
    position: absolute;
    content: "";
    top: 0;
    left: 0;
    right: 3rem;
    bottom: 3rem;
    border: 5px solid var(--primary);
}

.img-border img {
    position: absolute;
    top: 3rem;
    left: 3rem;
    width: calc(100% - 3rem);
    height: calc(100% - 3rem);
    object-fit: cover;
    transition: transform 0.5s ease;
}

.img-border:hover img {
    transform: scale(1.1);
}

/* Animal/Gallery Items */
.animal-item {
    position: relative;
    display: block;
    overflow: hidden;
    border-radius: 10px;
    cursor: pointer;
    transition: transform 0.3s ease;
}

.animal-item:hover {
    transform: translateY(-5px);
}

.animal-item img {
    width: 100%;
    height: 250px;
    object-fit: cover;
    transition: transform 0.5s ease;
}

.animal-item:hover img {
    transform: scale(1.1);
}

.animal-item .animal-text {
    position: absolute;
    width: 100%;
    height: 100%;
    top: 0;
    left: 0;
    background: rgba(0, 0, 0, .7);
    display: flex;
    flex-direction: column;
    justify-content: flex-end;
    padding-bottom: 100px !important;
    opacity: 0;
    transition: .5s;
}

.animal-item:hover .animal-text {
    opacity: 1;
    padding-bottom: 20px !important;
}

/* Image Popup Styles */
.lightbox-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.95);
    z-index: 9999;
    display: none;
    align-items: center;
    justify-content: center;
    animation: fadeIn 0.3s ease;
}

.lightbox-overlay.active {
    display: flex;
}

.lightbox-content {
    position: relative;
    max-width: 90%;
    max-height: 90%;
    animation: zoomIn 0.4s ease;
}

.lightbox-content img {
    max-width: 100%;
    max-height: 90vh;
    object-fit: contain;
    border-radius: 8px;
}

.lightbox-close {
    position: absolute;
    top: -50px;
    right: 0;
    background: var(--primary);
    color: white;
    border: none;
    width: 45px;
    height: 45px;
    border-radius: 50%;
    font-size: 24px;
    cursor: pointer;
    transition: all 0.3s ease;
    z-index: 10000;
}

.lightbox-close:hover {
    background: #28a866;
    transform: rotate(90deg);
}

.lightbox-prev,
.lightbox-next {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    background: var(--primary);
    color: white;
    border: none;
    width: 50px;
    height: 50px;
    border-radius: 50%;
    font-size: 20px;
    cursor: pointer;
    transition: all 0.3s ease;
    z-index: 10000;
}

.lightbox-prev {
    left: 20px;
}

.lightbox-next {
    right: 20px;
}

.lightbox-prev:hover,
.lightbox-next:hover {
    background: #28a866;
    transform: translateY(-50%) scale(1.1);
}

.lightbox-counter {
    position: absolute;
    bottom: -50px;
    left: 50%;
    transform: translateX(-50%);
    color: white;
    font-size: 18px;
    background: rgba(0, 0, 0, 0.7);
    padding: 8px 20px;
    border-radius: 20px;
}

@keyframes fadeIn {
    from {
        opacity: 0;
    }

    to {
        opacity: 1;
    }
}

@keyframes zoomIn {
    from {
        transform: scale(0.5);
        opacity: 0;
    }

    to {
        transform: scale(1);
        opacity: 1;
    }
}

.footer {
    background-color: var(--dark);
}

.btn-outline-light:hover {
    background-color: var(--primary);
    border-color: var(--primary);
}

/* Responsive adjustments */
@media (max-width: 768px) {
    .carousel-item img {
        height: 300px;
    }

    .header-bg h1 {
        font-size: 2rem;
    }

    .lightbox-prev,
    .lightbox-next {
        width: 40px;
        height: 40px;
        font-size: 16px;
    }

    .lightbox-prev {
        left: 10px;
    }

    .lightbox-next {
        right: 10px;
    }

    .lightbox-close {
        top: 10px;
        right: 10px;
    }
}

/*** Footer ***/
.footer {
    background: linear-gradient(rgba(0, 0, 0, .92), rgba(0, 0, 0, .92)), url(../img/pakhal-img/1.jpg) center center no-repeat;
    background-size: cover;
}

.footer .btn-social {
    width: 42px;
    height: 42px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #fff;
    border: 2px solid rgba(255, 255, 255, 0.3);
    border-radius: 50%;
    transition: all .4s ease;
    font-size: 16px;
    background: rgba(255, 255, 255, 0.05);
    text-decoration: none;
}

.footer .btn-social:hover {
    color: #fff;
    background: var(--primary);
    border-color: var(--primary);
    transform: translateY(-3px);
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.3);
}

.footer .btn.btn-link {
    display: block;
    margin-bottom: 8px;
    padding: 0;
    text-align: left;
    color: rgba(255, 255, 255, 0.8);
    font-size: 15px;
    font-weight: normal;
    text-transform: capitalize;
    transition: all .3s ease;
}

.footer .btn.btn-link::before {
    position: relative;
    content: "\f105";
    font-family: "Font Awesome 5 Free";
    font-weight: 900;
    margin-right: 10px;
    color: var(--primary);
}

.footer .btn.btn-link:hover {
    color: var(--primary);
    padding-left: 8px;
    box-shadow: none;
}

.footer h5 {
    position: relative;
    padding-bottom: 10px;
    margin-bottom: 20px;
}

.footer h5::after {
    content: '';
    position: absolute;
    left: 0;
    bottom: 0;
    width: 50px;
    height: 2px;
    background: var(--primary);
}

.footer .copyright {
    padding: 25px 0;
    font-size: 15px;
    border-top: 1px solid rgba(256, 256, 256, .1);
}

.footer .copyright a {
    color: var(--light);
    transition: color .3s ease;
}

.footer .copyright a:hover {
    color: var(--primary);
}


/* Change color of next/prev arrow icons */
.carousel-control-prev-icon,
.carousel-control-next-icon {
    filter: invert(100%) sepia(100%) saturate(0%) hue-rotate(0deg);
}

/* Change background color of arrow button hover */
.carousel-control-prev:hover,
.carousel-control-next:hover {
    background-color: rgba(0, 0, 0, 0.3); /* optional */
}

/* Indicator (slide dots) color */
.carousel-indicators [data-bs-target] {
    background-color: #fff; /* default color */
}

/* Active dot color */
.carousel-indicators{
    background-color: rgba(0, 0, 0, .4) !important;
    border-radius: 10px;
}
.carousel-indicators .active {
    background-color: #28a745 !important; /* green example */
}



  /* === Hero Right Image Modern Design === */
    .image-card {
        position: relative;
        width: 100%;
        height: 100%;
        min-height: 420px;
        display: flex;
        align-items: center;
        justify-content: center;
        perspective: 1000px;
    }

    .image-frame {
        position: relative;
        border-radius: 20px;
        overflow: hidden;
        box-shadow: 0 8px 25px rgba(0, 0, 0, 0.15);
        transform: rotateY(-15deg) rotateX(3deg);
        transition: all 0.6s ease;
        border: 5px solid var(--primary);
    }

    .image-frame img {
        width: 100%;
        height: 100%;
        object-fit: cover;
        border-radius: 15px;
        transform: scale(1.03);
        transition: transform 0.5s ease;
    }

    .image-card:hover .image-frame {
        transform: rotateY(0deg) rotateX(0deg) scale(1.03);
        box-shadow: 0 12px 35px rgba(0, 0, 0, 0.25);
    }

    .image-card:hover img {
        transform: scale(1.1);
    }

    /* Responsive */
    @media (max-width: 991px) {
        .image-frame {
            transform: none;
            border-radius: 15px;
        }
    }

    /* === Hero Background with Soft Overlay === */
    .hero-bg {
        position: relative;
        background: url("/img/pakhal-img/1\ \(31\).jpg") center center/cover no-repeat;
        background-attachment: fixed;
        z-index: 1;
        color: var(--dark);
    }

    .hero-bg::before {
        content: "";
        position: absolute;
        inset: 0;
        background: rgba(255, 255, 255, 0.6);
        /* white overlay with opacity */
        z-index: -1;
    }

    /* Optional subtle grain/noise overlay */
    .hero-bg .overlay {
        content: "";
        position: absolute;
        inset: 0;
        background-image: url("https://www.transparenttextures.com/patterns/noise-pattern-with-subtle-grain.png");
        opacity: 0.4;
        z-index: 0;
    }

    /* Ensure content appears above background */
    .hero-bg .container {
        position: relative;
        z-index: 2;
    }

    /* === Unique Gallery Section Design === */
    .gallery-section {
        position: relative;
        background: linear-gradient(180deg, rgba(250, 255, 250, 0.9), rgba(230, 250, 240, 0.7)),
            url("/img/pakhal-img/1\ \(29\).jpg") center/cover no-repeat;
        overflow: hidden;
    }

  
    /* Image Hover Effects */
    .gallery-section .animal-item {
        position: relative;
        overflow: hidden;
        border-radius: 15px;
        transition: transform 0.5s ease, box-shadow 0.5s ease;
        z-index: 1;
    }

    .gallery-section .animal-item img {
        transition: transform 0.6s ease;
        border-radius: 15px;
    }

    .gallery-section .animal-item:hover img {
        transform: scale(1.15);
        filter: brightness(0.85);
    }

    .gallery-section .animal-text {
        background: rgba(0, 0, 0, 0.45);
        backdrop-filter: blur(4px);
        border-radius: 15px;
        transform: translateY(100%);
        transition: transform 0.4s ease;
    }

    .gallery-section .animal-item:hover .animal-text {
        transform: translateY(0);
    }

    .gallery-section .animal-item:hover {
        box-shadow: 0 0 15px rgba(48, 199, 124, 0.4);
        transform: translateY(-5px);
    }

    /* Optional: Subtle Glow Around Images */
    .gallery-section .animal-item::before {
        content: "";
        position: absolute;
        inset: 0;
        border-radius: 15px;
        box-shadow: 0 0 25px rgba(48, 199, 124, 0);
        transition: box-shadow 0.4s ease;
    }

    .gallery-section .animal-item:hover::before {
        box-shadow: 0 0 25px rgba(48, 199, 124, 0.6);
    }