/* ── Reset & Base ── */
*, *::before, *::after { margin: 0; padding: 0; box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  font-family: 'Inter', system-ui, sans-serif;
  color: #1a1a1a;
  line-height: 1.6;
  background: #fff;
}
a { text-decoration: none; color: inherit; }
ul { list-style: none; }
img { max-width: 100%; display: block; }

/* ── Utilities ── */
.container { max-width: 1120px; margin: 0 auto; padding: 0 24px; }
.section { padding: 96px 0; }
.section-alt { background: #f7f7f5; }
.section-title { font-size: 2rem; font-weight: 700; text-align: center; margin-bottom: 12px; }
.section-subtitle { text-align: center; color: #666; margin-bottom: 48px; max-width: 520px; margin-left: auto; margin-right: auto; }

/* ── Buttons ── */
.btn {
  display: inline-block;
  padding: 14px 32px;
  background: #1a1a1a;
  color: #fff;
  font-weight: 600;
  font-size: 0.95rem;
  border-radius: 6px;
  border: 2px solid #1a1a1a;
  cursor: pointer;
  transition: background 0.2s, color 0.2s;
}
.btn:hover { background: #333; border-color: #333; }
.btn-outline { background: transparent; color: #fff; border-color: #fff; }
.btn-outline:hover { background: #fff; color: #1a1a1a; }
.btn-sm { padding: 10px 24px; font-size: 0.875rem; }

/* ── Nav ── */
.nav {
  position: fixed; top: 0; left: 0; right: 0; z-index: 100;
  padding: 20px 0;
  transition: background 0.3s, padding 0.3s, box-shadow 0.3s;
}
.nav.scrolled {
  background: #fff;
  padding: 12px 0;
  box-shadow: 0 1px 12px rgba(0,0,0,0.08);
}
.nav.scrolled .logo,
.nav.scrolled .nav-links a { color: #1a1a1a; }
.nav.scrolled .btn-sm { background: #1a1a1a; color: #fff !important; }
.nav-inner { display: flex; align-items: center; justify-content: space-between; }
.logo { font-weight: 700; font-size: 1.25rem; color: #fff; letter-spacing: 1px; }
.logo span { font-weight: 400; opacity: 0.7; }
.nav-links { display: flex; align-items: center; gap: 32px; }
.nav-links a { color: #fff; font-weight: 500; font-size: 0.95rem; transition: opacity 0.2s; }
.nav-links a:hover { opacity: 0.7; }
.nav-links .btn-sm { color: #fff !important; border-color: #fff; background: transparent; opacity: 1 !important; }
.nav-links .btn-sm:hover { background: #fff; color: #1a1a1a !important; opacity: 1 !important; }

/* Mobile toggle */
.mobile-toggle { display: none; flex-direction: column; gap: 5px; background: none; border: none; cursor: pointer; padding: 4px; }
.mobile-toggle span { display: block; width: 24px; height: 2px; background: #fff; transition: 0.3s; }
.nav.scrolled .mobile-toggle span { background: #1a1a1a; }
.mobile-toggle.active span:nth-child(1) { transform: rotate(45deg) translate(5px, 5px); }
.mobile-toggle.active span:nth-child(2) { opacity: 0; }
.mobile-toggle.active span:nth-child(3) { transform: rotate(-45deg) translate(5px, -5px); }

/* ── Hero ── */
.hero {
  position: relative;
  min-height: 100vh;
  display: flex;
  align-items: center;
  background: url('images/hero-bg.jpeg') center/cover no-repeat;
  background-color: #2c3e50;
}
.hero-overlay {
  position: absolute; inset: 0;
  background: linear-gradient(135deg, rgba(0,0,0,0.65), rgba(0,0,0,0.35));
}
.hero-content { position: relative; max-width: 640px; }
.hero-content h1 { font-size: 3.25rem; font-weight: 700; color: #fff; line-height: 1.15; margin-bottom: 20px; }
.hero-content p { font-size: 1.15rem; color: rgba(255,255,255,0.85); margin-bottom: 32px; }
.hero-actions { display: flex; gap: 16px; flex-wrap: wrap; }

/* ── About ── */
.about-grid { display: grid; grid-template-columns: 1fr 2fr 1fr; gap: 32px; align-items: center; }
.about-image img { width: 100%; aspect-ratio: 4/3; object-fit: cover; border-radius: 10px; }
.about-text { text-align: center; }
.about-text h2 { font-size: 2rem; margin-bottom: 16px; }
.about-text p { color: #555; margin-bottom: 32px; text-align: justify; }
.stats { justify-content: center; }
.stats { display: flex; gap: 40px; }
.stat strong { display: block; font-size: 1.75rem; color: #1a1a1a; }
.stat span { font-size: 0.85rem; color: #888; }

/* ── Placeholder Images ── */
.placeholder-img {
  width: 100%;
  aspect-ratio: 4/3;
  background: #e0ddd8;
  border-radius: 8px;
  display: flex;
  align-items: center;
  justify-content: center;
  color: #999;
  font-size: 0.9rem;
  font-weight: 500;
  border: 2px dashed #ccc;
}

/* ── Services ── */
.services-grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: 24px; }
.card {
  background: #fff;
  padding: 36px;
  border-radius: 10px;
  border: 2px solid #f0b67a;
  transition: box-shadow 0.2s;
}
.card:hover { box-shadow: 0 8px 30px rgba(0,0,0,0.06); }
.card-icon { display: none; }
.card h3 { font-size: 1.15rem; margin-bottom: 8px; }
.card p { color: #666; font-size: 0.95rem; }

/* ── Projects ── */
.projects-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 24px; }
.project-card {
  border-radius: 10px;
  overflow: hidden;
  background: #fff;
  border: 1px solid #e8e8e6;
  transition: transform 0.35s ease, box-shadow 0.35s ease;
  cursor: pointer;
}
.project-card:hover {
  transform: translateY(-8px) scale(1.02);
  box-shadow: 0 20px 40px rgba(0,0,0,0.15);
}
.project-card:hover .project-info {
  background: #2c2c2c;
  color: #fff;
}
.project-card:hover .project-info h3 { color: #f0b67a; }
.project-card:hover .project-info p { color: #ccc; }
.project-img { border-radius: 0; aspect-ratio: 3/2; object-fit: cover; width: 100%; transition: transform 0.5s ease; }
.project-card:hover .project-img { transform: scale(1.05); }
.project-gallery { position: relative; overflow: hidden; }
.project-gallery .project-img { display: none; }
.project-gallery .project-img:first-child { display: block; }
.gallery-dots {
  position: absolute; bottom: 10px; left: 50%; transform: translateX(-50%);
  display: flex; gap: 8px;
}
.gallery-dots .dot {
  width: 10px; height: 10px; border-radius: 50%; border: 2px solid #fff;
  background: transparent; cursor: pointer; padding: 0; transition: background 0.2s;
}
.gallery-dots .dot.active { background: #fff; }
.project-info { padding: 20px; transition: background 0.35s ease, color 0.35s ease; }
.project-info h3 { font-size: 1.05rem; margin-bottom: 4px; transition: color 0.35s ease; }
.project-info p { color: #888; font-size: 0.875rem; transition: color 0.35s ease; }

/* ── Lightbox ── */
.lightbox {
  display: none; position: fixed; inset: 0; z-index: 200;
  background: rgba(0,0,0,0.9); align-items: center; justify-content: center;
}
.lightbox.open { display: flex; flex-direction: column; }
.lightbox-img {
  max-width: 90vw; max-height: 80vh; object-fit: contain; border-radius: 8px;
}
.lightbox-caption {
  color: #fff; text-align: center; font-size: 1.1rem; margin-top: 12px;
  padding: 8px 20px; background: rgba(0,0,0,0.5); border-radius: 6px; display: none;
}
.lightbox-close, .lightbox-prev, .lightbox-next {
  position: absolute; background: none; border: none; color: #fff;
  cursor: pointer; transition: opacity 0.2s;
}
.lightbox-close:hover, .lightbox-prev:hover, .lightbox-next:hover { opacity: 0.7; }
.lightbox-close { top: 20px; right: 24px; font-size: 2.5rem; }
.lightbox-prev, .lightbox-next { top: 50%; transform: translateY(-50%); font-size: 3rem; }
.lightbox-prev { left: 20px; }
.lightbox-next { right: 20px; }
.project-gallery img, .project-card .placeholder-img { cursor: pointer; }

/* ── Contact ── */
.contact-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 64px; align-items: start; }
.contact-text h2 { font-size: 2rem; margin-bottom: 12px; }
.contact-text > p { color: #555; margin-bottom: 24px; }
.contact-details li { margin-bottom: 8px; font-size: 0.95rem; color: #555; }
.contact-details strong { color: #1a1a1a; }
.contact-form { display: flex; flex-direction: column; gap: 16px; }
.contact-form input,
.contact-form textarea {
  padding: 14px 16px;
  border: 1px solid #ddd;
  border-radius: 6px;
  font-family: inherit;
  font-size: 0.95rem;
  transition: border 0.2s;
}
.contact-form input:focus,
.contact-form textarea:focus { outline: none; border-color: #1a1a1a; }
.contact-form .btn { border: none; width: 100%; text-align: center; }

/* ── Footer ── */
.footer { padding: 32px 0; border-top: 1px solid #e8e8e6; }
.footer-inner { display: flex; align-items: center; justify-content: space-between; }
.footer .logo { color: #1a1a1a; font-size: 1rem; }
.footer p { color: #999; font-size: 0.825rem; }

/* ── Scroll Animations ── */
.fade-in {
  opacity: 0;
  transform: translateY(40px);
  transition: opacity 0.8s ease, transform 0.8s ease;
}
.fade-in.visible {
  opacity: 1;
  transform: translateY(0);
}
.fade-in-left {
  opacity: 0;
  transform: translateX(-40px);
  transition: opacity 0.8s ease, transform 0.8s ease;
}
.fade-in-left.visible {
  opacity: 1;
  transform: translateX(0);
}
.fade-in-right {
  opacity: 0;
  transform: translateX(40px);
  transition: opacity 0.8s ease, transform 0.8s ease;
}
.fade-in-right.visible {
  opacity: 1;
  transform: translateX(0);
}

/* Stagger children */
.stagger > .fade-in:nth-child(1) { transition-delay: 0s; }
.stagger > .fade-in:nth-child(2) { transition-delay: 0.15s; }
.stagger > .fade-in:nth-child(3) { transition-delay: 0.3s; }
.stagger > .fade-in:nth-child(4) { transition-delay: 0.45s; }
.stagger > .fade-in:nth-child(5) { transition-delay: 0.6s; }
.stagger > .fade-in:nth-child(6) { transition-delay: 0.75s; }
.stagger > .fade-in:nth-child(7) { transition-delay: 0s; }
.stagger > .fade-in:nth-child(8) { transition-delay: 0.15s; }
.stagger > .fade-in:nth-child(9) { transition-delay: 0.3s; }

/* ── Responsive ── */
@media (max-width: 768px) {
  .nav-links {
    display: none; position: absolute; top: 100%; left: 0; right: 0;
    flex-direction: column; background: #fff; padding: 24px; gap: 16px;
    box-shadow: 0 8px 24px rgba(0,0,0,0.1);
  }
  .nav-links.open { display: flex; }
  .nav-links a { color: #1a1a1a; }
  .nav-links .btn-sm { background: #1a1a1a; color: #fff; text-align: center; }
  .mobile-toggle { display: flex; }

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

  .about-grid,
  .contact-grid { grid-template-columns: 1fr; gap: 40px; }

  .services-grid { grid-template-columns: 1fr; }
  .projects-grid { grid-template-columns: 1fr 1fr; }

  .footer-inner { flex-direction: column; gap: 8px; text-align: center; }
}

@media (max-width: 480px) {
  .projects-grid { grid-template-columns: 1fr; }
  .stats { flex-direction: column; gap: 16px; }
}
