html, body { 
  scroll-behavior: smooth; 
  font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif; 
}

.skippy {
  background-color: #174faf;
  font-weight: 600;
  font-size: 0.95rem;
  letter-spacing: 0.5px;
}

.skippy .overflow-hidden {
  max-width: 50%;
  height: 1.2rem;
  position: relative;
  margin: 0 auto;
}

.animated-text {
  white-space: nowrap;
  animation: slideText 10s linear infinite;
}

@keyframes slideText {
  0% { transform: translateX(100%); }
  100% { transform: translateX(-100%); }
}




/* Navbar ----------------------------------------------------------------------------------------------------- */
.navbar {
  background-color: #cce6ff !important; /* light professional blue */
  box-shadow: 0 3px 10px rgba(0,0,0,0.1);
}

.navbar-brand h5 {
  color: #0b3d91; /* dark blue text */
  font-weight: 700;
}

.navbar-nav .nav-link {
  color: #0b3d91 !important; 
  font-weight: 500;
}

.navbar-nav .nav-link:hover {
  color: #0099ff !important; /* vibrant blue hover */
}

/* Hero Carousel */
.carousel-item img { 
  width: 100%; 
  height: auto; /* default Bootstrap height */
  object-fit: cover; 
}

.carousel-caption {
  background: rgba(0,0,50,0.45); /* semi-transparent dark blue overlay */
  padding: 1rem 1.5rem;
  border-radius: 8px;
  color: #fff;
}

/* Inspiration Section */
#inspiration {
  min-height: 450px;
  position: relative;
  overflow: hidden;
  color: white;
  display: flex;
  align-items: center;
  justify-content: center;
  text-align: center;
}

/* Overlay for better text readability */
#inspiration .overlay {
  background: rgba(0, 61, 145, 0.2);
  position: absolute;
  top: 0; left: 0;
  width: 100%; height: 100%;
  z-index: 1;
}

/* Grass + cow background */ 
.grass-bg {
  background: url('images/grasing_cow.jpg') repeat-x bottom; /*images/grasing_cow.svg*/
  position: absolute;
  width: 200%;
  height: 100%;
  bottom: 0;
  left: 0;
  background-size: cover;
  animation: grassWave 20s linear infinite;
  z-index: 0;
}

/* Grass wave animation */
@keyframes grassWave {
  0% { transform: translateX(0); }
  100% { transform: translateX(-50%); }
}

/* Text styles */
#inspiration h2 {
  font-size: 2.8rem;
  font-weight: 700;
  text-shadow: 2px 2px 8px rgba(0,0,0,0.5);
}

#inspiration p {
  font-size: 1.25rem;
  font-style: italic;
  max-width: 700px;
  margin: 0 auto;
  text-shadow: 1px 1px 6px rgba(0,0,0,0.5);
}

/* Responsive adjustments */
@media (max-width: 767px) {
  #inspiration h2 {
    font-size: 2rem;
  }
  #inspiration p {
    font-size: 1rem;
  }
}



/* Products --------------------------------------------------------------------------------------------------------------- */
#products {
  background-color: #e6f2ff;
  color: #0b3d91;
}

#products h2 {
  color: #0b3d91;
  font-weight: 700;
  font-size: 2rem;
}

.product-card {
  border: none;
  border-radius: 15px;
  overflow: hidden;
  transition: transform 0.3s, box-shadow 0.3s;
  position: relative;
}

.product-card:hover {
  transform: translateY(-8px);
  box-shadow: 0 12px 25px rgba(0,0,0,0.25);
}

.card-img-wrapper {
  position: relative;
  overflow: hidden;
  height: 220px;
}

.card-img-wrapper img {
  width: 100%;
  height: 100%;
  object-fit: contain;
  transition: transform 0.5s;
}

.product-card:hover .card-img-wrapper img {
  transform: scale(1.05);
}

.card-img-wrapper .overlay {
  position: absolute;
  top: 0; left: 0;
  height: 100%; width: 100%;
  background: rgba(0,61,145,0.6);
  display: flex;
  justify-content: center;
  align-items: center;
  opacity: 0;
  transition: opacity 0.3s;
  border-radius: 15px;
}

.product-card:hover .overlay {
  opacity: 1;
}

.overlay .btn {
  background-color: #0099ff;
  border: none;
  font-weight: 500;
  padding: 0.5rem 1rem;
  transition: transform 0.3s, background 0.3s;
}

.overlay .btn:hover {
  background-color: #0b3d91;
  transform: scale(1.1);
}

.card-body h5 {
  font-weight: 600;
  color: #0b3d91;
  margin-top: 0.5rem;
  font-size: 1.1rem;
}

