/* === CV. KARYA ASTA KENCANA | Tema Konstruksi Modern Minimalis === */
:root {
  --bg: #f5f8fc;
  --muted: #6b7280;
  --primary: #007bff;
  --accent: #004a99;
  --card: #ffffff;
  --maxw: 1100px;
  --radius: 12px;
  --ff: 'Inter', system-ui, -apple-system, 'Segoe UI', Roboto, Arial;
}

/* Reset dasar */
* {
  box-sizing: border-box;
}

body {
  background: linear-gradient(
      rgba(255, 255, 255, 0.9),
      rgba(245, 248, 255, 0.95)
    ),
    url('../img/bg-construction.jpg') no-repeat center center fixed;
  background-size: cover;
  background-attachment: fixed;
}


/* Overlay lembut biar teks tetap terbaca */
body::before {
  content: "";
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: linear-gradient(
    rgba(240, 245, 255, 0.8),
    rgba(255, 255, 255, 0.85)
  );
  z-index: -1;
}

.container {
  max-width: var(--maxw);
  margin: 0 auto;
  padding: 28px;
}

/* === NAVBAR MODERN === */
.navbar {
  position: sticky;
  top: 0;
  z-index: 100;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 28px;
  padding: 14px 40px;
  background: rgba(255, 255, 255, 0.8);
  backdrop-filter: blur(12px);
  border-bottom: 1px solid rgba(0, 74, 173, 0.1);
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.05);
  transition: all 0.3s ease;
}

/* Saat discroll, navbar menjadi lebih solid */
.navbar.scrolled {
  background: rgba(255, 255, 255, 0.95);
  box-shadow: 0 4px 12px rgba(0, 74, 173, 0.15);
  padding: 10px 40px;
}

/* === LINK MENU === */
.navbar a {
  position: relative;
  text-decoration: none;
  color: #003366;
  font-weight: 600;
  font-size: 15px;
  letter-spacing: 0.2px;
  transition: color 0.3s ease;
}

.navbar a::after {
  content: "";
  position: absolute;
  bottom: -4px;
  left: 0;
  width: 0%;
  height: 2px;
  background: #ffcc00;
  border-radius: 4px;
  transition: width 0.3s ease;
}

.navbar a:hover {
  color: #004aad;
}

.navbar a:hover::after {
  width: 100%;
}

/* === WHATSAPP BUTTON === */
.nav-contact {
  margin-left: auto;
  display: flex;
  align-items: center;
}

