/* ROOT VARIABLES */
:root {
  --primary-color: #1c3e5b;
  --accent-color: #e67a3c;
  --text-light: #ffffff;
  --text-dark: #1c1c1c;
  --shadow-light: rgba(0, 0, 0, 0.06);
  --shadow-dark: rgba(0, 0, 0, 0.12);
  --nav-height: 100px;
  --transition-fast: 0.3s ease;
  --transition-slow: 0.9s cubic-bezier(0.22, 1, 0.36, 1);
}

/* RESET */
* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

html {
  font-family: "Inter", Arial, sans-serif;
  scroll-behavior: smooth;
}

body {
  background-color: var(--primary-color);
  color: var(--text-light);
}

/* ACCESSIBILITY: Focus styles and reduced motion support */
*:focus {
  outline: 2px solid var(--accent-color);
  outline-offset: 2px;
}

.skip-link {
  position: absolute;
  top: -40px;
  left: 6px;
  background: var(--primary-color);
  color: var(--text-light);
  padding: 8px;
  text-decoration: none;
  z-index: 10000;
  transition: top var(--transition-fast);
}

.skip-link:focus {
  top: 6px;
}

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after {
    animation: none !important;
    transition: none !important;
  }
  .hero-slide {
    transition: none;
    transform: none;
  }
  .hero-text {
    animation: none;
  }
  .hero-cta,
  .learn-more-btn {
    animation: none;
    transition: none;
  }
}

/* NAVBAR */
.nav-wrapper {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: var(--nav-height);
  z-index: 9999;
  background: rgba(22, 34, 44, 0.85);
  border-bottom: 1px solid rgba(255, 255, 255, 0.12);
}

@supports (backdrop-filter: blur(14px)) {
  .nav-wrapper {
    background: rgba(22, 34, 44, 0.45);
    backdrop-filter: blur(14px);
  }
}

.navbar {
  width: 100%;
  height: 100%;
  padding: 0 clamp(24px, 5vw, 80px);
  display: flex;
  justify-content: space-between;
  align-items: center;
}

/* LOGO */
.logo {
  font-size: 17px;
  font-weight: 500;
  letter-spacing: 0.6px;
  color: var(--text-light);
  opacity: 0.95;
}

.logo img {
  width: clamp(120px, 15vw, 180px);
  height: auto;
  max-width: 50%;
  display: block;
  transition: opacity var(--transition-fast);
}

.logo img:hover {
  opacity: 1;
}

/* HAMBURGER MENU */
.hamburger {
  display: none; /* Hidden by default, shown in mobile */
  flex-direction: column;
  justify-content: space-around;
  width: 30px;
  height: 24px;
  background: transparent;
  border: none;
  cursor: pointer;
  padding: 0;
  z-index: 10001;
}

.hamburger-line {
  width: 100%;
  height: 3px;
  background: var(--text-light);
  border-radius: 2px;
  transition: all var(--transition-fast);
  transform-origin: center;
}

.hamburger.active .hamburger-line:nth-child(1) {
  transform: rotate(45deg) translate(6px, 6px);
}

.hamburger.active .hamburger-line:nth-child(2) {
  opacity: 0;
}

.hamburger.active .hamburger-line:nth-child(3) {
  transform: rotate(-45deg) translate(6px, -6px);
}

/* NAV MENU */
.nav-menu {
  display: flex;
}

.nav-links {
  list-style: none;
  display: flex;
  gap: 44px;
  align-items: center;
}

.nav-links a {
  text-decoration: none;
  color: var(--text-light);
  font-size: 16px;
  font-weight: 500;
  opacity: 0.9;
  transition: opacity var(--transition-fast), background-color var(--transition-fast);
  padding: 5px 10px;
  border-radius: 4px;
}

.nav-links a:hover {
  opacity: 1;
  background-color: rgba(255, 255, 255, 0.1);
}

.btn-outline {
  padding: 10px 22px;
  border: 1px solid rgba(255, 255, 255, 0.6);
  border-radius: 8px;
}

/* RESPONSIVE: Hamburger Menu for Mobile */
@media (max-width: 768px) {
  .navbar {
    padding: 20px 24px;
  }

  .hamburger {
    display: flex;
  }

  .nav-menu {
    position: fixed;
    top: var(--nav-height);
    left: 0;
    width: 100%;
    height: calc(100vh - var(--nav-height));
    background: rgba(28, 62, 91, 0.95);
    backdrop-filter: blur(10px);
    flex-direction: column;
    justify-content: center;
    align-items: center;
    transform: translateX(100%);
    transition: transform var(--transition-fast);
    z-index: 10000;
  }

  .nav-menu.active {
    transform: translateX(0);
  }

  .nav-links {
    flex-direction: column;
    gap: 40px;
    text-align: center;
  }

  .nav-links a {
    font-size: 18px;
    padding: 10px 20px;
  }

  .btn-outline {
    padding: 12px 24px;
  }
}

