/* ========================================
   PT Artha Bahana Cakrawala - Landing Page Styles
   abc-holding.id
   ======================================== */

/* CSS Variables */
:root {
  --primary-color: #1a365d;
  --primary-dark: #0f2744;
  --primary-light: #2c5282;
  --secondary-color: #c9a227;
  --secondary-light: #d4af37;
  --accent-color: #38a169;
  --text-dark: #1a202c;
  --text-medium: #4a5568;
  --text-light: #718096;
  --white: #ffffff;
  --off-white: #f7fafc;
  --light-gray: #e2e8f0;
  --border-color: #cbd5e0;
  --shadow-sm: 0 1px 3px rgba(0, 0, 0, 0.1);
  --shadow-md: 0 4px 6px rgba(0, 0, 0, 0.1);
  --shadow-lg: 0 10px 15px rgba(0, 0, 0, 0.1);
  --shadow-xl: 0 20px 25px rgba(0, 0, 0, 0.15);
  --transition: all 0.3s ease;
  --font-primary:
    "Poppins", -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
}

/* Reset & Base */
*,
*::before,
*::after {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  font-family: var(--font-primary);
  font-size: 16px;
  line-height: 1.6;
  color: var(--text-dark);
  background-color: var(--white);
  overflow-x: hidden; /* Prevent horizontal scrolling */
}

.container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 20px;
  box-sizing: border-box; /* Ensure padding doesn't cause overflow */
}

/* Typography */
h1,
h2,
h3,
h4,
h5,
h6 {
  font-weight: 600;
  line-height: 1.3;
  color: var(--text-dark);
}

p {
  margin-bottom: 1rem;
}

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

ul {
  list-style: none;
}

/* Buttons */
.btn {
  display: inline-block;
  padding: 14px 32px;
  font-size: 15px;
  font-weight: 600;
  border-radius: 8px;
  cursor: pointer;
  transition: var(--transition);
  text-align: center;
  border: 2px solid transparent;
}

.btn-primary {
  background: var(--secondary-color);
  color: var(--white);
  border-color: var(--secondary-color);
}

.btn-primary:hover {
  background: var(--secondary-light);
  border-color: var(--secondary-light);
  transform: translateY(-2px);
  box-shadow: var(--shadow-md);
}

.btn-secondary {
  background: transparent;
  color: var(--white);
  border-color: var(--white);
}

.btn-secondary:hover {
  background: var(--white);
  color: var(--primary-color);
  transform: translateY(-2px);
}

/* Section Styles */
.section-header {
  text-align: center;
  margin-bottom: 60px;
}

.section-title {
  font-size: 2.5rem;
  color: var(--primary-color);
  margin-bottom: 16px;
  position: relative;
  display: inline-block;
}

.section-divider {
  width: 80px;
  height: 4px;
  background: linear-gradient(
    90deg,
    var(--secondary-color),
    var(--secondary-light)
  );
  margin: 0 auto 20px;
  border-radius: 2px;
}

.section-subtitle {
  font-size: 1.1rem;
  color: var(--text-medium);
  max-width: 600px;
  margin: 0 auto;
}

/* ========================================
   NAVIGATION
   ======================================== */
.navbar {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  background: var(--white);
  box-shadow: var(--shadow-sm);
  z-index: 1000;
  padding: 15px 0;
  transition: var(--transition);
}

.navbar.scrolled {
  padding: 10px 0;
  box-shadow: var(--shadow-md);
}

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

.logo {
  display: flex;
  align-items: center;
}

.logo-img {
  height: 50px;
  width: auto;
}

.nav-menu {
  display: flex;
  align-items: center;
  gap: 32px;
}

.nav-link {
  font-size: 15px;
  font-weight: 500;
  color: var(--text-dark);
  position: relative;
  padding: 8px 0;
}

.nav-link::after {
  content: "";
  position: absolute;
  bottom: 0;
  left: 0;
  width: 0;
  height: 2px;
  background: var(--secondary-color);
  transition: var(--transition);
}

.nav-link:hover {
  color: var(--primary-color);
}

.nav-link:hover::after {
  width: 100%;
}

.hamburger {
  display: none;
  flex-direction: column;
  gap: 5px;
  cursor: pointer;
}

.hamburger span {
  width: 25px;
  height: 3px;
  background: var(--primary-color);
  border-radius: 3px;
  transition: var(--transition);
}

.hamburger.active span:nth-child(1) {
  transform: translateY(8px) rotate(45deg);
}

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

.hamburger.active span:nth-child(3) {
  transform: translateY(-8px) rotate(-45deg);
}

/* ========================================
   HERO SECTION
   ======================================== */
