/* ==============================
   GLOBAL RESET & VARIABLES
============================== */
* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

:root {
  /* Responsive Spacing Scale */
  --space-xs: clamp(0.5rem, 0.8vw, 1rem);
  --space-sm: clamp(1rem, 1.2vw, 1.5rem);
  --space-md: clamp(2rem, 2vw, 3rem);
  --space-lg: clamp(3rem, 3vw, 4rem);
  --space-xl: clamp(4rem, 4vw, 6rem);

  /* Container width */
  --container-padding: clamp(1rem, 5vw, 4rem);

  /* Colors */
  --primary: #a12356;
  --primary-dark: #8e1d49;
  --text-dark: #111;
  --text-light: #555;
  --gray-bg: #f4f4f4;
  --white: #fff;
}



html {
  scroll-behavior: smooth;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}

/* ==============================
   BASE TYPOGRAPHY
============================== */

body {
  font-family: 'General Sans';
  color: #000;
  line-height: 2.0;
  font-size: 16px;
}

h1, h2, h3, h4, h5, h6 {
  font-family: 'General Sans';
  font-weight: 700;
  line-height: 1.5;
  margin-bottom: 0.5em;
}

h1 {
  font-size: 72px;
  line-height: 1;
}

p {
  font-family: 'General Sans';
  font-weight: 400;
  margin-bottom: 1.5em;
}

li, a, button, input, textarea {
  font-family: 'General Sans';
  font-weight: 400;
}

/* ==============================
   margin-bottom: var(--space-lg); 
============================== */

body {
  color: var(--text-dark);
  line-height: 1.6;
  background: var(--white);
}

.container {
  width: min(100% - var(--container-padding) * 2, 1100px);
  margin-inline: auto;
}

/* ==============================
   HEADER
============================== */
header {
  background: var(--white);
  color: var(--text-dark);
  padding-block: var(--space-sm);
  position: sticky;
  top: 0;
  z-index: 1000;
  width: 100%;
  box-shadow: 0 2px 5px rgba(0, 0, 0, 0.1);
  border-bottom: 1px solid #eee;
}

header .container {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 12px var(--container-padding); /* lebih compact */
}

/* ========================= */
/* HEADER BASE STYLES */
/* ========================= */
.logo {
  display: flex;
  align-items: center;
  z-index: 1001; /* selalu di atas */
}

.logo img {
  height: 36px; /* lebih kecil di mobile */
  width: auto;

  vertical-align: middle;
}

nav ul {
  display: flex;
  list-style: none;
  gap: var(--space-md);
  align-items: center;
}

nav ul li a {
  text-decoration: none;
  color: #000;
  font-weight: 500;
  transition: color 0.3s ease;
}

nav ul li a:hover {
  color: #a23366;
}

.btn-nav {
  background-color: #a23366;
  color: #fff !important;
  padding: 0.5rem 1.2rem;
  border-radius: 999px;
  transition: background 0.3s ease;
}

.btn-nav:hover {
  background-color: #8a2a55;
}

/* ========================= */
/* HAMBURGER MENU STYLES */
/* ========================= */
.hamburger {
  display: none;
  flex-direction: column;
  justify-content: space-between;
  width: 24px;
  height: 18px;
  cursor: pointer;
}

.hamburger span {
  display: block;
  height: 3px;
  width: 100%;
  background: #000;
  border-radius: 2px;
  transition: all 0.3s ease;
}

/* ========================= */
/* RESPONSIVE MENU */
/* ========================= */
 @media (max-width: 768px) {
  .nav-menu {
  position: fixed;
  top: 0;
  right: -100%;
  width: 75%;
  height: 100vh;
  
  background: rgba(255, 255, 255, 0.7); /* transparan */
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px); /* safari support */
  
  box-shadow: -4px 0 20px rgba(0,0,0,0.1);


  transition: right 0.3s ease;
  z-index: 2000; /* HARUS lebih tinggi dari header */
  padding: 100px var(--space-md) var(--space-md);
}

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

  nav ul {
    display: flex;
    flex-direction: column;
    gap: 1.2rem;
    width: 100%;
  }

  nav ul li {
    width: 100%;
  }

  nav ul li a {
    display: block;
    width: 100%;
    padding: 0.5rem 0;
    font-size: 1rem;
  }

  /* Hamburger stays visible above menu */
  .hamburger {
    display: flex;
    position: relative;
    z-index: 2100; /* pastikan di atas menu */
  }

  /* Hamburger to X animation */
  .hamburger.active span:nth-child(1) {
    transform: rotate(45deg) translate(5px, 5px);
  }

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

  .hamburger.active span:nth-child(3) {
    transform: rotate(-45deg) translate(5px, -5px);
  }
}



