/* ===== RESET & BASE ===== */
*,
*::before,
*::after {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

:root {
  --red: #A02C28;
  --red-dark: #7A201D;
  --red-light: #C44440;
  --charcoal: #2E2C2D;
  --charcoal-light: #4A4748;
  --white: #FFFFFF;
  --gray-light: #F5F5F5;
  --gray: #E0E0E0;
  --gray-dark: #888888;
  --whatsapp: #A02C28;
  --whatsapp-dark: #7E2220;
  --font: 'Segoe UI', Roboto, 'Helvetica Neue', Arial, sans-serif;
}

html {
  scroll-behavior: smooth;
  scroll-padding-top: 70px;
}

body {
  font-family: var(--font);
  color: var(--charcoal);
  line-height: 1.6;
  background: var(--white);
  -webkit-font-smoothing: antialiased;
}

img {
  max-width: 100%;
  height: auto;
  display: block;
}

a {
  color: var(--red);
  text-decoration: none;
  transition: color 0.2s;
}

a:hover {
  color: var(--red-dark);
}

.container {
  width: 100%;
  max-width: 1140px;
  margin: 0 auto;
  padding: 0 20px;
}

/* ===== NAVBAR ===== */
.navbar {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 1000;
  background: rgba(46, 44, 45, 0.95);
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
  transition: box-shadow 0.3s;
}

.navbar.scrolled {
  box-shadow: 0 2px 20px rgba(0, 0, 0, 0.15);
}

.navbar-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 64px;
}

.navbar-logo {
  display: flex;
  align-items: center;
  gap: 10px;
  color: var(--white);
  font-weight: 700;
  font-size: 1.1rem;
  text-decoration: none;
}

.navbar-logo:hover {
  color: var(--white);
}

.navbar-logo img {
  border-radius: 6px;
}

.navbar-menu {
  display: flex;
  gap: 8px;
}

.nav-link {
  color: rgba(255, 255, 255, 0.8);
  padding: 8px 14px;
  border-radius: 6px;
  font-size: 0.9rem;
  font-weight: 500;
  transition: color 0.2s, background 0.2s;
}

.nav-link:hover {
  color: var(--white);
  background: rgba(255, 255, 255, 0.1);
}

/* Hamburger */
.navbar-toggle {
  display: none;
  flex-direction: column;
  gap: 5px;
  background: none;
  border: none;
  cursor: pointer;
  padding: 8px;
}

.navbar-toggle span {
  display: block;
  width: 24px;
  height: 2px;
  background: var(--white);
  border-radius: 2px;
  transition: transform 0.3s, opacity 0.3s;
}

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

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

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

/* ===== HERO ===== */
.hero {
  background: var(--charcoal);
  color: var(--white);
  padding: 120px 0 80px;
  text-align: center;
  position: relative;
  overflow: hidden;
}

.hero::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: radial-gradient(ellipse at center bottom, rgba(160, 44, 40, 0.2) 0%, transparent 70%);
  pointer-events: none;
}

.hero-content {
  position: relative;
  z-index: 1;
}

.hero-logo {
  width: 180px;
  height: 180px;
  margin: 0 auto 28px;
  filter: drop-shadow(0 4px 20px rgba(0, 0, 0, 0.3));
}

.hero h1 {
  font-size: 1.8rem;
  font-weight: 800;
  line-height: 1.2;
  margin-bottom: 16px;
  letter-spacing: -0.02em;
}

.hero-subtitle {
  font-size: 1.05rem;
  color: rgba(255, 255, 255, 0.75);
  max-width: 500px;
  margin: 0 auto 32px;
  line-height: 1.5;
}

/* ===== BUTTONS ===== */
.btn {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  padding: 14px 28px;
  border-radius: 50px;
  font-size: 1rem;
  font-weight: 600;
  text-decoration: none;
  transition: transform 0.2s, box-shadow 0.2s, background 0.2s;
  cursor: pointer;
  border: none;
}

.btn:hover {
  transform: translateY(-2px);
  box-shadow: 0 6px 20px rgba(0, 0, 0, 0.2);
}

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

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

/* ===== SECTIONS ===== */
.section {
  padding: 64px 0;
}

.section-alt {
  background: var(--gray-light);
}

.section-title {
  font-size: 1.6rem;
  font-weight: 800;
  text-align: center;
  margin-bottom: 8px;
  color: var(--charcoal);
  letter-spacing: -0.02em;
}