.hero {
  min-height: 100vh;
  display: flex;
  align-items: center;
  position: relative;
  background: linear-gradient(
    135deg,
    var(--primary-color) 0%,
    var(--primary-dark) 50%,
    #0a1f35 100%
  );
  padding: 120px 0 80px;
  overflow: hidden;
}

.hero::before {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background:
    radial-gradient(
      circle at 20% 80%,
      rgba(201, 162, 39, 0.1) 0%,
      transparent 50%
    ),
    radial-gradient(
      circle at 80% 20%,
      rgba(201, 162, 39, 0.08) 0%,
      transparent 40%
    ),
    radial-gradient(
      circle at 50% 50%,
      rgba(255, 255, 255, 0.02) 0%,
      transparent 70%
    );
  pointer-events: none;
}

.hero-overlay {
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: url('data:image/svg+xml,<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 100 100"><defs><pattern id="grid" width="10" height="10" patternUnits="userSpaceOnUse"><path d="M 10 0 L 0 0 0 10" fill="none" stroke="rgba(255,255,255,0.03)" stroke-width="0.5"/></pattern></defs><rect width="100" height="100" fill="url(%23grid)"/></svg>');
  opacity: 0.5;
}

.hero-content {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 60px;
  align-items: center;
  position: relative;
  z-index: 1;
}

.hero-text {
  color: var(--white);
}

.hero-title {
  font-size: 3.5rem;
  font-weight: 700;
  color: var(--white);
  margin-bottom: 20px;
  line-height: 1.2;
  text-shadow: 0 2px 4px rgba(0, 0, 0, 0.3);
}

.hero-subtitle {
  font-size: 1.5rem;
  font-weight: 400;
  color: var(--secondary-color);
  margin-bottom: 24px;
  letter-spacing: 0.5px;
}

.hero-description {
  font-size: 1.1rem;
  line-height: 1.8;
  color: rgba(255, 255, 255, 0.85);
  margin-bottom: 36px;
  max-width: 550px;
}

/* .hero-buttons {
  display: flex;
  gap: 16px;
  flex-wrap: wrap;
} */

.hero-logo {
  display: flex;
  justify-content: center;
  align-items: center;
}

.hero-logo img {
  max-width: 400px;
  width: 100%;
  height: auto;
  filter: drop-shadow(0 20px 40px rgba(0, 0, 0, 0.4));
  animation: float 6s ease-in-out infinite;
}

@keyframes float {
  0%,
  100% {
    transform: translateY(0);
  }
  50% {
    transform: translateY(-20px);
  }
}

/* ========================================
   PROFIL SECTION
   ======================================== */
.profil {
  padding: 100px 0;
  background: var(--off-white);
}

.profil-content {
  display: grid;
  grid-template-columns: 1fr;
  gap: 50px;
  align-items: start;
}

.profil-text {
  background: var(--white);
  padding: 40px;
  border-radius: 16px;
  box-shadow: var(--shadow-md);
}

.profil-text h3 {
  font-size: 1.5rem;
  text-align: center;
  color: var(--primary-color);
  margin-bottom: 20px;
}

.profil-text p {
  color: var(--text-medium);
  line-height: 1.8;
  margin-bottom: 16px;
}

.profil-text p:last-child {
  margin-bottom: 0;
}

/* ========================================
   LAYANAN SECTION
   ======================================== */
.layanan {
  padding: 100px 0;
  background: var(--white);
}

.layanan-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 30px;
}

.layanan-card {
  background: var(--white);
  padding: 40px 30px;
  border-radius: 16px;
  box-shadow: var(--shadow-md);
  transition: var(--transition);
  border: 1px solid var(--light-gray);
  text-align: center;
}

.layanan-card:hover {
  transform: translateY(-8px);
  box-shadow: var(--shadow-xl);
  border-color: var(--secondary-color);
}

.layanan-icon {
  width: 80px;
  height: 80px;
  background: linear-gradient(
    135deg,
    var(--primary-color),
    var(--primary-light)
  );
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  margin: 0 auto 24px;
  transition: var(--transition);
}

.layanan-card:hover .layanan-icon {
  background: linear-gradient(
    135deg,
    var(--secondary-color),
    var(--secondary-light)
  );
  transform: scale(1.1);
}

.layanan-icon svg {
  width: 36px;
  height: 36px;
  color: var(--white);
}

.layanan-card h3 {
  font-size: 1.25rem;
  color: var(--primary-color);
  margin-bottom: 16px;
  font-weight: 600;
}

.layanan-card p {
  color: var(--text-medium);
  line-height: 1.7;
  margin-bottom: 0;
  font-size: 0.95rem;
}

/* ========================================
   VISI MISI SECTION
   ======================================== */