nav ul {
  list-style: none;
  display: flex;
  align-items: center;
  gap: var(--space-sm);
}

nav a {
  color: var(--text-dark);
  text-decoration: none;
  font-weight: 500;
  transition: color 0.3s;
}

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


/* ==============================
   HERO (FULL IMAGE BACKGROUND)
============================== */
.hero {
  position: relative;
  min-height: 100vh;
  background: url("images/hero.jpg") center/cover no-repeat;
  display: flex;
  align-items: center;
}

/* Overlay gelap + gradient */
.hero-overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(
    to right,
    rgba(0, 0, 0, 0.65) 0%,
    rgba(0, 0, 0, 0.4) 40%,
    rgba(0, 0, 0, 0.1) 70%,
    transparent 100%
  );
  z-index: 1;
}

/* Inner content */
.hero-inner {
  position: relative;
  z-index: 2;
  width: 100%;
}

/* Text content */
.hero-content {
  max-width: 600px;
  color: #fff;
  padding-left: var(--container-padding);
}

.hero-content h1 {
  font-size: clamp(2.5rem, 5vw, 4.5rem);
  line-height: 1.1;
}

.hero-content p {
  margin: 1rem 0 2rem;
  color: rgba(255,255,255,0.8);
}

@media (max-width: 768px) {

  .hero {
    position: relative;
    min-height: 100dvh;
    display: cover;
    align-items: center;
    justify-content: center;
    text-align: center;
    overflow: hidden;



    
    padding: var(--space-xl) var(--space-xl);
  }

  .hero-image {
    position: absolute;
    inset: 0;
    z-index: 0;
  }


  .hero-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
  }

  

  /* overlay lebih gelap full */
  .hero-overlay {
    background: linear-gradient(
      to bottom,
      rgba(0,0,0,0.4),
      rgba(0,0,0,0.8)
    );
  }

  /* content di atas */
  .hero-content {
    position: relative;
    z-index: 2;
    padding-inline: var(--space-md);
  }

  .hero-content h1 {
    font-size: 2.2rem;
  }

  .hero-content p {
    font-size: 0.95rem;
  }
}

.hero-content {
  animation: fadeUp 0.8s ease;
}

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

/* ============================
   ABOUT US SECTION (DESKTOP)
============================ */
.about {
  padding-block: var(--space-xl);
  background: #fff;
}

.about-container {
  display: grid;
  grid-template-columns: 1.1fr 1fr; /* teks kiri lebih lebar */
  align-items: start;
  gap: var(--space-lg);
}

.about-text p {
  margin-bottom: 1rem;
  line-height: 1.6;
}

/* Process list (kanan) */
.about-process {
  display: flex;
  flex-direction: column;
  gap: var(--space-md);
}

.process-item {
  display: flex;
  align-items: flex-start;
  gap: var(--space-sm);
}

.process-item .icon {
  background: #a23366;
  color: #fff;
  padding: 1rem;
  border-radius: 1rem;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.3rem;
  min-width: 60px;
  height: 60px;
}

.process-item h4 {
  margin: 0;
  font-size: 1.2rem;
  font-weight: 700;
}

.process-item p {
  margin-top: 0.2rem;
  font-size: 1rem;
  line-height: 1.5;
}

/* ============================
   RESPONSIVE BREAKPOINTS
============================ */

/* Tablet (2 kolom masih oke tapi lebih rapat) */
@media (max-width: 992px) {
  .about-container {
    grid-template-columns: 1fr;
    gap: var(--space-xl);
  }
}