.section-subtitle {
  text-align: center;
  color: var(--gray-dark);
  max-width: 500px;
  margin: 0 auto 40px;
  font-size: 0.95rem;
}

/* ===== SERVICES ===== */
.services-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 20px;
}

.service-card {
  background: var(--white);
  border-radius: 16px;
  padding: 32px 24px;
  text-align: center;
  box-shadow: 0 2px 12px rgba(0, 0, 0, 0.06);
  transition: transform 0.2s, box-shadow 0.2s;
}

.service-card:hover {
  transform: translateY(-4px);
  box-shadow: 0 8px 30px rgba(0, 0, 0, 0.1);
}

.service-icon {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 72px;
  height: 72px;
  border-radius: 16px;
  background: rgba(160, 44, 40, 0.08);
  color: var(--red);
  margin-bottom: 20px;
}

.service-card h3 {
  font-size: 1.15rem;
  font-weight: 700;
  margin-bottom: 10px;
  color: var(--charcoal);
}

.service-card p {
  color: var(--charcoal-light);
  font-size: 0.9rem;
  line-height: 1.6;
}

/* ===== GALLERY ===== */
.gallery-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 12px;
}

.gallery-item {
  aspect-ratio: 4/3;
  border-radius: 12px;
  overflow: hidden;
}

.gallery-item img,
.gallery-item video {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.3s;
}

.gallery-item:hover img,
.gallery-item:hover video {
  transform: scale(1.05);
}

.gallery-item {
  position: relative;
}

.gallery-label {
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
  padding: 10px 12px;
  background: linear-gradient(transparent, rgba(0, 0, 0, 0.7));
  color: var(--white);
  font-size: 0.8rem;
  font-weight: 600;
}

/* ===== PORTFOLIO CAROUSEL ===== */
.portfolio-projects {
  display: flex;
  flex-direction: column;
  gap: 28px;
}

.portfolio-project {
  background: var(--white);
  border-radius: 12px;
  padding: 20px;
  box-shadow: 0 2px 12px rgba(0, 0, 0, 0.06);
}

.portfolio-project-header {
  display: flex;
  align-items: center;
  gap: 12px;
  margin-bottom: 16px;
}

.portfolio-project-header h3 {
  font-size: 1.05rem;
  font-weight: 700;
  color: var(--charcoal);
}

.portfolio-tag {
  background: rgba(160, 44, 40, 0.08);
  color: var(--red);
  font-size: 0.75rem;
  font-weight: 600;
  padding: 3px 10px;
  border-radius: 50px;
}

.portfolio-carousel-wrapper {
  position: relative;
}

.portfolio-carousel-track {
  display: flex;
  flex-wrap: nowrap;
  gap: 12px;
  overflow-x: auto;
  scroll-behavior: smooth;
  scroll-snap-type: x mandatory;
  -webkit-overflow-scrolling: touch;
  padding-bottom: 8px;
}

.portfolio-carousel-track::-webkit-scrollbar {
  height: 6px;
}

.portfolio-carousel-track::-webkit-scrollbar-track {
  background: var(--gray);
  border-radius: 3px;
}

.portfolio-carousel-track::-webkit-scrollbar-thumb {
  background: var(--red-light);
  border-radius: 3px;
}

.portfolio-slide {
  flex: 0 0 220px;
  min-width: 220px;
  aspect-ratio: 4/3;
  border-radius: 10px;
  overflow: hidden;
  scroll-snap-align: start;
}

.portfolio-slide img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.3s;
}

.portfolio-slide:hover img {
  transform: scale(1.05);
}

.portfolio-carousel-btn {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  background: var(--white);
  border: none;
  width: 36px;
  height: 36px;
  border-radius: 50%;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.15);
  cursor: pointer;
  font-size: 1.1rem;
  color: var(--charcoal);
  display: flex;
  align-items: center;
  justify-content: center;
  transition: background 0.2s;
  z-index: 2;
}

.portfolio-carousel-btn:hover {
  background: var(--gray-light);
}

.portfolio-carousel-prev { left: -12px; }
.portfolio-carousel-next { right: -12px; }

/* Portfolio filters */
.portfolio-filters {
  display: flex;
  justify-content: center;
  gap: 8px;
  margin-bottom: 28px;
  flex-wrap: wrap;
}

.portfolio-filter {
  background: var(--white);
  border: 2px solid var(--gray);
  color: var(--charcoal-light);
  padding: 8px 20px;
  border-radius: 50px;
  font-size: 0.85rem;
  font-weight: 600;
  cursor: pointer;
  transition: background 0.2s, border-color 0.2s, color 0.2s;
}