.visi-misi {
  padding: 100px 0;
  background: linear-gradient(180deg, var(--off-white) 0%, var(--white) 100%);
}

.visi-misi-content {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 40px;
}

.visi-misi-card {
  background: var(--white);
  padding: 50px 40px;
  border-radius: 20px;
  box-shadow: var(--shadow-lg);
  transition: var(--transition);
}

.visi-misi-card:hover {
  transform: translateY(-5px);
  box-shadow: var(--shadow-xl);
}

.vm-icon {
  width: 70px;
  height: 70px;
  border-radius: 16px;
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 24px;
}

.visi-misi-card:first-child .vm-icon {
  background: linear-gradient(
    135deg,
    var(--primary-color),
    var(--primary-light)
  );
}

.visi-misi-card:last-child .vm-icon {
  background: linear-gradient(
    135deg,
    var(--secondary-color),
    var(--secondary-light)
  );
}

.vm-icon svg {
  width: 32px;
  height: 32px;
  color: var(--white);
}

.visi-misi-card h3 {
  font-size: 1.5rem;
  color: var(--primary-color);
  margin-bottom: 20px;
}

.visi-misi-card > p {
  color: var(--text-medium);
  line-height: 1.8;
  font-size: 1.05rem;
}

.misi-list {
  padding-left: 0;
}

.misi-list li {
  color: var(--text-medium);
  line-height: 1.8;
  margin-bottom: 16px;
  padding-left: 30px;
  position: relative;
}

.misi-list li::before {
  content: "✓";
  position: absolute;
  left: 0;
  color: var(--secondary-color);
  font-weight: 700;
  font-size: 1.1rem;
}

.misi-list li:last-child {
  margin-bottom: 0;
}

/* ========================================
   KONTAK SECTION
   ======================================== */
.kontak {
  padding: 100px 0;
  background: var(--off-white);
}

.kontak-content {
  display: grid;
  grid-template-columns: .75fr;
  gap: 50px;
  justify-content: center;
}

.kontak-info {
  display: flex;
  flex-direction: column;
  gap: 24px;
}

.kontak-item {
  display: flex;
  gap: 20px;
  background: var(--white);
  padding: 24px;
  border-radius: 12px;
  box-shadow: var(--shadow-sm);
  transition: var(--transition);
  min-width: 0; /* Allow flex children to shrink properly on mobile */
}

.kontak-item:hover {
  box-shadow: var(--shadow-md);
  transform: translateX(5px);
}

.kontak-detail {
  min-width: 0; /* Prevent long text from forcing the card wider */
}

.kontak-detail p {
  color: var(--text-medium);
  line-height: 1.6;
  margin-bottom: 0;
  font-size: 0.95rem;
  overflow-wrap: anywhere;
}

.kontak-icon {
  width: 56px;
  height: 56px;
  background: linear-gradient(
    135deg,
    var(--primary-color),
    var(--primary-light)
  );
  border-radius: 12px;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}

.kontak-icon svg {
  width: 24px;
  height: 24px;
  color: var(--white);
}

.kontak-detail h4 {
  font-size: 1.1rem;
  color: var(--primary-color);
  margin-bottom: 8px;
  font-weight: 600;
}

.kontak-detail p {
  color: var(--text-medium);
  line-height: 1.6;
  margin-bottom: 0;
  font-size: 0.95rem;
}



/* ========================================
   FOOTER
   ======================================== */
.footer {
  background: var(--primary-dark);
  color: var(--white);
  padding: 60px 0 0;
}

.footer-content {
  display: grid;
  grid-template-columns: 2fr 1fr 1.5fr;
  gap: 50px;
  padding-bottom: 40px;
  border-bottom: 1px solid rgba(255, 255, 255, 0.1);
}

.footer-brand {
  padding-right: 30px;
}

.footer-logo {
  height: 60px;
  width: auto;
  margin-bottom: 20px;
}

.footer-brand > p {
  font-size: 1.2rem;
  font-weight: 600;
  color: var(--white);
  margin-bottom: 8px;
}

.footer-tagline {
  color: rgba(255, 255, 255, 0.7);
  font-size: 0.95rem;
  margin-bottom: 0;
}

.footer-links h4,
.footer-contact h4 {
  font-size: 1.1rem;
  color: var(--white);
  margin-bottom: 20px;
  font-weight: 600;
}

.footer-links ul li {
  margin-bottom: 12px;
}

.footer-links a {
  color: rgba(255, 255, 255, 0.75);
  font-size: 0.95rem;
  transition: var(--transition);
}

.footer-links a:hover {
  color: var(--secondary-color);
  padding-left: 5px;
}

.footer-contact p {
  color: rgba(255, 255, 255, 0.75);
  font-size: 0.95rem;
  line-height: 1.8;
  margin-bottom: 8px;
}

