* {
  box-sizing: border-box;
  font-family: "Poppins", sans-serif;
}

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

.hero-container {
  max-width: calc(100% - 40px);
  display: flex;
  gap: 8%;
}

.hero-sidebar {
  display: flex;
  flex-direction: column;
  gap: 50px;
}

.side-btn {
  width: 250px;
  height: 100px;
  padding: 30px 40px;
  border-radius: 40px;
  border: none;
  font-size: 16px;
  font-weight: 600;
  text-align: center;
  background: #ffffff;
  color: #000000;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: background 0.3s ease, color 0.3s ease;
}

.side-btn.active {
  width: 450px;
  height: 150px;
  margin-left: -100px;
  background: #000000;
  color: #ffffff;
  font-size: 24px;
  padding: 38px 46px;
  border: 20px solid #ffffff;
  border-left: none;
}

.hero-content {
  flex: 1;
  display: flex;
  flex-direction: column;
  align-items: center;
}

.cards-wrapper {
  position: relative;
  margin-top:20px;
  display: flex;
  gap: 35px;
}

.card {
  width: 270px;
  height: 450px;
  border-radius: 30px;
  overflow: hidden;
  background: #ffffff;
  transition: transform 0.3s ease, box-shadow 0.3s ease;
}

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

.card.active {
  transform: scale(1.08);
  box-shadow: 0 20px 40px rgba(0, 0, 0, 0.35);
  z-index: 2;
}

.card-title {
  margin-top: 20px;
  width: 270px;
  height: 40px;
  font-weight: 700;
  text-align: center;
}

.reel-controls {
  position: absolute;
  bottom: -30px;
  right: 140px;
  display: flex;
  gap: 30px;
}

.arrow-btn{
  border-radius: 50%;
  border: none;
  cursor: pointer;
}

.arrow-btn img{
  width: 50px;
  height: 50px;
}


/* LARGE DESKTOP (≤1400px) */
@media (max-width: 1400px) {
  .side-btn.active {
    width: 400px;
    height: 140px;
    font-size: 22px;
  }

  .cards-wrapper {
    gap: 30px;
  }
}

/* LAPTOP (≤1200px) */
@media (max-width: 1200px) {
  .hero-container {
    gap: 5%;
  }

  .side-btn {
    width: 220px;
    height: 90px;
    font-size: 15px;
  }

  .side-btn.active {
    width: 360px;
    height: 130px;
    font-size: 20px;
    margin-left: -70px;
  }

  .card {
    width: 240px;
    height: 400px;
  }

  .card-title {
    width: 240px;
  }
}

/* TABLET LANDSCAPE (≤992px) */
@media (max-width: 992px) {
  .hero-container {
    flex-direction: column;
    gap: 40px;
  }

  .hero-sidebar {
    flex-direction: row;
    gap: 20px;
    overflow-x: auto;
    padding-bottom: 10px;
  }

  .side-btn {
    min-width: 200px;
    height: 80px;
    font-size: 14px;
    border-radius: 30px;
  }

  .side-btn.active {
    width: 240px;
    height: 100px;
    margin-left: 0;
    font-size: 18px;
    border: 10px solid #fff;
  }

  .cards-wrapper {
    justify-content: center;
    flex-wrap: wrap;
    margin-bottom: 60px;
  }

  .reel-controls {
    left: 50%;
    right: auto;
    transform: translateX(-50%);
    bottom: -15px;
    justify-content: center;
    gap: 24px;
    margin-top: 30px;
  }

  .arrow-btn img {
    width: 44px;
    height: 44px;
  }
}

/* TABLET PORTRAIT (≤768px) */
@media (max-width: 768px) {

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

  .cards-wrapper {
    gap: 25px;
    justify-content: center;
  }

  .card {
    width: 220px;
    height: 360px;
  }

  .card-title {
    width: 220px;
    font-size: 14px;
  }
}

/* MOBILE (≤576px) */
@media (max-width: 576px) {

  .hero-content {
    position: relative;
  } 

  .hero-sidebar {
    flex-direction: column;
    align-items: center;
    gap: 16px;
  }

  .side-btn,
  .side-btn.active {
    width: 100%;
    max-width: 320px;
    height: auto;
    padding: 18px;
    font-size: 16px;
    margin-left: 0;
    border-radius: 20px;
    border: none;
  }

  .cards-wrapper {
    flex-direction: column;
    align-items: center;
  }

  .card {
    width: 100%;
    max-width: 320px;
    height: 420px;
  }

  .card-title {
    width: 100%;
    max-width: 320px;
    font-size: 15px;
  }

  .reel-controls {
    position: absolute;
    left: 50%;
    right: auto;
    transform: translateX(-50%);
    bottom: -15px;
    margin-top: 40px;
    display: flex;
    justify-content: center;
    gap: 18px;
  }

  .arrow-btn img {
    width: 40px;
    height: 40px;
  }
}

