* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html, body {
    overflow-x: hidden;
    font-family: Arial, Helvetica, sans-serif;
}

body {
    background-image: url('img/paper bg.png');
    background-repeat: no-repeat;
    background-size: cover; 
}

/* Flexbox adjustments */
.icon-box {
    max-width: 100%;
}

/* Additional safeguard for mobile */
@media (max-width: 768px) {
    .nav-item, .icon-box {
        width: 100%;
        flex: 1 0 auto; /* Prevents shrinking */
    }

    .login-button {
        margin: 10px 0; /* Adjusts margin for better spacing */
    }
}

/* navbar section */
.navbar {
    padding: 0 1.5rem;
    height: 60px;
}

.navbar-brand {
    font-size: 1.5rem;
    font-weight: bold;
}

.offcanvas-body a {
    font-weight: 700;
}

.nav-item {
    margin: 0 15px;
}

.icon-box i {
    font-size: 1.3rem;
    margin: 0 10px;
}

.login-button {
    background: none;
    color: #2c1310;
    font-size: 1rem; /* Use relative units */
    font-weight: 700;
    padding: 6px 16px;
    border: 3px solid #932c04;
    border-radius: 50px;
    text-decoration: none;
    margin-right: 10px;
    transition: 0.3s background-color;
}

.login-button:hover {
    background-color: #2c1310;
    color: white;
    border: 3px solid #2c1310;
}

.icon-box {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 45px;
    height: 45px;
    transition: background-color 0.3s;
}

.search-container {
    position: relative;
    display: flex;
    align-items: center;
}

.search-input {
    width: 0;
    opacity: 0;
    transition: width 0.4s ease-in-out, opacity 0.4s ease-in-out;
}

.form-control.search-input {
    background: none;
    border: 1px solid #932c04;
    padding: 0;
}

.search-active .search-input {
    width: 200px;
    opacity: 1;
    padding-left: 10px;
    padding-right: 30px;
}

.search-icon, .close-icon {
    cursor: pointer;
    font-size: 1.25rem;
    color: #932c04;
}

.close-icon {
    display: none;
    margin-left: 10px;
}

.search-active .close-icon {
    display: inline;
}

.search-active .search-icon {
    display: none;
}

.search-icon-inside {
    position: absolute;
    right: 35px;
    top: 50%;
    transform: translateY(-50%);
    font-size: 1rem; /* Adjusted for smaller screens */
    color: #932c04;
    pointer-events: none;
    opacity: 0;
    transition: opacity 0.2s ease-in-out;
}

.search-active .search-icon-inside {
    opacity: 1;
}

#search-results {
    height: 40px;
    margin-top: 10px;
    padding: 10px;
    align-items: center;
    justify-content: center;
    border: 1px solid #ddd;
    border-radius: 5px;
    background-color: #f9f9f9;
    text-align: center;
    display: none;
    font-size: 14px;
    color: #932c04;
}

.search-results p {
    margin-bottom: 0;
}

.nav-item {
    position: relative;
}

.nav-link {
    position: relative;
}

@media (min-width: 991px) {
    .nav-link::before {
        content: "";
        position: absolute;
        bottom: 0;
        left: 50%;
        transform: translateX(-50%);
        width: 0;
        height: 2px;
        background-color: #932c04;
        visibility: hidden;
        transition: 0.3s ease-in-out;
    }

    .nav-link:hover::before, .nav-link.active::before {
        width: 100%;
        visibility: visible;
    }
}

@media (max-width: 768px) {
    .icon-box {
        width: 35px;
        height: 35px;
    }

    .search-icon, .close-icon {
        font-size: 1rem;
    }
}

/* hero section */
.hero-section {
    position: relative;
    padding: 50px 0;
    overflow-x: hidden; /* Prevent horizontal scrolling */
}

.hero-section .hero-content {
    text-align: left;
}

.hero-section .hero-content h1 {
    font-size: 2.5rem; /* Adjusted for smaller devices */
    font-weight: bold;
    color: #932c04;
}

.hero-section .hero-content p {
    font-size: 1.2rem; /* Adjusted for smaller devices */
    text-align: justify;
    color: #2c1310;
    margin-bottom: 30px;
}

.hero-section .hero-content .btn-explore {
    background-color: #932c04;
    color: white;
    padding: 10px 20px;
    font-size: 1rem; /* Adjusted for smaller devices */
    border-radius: 50px;
}

.hero-section .hero-content .btn-explore:hover {
    background-color: #2c1310;
    color: white;
}

.hero-section .hero-image {
    text-align: right;
}

.hero-section .hero-image img {
    width: 400px; /* Adjusted max width */
    max-width: 100%;
    border-radius: 10px;
    animation: floating 3s ease-in-out infinite; /* Add floating animation */
}

.spoon-masalas, .tomato-image {
    position: absolute;
    animation: floating 3s ease-in-out infinite; /* Add floating animation */
}

.spoon-masalas {
    top: -5%;
    left: -5%;
    width: 200px;
}

.tomato-image {
    top: -1%;
    right: -2%;
    width: 150px;
}

