body {
  overflow-x: hidden;
}

.home-hero {
  background: rgba(186, 210, 238, 1);
  border-radius: 0 0 40px 40px;
  margin: 0 20px 20px;
}

.home-hero-container {
  max-width: calc(100% - 40px);
  margin: 0 auto;
  padding: 30px 20px 80px 20px;
  display: flex;
  align-items: stretch;
  gap: 60px;
}

.home-hero-left {
  width: 50%;
  flex: 1;
  display: flex;
  flex-direction: column;
  justify-content: flex-start;
}

.home-hero-right {
  flex: 1;
  display: flex;
  justify-content: center;
  align-items: flex-end;
  position: relative;
}

.home-hero-left h1 {
  font-size: 100px;
  font-weight: 700;
  color: #fff;
  line-height: 1.1;
}

.hero-cta {
  width: 300px;
  margin: 30px 0;
  border-radius: 50px;
  padding: 5px 8px;
  border: none;
  background: #fff;
  display: inline-flex;
  align-items: center;
  justify-content: space-between;
  cursor: pointer;
}

.hero-cta span {
  background: #000;
  color: #fff;
  font-size: 20px;
  width: 40px;
  right: 10px;
  height: 40px;
  padding: 6px;
  border-radius: 50%;
}

.hero-description {
  font-size: 18px;
  color: #4a4a4a;
  max-width: 500px;
  margin-bottom: 35px;
}

.hero-stats {
  display: flex;
  gap: 18px;
}

.stat-card {
  background: #fff;
  padding: 12px;
  border-radius: 14px;
  width: 150px;
  height: 160px;
  display: flex;
  flex-direction: column;
}

.stat-card1 {
  background: #fff;
  padding: 12px;
  border-radius: 14px;
  width: 190px;
  height: 160px;
  display: flex;
  flex-direction: column;
}

.stat-card h3,
.stat-card1 h3 {
  font-size: 30px;
  font-weight: 600;
  margin: 0;
}

.stat-card span,
.stat-card1 span {
  font-size: 18px;
  font-weight: 500;
}

.stat-card p,
.stat-card1 p {
  font-size: 13px;
  color: #666;
  margin-top: auto;
}

.home-hero-right {
  flex: 1;
  position: relative;
  display: flex;
}

.hero-img-wrap {
  height: 100%;
  width: 100%;
  display: flex;
  justify-content: center;
  align-items: flex-end;
  padding-bottom: 0px;
}

.hero-person {
  display: block;
  width: 100%;
  max-width: 530px;
  height: 570px;
  transform: translateX(-260px);
  margin-bottom: -80px;
}

/* FLOATING CARDS */
.floating-card {
  position: absolute;
  background: #fff;
  width: 170px;
  height: 170px;
  border-radius: 22px;
  padding: 22px;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  overflow: hidden;
}

.floating-card span {
  display: flex;
  justify-content: center;
  align-items: center;
}

.floating-card span img {
  width: 50px;
  height: 50px;
}

.floating-card p {
  font-size: 15px;
  font-weight: 500;
  text-align: center;
  margin-top: 10px;
  line-height: 1.2;
  color: #000;
  text-decoration: none;
}

.floating-card .arrow {
  position: absolute;
  font-size: 25px;
  bottom: -25px;
  right: -18px;
  background: #000;
  color: #fff;
  width: 60px;
  height: 60px;
  border-radius: 50%;
  padding-left: 10px;
  display: flex;
  cursor: pointer;
}

.team-card {
  bottom: 32%;
  right: 0%;
}

.services-card {
  bottom: 4%;
  right: 24%;
}

/* Our Services section*/
.services-section {
  padding: 60px 0;
}

.services-container {
  max-width: 100%;
  margin: auto;
  padding: 0 60px;
}

.services-container h2 {
  font-size: 42px;
  font-weight: 700;
}

.services-sub {
  color: #666;
  margin-bottom: 40px;
}

.services-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  border-radius: 30px;
  overflow: hidden;
  border: 1px solid rgba(106, 106, 106, 1);
}