/* Mobile */
@media (max-width: 768px) {

  .about {
    padding-block: var(--space-lg);
  }

  .about-container {
    grid-template-columns: 1fr; /* Ubah jadi 1 kolom */
    padding-inline: var(--space-md); /* Biar tidak mentok */
  }

  /* Process item styling */
  .process-item {
    align-items: center;
  }

  .process-item .icon {
    min-width: 50px;
    height: 50px;
    font-size: 1.1rem;
    padding: 0.8rem;
  }

  .process-item h4 {
    font-size: 1.05rem;
  }

  .process-item p {
    font-size: 0.9rem;
  }
}


/* ==============================
   SECTION LAYOUT
============================== */
.section {
  padding-block: var(--space-lg);
  text-align: center;
}

.gray {
  background: var(--gray-bg);
}

/* ==============================
   SERVICES, TEAM, CARDS
============================== */
.cards {
  display: flex;
  text-decoration: none;
  gap: var(--space-md);
  justify-content: center;
  flex-wrap: wrap;
  margin-top: var(--space-md);
}

.card {
  text-decoration: none;
  background: var(--white);
  padding: var(--space-sm);
  border-radius: 10px;
  width: 300px;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
  transition: transform 0.3s ease, box-shadow 0.3s ease;
  
}
.card p {
  color: #666;
}

.card:hover {
  transform: translateY(-5px);
  box-shadow: 0 6px 12px rgba(0, 0, 0, 0.1);
}

.team-grid {
  display: flex;
  justify-content: center;
  flex-wrap: wrap;
  gap: var(--space-md);
  margin-top: var(--space-md);
}

.team-member {
  text-align: center;
}

.team-member img {
  border-radius: 50%;
  width: 120px;
  height: 120px;
  object-fit: cover;
}

/* ==============================
   CLIENT / PARTNER SECTION
============================== */
.partners-carousel {
  overflow: hidden;
  position: relative;
  margin-top: var(--space-md);
  width: 100%;
}

.logos-track {
  display: flex;
  gap: var(--space-lg);
  animation: scroll 25s linear infinite;
}

.logos-track img {
  width: 150px;
  opacity: 0.8;
  transition: opacity 0.3s, transform 0.3s;
}

.logos-track img:hover {
  opacity: 1;
  transform: scale(1.1);
}

@keyframes scroll {
  0% { transform: translateX(0); }
  100% { transform: translateX(-50%); }
}

/* ==============================
   CONTACT FORM
============================== */
form {
  display: flex;
  flex-direction: column;
  gap: var(--space-sm);
  max-width: 500px;
  margin: auto;
}

input,
textarea {
  padding: var(--space-xs);
  border: 1px solid #ccc;
  border-radius: 5px;
  font-size: 1rem;
}

/* ==============================
   BUTTON STYLES
============================== */
.btn-primary {
  display: inline-block;
  background: var(--primary);
  color: var(--white);
  padding: var(--space-xs) var(--space-md);
  border-radius: 50px;
  text-decoration: none;
  font-weight: 600;
  transition: background 0.3s, transform 0.2s;
  text-align: center;
}

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

.btn-outline {
  display: inline-block;
  border: 2px solid var(--primary);
  color: var(--primary);
  padding: calc(var(--space-xs) - 2px) calc(var(--space-md) - 2px);
  border-radius: 50px;
  text-decoration: none;
  font-weight: 600;
  transition: all 0.3s;
  background: transparent;
}

.btn-outline:hover {
  background: var(--primary);
  color: var(--white);
}

/* ==============================
   FOOTER
============================== */
footer {
  background: #fafafa;
  text-align: center;
  padding: var(--space-lg) var(--container-padding);
  color: var(--text-light);
  border-top: 1px solid #eee;
  margin-top: var(--space-lg);
}

.footer-container {
  max-width: 800px;
  margin: auto;
}

.footer-logo {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: var(--space-xs);
  margin-bottom: var(--space-sm);
}

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

.footer-socials {
  display: flex;
  justify-content: center;
  gap: var(--space-md);
  margin-bottom: var(--space-md);
}

.footer-socials a {
  color: var(--primary);
  font-size: 1.5rem;
  transition: color 0.3s;
}

.footer-socials a:hover {
  color: var(--primary-dark);
}