.portfolio-filter:hover {
  border-color: var(--red-light);
  color: var(--red);
}

.portfolio-filter.active {
  background: var(--red);
  border-color: var(--red);
  color: var(--white);
}

/* Video slides */
.portfolio-slide video {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.portfolio-slide:hover video {
  transform: scale(1.05);
}

.portfolio-slide video {
  transition: transform 0.3s;
}

/* Stage label on slides */
.portfolio-slide {
  position: relative;
}

.portfolio-slide-label {
  position: absolute;
  top: 8px;
  left: 8px;
  background: rgba(46, 44, 45, 0.75);
  color: var(--white);
  font-size: 0.7rem;
  font-weight: 600;
  padding: 2px 10px;
  border-radius: 50px;
  text-transform: capitalize;
  pointer-events: none;
}

/* Item count */
.portfolio-project-count {
  margin-top: 10px;
  font-size: 0.8rem;
  color: var(--gray-dark);
  text-align: right;
}

/* ===== ABOUT / TIMELINE ===== */
.timeline {
  position: relative;
  max-width: 900px;
  margin: 0 auto 48px;
  padding-left: 24px;
}

.timeline::before {
  content: '';
  position: absolute;
  left: 0;
  top: 0;
  bottom: 0;
  width: 3px;
  background: var(--gray);
  border-radius: 3px;
}

.timeline-item {
  position: relative;
  padding-left: 32px;
  padding-bottom: 48px;
}

.timeline-item:last-child {
  padding-bottom: 0;
}

.timeline-item::before {
  content: '';
  position: absolute;
  left: -7px;
  top: 0;
  width: 17px;
  height: 17px;
  border-radius: 50%;
  background: var(--red);
  border: 3px solid var(--gray-light);
  z-index: 1;
}

.timeline-year {
  display: inline-block;
  background: var(--red);
  color: var(--white);
  font-weight: 800;
  font-size: 0.85rem;
  padding: 4px 14px;
  border-radius: 50px;
  margin-bottom: 12px;
  letter-spacing: 0.02em;
}

.timeline-image {
  margin-bottom: 16px;
  border-radius: 12px;
  overflow: hidden;
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.1);
}

.timeline-image img {
  width: 100%;
  height: 260px;
  object-fit: cover;
  object-position: center top;
}

.timeline-content h3 {
  font-size: 1.2rem;
  font-weight: 700;
  margin-bottom: 8px;
  color: var(--charcoal);
}

.timeline-content p {
  color: var(--charcoal-light);
  font-size: 0.93rem;
  line-height: 1.65;
}

.about-stats {
  display: flex;
  justify-content: center;
  gap: 24px;
  flex-wrap: wrap;
  padding: 32px 0;
  border-top: 1px solid var(--gray);
  max-width: 600px;
  margin: 0 auto;
}

.stat {
  text-align: center;
  min-width: 80px;
}

.stat strong {
  display: block;
  font-size: 1.5rem;
  font-weight: 800;
  color: var(--red);
}

.stat span {
  font-size: 0.8rem;
  color: var(--gray-dark);
}

/* Tablet: side-by-side timeline items */
@media (min-width: 768px) {
  .timeline {
    padding-left: 0;
  }

  .timeline::before {
    left: 50%;
    transform: translateX(-50%);
  }

  .timeline-item {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 48px;
    padding-left: 0;
    align-items: center;
  }

  .timeline-item::before {
    left: calc(50% - 8px);
  }

  .timeline-item .timeline-image {
    margin-bottom: 0;
  }

  .timeline-item .timeline-content {
    padding-left: 24px;
  }

  .timeline-item.reverse .timeline-image {
    order: 2;
  }

  .timeline-item.reverse .timeline-content {
    order: 1;
    text-align: right;
    padding-left: 0;
    padding-right: 24px;
  }

  .timeline-item.reverse .timeline-year {
    direction: rtl;
  }

  .timeline-image img {
    height: 260px;
  }
}

/* ===== CONTACT ===== */
.contact-content {
  display: grid;
  grid-template-columns: 1fr;
  gap: 32px;
}

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

.contact-item {
  display: flex;
  gap: 16px;
  align-items: flex-start;
}

.contact-item svg {
  flex-shrink: 0;
  color: var(--red);
  margin-top: 2px;
}

.contact-item strong {
  display: block;
  margin-bottom: 4px;
  font-weight: 600;
}