.service-card {
  position: relative;
  padding: 24px;
  min-height: 260px;
  border: 1px solid rgba(106, 106, 106, 1);
  background: #fff;
}

.service-card:nth-child(4n) {
  border-right: none;
}

.text-card {
  transition: transform 0.35s ease;
}

.text-card:hover {
  transform: translateY(-8px);
  border-color: none;
}

.text-card h3 {
  font-size: 18px;
  margin-bottom: 15px;
  transition: color 0.4s ease;
}

.text-card:hover h3 {
  color: #000;
}

.text-card:hover .tags span {
  color: #000;
  border-color: #000;
}

.tags {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.tags span {
  font-size: 14px;
  padding: 6px 10px;
  border-radius: 20px;
  border: 1px solid rgba(106, 106, 106, 1);
  color: rgba(106, 106, 106, 1);
  background: #fff;
}

.image-card {
  padding: 0;
  overflow: hidden;
}

.image-card img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.45s cubic-bezier(0.4, 0, 0.2, 1);
}

.image-card::after {
  content: "";
  position: absolute;
  inset: 0;
  background: rgba(0, 0, 0, 0.15);
  opacity: 0;
  transition: opacity 0.4s ease;
}

.image-card:hover img {
  transform: scale(1.12);
}

.image-card:hover::after {
  opacity: 1;
}

.services-section .arrow-btn {
  position: absolute;
  bottom: 20px;
  right: 20px;
  width: 44px;
  height: 44px;
  border-radius: 50%;
  border: none;
  background: #000;
  color: #fff;
  font-size: 22px;
  cursor: pointer;
}

/* Who We Help Section */
.who-section {
  padding-top: 20px;
  padding-bottom: 80px;
  margin-top: -180px;
}

.who-container {
  max-width: 100%;
  margin: auto;
  padding: 0 40px;
  display: flex;
  align-items: center;
  gap: 60px;
}

.who-image {
  position: relative;
  width: 32%;
  height: 420px;
  display: flex;
  align-items: flex-end;
}

.who-image img {
  width: 530px;
  height: auto;
  position: absolute;
  bottom: 0;
  left: 0;
  transform: translateY(210px);
  z-index: 2;
}

.who-content {
  width: 75%;
  transform: translateY(160px);
  z-index: 4;
}

.who-content h2 {
  margin-left: 30%;
  font-size: 50px;
  font-weight: 700;
}

.subtitle {
  margin-left: 30%;
  color: #666;
  margin-bottom: 60px;
}

.who-cards {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 20px;
}

.who-card {
  background: rgba(186, 210, 238, 0.5);
  padding: 15px;
  border-radius: 25px;
  font-family: "DM Sans";
  display: flex;
  flex-direction: column;
  min-height: 240px;
  transition:
    transform 0.35s ease,
    box-shadow 0.35s ease;
}

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

.who-card .num {
  font-size: 40px;
  font-weight: bold;
  color: #000;
}

.who-card h3 {
  font-size: 20px;
  margin: 15px 0 10px;
  transition: color 0.3s ease;
}

.who-card p {
  margin-top: auto;
  font-size: 14px;
  line-height: 1.2;
  color: #555;
}

/* About Us section */
.about-wrap {
  position: relative;
  z-index: 15;
  padding: 120px 0;
  overflow-x: hidden;
  font-family: "Segoe UI", sans-serif;
}

.about-box {
  max-width: 1300px;
  margin: auto;
  background: rgba(186, 210, 238, 1);
  border-radius: 40px;
  padding: 80px 90px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  position: relative;
  overflow: visible;
}

.about-text {
  width: 45%;
}

.about-text h2 {
  font-size: 50px;
  margin-bottom: 25px;
  color: #fff;
}

.about-text p {
  font-size: 18px;
  line-height: 1.7;
  color: rgba(106, 106, 106, 1);
}

.about-btn {
  margin-top: 30px;
  display: inline-flex;
  align-items: center;
  gap: 20px;
  padding: 9px 16px;
  border-radius: 999px;
  border: none;
  background: #fff;
  color: rgba(106, 106, 106, 1);
  cursor: pointer;
  font-size: 14px;
}

