/* Custom CSS for Fresh Dairy Milk Shop */

:root {
    --primary: #0d6efd;
    --primary-dark: #0a58ca;
    --secondary: #6c757d;
    --light: #f8f9fa;
    --dark: #212529;
    --milk-white: #ffffff;
    --cream: #FFF8E1;
    --pastel-blue: #E3F2FD;
    --milk-light: #F5F5F5;
    --milk-accent: #FFD700;
    --farm-green: #4CAF50;
}

body {
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    color: var(--dark);
    overflow-x: hidden;
    background-color: #aeaeff85!important;
}

/* Smooth scrolling */
html {
    scroll-behavior: smooth;
    scroll-padding-top: 5rem;
}

/* Buttons */
.btn-primary {
    background-color: var(--primary);
    border-color: var(--primary);
    transition: all 0.3s ease;
}

.btn-primary:hover {
    background-color: var(--primary-dark);
    border-color: var(--primary-dark);
    transform: translateY(-3px);
    box-shadow: 0 5px 15px rgba(13, 110, 253, 0.3);
}

.btn-outline-primary:hover {
    transform: translateY(-3px);
    box-shadow: 0 5px 15px rgba(13, 110, 253, 0.2);
}

/* Hero Section */
#hero {
    position: relative;
    overflow: hidden;
}

/* Hero Carousel */
.carousel-item {
    height: 70vh;
    min-height: 500px;
    position: relative;
}

.carousel-background {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-size: cover;
    background-position: center;
    transition: transform 10s ease;
}

.carousel-item.active .carousel-background {
    transform: scale(1.1);
}

.slide-1 {
    background-image: url('https://images.unsplash.com/photo-1550583724-b2692b85b150?ixlib=rb-4.0.3&ixid=MnwxMjA3fDB8MHxwaG90by1wYWdlfHx8fGVufDB8fHx8&auto=format&fit=crop&w=1740&q=80');
}

.slide-2 {
    background-image: url('https://png.pngtree.com/back_origin_pic/03/89/99/62bec76f3435b3b17f9a24c8b99342ca.jpg');
}

.slide-3 {
    background-image: url('https://mir-s3-cdn-cf.behance.net/project_modules/max_1200/b920f990079899.5ea5fda73ba62.jpg');
}

.carousel-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(rgba(0,0,0,0.1), rgba(0,0,0,0.5));
}

.carousel-caption {
    top: 50%;
    transform: translateY(-50%);
    bottom: auto;
    text-align: center;
}

.carousel-caption h1 {
    font-size: 3.5rem;
    font-weight: 700;
    text-shadow: 0 2px 4px rgba(0, 0, 0, 0.3);
}

.carousel-caption p {
    font-size: 1.25rem;
    text-shadow: 0 1px 3px rgba(0, 0, 0, 0.3);
    max-width: 700px;
    margin: 0 auto;
}

.carousel-indicators [data-bs-target] {
    width: 12px;
    height: 12px;
    border-radius: 50%;
    margin: 0 6px;
    background-color: rgba(255, 255, 255, 0.7);
    border: 2px solid transparent;
    transition: all 0.3s ease;
}

.carousel-indicators .active {
    background-color: var(--primary);
    transform: scale(1.2);
}

.carousel-control-prev, .carousel-control-next {
    width: 10%;
    opacity: 0;
    transition: all 0.3s ease;
}

#heroCarousel:hover .carousel-control-prev,
#heroCarousel:hover .carousel-control-next {
    opacity: 0.8;
}

.carousel-control-prev-icon, .carousel-control-next-icon {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    background-size: 50%;
}


/* Trust bar */
.trust-bar {
    position: relative;
    z-index: 10;
}

@media (max-width: 767.98px) {
    .carousel-item {
        height: 100px;
    }
    
    .carousel-caption h1 {
        font-size: 2rem;
    }
    
    .carousel-caption p {
        font-size: 1rem;
    }
}

#hero .btn-outline-light {
    color: white;
    border-color: white;
}

#hero .btn-outline-light:hover {
    background-color: white;
    color: var(--primary);
    transform: translateY(-3px);
    box-shadow: 0 5px 15px rgba(255, 255, 255, 0.2);
}

/* Card hover effects */
/* .card {
    transition: transform 0.4s ease, box-shadow 0.4s ease;
    overflow: hidden;
} */

