@import url('https://fonts.googleapis.com/css2?family=Inter:wght@300;400;500;600;700&display=swap');

:root {
  /* Corporate Palette */
  --navy-dark: #0f172a;
  --navy-primary: #1e3a8a;
  --blue-accent: #3b82f6;
  --green-success: #10b981;
  --grey-light: #f8fafc;
  --grey-border: #e2e8f0;
  --white: #ffffff;

  /* Shadows */
  --shadow-subtle: 0 4px 6px -1px rgba(0, 0, 0, 0.05), 0 2px 4px -1px rgba(0, 0, 0, 0.03);
  --shadow-card: 0 10px 15px -3px rgba(0, 0, 0, 0.05), 0 4px 6px -2px rgba(0, 0, 0, 0.025);
  --shadow-md: 0 4px 6px -1px rgba(0, 0, 0, 0.1), 0 2px 4px -1px rgba(0, 0, 0, 0.06);

  /* Transitions */
  --trans-smooth: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  font-family: 'Inter', sans-serif;
  background-color: var(--grey-light);
  color: var(--navy-dark);
  line-height: 1.6;
}

h1,
h2,
h3,
h4,
h5,
h6 {
  color: var(--navy-dark);
  font-weight: 700;
  letter-spacing: -0.025em;
}

a {
  text-decoration: none;
  color: inherit;
  transition: var(--trans-smooth);
}

ul {
  list-style: none;
}

/* Utilities */
.container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 24px;
}

.grid {
  display: grid;
  gap: 32px;
}

.grid-2 {
  grid-template-columns: repeat(auto-fit, minmax(350px, 1fr));
}

.grid-3 {
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
}

.grid-stats {
  grid-template-columns: repeat(2, 1fr);
  gap: 20px;
}

.text-center {
  text-align: center;
}

.flex {
  display: flex;
}

.align-center {
  align-items: center;
}

.justify-between {
  justify-content: space-between;
}

/* Buttons & Links */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 12px 28px;
  border-radius: 8px;
  font-weight: 600;
  font-size: 1rem;
  cursor: pointer;
  transition: var(--trans-smooth);
  border: none;
}

.btn-primary {
  background-color: var(--navy-primary);
  color: var(--white);
  box-shadow: 0 4px 6px rgba(30, 58, 138, 0.2);
}

.btn-primary:hover {
  background-color: var(--blue-accent);
  transform: translateY(-2px);
  box-shadow: 0 8px 12px rgba(59, 130, 246, 0.25);
}

.btn-login {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 10px 24px;
  background-color: var(--navy-primary);
  color: var(--white);
  border-radius: 8px;
  font-weight: 600;
  font-size: 0.95rem;
  transition: var(--trans-smooth);
}

.btn-login:hover {
  background-color: var(--blue-accent);
  transform: translateY(-2px);
  box-shadow: 0 4px 12px rgba(59, 130, 246, 0.3);
}

/* Header */
header {
  background: rgba(255, 255, 255, 0.95);
  backdrop-filter: blur(12px);
  position: fixed;
  width: 100%;
  top: 0;
  z-index: 1000;
  border-bottom: 1px solid var(--grey-border);
  box-shadow: var(--shadow-subtle);
}