/* Floating animation keyframes */
@keyframes floating {
    0%, 100% {
        transform: translateY(0);
    }
    50% {
        transform: translateY(-10px); /* Adjust this value for more/less float */
    }
}

@media (max-width: 768px) {
  .spoon-masalas {
    width: 25%;
  }
  .tomato-image {
    width: 15%;
  }
}

@media (max-width: 428px) {
  .spoon-masalas {
    width: 30%;
  }
  .tomato-image {
    width: 20%;
  }
}

.hero-section .hero-image {
    height: 500px; /* Set a fixed height for the carousel */
    overflow: hidden; /* Hide overflow */
}

.hero-section .carousel-inner {
    height: 100%; /* Ensure the inner carousel takes full height */
}

.hero-section .carousel-item {
    height: 100%; /* Set each carousel item to full height */
}

.hero-section .carousel-item img {
    width: 100%; /* Make image fill the width */
    height: 100%; /* Make image fill the height */
    object-fit: contain; /* Ensure the entire image is visible */
}

/* menu section */
.menu-section {
    position: relative;
    padding: 50px 0;
    overflow: hidden;
}

.menu-header {
    text-align: center;
    margin-bottom: 50px;
}

.menu-header h2 {
    font-size: 2.5rem;
    font-weight: bold;
}

.menu-header p {
    font-size: 1.2rem;
    color: gray;
}

.menu-header .menu-tabs a {
    color: #932c04;
    font-size: 1rem;
    font-weight: bold;
    margin-right: 30px;
    text-decoration: none;
}

.menu-item {
    text-align: center;
    margin-bottom: 30px;
}

.menu-item img {
    width: 250px;
    max-width: 100%;
    border-radius: 50%;
}

.menu-item h4 {
    font-size: 1.5rem;
    margin-top: 20px;
    color: #932c04;
}

.menu-item p {
    font-size: 1rem;
    color: #2c1310;
}

.sauce-peas {
    position: absolute;
    top: -10%;
    left: 10%;
    width: 200px;
}

.lobster-image {
    position: absolute;
    top: 5%;
    right: 10%;
    width: 200px;
}

@media (max-width: 768px) {
  .sauce-peas{
    width: 15%;
  }
  .lobster-image{
    width: 12%;
  }
}

/* Additional CSS for smooth transitions */
/* Keyframes for rotation */
@keyframes rotate {
    from {
        transform: rotate(0deg);
    }
    to {
        transform: rotate(360deg);
    }
}

/* Apply rotation only on hover */
.menu-item img {
    width: 250px;
    max-width: 100%;
    border-radius: 50%;
    transition: transform 0.5s; /* Smooth transition for scale effect */
}

/* Rotation effect on hover */
.menu-item:hover img {
    animation: rotate 10s linear infinite; /* Start rotation on hover */
}

/* To ensure it resets smoothly when hover ends */
.menu-item img {
    animation: none; /* Disable animation initially */
}

/* Add a class to manage the rotation state */
.menu-item.rotating img {
    animation: rotate 10s linear infinite; /* Start rotation on hover */
}


/* Initial positioning and transition for floating images */
.menu-section .sauce-peas, .menu-section .lobster-image {
    transition: transform 0.1s ease; /* Smooth transition */
}

/* feature section  */
/* Parallax effect */
.container.my-5{
  position: relative;
  overflow: hidden; /* Prevents overflow from elements */
}

/* Why card styles */
.container.my-5 .why-card {
  text-align: center;
  transition: transform 0.3s ease, box-shadow 0.3s ease; /* Smooth transition for hover */
  padding: 20px; /* Added padding for better spacing */
  border-radius: 10px; /* Rounded corners */
  background-color: white; /* Background color for contrast */
  box-shadow: 0 4px 10px rgba(0, 0, 0, 0.1); /* Subtle shadow */
}

/* Hover effect for why-card */
.container.my-5 .why-card:hover {
  transform: translateY(-10px); /* Lift effect */
  box-shadow: 0 8px 20px rgba(0, 0, 0, 0.2); /* Deeper shadow */
}

/* Icon styles */
.container.my-5 .icon {
  font-size: 50px;
  color: #7FC4B8;
}

/* Section title styles */
.container.my-5 .section-title {
  font-weight: bold;
  text-align: center;
  margin-bottom: 40px;
}

.container.my-5 .why-card h5 {
  margin-top: 20px;
  font-weight: bold;
}
  

/* review section  */
.review-floating-section {
    position: relative;
    padding: 100px 0;
    overflow: hidden;
}

.review-floating-section .content {
    z-index: 1;
    position: relative;
}

/* Floating images */
.review-floating-section .floating-images img {
    position: absolute;
    max-width: 170px;
}

/* Positioning floating images */
.utensil-top-left {
    top: 10%;
    left: -10%; /* Start off-screen */
}

.spices-top-right {
    top: -5%;
    right: -10%; /* Start off-screen */
    width: 150px;
}

.veggie-bottom-right {
    bottom: 0;
    right: -5%; /* Start off-screen */
    width: 100px;
}