/* .card:hover {
    transform: translateY(-8px);
    box-shadow: 0 15px 30px rgba(0, 0, 0, 0.1) !important;
} */

/* Product images */
.card-img-top {
    height: 200px;
    object-fit: cover;
    transition: transform 0.4s ease;
}

/* Rounded corners */
.rounded-4 {
    border-radius: 1rem !important;
}

.rounded-5 {
    border-radius: 2rem !important;
}

/* Section spacing */
section {
    padding: 1rem 0;
}

@media (max-width: 768px) {
    section {
        padding: rem 0;
    }
}

/* Navbar */
.logo{
    
    width: 60px;
}
.logo-text{
    font-family: 'poppins';
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 2px;
    color: var(--primary);
    font-size: 25px;
}
.navbar {
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.05);
    transition: all 0.3s ease-in-out;
}

.navbar.scrolled {
    background-color: rgba(255, 255, 255, 0.95) !important;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.1);
}


.navbar-brand:hover {
    transform: translateY(-2px);
}

.nav-link {
    position: relative;
    transition: color 0.3s ease;
    font-size: 18px;
    font-family: 'poppins', sans-serif;
}

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

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

/* Footer */
footer {
    background-color: #1a1a1a;
}

footer a {
    transition: color 0.3s ease, transform 0.3s ease;
    display: inline-block;
}

footer a:hover {
    color: white !important;
    transform: translateX(5px);
}

footer .social-icon:hover {
    transform: translateY(-5px);
}

/* Testimonial cards */
.testimonial-card {
    background-color: white;
    border-radius: 1rem;
    padding: 2rem;
    transition: all 0.3s ease;
}
.testi-text{
    font-family: 'poppins';
    color: #555;
    text-align: justify;
    font-size: 16px;
}
.testi-name{
    font-family: 'poppins';
    color: #555;
    text-align: justify;
    font-size: 15px;
}
.testimonial-card:hover {
    transform: translateY(-10px);
    box-shadow: 0 15px 30px rgba(0, 0, 0, 0.1);
}

/* Custom form styles */
.form-control {
    border-radius: 0.5rem;
    padding: 0.675rem 1rem;
    transition: all 0.3s ease;
}

.form-control:focus {
    border-color: var(--primary);
    box-shadow: 0 0 0 0.25rem rgba(13, 110, 253, 0.15);
    transform: translateY(-2px);
}
.footer-heading {
    font-size: 24px;
    font-weight: 600;
    margin-bottom: 20px;
    font-family: 'poppins';
  }
input::placeholder {
    font-family: 'poppins';
    font-size: 18px;
  }
  

/* Image overlays */
.image-overlay {
    position: relative;
    overflow: hidden;
}

.image-overlay img {
    transition: transform 0.5s ease-in-out;
}

.image-overlay:hover img {
    transform: scale(1.05);
}

.image-overlay::after {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(to bottom, rgba(0,0,0,0.1) 0%, rgba(0,0,0,0.4) 100%);
    border-radius: inherit;
    transition: opacity 0.3s ease;
}

.image-overlay:hover::after {
    opacity: 0.7;
}

/* Enhanced animations */
@keyframes fadeIn {
    from { opacity: 0; transform: translateY(20px); }
    to { opacity: 1; transform: translateY(0); }
}

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

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

@keyframes slideInRight {
    from { opacity: 0; transform: translateX(30px); }
    to { opacity: 1; transform: translateX(0); }
}

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

.animate-fade-in {
    animation: fadeIn 0.8s ease-in-out;
}

.animate-scale-in {
    animation: scaleIn 0.8s ease-in-out;
}

.animate-slide-left {
    animation: slideInLeft 0.8s ease-in-out;
}

.animate-slide-right {
    animation: slideInRight 0.8s ease-in-out;
}

.animate-bounce {
    animation: bounce 3s ease infinite;
    animation-delay: 3s;
}

.delay-100 { animation-delay: 0.1s; }
.delay-200 { animation-delay: 0.2s; }
.delay-300 { animation-delay: 0.3s; }
.delay-400 { animation-delay: 0.4s; }
.delay-500 { animation-delay: 0.5s; }