nav {
  height: 80px;
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.logo {
  font-size: 1.5rem;
  font-weight: 800;
  color: var(--navy-primary);
  display: flex;
  align-items: center;
  gap: 10px;
}

.nav-links {
  display: flex;
  gap: 40px;
}

.nav-links a {
  font-weight: 500;
  color: #64748b;
  font-size: 0.95rem;
}

.nav-links a:hover {
  color: var(--navy-primary);
}

/* Hero Section */
.hero {
  min-height: 90vh;
  /* Keeps hero fairly large */
  padding-top: 80px;
  display: flex;
  align-items: center;
  background: linear-gradient(rgba(15, 23, 42, 0.7), rgba(15, 23, 42, 0.7)), url('../img/hero-bg.png');
  background-size: cover;
  background-position: center;
  background-attachment: fixed;
  position: relative;
  overflow: hidden;
}

.hero-content {
  max-width: 800px;
  margin: 0 auto;
  text-align: center;
  position: relative;
  z-index: 10;
}

.hero h1 {
  font-size: 3.5rem;
  line-height: 1.2;
  margin-bottom: 24px;
  color: var(--white);
}

.hero p {
  font-size: 1.25rem;
  color: #e2e8f0;
  margin-bottom: 48px;
  max-width: 600px;
  margin-left: auto;
  margin-right: auto;
}

/* Tracking Input */
.tracking-wrapper {
  background: var(--white);
  padding: 8px;
  border-radius: 12px;
  box-shadow: var(--shadow-card);
  display: flex;
  /* Ensures button is next to input on large screens */
  gap: 12px;
  max-width: 600px;
  margin: 0 auto;
  border: 1px solid var(--grey-border);
  transition: var(--trans-smooth);
}

.tracking-wrapper:focus-within {
  border-color: var(--blue-accent);
  box-shadow: 0 0 0 4px rgba(59, 130, 246, 0.1);
}

.tracking-wrapper input {
  flex: 1;
  border: none;
  font-size: 1rem;
  padding: 12px 20px;
  outline: none;
  color: var(--navy-dark);
  min-width: 0;
  /* Prevents overflow */
}

/* Stats Section Redesign (COMPACT) */
.stats-section {
  padding: 40px 0;
  margin-top: 0;
  background: var(--white);
  border-bottom: 1px solid var(--grey-border);
}

.stat-box {
  background: var(--white);
  padding: 20px 24px;
  border-radius: 12px;
  border: 1px solid var(--grey-border);
  display: flex;
  align-items: center;
  gap: 20px;
  box-shadow: var(--shadow-subtle);
  transition: var(--trans-smooth);
}

.stat-box:hover {
  transform: translateY(-2px);
  border-color: var(--blue-accent);
  box-shadow: var(--shadow-md);
}

.stat-box .icon-wrapper {
  width: 48px;
  height: 48px;
  background: #eff6ff;
  color: var(--navy-primary);
  border-radius: 10px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.25rem;
  flex-shrink: 0;
}

.stat-box .content {
  display: flex;
  flex-direction: column;
}

.stat-box h3 {
  font-size: 1.5rem;
  margin-bottom: 2px;
  line-height: 1.2;
}

.stat-box p {
  color: #64748b;
  font-size: 0.9rem;
  margin: 0;
  font-weight: 500;
}

/* Cards */
.card {
  background: var(--white);
  padding: 40px;
  border-radius: 16px;
  border: 1px solid var(--grey-border);
  transition: var(--trans-smooth);
}

.card:hover {
  transform: translateY(-8px);
  box-shadow: var(--shadow-card);
  border-color: var(--blue-accent);
}

.service-icon {
  width: 64px;
  height: 64px;
  background: #eff6ff;
  color: var(--navy-primary);
  border-radius: 12px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.75rem;
  margin-bottom: 24px;
  transition: var(--trans-smooth);
}

.card:hover .service-icon {
  background: var(--navy-primary);
  color: var(--white);
}

.card h3 {
  font-size: 1.25rem;
  margin-bottom: 12px;
}

.card p {
  color: #64748b;
  font-size: 0.95rem;
}

/* Footer */
footer {
  background: var(--navy-dark);
  color: var(--white);
  padding: 80px 0 40px;
}

footer h3 {
  color: var(--white);
  margin-bottom: 24px;
  font-size: 1.25rem;
}

footer p,
footer li {
  color: #94a3b8;
  font-size: 0.95rem;
  margin-bottom: 12px;
}

footer a:hover {
  color: var(--white);
}

/* Modal */
.modal {
  display: none;
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: rgba(15, 23, 42, 0.6);
  backdrop-filter: blur(4px);
  z-index: 2000;
  justify-content: center;
  align-items: center;
  padding: 20px;
}

.modal.active {
  display: flex;
}

.modal-content {
  background: var(--white);
  border-radius: 20px;
  padding: 40px;
  width: 100%;
  max-width: 700px;
  max-height: 90vh;
  overflow-y: auto;
  box-shadow: var(--shadow-card);
  position: relative;
}

.close-modal {
  position: absolute;
  top: 20px;
  right: 20px;
  font-size: 24px;
  color: #64748b;
  cursor: pointer;
  width: 36px;
  height: 36px;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 50%;
  background: #f1f5f9;
  transition: var(--trans-smooth);
}

.close-modal:hover {
  background: #e2e8f0;
  color: var(--navy-dark);
}

/* Timeline */
.timeline {
  margin-top: 30px;
  border-left: 2px solid var(--grey-border);
  padding-left: 30px;
  position: relative;
}

.timeline-item {
  margin-bottom: 30px;
  position: relative;
}

.timeline-item::before {
  content: '';
  position: absolute;
  left: -37px;
  top: 0;
  width: 12px;
  height: 12px;
  background: var(--navy-primary);
  border-radius: 50%;
  border: 3px solid var(--white);
  box-shadow: 0 0 0 1px var(--navy-primary);
}

.timeline-date {
  font-size: 0.85rem;
  color: #64748b;
  margin-bottom: 4px;
}

.timeline-status {
  font-weight: 700;
  font-size: 1.1rem;
  color: var(--navy-dark);
}

/* Visi Misi Elegant Styles */
.visi-misi-section {
  position: relative;
  overflow: hidden;
  background: linear-gradient(to bottom, #f8fafc, #edf2f7);
}

.visi-misi-card {
  background: var(--white);
  padding: 40px;
  border-radius: 20px;
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.05);
  transition: all 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275);
  border: 1px solid rgba(255, 255, 255, 0.8);
  position: relative;
  overflow: hidden;
  height: 100%;
}

