/* === Root Variables === */
:root {
  --primary-color: #0d1b2a;     /* Biru tua */
  --accent-color: #fca311;      /* Oranye */
  --light-bg: #f8f9fa;
  --dark-text: #1a1a1a;
}

/* === Global === */
body {
  font-family: 'Inter', sans-serif;
  background-color: var(--light-bg);
  color: var(--dark-text);
  line-height: 1.6;
  margin: 0;
  padding: 0;
}

/* === Typography Helpers === */
.text-primary-custom {
  color: var(--primary-color) !important;
}
.text-accent-custom {
  color: var(--accent-color) !important;
}

/* === Background Helpers === */
.bg-primary-custom {
  background-color: var(--primary-color) !important;
}
.bg-accent-custom {
  background-color: var(--accent-color) !important;
}

/* === Navbar === */
.bg-primary-custom {
  background-color: rgba(13, 71, 161, 0.9); /* rgba untuk transparansi */
  backdrop-filter: blur(6px);               /* blur latar belakang agar terlihat elegan */
  transition: background-color 0.3s ease;
}

/* Shadow lembut */
.shadow-custom {
  box-shadow: 0 8px 20px rgba(182, 181, 181, 0.15);
}

/* Transisi dan underline interaktif */
.navbar-nav .nav-link {
  transition: all 0.3s ease;
  position: relative;
}

.navbar-nav .nav-link:hover::after,
.navbar-nav .nav-link.active::after {
  content: '';
  position: absolute;
  bottom: -4px;
  left: 0;
  width: 100%;
  height: 2px;
  background: #ffc107;
  transition: width 0.3s;
}

/* Efek hover pada brand */
.navbar-brand:hover {
  opacity: 0.85;
  transition: all 0.3s ease;
}

/* Hover tombol outline */
.btn-outline-light:hover {
  background-color: #ffffff;
  color: #0d47a1 !important;
}

.navbar-toggler {
  border: none;
}

.navbar-toggler-icon {
  background-image: url("data:image/svg+xml,%3csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 30 30'%3e%3cpath stroke='rgba(255,255,255, 1)' stroke-width='2' d='M4 7h22M4 15h22M4 23h22'/%3e%3c/svg%3e");
}

/* === Button Custom === */
.btn-custom-primary {
  background-color: var(--primary-color);
  color: white;
  border: none;
  border-radius: 30px;
  padding: 10px 24px;
  font-weight: 500;
  transition: 0.3s;
}
.btn-custom-primary:hover {
  background-color: #132c44;
  color: white;
}

.btn-custom-outline {
  border: 2px solid var(--accent-color);
  color: var(--accent-color);
  background: transparent;
  border-radius: 30px;
  padding: 10px 24px;
  font-weight: 500;
  transition: 0.3s;
}
.btn-custom-outline:hover {
  background: var(--accent-color);
  color: white;
}

.btn-accent-custom {
  background-color: var(--accent-color);
  color: white;
  border: none;
  border-radius: 30px;
  padding: 10px 24px;
  font-weight: 500;
  transition: 0.3s;
}
.btn-accent-custom:hover {
  background-color: #e68a00;
}

/* === Hero Section Modern === */
.hero-section {
  height: 100vh;
  display: flex;
  align-items: center;
  justify-content: center;
  background: linear-gradient(rgba(13, 27, 42, 0.7), rgba(13, 27, 42, 0.7)), 
              url('../img/animasibekerja.png') no-repeat center center;
  background-size: cover;
  color: white;
  text-align: center;
  padding: 80px 20px;
}

.hero-section h1 {
  font-weight: 700;
  font-size: 2.75rem;
  margin-bottom: 1rem;
}

.hero-section .text-accent-custom {
  color: var(--accent-color);
}

.hero-section p {
  font-size: 1.25rem;
  margin-bottom: 1.5rem;
}

.hero-section .btn {
  border-radius: 30px;
  padding: 12px 28px;
  font-size: 1rem;
}

/* Typing Effect Cursor */
.hero-section .cursor {
  display: inline-block;
  background-color: var(--accent-color);
  width: 2px;
  height: 2.5rem;
  margin-left: 6px;
  animation: blink 0.7s steps(1) infinite;
}
#typed-text {
  text-shadow: 2px 2px 6px rgba(0, 0, 0, 0.6);
}

@keyframes blink {
  50% {
    opacity: 0;
  }
}

/* Efek Stempel CLOSED */
.closed-card {
  position: relative !important; 
  opacity: 0.95;
}

.closed-overlay {
  position: absolute;
  inset: 0;
  background-color: rgba(255, 255, 255, 0.6);
  backdrop-filter: blur(2px);
  z-index: 5;
}

