/* --- Global Styles & Variables --- */
:root {
  --primary-color: #0a192f;
  /* Dark Navy */
  --secondary-color: #64ffda;
  /* Bright Mint */
  --text-color: #8892b0;
  /* Light Slate */
  --light-text-color: #ccd6f6;
  /* Lighter Slate */
  --background-color: #0a192f;
  --card-background: #112240;
  /* Lighter Navy */
  --font-family: "Inter", sans-serif;
}

* {
  box-sizing: border-box;
}

html {
  overflow-x: hidden;
  width: 100%;
}

body {
  background-color: var(--background-color);
  color: var(--text-color);
  font-family: var(--font-family);
  margin: 0;
  line-height: 1.6;
  overflow-x: hidden;
  width: 100%;
  position: relative;
}

.container {
  max-width: 1100px;
  margin: 0 auto;
  padding: 0 2rem;
  width: 100%;
  box-sizing: border-box;
}

h1,
h2,
h3,
h4 {
  color: var(--light-text-color);
  font-weight: 600;
}

h1 {
  font-size: 3.5rem;
  margin-bottom: 1rem;
}

h2 {
  font-size: 2.5rem;
  text-align: center;
  margin-bottom: 1rem;
}

p.section-subtitle {
  text-align: center;
  max-width: 600px;
  margin: 0 auto 3rem auto;
}

a {
  color: var(--secondary-color);
  text-decoration: none;
}

/* --- Header & Navigation --- */
.main-header {
  padding: 1.5rem 0;
  position: sticky;
  top: 0;
  background-color: rgba(10, 25, 47, 0.85);
  backdrop-filter: blur(10px);
  z-index: 100;
}

.main-nav {
  display: flex;
  justify-content: space-between;
  align-items: center;
  position: relative;
}

.logo {
  font-size: 1.5rem;
  font-weight: 700;
  color: var(--secondary-color);
}

.main-nav ul {
  display: flex;
  list-style: none;
  margin: 0;
  padding: 0;
}

.main-nav ul li {
  margin: 0 1rem;
}

.main-nav ul li a {
  color: var(--light-text-color);
  transition: color 0.3s;
}

.main-nav ul li a:hover {
  color: var(--secondary-color);
}

/* --- Call to Action Button --- */
.cta-button {
  background-color: transparent;
  border: 1px solid var(--secondary-color);
  color: var(--secondary-color);
  padding: 0.75rem 1.5rem;
  border-radius: 4px;
  cursor: pointer;
  font-size: 1rem;
  transition: background-color 0.3s, color 0.3s;
}

.cta-button:hover {
  background-color: rgba(100, 255, 218, 0.1);
}

/* --- Hero Section --- */
.hero {
  /* Hapus padding asli sementara, kita atur ulang */
  /* padding: 8rem 0; */
  text-align: center;

  /* --- Penambahan Baru --- */
  position: relative;
  /* Diperlukan untuk overlay */
  /* Ganti nama file sesuai yang Anda simpan */
  background-image: url("/images/header_background.png");
  background-size: cover;
  background-position: center center;
  background-repeat: no-repeat;
  /* Pastikan tinggi minimum agar gambar terlihat bagus di layar besar */
  min-height: 600px;
  /* Gunakan flexbox untuk memusatkan konten secara vertikal */
  display: flex;
  align-items: center;
  /* --- Akhir Penambahan Baru --- */
}

/* Menambahkan overlay gelap agar teks lebih terbaca */
.hero::before {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  /* Lapisan biru tua semi-transparan */
  background: rgba(10, 25, 47, 0.75);
  z-index: 1;
}

/* Pastikan konten berada di atas overlay */
.hero .container {
  position: relative;
  z-index: 2;
  /* Tambahkan padding vertikal di sini agar konten tidak terlalu mepet */
  padding-top: 4rem;
  padding-bottom: 4rem;
}

.hero .subtitle {
  font-size: 1.2rem;
  max-width: 700px;
  margin: 0 auto 2rem auto;
}

.hero-cta {
  font-size: 1.1rem;
  padding: 1rem 2rem;
}