.about-btn span {
  background: #000;
  color: #fff;
  width: 40px;
  height: 40px;
  border-radius: 50%;
  display: grid;
  place-items: center;
}

.about-visual {
  width: 45%;
  position: relative;
  overflow: visible;
  display: flex;
  justify-content: center;
  align-items: center;
}

.circle {
  position: absolute;
  border-radius: 50%;
  animation: pulse 4s ease-in-out infinite;
}

.c1 {
  width: 480px;
  height: 480px;
  background: rgba(255, 255, 255, 0.35);
}

.c2 {
  width: 400px;
  height: 400px;
  background: rgba(255, 255, 255, 0.45);
  animation-delay: 0.8s;
}

.c3 {
  width: 320px;
  height: 320px;
  background: rgba(255, 255, 255, 0.6);
  animation-delay: 1.6s;
}

.about-person {
  position: absolute;
  bottom: -360px;
  height: 660px;
  width: auto;
  z-index: 10;
}

/* Animation */
@keyframes pulse {
  0% {
    transform: scale(1);
    opacity: 0.9;
  }
  50% {
    transform: scale(1.06);
    opacity: 1;
  }
  100% {
    transform: scale(1);
    opacity: 0.9;
  }
}

/* Portfolic Section */
.portfolio {
  position: relative;
  z-index: 5;
  margin-left: 60px;
  margin-top: -50px;
}

.portfolio h2 {
  font-size: 50px;
}

.portfolio p {
  color: #555;
  font-size: 18px;
}

.portfolio-slider {
  width: 100%;
  margin-top: 40px;
  overflow: hidden;
}

.portfolio-track {
  display: flex;
  gap: 24px;
  transition: transform 0.4s ease;
}

.portfolio-card {
  width: 220px;
  display: flex;
  flex-direction: column;
  align-items: center;
  flex-shrink: 0;
  transition:
    width 0.35s ease,
    transform 0.35s ease;
}

.image-wrap {
  width: 100%;
  height: 420px;
  border-radius: 28px;
  overflow: hidden;
}

.portfolio-card img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.portfolio-slider .portfolio-label {
  margin-top: 14px;
  font-size: 16px;
  font-weight: bold;
  color: #000;
  text-align: center;
  display: block;
  white-space: nowrap;
}

.portfolio-card:hover {
  width: 260px;
  transform: translateY(-2px);
}

.portfolio .arrow-btn {
  position: absolute;
  right: 40px;
  top: 60%;
  transform: translateY(-50%);
  width: 44px;
  height: 44px;
  border-radius: 50%;
  border: 2px solid white;
  background: #000;
  color: #fff;
  cursor: pointer;
}

/* Testimonial Section */
.testimonial-section {
  padding: 80px 80px;
  font-family: "Segoe UI", sans-serif;
}

/* Header */
.section-header {
  text-align: center;
  margin-bottom: 60px;
}

.section-header h2 {
  font-size: 50px;
}

.section-header p {
  color: #555;
  font-size: 18px;
}

/* GRID LAYOUT */
.testimonial-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 40px;
}

/* CARD */
.testimonial-card {
  padding: 30px;
  border-radius: 20px;
  border: 1px solid rgba(186, 210, 238, 1);
  display: flex;
  flex-direction: column;
  height: 100%;
}

/* TEXT */
.text {
  color: #555;
  line-height: 2;
  font-size: 18px;
  flex-grow: 1;
  font-family: "DM Sans", sans-serif;
}

/* DIVIDER */
.divider {
  height: 1px;
  background: rgba(186, 210, 238, 1);
  margin: 24px 0 16px;
}

/* AUTHOR */
.author {
  display: flex;
  align-items: center;
  gap: 16px;
}

.author img {
  width: 50px;
  height: 50px;
  border-radius: 50%;
}

.author h4 {
  font-size: 17px;
  font-weight: 600;
  margin: 0;
}

