.headphones-container {
  position: absolute;
  top: -12vw;
  right: -16vw;
  z-index: 400;
}

.headphones-container img {
  filter: drop-shadow(-1.4vw 1.2vw 0.5vw rgba(0, 0, 0, 0.7));
  rotate: 30deg;
  width: 32vw;
}

/* Laptop background image container */
.laptop-bg {
  position: relative;
  top: 8vw;
  width: 100vw;
  max-width: 100vw;
  aspect-ratio: 16/9;
  background-image: url('../../asset/images/services/laptop-image.webp');
  filter: drop-shadow(-1.4vw 1.2vw 0.5vw rgba(0, 0, 0, 0.7));
  background-size: contain;
  background-repeat: no-repeat;
  background-position: center;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: flex-end;
  z-index: 1000;
  font-family: "Montserrat", sans-serif;
  scale: 1.8;
}

.laptop-image {
  width: 100%;
  height: auto;
  display: block;
  pointer-events: none;
  user-select: none;
  filter: drop-shadow(-1.4vw 1.2vw 0.5vw rgba(0, 0, 0, 0.7));
}

/* App window styles */
.app-window {
  position: absolute;
  top: 23%;
  left: 50%;
  width: 24vw;
  background: #fff;
  border-radius: 0.3vw;
  box-shadow: 0 0.8vw 1.6vw rgba(0, 0, 0, 0.5);
  display: flex;
  flex-direction: column;
  opacity: 0;
  pointer-events: none;
  transition:
    opacity 0.25s cubic-bezier(.4, 0, .2, 1),
    transform 0.35s cubic-bezier(.4, 0, .2, 1);
  overflow: hidden;
}

.app-window.visible {
  opacity: 1;
  pointer-events: auto;
  display: flex;
  transform: translateX(-50%) scale(1.04);
  animation: mac-window-pop 0.32s cubic-bezier(.4, 0, .2, 1);
}

@keyframes mac-window-pop {
  0% {
    opacity: 0;
    transform: translateX(-50%) scale(0.85);
  }

  60% {
    opacity: 1;
    transform: translateX(-50%) scale(1.08);
  }

  100% {
    opacity: 1;
    transform: translateX(-50%) scale(1.04);
  }
}

.app-window.closing {
  opacity: 0;
  pointer-events: none;
  transform: translateX(-50%) scale(0.9);
  transition:
    opacity 0.22s cubic-bezier(.4, 0, .2, 1),
    transform 0.22s cubic-bezier(.4, 0, .2, 1);
}