.visi-misi-card::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 6px;
  background: var(--navy-primary);
  transition: width 0.4s ease;
}

.visi-misi-card.mission::before {
  background: var(--blue-accent);
}

.visi-misi-card:hover {
  transform: translateY(-10px);
  box-shadow: 0 20px 40px rgba(0, 0, 0, 0.08);
}

/* Services Carousel Logic */
/* Services Grid Logic */
.services-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 32px;
  padding: 0 4px;
  /* Spacing for potential shadow clipped */
}



.services-grid .service-card {
  width: 100%;
  max-width: none;
  background: rgba(30, 58, 138, 0.95);
  /* Uniform Navy Background with slight transparency */
  border-radius: 20px;
  padding: 0;
  border: 1px solid rgba(255, 255, 255, 0.1);
  overflow: hidden;
  position: relative;
  transition: all 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275);
  box-shadow: 0 10px 30px -5px rgba(0, 0, 0, 0.2);
  cursor: pointer;
}

.services-grid .service-card:hover {
  transform: translateY(-8px) scale(1.02);
  box-shadow: 0 20px 40px -5px rgba(0, 0, 0, 0.3);
  border-color: var(--blue-accent);
}

/* Accent Bar */
.services-grid .service-card::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 4px;
  background: var(--blue-accent);
  z-index: 10;
}

/* Text Colors for Dark Theme */
.service-card h3 {
  font-size: 1.2rem;
  margin-bottom: 12px;
  color: var(--white);
  /* White text */
  text-align: center;
  margin-top: 0;
  font-weight: 600;
}

.service-card p {
  color: #cbd5e1;
  /* Light grey text */
  font-size: 0.95rem;
  line-height: 1.6;
}


.services-grid .service-card img {
  /* Ensure image connects well */
  margin: 0;
  width: 100%;
  border-radius: 0;
  /* Remove internal radius if we want full width flush? */
  /* Wait, user wanted "tulisannya disejajarin sama foto". */
  /* If card has padding, image needs explicit handling. */
  /* Let's look at HTML structure: */
  /* <div class="service-card"> <div content H3></div> <img> <div content P></div> </div> */
  /* If I want "smooth" look, maybe image goes to edge? */
  /* Or keep generous padding. */
  /* Let's keep the image styling but inside a grid card. */
}


/* Mobile responsive adjustments */
@media (max-width: 768px) {
  .services-grid {
    grid-template-columns: 1fr;
    /* 1 Column on mobile */
    gap: 24px;
  }
}

.service-card-content {
  padding: 16px 24px;
  /* Compact padding */
}

