/* ========================================
   Home Page — Premium Animations & Styles
   ======================================== */

/* ---------- Header & Navbar ---------- */
.navbar-custom {
    background: rgba(255, 255, 255, 0.95);
    backdrop-filter: blur(10px);
    box-shadow: 0 2px 15px rgba(0, 0, 0, 0.1);
    padding: 15px 0;
    transition: all 0.3s ease;
}

.navbar-custom .navbar-brand h1 {
    font-size: 2rem;
    font-weight: 800;
    letter-spacing: -1px;
}

.navbar-custom .nav-link {
    color: #263A4F !important;
    font-weight: 600;
    margin: 0 10px;
    padding: 8px 0 !important;
    position: relative;
    transition: all 0.3s ease;
}

.navbar-custom .nav-link::after {
    content: '';
    position: absolute;
    width: 0;
    height: 2px;
    bottom: 0;
    left: 0;
    background-color: var(--primary);
    transition: width 0.3s ease;
}

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

.navbar-custom .nav-link:hover,
.navbar-custom .nav-link.active {
    color: var(--primary) !important;
    background: transparent !important;
    /* Override default bg */
}

.navbar-custom .btn-contact {
    border-radius: 30px;
    padding: 10px 25px;
    font-weight: 600;
    box-shadow: 0 5px 15px rgba(52, 173, 84, 0.2);
}

.navbar-custom .btn-contact:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 20px rgba(52, 173, 84, 0.3);
}

@media (max-width: 991.98px) {
    .navbar-custom {
        padding: 10px 0;
    }

    .navbar-custom .nav-link {
        margin: 5px 0;
    }
}

/* ---------- Keyframe Animations ---------- */
@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(60px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}

@keyframes fadeInLeft {
    from {
        opacity: 0;
        transform: translateX(-60px);
    }

    to {
        opacity: 1;
        transform: translateX(0);
    }
}

@keyframes fadeInRight {
    from {
        opacity: 0;
        transform: translateX(60px);
    }

    to {
        opacity: 1;
        transform: translateX(0);
    }
}

@keyframes scaleIn {
    from {
        opacity: 0;
        transform: scale(0.9);
    }

    to {
        opacity: 1;
        transform: scale(1);
    }
}

@keyframes float {

    0%,
    100% {
        transform: translateY(0);
    }

    50% {
        transform: translateY(-10px);
    }
}

@keyframes pulse {

    0%,
    100% {
        transform: scale(1);
        box-shadow: 0 0 0 0 rgba(52, 173, 84, .4);
    }

    50% {
        transform: scale(1.05);
        box-shadow: 0 0 20px 8px rgba(52, 173, 84, 0);
    }
}

@keyframes shimmer {
    0% {
        background-position: -1000px 0;
    }

    100% {
        background-position: 1000px 0;
    }
}

/* ---------- Scroll Reveal ---------- */
.reveal {
    opacity: 0;
    transform: translateY(50px);
    transition: all 0.8s cubic-bezier(0.5, 0, 0, 1);
}

.reveal.active {
    opacity: 1;
    transform: translateY(0);
}

.reveal-left {
    opacity: 0;
    transform: translateX(-50px);
    transition: all 0.8s cubic-bezier(0.5, 0, 0, 1);
}

.reveal-left.active {
    opacity: 1;
    transform: translateX(0);
}

.reveal-right {
    opacity: 0;
    transform: translateX(50px);
    transition: all 0.8s cubic-bezier(0.5, 0, 0, 1);
}

.reveal-right.active {
    opacity: 1;
    transform: translateX(0);
}

/* ---------- Component Styles ---------- */

/* Buttons */
.btn {
    transition: all 0.3s ease;
    position: relative;
    overflow: hidden;
}

.btn::after {
    content: '';
    position: absolute;
    top: 50%;
    left: 50%;
    width: 0;
    height: 0;
    background: rgba(255, 255, 255, 0.2);
    border-radius: 50%;
    transform: translate(-50%, -50%);
    transition: width 0.6s ease, height 0.6s ease;
}

.btn:hover::after {
    width: 300px;
    height: 300px;
}

.btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.1);
}

/* Hero Carousel */
.carousel-caption {
    background: linear-gradient(to top, rgba(0, 0, 0, 0.7), transparent);
}

.carousel-caption h1 {
    text-shadow: 2px 2px 10px rgba(0, 0, 0, 0.3);
}

/* Banner Cards */
.banner div[class*="bg-"] {
    transition: transform 0.4s ease, box-shadow 0.4s ease;
    position: relative;
    overflow: hidden;
    z-index: 1;
}

