:root {
  /* Colors */
  --bg: #ffffff;
  --text: #0b0b0b;
  --muted: #6b7276;
  --accent: #000000;
  --accent-light: #333333;
  --border: rgba(0, 0, 0, 0.1);
  
  /* Spacing */
  --gap: 1.25rem;
  --container: 1100px;
  --section-padding: 4rem 0;
  
  /* Typography */
  --font-family: Inter, ui-sans-serif, system-ui, -apple-system, "Segoe UI", Roboto, "Helvetica Neue", Arial;
  
  /* Effects */
  --border-radius: 10px;
  --transition: all 0.3s ease;
  --shadow: 0 6px 20px rgba(0, 0, 0, 0.06);
  --shadow-hover: 0 14px 40px rgba(0, 0, 0, 0.12);
  
  /* Breakpoints */
  --mobile: 768px;
  --tablet: 1024px;
}

/* Reset & Base Styles */
* {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

html {
  scroll-behavior: smooth;
}

html, body {
  height: 100%;
}

body {
  background: var(--bg);
  color: var(--text);
  font-family: var(--font-family);
  line-height: 1.6;
  text-rendering: optimizeLegibility;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

/* Reduced motion for accessibility */
@media (prefers-reduced-motion: reduce) {
  *,
  *::before,
  *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
    scroll-behavior: auto !important;
  }
}

/* Container */
.container {
  max-width: var(--container);
  margin: 0 auto;
  padding: 0 2rem;
}

/* Header & Navigation */
.site-header {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  z-index: 10000;
  background: transparent;
  transition: var(--transition);
  padding: 1rem 0;
}

.site-header.scrolled {
  background: rgba(255, 255, 255, 0.95);
  backdrop-filter: blur(10px);
  box-shadow: 0 2px 20px rgba(0, 0, 0, 0.1);
}

.site-header.hide {
  transform: translateY(-100%);
  opacity: 0;
}

.header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: var(--gap);
}

.brand {
  display: flex;
  align-items: center;
  flex: 1;
}

.logo {
  height: 56px;
  width: auto;
  animation: logoFadeIn 1.2s ease-out forwards;
}

/* Navigation */
.nav-toggle {
  display: none;
  background: none;
  border: none;
  font-size: 1.5rem;
  cursor: pointer;
  padding: 0.5rem;
  color: inherit;
  z-index: 10001;
  transition: var(--transition);
}

.nav-toggle:hover {
  opacity: 0.7;
}

.nav {
  display: flex;
  gap: 1rem;
  align-items: center;
}

.nav a {
  color: inherit;
  text-decoration: none;
  padding: 0.5rem 1rem;
  border-radius: var(--border-radius);
  transition: var(--transition);
  font-weight: 500;
}

.nav a:hover {
  background: rgba(0, 0, 0, 0.05);
}

.nav .cta {
  border: 1px solid var(--accent);
  padding: 0.5rem 1.5rem;
}

.nav .active {
  font-weight: 700;
  color: var(--accent);
}

/* Mobile Navigation */
@media (max-width: 767px) {
  .nav-toggle {
    display: block;
  }
  
  .nav {
    display: none;
    flex-direction: column;
    position: absolute;
    top: 100%;
    right: 2rem;
    left: 2rem;
    background: var(--bg);
    border-radius: var(--border-radius);
    box-shadow: var(--shadow-hover);
    padding: 1rem;
    gap: 0.5rem;
    z-index: 10000;
  }
  
  .nav.active {
    display: flex;
    animation: slideDown 0.3s ease forwards;
  }
  
  .nav a {
    width: 100%;
    text-align: center;
    padding: 0.75rem 1rem;
  }
}