.author span {
  font-size: 15px;
  color: #777;
}

/* Large desktops (1440px and above) */
@media (min-width: 1440px) {
  .testimonial-section {
    padding: 100px 140px;
  }

  .testimonial-grid {
    gap: 50px;
  }

  .section-header h2 {
    font-size: 56px;
  }

  .section-header p {
    font-size: 20px;
  }
}

/* Laptops / small desktops (1200px - 1439px) */
@media (max-width: 1439px) {
  .testimonial-section {
    padding: 80px 100px;
  }
}

/* Tablets landscape (992px - 1199px) */
@media (max-width: 1199px) {
  .testimonial-section {
    padding: 70px 60px;
  }

  .testimonial-grid {
    gap: 30px;
  }

  .section-header h2 {
    font-size: 44px;
  }

  .text {
    font-size: 15px;
  }
}

/* Tablets portrait (768px - 991px) */
@media (max-width: 991px) {
  .testimonial-section {
    padding: 60px 40px;
  }

  .testimonial-grid {
    grid-template-columns: 1fr;
    gap: 28px;
  }

  .testimonial-card {
    padding: 28px;
  }

  .section-header h2 {
    font-size: 40px;
  }

  .section-header p {
    font-size: 16px;
  }
}

/* Large mobiles (576px - 767px) */
@media (max-width: 767px) {
  .testimonial-section {
    padding: 50px 24px;
  }

  .testimonial-card {
    padding: 24px;
    border-radius: 16px;
  }

  .text {
    font-size: 14px;
    line-height: 1.8;
  }

  .author img {
    width: 46px;
    height: 46px;
  }

  .author h4 {
    font-size: 15px;
  }

  .author span {
    font-size: 13px;
  }
}

/* Small mobiles (up to 575px) */
@media (max-width: 575px) {
  .testimonial-section {
    padding: 40px 16px;
  }

  .section-header h2 {
    font-size: 34px;
  }

  .section-header p {
    font-size: 15px;
  }

  .testimonial-card {
    padding: 20px;
  }

  .text {
    font-size: 13px;
  }

  .divider {
    margin: 20px 0 14px;
  }
}