/* about section css */
.about-section {
    padding: 36px 0;
  }

  .image-grid {
    position: relative;
  }

  .abt-images:hover{
    cursor: pointer;
    transform: translateY(-5px);
    transition: transform 0.3s ease, color 0.3s ease;;
  }

  .description{
    font-family: 'Nunito';
    text-align: justify;
    font-size: 19px;
    color: rgb(100, 97, 97);
  }

  .about-text h5 {
    color: #6c9b3b;
    text-transform: uppercase;
    font-weight: 600;
    letter-spacing: 1px;
  }

  .feature-icon {
    font-size: 28px;
    color: #6c9b3b;
    margin-bottom: 10px;
  }

  .explore-btn {
    background-color: #f0d94c;
    color: #333;
    border: none;
    border-radius: 30px;
    padding: 12px 25px;
    font-weight: 600;
    text-decoration: none;
    display: inline-block;
    margin-top: 20px;
    transition: transform 0.3s ease;
    &:hover {
        transform: translateY(-5px);
        box-shadow: 0 8px 20px rgba(0, 0, 0, 0.2);
    }
  }
 
  /* hide on phone banner btn */
  
  @media (max-width: 576px) {
    .hide-on-mobile {
      display: none !important;
    }
  }
  .img-fluid.rounded {
    object-fit: cover;
    height: 100%;
  }

  /* media querry about and choose section */
  @media (max-width: 576px) {
    .choose_heading {
      font-size: 25px;
    }
    .description{
        font-size: 18px;
    }
  }
  
/* Contact info card */
.contact-info-card {
    transition: all 0.3s ease;
}

.contact-info-card:hover {
    background-color: var(--primary);
    color: white;
    transform: translateY(-5px);
}

.contact-info-card:hover .text-secondary {
    color: rgba(255, 255, 255, 0.8) !important;
}

.contact-info-card i {
    transition: transform 0.3s ease;
}

.contact-info-card:hover i {
    transform: scale(1.2);
}

/* Hero image */
.hero-image {
    border-radius: 1rem;
    overflow: hidden;
    box-shadow: 0 15px 30px rgba(0, 0, 0, 0.1);
    transition: all 0.5s ease;
}

.hero-image:hover {
    transform: scale(1.03) rotate(1deg);
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.15);
}

/* Banner section */
.banner {
    background-color: var(--cream);
    padding: 3rem 0;
    position: relative;
    overflow: hidden;
}

.banner::before {
    content: '';
    position: absolute;
    top: 0;
    right: 0;
    width: 150px;
    height: 150px;
    background-color: rgba(255, 255, 255, 0.3);
    border-radius: 50%;
    z-index: 0;
    animation: float 8s ease-in-out infinite;
}

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

/* Customer review stars */
.star-rating {
    color: var(--milk-accent);
}

/* CTA section */
.cta-section {
    background-color: var(--primary);
    color: white;
    text-align: center;
    padding: 4rem 0;
    margin: 0;
    position: relative;
    overflow: hidden;
}

.cta-section::before {
    content: '';
    position: absolute;
    top: -50px;
    left: -50px;
    width: 200px;
    height: 200px;
    border-radius: 50%;
    background-color: rgba(255, 255, 255, 0.1);
}

.cta-section::after {
    content: '';
    position: absolute;
    bottom: -80px;
    right: -80px;
    width: 250px;
    height: 250px;
    border-radius: 50%;
    background-color: rgba(255, 255, 255, 0.1);
}

/* Process section */
.process-step {
    position: relative;
    padding-left: 30px;
    margin-bottom: 2rem;
}

.process-step::before {
    content: '';
    position: absolute;
    left: 0;
    top: 0;
    width: 2px;
    height: 100%;
    background-color: var(--primary);
}

.process-step .step-number {
    width: 40px;
    height: 40px;
    background-color: var(--primary);
    color: white;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: bold;
    position: absolute;
    left: -20px;
    top: 0;
}

/* New Feature: Timeline */
.timeline {
    position: relative;
    padding: 0;
    list-style: none;
    margin: 0;
}

.timeline::before {
    content: '';
    position: absolute;
    top: 0;
    bottom: 0;
    left: 50%;
    width: 2px;
    margin-left: -1px;
    background-color: var(--primary);
}

.timeline-item {
    position: relative;
    margin-bottom: 50px;
}

.timeline-badge {
    position: absolute;
    top: 0;
    left: 50%;
    width: 50px;
    height: 50px;
    margin-left: -25px;
    border-radius: 50%;
    background-color: var(--primary);
    color: white;
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 1;
}

.timeline-panel {
    position: relative;
    width: 45%;
    float: left;
    padding: 20px;
    border-radius: 1rem;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.1);
    background-color: white;
}