/* SMALL MOBILE (≤400px) */
@media (max-width: 400px) {
  .hero {
    padding: 30px 15px;
  }

  .card {
    height: 380px;
  }

  .side-btn {
    font-size: 14px;
  }

  .reel-controls {
    bottom: -13px;
    margin-top: 20px;
    gap: 16px;
  }

  .arrow-btn img {
    width: 36px;
    height: 36px;
  }
}

/* iPAD / TABLET FIX (1024px) */
@media (max-width: 1100px) {
  .hero-container {
    flex-direction: column;
    align-items: center;
  }

  .hero-sidebar {
    flex-direction: row;
    justify-content: center;
    flex-wrap: wrap;
    gap: 20px;
  }

  .side-btn,
  .side-btn.active {
    width: 240px;
    height: 90px;
    margin-left: 0;
    font-size: 16px;
    border-radius: 30px;
  }

  .side-btn.active {
    border: 10px solid #fff;
  }

  .cards-wrapper {
    margin-top: 10px;
    justify-content: center;
    flex-wrap: wrap;
    gap: 25px;
    padding-bottom: 60px;
  }

  .reel-controls {
    position: absolute;
    left: 50%;
    bottom: 20px;
    transform: translateX(-50%);
    display: flex;
    justify-content: center;
    gap: 16px;
    z-index: 10;
  }

  .arrow-btn img {
    width: 36px;
    height: 36px;
  }
}

/* NEST HUB MAX / COMPACT DESKTOP FIX */
@media (max-width: 1320px) {
  .hero-container {
    max-width: 100%;
    justify-content: center;
    gap: 40px;
  }

  .hero-sidebar {
    gap: 30px;
  }

  .side-btn {
    width: 220px;
    height: 85px;
    font-size: 15px;
  }

  .side-btn.active {
    width: 300px;
    height: 110px;
    margin-left: 0;
    font-size: 18px;
    border: 12px solid #fff;
  }

  .cards-wrapper {
    flex-wrap: wrap;
    justify-content: center;
    gap: 25px;
    max-width: 820px;
  }

  .card {
    width: 240px;
    height: 380px;
  }

  .card-title {
    width: 240px;
    font-size: 14px;
  }

  .reel-controls {
    margin-top: 20px;
    gap: 16px;
  }

  .arrow-btn img {
    width: 36px;
    height: 36px;
  }
}


/* iPad Mini (768px – 820px) */
@media (min-width: 768px) and (max-width: 820px) {
  .reel-controls {
    left: 50%;
    right: auto;
    bottom: -320px;
    transform: translateX(-50%);
    gap: 20px;
    justify-content: center;
  }
}


/* iPad Air (821px – 900px) */
@media (min-width: 821px) and (max-width: 900px) {
  .reel-controls {
    left: 50%;
    right: auto;
    bottom: 18px;
    transform: translateX(-50%);
    gap: 22px;
    justify-content: center;
  }
}


/* iPad Pro (901px – 1100px) */
@media (min-width: 901px) and (max-width: 1100px) {
  .reel-controls {
    left: 50%;
    right: auto;
    margin-bottom: 750px;
    transform: translateX(-50%);
    gap: 24px;
    justify-content: center;
  }
}


/* Surface Pro 7 (912px – 1024px) */
@media (min-width: 912px) and (max-width: 1024px) {
  .reel-controls {
    left: 50%;
    right: auto;
    bottom: 420px;
    transform: translateX(-50%);
    gap: 24px;
    justify-content: center;
  }
}


/* ASUS ZenBook Fold (1024px – 1280px) */
@media (min-width: 1024px) and (max-width: 1280px) {
  .reel-controls {
    right: 50%;
    left: auto;
    bottom: 22px;
    transform: translateX(50%);
    gap: 26px;
  }
}


/* Google Nest Hub (1024px – 1280px) */
@media (min-width: 1024px) and (max-width: 1280px) {
  .reel-controls {
    right: 50%;
    left: auto;
    bottom: -300px;
    transform: translateX(50%);
    gap: 22px;
  }
}


/* Nest Hub Max (1281px – 1400px) */
@media (min-width: 1281px) and (max-width: 1400px) {
  .reel-controls {
    right: 50%;
    left: auto;
    bottom: 0;
    transform: translateX(50%);
    gap: 24px;
  }
}