.closed-stamp {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%) rotate(-15deg);
  background-color: rgba(220, 53, 69, 0.85);
  color: white;
  font-weight: 800;
  font-size: 2rem;
  padding: 0.5rem 2rem;
  border: 3px solid white;
  border-radius: 10px;
  text-transform: uppercase;
  box-shadow: 0 0 10px rgba(0,0,0,0.3);
  z-index: 10;
  pointer-events: none;
}

/* === Responsive === */
@media (max-width: 768px) {
  .hero-section {
    height: auto;
    padding: 100px 20px;
  }

  .hero-section h1 {
    font-size: 2rem;
  }

  .hero-section p {
    font-size: 1rem;
  }

  .hero-section .btn {
    font-size: 0.95rem;
    padding: 10px 22px;
  }
}

/* === Section Titles === */
section h2 {
  color: var(--primary-color);
  font-weight: 700;
  margin-bottom: 1.5rem;
}
/* === Layanan === */
.layanan-card {
  transition: transform 0.3s ease, box-shadow 0.3s ease;
  border-radius: 12px;
  background: #ffffff;
}

.layanan-card:hover {
  transform: translateY(-8px);
  box-shadow: 0 10px 24px rgba(0, 0, 0, 0.06);
}

.icon-wrapper {
  width: 80px;
  height: 80px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 2rem;
}

.card .bg-light {
  background-color: #f8f9fa !important;
  box-shadow: inset 0 0 5px rgba(0, 0, 0, 0.05);
}

/* === Portofolio === */
.hover-card {
  transition: transform 0.3s ease, box-shadow 0.3s ease;
}
.hover-card:hover {
  transform: translateY(-5px);
  box-shadow: 0 0.75rem 1.25rem rgba(0,0,0,0.1);
}
.card img {
  transition: transform 0.4s ease;
}
.card:hover img {
  transform: scale(1.03);
}
.btn {
  transition: all 0.3s ease;
}
.btn:hover {
  transform: scale(1.05);
}

/* === Tutorial Pemesanan === */
.step-number {
    width: 60px;
    height: 60px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 20px;
    transition: all 0.3s ease-in-out;
  }

  .hover-step:hover .step-number {
    transform: scale(1.1);
    box-shadow: 0 0 0 4px rgba(0, 0, 0, 0.05);
  }

  .hover-step {
    transition: transform 0.3s ease;
  }

  .hover-step:hover {
    transform: translateY(-5px);
  }

/* === Kontak Form === */
.form-icon {
    position: absolute;
    right: 20px;
    top: 50%;
    transform: translateY(-50%);
    color: #adb5bd;
    pointer-events: none;
    transition: color 0.3s;
}

.form-control:focus + label + .form-icon,
.form-control:focus ~ .form-icon {
    color: #0d6efd;
}

.form-floating > .form-control,
.form-floating > textarea {
    padding-left: 1.75rem;
}

.form-floating label {
    padding-left: 1.75rem;
}

/* === Testimoni === */
.testimonial:hover {
    transform: translateY(-5px);
    transition: all 0.3s ease;
    box-shadow: 0 0.75rem 1.5rem rgba(0, 0, 0, 0.1);
  }

/* === Blog === */
.hover-blog {
    transition: transform 0.3s ease, box-shadow 0.3s ease;
  }

  .hover-blog:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 20px rgba(0, 0, 0, 0.1);
  }

  .card-title {
    transition: color 0.2s ease;
  }

  .card:hover .card-title {
    color: var(--bs-primary);
  }

/* Scrol top */
.scroll-top {
  position: fixed;
  visibility: hidden;
  opacity: 0;
  right: 15px;
  bottom: -15px;
  z-index: 99999;
  background-color: var(--accent-color);
  width: 44px;
  height: 44px;
  border-radius: 50px;
  transition: all 0.4s;
}

.scroll-top i {
  font-size: 24px;
  color: var(--contrast-color);
  line-height: 0;
}

.scroll-top:hover {
  background-color: color-mix(in srgb, var(--accent-color), transparent 20%);
  color: var(--contrast-color);
}

.scroll-top.active {
  visibility: visible;
  opacity: 1;
  bottom: 15px;
}

/* === Whatsapp === */
.wa-float {
  animation: floatUpDown 2s ease-in-out infinite;
  transition: transform 0.3s;
}

.wa-float:hover {
  transform: scale(1.1);
}

@keyframes floatUpDown {
  0%, 100% {
    transform: translateY(0px);
  }
  50% {
    transform: translateY(-6px);
  }
}

#wa-button {
  left: 20px;
  bottom: 20px;
  z-index: 1050;
  width: 45px;
  height: 45px;
  display: flex;
  align-items: center;
  justify-content: center;
}

/* === Responsive Utilities === */
@media (max-width: 768px) {
  #beranda {
    padding-top: 60px;
    padding-bottom: 60px;
  }
  .navbar-brand {
    font-size: 1.25rem;
  }
}