.timeline-item:nth-child(even) .timeline-panel {
    float: right;
}

.timeline-item::after {
    content: '';
    display: table;
    clear: both;
}

/* Scroll reveal animations */
.reveal {
    position: relative;
    opacity: 0;
    transition: all 0.8s ease-in-out;
}

.reveal.active {
    opacity: 1;
}

.reveal.from-left {
    transform: translateX(-50px);
}

.reveal.from-right {
    transform: translateX(50px);
}

.reveal.from-left.active,
.reveal.from-right.active {
    transform: translateX(0);
}

.reveal.from-bottom {
    transform: translateY(50px);
}

.reveal.from-bottom.active {
    transform: translateY(0);
}

/* Stats counter */
.stat-counter {
    font-size: 3rem;
    font-weight: bold;
    color: var(--primary);
    margin-bottom: 0.5rem;
}

/* Milk splash animation */
.milk-splash {
    position: relative;
    overflow: hidden;
}

.milk-splash::before {
    content: '';
    position: absolute;
    top: -100%;
    left: -100%;
    width: 300%;
    height: 300%;
    background: radial-gradient(circle, rgba(255,255,255,0.8) 0%, rgba(255,255,255,0) 70%);
    transform: scale(0);
    transition: transform 0.5s ease-out;
}

.milk-splash:hover::before {
    transform: scale(1);
}

/* Mobile responsive adjustments */
@media (max-width: 767.98px) {
    h1, .h1 {
        font-size: 2.25rem;
    }
    
    h2, .h2 {
        font-size: 1.75rem;
    }
    
    .display-4 {
        font-size: 2.25rem;
    }
    
    .lead {
        font-size: 1rem;
    }
    
    #hero {
        text-align: center;
    }
    
    .timeline::before {
        left: 40px;
    }
    
    .timeline-badge {
        left: 40px;
        margin-left: 0;
    }
    
    .timeline-panel {
        width: calc(100% - 90px);
        float: right;
    }
    
    .timeline-item:nth-child(even) .timeline-panel {
        float: right;
    }
}



/* Enhanced card styling */
.card {
    border: none;
    transition: all 0.4s ease;
}

.card:hover {
    transform: translateY(-2px);
    box-shadow: 0 15px 30px rgba(0, 0, 0, 0.1) !important;
}

/* Product gallery image height */

.gallery-section {
    padding: 60px 20px;
    text-align: center;
  }


  .gallery-section p {
    color: #555;
    font-size: 1.1rem;
    margin-bottom: 40px;
    animation: fadeIn 2s ease-in-out;
  }

  .gallery-img {
    width: 100%;
    height: 200px;
    object-fit: cover;
    border-radius: 5px;
    box-shadow: 0 8px 20px rgba(0,0,0,0.1);
  }

  .gallery-img:hover {
    cursor: pointer;
    transform: translateY(-5px);
    transition: transform 0.3s ease, color 0.3s ease;
  }

  @keyframes fadeIn {
    from { opacity: 0; transform: translateY(20px); }
    to { opacity: 1; transform: translateY(0); }
  }

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

/* Floating animation for product badges */
@keyframes float-badge {
    0%, 100% { transform: translateY(0); }
    50% { transform: translateY(-10px); }
}

.badge.bg-primary {
    animation: float-badge 3s ease-in-out infinite;
    box-shadow: 0 5px 15px rgba(13, 110, 253, 0.3);
}

/* Enhanced Timeline Styling */
.timeline-badge {
    box-shadow: 0 0 0 5px rgba(13, 110, 253, 0.2);
}

.timeline-panel {
    transition: all 0.4s ease;
}

.timeline-panel:hover {
    transform: translateY(-10px);
    box-shadow: 0 15px 30px rgba(0, 0, 0, 0.15) !important;
}

/* Improved Stats Section */
.stat-counter {
    position: relative;
    display: inline-block;
    font-weight: 800;
}

.stat-counter::after {
    content: '';
    position: absolute;
    bottom: -5px;
    left: 50%;
    transform: translateX(-50%);
    width: 40px;
    height: 3px;
    background-color: var(--primary);
    border-radius: 3px;
}

/* Enhanced Navigation */
.navbar-brand {
    position: relative;
    padding: 0.5rem 0;
}

