@import url("https://fonts.googleapis.com/css2?family=Montserrat:ital,wght@0,100..900;1,100..900&display=swap");
@import url("https://fonts.googleapis.com/css2?family=Playwrite+US+Trad:wght@100..400&display=swap");

* {
  box-sizing: border-box;
}

body {
  font-family: "Montserrat", sans-serif;
  background-color: #ffffff;
  margin: 0;
}

.container {
  padding-left: 15px;
  padding-right: 15px;
  padding-bottom: 15px;
}

.text-outline {
  -webkit-text-stroke: 1px #ffffff;
}

.text-outline-hover {
  -webkit-text-stroke: 1px #ff0844;
}

/* Stair transition */
.stair-transition {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  width: 100vw;
  height: 100vh;
  display: flex;
  pointer-events: none;
  z-index: 40;
}

.stair-col {
  flex: 1;
  height: 100%;
  background: #000;
  position: relative;
  animation: stairDown 0.4s ease-in-out forwards;
}

.stair-col:nth-child(1) { animation-delay: 0.5s; }
.stair-col:nth-child(2) { animation-delay: 0.4s; }
.stair-col:nth-child(3) { animation-delay: 0.3s; }
.stair-col:nth-child(4) { animation-delay: 0.2s; }
.stair-col:nth-child(5) { animation-delay: 0.1s; }
.stair-col:nth-child(6) { animation-delay: 0s; }

@keyframes stairDown {
  from { top: 0; transform: translateY(0); }
  to { top: 100%; transform: translateY(0); }
}

@keyframes stairUp {
  from { top: 100%; transform: translateY(0); }
  to { top: 0; transform: translateY(0); }
}

.page-overlay {
  position: fixed;
  top: 0;
  left: 0;
  width: 100vw;
  height: 100vh;
  background: #ffffff;
  pointer-events: none;
  z-index: 35;
  animation: fadeOutOverlay 0.4s ease-in-out 1s forwards;
}

@keyframes fadeOutOverlay {
  to { opacity: 0; }
}

.page-content {
  animation: fadeInPage 0.4s ease-in 2.4s both;
}

.page-content.page-nav-enter {
  animation: fadeInPage 0.4s ease-in 0.2s both;
}

@keyframes fadeInPage {
  from { opacity: 0; }
  to { opacity: 1; }
}

/* Navigation active state */
.nav-link {
  text-decoration: none;
  color: inherit;
  capitalize: true;
  font-weight: 500;
  transition: color 0.3s;
}

.nav-link:hover {
  color: #ff0844;
}

.nav-link.active {
  color: #ff0844;
  border-bottom: 2px solid #ff0844;
}

/* Social icons */
.social-icon {
  width: 2.25rem;
  height: 2.25rem;
  border: 1px solid #ff0844;
  border-radius: 9999px;
  display: flex;
  justify-content: center;
  align-items: center;
  color: #ff0844;
  text-decoration: none;
  transition: all 0.5s;
}

.social-icon:hover {
  background: #ff0844;
  color: #a18cd1;
}

.social-icon-footer {
  width: 2rem;
  height: 2rem;
  border: 1px solid #fff;
  border-radius: 9999px;
  display: flex;
  justify-content: center;
  align-items: center;
  color: #fff;
  text-decoration: none;
  transition: all 0.3s;
}

.social-icon-footer:hover {
  background: #fff;
  color: #ff0844;
}

/* Button styles */
.btn-outline {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  white-space: nowrap;
  border-radius: 0.375rem;
  font-size: 0.875rem;
  font-weight: 500;
  border: 1px solid #e2e8f0;
  background: #ff0844;
  color: #fff;
  height: 2.75rem;
  padding: 0 2rem;
  text-transform: uppercase;
  cursor: pointer;
  text-decoration: none;
  transition: background 0.3s;
}

.btn-outline:hover {
  background: #f1f5f9;
  color: #0f172a;
}

/* Mobile nav */
.mobile-nav-overlay {
  position: fixed;
  inset: 0;
  z-index: 50;
  background: rgba(0, 0, 0, 0.5);
}

.mobile-nav-overlay.hidden {
  display: none;
}

.mobile-nav-panel {
  position: fixed;
  top: 0;
  right: 0;
  width: 300px;
  max-width: 85vw;
  height: 100vh;
  background: #fff;
  padding: 1.5rem;
  display: flex;
  flex-direction: column;
  animation: slideInRight 0.3s ease;
  overflow-y: auto;
}

@keyframes slideInRight {
  from { transform: translateX(100%); }
  to { transform: translateX(0); }
}

.mobile-nav-link {
  font-size: 1.25rem;
  text-transform: capitalize;
  text-decoration: none;
  color: #000;
  transition: color 0.3s;
}

.mobile-nav-link:hover,
.mobile-nav-link.active {
  color: #ff0844;
  border-bottom: 2px solid #ff0844;
}

/* WhatsApp dialog */
.wa-dialog {
  position: fixed;
  inset: 0;
  z-index: 50;
  display: flex;
  align-items: center;
  justify-content: center;
}

.wa-dialog.hidden {
  display: none;
}

.wa-dialog-backdrop {
  position: absolute;
  inset: 0;
  background: rgba(0, 0, 0, 0.3);
  backdrop-filter: blur(4px);
}