.footer-bottom {
  padding: 25px 0;
  text-align: center;
}

.footer-bottom p {
  color: rgba(255, 255, 255, 0.6);
  font-size: 0.9rem;
  margin-bottom: 0;
}

/* ========================================
   RESPONSIVE DESIGN
   ======================================== */
@media (max-width: 1024px) {
  .hero-content {
    grid-template-columns: 1fr;
    text-align: center;
  }

  .hero-text {
    order: 2;
  }

  .hero-logo {
    order: 1;
  }

  .hero-description {
    margin: 0 auto 36px;
  }

  /* .hero-buttons {
    justify-content: center;
  } */

  .profil-content {
    grid-template-columns: 1fr;
  }

  .visi-misi-content {
    grid-template-columns: 1fr;
  }

  .kontak-content {
    grid-template-columns: 1fr;
  }

  .footer-content {
    grid-template-columns: 1fr;
    gap: 40px;
  }
}

@media (max-width: 768px) {
  .hamburger {
    display: flex;
  }

  .nav-menu {
    position: fixed;
    top: 70px;
    left: -100%;
    width: 100%;
    background: var(--white);
    flex-direction: column;
    padding: 30px;
    gap: 20px;
    box-shadow: var(--shadow-md);
    transition: var(--transition);
  }

  .nav-menu.active {
    left: 0;
  }

  .hero {
    padding: 120px 0 60px;
  }

  .hero-title {
    font-size: 2.5rem;
  }

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

  .hero-logo img {
    max-width: 280px;
  }

  .section-title {
    font-size: 2rem;
  }

  .stats-grid {
    grid-template-columns: repeat(2, 1fr);
  }

  .stat-number {
    font-size: 2.5rem;
  }

  .layanan-grid {
    grid-template-columns: repeat(2, 1fr);
  }

  .kontak-content {
    gap: 30px; /* Reduce gap on mobile */
  }

  .kontak-item {
    padding: 20px; /* Reduce padding on mobile */
    gap: 16px; /* Reduce gap on mobile */
  }
}

@media (max-width: 480px) {
  .hero-title {
    font-size: 2rem;
  }


  .btn {
    width: 100%;
  }

  .profil-text,
  .layanan-card,
  .visi-misi-card {
    padding: 30px 20px;
  }

  .layanan-grid {
    grid-template-columns: 1fr;
  }

  .kontak-item {
    padding: 20px;
    gap: 16px;
  }

  .kontak-item:hover {
    transform: none; /* Remove horizontal transform to prevent overflow */
  }

  .stats-grid {
    grid-template-columns: 1fr;
  }

  .footer-content {
    text-align: center;
  }

  .footer-brand {
    padding-right: 0;
  }
}

/* Extra small screens - additional overflow prevention */
@media (max-width: 360px) {
  .container {
    padding: 0 15px; /* Reduce container padding further */
  }

  .kontak-content {
    gap: 20px; /* Reduce gap even more */
  }

  .kontak-form {
    padding: 20px 15px; /* Reduce form padding */
  }

  .kontak-item {
    padding: 16px; /* Reduce item padding */
    gap: 12px; /* Reduce gap between icon and text */
  }

  .hero-title {
    font-size: 1.8rem; /* Smaller title for very small screens */
  }
}

/* ========================================
   ANIMATIONS
   ======================================== */
@keyframes fadeInUp {
  from {
    opacity: 0;
    transform: translateY(30px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

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

.hero-text {
  animation: fadeInUp 1s ease-out;
}

.hero-logo {
  animation: fadeIn 1.2s ease-out;
}

/* Scroll animations */
.layanan-card,
.visi-misi-card,
.kontak-item {
  opacity: 1;
  transform: translateY(0);
  transition:
    opacity 0.6s ease,
    transform 0.6s ease;
}

/* Staggered animation delays */
.layanan-card:nth-child(1) {
  transition-delay: 0.1s;
}
.layanan-card:nth-child(2) {
  transition-delay: 0.2s;
}
.layanan-card:nth-child(3) {
  transition-delay: 0.3s;
}
.layanan-card:nth-child(4) {
  transition-delay: 0.4s;
}

.visi-misi-card:nth-child(1) {
  transition-delay: 0.1s;
}
.visi-misi-card:nth-child(2) {
  transition-delay: 0.2s;
}

.kontak-item:nth-child(1) {
  transition-delay: 0.1s;
}
.kontak-item:nth-child(2) {
  transition-delay: 0.15s;
}
.kontak-item:nth-child(3) {
  transition-delay: 0.2s;
}
.kontak-item:nth-child(4) {
  transition-delay: 0.25s;
}
