/* ===== Layout ===== */

/* --- Nav --- */
#nav {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  z-index: 1000;
  padding: 16px 0;
  transition: background var(--transition-slow), box-shadow var(--transition-slow), backdrop-filter var(--transition-slow);
}
#nav.scrolled {
  background: rgba(26, 26, 26, 0.92);
  box-shadow: 0 2px 24px rgba(0, 0, 0, 0.45);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
}

.nav-inner {
  max-width: var(--container-max);
  margin: 0 auto;
  padding: var(--container-padding);
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.nav-logo a { display: flex; align-items: center; gap: 12px; color: var(--text-primary); text-decoration: none; }
.nav-logo-img { height: 42px; width: auto; }
.nav-logo-text { font-family: var(--font-heading); font-size: clamp(1.4rem, 2.5vw, 1.8rem); letter-spacing: 0.05em; color: var(--color-accent); }

.nav-links { display: flex; gap: 32px; }
.nav-links a { color: var(--text-primary); font-size: 0.95rem; font-weight: 500; position: relative; padding: 4px 0; transition: color var(--transition-fast); }
.nav-links a::after {
  content: '';
  position: absolute;
  bottom: -2px;
  left: 0;
  width: 0;
  height: 2px;
  background: var(--color-accent);
  transition: width var(--transition-base);
}
.nav-links a:hover { color: var(--color-accent); }
.nav-links a:hover::after { width: 100%; }

.nav-right { display: flex; align-items: center; gap: 16px; }

/* Hamburger */
.hamburger {
  display: none;
  background: none;
  border: none;
  cursor: pointer;
  width: 28px;
  height: 22px;
  position: relative;
  min-height: unset;
  padding: 0;
  align-items: center;
  flex-direction: column;
  align-self: center;
}
.hamburger span {
  display: block;
  width: 100%;
  height: 2px;
  background: var(--text-primary);
  border-radius: 2px;
  transition: all var(--transition-base);
  position: absolute;
  left: 0;
}
.hamburger span:nth-child(1) { top: 0; }
.hamburger span:nth-child(2) { top: 10px; }
.hamburger span:nth-child(3) { top: 20px; }
.hamburger.active span:nth-child(1) { top: 10px; transform: rotate(45deg); }
.hamburger.active span:nth-child(2) { opacity: 0; }
.hamburger.active span:nth-child(3) { top: 10px; transform: rotate(-45deg); }

/* Mobile Overlay */
.mobile-overlay {
  position: fixed;
  top: 0;
  right: 0;
  width: 100%;
  height: 100vh;
  background: rgba(10, 10, 10, 0.97);
  backdrop-filter: blur(16px);
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 24px;
  z-index: 999;
  transform: translateX(100%);
  transition: transform 0.4s cubic-bezier(0.4, 0, 0.2, 1);
}
.mobile-overlay.open { transform: translateX(0); }
.mobile-overlay a {
  font-family: var(--font-heading);
  font-size: 2.5rem;
  color: var(--text-primary);
  letter-spacing: 0.05em;
}
.mobile-overlay a:hover { color: var(--color-accent); }

/* --- Hero --- */
.hero {
  position: relative;
  height: 100vh;
  min-height: 600px;
  display: flex;
  align-items: center;
  overflow: hidden;
}
.hero-bg {
  position: absolute;
  inset: 0;
  background-size: cover;
  background-position: center;
  will-change: transform;
}
.hero-overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(135deg, rgba(10, 10, 10, 0.85) 0%, rgba(26, 26, 26, 0.6) 50%, rgba(10, 10, 10, 0.85) 100%);
}
.hero-content {
  position: relative;
  z-index: 2;
  width: 100%;
}
.hero-eyebrow {
  font-size: 0.9rem;
  text-transform: uppercase;
  letter-spacing: 0.15em;
  color: var(--color-accent);
  margin-bottom: 16px;
  display: flex;
  align-items: center;
  gap: 8px;
}
.hero-eyebrow i { color: var(--color-accent); }
.hero-title {
  margin-bottom: 20px;
}
.hero-title-line1 { display: block; }
.hero-title-line2 { display: block; color: var(--color-accent); }
.hero-sub {
  font-size: clamp(1rem, 1.5vw, 1.25rem);
  max-width: 600px;
  color: var(--text-secondary);
  margin-bottom: 32px;
}
.hero-ctas { display: flex; gap: 16px; flex-wrap: wrap; }

.hero-scroll-hint {
  position: absolute;
  bottom: 40px;
  left: 50%;
  transform: translateX(-50%);
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 8px;
  z-index: 2;
}
.scroll-line {
  width: 1px;
  height: 40px;
  background: linear-gradient(to bottom, var(--color-accent), transparent);
  animation: scrollPulse 2s ease-in-out infinite;
}
.hero-scroll-hint span {
  font-size: 0.7rem;
  text-transform: uppercase;
  letter-spacing: 0.2em;
  color: var(--text-muted);
}
@keyframes scrollPulse {
  0%, 100% { opacity: 1; transform: scaleY(1); }
  50% { opacity: 0.5; transform: scaleY(0.6); }
}

/* --- About Section --- */
.about-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 60px;
  align-items: center;
}
.about-image-wrap {
  position: relative;
  border-radius: var(--radius-lg);
  overflow: hidden;
}
.about-image-wrap img {
  width: 100%;
  height: 500px;
  object-fit: cover;
  border-radius: var(--radius-lg);
}
.about-image-wrap::after {
  content: '';
  position: absolute;
  inset: 0;
  border-radius: var(--radius-lg);
  border: 1px solid rgba(254, 253, 5, 0.15);
  pointer-events: none;
}
.about-stats {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 24px;
  margin-top: 32px;
}
.stat-item { text-align: center; }
.stat-number {
  font-family: var(--font-heading);
  font-size: 2.5rem;
  color: var(--color-accent);
  display: block;
  line-height: 1;
}
.stat-label {
  font-size: 0.8rem;
  color: var(--text-muted);
  text-transform: uppercase;
  letter-spacing: 0.08em;
  margin-top: 4px;
  display: block;
}
.eyebrow {
  font-size: 0.85rem;
  text-transform: uppercase;
  letter-spacing: 0.15em;
  color: var(--color-accent);
  margin-bottom: 12px;
  display: flex;
  align-items: center;
  gap: 8px;
}