.footer-btn {
  display: inline-block;
  background: var(--primary);
  color: var(--white);
  padding: var(--space-xs) var(--space-lg);
  border-radius: 50px;
  text-decoration: none;
  font-weight: 600;
  transition: background 0.3s;
}

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

/* ==============================
   RESPONSIVE ADJUSTMENTS
============================== */
@media (max-width: 900px) {
  .hero {
    grid-template-columns: 1fr;
    min-height: auto;
  }

  .hero-content {
    padding-block: var(--space-lg);
    text-align: center;
  }

  .hero-image {
    height: 60vh;
  }

  nav ul {
    flex-wrap: wrap;
    justify-content: center;
  }
}


/* ==============================
Recent Work
============================== */
.recent-work {
  text-align: center;
  padding-block: var(--space-xl);
  background-color: #fff;
}


.work-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: var(--space-md);
  justify-content: center;
  margin-bottom: var(--space-lg);
}

.work-card {
  background: #fff;
  border: 1px solid #eee;
  border-radius: 1rem;
  overflow: hidden;
  text-decoration: none;
  color: inherit;
  transition: transform 0.3s ease, box-shadow 0.3s ease;
  box-shadow: 0 2px 6px rgba(0, 0, 0, 0.05);
}

.work-card:hover {
  transform: translateY(-5px);
  box-shadow: 0 6px 12px rgba(0, 0, 0, 0.1);
}

.work-card img {
  width: 100%;
  height: 230px;
  object-fit: cover;
  border-bottom: 1px solid #eee;
}

.work-content {
  padding: var(--space-sm);
  text-align: left;
}

.work-content h3 {
  font-size: 1.1rem;
  font-weight: 600;
  margin-bottom: 0.5rem;
}

.work-content p {
  color: #666;
  font-size: 0.9rem;
}

.work-button {
  display: flex;
  justify-content: center;
}

.btn-primary {
  background-color: #a23366;
  color: #fff;
  padding: 0.7rem 2rem;
  border-radius: 999px;
  text-decoration: none;
  font-weight: 500;
  transition: background 0.3s ease;
}

.btn-primary:hover {
  background-color: #8a2a55;
}


/* ===============================
   LIGHTBOX IMAGE VIEWER
=============================== */
/* ===============================
   MASONRY GALLERY (PINTEREST STYLE)
================================ */

.gallery {
  column-count: 3;
  column-gap: 20px; /* horizontal spacing */
  width: 100%;
  max-width: 1200px;
  margin: 0 auto;
}

/* SETIAP ITEM WAJIB .gallery-item */
.gallery-item {
  break-inside: avoid;       /* mencegah patahan jelek */
  margin-bottom: 20px;       /* vertical spacing */
  border-radius: 12px;
  overflow: hidden;
  display: block;
}

.gallery-item img {
  width: 100%;
  height: auto;
  display: block;
  border-radius: 12px;
  cursor: pointer;
  transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.gallery-item img:hover {
  transform: scale(1.02);
  box-shadow: 0px 8px 25px rgba(0,0,0,0.15);
}


/* ----------- RESPONSIVE ----------- */

@media (max-width: 768px) {
  .gallery {
    column-count: 2;
    column-gap: 16px;
  }

  .gallery-item {
    margin-bottom: 16px;
  }
}

@media (max-width: 480px) {
  .gallery {
    column-count: 1;
  }
}


/* Lightbox overlay */
.lightbox {
  display: none;
  position: fixed;
  inset: 0;
  background: rgba(0, 0, 0, 0.85);
  justify-content: center;
  align-items: center;
  z-index: 2000;
}

/* Lightbox active */
.lightbox.active {
  display: flex;
}

/* Image in lightbox */
.lightbox-image {
  max-width: 90%;
  max-height: 85vh;
  border-radius: 8px;
  box-shadow: 0 0 25px rgba(0, 0, 0, 0.3);
}

/* Close button */
.lightbox .close {
  position: absolute;
  top: 20px;
  right: 30px;
  font-size: 2rem;
  color: #fff;
  cursor: pointer;
  user-select: none;
  transition: 0.2s;
}

.lightbox .close:hover {
  color: #a23366;
}