/* --- Page Header (for sub-pages) --- */
.page-header {
  text-align: center;
  position: relative;
  background-image: url("/images/oursuccess.png");
  background-size: cover;
  background-position: center center;
  background-repeat: no-repeat;
  min-height: 400px;
  display: flex;
  align-items: center;
}

/* Overlay gelap untuk page-header */
.page-header::before {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: rgba(10, 25, 47, 0.75);
  z-index: 1;
}

/* Konten di atas overlay */
.page-header .container {
  position: relative;
  z-index: 2;
  padding-top: 3rem;
  padding-bottom: 3rem;
}

.page-header h1 {
  font-size: 3rem;
}

.page-header .section-subtitle {
  margin-bottom: 0;
}

/* --- General Section Styling --- */
section {
  padding: 6rem 0;
}

/* --- Pain Points & Why Us --- */
.points-grid,
.usp-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
  gap: 2rem;
}

.point,
.usp-item {
  background: var(--card-background);
  padding: 2rem;
  border-radius: 4px;
  border-left: 3px solid var(--secondary-color);
}

.point h3,
.usp-item h3 {
  margin-top: 0;
  font-size: 1.2rem;
}

/* --- Featured Services --- */
.services-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
  gap: 1.5rem;
}

.service-card {
  background: var(--card-background);
  padding: 2rem;
  border-radius: 4px;
  text-align: center;
  transition: transform 0.3s;
  /* Tambahkan ini agar kartu sedikit lebih tinggi untuk menampung ikon */
  display: flex;
  flex-direction: column;
  align-items: center;
}

/* --- Gaya baru untuk ikon layanan --- */
.service-icon {
  width: 64px;
  /* Ukuran yang pas untuk ikon */
  height: 64px;
  margin-bottom: 1.5rem;
  /* Jarak antara ikon dan judul */
  /* Opsional: tambahkan sedikit efek glowing pada ikon */
  filter: drop-shadow(0 0 5px rgba(100, 255, 218, 0.3));
}

.service-card:hover {
  transform: translateY(-5px);
}

.service-card h4 {
  color: var(--secondary-color);
  margin-top: 0;
}

/* --- New Services Showcase Section --- */
.services-showcase {
  padding-top: 4rem;
  /* Reduce top padding to bring it closer to header */
}

.service-item {
  display: grid;
  grid-template-columns: 1fr 2fr;
  gap: 3rem;
  align-items: center;
  margin-bottom: 6rem;
  padding: 2rem;
  background-color: var(--card-background);
  border-radius: 8px;
  border-left: 4px solid var(--secondary-color);
}

/* Alternating layout for even-numbered items */
.service-item:nth-child(even) {
  grid-template-columns: 2fr 1fr;
  border-left: none;
  border-right: 4px solid var(--secondary-color);
}

.service-item:nth-child(even) .service-icon-wrapper {
  order: 2;
}

.service-icon-wrapper {
  text-align: center;
}

.service-item-icon {
  width: 150px;
  height: 150px;
  filter: drop-shadow(0 0 10px rgba(100, 255, 218, 0.2));
}

.service-title {
  text-align: left;
  color: var(--secondary-color);
  font-size: 2rem;
  margin-top: 0;
  margin-bottom: 1rem;
}

.service-description {
  font-size: 1.1rem;
  margin-bottom: 1.5rem;
}

.service-features {
  list-style-type: "✓  ";
  /* Custom bullet point */
  padding-left: 1.2rem;
}

/* --- Pricing Section --- */
.pricing-tiers {
  display: grid;
  grid-template-columns: 1fr 1fr 1fr;
  gap: 2rem;
  margin-top: 4rem;
}

.tier {
  background: var(--card-background);
  padding: 2.5rem;
  border-radius: 4px;
  text-align: center;
  display: flex;
  flex-direction: column;
}

.tier.popular {
  border: 2px solid var(--secondary-color);
  transform: scale(1.05);
}

.tier .price {
  font-size: 1.5rem;
  color: var(--light-text-color);
  margin: 0.5rem 0;
}

.tier .price span {
  font-size: 3rem;
  font-weight: 700;
  color: var(--secondary-color);
}

.tier ul {
  list-style: none;
  padding: 0;
  margin: 1.5rem 0;
  text-align: left;
  flex-grow: 1;
}