@media (max-width: 1200px) {
  .home-hero-container {
    gap: 40px;
    padding: 30px 30px 60px;
  }

  .home-hero-left h1 {
    font-size: 60px;
  }

  .hero-person {
    transform: translateX(-180px);
    height: 520px;
  }

  .services-grid {
    grid-template-columns: repeat(2, 1fr);
  }

  .who-container {
    flex-direction: column;
    gap: 40px;
  }

  .who-content {
    width: 100%;
    transform: none;
    text-align: center;
  }

  .who-content h2,
  .subtitle {
    margin-left: 0;
  }

  .who-image img {
    position: static;
    transform: none;
    width: 380px;
  }

  .who-cards {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media (max-width: 992px) {
  .home-hero-container {
    flex-direction: column;
    text-align: center;
  }

  .home-hero-left,
  .home-hero-right {
    width: 100%;
  }

  .hero-description {
    margin-left: auto;
    margin-right: auto;
  }

  .hero-cta {
    margin-left: auto;
    margin-right: auto;
  }

  .hero-person {
    transform: none;
    margin-bottom: -40px;
  }

  .hero-stats {
    justify-content: center;
  }

  .who-section {
    margin-top: 0;
  }

  .who-container {
    padding: 0 20px;
  }

  .who-image {
    order: 3;
    justify-content: center;
  }

  .who-content {
    order: 1;
  }

  .who-cards {
    order: 4;
  }

  .about-box {
    flex-direction: column;
    padding: 60px 30px;
    text-align: center;
  }

  .about-text,
  .about-visual {
    width: 100%;
  }

  .about-btn {
    margin: 40px auto 0;
  }

  .about-person {
    position: static;
    height: 480px;
    margin-top: 40px;
  }

  .portfolio {
    margin: 40px 20px;
  }
}

@media (max-width: 767px) {
  body {
    overflow-x: hidden;
  }

  .home-hero-container {
    flex-direction: column;
    text-align: center;
    padding-bottom: 0;
  }

  .hero-cta {
    margin-left: auto;
    margin-right: auto;
  }

  .home-hero-left {
    order: 1;
  }

  .home-hero-left h1 {
    font-size: 50px;
  }

  .hero-description {
    font-size: 16px;
    margin-left: auto;
    margin-right: auto;
  }

  .hero-stats {
    order: 2;
    flex-direction: column;
    align-items: center;
    gap: 14px;
  }

  .home-hero-right {
    order: 3;
    position: static;
    display: flex;
    flex-direction: column;
    align-items: flex-end;
    padding-bottom: 0;
    gap: 18px;
    margin-top: 20px;
  }

  .floating-card {
    position: relative;
    overflow: hidden;
    width: 100%;
    max-width: 200px;
    margin: 5px auto;
  }

  .floating-card .arrow {
    position: absolute;
    padding-left: 10px;
    padding-top: 3px;
    bottom: -16px;
    right: -10px;
    width: 48px;
    height: 48px;
    font-size: 20px;
    border-radius: 50%;
    background: #000;
    display: flex;
    z-index: 5;
  }

  .team-card {
    order: 1;
  }

  .services-card {
    order: 2;
  }

  .team-card,
  .services-card {
    right: auto;
    bottom: auto;
  }

  .hero-img-wrap {
    order: 3;
    display: flex;
    justify-content: center;
    align-items: flex-end;
    width: 100%;
    margin-top: 12px;
  }

  .hero-person {
    transform: none;
    height: auto;
    max-width: 340px;
    margin: 0 auto;
  }

  .services-container {
    padding: 0 20px;
  }

  .services-grid {
    display: grid;
    grid-template-columns: 1fr;
    border-radius: 24px;
  }

  .service-card {
    min-height: auto;
    border-right: none;
    border-left: none;
  }

  .text-card {
    padding: 24px;
    height: 240px;
  }

  .image-card {
    height: 250px;
  }

  .image-card img {
    height: 100%;
    width: 100%;
    object-fit: cover;
  }

  .service-card:nth-child(4n) {
    border-right: 1px solid rgba(106, 106, 106, 1);
  }

  .who-cards {
    grid-template-columns: 1fr;
  }

  .who-card {
    text-align: center;
  }

  .who-section {
    padding-bottom: 0;
  }

  .who-image {
    margin-bottom: 0;
  }

  .about-section {
    margin-top: 0;
    padding-bottom: 0;
    padding-top: 0;
  }

  .who-image {
    width: 100%;
    height: auto;
    position: static;
    display: flex;
    justify-content: center;
    align-items: center;
  }

  .who-image img {
    position: static;
    transform: none;
    width: 100%;
    max-width: 300px;
    height: auto;
  }

  .circle.c1 {
    width: 320px;
    height: 320px;
  }
  .circle.c2 {
    width: 260px;
    height: 260px;
  }
  .circle.c3 {
    width: 200px;
    height: 200px;
  }

  .about-btn {
    gap: 14px;
  }

  .portfolio-slider {
    overflow-x: auto;
    scroll-snap-type: x mandatory;
  }

  .portfolio-track {
    scroll-snap-align: start;
  }

  .portfolio-slider::-webkit-scrollbar {
    display: none;
  }
}

@media (max-width: 480px) {
  .home-hero-left h1 {
    font-size: 26px;
  }

  .hero-cta {
    width: 100%;
  }

  .about-box {
    padding: 40px 20px;
  }

  .portfolio h2 {
    font-size: 32px;
  }
}

@media (max-width: 1100px) and (max-height: 650px) {
  .home-hero-right {
    display: grid;
    grid-template-columns: 1fr 1fr;
    align-items: end;
    gap: 20px;
    width: 100%;
  }

  .floating-cards {
    grid-column: 1;
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 10px;
    align-self: center;
    max-width: 150px;
  }

  .floating-card {
    position: relative;
    width: 100%;
    height: 160px;
    margin: 0;
  }

  .team-card,
  .services-card {
    position: relative;
    width: 150px;
    height: 165px;
    inset: 0;
  }

  .hero-img-wrap {
    grid-column: 2;
  }

  .hero-person {
    height: 400px;
    width: 100%;
    max-width: 400px;
    transform: translateX(-70px);
    margin-bottom: -50px;
  }
}

/* HERO – NEST HUB MAX (1280 x 800) and ipad pro */
@media (max-width: 1300px) and (min-height: 750px) and (max-height: 850px) {
  .home-hero-container {
    display: grid;
    grid-template-columns: 1.5fr 0.8fr;
    gap: 40px;
    align-items: center;
  }

  .home-hero-left {
    width: 100%;
  }

  .home-hero-left h1 {
    font-size: 64px;
    line-height: 1.1;
  }

  .hero-description {
    max-width: 100%;
  }

  .hero-stats {
    justify-content: flex-start;
    gap: 14px;
  }

  .home-hero-right {
    display: contents;
  }

  .floating-cards {
    display: grid;
    grid-template-columns: repeat(2, 170px);
    gap: 0;
    justify-content: flex-start;
    margin-top: 5px;
  }

  .floating-card,
  .team-card,
  .services-card {
    position: relative;
    width: 170px;
    height: 170px;
    inset: 0;
  }

  .services-card {
    margin-left: -560px;
  }

  .hero-img-wrap {
    grid-column: 2;
    display: flex;
    justify-content: center;
    align-items: flex-end;
  }

  .hero-person {
    transform: none;
    margin: 0;
    height: 650px;
    max-width: 700px;
    margin-bottom: -290px;
  }
}

/* iPad Pro (11" & 12.9") Hero + Testimonial */
@media (min-width: 1024px) and (max-width: 1366px) and (min-height: 1024px) {
  .home-hero-container {
    display: grid;
    grid-template-columns: 1.4fr 0.9fr;
    gap: 40px;
    align-items: center;
  }

  .home-hero-left {
    width: 100%;
  }

  .home-hero-left h1 {
    font-size: 60px;
    line-height: 1.1;
  }

  .hero-description {
    max-width: 100%;
  }

  .hero-stats {
    justify-content: flex-start;
    gap: 14px;
  }

  .home-hero-right {
    display: contents;
  }

  .floating-cards {
    display: inline-grid;
    grid-template-columns: repeat(2, 170px);
    gap: 0;
    width: max-content;
    margin-top: 10px;
  }

  .floating-card,
  .team-card,
  .services-card {
    position: relative;
    width: 170px;
    height: 170px;
    margin: 0;
    inset: 0;
    transform: none;
  }

  .services-card {
    margin-left: -350px;
  }

  .hero-img-wrap {
    grid-column: 2;
    display: flex;
    justify-content: center;
    align-items: flex-end;
  }

  .hero-person {
    transform: none;
    margin: 0;
    height: 600px;
    max-width: 650px;
    margin-bottom: -270px;
  }
}

/* iPad Mini | iPad Air | Surface Pro 7 | Zenbook Fold */
@media (min-width: 700px) and (max-width: 1024px) {
  .home-hero-container {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 24px;
  }

  .hero-cta {
    margin-left: 0;
  }

  .home-hero-left {
    grid-column: 1;
    display: flex;
    align-items: left;
    text-align: left;
  }

  .hero-stats {
    display: flex;
    gap: 14px;
  }

  .home-hero-right {
    display: contents;
  }

  .floating-cards {
    display: flex;
    gap: 16px;
    margin-top: 16px;
  }

  .floating-card {
    width: 140px;
    height: 140px;
    position: relative;
    inset: 0;
    transform: none;
  }

  .services-card {
    margin-left: -380px;
  }

  .hero-img-wrap {
    grid-column: 2;
    display: flex;
    justify-content: center;
    width: 100%;
  }

  .hero-person {
    width: 400px;
    height: auto;
    margin-top: -200px;
    margin-left: -240px;
    margin-right: -60px;
    margin-bottom: -225px;
    transform: none;
  }
}