.contact-item p {
  color: var(--charcoal-light);
  font-size: 0.9rem;
  line-height: 1.5;
}

.contact-item a {
  color: var(--red);
  font-weight: 500;
}

.contact-map iframe {
  width: 100%;
  border-radius: 12px;
}

/* ===== FOOTER ===== */
.footer {
  background: var(--charcoal);
  color: rgba(255, 255, 255, 0.7);
  padding: 40px 0;
  text-align: center;
}

.footer-content {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 16px;
}

.footer-brand {
  display: flex;
  align-items: center;
  gap: 10px;
  color: var(--white);
  font-weight: 700;
  font-size: 1.05rem;
}

.footer-brand img {
  border-radius: 6px;
}

.footer-info p {
  font-size: 0.85rem;
  line-height: 1.6;
}

.footer-info a {
  color: rgba(255, 255, 255, 0.7);
}

.footer-info a:hover {
  color: var(--white);
}

.footer-copy {
  font-size: 0.8rem;
  color: rgba(255, 255, 255, 0.4);
  margin-top: 8px;
}

/* ===== FLOATING WHATSAPP ===== */
.whatsapp-float {
  position: fixed;
  bottom: 24px;
  right: 24px;
  z-index: 999;
  display: flex;
  align-items: center;
  justify-content: center;
  width: 56px;
  height: 56px;
  border-radius: 50%;
  background: var(--whatsapp);
  box-shadow: 0 4px 16px rgba(160, 44, 40, 0.4);
  transition: transform 0.2s, box-shadow 0.2s;
  animation: pulse 2s infinite;
}

.whatsapp-float:hover {
  transform: scale(1.1);
  box-shadow: 0 6px 24px rgba(160, 44, 40, 0.5);
}

@keyframes pulse {
  0%, 100% { box-shadow: 0 4px 16px rgba(37, 211, 102, 0.4); }
  50% { box-shadow: 0 4px 24px rgba(37, 211, 102, 0.6); }
}