.tier ul li {
  margin-bottom: 0.5rem;
}

/* --- Contact Form --- */
.contact-section {
  background-color: var(--card-background);
}

#contact-form {
  max-width: 700px;
  margin: 2rem auto 0 auto;
}

.form-group {
  display: flex;
  gap: 1rem;
  margin-bottom: 1rem;
}

#contact-form input,
#contact-form textarea {
  width: 100%;
  padding: 1rem;
  background-color: var(--background-color);
  border: 1px solid #233554;
  border-radius: 4px;
  color: var(--light-text-color);
  font-family: var(--font-family);
}

#contact-form button {
  width: 100%;
  padding: 1rem;
  font-size: 1.1rem;
}

#form-status {
  text-align: center;
  margin-top: 1rem;
  font-size: 1rem;
}

/* --- Footer --- */
.main-footer {
  background-color: #020c1b;
  padding: 3rem 0 2rem 0;
}

.footer-content {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  text-align: left;
  margin-bottom: 2rem;
  padding: 0;
  width: 100%;
}

.footer-brand {
  flex: 1;
  min-width: 0;
}

.footer-brand h4 {
  font-size: 1.5rem;
  color: var(--light-text-color);
  margin: 0 0 0.5rem 0;
}

.footer-brand p {
  margin: 0;
}

.footer-links {
  display: flex;
  gap: 3rem;
  flex-shrink: 0;
}

.footer-links > div {
  min-width: 120px;
}

.footer-links h5 {
  color: var(--light-text-color);
  margin: 0 0 1rem 0;
  font-size: 1rem;
}

.footer-links ul {
  list-style: none;
  padding: 0;
  margin: 0;
}

.footer-links ul li {
  margin-bottom: 0.5rem;
}

.footer-links ul li:last-child {
  margin-bottom: 0;
}

.footer-links ul li a {
  color: var(--text-color);
  font-size: 0.95rem;
  transition: color 0.3s;
}

.footer-links ul li a:hover {
  color: var(--secondary-color);
}

.footer-bottom {
  text-align: center;
  border-top: 1px solid #233554;
  padding-top: 2rem;
}

/* --- Mobile Navigation Toggle --- */
.nav-toggle {
  display: none;
  flex-direction: column;
  justify-content: space-around;
  width: 30px;
  height: 24px;
  background: transparent;
  border: none;
  cursor: pointer;
  padding: 0;
  z-index: 20;
}

.nav-toggle span {
  width: 100%;
  height: 3px;
  background-color: var(--secondary-color);
  border-radius: 2px;
  transition: all 0.3s ease;
}

.nav-toggle.active span:nth-child(1) {
  transform: translateY(10px) rotate(45deg);
}

.nav-toggle.active span:nth-child(2) {
  opacity: 0;
}

.nav-toggle.active span:nth-child(3) {
  transform: translateY(-10px) rotate(-45deg);
}

/* ============================================= */
/* === RESPONSIVE STYLES - MEDIA QUERIES === */
/* ============================================= */

/* --- Extra Large Screens (1400px and above) --- */
@media screen and (min-width: 1400px) {
  .container {
    max-width: 1280px;
  }

  h1 {
    font-size: 4rem;
  }

  .hero {
    min-height: 700px;
  }
}

/* --- Large Tablets & Small Laptops (max-width: 1024px) --- */
@media screen and (max-width: 1024px) {
  h1 {
    font-size: 2.8rem;
  }

  h2 {
    font-size: 2rem;
  }

  .hero {
    min-height: 500px;
  }

  .page-header {
    min-height: 350px;
  }

  .page-header h1 {
    font-size: 2.5rem;
  }

  .pricing-tiers {
    grid-template-columns: 1fr 1fr 1fr;
    gap: 1rem;
  }

  .tier.popular {
    transform: scale(1.02);
  }

  .tier {
    padding: 1.5rem;
  }

  .service-item {
    gap: 2rem;
    padding: 1.5rem;
  }

  .service-item-icon {
    width: 120px;
    height: 120px;
  }

  .footer-links {
    gap: 2rem;
  }
}