.service-image {
  height: 140px;
  width: 100%;
  object-fit: cover;
  display: block;
  margin: 0;
  border-radius: 0;
  /* Full span */
  box-shadow: none;
  /* Clean look */
}



.visi-icon-wrapper {
  width: 70px;
  height: 70px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.8rem;
  margin-bottom: 24px;
  transition: all 0.3s ease;
}

.visi-misi-card:hover .visi-icon-wrapper {
  transform: scale(1.1) rotate(5deg);
}

.vision-text {
  font-family: 'Inter', serif;
  font-style: italic;
  font-size: 1.15rem;
  line-height: 1.8;
  color: #334155;
  position: relative;
  z-index: 1;
}

.mission-list li {
  display: flex;
  align-items: flex-start;
  gap: 16px;
  margin-bottom: 16px;
  padding: 12px;
  border-radius: 10px;
  transition: background 0.3s ease;
}

.mission-list li:hover {
  background: #f1f5f9;
}

.mission-list i {
  color: var(--blue-accent);
  margin-top: 4px;
  flex-shrink: 0;
  background: rgba(59, 130, 246, 0.1);
  width: 24px;
  height: 24px;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 50%;
  font-size: 0.8rem;
}

/* Mobile Navigation */
.mobile-menu-toggle {
  display: none;
  background: none;
  border: none;
  font-size: 1.5rem;
  color: var(--navy-dark);
  cursor: pointer;
}

#mobile-nav-overlay {
  display: none;
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: rgba(0, 0, 0, 0.5);
  z-index: 2000;
}

#mobile-nav-drawer {
  position: fixed;
  top: 0;
  right: -280px;
  /* Start off-screen */
  width: 280px;
  height: 100%;
  background: white;
  z-index: 2001;
  transition: right 0.3s ease;
  box-shadow: -5px 0 15px rgba(0, 0, 0, 0.1);
  display: flex;
  flex-direction: column;
}

#mobile-nav-drawer.active {
  right: 0;
}

.drawer-header {
  padding: 20px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  border-bottom: 1px solid var(--grey-border);
}

.drawer-header button {
  background: none;
  border: none;
  font-size: 1.5rem;
  color: #64748b;
  cursor: pointer;
}

.mobile-nav-links {
  list-style: none;
  padding: 20px;
}

.mobile-nav-links li {
  margin-bottom: 20px;
}

.mobile-nav-links a {
  font-size: 1.1rem;
  font-weight: 500;
  color: var(--navy-dark);
  display: block;
}

/* Responsive */
@media (max-width: 768px) {
  .hero {
    background-attachment: scroll;
  }

  .hero h1 {
    font-size: 2.5rem;
  }

  .grid-2,
  .grid-3 {
    grid-template-columns: 1fr;
  }

  .tracking-wrapper {
    flex-direction: column;
    padding: 16px;
  }

  .tracking-wrapper input {
    width: 100%;
    text-align: center;
    margin-bottom: 8px;
  }

  .tracking-wrapper button {
    width: 100%;
  }

  /* Navigation hiding */
  .nav-links,
  .desktop-only {
    display: none;
  }

  .mobile-menu-toggle {
    display: block;
    /* Show hamburger */
  }

  /* Contact Section Adjustments */
  .contact-item {
    padding: 20px;
  }
}

/* PANDU Section Responsiveness */
.pandu-grid-top {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 30px;
  margin-bottom: 30px;
}

.pandu-row-bottom {
  display: flex;
  justify-content: center;
  gap: 30px;
  flex-wrap: wrap;
}

.pandu-card-wrapper {
  /* Default styles for bottom wrappers if needed, but flex handles it? */
  flex: 1;
}

@media (max-width: 991px) {
  .pandu-grid-top {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media (max-width: 768px) {
  .pandu-grid-top {
    grid-template-columns: 1fr;
  }

  .pandu-row-bottom {
    flex-direction: column;
  }

  /* Override inline styles for mobile */
  .value-card {
    min-width: 0 !important;
    width: 100% !important;
    margin-bottom: 0;
  }

  .values-row-bottom .value-card {
    /* Ensure bottom row items also expand */
    flex: 1 1 100% !important;
  }
}