.app-header {
  background: linear-gradient(180deg, #ececec 80%, #d6d6d6 100%);
  color: #222;
  border-bottom: 1px solid #ccc;
  font-size: 1.6vh;
  border-radius: 0.6vw 0.6vw 0 0;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding-left: 1vw;
}

.close-btn {
  background: transparent;
  border: none;
  color: #c10d4d;
  font-size: 1.5vw;
  font-weight: bold;
  cursor: pointer;
  margin-left: 1vw;
  transition: color 0.2s;
  line-height: 1;
  width: 2vw;
  height: 2vw;
  display: flex;
  align-items: center;
  justify-content: center;
}

.close-btn:hover {
  color: #fff;
  background: #c10d4d;
  border-radius: 0.3vw;
}

.app-content {
  padding: 1vh 0.8vw;
  color: #222;
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  background: linear-gradient(135deg, #f8f8f8 80%, #e8e8ef 100%);
  box-shadow: 0 1vw 2vw rgba(0, 0, 0, 0.08), 0 0 0.2vw #aaa;
  border: 1.5px solid #e0e0e0;
  border-radius: 0.6vw;
  flex: 1 1 auto;
  max-height: 100%;
  overflow-y: auto;
}

/* Service Title */
.app-content .service-title-row {
  display: flex;
  align-items: center;
  gap: 0.3vw;
  margin-bottom: 0.5vh;
  width: 100%;
}

.app-content .service-main-icon {
  width: 1.5vw;
  height: 1.5vw;
  border-radius: 0.2vw;
  margin-right: 0.2vw;
  object-fit: contain;
  flex-shrink: 0;
}

.app-content .service-title-text {
  font-size: 0.6vw;
  font-weight: bold;
  color: #3a3a7a;
  letter-spacing: 0.02em;
  word-break: break-word;
  flex: 1;
}

.app-content .service-title,
.app-content .service-title::before {
  display: none;
}

/* Service Description */
.app-content .service-desc {
  font-size: 0.5vw;
  /* smaller desc */
  color: #444;
  margin-bottom: 1.2vh;
  line-height: 1.5;
  word-break: break-word;
  width: 100%;
}

/* Features List */
.app-content .features-list {
  list-style: none;
  padding: 0;
  margin: 0;
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 0.6vw;
  width: 100%;
}

.app-content .features-list li {
  font-size: 0.5vw;
  background: #fff;
  border-radius: 0.4vw;
  box-shadow: 0 0.1vw 0.4vw rgba(0, 0, 0, 0.07);
  padding: 0.4vh 1vw;
  display: flex;
  align-items: center;
  position: relative;
  transition: background 0.2s;
}

.app-content .features-list li::before {
  display: none;
}

.app-content .feature-icon {
  font-size: 1vw;
  /* smaller icon */
  margin-right: 0.5vw;
  display: inline-block;
  width: 1.7vw;
  text-align: center;
}

.service-cta-btn {
  margin-top: 1vh;
  align-self: flex-end;
  background: linear-gradient(90deg, #3a3a7a 60%, #27c93f 100%);
  color: #fff;
  font-size: 0.4vw;
  font-weight: 600;
  padding: 0.4vw 0.4vw;
  border-radius: 0.5vw;
  text-decoration: none;
  box-shadow: 0 0.2vw 0.7vw rgba(60, 60, 120, 0.10);
  transition: background 0.2s, transform 0.15s;
  letter-spacing: 0.03em;
}

.service-cta-btn:hover {
  background: linear-gradient(90deg, #27c93f 40%, #3a3a7a 100%);
  transform: scale(1.05);
}

/* Dock styles */
.dock {
  position: absolute;
  bottom: 46.5%;
  background-color: #2a2a2a;
  border-radius: 2vw;
  padding: 0.6vw 1vw 0.6vw 1vw;
  box-shadow: 0 0.2vw 1vw rgba(0, 0, 0, 0.085);
  z-index: 20;
  width: max-content;
  scale: 0.9;
}

.dock ul {
  display: flex;
  gap: 0.8vw;
  margin: 0;
  padding: 0;
  list-style: none;
}

.dock li {
  cursor: pointer;
  transition: transform 0.2s;
  position: relative;
  display: flex;
  flex-direction: column;
  align-items: center;
  z-index: 1;
}

.dock li.active {
  transform: scale(1.2);
  transition: transform 0.18s cubic-bezier(.4, 0, .2, 1), box-shadow 0.18s;
  background-color: rgba(255, 255, 255, 0.5);
  border-radius: 2rem;
  padding: 0.1vw;
  z-index: 10;
}

.dock li:hover {
  z-index: 20;
}

.dock img {
  width: 1.5vw;
  height: 1.5vw;
}

.dock-label {
  display: none;
  position: absolute;
  top: -2vw;
  left: 50%;
  transform: translateX(-50%);
  background: #222;
  color: #fff;
  padding: 0.3vw 0.8vw;
  border-radius: 0.5vw;
  font-size: 0.5vw;
  white-space: nowrap;
  pointer-events: none;
  z-index: 1001;
  opacity: 0.95;
}

.dock li:hover .dock-label {
  display: block;
}

.dock li.active .dock-label {
  display: block;
  background: #27c93f;
  color: #fff;
  font-weight: bold;
  box-shadow: 0 0 0.7vw #27c93f55;
  animation: dockLabelPop 0.32s cubic-bezier(.4, 0, .2, 1);
}

@keyframes dockLabelPop {
  0% {
    opacity: 0;
    transform: translateX(-50%) scale(0.7);
  }

  60% {
    opacity: 1;
    transform: translateX(-50%) scale(1.15);
  }

  100% {
    opacity: 1;
    transform: translateX(-50%) scale(1);
  }
}

/* Always use 2 columns for features-list, even on mobile */
.app-content .features-list {
  grid-template-columns: 1fr 1fr !important;
}

@media (min-width: 992px) and (max-width: 1199px) {
  .laptop-bg {
    scale: 2.5;
    left: 8vw;
  }

  .app-header {
    font-size: 0.6rem;
  }

  .app-content .service-desc {
    margin-bottom: 0.3vh;
  }
}

@media (min-width: 768px) and (max-width: 991px) {
  .laptop-bg {
    scale: 2.5;
    left: 8vw;
  }

  .app-header {
    font-size: 0.5rem;
  }

  .app-content {
    padding-top: 0.2vw;
  }

  .app-content .service-desc {
    margin-bottom: 0.3vh;
  }
}

@media (max-width: 575px) {
  .headphones-container {
    top: -24vw;
    right: -20vw;
  }

  .headphones-container img {
    rotate: 30deg;
    width: 64vw;
  }

  .laptop-bg {
    scale: 3.5;
    left: 0;
    top: -12vw;
  }

  .app-header {
    font-size: 0.2rem;
  }

  .app-content {
    padding: 0.3vw;
    padding-top: 0.2vw;
  }

  .app-content .features-list li {
    padding: 0.1vw;
  }

  .app-content .service-desc {
    margin-bottom: 0.3vh;
  }

  .service-cta-btn {
    margin-top: 0.4vw;
  }

}

@media (max-height: 575px) and (orientation: landscape) {
  .laptop-bg {
    scale: 1.6;
    left: 0;
    top: 10vw;
  }
}