body {
  font-family: "Poppins", sans-serif;
  background-color: #f7f5ec;
  color: #2c2421;
  overflow-x: hidden;
  padding: 0;
  margin: 0;
}

ul {
  list-style: none;
}

/* Header */
header {
  margin-top: 0%;
  background-color: #efefe2;
  display: flex;
  justify-content: center;
  align-items: center;
  padding: 20px;
  z-index: 9999;
}

.nav-container {
  display: flex;
  justify-content: center;
  align-items: center;
  width: 100%;
  max-width: 1200px;
  margin: 0 auto;
  position: relative;
}

.nav-container ul {
  display: flex;
  gap: 70px;
  justify-content: flex-end;
  align-items: center;
}

.nav-container li a {
  color: #6a7b54 !important;
  text-decoration: none;
  font-weight: 600;
}

.nav-container .logo {
  font-family: "Oleo Script Swash Caps", cursive !important;
  font-size: 28px;
  color: #6a7b54;
}

.nav-container li.logo {
  margin: 0 auto;
}

.nav-container li.logo a {
  font-family: "Oleo Script Swash Caps", cursive !important;
  font-size: 28px;
  color: #6a7b54;
  font-weight: 300 !important;
  text-decoration: none;
  display: block;
  padding: 6px 0;
}

/* Dropdown Menu */
.dropdown {
  display: none !important;
  visibility: hidden;
  position: absolute;
  top: 110%;
  left: 66%;
  transform: translateX(-50%);
  background: #efefe2;
  padding: 8px 0;
  border-radius: 4px;
  box-shadow: 0 6px 18px rgba(0, 0, 0, 0.08);
  min-width: 180px;
  z-index: 1002;
}

.dropdown li {
  padding: 0;
}

.dropdown li a {
  display: block;
  padding: 10px 18px;
  color: #6a7b54;
  text-decoration: none;
  font-weight: 600;
}

.dropdown li a:hover,
.dropdown li a:focus {
  background: rgba(106, 123, 84, 0.08);
}

.has-dropdown.open > .dropdown {
  display: block !important;
  visibility: visible;
}

.hero {
  max-height: 70vh;
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  background: linear-gradient(to right, #ffffff, #f9f4dd);
  overflow: hidden;
  gap: 50px;
}

.hero-text {
  padding-top: 10rem;
  padding-left: 2rem;
  font-weight: 100;
  flex: 1 400px; /* take available space, minimum 400px */
}

.hero-text h1 {
  font-family: "Oleo Script Swash Caps", cursive !important;
  font-size: 55px;
  font-weight: 300;
  padding-left: 2rem;
  margin: 0;
}
.hero-text h4 {
  font-size: 24px;
  font-weight: 300;
  padding-left: 2rem;
  padding-bottom: 1.5rem;
  margin-bottom: -10px;
}

.hero-image {
  width: 140%;
  height: 20%;
  flex: 1 1 400px; /* take remaining space, minimum 400px */
  z-index: 1;
}

.hero-image img {
  width: 100%;
  max-width: 1000px;
  height: 100%;
  display: block;
  transform: scale(1.3);
}
.services-section {
  background-color: #f9f9f9;
  padding: 80px 0;
  display: flex;
  justify-content: center;
}

.services-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 50px;
  width: 70%;
}

.service-box {
  display: flex;
  justify-content: center;
  align-items: center;
  background: #ffffff;
  height: 70px;
  width: 200px;
  border-radius: 5px;
  padding: 50px 10px;
  text-align: center;
  border: 1px solid #e8e6d9;
  position: relative; /* allow pseudo-element positioning */
}

.service-box img {
  display: flex;
  width: auto;
  height: 100%;
}

.service-box:not(:last-child)::after {
  content: "";
  position: absolute;
  right: -40px; /* pushes into the gap */
  top: 50%;
  transform: translateY(-50%);
  width: 25px; /* reduced size */
  height: 25px; /* reduced size */
  background: url("../lib/tiny mandala.png") no-repeat center;
  background-size: contain; /* scales image to fit box */
  pointer-events: none;
}