/* --- Tablets (max-width: 900px) --- */
@media screen and (max-width: 900px) {
  .pricing-tiers {
    grid-template-columns: 1fr;
    gap: 1.5rem;
    max-width: 500px;
    margin: 2rem auto 0;
  }

  .tier.popular {
    transform: scale(1);
    order: -1;
  }

  .tier {
    padding: 2rem;
  }

  .service-item,
  .service-item:nth-child(even) {
    grid-template-columns: 1fr;
    text-align: center;
  }

  .service-item:nth-child(even) .service-icon-wrapper {
    order: 0;
  }

  .service-item:nth-child(even) {
    border-right: none;
    border-left: 4px solid var(--secondary-color);
  }

  .service-title {
    text-align: center;
  }

  .service-features {
    display: inline-block;
    text-align: left;
  }
}

/* --- Tablets & Large Phones (max-width: 768px) --- */
@media screen and (max-width: 768px) {
  .container {
    padding: 0 1.5rem;
  }

  section {
    padding: 4rem 0;
  }

  h1 {
    font-size: 2.2rem;
  }

  h2 {
    font-size: 1.75rem;
  }

  /* Navigation - Mobile Menu */
  .nav-toggle {
    display: flex;
  }

  .main-nav ul {
    position: fixed;
    top: 0;
    right: -100%;
    width: 70%;
    max-width: 300px;
    height: 100vh;
    flex-direction: column;
    background-color: var(--card-background);
    padding: 5rem 2rem 2rem;
    margin: 0;
    transition: right 0.3s ease;
    box-shadow: -5px 0 15px rgba(0, 0, 0, 0.3);
    overflow-y: auto;
    z-index: 1000;
  }

  .main-nav ul.active {
    right: 0;
  }

  /* Overlay untuk menu mobile */
  .main-nav::before {
    content: "";
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100vh;
    background-color: rgba(0, 0, 0, 0.5);
    opacity: 0;
    visibility: hidden;
    transition: opacity 0.3s ease, visibility 0.3s ease;
    z-index: 999;
  }

  .main-nav.menu-active::before {
    opacity: 1;
    visibility: visible;
  }

  .main-nav ul li {
    margin: 0;
    padding: 1rem 0;
    border-bottom: 1px solid rgba(100, 255, 218, 0.1);
  }

  .main-nav ul li a {
    font-size: 1.1rem;
  }

  .nav-cta {
    display: none;
  }

  /* Hero Section */
  .hero {
    min-height: 450px;
  }

  .hero .container {
    padding-top: 3rem;
    padding-bottom: 3rem;
  }

  .hero .subtitle {
    font-size: 1rem;
  }

  .hero-cta {
    font-size: 1rem;
    padding: 0.875rem 1.5rem;
  }

  /* Page Header */
  .page-header {
    min-height: 300px;
  }

  .page-header h1 {
    font-size: 2rem;
  }

  /* Grids */
  .points-grid,
  .usp-grid,
  .services-grid {
    grid-template-columns: 1fr;
    gap: 1.5rem;
  }

  .point,
  .usp-item {
    padding: 1.5rem;
  }

  .service-card {
    padding: 1.5rem;
  }

  /* Service Item */
  .service-item {
    margin-bottom: 3rem;
    padding: 1.5rem;
  }

  .service-item-icon {
    width: 100px;
    height: 100px;
  }

  .service-title {
    font-size: 1.5rem;
  }

  .service-description {
    font-size: 1rem;
  }

  /* Contact Form */
  .form-group {
    flex-direction: column;
    gap: 0;
  }

  .form-group input,
  .form-group textarea {
    margin-bottom: 1rem;
  }

  /* Footer */
  .footer-content {
    flex-direction: column;
    align-items: center;
    text-align: center;
    gap: 2rem;
  }

  .footer-brand {
    margin-bottom: 0;
    text-align: center;
    width: 100%;
  }

  .footer-links {
    flex-direction: row;
    justify-content: center;
    gap: 3rem;
    width: 100%;
  }

  .footer-links > div {
    text-align: center;
    min-width: auto;
  }

  .footer-links h5 {
    text-align: center;
  }

  .footer-links ul {
    text-align: center;
  }
}