/* Sisanya tetap sama seperti sebelumnya */
/* HERO, ABOUT, SERVICES, dll. */

/* HERO SECTION */
.hero {
  min-height: 100vh;
  padding-top: var(--nav-height);
  position: relative;
  overflow: hidden;
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--text-light);
}

/* HERO SLIDES */
.hero-slides {
  position: absolute;
  inset: 0;
  z-index: 0;
}

.hero-slide {
  position: absolute;
  inset: 0;
  background-size: cover;
  background-position: center center;
  background-repeat: no-repeat;
  opacity: 0;
  transform: scale(1.08);
  transition: opacity 1.5s ease, transform 7s ease; /* Synced with JS timing */
}

.hero-slide::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(
    to bottom,
    rgba(28, 62, 91, 0.35),
    rgba(28, 62, 91, 0.55)
  );
}

.hero-slide.active {
  opacity: 1;
  transform: scale(1);
}

/* HERO CONTENT */
.hero-content {
  position: relative;
  z-index: 2;
  width: 100%;
  height: 100%;
  display: flex;
  align-items: center;
  justify-content: center;
}

.hero-content-inner {
  max-width: 1440px;
  padding: 0 48px;
  text-align: center;
  width: 100%;
}

/* HERO TEXT */
.hero-text {
  position: absolute;
  inset: 0;
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  opacity: 0;
  pointer-events: none;
}

.hero-text.active {
  opacity: 1;
  animation: textIn 2s ease forwards;
}

.hero-text.exit {
  animation: textOut 0.8s ease forwards;
}

/* HERO TYPOGRAPHY */
.hero-text h1 {
  font-size: clamp(2.3rem, 5vw, 3.3rem);
  font-weight: 700;
  line-height: 1.15;
  margin-bottom: 18px;
}

.hero-text p {
  max-width: 620px;
  margin: 0 auto;
  font-size: 1.05rem;
  line-height: 1.6;
  opacity: 0.9;
}

/* HERO TEXT ANIMATION */
@keyframes textIn {
  0% {
    opacity: 0;
    transform: translateY(-60px);
  }
  40% {
    opacity: 0;
  }
  100% {
    opacity: 1;
    transform: translateY(0);
  }
}

@keyframes textOut {
  from {
    opacity: 1;
    transform: translateY(0);
  }
  to {
    opacity: 0;
    transform: translateY(40px);
  }
}

/* HERO CTA */
.hero-cta {
  margin-top: 32px;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 14px;
  opacity: 0;
  transform: translateY(20px);
  pointer-events: none;
}

.hero-text.active .hero-cta {
  opacity: 1;
  transform: translateY(0);
  pointer-events: auto;
  animation: ctaIn 2s ease forwards;
}

.hero-text.exit .hero-cta {
  animation: ctaOut 0.8s ease forwards;
}

/* BUTTON */
.learn-more-btn {
  background: transparent;
  border: 1.5px solid var(--text-light);
  color: var(--text-light);
  padding: 12px 30px;
  font-size: 0.95rem;
  font-weight: 500;
  letter-spacing: 0.6px;
  text-transform: uppercase;
  cursor: pointer;
  border-radius: 4px;
  transition: background var(--transition-fast), transform var(--transition-fast), box-shadow var(--transition-fast);
  min-height: 44px; /* Touch target for accessibility */
}

.learn-more-btn:hover {
  background: rgba(255, 255, 255, 0.12);
  transform: translateY(-2px);
  box-shadow: 0 10px 28px rgba(0, 0, 0, 0.35);
}

/* LOTTIE ARROW */
.learn-more-arrow dotlottie-wc {
  width: 150px;
  height: 150px;
  opacity: 0.85;
}

/* CTA ANIMATION */
@keyframes ctaIn {
  0% {
    opacity: 0;
    transform: translateY(24px);
  }
  40% {
    opacity: 0;
  }
  100% {
    opacity: 1;
    transform: translateY(0);
  }
}

@keyframes ctaOut {
  from {
    opacity: 1;
    transform: translateY(0);
  }
  to {
    opacity: 0;
    transform: translateY(20px);
  }
}