/* remove separator at end of each row */
.service-box:nth-child(4n)::after,
.service-box:nth-child(8n)::after {
  content: none;
}

/* Case Studies Section */
.case-studies-section {
  margin: 0 !important;
  padding: 10px 0;
  background-color: #ffff !important;
  position: relative;
}

.case-title {
  font-family: "Oleo Script Swash Caps", cursive;
  text-align: center;
  font-weight: 300;
  font-size: 5rem;
  margin-top: 10px;
  margin-bottom: 20px;
}

.case-grid {
  width: 90%;
  margin: auto;
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  height: auto;
  cursor: pointer;
}

.case-item {
  padding: 105px 25px;
  text-align: center;
  font-size: 1.2rem;
  font-weight: 500;
  line-height: 1.4;
  color: #fff;
  display: flex;
  align-items: center;
  justify-content: center;
  position: relative;
  overflow: hidden;
  transition: transform 0.25s ease;
}

.case-item::before {
  content: "";
  position: absolute;
  inset: 0;
  background-size: cover;
  background-position: center;
  background-repeat: no-repeat;
  opacity: 0;
  transition: opacity 0.28s ease;
  z-index: 0;
}

.case-item:hover::before {
  opacity: 0.42;
}

.case-item:hover {
  transform: scale(1.01);
}

.case-item > * {
  position: relative;
  z-index: 1;
}

.dark {
  background: #2c2421;
}
.green {
  background: #5e704e;
}
.yellow {
  background: #f2c77c;
  color: #1e1e1e;
}
.orange {
  background: #e19679;
  color: #1e1e1e;
}
.beige {
  background: #dbd4c7;
  color: #1e1e1e;
}
.sand {
  background: #f9f9f9;
  color: #1e1e1e;
}
.cream {
  background: #e9e2c9;
  color: #1e1e1e;
}
.pastel {
  background: #f2c77c;
  color: #1e1e1e;
}
.rose {
  background: #e19679;
  color: #1e1e1e;
}

/* Responsive */
/* Ensure case item hover images show on all screen sizes */
@media (min-width: 1200px) {
  .case-item:hover::before {
    opacity: 0.42 !important;
  }
}