/* --- Services Section --- */
.services-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
}
.service-card {
  background: var(--color-primary-light);
  border-radius: var(--radius-lg);
  padding: 36px 28px;
  transition: all var(--transition-base);
  border: 1px solid transparent;
  text-align: center;
}
.service-card:hover {
  border-color: rgba(254, 253, 5, 0.2);
  transform: translateY(-4px);
  box-shadow: 0 8px 32px rgba(0, 0, 0, 0.3);
}
.service-card i {
  font-size: 2.5rem;
  color: var(--color-accent);
  margin-bottom: 16px;
  display: block;
}
.service-card h3 { margin-bottom: 8px; }
.service-card p { font-size: 0.9rem; margin-bottom: 0; }

/* --- Gallery Section --- */
.gallery-wrapper {
  position: relative;
  overflow: hidden;
}
.gallery-track {
  display: flex;
  gap: 20px;
  transition: transform 0.5s cubic-bezier(0.4, 0, 0.2, 1);
}
.gallery-card {
  min-width: calc(33.333% - 14px);
  border-radius: var(--radius-lg);
  overflow: hidden;
  position: relative;
  aspect-ratio: 3/4;
}
.gallery-card img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.6s ease;
}
.gallery-card:hover img { transform: scale(1.05); }
.gallery-card-overlay {
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
  padding: 24px;
  background: linear-gradient(to top, rgba(0,0,0,0.8), transparent);
}
.gallery-card-overlay span { color: var(--text-primary); font-weight: 600; font-size: 0.9rem; }

.gallery-controls {
  display: flex;
  justify-content: center;
  align-items: center;
  gap: 16px;
  margin-top: 32px;
  flex-wrap: nowrap;
}
.gallery-prev, .gallery-next {
  background: var(--color-primary-light);
  border: 1px solid var(--color-gray-600);
  color: var(--text-primary);
  width: 44px;
  height: 44px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  transition: all var(--transition-fast);
  flex-shrink: 0;
  min-width: 44px;
  min-height: unset;
}
.gallery-prev:hover, .gallery-next:hover { background: var(--color-accent); color: var(--text-on-accent); border-color: var(--color-accent); }

.gallery-dots { display: flex; gap: 8px; }
.gallery-dot {
  width: 10px;
  height: 10px;
  border-radius: 50%;
  background: var(--color-gray-600);
  cursor: pointer;
  transition: all var(--transition-fast);
  border: none;
  min-height: unset;
  flex-shrink: 0;
  min-width: 10px;
  min-height: 10px;
}
.gallery-dot.active { background: var(--color-accent); box-shadow: var(--shadow-glow-sm); }

/* --- Contact Section --- */
.contact-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 60px;
}
.contact-info h3 { margin-bottom: 16px; }
.contact-info p { margin-bottom: 8px; display: flex; align-items: flex-start; gap: 12px; }
.contact-info i { color: var(--color-accent); margin-top: 4px; flex-shrink: 0; }

.form-group { margin-bottom: 20px; }

/* --- Footer --- */
footer {
  background: var(--color-dark);
  padding: 60px 0 40px;
  text-align: center;
}
footer .nav-logo-text { font-size: 1.5rem; display: block; margin-bottom: 16px; }
footer p { font-size: 0.85rem; color: var(--text-muted); margin-bottom: 0; }

.social-links {
  display: flex;
  justify-content: center;
  gap: 16px;
  margin-bottom: 24px;
}
.social-links a {
  width: 44px;
  height: 44px;
  border-radius: 50%;
  background: var(--color-primary-light);
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--text-secondary);
  transition: all var(--transition-fast);
  border: 1px solid var(--color-gray-600);
}
.social-links a:hover { background: var(--color-accent); color: var(--text-on-accent); border-color: var(--color-accent); }

/* Built by badge */
.built-by-badge {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  margin-top: 24px;
  opacity: 0.5;
}
.built-by-badge img { height: 20px; width: auto; }
.built-by-badge span { font-size: 0.75rem; color: var(--text-muted); }

/* Section title center */
.section-title-center { text-align: center; margin-bottom: 48px; }
.section-title-center h2 { margin-bottom: 12px; }
.section-title-center p { max-width: 600px; margin: 0 auto; color: var(--text-muted); }

/* --- Media Queries --- */
@media (max-width: 768px) {
  .nav-links { display: none; }
  .hamburger { display: flex; }
  .nav-right .btn-nav-cta { display: none; }

  .hero { min-height: 500px; }
  .hero-title { font-size: clamp(2.5rem, 12vw, 4rem); }
  .hero-ctas { flex-direction: column; }
  .hero-ctas .btn { width: 100%; }

  .about-grid { grid-template-columns: 1fr; gap: 32px; }
  .about-stats { grid-template-columns: repeat(2, 1fr); gap: 16px; }
  .about-image-wrap img { height: 300px; }

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

  .gallery-card { min-width: calc(100% - 0px); }
  .gallery-card img { max-height: 260px; }

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

@media (min-width: 769px) and (max-width: 1024px) {
  .services-grid { grid-template-columns: repeat(2, 1fr); }
  .gallery-card { min-width: calc(50% - 10px); }
}