/* Import Google Fonts for a modern look */
@import url('https://fonts.googleapis.com/css2?family=Poppins:wght@400;600;700&display=swap');

/* General Body and Layout Styles */
body {
  font-family: 'Poppins', sans-serif;
  background: linear-gradient(135deg, #f4f4f9, #e0f7fa); /* Soft gradient for entire body */
  color: #333;
  margin: 0;
  padding: 0;
  scroll-behavior: smooth;
}

/* Reset box-sizing for consistent layout */
*,
*::before,
*::after {
  box-sizing: border-box;
}

/* Header Styling */
.header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 20px 40px; /* Reduced padding for a slimmer header */
  background: linear-gradient(45deg, #4CAF50, #66BB6A); /* Green gradient */
  color: white;
  box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1); /* Subtle shadow */
  height: 80px; /* Set a fixed height for the header */
}

/* Logo Styling */
.logo {
  text-decoration: none; /* Remove underline */
  color: white; /* Default color */
  font-size: 18px; /* Slightly smaller font size */
  font-weight: bold; /* Bold font */
  transition: color 0.3s ease-in-out; /* Smooth transition for hover effect */
}

.logo:hover {
  color: yellow; /* Change to yellow on hover */
}

/* Navigation Menu Styling */
.navigation {
  list-style: none;
  display: flex;
  gap: 15px; /* Even spacing between navigation items */
  margin: 0;
  padding: 0;
}

.navigation a {
  color: white; /* Default color */
  text-decoration: none; /* Remove underline */
  font-size: 1.1rem; /* Slightly smaller font size */
  font-weight: 600;
  transition: color 0.3s ease-in-out; /* Smooth color change on hover */
}

.navigation a:hover {
  color: yellow; /* Change to yellow on hover */
}



/* Hero Section Styling */
.hero {
  background-image: url('../images/salad-2756467_1280.jpg'); /* Replace with your image path */
  background-size: cover;
  background-position: center;
  padding: 200px 30px;
  text-align: center;
  color: white;
  position: relative;
  margin-bottom: 0;
}

.hero::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background-color: rgba(0, 0, 0, 0.6); /* Dark overlay */
  z-index: 1;
}

.hero-content {
  position: relative;
  z-index: 2;
}

.animated-text {
  font-size: 3em;
  font-weight: 700;
  margin-bottom: 10px;
  animation: continuousBounce 2s ease-in-out infinite;
}

.explore-btn {
  background-color: #4CAF50;
  color: #fff;
  padding: 12px 25px;
  border-radius: 5px;
  font-size: 1.1em;
  text-decoration: none;
  transition: background-color 0.3s, transform 0.3s;
}

.explore-btn:hover {
  transform: scale(1.05);
  background-color: #388E3C;
}


/* Contact Us Section */
.contact-section {
  margin-top: 0;
  padding: 60px 20px;
  text-align: center;
  background-color: #f9f9f9;
  border-radius: 10px;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
  position: relative;
  overflow: hidden; /* Ensures bubbles don't overflow */
}

/* Heading */
.contact-heading h2 {
  color: #4CAF50;
  font-size: 2.5em;
  font-weight: bold;
}

.contact-heading p {
  margin: 10px 0 20px;
  font-size: 1.2em;
  color: #555;
}

/* Moving Icon */
.contact-icon {
  font-size: 60px;
  color: #4CAF50;
  animation: slide 2s infinite;
  margin-top: 20px;
}

/* Sliding animation for the icon */
@keyframes slide {
  0% {
    transform: translateX(0);
  }
  50% {
    transform: translateX(15px);
  }
  100% {
    transform: translateX(0);
  }
}

/* Contact Form */
.contact-form {
  max-width: 500px;
  margin: 0 auto;
}

.input-wrapper {
  margin-bottom: 15px;
}

.input-wrapper label {
  display: block;
  margin-bottom: 5px;
  color: #333;
}

.input-wrapper input,
.input-wrapper textarea {
  width: 100%;
  padding: 10px;
  border: 1px solid #ccc;
  border-radius: 5px;
  font-size: 16px;
  box-sizing: border-box;
  transition: border-color 0.3s ease-in-out;
}

.input-wrapper input:focus,
.input-wrapper textarea:focus {
  border-color: #4CAF50;
  outline: none;
}

.contact-form button {
  background-color: #4CAF50;
  color: #fff;
  padding: 12px 20px;
  border: none;
  border-radius: 5px;
  font-size: 1.2em;
  cursor: pointer;
  transition: background-color 0.3s ease-in-out, transform 0.3s;
}

.contact-form button:hover {
  background-color: #388E3C;
  transform: scale(1.05);
}

/* Animated Bubbles */
.contact-section::before,
.contact-section::after {
  content: '';
  position: absolute;
  border-radius: 50%;
  background-color: rgba(76, 175, 80, 0.2);
  z-index: 0; /* Behind the content */
  animation: bubbleMove 6s infinite ease-in-out;
  transition: transform 0.3s, opacity 0.3s;
}

.contact-section::before {
  width: 120px;
  height: 120px;
  top: -40px;
  left: -60px;
  animation-delay: 0s;
}

.contact-section::after {
  width: 200px;
  height: 200px;
  bottom: -60px;
  right: -80px;
  animation-delay: 1.5s;
}

/* Extra Bubbles */
.contact-section .extra-bubble {
  position: absolute;
  background-color: rgba(76, 175, 80, 0.15);
  border-radius: 50%;
  z-index: 0;
  animation: bubbleMove 8s infinite ease-in-out;
}

