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

/* Root variables */
:root {
  --main-color: #63e645;
  --bg-color: #fff4f3;
  --text-color: #333;
  --big-font: 3rem;
  --h2-font: 2rem;
  --poppins: 'Poppins', sans-serif;
}

* {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

body {
  font-family: var(--poppins);
  color: var(--text-color);
  background-color: var(--bg-color);
}

section {
  padding: 60px 8%;
}

/* Home Section */
.isf-home {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  align-items: center;
  gap: 2rem;
  width: 100%;
  min-height: 100vh;
}

.isf-home-img img {
  width: 100%;
  max-width: 480px;
  border-radius: 1rem;
  box-shadow: 0 10px 20px rgba(0, 0, 0, 0.08);
}

.isf-home-text h3 {
  color: var(--main-color);
  font-size: 1rem;
  font-weight: 500;
  padding: 8px 16px;
  background: #feeceb;
  width: max-content;
  border-radius: 50px;
  margin-bottom: 1rem;
}

.isf-home-text h1 {
  font-size: var(--big-font);
  font-weight: 700;
  line-height: 1.2;
  margin-bottom: 1rem;
}

.isf-home-text span {
  color: var(--main-color);
}

.isf-home-text p {
  width: 90%;
  font-size: 1rem;
  color: #555;
  margin-bottom: 1.5rem;
}

.btn {
  background: var(--main-color);
  display: inline-block;
  padding: 12px 28px;
  border-radius: 50px;
  color: #fff;
  font-weight: 500;
  transition: background 0.3s ease, transform 0.2s ease;
  text-decoration: none;
}

.btn:hover {
  background: #45d1e6;
  transform: scale(1.05);
}

/* Heading */
.isf-heading {
  text-align: center;
  margin-bottom: 3rem;
}

.isf-heading p {
  text-transform: uppercase;
  font-weight: 600;
  color: var(--main-color);
  margin-bottom: 0.5rem;
}

.isf-heading h2 {
  font-size: var(--h2-font);
  font-weight: 700;
}

/* Services */
.isf-services-container {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
  gap: 2rem;
  margin-top: 3rem;
}

.isf-box {
  background: #fff;
  padding: 20px;
  border-radius: 1rem;
  text-align: center;
  box-shadow: 0 6px 16px rgba(0, 0, 0, 0.05);
  transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.isf-box:hover {
  transform: translateY(-5px);
  box-shadow: 0 10px 24px rgba(0, 0, 0, 0.08);
}

.isf-box img {
  width: 80px;
  height: 80px;
  object-fit: contain;
  margin-bottom: 1rem;
}

.isf-box h2 {
  font-size: 1.3rem;
  font-weight: 600;
}

/* Chefs Section */
.isf-chefs .isf-chefs-container {
  display: flex;
  flex-wrap: wrap;
  gap: 2rem;
  margin-top: 2rem;
}


.isf-chef-box {
  position: relative;
  flex: 1 1 18rem;
  overflow: hidden;
  border-radius: 1rem;
  box-shadow: 0 10px 20px rgba(0, 0, 0, 0.06);
  background: #fff;
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  padding: 1rem;
}

/* ✅ FIX: Full image visibility on all devices */
.isf-chef-box img {
    width: 100%;
    height: 300px; /* Set a fixed height for uniform cards */
    object-fit: contain; /* Show full image without cropping */
    object-position: top center; /* Align image to top */
    margin-bottom: 1rem;
    background-color: #f9f9f9; /* Optional: fallback background */
    padding-top: 10px; /* Add some space above the head */
  }
  

.isf-chef-box:hover img {
  transform: scale(1.05);
}

.isf-chef-box .isf-text {
  position: absolute;
  top: -100%;
  left: 0;
  width: 100%;
  height: 100%;
  text-align: center;
  padding: 2rem 1.5rem;
  background: rgba(255, 244, 243, 0.88);
  transition: top 0.5s ease;
  display: flex;
  flex-direction: column;
  justify-content: center;
}

.isf-chef-box:hover .isf-text {
  top: 0;
}

.isf-text h2 {
  font-size: 1.4rem;
  font-weight: 600;
  margin-bottom: 0.5rem;
}

.isf-text p {
  font-size: 0.95rem;
  color: #444;
}

/* Gallery Section */
.gallery {
    padding: 60px 20px;
    background: #f9f9fb;
    text-align: center;
  }
  
  .gallery h1 {
    font-size: 2.8rem;
    color: #222;
    margin-bottom: 40px;
    font-weight: 700;
    letter-spacing: -0.5px;
  }
  
  .image-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 25px;
    max-width: 1200px;
    margin: 0 auto;
  }
  
  .image-item {
    position: relative;
    border-radius: 16px;
    overflow: hidden;
    box-shadow: 0 8px 20px rgba(0, 0, 0, 0.08);
    background: white;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    cursor: pointer;
  }
  
  .image-item img {
    width: 100%;
    height: 240px;
    object-fit: contain;
    object-position: top;
    padding: 10px;
    background-color: #fff;
    transition: transform 0.4s ease;
  }
  
  .image-item:hover {
    transform: translateY(-5px);
    box-shadow: 0 12px 30px rgba(0, 0, 0, 0.15);
  }
  
  .image-item:hover img {
    transform: scale(1.04);
  }
  
  /* Optional: Hover overlay text */
  .image-item::after {
    content: attr(data-caption);
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    background: rgba(0, 0, 0, 0.65);
    color: #fff;
    font-size: 0.95rem;
    padding: 10px 15px;
    opacity: 0;
    transition: opacity 0.4s ease;
  }
  
  .image-item:hover::after {
    opacity: 1;
  }
  
/* === RESPONSIVE FIXES === */
@media (max-width: 1024px) {
  section {
    padding: 40px 5%;
  }

  .isf-home {
    grid-template-columns: 1fr;
    text-align: center;
  }

  .isf-home-text {
    padding-top: 2rem;
  }

  .isf-home-text h1 {
    font-size: 2.2rem;
  }

  .isf-home-text p {
    width: 100%;
  }
}

@media (max-width: 768px) {
  :root {
    --big-font: 2rem;
    --h2-font: 1.5rem;
  }

  .btn {
    padding: 10px 20px;
  }

  .isf-box h2 {
    font-size: 1.2rem;
  }

  .isf-chef-box {
    padding: 0.5rem;
  }

  .isf-chef-box img {
    max-height: 300px;
  }

  .isf-chef-box .isf-text {
    position: static;
    padding: 1rem;
    background: #fff;
  }

  .isf-chef-box:hover .isf-text {
    top: auto;
  }

  .gallery h1 {
    font-size: 1.8rem;
  }

  .isf-home-text h1 {
    font-size: 1.8rem;
    line-height: 1.4;
  }
}

@media (max-width: 480px) {
  .isf-chef-box img {
    max-height: 260px;
  }

  .isf-home-text h1 {
    font-size: 1.6rem;
  }
}