/* --- Mobile Phones (max-width: 576px) --- */
@media screen and (max-width: 576px) {
  .container {
    padding: 0 1rem;
  }

  section {
    padding: 3rem 0;
  }

  h1 {
    font-size: 1.8rem;
    line-height: 1.3;
  }

  h2 {
    font-size: 1.5rem;
  }

  .main-header {
    padding: 1rem 0;
  }

  .logo {
    font-size: 1.25rem;
  }

  /* Hero */
  .hero {
    min-height: 400px;
  }

  .hero .subtitle {
    font-size: 0.95rem;
  }

  .hero-cta {
    font-size: 0.95rem;
    padding: 0.75rem 1.25rem;
    width: 100%;
    max-width: 280px;
  }

  /* Page Header */
  .page-header {
    min-height: 250px;
  }

  .page-header h1 {
    font-size: 1.6rem;
  }

  .page-header .section-subtitle {
    font-size: 0.9rem;
  }

  /* Section Subtitles */
  p.section-subtitle {
    font-size: 0.95rem;
    margin-bottom: 2rem;
  }

  /* Cards */
  .point,
  .usp-item,
  .service-card {
    padding: 1.25rem;
  }

  .point h3,
  .usp-item h3 {
    font-size: 1.1rem;
  }

  .service-icon {
    width: 50px;
    height: 50px;
  }

  /* Service Items */
  .service-item {
    margin-bottom: 2rem;
    padding: 1.25rem;
  }

  .service-item-icon {
    width: 80px;
    height: 80px;
  }

  .service-title {
    font-size: 1.3rem;
  }

  .service-features {
    font-size: 0.95rem;
  }

  /* Pricing Tiers */
  .tier {
    padding: 1.5rem;
  }

  .tier .price span {
    font-size: 2.5rem;
  }

  /* Contact Form */
  #contact-form input,
  #contact-form textarea {
    padding: 0.875rem;
    font-size: 0.95rem;
  }

  #contact-form button {
    padding: 0.875rem;
    font-size: 1rem;
  }

  /* Footer */
  .main-footer {
    padding: 2rem 0 1.5rem;
  }

  .footer-content {
    gap: 1.5rem;
  }

  .footer-brand h4 {
    font-size: 1.25rem;
  }

  .footer-links {
    flex-direction: column;
    gap: 1.5rem;
  }

  .footer-links > div {
    width: 100%;
  }

  .footer-links h5 {
    font-size: 0.95rem;
    margin-bottom: 0.75rem;
  }

  .footer-links ul li {
    margin-bottom: 0.4rem;
  }

  .footer-links ul li a {
    font-size: 0.9rem;
  }

  .footer-bottom {
    padding-top: 1.5rem;
    margin-top: 0.5rem;
  }

  .footer-bottom p {
    font-size: 0.85rem;
    margin: 0;
  }
}

/* --- Extra Small Phones (max-width: 375px) --- */
@media screen and (max-width: 375px) {
  h1 {
    font-size: 1.5rem;
  }

  h2 {
    font-size: 1.3rem;
  }

  .hero {
    min-height: 350px;
  }

  .hero .subtitle {
    font-size: 0.9rem;
  }

  .cta-button {
    padding: 0.6rem 1rem;
    font-size: 0.9rem;
  }

  .page-header h1 {
    font-size: 1.4rem;
  }

  .point h3,
  .usp-item h3 {
    font-size: 1rem;
  }

  .tier .price span {
    font-size: 2rem;
  }
}

/* --- Landscape Orientation for Mobile --- */
@media screen and (max-width: 900px) and (orientation: landscape) {
  .hero {
    min-height: 350px;
  }

  .page-header {
    min-height: 250px;
  }

  .hero .container,
  .page-header .container {
    padding-top: 2rem;
    padding-bottom: 2rem;
  }
}

/* --- Print Styles --- */
@media print {
  .main-header,
  .main-footer,
  .nav-toggle,
  .cta-button {
    display: none;
  }

  body {
    background: white;
    color: black;
  }

  h1,
  h2,
  h3,
  h4 {
    color: black;
  }

  .hero::before,
  .page-header::before {
    display: none;
  }
}