@media (max-width: 850px) {
  .services-grid {
    grid-template-columns: repeat(2, 1fr);
  }

  .case-grid {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media (max-width: 550px) {
  .services-grid {
    grid-template-columns: repeat(1, 1fr);
  }

  .case-grid {
    grid-template-columns: repeat(1, 1fr);
  }
}

/* Additional mobile tweaks to prevent overlap and ensure readable spacing */
@media (max-width: 900px) {
  .hamburger {
    display: block;
  }
  /* keep logo visible; hide other items until menu opens */
  .nav-container ul {
    display: flex;
    gap: 18px;
    justify-content: flex-start;
    align-items: center;
  }
  .nav-container ul li:not(.logo) {
    display: none;
  }
  .nav-container ul.show {
    display: flex;
    position: absolute;
    left: 0;
    right: 0;
    top: 64px;
    flex-direction: column;
    gap: 12px;
    background: #efefe2;
    padding: 12px;
    z-index: 9998;
  }
  .nav-container ul.show li {
    display: flex;
  }
  .hamburger {
    position: absolute;
    right: 20px;
    top: 50%;
    transform: translateY(-50%);
    z-index: 10001;
  }
  .nav-container li.logo {
    margin: 0;
  }
  .case-item {
    padding: 40px 18px;
    font-size: 1rem;
  }
  .case-grid {
    gap: 18px;
    width: 95%;
  }
  .case-title {
    font-size: 2.2rem;
  }
  .case-item::before {
    transition: opacity 0.2s ease;
  }
}

@media (max-width: 480px) {
  .case-item {
    padding: 30px 12px;
    font-size: 0.95rem;
  }

  /* Hide mandala decorations beside service boxes on mobile */
  .service-box::after {
    display: none !important;
  }
}

/* CTA Section */
.cta {
  padding-top: 2rem;
  background-color: #ffffff;
  text-align: center;
  padding-bottom: 2rem;
}
.cta-text {
  margin-top: 40px;
}

.cta-text h2 {
  margin: 20px 0;
  font-size: 1.2rem;
}

.cta-text button {
  background-color: #2c2421;
  color: #fff;
  padding: 15px 60px;
  border: none;
  border-radius: 4px;
  font-size: 16px;
  cursor: pointer;
  transition: 0.3s;
}

.cta-text button:hover {
  background-color: #6a7b54;
}

/* Footer */
footer {
  background-color: #efefe2;
  padding: 30px 50px;
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  align-items: center;
  gap: 20px;
}

footer .socials a {
  margin-left: 15px;
  text-decoration: none;
  display: inline-block;
}

footer .socials a img {
  width: 32px;
  height: 32px;
  object-fit: contain;
  vertical-align: middle;
  transition: transform 0.3s ease;
}

/* Responsive Breakpoints */
@media (max-width: 1024px) {
  .hero {
    padding: 80px 40px;
  }
  .hero-text h1 {
    font-size: 40px;
  }
  .about-text h2 {
    font-size: 30px;
  }
}

@media (max-width: 768px) {
  header {
    padding: 45px 30px;
  }
  .hero {
    flex-direction: column;
    padding: 60px 30px;
  }
  .hero-text h1 {
    font-size: 32px;
  }
  .about-content {
    flex-direction: column;
    align-items: center;
  }
  .about-image img,
  .hero-image img {
    max-width: 100%;
  }
  .cta-text h2 {
    font-size: 28px;
  }
}

@media (max-width: 480px) {
  .hero-text h1 {
    font-size: 26px;
  }
  .cta-text button {
    padding: 12px 25px;
    font-size: 14px;
  }
  .nav-container ul {
    flex-direction: column;
    gap: 10px;
  }
}

@media (max-width: 1024px) {
  .hero {
    padding: 80px 40px;
  }
  .hero-text h1 {
    font-size: 40px;
  }
}

@media (max-width: 768px) {
  .hero {
    flex-direction: column;
    text-align: center;
    padding: 60px 30px;
  }
  .hero-text h1 {
    font-size: 32px;
  }
}

@media (max-width: 480px) {
  .hero-text h1 {
    font-size: 26px;
  }
}

/* Default: hide hamburger (desktop) */
.hamburger {
  display: none; /* hidden on desktop */
  font-size: 28px;
  font-weight: bold;
  cursor: pointer;
  color: #6a7b54;
}

/* Mobile: show hamburger, hide logo inside menu */
@media (max-width: 768px) {
  .hamburger {
    display: block; /* visible on mobile */
    position: absolute;
    right: 20px;
    top: 12px;
    z-index: 1001;
    cursor: pointer;
  }

  /* Hide logo inside dropdown */
  nav ul li.logo {
    display: none !important;
  }

  /* Show logo outside dropdown */
  .nav-container::before {
    content: "JayGovindraj";
    font-family: "Oleo Script Swash Caps", cursive;
    font-size: 22px;
    color: #6a7b54;
    position: absolute;
    left: 20px;
    top: 7px;
    z-index: 1000;
  }

  nav ul {
    display: none;
    flex-direction: column;
    position: absolute;
    top: 60px; /* just below header */
    left: 0;
    width: 100%;
    background: #efefe2;
    padding: 20px 0;
    gap: 15px;
    text-align: center;
    z-index: 999;
  }

  nav ul.show {
    display: flex;
  }

  nav ul li a {
    font-size: 15px;
  }
}

@media (max-width: 768px) {
  nav ul {
    display: none !important;
  }

  nav ul.show {
    display: flex !important;
  }
}