/* HERO CONTROLS */
.hero-controls {
  position: absolute;
  right: 40px;
  top: 50%;
  transform: translateY(-50%);
  z-index: 3;
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.hero-dot {
  width: 10px;
  height: 10px;
  border-radius: 50%;
  border: 1.5px solid var(--text-light);
  background: transparent;
  cursor: pointer;
  transition: background var(--transition-fast), transform var(--transition-fast), box-shadow var(--transition-fast);
  min-height: 33px; /* Touch target */
  min-width: 33px; /* Ensure clickable area */
}

.hero-dot:hover {
  background: rgba(255, 255, 255, 0.25);
  transform: scale(1.12);
}

.hero-dot.active {
  background: var(--text-light);
  box-shadow: 0 0 0 6px rgba(255, 255, 255, 0.18);
}

/* ABOUT PREVIEW SECTION */
.about-preview {
  padding: 120px 8%;
  background-color: var(--primary-color);
}

.about-container {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 48px;
  max-width: 1100px;
  margin: 0 auto;
  align-items: center;
}

.about-image-single {
  position: relative;
  border-radius: 26px;
  overflow: hidden;
  max-width: 480px;
}

.about-image-single::before {
  content: "";
  position: absolute;
  inset: -16px;
  border-radius: 32px;
  border: 3px solid rgba(127, 182, 255, 0.25);
  z-index: 0;
}

.about-image-single img {
  width: 100%;
  height: auto;
  display: block;
  position: relative;
  z-index: 1;
  border-radius: 22px;
}

.about-label {
  color: var(--accent-color);
  font-weight: 600;
  letter-spacing: 0.5px;
  margin-bottom: 12px;
  display: inline-block;
}

.about-content h2 {
  font-size: clamp(2.2rem, 3vw, 3rem);
  line-height: 1.15;
  margin-bottom: 20px;
}

.about-content h2 span {
  color: var(--accent-color);
}

.about-content p {
  max-width: 500px;
  line-height: 1.7;
  opacity: 0.9;
  margin-bottom: 30px;
}

.about-stats {
  display: flex;
  gap: 40px;
  margin-bottom: 35px;
}

.about-stats > div {
  display: flex;
  flex-direction: column;
}

.stat-number {
  display: flex;
  align-items: baseline;
}

.stat-number strong {
  font-size: 1.6rem;
  font-weight: 700;
}

.stat-number .suffix {
  font-size: 1.6rem;
  font-weight: 700;
  margin-left: 2px;
}

.about-stats span {
  font-size: 0.9rem;
  opacity: 0.8;
}

.btn-primary {
  display: inline-block;
  padding: 14px 34px;
  border-radius: 30px;
  background: linear-gradient(135deg, #f79760, var(--accent-color));
  color: var(--text-light);
  font-weight: 600;
  text-decoration: none;
  transition: transform var(--transition-fast), box-shadow var(--transition-fast);
  min-height: 44px; /* Touch target */
}

.btn-primary:hover {
  transform: translateY(-3px);
  box-shadow: 0 12px 30px rgba(0, 0, 0, 0.35);
}

/* SERVICES SECTION */
.services-section {
  position: relative;
  padding: 140px 6vw 160px;
  background: #f4f6fb;
  overflow: hidden;
  color: var(--text-dark);
}

.services-bg {
  position: absolute;
  inset: 0;
  background: url("../assets/images/backgroundservices.png") center/cover no-repeat;
  z-index: 0;
}

.services-container {
  position: relative;
  z-index: 2;
  max-width: 1280px;
  margin: auto;
  text-align: center;
}

.services-badge {
  display: inline-block;
  padding: 8px 18px;
  font-size: 14px;
  font-weight: 600;
  color: var(--primary-color);
  background: var(--text-light);
  border-radius: 50px;
  margin-bottom: 20px;
}

.services-title {
  font-size: clamp(32px, 4vw, 46px);
  font-weight: 800;
  margin-bottom: 80px;
}

.services-title span {
  color: var(--primary-color);
}

.services-grid {
  display: grid;
  grid-template-columns: repeat(5, 1fr);
  gap: 28px;
}

.service-card {
  position: relative;
  background: var(--text-light);
  border-radius: 22px;
  padding: 70px 26px 42px;
  box-shadow: 0 25px 50px var(--shadow-light);
  transition: transform var(--transition-slow), box-shadow var(--transition-slow);
  overflow: visible;
}

.service-card:hover {
  transform: translateY(-14px);
  box-shadow: 0 40px 80px var(--shadow-dark);
}

.service-bg-hover {
  position: absolute;
  inset: 0;
  background-size: cover;
  background-position: center;
  opacity: 0;
  z-index: 0;
  transition: opacity var(--transition-slow);
  border-radius: 22px;
  overflow: hidden;
}

.service-card:hover .service-bg-hover {
  opacity: 1;
}

.service-card:hover h3,
.service-card:hover p {
  color: var(--text-light);
}

.service-icon {
  width: 64px;
  height: 64px;
  background: linear-gradient(135deg, var(--primary-color), var(--primary-color));
  display: flex;
  align-items: center;
  justify-content: center;
  position: absolute;
  top: -32px;
  left: 50%;
  transform: translateX(-50%) rotate(45deg);
  border-radius: 14px;
  z-index: 3;
}

.service-icon dotlottie-wc {
  width: 42px;
  height: 42px;
  transform: rotate(-45deg);
}

.service-card:hover .service-icon {
  transform: translateX(-50%) rotate(45deg) scale(1.1);
}

.service-card h3,
.service-card p,
.service-btn {
  position: relative;
  z-index: 2;
  color: var(--text-dark);
}

.service-card h3 {
  font-size: 18px;
  font-weight: 700;
  margin-bottom: 14px;
  color: var(--primary-color);
}

.service-card p {
  font-size: 14px;
  line-height: 1.7;
  color: #555;
}

.service-btn {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  margin-top: 18px;
  font-weight: 700;
  color: var(--text-light);
  text-decoration: none;
  opacity: 0;
  transform: translateY(8px);
  pointer-events: none;
  transition: opacity var(--transition-slow), transform var(--transition-slow);
}

.service-card:hover .service-btn {
  opacity: 1;
  transform: translateY(0);
  pointer-events: auto;
}

.service-btn:hover {
  color: var(--accent-color);
}

.service-btn .arrow {
  transition: transform var(--transition-fast);
}

.service-card:hover .service-btn .arrow {
  transform: translateX(4px);
}

/* SCROLL ANIMATION */
.reveal {
  transform: translateY(clamp(24px, 6vh, 60px));
  opacity: 0;
  transition: transform var(--transition-slow), opacity var(--transition-slow);
}

.reveal.active {
  transform: translateY(0);
  opacity: 1;
}

/* TESTIMONIALS SECTION */
.testimonials-section {
  padding: 140px 6vw;
  text-align: center;
  background: radial-gradient(circle at top right, rgba(255, 255, 255, 0.04), transparent 60%), var(--primary-color);
}

.testimonials-container {
  max-width: 1300px;
  margin: 0 auto;
}

.testimonials-badge {
  display: inline-block;
  color: var(--accent-color);
  font-weight: 600;
  letter-spacing: 2px;
  margin-bottom: 18px;
}

.testimonials-title {
  font-size: 38px;
  font-weight: 700;
  margin-bottom: 80px;
  color: var(--text-light);
}

.testimonials-title span {
  color: var(--accent-color);
}

.testimonials-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 40px;
}

.testimonial-card {
  position: relative;
  background: var(--text-light);
  color: var(--text-dark);
  padding: 50px 36px 40px;
  border-radius: 22px;
  box-shadow: 0 30px 60px var(--shadow-light);
  transition: transform var(--transition-slow), box-shadow var(--transition-slow);
}

.testimonial-card:hover {
  transform: translateY(-12px);
  box-shadow: 0 40px 80px var(--shadow-dark);
}

.testimonial-quote {
  position: absolute;
  top: -22px;
  left: 30px;
  background: var(--accent-color);
  color: var(--text-light);
  width: 50px;
  height: 50px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
}

.testimonial-quote img {
  width: 27px;
  height: 27px;
}

.testimonial-stars {
  color: var(--accent-color);
  font-size: 26px;
  margin-bottom: 18px;
}

.testimonial-card p {
  font-size: 15px;
  line-height: 1.8;
  color: #555;
  margin-bottom: 28px;
}

.testimonial-author strong {
  display: block;
  font-size: 16px;
  color: #0a1f44;
}

.testimonial-author span {
  font-size: 13px;
  color: var(--accent-color);
}

/* INFO FOOTER SECTION */
.info-footer {
  position: relative;
  padding: 120px 6vw;
  background: linear-gradient(to bottom, 
    rgba(38, 84, 124, 0) 10%, 
    rgba(28, 62, 91, 0.35) 50%,
    rgba(28, 62, 91, 0.75) 90%, 
    var(--primary-color) 100%), 
    url("../assets/images/footer-bg.png") center/cover no-repeat;
  color: var(--text-light);
  overflow: hidden;
}

.info-footer::before {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 2px;
  background: linear-gradient(to right, transparent, rgba(255, 255, 255, 0.25), transparent);
  z-index: 1;
}

.info-footer-overlay {
  position: absolute;
  inset: 0;
  z-index: 0;
}

.info-footer-container {
  position: relative;
  z-index: 1;
  max-width: 1280px;
  margin: auto;
  display: grid;
  grid-template-columns: 1.4fr 1fr 1fr 1fr;
  gap: 60px;
}

.info-col.brand h3 {
  font-size: 22px;
  margin-bottom: 12px;
}

.footer-logo img {
  width: 70px;
  margin-bottom: 16px;
}

.info-col p {
  font-size: 14px;
  opacity: 0.9;
  line-height: 1.7;
}

.open-hours {
  margin-top: 20px;
  font-size: 13px;
  opacity: 0.85;
}

.open-hours span {
  display: block;
  margin-top: 4px;
}

.info-col h4 {
  font-size: 16px;
  margin-bottom: 18px;
  position: relative;
}

.info-col h4::after {
  content: "";
  width: 36px;
  height: 2px;
  background: var(--text-light);
  display: block;
  margin-top: 8px;
}

.info-col ul {
  list-style: none;
  padding: 0;
  text-decoration: none;
}

.info-col ul li {
  font-size: 14px;
  margin-bottom: 10px;
  opacity: 0.85;
}

.info-col ul li a {
  color: var(--text-light);
  text-decoration: none;
  transition: opacity var(--transition-fast);
}

.info-col ul li a:hover {
  opacity: 1;
}

.contact-info li {
  line-height: 1.6;
}

.contact-info a:hover {
  opacity: 1;
  text-decoration: underline;
  background-color: rgba(255, 255, 255, 0.1);
}

.site-footer address,
.info-footer address {
  font-style: normal;
}

/* SITE FOOTER */
.site-footer {
  position: relative;
  background: url("../assets/images/footer-bg.png") center/cover no-repeat;
  padding: 22px 6vw;
  text-align: center;
  color: var(--text-light);
  overflow: hidden;
  margin-top: -1px;
}

.site-footer::before {
  content: "";
  position: absolute;
  inset: 0;
  background: rgba(0, 0, 0, 0.95);
  z-index: 0;
}

.site-footer p {
  position: relative;
  z-index: 1;
  font-size: 13px;
  opacity: 0.85;
  letter-spacing: 0.3px;
  margin: 0;
}

/* RESPONSIVE */
@media (max-width: 1200px) {
  .services-grid {
    grid-template-columns: repeat(3, 1fr);
  }
}

@media (max-width: 900px) {
  .about-container {
    grid-template-columns: 1fr;
    gap: 60px;
  }
  .about-image-single {
    max-width: 400px;
    margin: 0 auto;
  }
  .info-footer-container {
    grid-template-columns: 1fr 1fr;
  }
}

@media (max-width: 768px) {
  .navbar {
    padding: 20px 24px;
  }
  .nav-links {
    gap: 20px;
  }
  .nav-links a {
    font-size: 14px;
  }
  .hero-content {
    padding: 0 24px;
  }
  .hero-controls {
    right: 16px;
    gap: 10px;
  }
  .hero-dot {
    width: 20px;
    height: 20px;
  }
  .learn-more-btn {
    padding: 10px 24px;
    font-size: 0.9rem;
  }
  .learn-more-arrow dotlottie-wc {
    width: 37px;
    height: 37px;
  }
  .services-grid {
    grid-template-columns: 1fr;
  }
  .hex-scale {
    padding-inline: 9vw;
    transform: scale(0.8);
  }
  .commitment-overlay {
    justify-content: space-between;
    padding-top: 40px;
    padding-bottom: 40px;
  }
}

@media (max-width: 600px) {
  .info-footer-container {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 480px) {
  .hex-scale {
    padding-inline: 10vw;
    transform: scale(0.65);
  }
}

@media (max-width: 360px) {
  .hex-scale {
    padding-inline: 12vw;
    transform: scale(0.4);
  }
}

@media (max-width: 768px) and (orientation: landscape) {
  .hero {
    min-height: 100vh;
  }
  .commitment {
    min-height: 100vh;
  }
  .hex-scale {
    transform: scale(0.35);
  }
}

/* ACCESSIBILITY */
@media (prefers-reduced-motion: reduce) {
  * {
    animation: none !important;
    transition: none !important;
  }
  .hero-slide {
    transition: none;
    transform: none;
  }
  .hero-text {
    animation: none;
  }
  .hero-cta,
  .learn-more-btn {
    animation: none;
    transition: none;
  }
}