.card-body p {
  color: #0b3d91;
  font-size: 0.95rem;
  margin-bottom: 0.5rem;
}

.card-body .fw-bold {
  font-size: 1rem;
}

.card-body a.text-danger,
.like-btn {
  font-size: 1rem;
}

.like-btn {
  border: none;
  padding: 0.25rem 0.5rem;
  font-size: 0.9rem;
  cursor: pointer;
  display: flex;
  align-items: center;
}

.like-btn:hover {
  background-color: #e0f0ff;
}

/* Responsive */
@media (max-width: 767px) {
  .card-img-wrapper { height: 200px; }
}

@media (max-width: 575px) {
  .card-img-wrapper { height: 180px; }
}


.card-img-wrapper .overlay {
  pointer-events: none; /* Don't block clicks when hidden */
  opacity: 0;
  transition: opacity 0.3s;
}

.product-card:hover .overlay {
  opacity: 1;
  pointer-events: auto; /* Enable clicks on hover */
}


/* Fixed height for all delivery cards ------------------------------------------------------------------------------*/
/* Home Delivery Cards */
.delivery-card {
  height: 450px;               /* fixed card height */
  display: flex;
  flex-direction: column;
}

.card-img-wrapper {
  height: 200px;               /* fixed image height */
  display: flex;
  justify-content: center;
  align-items: center;
  overflow: hidden;
}

.card-img-wrapper img {
  max-height: 100%;
  width: auto;
  object-fit: contain;         /* preserve aspect ratio */
}

/* Card body fills remaining space */
.delivery-card .card-body {
  flex: 1;
  display: flex;
  flex-direction: column;
  justify-content: center;     /* vertical align text */
}

/* Responsive adjustments */
@media (max-width: 767px) {
  .delivery-card {
    height: auto;              /* allow auto height on mobile */
  }
  .card-img-wrapper {
    height: 150px;             /* smaller images on mobile */
  }
}



/* About ---------------------------------------------------------------------------------------------------------------- */
#about { 
  background-color: #f0f8ff; /* very light blue */ 
  color: #0b3d91; 
}

/* Contact -------------------------------------------------------------------------------------------------------------- */
#contact { 
  background-color: #d9eaff; /* light sky blue */ 
  color: #0b3d91; 
}

/* company-details -------------------------------------------------------------------------------------------------------------- */
#company-details {
  background-color: #3c516b; /* dark gray-blue */
  color: #ced4da;             /* light gray text */
}

#company-details h5 {
  color: #f8f9fa; /* almost white */
  font-weight: 700;
}

#company-details p {
  color: #ced4da; /* light gray for readability */
  font-size: 0.95rem;
}

#company-details i {
  font-size: 1rem;
}



/* Footer --------------------------------------------------------------------------------------------------------------- */
footer { 
  background: #12264a; /* deep blue */ 
  color: #ffffff; 
}

/* Floating Buttons */
.floating-buttons { 
  position: fixed; 
  bottom: 20px; 
  right: 20px; 
  display: flex; 
  flex-direction: column; 
  gap: 15px; 
  z-index: 9999; 
}

.btn-floating { 
  position: relative; 
  display: flex; 
  align-items: center; 
  justify-content: center; 
  width: 60px; 
  height: 60px; 
  border-radius: 50%; 
  color: white; 
  font-size: 1.8rem; 
  text-decoration: none; 
  box-shadow: 0 6px 15px rgba(0,0,0,0.35); 
  overflow: visible; 
  z-index: 1; 
  transition: transform 0.2s; 
}

.btn-whatsapp { background-color: #25D366; } /* green for WhatsApp */
.btn-call { background-color: #0b3d91; } /* blue for call */

/* Ripple effect with matching color */
.btn-floating.btn-whatsapp::after {
  background-color: rgba(37, 211, 102, 0.5); /* green ripple */
}

.btn-floating.btn-call::after {
  background-color: rgba(11, 61, 145, 0.5); /* blue ripple */
}

/* Outer Ripple Animation */
.btn-floating::after {
  content: '';
  position: absolute; 
  top: 50%; 
  left: 50%; 
  width: 60px; 
  height: 60px; 
  border-radius: 50%;
  transform: translate(-50%, -50%) scale(1);
  animation: rippleOuter 2s infinite; 
  z-index: 0;
}

@keyframes rippleOuter { 
  0% { transform: translate(-50%,-50%) scale(1); opacity:0.6; } 
  50% { transform: translate(-50%,-50%) scale(1.6); opacity:0.2; } 
  100% { transform: translate(-50%,-50%) scale(1); opacity:0.6; } 
}

/* Hover Scale */
.btn-floating:hover { transform: scale(1.1); }
.btn-floating i { position: relative; z-index: 2; pointer-events: none; }