.banner div[class*="bg-"]:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.15);
}

.banner div[class*="bg-"]::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(45deg, rgba(255, 255, 255, 0.1), transparent);
    z-index: -1;
    transition: opacity 0.3s ease;
    opacity: 0;
}

.banner div[class*="bg-"]:hover::before {
    opacity: 1;
}

/* About Section */
.about-img {
    transition: transform 0.5s ease;
}

.about-img:hover {
    transform: scale(1.02);
}

.about .fa-seedling,
.about .fa-award {
    transition: transform 0.3s ease, color 0.3s ease;
}

.about .col-sm-6:hover .fa-seedling,
.about .col-sm-6:hover .fa-award {
    transform: scale(1.2) rotate(10deg);
    color: var(--primary) !important;
}

/* Facts Counter */
.facts {
    background-attachment: fixed;
    position: relative;
    overflow: hidden;
}

.facts .rounded-circle {
    transition: all 0.4s ease;
}

.facts .col-lg-3:hover .rounded-circle {
    transform: rotate(360deg) scale(1.1);
    background-color: white !important;
}

.facts .col-lg-3:hover .rounded-circle i {
    color: var(--secondary) !important;
}

/* Services */
.service-item {
    transition: all 0.3s ease;
    border-radius: 10px;
    border: 1px solid rgba(0, 0, 0, 0.05);
}

.service-item:hover {
    transform: translateY(-10px);
    box-shadow: 0 15px 30px rgba(0, 0, 0, 0.1);
    background: #fff !important;
    border-color: var(--primary);
    color: inherit !important;
}

.service-item:hover h4 {
    color: inherit !important;
}

.service-item i {
    transition: transform 0.5s ease;
}

.service-item:hover i {
    transform: scale(1.2) rotateY(180deg);
}

/* Features */
.feature .rounded-pill {
    transition: all 0.3s cubic-bezier(0.175, 0.885, 0.32, 1.275);
}

.feature .col-lg-3:hover .rounded-pill {
    transform: scale(1.2);
    box-shadow: 0 0 20px rgba(255, 255, 255, 0.3);
}

/* Products */
.product-item {
    transition: all 0.3s ease;
    border-radius: 15px;
    overflow: hidden;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.05);
}

.product-item:hover {
    transform: translateY(-10px);
    box-shadow: 0 15px 30px rgba(0, 0, 0, 0.1);
}

.product-item img {
    transition: transform 0.5s ease;
}

.product-item:hover img {
    transform: scale(1.1);
}

.product-item .btn-action {
    opacity: 0;
    transform: translateY(20px);
    transition: all 0.3s ease;
}

.product-item:hover .btn-action {
    opacity: 1;
    transform: translateY(0);
}

/* Testimonial */
.testimonial-item img {
    transition: transform 0.3s ease, border-color 0.3s ease;
}

.testimonial-item:hover img {
    transform: scale(1.1);
    border-color: white !important;
}

/* Team */
.team-item {
    transition: all 0.3s ease;
}

.team-item:hover {
    transform: translateY(-10px);
}

.team-social-btn {
    transition: all 0.3s ease;
}

.team-social-btn:hover {
    background-color: var(--primary) !important;
    color: white !important;
    transform: translateY(-3px);
}

/* Blog */
.blog-item {
    border-radius: 15px;
    overflow: hidden;
    box-shadow: 0 10px 20px rgba(0, 0, 0, 0.08);
}

.blog-item img {
    transition: transform 0.5s ease;
}

.blog-item:hover img {
    transform: scale(1.1);
}

.blog-overlay {
    background: linear-gradient(to top, rgba(52, 173, 84, 0.9), transparent);
    opacity: 0;
    transition: opacity 0.4s ease;
}

.blog-item:hover .blog-overlay {
    opacity: 1;
}

/* Footer */
.bg-footer a {
    transition: padding-left 0.3s ease, color 0.3s ease;
}

.bg-footer a:hover {
    padding-left: 10px;
    color: var(--secondary) !important;
}

.bg-footer .btn-square {
    transition: all 0.3s ease;
}

.bg-footer .btn-square:hover {
    background-color: white !important;
    color: var(--secondary) !important;
    transform: rotate(360deg);
}

/* Mobile Optimizations */
@media (max-width: 991.98px) {
    .carousel-caption h1 {
        font-size: 2.5rem;
    }

    .display-1 {
        font-size: 3rem;
    }

    .display-5 {
        font-size: 2rem;
    }

    .p-5 {
        padding: 2rem !important;
    }
}