.navbar-brand::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 100%;
    height: 2px;
    background: linear-gradient(90deg, var(--primary) 0%, transparent 100%);
    transform: scaleX(0);
    transform-origin: left;
    transition: transform 0.3s ease;
}

.navbar-brand:hover::after {
    transform: scaleX(1);
}

/* Gradient text effect */
.gradient-text {
    background: red;
    -webkit-background-clip: text;
    background-clip: text;
    color: transparent;
    display: inline-block;
}

/* Product card badge */
a{
    text-decoration: none;
}
/* WhatsApp floating button */
.whatsapp-float {
    position: fixed;
    width: 60px;
    height: 60px;
    bottom: 40px;
    right: 40px;
    background-color: #25d366;
    color: #FFF;
    border-radius: 50px;
    text-align: center;
    font-size: 30px;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.2);
    z-index: 100;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.3s ease;
}

.whatsapp-float:hover {
    transform: scale(1.1) rotate(10deg);
    box-shadow: 0 8px 25px rgba(0, 0, 0, 0.3);
    color: #FFF;
}

@media screen and (max-width: 767px) {
    .whatsapp-float {
        width: 50px;
        height: 50px;
        bottom: 20px;
        right: 20px;
        font-size: 24px;
    }
}

/* Back to top button */
.back-to-top {
    position: fixed;
    width: 50px;
    height: 50px;
    bottom: 40px;
    left: 40px;
    background-color: var(--primary);
    color: #FFF;
    border-radius: 50%;
    text-align: center;
    font-size: 20px;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.2);
    z-index: 100;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.3s ease;
    opacity: 0;
    visibility: hidden;
}

.back-to-top.show {
    opacity: 1;
    visibility: visible;
}

.back-to-top:hover {
    transform: translateY(-5px);
    background-color: var(--primary-dark);
    color: #FFF;
}

@media screen and (max-width: 767px) {
    .back-to-top {
        width: 40px;
        height: 40px;
        bottom: 20px;
        left: 20px;
        font-size: 16px;
    }
} 

/* why we choose us */
.choose_heading {
    font-weight: 700;
    font-family: 'Playfair Display', serif;
  }

  .why-us-section {
    /* padding: 60px 15px; */
    background-color: #fff;
  }

  .why-us-section h5 {
    color: #6c9b3b;
    text-transform: uppercase;
    letter-spacing: 1px;
    font-weight: 600;
  }

  .why-us-section ul {
    list-style: none;
    padding-left: 0;
  }

  .why-us-section ul li i {
    color: #6c9b3b;
    margin-right: 10px;
  }

  .explore-btn {
    background-color: #f0d94c;
    color: #333;
    border: none;
    border-radius: 2px;
    padding: 12px 25px;
    font-weight: 600;
    text-decoration: none;
    display: inline-block;
    margin-top: 20px;
  }

  .info-box {
    padding: 30px;
    text-align: center;
  }

  .info-box.green {
    background-color: #6c9b3b;
    color: white;
  }

  .info-box.yellow {
    background-color: #f0d94c;
    color: #333;
  }

  .info-box i {
    font-size: 32px;
    margin-bottom: 10px;
  }

  .info-box h3 {
    font-family: 'Playfair Display', serif;
    font-size: 32px;
    margin-bottom: 5px;
  }

  .info-box p {
    font-weight: 600;
    margin: 0;
  }


  /* Marquee css */
  .marquee{
    height: 50px; 
    background-color:blue;
  }

  /* details css */
  
  .details-title{
    font-family: 'poppins';
 }
.p_condition{
    border: none;
    padding: 2px 15px;
    border-radius: 3px;
    border: 1px solid rgb(156, 154, 154);
    font-family: 'poppins';

}
.whatsapp-btn{
    border: none;
    background-color: white;
    border: 1px solid rgb(156, 154, 154);
    font-family: 'poppins';
    padding: 5px 20px;
    border-radius: 3px;
    
}
.whatsapp-btn a{
    color: black;
    font-family: 19px;
}

.call-btn{
    border: none;
    background-color: white;
    font-family: 'poppins';
    padding: 6px 20px;
    border-radius: 3px;
    background-color: #058a07;
    
}
.call-btn a{
    color: white;
}

.best-btn{
    border: none;
    background-color: white;
    font-family: 'poppins';
    padding: 6px 20px;
    border-radius: 3px;
    background-color: #007aff;
    
}
.best-btn a{
    color: white;
}
