/* Global */
html {
  scroll-behavior: smooth;
}
html, body {
  margin: 0;
  padding: 0;
  overflow-x: hidden;
  font-family: 'Sora', sans-serif;
  box-sizing: border-box;
}
*, *::before, *::after {
  box-sizing: inherit;
}
a {
  text-decoration: none;
  color: #bad4b1;
  font-weight: 600;
}

/* Navbar */
.navbar {
  position: fixed;
  top: 0;
  width: 100%;
  background: rgba(42, 41, 62, 0.7);
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 20px 28px;
  z-index: 1000;
}
.logo {
  width: 140px;
}
.menu-toggle {
  display: none;
  flex-direction: column;
  cursor: pointer;
  padding: 8px 10px;
  position: fixed;
  top: 18px;
  right: 20px;
  z-index: 1010;
}
.bar {
  width: 25px;
  height: 2px;
  margin: 3px 0;
  background-color: #bad4b1;
}
.menu {
  list-style: none;
  display: flex;
  align-items: center;
  padding: 0;
  margin-right: 60px;
}
.menu li {
  margin: 0 16px;
}
.menu a {
  color: white;
  font-weight: 600;
}
.menu a:hover {
  color: #bad4b1;
}

/* Hero */
.background-wrapper {
  position: relative;
  width: 100vw;
  height: 100vh;
  overflow: hidden;
}
.background-image {
  width: 100%;
  height: 100%;
  background-image: url('img/background-image.jpg');
  background-position: right center;
  background-repeat: no-repeat;
  background-size: cover;
  position: absolute;
}
.new-design-container {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  z-index: 10;
  width: 320px;
  max-width: 90%;
}
.new-design-img {
  width: 100%;
  height: auto;
}

/* Popup banner */
.popup-banner {
  width: 965px;
  height: 108px;
  background: transparent;
  position: absolute;
  bottom: 20px;
  left: 50%;
  transform: translateX(-50%);
  display: flex;
  justify-content: center;
  align-items: center;
  z-index: 1000;
}
.popup-banner img {
  width: 100%;
  height: auto;
}
.close-btn {
  position: absolute;
  top: 50%;
  right: 15px;
  transform: translateY(-50%);
  font-size: 28px;
  cursor: pointer;
  color: white;
  z-index: 1100;
}

/* Content sections */
.content {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  align-items: center;
  width: 100%;
}
.text-content2 {
  max-width: 600px;
  margin: 20px auto;
  line-height: 1.5;
  font-size: 1rem;
}
#vision .right-content img {
  position: relative;
  left: 100px;
}

/* Work grid */
.work-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 10px;
  justify-content: center;
  align-items: center;
  padding: 60px 0;
  max-width: 850px;
  margin: 0 auto;
}
.work-item {
  display: flex;
  justify-content: center;
}
.work-item img {
  max-width: 250px;
  width: 100%;
  height: auto;
  display: block;
}

/* Mobile collage custom order */
@media only screen and (max-width: 768px) {
  .work-grid {
    grid-template-columns: repeat(2, 1fr);
    gap: 10px;
    max-width: 95%;
    padding: 40px 0;
  }
  .work-item:nth-child(1) { order: 1; }
  .work-item:nth-child(2) { order: 2; }
  .work-item:nth-child(4) { order: 3; } /* Creative 4 */
  .work-item:nth-child(3) { order: 4; } /* Creative 3 */
  .work-item:nth-child(5) { order: 5; }
  .work-item:nth-child(6) { order: 6; }
}

/* Services */
.services-grid {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  gap: 28px;
}
.service-item {
  flex: 1;
  min-width: 220px;
  max-width: 340px;
  margin: 18px auto;
  text-align: center;
}
.service-item img {
  max-width: 300px;
  width: 100%;
  height: auto;
}

/* Contact Us — 3 rows layout */
#contact.section {
  padding: 120px 0;
}
.contact-content {
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
}
.contact-content h2 {
  font-size: 2rem;
  margin-bottom: 20px;
}
.contact-content p {
  margin: 8px 0;
  font-size: 1.1rem;
}
.contact-content a {
  color: #bad4b1;
  text-decoration: none;
  font-weight: 600;
}
.contact-content a:hover {
  text-decoration: underline;
}
@media only screen and (max-width: 768px) {
  #contact.section {
    padding: 80px 0;
  }
}

/* Mobile Nav */
@media only screen and (max-width: 768px) {
  .background-image {
    background-image: url('img/background-image-mobile.jpg') !important;
    background-position: center center;
  }
  #vision .right-content img {
    position: static !important;
    width: 100% !important;
    height: auto !important;
    margin-top: 20px; /* ✅ Added breathing space on top for mobile */
  }
  .text-content2 {
    max-width: 320px !important;
  }
  .menu-toggle {
    display: flex;
  }
  .menu {
    position: fixed;
    top: 60px;
    right: 0;
    background-color: rgba(42, 41, 62, 0.95);
    height: 100vh;
    width: 200px;
    flex-direction: column;
    align-items: flex-start;
    padding: 40px 20px;
    margin: 0;
    transform: translateX(100%);
    transition: transform 0.3s ease-in-out;
  }
  .menu.active {
    transform: translateX(0);
  }
  .menu li {
    margin: 20px 0;
    width: 100%;
  }
  .menu a {
    color: #bad4b1;
    font-size: 18px;
    width: 100%;
    padding: 8px 0;
  }
}

/* Responsive Ad Banner — Mobile Fix */
@media only screen and (max-width: 768px) {
  .popup-banner {
    width: 100% !important;
    height: auto !important;
    bottom: 10px;
  }

  .popup-banner img {
    width: 100% !important;
    height: auto !important;
  }

  /* Adjusted close button position (shifted down) */
  .close-btn {
    right: 10px;
    top: 20px; /* previously 5px, now shifted lower */
    font-size: 24px;
  }
}