/* ===== RESPONSIVE: TABLET (768px) ===== */
@media (min-width: 768px) {
  .hero {
    padding: 140px 0 100px;
  }

  .hero-logo {
    width: 200px;
    height: 200px;
  }

  .hero h1 {
    font-size: 2.4rem;
  }

  .section {
    padding: 80px 0;
  }

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

  .services-grid {
    grid-template-columns: repeat(3, 1fr);
  }

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

  .portfolio-slide {
    flex: 0 0 300px;
  }

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

/* ===== RESPONSIVE: DESKTOP (1024px) ===== */
@media (min-width: 1024px) {
  .hero h1 {
    font-size: 2.8rem;
  }

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

  .section {
    padding: 100px 0;
  }

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

  .timeline-image img {
    height: 300px;
  }
}

/* ===== RESPONSIVE: MOBILE NAV ===== */
@media (max-width: 767px) {
  .navbar-toggle {
    display: flex;
  }

  .navbar-menu {
    position: fixed;
    top: 64px;
    left: 0;
    right: 0;
    background: rgba(46, 44, 45, 0.98);
    backdrop-filter: blur(8px);
    -webkit-backdrop-filter: blur(8px);
    flex-direction: column;
    padding: 16px 20px;
    gap: 4px;
    transform: translateY(-100%);
    opacity: 0;
    pointer-events: none;
    transition: transform 0.3s, opacity 0.3s;
  }

  .navbar-menu.active {
    transform: translateY(0);
    opacity: 1;
    pointer-events: auto;
  }

  .nav-link {
    padding: 12px 16px;
    font-size: 1rem;
  }

  .portfolio-slide {
    flex: 0 0 160px;
    min-width: 160px;
  }

  .portfolio-carousel-btn {
    display: none;
  }

  .portfolio-project {
    padding: 14px;
  }
}

/* ===== ACTIVE NAV STATE ===== */
.nav-link.active {
  color: var(--white);
  background: rgba(255, 255, 255, 0.15);
}

/* ===== SUB-PAGE HERO ===== */
.subpage-hero {
  background: var(--charcoal);
  color: var(--white);
  padding: 100px 0 40px;
}

.subpage-hero h1 {
  font-size: 1.8rem;
  font-weight: 800;
  margin-bottom: 8px;
  letter-spacing: -0.02em;
}

.subpage-hero-desc {
  color: rgba(255, 255, 255, 0.7);
  font-size: 1rem;
  max-width: 500px;
}

@media (min-width: 768px) {
  .subpage-hero {
    padding: 120px 0 48px;
  }

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

/* ===== BREADCRUMB ===== */
.breadcrumb {
  display: flex;
  align-items: center;
  gap: 6px;
  font-size: 0.85rem;
  margin-bottom: 16px;
}

.breadcrumb a {
  color: rgba(255, 255, 255, 0.6);
  text-decoration: none;
}

.breadcrumb a:hover {
  color: var(--white);
}

.breadcrumb-sep {
  color: rgba(255, 255, 255, 0.3);
}

.breadcrumb-current {
  color: rgba(255, 255, 255, 0.9);
  font-weight: 500;
}

/* ===== OUTLINE BUTTON ===== */
.btn-outline {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 12px 28px;
  border-radius: 50px;
  font-size: 0.95rem;
  font-weight: 600;
  color: var(--red);
  border: 2px solid var(--red);
  background: transparent;
  text-decoration: none;
  transition: background 0.2s, color 0.2s, transform 0.2s;
  cursor: pointer;
}

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

/* ===== SERVICE DETAIL LIST ===== */
.service-card-detail {
  text-align: left;
}

.service-card-detail .service-icon {
  margin-bottom: 16px;
}

.service-detail-list {
  list-style: none;
  margin-top: 16px;
  padding: 0;
}

.service-detail-list li {
  position: relative;
  padding-left: 20px;
  margin-bottom: 8px;
  color: var(--charcoal-light);
  font-size: 0.9rem;
  line-height: 1.5;
}

.service-detail-list li::before {
  content: '';
  position: absolute;
  left: 0;
  top: 8px;
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: var(--red);
}

/* ===== LIGHTBOX (galeri page only) ===== */
.lightbox-overlay {
  position: fixed;
  inset: 0;
  z-index: 2000;
  background: rgba(0, 0, 0, 0.92);
  display: flex;
  align-items: center;
  justify-content: center;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.25s;
}

.lightbox-overlay.active {
  opacity: 1;
  pointer-events: auto;
}

.lightbox-content {
  position: relative;
  max-width: 90vw;
  max-height: 85vh;
  display: flex;
  flex-direction: column;
  align-items: center;
}

.lightbox-content img,
.lightbox-content video {
  max-width: 90vw;
  max-height: 80vh;
  object-fit: contain;
  border-radius: 8px;
}

.lightbox-caption {
  color: rgba(255, 255, 255, 0.8);
  font-size: 0.85rem;
  text-align: center;
  margin-top: 12px;
  max-width: 600px;
  line-height: 1.5;
}

.lightbox-close {
  position: absolute;
  top: -40px;
  right: 0;
  background: none;
  border: none;
  color: var(--white);
  font-size: 2rem;
  cursor: pointer;
  width: 40px;
  height: 40px;
  display: flex;
  align-items: center;
  justify-content: center;
  opacity: 0.7;
  transition: opacity 0.2s;
}

.lightbox-close:hover {
  opacity: 1;
}

.lightbox-nav {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  background: rgba(255, 255, 255, 0.15);
  border: none;
  color: var(--white);
  width: 44px;
  height: 44px;
  border-radius: 50%;
  font-size: 1.4rem;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: background 0.2s;
}

.lightbox-nav:hover {
  background: rgba(255, 255, 255, 0.3);
}

.lightbox-prev { left: -60px; }
.lightbox-next { right: -60px; }

.lightbox-counter {
  color: rgba(255, 255, 255, 0.5);
  font-size: 0.8rem;
  margin-top: 8px;
}

/* Galeri slides clickable cursor */
.galeri-clickable .portfolio-slide {
  cursor: pointer;
}

@media (max-width: 767px) {
  .lightbox-prev { left: 8px; }
  .lightbox-next { right: 8px; }

  .lightbox-nav {
    width: 36px;
    height: 36px;
    font-size: 1.2rem;
  }

  .lightbox-close {
    top: -36px;
    right: -4px;
  }
}

/* ===== CTA SECTION ===== */
.cta-section {
  text-align: center;
  padding: 48px 0 16px;
  margin-top: 48px;
  border-top: 1px solid var(--gray);
}

.cta-section h2 {
  font-size: 1.4rem;
  font-weight: 800;
  margin-bottom: 8px;
  color: var(--charcoal);
}

.cta-section p {
  color: var(--gray-dark);
  margin-bottom: 24px;
  font-size: 0.95rem;
}