.wa-dialog-content {
  position: relative;
  width: 91.666667%;
  max-width: 28rem;
  margin: 0 1rem;
  background: #fff;
  border-radius: 0.5rem;
  box-shadow: 0 25px 50px -12px rgba(0, 0, 0, 0.25);
  padding: 1.5rem;
  animation: dialogIn 0.3s ease;
}

@keyframes dialogIn {
  from { opacity: 0; transform: scale(0.95); }
  to { opacity: 1; transform: scale(1); }
}

/* Home carousel */
.home-carousel {
  overflow: hidden;
  width: 100%;
}

.home-carousel-track {
  display: flex;
  transition: transform 0.5s ease;
  gap: 0.25rem;
}

.home-carousel-item {
  flex: 0 0 100%;
  padding: 0.25rem;
}

@media (min-width: 768px) {
  .home-carousel-item { flex: 0 0 50%; }
}

@media (min-width: 960px) {
  .home-carousel-item { flex: 0 0 33.333%; }
}

.carousel-card {
  border-radius: 0.75rem;
  border: 1px solid #e2e8f0;
  background: #fff;
  box-shadow: 0 1px 3px rgba(0, 0, 0, 0.1);
}

.carousel-card-content {
  display: flex;
  aspect-ratio: 1;
  align-items: center;
  justify-content: center;
  padding: 1.5rem;
}

.carousel-nav-btn {
  background: #ff0844;
  color: #a18cd1;
  font-size: 1.25rem;
  width: 2.5rem;
  height: 2.5rem;
  display: flex;
  justify-content: center;
  align-items: center;
  border: none;
  border-radius: 0.25rem;
  cursor: pointer;
  transition: background 0.3s;
}

.carousel-nav-btn:hover {
  background: #ffb199;
}

/* IT Shop swiper buttons */
.swiper-btn {
  background: #ff0844;
  color: #a18cd1;
  font-size: 32px;
  width: 54px;
  height: 54px;
  display: flex;
  justify-content: center;
  align-items: center;
  border: none;
  cursor: pointer;
  transition: background 0.3s;
}

.swiper-btn:hover {
  background: #ffb199;
}

/* Tabs - Digital Marketing */
.tabs-list {
  display: flex;
  flex-direction: column;
  width: 100%;
  max-width: 380px;
  margin: 0 auto;
  gap: 1.5rem;
}

@media (min-width: 1200px) {
  .tabs-list { margin: 0; }
}

.tab-trigger {
  display: inline-flex;
  align-items: center;
  width: 100%;
  background: #27272c;
  justify-content: center;
  white-space: nowrap;
  color: #fff;
  border-radius: 0.5rem;
  padding: 0.75rem;
  font-size: 1rem;
  font-weight: 500;
  border: none;
  cursor: pointer;
  transition: all 0.3s;
}

.tab-trigger.active {
  background: #ff0844;
  color: #a18cd1;
  font-weight: 700;
  box-shadow: 0 1px 2px rgba(0, 0, 0, 0.05);
}

.tab-content {
  display: none;
  width: 100%;
  min-height: 70vh;
}

.tab-content.active {
  display: block;
}

.tabs-wrapper {
  display: flex;
  flex-direction: column;
  gap: 60px;
}

@media (min-width: 1200px) {
  .tabs-wrapper {
    flex-direction: row;
  }
}

/* Service cards */
.service-card {
  background: #fff;
  border-radius: 1rem;
  overflow: hidden;
  box-shadow: 0 10px 15px -3px rgba(0, 0, 0, 0.1);
  border: 1px solid #f3f4f6;
  transition: all 0.3s;
}

.service-card:hover {
  box-shadow: 0 25px 50px -12px rgba(0, 0, 0, 0.25);
  transform: translateY(-0.5rem);
}

.service-card-img-wrap {
  position: relative;
  width: 100%;
  height: 240px;
  overflow: hidden;
}

.service-card-img-wrap img {
  width: 100%;
  height: 100%;
  object-fit: contain;
  transition: transform 0.5s;
}

.service-card:hover .service-card-img-wrap img {
  transform: scale(1.1);
}

.service-card-badge {
  position: absolute;
  top: 1rem;
  right: 1rem;
  background: rgba(255, 255, 255, 0.9);
  backdrop-filter: blur(4px);
  color: #1f2937;
  padding: 0.25rem 0.75rem;
  border-radius: 9999px;
  font-size: 0.875rem;
  font-weight: 500;
  box-shadow: 0 10px 15px -3px rgba(0, 0, 0, 0.1);
}

.scroll-area {
  overflow-y: auto;
  max-height: 800px;
}

.scroll-area-sm {
  max-height: 600px;
}

/* Product grid card */
.product-card {
  background: #fff;
  padding: 1rem;
  border-radius: 0.5rem;
  box-shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.1);
}

.product-card img {
  width: 100%;
  height: 10rem;
  object-fit: contain;
  border-radius: 0.375rem;
  margin-bottom: 0.75rem;
}

.btn-hubungi {
  display: block;
  width: 100%;
  text-align: center;
  background: #ffff;
  color: #000;
  border: 2px solid #000;
  padding: 0.5rem 1rem;
  border-radius: 0.375rem;
  text-decoration: none;
  transition: transform 0.5s;
}

.btn-hubungi:hover {
  transform: scale(1.05);
}

.btn-hubungi:active {
  transform: scale(0.95);
}

/* Hide stair after animation */
.stair-transition.done {
  display: none;
}

.page-overlay.done {
  display: none;
}