.btn-whatsapp {
  display: flex;
  align-items: center;
  gap: 8px;
  background: linear-gradient(135deg, #25d366, #1ebc5d);
  color: white;
  padding: 10px 20px;
  border-radius: 50px;
  font-weight: 600;
  text-decoration: none;
  transition: all 0.3s ease;
  box-shadow: 0 4px 10px rgba(37, 211, 102, 0.35);
  font-size: 14px;
}

.btn-whatsapp:hover {
  background: linear-gradient(135deg, #1ebc5d, #25d366);
  transform: translateY(-3px);
  box-shadow: 0 6px 14px rgba(37, 211, 102, 0.45);
}

.icon-whatsapp {
  width: 18px;
  height: 18px;
  fill: white;
  transition: transform 0.3s ease;
}

.btn-whatsapp:hover .icon-whatsapp {
  transform: rotate(15deg) scale(1.1);
}

/* === ANIMASI MASUK === */
.navbar {
  animation: fadeDown 0.6s ease-out both;
}

@keyframes fadeDown {
  from {
    opacity: 0;
    transform: translateY(-20px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

/* === RESPONSIVE === */
@media (max-width: 900px) {
  .navbar {
    flex-wrap: wrap;
    gap: 16px;
    justify-content: center;
  }

  .nav-contact {
    margin-left: 0;
  }

  .btn-whatsapp {
    font-size: 13px;
    padding: 8px 16px;
  }
}


nav a {
  color: var(--muted);
  text-decoration: none;
  padding: 8px 10px;
  border-radius: 8px;
  transition: 0.25s;
}

nav a:hover {
  color: var(--accent);
  background: #e8f3ff;
}

/* === Hero Section === */
.hero {
  display: flex;
  gap: 24px;
  align-items: center;
  padding: 60px 0;
}

.hero-left {
  flex: 1;
}

.kicker {
  display: inline-block;
  padding: 6px 10px;
  border-radius: 999px;
  background: #e6f3ff;
  color: var(--primary);
  font-weight: 700;
  font-size: 13px;
}

h1 {
  font-size: 36px;
  margin: 12px 0;
  color: var(--accent);
}

.lead {
  color: var(--muted);
  margin: 0 0 18px;
}

.cta {
  display: flex;
  gap: 12px;
}

.btn {
  padding: 12px 16px;
  border-radius: 10px;
  text-decoration: none;
  font-weight: 700;
  transition: 0.3s;
}

.btn-primary {
  background: var(--primary);
  color: #fff;
  box-shadow: 0 3px 8px rgba(0, 123, 255, 0.3);
}

.btn-primary:hover {
  background: var(--accent);
}

.btn-secondary {
  border: 1px solid #dbeafe;
  color: var(--muted);
  background: transparent;
}

.hero-right {
  width: 420px;
  height: 260px;
  border-radius: 12px;
  overflow: hidden;
  background: #eaf6ff;
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 3px 10px rgba(0, 123, 255, 0.1);
}

/* === Konten === */
section {
  padding: 40px 0;
  border-top: 1px solid #e2e8f0;
}

h2 {
  font-size: 22px;
  margin: 0 0 16px;
  color: var(--accent);
}

.card {
  background: var(--card);
  padding: 18px;
  border-radius: 12px;
  border: 1px solid #eef4fb;
  box-shadow: 0 1px 4px rgba(0, 0, 0, 0.04);
}

.grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 12px;
}

.service, .stat {
  padding: 12px;
  border-radius: 10px;
  background: #fff;
  border: 1px solid #f1f5f9;
  box-shadow: 0 2px 6px rgba(0, 0, 0, 0.05);
}

/* === Galeri Proyek === */
.gallery {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 10px;
}

.thumb {
  height: 180px;
  border-radius: 8px;
  background-size: cover;
  background-position: center;
  border: 1px solid #e2e8f0;
  box-shadow: 0 2px 6px rgba(0, 123, 255, 0.08);
}

/* === Tim Pengurus === */
.team {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 12px;
}

.person img {
  width: 100%;
  height: 160px;
  object-fit: cover;
  border-radius: 8px;
  border: 2px solid #e2e8f0;
}

/* === FOOTER === */
footer {
  background: #111;
  color: #f2f2f2;
  padding: 60px 20px 20px;
  font-size: 15px;
  line-height: 1.6;
}

.footer-container {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
  gap: 30px;
  max-width: 1200px;
  margin: 0 auto;
}

.footer-container h3,
.footer-container h4 {
  color: #ffcc00;
  margin-bottom: 10px;
  letter-spacing: 0.5px;
}

.footer-about p {
  color: #ddd;
  margin-top: 10px;
}

.footer-contact a,
.footer-social a {
  color: #ffcc00;
  text-decoration: none;
  transition: 0.3s;
}

.footer-contact a:hover,
.footer-social a:hover {
  color: #fff;
}

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

.footer-social li {
  margin: 6px 0;
}

.footer-bottom {
  text-align: center;
  border-top: 1px solid #333;
  margin-top: 40px;
  padding-top: 15px;
  color: #aaa;
  font-size: 14px;
}


/* === Responsif === */
@media (max-width: 980px) {
  .grid { grid-template-columns: repeat(2, 1fr); }
  .gallery { grid-template-columns: repeat(2, 1fr); }
  .team { grid-template-columns: repeat(2, 1fr); }
}

@media (max-width: 600px) {
  nav { display: none; }
  .hero { flex-direction: column; text-align: center; }
  .grid, .gallery, .team { grid-template-columns: 1fr; }
}
/* ===== Slideshow Styles ===== */
.slideshow-container {
  position: relative;
  width: 100%;
  height: 100%;
  border-radius: 12px;
  overflow: hidden;
}

.slide {
  position: absolute;
  width: 100%;
  height: 100%;
  object-fit: cover;
  border-radius: 12px;
  opacity: 0;
  transition: opacity 1s ease-in-out;
}

.slide.active {
  opacity: 1;
}
.scroll-overlay {
  position: fixed;
  inset: 0;
  background: radial-gradient(
    circle at top right,
    rgba(0,100,200,0.25),
    transparent 70%
  );
  transform: translateY(-50px);
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.8s ease, transform 1.2s ease;
  z-index: 5;
}

.scroll-overlay.visible {
  opacity: 1;
  transform: translateY(0);
}
/* === TikTok Section === */
.tiktok-section {
  padding: 60px 0;
  background: linear-gradient(180deg, #ffffff, #f3f8ff);
  text-align: center;
  border-top: 1px solid #e2e8f0;
}

.tiktok-section h2 {
  font-size: 26px;
  color: var(--accent);
  margin-bottom: 10px;
}

.tiktok-section .subtitle {
  color: var(--muted);
  margin-bottom: 32px;
  font-size: 15px;
}

.tiktok-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 20px;
  justify-items: center;
}

.tiktok-embed {
  background: #fff;
  border-radius: 12px;
  box-shadow: 0 3px 12px rgba(0, 0, 0, 0.08);
  transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.tiktok-embed:hover {
  transform: translateY(-6px);
  box-shadow: 0 6px 20px rgba(0, 123, 255, 0.25);
}