.veggie-bottom-left {
    bottom: 0;
    left: -10%; /* Start off-screen */
    width: 150px;
}

/* Transition for floating images */
.utensil-top-left, .spices-top-right, .veggie-bottom-right, .veggie-bottom-left {
    transition: transform 0.1s ease; /* Smooth transition */
}

@media (max-width: 768px) {
    .utensil-top-left {
        display: none;
    }
    .spices-top-right{
        top: 5%;
        right: -20%;
    }
    .veggie-bottom-right {
        bottom: 0;
        right: -30%; 
    }
    
    .veggie-bottom-left {
        bottom: 0;
        left: -40%; 
    }
  }

/* Floating animation for main food image */
.main-food img {
    animation: floating 3s ease-in-out infinite; /* Add floating animation */
}

/* Floating animation keyframes */
@keyframes floating {
    0%, 100% {
        transform: translateY(0);
    }
    50% {
        transform: translateY(-10px); /* Adjust for more/less float */
    }
}


/* subscription section  */
.form-container {
  border: 2px solid #2c1310;
  padding: 40px;
  border-radius: 10px;
  margin: 50px auto;
  max-width: 500px;
}

/* Floating animation for form container */
.form-container {
    animation: floating 3s ease-in-out infinite; /* Add floating animation */
}

/* Floating animation keyframes */
@keyframes floating {
    0%, 100% {
        transform: translateY(0);
    }
    50% {
        transform: translateY(-10px); /* Adjust for more/less float */
    }
}

.form-container h1 {
  font-size: 24px;
  font-weight: 700;
  margin-bottom: 20px;
  text-align: center;
}
.form-container input, .form-container textarea, .form-container select {
  background-color: #989382;
  border: 1px solid #932c04;
  color: #932c04;
  margin-bottom: 15px;
}
.form-container input::placeholder, .form-container textarea::placeholder {
  color: #932c04;
}
.btn-submit {
  background-color: #932c04;
  border: none;
  width: 100%;
  padding: 10px;
  color: white;
  font-weight: bold;
  border-radius: 5px;
}
.btn-submit:hover {
  background-color: #2c1310;
}

/* Main food bowl image */
.main-food img {
    max-width: 450px;
    border-radius: 50%;
}

/* Responsive design */
@media (max-width: 768px) {
    .main-food img {
        max-width: 300px;
    }

    .review-floating-section .floating-images img {
        max-width: 100px;
    }
}

/* subscription section  */
.floating-section {
    position: relative;
    padding: 100px 0;
    overflow: hidden;
}

/* Floating images */
.floating-images img {
    position: absolute;
    max-width: 120px;
}

/* Positioning floating images */
.img-1 {
    top: 10%;
    left: -10%;
}

.img-2 {
    top: 15%;
    right: 10%;
}

.img-3 {
    bottom: 5%;
    left: 20%;
}

.img-4 {
    top: 40%;
    right: -15%;
}

.img-5 {
    bottom: 15%;
    left: 5%;
}

.img-6 {
    bottom: 5%;
    right: 15%;
}

.img-7 {
    top: 2%;
    right: 25%;
}

.img-8 {
    bottom: -5%;
    right: 40%;
}

@media (max-width: 768px) {
  .img-2, .img-1{
    display: none;
  }
  .img-4{
    display: none;
  }
}

@media (max-width: 428px) {
  .img-3{
    display: none;
  }
  .img-1{
    display: none;
  }
  .img-4{
    display: none;
  }
}

/* Transition for floating images */
.img-1, .img-4 {
    transition: transform 0.1s ease; /* Smooth transition */
}

/* Floating animation for form container */
.img-2, .img-3, .img-5, .img-6, .img-7, .img-8 {
    animation: floating 3s ease-in-out infinite; /* Add floating animation */
}

/* Floating animation keyframes */
@keyframes floating {
    0%, 100% {
        transform: translateY(0);
    }
    50% {
        transform: translateY(-10px); /* Adjust for more/less float */
    }
}

.floating-section .main-content {
    position: relative;
    z-index: 1;
    text-align: center;
}

.floating-section .main-content h2 {
    font-size: 2rem;
    font-weight: bold;
    color: #2c1310;
}

.floating-section .main-content p {
    color: #2c1310;
    font-weight: 400;
}

.floating-section .subscribe-form input {
    padding: 15px;
    width: 60%;
    max-width: 400px;
    border-radius: 50px 0 0 50px;
}

.floating-section .subscribe-form button {
    padding: 15px;
    background-color: #932c04;
    color: white;
    border: 1px solid #932c04;
    border-radius: 0 50px 50px 0;
    cursor: pointer;
}

/* Responsive adjustments */
@media (max-width: 768px) {
    .floating-section .floating-images img {
        max-width: 80px;
    }

    .floating-section .subscribe-form input {
        width: 80%;
        max-width: 300px;
    }
}

/* footer css  */
.footer {
    padding: 50px 0;
    background-color: #989382;
}

.footer h5 {
    color: white;
}

.footer a {
    color: #932c04;
    text-decoration: none;
}

.footer a:hover {
    text-decoration: underline;
}