@keyframes slideDown {
  from {
    opacity: 0;
    transform: translateY(-10px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

/* Main Content Spacing */
main {
  min-height: 100vh;
}

body.home main {
  padding-top: 0;
}

body:not(.home) main {
  padding-top: 100px;
}

/* Hero Section */
.hero {
  height: 100vh;
  display: flex;
  align-items: center;
  justify-content: center;
  position: relative;
  background: 
    linear-gradient(rgba(0, 0, 0, 0.35), rgba(0, 0, 0, 0.35)),
    url('../assets/render6.jpg') center/cover no-repeat;
  background-attachment: scroll;
  color: #fff;
  text-align: center;
  padding: 0 2rem;
}

.hero-inner {
  max-width: 800px;
  margin: 0 auto;
}

.hero h1 {
  font-size: clamp(2rem, 6vw, 3.5rem);
  font-weight: 700;
  line-height: 1.2;
  margin: 0 0 1rem 0;
}

.lead {
  font-size: clamp(1.1rem, 2vw, 1.25rem);
  font-weight: 300;
  margin-bottom: 2rem;
  opacity: 0.9;
}

/* Buttons */
.btn {
  display: inline-block;
  padding: 0.75rem 1.5rem;
  border-radius: var(--border-radius);
  background: var(--accent);
  color: #fff;
  text-decoration: none;
  font-weight: 600;
  transition: var(--transition);
  position: relative;
  overflow: hidden;
  border: none;
  cursor: pointer;
}

.btn:hover {
  background: var(--accent-light);
  transform: translateY(-2px);
  box-shadow: 0 8px 25px rgba(0, 0, 0, 0.15);
}

.btn::after {
  content: "";
  position: absolute;
  inset: 0;
  background: rgba(255, 255, 255, 0.15);
  transform: translateX(-100%);
  transition: transform 0.4s ease;
}

.btn:hover::after {
  transform: translateX(0);
}

.link-more {
  color: var(--accent);
  text-decoration: none;
  font-weight: 600;
  transition: var(--transition);
}

.link-more:hover {
  color: var(--accent-light);
  text-decoration: underline;
}

/* Grid Layouts */
.grid-2 {
  display: grid;
  grid-template-columns: 1fr 320px;
  gap: 3rem;
  align-items: center;
}

.grid-3 {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
  gap: 2rem;
}

.grid-gallery {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
  gap: 2rem;
}

.projects-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 2rem;
}

/* Cards */
.card {
  background: #fff;
  border-radius: var(--border-radius);
  overflow: hidden;
  box-shadow: var(--shadow);
  transition: var(--transition);
  will-change: transform;
}

.card:hover {
  transform: translateY(-8px);
  box-shadow: var(--shadow-hover);
}

.card img {
  width: 100%;
  height: 200px;
  object-fit: cover;
  display: block;
  transition: transform 0.45s ease;
}

.card:hover img {
  transform: scale(1.05);
}

.card figcaption {
  padding: 1.5rem;
}

.card-content {
  padding: 1.5rem;
}

/* Project Cards */
.project-card {
  background: #fff;
  border-radius: var(--border-radius);
  overflow: hidden;
  box-shadow: var(--shadow);
  transition: var(--transition);
}

.project-card img {
  width: 100%;
  height: 220px;
  object-fit: cover;
  display: block;
  transition: transform 0.45s ease;
}

.project-card:hover img {
  transform: scale(1.04);
}

.project-card figcaption {
  padding: 1.5rem;
}

/* Utility Classes */
.center {
  text-align: center;
}

.sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}

/* Footer */
.site-footer {
  padding: 3rem 0;
  border-top: 1px solid var(--border);
  color: var(--muted);
  margin-top: 4rem;
}

.site-footer p {
  margin: 0.5rem 0;
}

/* Animations */
@keyframes logoFadeIn {
  0% {
    opacity: 0;
    transform: translateY(-15px) scale(0.95);
  }
  100% {
    opacity: 1;
    transform: translateY(0) scale(1);
  }
}

@keyframes fallIn {
  0% {
    opacity: 0;
    transform: translateY(-60px) rotate(8deg);
  }
  80% {
    opacity: 1;
    transform: translateY(10px) rotate(0);
  }
  100% {
    opacity: 1;
    transform: translateY(0);
  }
}

@keyframes waveMove {
  0% { 
    d: path("M0,100 C150,200 350,0 800,100 L800,200 L0,200 Z"); 
  }
  100% { 
    d: path("M0,120 C180,160 400,20 800,120 L800,200 L0,200 Z"); 
  }
}

/* Fall Text Animation */
.fall-text {
  display: inline-block;
}

.fall-text span {
  display: inline-block;
  opacity: 0;
  transform: translateY(-60px) rotate(8deg);
  animation: fallIn 0.6s cubic-bezier(0.3, 0.7, 0.4, 1.3) forwards;
}

.fall-text span:nth-child(1) { animation-delay: 0.1s; }
.fall-text span:nth-child(2) { animation-delay: 0.25s; }
.fall-text span:nth-child(3) { animation-delay: 0.4s; }
.fall-text span:nth-child(4) { animation-delay: 0.55s; }
.fall-text span:nth-child(5) { animation-delay: 0.7s; }
.fall-text span:nth-child(6) { animation-delay: 0.85s; }
.fall-text span:nth-child(7) { animation-delay: 1s; }
.fall-text span:nth-child(8) { animation-delay: 1.15s; }

/* Scroll Animations */
.reveal {
  opacity: 0;
  transform: translateY(60px);
  transition: opacity 0.8s ease, transform 0.8s ease;
  will-change: transform, opacity;
}

.reveal.is-visible {
  opacity: 1;
  transform: translateY(0);
}

/* Hero Decoration */
.hero-deco {
  position: absolute;
  left: 0;
  right: 0;
  bottom: 0;
  height: 70px;
  fill: rgba(0, 0, 0, 0.03);
}

.hero-deco path {
  animation: waveMove 6s ease-in-out infinite alternate;
}

/* Responsive Design */
@media (max-width: 1024px) {
  .container {
    padding: 0 1.5rem;
  }
  
  .grid-2 {
    grid-template-columns: 1fr;
    gap: 2rem;
  }
}

@media (max-width: 767px) {
  .container {
    padding: 0 1rem;
  }
  
  .logo {
    height: 70px !important;
  }
  
  .hero {
    height: 80vh;
    min-height: 500px;
    background-attachment: scroll !important;
  }
  
  .hero h1 {
    font-size: clamp(1.8rem, 8vw, 2.8rem);
  }
  
  .grid-2,
  .grid-3,
  .grid-gallery,
  .projects-grid {
    grid-template-columns: 1fr;
    gap: 1.5rem;
  }
  
  .btn {
    width: 100%;
    text-align: center;
  }
  
  body:not(.home) main {
    padding-top: 80px;
  }
}

@media (max-width: 480px) {
  .hero {
    padding: 0 1rem;
  }
  
  .hero-inner {
    padding: 0;
  }
  
  .card-content,
  .card figcaption,
  .project-card figcaption {
    padding: 1rem;
  }
}

/* Print Styles */
@media print {
  .site-header,
  .site-footer,
  .btn {
    display: none;
  }
  
  body {
    background: white;
    color: black;
    font-size: 12pt;
    line-height: 1.4;
  }
  
  .container {
    max-width: none;
    margin: 0;
    padding: 0;
  }
}

/* ===== GALERI SWIPER ===== */
.gallery-section {
  margin-top: 4rem;
  padding-bottom: 4rem;
}

.gallery-title {
  font-size: 1.75rem;
  font-weight: 600;
  text-align: center;
  margin-bottom: 2rem;
  color: var(--accent);
  position: relative;
}

.gallery-title::after {
  content: "";
  display: block;
  width: 60px;
  height: 3px;
  background: var(--accent);
  margin: 0.5rem auto 0;
  border-radius: 3px;
}

.swiper {
  width: 100%;
  padding-bottom: 3rem;
}

.card {
  background: #fff;
  border-radius: 1rem;
  overflow: hidden;
  box-shadow: 0 8px 20px rgba(0,0,0,0.1);
  transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.card:hover {
  transform: translateY(-6px);
  box-shadow: 0 12px 24px rgba(0,0,0,0.15);
}

.card img {
  width: 100%;
  height: 280px;
  object-fit: cover;
  display: block;
}

.card-text {
  padding: 1rem;
  text-align: center;
  font-size: 1rem;
  color: var(--text);
  background-color: #fff;
}

.swiper-button-next,
.swiper-button-prev {
  color: var(--accent);
  transition: 0.3s;
}

.swiper-button-next:hover,
.swiper-button-prev:hover {
  transform: scale(1.2);
}

.swiper-pagination-bullet {
  background: var(--muted);
  opacity: 0.6;
  transition: 0.3s;
}

.swiper-pagination-bullet-active {
  background: var(--accent);
  opacity: 1;
}

@media (max-width: 768px) {
  .card img {
    height: 220px;
  }
}

/* watermark logo card */
.card {
  position: relative;
}

.card::after {
  content: "";
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  width: 100px;
  height: 100px;
  background-image: url('../assets/logo.png');
  background-repeat: no-repeat;
  background-size: contain;
  opacity: 0.15;
  pointer-events: none;
}

/* =========================
   ROTATING CIRCLE TEXT
   ========================= */
.circle-text {
  position: absolute;
  top: 50%;
  left: 50%;
  width: 280px;
  height: 280px;
  transform: translate(-50%, -50%);
  border-radius: 50%;
  animation: rotateCircle 25s linear infinite;
  z-index: 0;
  opacity: 0.15;
  pointer-events: none;
}

.circle-text span {
  position: absolute;
  width: 100%;
  height: 100%;
  font-family: "Poppins", sans-serif;
  font-weight: 700;
  font-size: 1.2rem;
  color: var(--accent, #000);
  text-transform: uppercase;
  text-align: center;
  text-shadow: 0 0 10px rgba(0,0,0,0.3);
  line-height: 280px;
  animation: spinText 25s linear infinite reverse;
  letter-spacing: 4px;
}

/* Animasi rotasi luar */
@keyframes rotateCircle {
  from { transform: translate(-50%, -50%) rotate(0deg); }
  to { transform: translate(-50%, -50%) rotate(360deg); }
}

/* Agar teks tetap terbaca */
@keyframes spinText {
  from { transform: rotate(0deg); }
  to { transform: rotate(-360deg); }
}

/* =========================
   PROJECTS PAGE STYLES
   ========================= */

.projects-hero {
  position: relative;
  height: 50vh;
  background: url('../assets/projects-bg.jpg') center/cover no-repeat;
  display: flex;
  align-items: center;
  justify-content: center;
  text-align: center;
  overflow: hidden;
}
.hero-overlay {
  position: absolute;
  inset: 0;
  background: rgba(0,0,0,0.5);
}
.hero-text {
  position: relative;
  z-index: 2;
  color: #fff;
}
.fade-in-up {
  opacity: 0;
  transform: translateY(20px);
  animation: fadeUp 1.5s ease forwards;
}
.fade-in-up.delay {
  animation-delay: 0.5s;
}
@keyframes fadeUp {
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

/* Swiper carousel styling */
.projects-carousel {
  padding: 4rem 0;
}
.project-card {
  position: relative;
  overflow: hidden;
  border-radius: 1.25rem;
  box-shadow: 0 8px 30px rgba(0,0,0,0.1);
}
.project-card img {
  width: 100%;
  height: 420px;
  object-fit: cover;
  transition: transform 0.6s ease;
}
.project-card:hover img {
  transform: scale(1.08);
}
.project-info {
  position: absolute;
  bottom: 0;
  left: 0;
  width: 100%;
  background: linear-gradient(to top, rgba(0,0,0,0.6), transparent);
  color: #fff;
  padding: 1.2rem;
  opacity: 0;
  transform: translateY(20px);
  transition: all 0.5s ease;
}
.project-card:hover .project-info {
  opacity: 1;
  transform: translateY(0);
}
.project-info h3 {
  margin: 0;
  font-size: 1.25rem;
}
.project-info p {
  font-size: 0.95rem;
  opacity: 0.85;
}

/* Swiper controls */
.swiper {
  padding: 2rem 0;
}
.swiper-button-next,
.swiper-button-prev {
  color: var(--accent, #000);
  transition: transform 0.3s ease;
}
.swiper-button-next:hover,
.swiper-button-prev:hover {
  transform: scale(1.2);
}
.swiper-pagination-bullet-active {
  background: var(--accent, #000);
}

/* Efek muncul setiap geser */
.project-info.animate-text {
  animation: fadeText 0.8s ease forwards;
}

@keyframes fadeText {
  from {
    opacity: 0;
    transform: translateY(20px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

/* SWIPER PROJECT STYLE */
.projects-carousel {
  margin: 5rem auto;
}

.project-card {
  position: relative;
  overflow: hidden;
  border-radius: 16px;
  box-shadow: 0 10px 30px rgba(0,0,0,0.15);
  background: #fff;
}

.project-card img {
  width: 100%;
  height: 420px;
  object-fit: cover;
  transition: transform 0.6s ease;
}

.project-card:hover img {
  transform: scale(1.05);
}

.project-info {
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
  padding: 1rem;
  background: rgba(0, 0, 0, 0.55);
  color: #fff;
  opacity: 0;
  transform: translateY(20px);
  transition: opacity 0.5s ease, transform 0.5s ease;
  text-align: left;
}

.project-info.animate-text {
  opacity: 1;
  transform: translateY(0);
}

/* RESPONSIVE FIX */
@media (max-width: 768px) {
  .swiper-button-next,
  .swiper-button-prev {
    display: none;
  }

  .project-card img {
    height: 280px;
  }

  .project-info {
    opacity: 1;
    background: rgba(0, 0, 0, 0.5);
    transform: translateY(0);
  }
}

/* ===== ABOUT PAGE ===== */
.about-hero {
  position: relative;
  height: 70vh;
  background: url('../assets/about-bg.jpg') center/cover no-repeat;
  display: flex;
  align-items: center;
  justify-content: center;
  color: #fff;
  text-align: center;
}

.about-hero .hero-overlay {
  position: absolute;
  inset: 0;
  background: rgba(0,0,0,0.4);
}

.about-hero .hero-text {
  position: relative;
  z-index: 1;
  animation: fadeUp 1s ease-out forwards;
}


.about-section {
  margin: 5rem auto;
}

.about-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 2.5rem;
  align-items: center;
}

.about-text p {
  margin-top: 1rem;
  line-height: 1.6;
  color: var(--muted);
}

.about-image img {
  width: 100%;
  border-radius: 16px;
  box-shadow: 0 10px 30px rgba(0,0,0,0.15);
}

/* Filosofi */
.values-section {
  margin: 6rem auto;
  text-align: center;
}

.values-grid {
  margin-top: 2rem;
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
  gap: 2rem;
}

.value-card {
  background: #fff;
  border-radius: 16px;
  padding: 2rem;
  box-shadow: 0 8px 24px rgba(0,0,0,0.08);
  transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.value-card:hover {
  transform: translateY(-8px);
  box-shadow: 0 12px 32px rgba(0,0,0,0.12);
}

/* ANIMATIONS */
.fade-in-up {
  opacity: 0;
  transform: translateY(20px);
  animation: fadeUp 1.2s forwards;
}

@keyframes fadeUp {
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

/* Responsive */
@media (max-width: 768px) {
  .about-grid {
    grid-template-columns: 1fr;
  }

  .about-hero {
    height: 50vh;
    background-position: center;
  }

  .about-text {
    text-align: center;
  }
}

/* ===== Projects Intro Section ===== */
.projects-intro {
  text-align: center;
  margin: 6rem auto 4rem;
  max-width: 800px;
  padding: 0 1rem;
  animation: fadeInUp 1.2s ease-out forwards;
}

.projects-intro h2 {
  font-size: clamp(1.8rem, 4vw, 2.5rem);
  font-weight: 600;
  margin-bottom: 1rem;
  color: var(--text);
  letter-spacing: 1px;
}

.projects-intro p {
  font-size: 1.05rem;
  line-height: 1.7;
  color: var(--muted);
}

/* Responsif */
@media (max-width: 768px) {
  .projects-intro h2 {
    font-size: 1.6rem;
  }

  .projects-intro p {
    font-size: 0.95rem;
  }
}

.contact-hero {
  position: relative;
  height: 60vh;
  background: url('../assets/contact-bg.jpg') center/cover no-repeat;
  display: flex;
  align-items: center;
  justify-content: center;
  text-align: center;
  color: #fff;
}

.contact-hero .hero-overlay {
  position: absolute;
  inset: 0;
  background: rgba(0,0,0,0.45);
}

.contact-hero .hero-text {
  position: relative;
  z-index: 1;
}

.contact-section {
  margin: 5rem auto;
  text-align: center;
}

.contact-grid {
  margin-top: 3rem;
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 2rem;
  align-items: start;
}

.contact-info {
  text-align: left;
}

.contact-form {
  display: flex;
  flex-direction: column;
  gap: 1rem;
}

.contact-form input,
.contact-form textarea {
  width: 100%;
  padding: 0.9rem 1rem;
  border: 1px solid #ddd;
  border-radius: 10px;
  font-size: 1rem;
}

.contact-form .btn {
  background: var(--accent, #000);
  color: #fff;
  border: none;
  padding: 0.9rem;
  border-radius: 10px;
  cursor: pointer;
  transition: 0.3s;
}

.contact-form .btn:hover {
  background: #333;
}

/* Responsif */
@media (max-width: 768px) {
  .contact-grid {
    grid-template-columns: 1fr;
  }
}

.map-section {
  margin-top: 5rem;
  text-align: center;
}

.map-container {
  margin-top: 1.5rem;
  border-radius: 16px;
  overflow: hidden;
  box-shadow: 0 8px 24px rgba(0,0,0,0.15);
}

/* Animasi muncul lembut */
.fade-in-up {
  opacity: 0;
  transform: translateY(20px);
  animation: fadeUp 1s ease forwards;
}

@keyframes fadeUp {
  to {
    opacity: 1;
    transform: translateY(0);
  }
}


.why-choose-us {
  text-align: center;
  padding: 5rem 1rem;
  background: #f8f8f8;
  border-radius: 1.5rem;
  margin-top: 4rem;
}

.why-choose-us h2 {
  font-size: 2rem;
  font-weight: 700;
  margin-bottom: 1rem;
}

.why-choose-us h2 span {
  color: var(--accent);
}

.why-choose-us .lead {
  max-width: 750px;
  margin: 0 auto 3rem;
  color: var(--muted);
  line-height: 1.6;
}

.benefit-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
  gap: 2rem;
}

.benefit-card {
  background: #fff;
  padding: 2rem 1.5rem;
  border-radius: 1rem;
  box-shadow: 0 6px 18px rgba(0,0,0,0.08);
  transition: transform 0.3s ease, box-shadow 0.3s ease;
  text-align: left;
}

.benefit-card:hover {
  transform: translateY(-6px);
  box-shadow: 0 12px 25px rgba(0,0,0,0.15);
}

.benefit-card h3 {
  margin-bottom: 0.5rem;
  font-size: 1.1rem;
  color: var(--accent);
}

.benefit-card p {
  color: var(--text);
  line-height: 1.5;
  font-size: 0.95rem;
}

.cta-center {
  text-align: center;
  margin-top: 3rem;
}

.btn.highlight {
  background: var(--accent);
  color: #fff;
  padding: 0.9rem 2rem;
  border-radius: 50px;
  text-decoration: none;
  font-weight: 600;
  transition: background 0.3s ease, transform 0.3s ease;
}

.btn.highlight:hover {
  background: #222;
  transform: scale(1.05);
}

/* === Warna tombol hamburger === */

/* Default (Home) — hitam */
body.home .nav-toggle {
  color: #000;
}

/* Halaman lain (Projects, About, Contact) — putih */
body.projects .nav-toggle,
body.about .nav-toggle,
body.contact .nav-toggle {
  color: #fff;
}

/* Hover putih transparan biar halus */
body.projects .nav-toggle:hover,
body.about .nav-toggle:hover,
body.contact .nav-toggle:hover {
  color: rgba(255, 255, 255, 0.8);
}

/* Saat discroll, tetap jadi hitam di semua halaman */
header.scrolled .nav-toggle {
  color: #000 !important;
}




/* === Warna teks menu di halaman selain Home === */
body.projects .nav a,
body.about .nav a,
body.contact .nav a {
  color: #fff;
}

/* Saat hover tetap putih tapi agak transparan */
body.projects .nav a:hover,
body.about .nav a:hover,
body.contact .nav a:hover {
  color: rgba(255, 255, 255, 0.8);
}

/* Warna default di halaman Home */
body.home .nav a {
  color: #000;
}

/* Aktif link (menu yang sedang dibuka) */
.nav a.active {
  font-weight: 600;
  text-decoration: underline;
}


/* === NAV MENU DROPDOWN di MOBILE === */
.nav.active {
  background: white;
  box-shadow: 0 4px 12px rgba(0,0,0,0.1);
  border-radius: 8px;
}

.nav.active a {
  color: #000 !important; /* teks hitam biar kontras */
}

/* Hover biar ada efek */
.nav.active a:hover {
  color: #555;
}

/* === UMUM (dipakai semua perangkat) === */
.nav {
  display: flex;
  gap: 2rem;
  align-items: center;
  transition: all 0.3s ease;
}

.nav a {
  color: #000;
  text-decoration: none;
  font-weight: 500;
  transition: color 0.3s ease;
}

.nav a:hover {
  color: #555;
}

/* Tombol hamburger (disembunyikan di desktop) */
.nav-toggle {
  display: none;
  background: none;
  border: none;
  cursor: pointer;
  flex-direction: column;
  gap: 5px;
  z-index: 1001;
}

.nav-toggle span {
  width: 25px;
  height: 3px;
  background-color: #000;
  border-radius: 2px;
  transition: all 0.3s ease;
}

/* === TAMPILAN MOBILE === */
@media (max-width: 768px) {
  .nav {
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    flex-direction: column;
    background: #fff;
    text-align: center;
    transform: translateY(-10px);
    opacity: 0;
    pointer-events: none;
    border-radius: 0 0 12px 12px;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
  }

  .nav.active {
    transform: translateY(0);
    opacity: 1;
    pointer-events: all;
  }

  .nav-toggle {
    display: flex;
  }
}

/* === TAMPILAN DESKTOP === */
@media (min-width: 769px) {
  .nav {
    position: static;
    opacity: 1;
    transform: none;
    pointer-events: all;
    background: transparent;
    box-shadow: none;
  }

  .nav a {
    color: #000; /* Ganti jadi #fff kalau di halaman lain ingin putih */
  }

  .nav-toggle {
    display: none; /* Tombol hamburger disembunyikan */
  }
}
/* === CARD GALLERY === */
.grid-gallery {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 2rem;
  justify-items: center;
  padding: 2rem 1rem;
}

.card {
  background: #fff;
  border-radius: 20px;
  overflow: hidden;
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.08);
  transition: all 0.35s ease;
  max-width: 360px;
}

.card:hover {
  transform: translateY(-10px);
  box-shadow: 0 16px 36px rgba(0, 0, 0, 0.15);
}

.card img {
  width: 100%;
  height: 240px;
  object-fit: cover;
  transition: transform 0.5s ease;
}

.card:hover img {
  transform: scale(1.05);
}

.card h3 {
  font-size: 1.1rem;
  text-align: center;
  margin: 1rem 0 1.5rem;
  font-weight: 600;
  color: #222;
}

/* === OPTIONAL: animasi masuk halus === */
.reveal {
  opacity: 0;
  transform: translateY(30px);
  transition: all 0.7s ease;
}
.reveal.is-visible {
  opacity: 1;
  transform: translateY(0);
}

/* ==== FIX: Halaman tidak bisa digeser ke samping (mobile) ==== */
html, body {
  overflow-x: hidden !important;
  width: 100%;
  max-width: 100%;
}

/* ==== FIX: Elemen-elemen yang bisa keluar dari layar ==== */
.container,
.section,
header,
footer,
main,
.hero,
.gallery-section {
  max-width: 100vw;
  overflow-x: clip;
}

/* ==== IZINKAN Swiper & GLightbox tetap tampil normal ==== */
.swiper,
.swiper-wrapper,
.swiper-slide,
.glightbox-container {
  overflow: visible !important;
}

/* ==== FIX: Cegah “scroll loncat ke atas” di lightbox mobile ==== */
body.glightbox-open {
  position: fixed;
  width: 100%;
  overflow-y: hidden;
}

/* ==== Background putih di kanan (kadang muncul) ==== */
body {
  background-color: var(--bg, #ffffff);
  overscroll-behavior-x: none;
}

/* ==== Prevent transform overflow (kadang efek hover buat leak scroll) ==== */
.card,
.project-card,
.value-card,
.benefit-card {
  transform: translateZ(0);
  backface-visibility: hidden;
}

/* === SWIPER STYLING === */
.swiper {
  width: 100%;
  padding-bottom: 40px;
}

.project-card {
  overflow: hidden;
  border-radius: 16px;
  background: #111;
  color: #fff;
  transition: transform 0.3s ease;
}

.project-card img {
  width: 100%;
  height: auto;
  display: block;
  transition: transform 0.4s ease;
}

.project-card:hover img {
  transform: scale(1.05);
}

.project-info {
  padding: 16px;
  text-align: left;
}

.project-info h3 {
  margin-bottom: 8px;
  font-size: 1.2rem;
  color: #fff;
}

.project-info p {
  font-size: 0.95rem;
  opacity: 0.8;
}

/* === Warna dan gaya tombol Swiper === */
.swiper-button-next,
.swiper-button-prev {
  color: rgba(255, 255, 255, 0.7);
  transition: color 0.3s ease, transform 0.3s ease;
  z-index: 10;
}

.swiper-button-next:hover,
.swiper-button-prev:hover {
  color: rgba(255, 255, 255, 1);
  transform: scale(1.1);
}

.swiper-button-next::after,
.swiper-button-prev::after {
  font-size: 28px;
}

/* === Pagination (bulat kecil) === */
.swiper-pagination-bullet {
  background: rgba(255, 255, 255, 0.6);
  opacity: 1;
}
.swiper-pagination-bullet-active {
  background: #fff;
}

/* === Responsif Mobile === */
@media (max-width: 768px) {
  .project-card {
    border-radius: 12px;
  }
  .swiper-button-next::after,
  .swiper-button-prev::after {
    font-size: 20px;
  }
}

/* 🔹 Ubah ukuran & warna ikon swiper */
.swiper-button-next,
.swiper-button-prev {
  color: rgba(255, 255, 255, 0.7); /* putih agak transparan */
  width: 35px;
  height: 35px;
  transition: all 0.3s ease;
}

/* 🔹 Efek hover biar halus */
.swiper-button-next:hover,
.swiper-button-prev:hover {
  color: rgba(255, 255, 255, 1);
  transform: scale(1.1);
}

/* 🔹 Perkecil ikon panah bawaan */
.swiper-button-next::after,
.swiper-button-prev::after {
  font-size: 20px; /* default-nya sekitar 44px */
}
@media (max-width: 768px) {
  .swiper-button-next,
  .swiper-button-prev {
    width: 25px;
    height: 25px;
  }

  .swiper-button-next::after,
  .swiper-button-prev::after {
    font-size: 16px;
  }
}

.card {
  position: relative;
  border-radius: 0; /* kotak tegas */
  overflow: hidden;
}

.card img {
  width: 100%;
  height: auto; /* tinggi otomatis sesuai rasio */
  display: block;
  object-fit: cover; /* full image */
}

.card-text {
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
  padding: 10px;
  background: linear-gradient(to top, rgba(0,0,0,0.6), transparent);
  color: #fff;
  text-align: left;
}

.card-text h3 {
  margin: 0 0 5px;
  font-size: 1rem;
}

.btn-small {
  display: inline-block;
  margin-top: 5px;
  padding: 5px 10px;
  background: #ff6600;
  color: #fff;
  text-decoration: none;
  font-size: 0.8rem;
  border-radius: 4px;
}

/* Hover effect ringan */
.card:hover img {
  transform: scale(1.03);
  transition: transform 0.3s ease;
}

/* Responsif Swiper */
@media (max-width: 768px) {
  .card-text h3 {
    font-size: 0.9rem;
  }
  .btn-small {
    font-size: 0.7rem;
    padding: 4px 8px;
  }
}