.contact-section .bubble1 {
  width: 100px;
  height: 100px;
  top: 20%;
  left: 70%;
  animation-delay: 2s;
}

.contact-section .bubble2 {
  width: 150px;
  height: 150px;
  bottom: 10%;
  left: 500%;
  animation-delay: 3s;
}

/* Adjust the bubble on the message textarea */
.contact-section .bubble3 {
  width: 80px;
  height: 80px;
  top: 70%; /* Adjust vertical position */
  left: 10%; /* Move it further to the left */
  animation-delay: 4s;
}

/* Bubble Movement */
@keyframes bubbleMove {
  0%, 100% {
    transform: translateY(0);
  }
  50% {
    transform: translateY(-20px);
  }
}

/* Feature Section with Bubbles */

/* Features Section Styling */
.features-section {
  padding: 50px 20px;
  text-align: center; /* Center the title */
  background-color: #f9f9f9;
}

.features-section h2 {
  color: #4CAF50;
  font-size: 2.5em;
  margin-bottom: 30px;
  font-weight: 700;
  text-transform: uppercase;
}

.feature-cards {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(200px, 1fr)); /* Adjusts to screen size */
  gap: 20px;
  justify-content: center;
}


/* Card Styling */
.card {
  background-color: #fff;
  border-radius: 10px;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
  text-align: center;
  padding: 15px;
  transition: transform 0.3s, box-shadow 0.3s;
  position: relative;
  overflow: hidden;
  height: auto; /* Allow cards to grow */
  min-height: 350px; /* Ensures uniform height */
}


.card h3 {
  color: #4CAF50; /* Replace with your desired color */
  font-size: 18px; /* Adjust font size if needed */
  font-weight: bold; /* Optional: make it bold */
  text-align: center; /* Optional: center-align text */
  margin: 10px 0; /* Optional: adjust spacing */
}


/* Add bubbles using pseudo-elements */
.card::before,
.card::after {
  content: '';
  position: absolute;
  background-color: rgba(76, 175, 80, 0.2); /* Light green bubble color */
  border-radius: 50%;
  z-index: 0; /* Ensure bubbles are behind other elements */
  pointer-events: none; /* Disable interaction with pseudo-elements */
  transition: transform 0.3s, opacity 0.3s;
}

/* Bubble 1 */
.card::before {
  width: 120px;
  height: 120px;
  top: -50px;
  left: -50px;
  opacity: 0.8;
}

/* Bubble 2 */
.card::after {
  width: 180px;
  height: 180px;
  bottom: -60px;
  right: -60px;
  opacity: 0.6;
}

/* Button Styling */
/* Styling for the "Use Feature" button */
.card .use-btn {
  background-color: #4CAF50;
  color: white;
  border: none;
  border-radius: 5px;
  padding: 10px 20px;
  font-size: 14px;
  font-weight: bold;
  cursor: pointer;
  text-align: center;
  text-decoration: none;
  display: inline-block;
  transition: background-color 0.3s, transform 0.3s;
}

.card .use-btn:hover {
  background-color: #388E3C;
  transform: scale(1.05);
}

.card .use-btn:active {
  background-color: #2E7D32;
}



/* Add bubbles using pseudo-elements */
.card::before,
.card::after {
  content: '';
  position: absolute;
  background-color: rgba(76, 175, 80, 0.2); /* Light green bubble color */
  border-radius: 50%;
  z-index: 0;
  transition: transform 0.3s, opacity 0.3s;
}

/* Bubble 1 */
.card::before {
  width: 120px;
  height: 120px;
  top: -50px;
  left: -50px;
  opacity: 0.8;
}

/* Bubble 2 */
.card::after {
  width: 180px;
  height: 180px;
  bottom: -60px;
  right: -60px;
  opacity: 0.6;
}

/* Hover effect to animate bubbles */
.card:hover::before {
  transform: translate(20px, 20px) scale(1.1);
  opacity: 1;
}

.card:hover::after {
  transform: translate(-20px, -20px) scale(1.1);
  opacity: 1;
}

/* Ensure content is above bubbles */
.card img,
.card p {
  position: relative;
  z-index: 1;
}

.card:hover {
  transform: translateY(-10px);
  box-shadow: 0 6px 18px rgba(0, 0, 0, 0.2);
}

.card img {
  width: 100%;
  height: auto;
  border-radius: 8px;
  margin-bottom: 15px;
  transition: transform 0.3s;
}

.card:hover img {
  transform: scale(1.05);
}

.card p {
  font-size: 16px;
  color: #333;
  margin: 15px 0;
}

/* Footer Styling */
footer {
  background-color: #4CAF50;
  color: #fff;
  text-align: center;
  padding: 15px;
  font-size: 14px;
}

/* Keyframes */
@keyframes continuousBounce {
  0%, 100% { transform: translateY(0); }
  50% { transform: translateY(-10px); }
}

@keyframes fadeIn {
  from { opacity: 0; }
  to { opacity: 1; }
}


    /* Preloader Styles */
    #preloader {
      position: fixed;
      top: 0;
      left: 0;
      width: 100%;
      height: 100%;
      background-color: #fff; /* White background for the loader */
      display: flex;
      justify-content: center;
      align-items: center;
      z-index: 2000;
    }
    
    .food-icon {
      font-size: 50px;
      color: #4CAF50;
      animation: explode 2s ease-in-out infinite;
    }
    
    /* Explosion animation */
    @keyframes explode {
      0% {
        transform: scale(1);
        opacity: 1;
      }
      50% {
        transform: scale(1.5);
        opacity: 0.5;
      }
      100% {
        transform: scale(2);
        opacity: 0;
      }
    }
    