/* =============================================
   AKUTECH AKUSTIK — CUSTOM CSS
   Black / White / Gray Design System
   ============================================= */

/* Smooth Scroll */
html {
  scroll-behavior: smooth;
}

/* Selection */
::selection {
  background: #0a0a0a;
  color: #fff;
}

/* ---- TYPOGRAPHY ---- */
h1,
h2,
h3,
h4,
h5,
h6 {
  font-family: 'Playfair Display', Georgia, serif;
}

.section-label {
  display: inline-block;
  font-size: 0.65rem;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: #6b6b6b;
  font-family: 'Inter', sans-serif;
  font-weight: 500;
  margin-bottom: 0.5rem;
}

/* ---- HERO ---- */
.hero-section {
  position: relative;
  min-height: 92vh;
  display: flex;
  align-items: center;
  overflow: hidden;
  background: #0a0a0a;
}

.hero-bg {
  position: absolute;
  inset: 0;
  background-image: url('../images/hero-bg.jpg');
  background-size: cover;
  background-position: center;
  opacity: 0.3;
  transition: opacity 0.5s ease;
}

.hero-grid-overlay {
  position: absolute;
  inset: 0;
  background-image:
    linear-gradient(rgba(255, 255, 255, 0.03) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255, 255, 255, 0.03) 1px, transparent 1px);
  background-size: 60px 60px;
}

/* ---- BUTTONS ---- */
.btn-primary {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  background: #fff;
  color: #0a0a0a;
  font-size: 0.875rem;
  font-weight: 600;
  font-family: 'Inter', sans-serif;
  padding: 0.875rem 2rem;
  border-radius: 2px;
  letter-spacing: 0.03em;
  transition: all 0.2s ease;
}

.btn-primary:hover {
  background: #e8e8e8;
  transform: translateY(-1px);
}

.btn-outline {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  background: transparent;
  color: #fff;
  font-size: 0.875rem;
  font-weight: 500;
  font-family: 'Inter', sans-serif;
  padding: 0.875rem 2rem;
  border-radius: 2px;
  border: 1px solid rgba(255, 255, 255, 0.3);
  letter-spacing: 0.03em;
  transition: all 0.2s ease;
}

.btn-outline:hover {
  border-color: rgba(255, 255, 255, 0.7);
  background: rgba(255, 255, 255, 0.05);
}

.btn-dark {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  background: #0a0a0a;
  color: #fff;
  font-size: 0.875rem;
  font-weight: 600;
  font-family: 'Inter', sans-serif;
  padding: 0.875rem 2rem;
  border-radius: 2px;
  letter-spacing: 0.03em;
  transition: all 0.2s ease;
}

.btn-dark:hover {
  background: #1a1a1a;
  transform: translateY(-1px);
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.2);
}

/* ---- CARDS ---- */
.service-card {
  background: #fff;
  border: 1px solid #e8e8e8;
  border-radius: 2px;
  padding: 2rem;
  transition: all 0.3s ease;
  position: relative;
  overflow: hidden;
}

.service-card::after {
  content: '';
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
  height: 2px;
  background: #0a0a0a;
  transform: scaleX(0);
  transition: transform 0.3s ease;
}

.service-card:hover {
  box-shadow: 0 12px 40px rgba(0, 0, 0, 0.08);
  transform: translateY(-3px);
}

.service-card:hover::after {
  transform: scaleX(1);
}

.product-card {
  background: #fff;
  border: 1px solid #e8e8e8;
  border-radius: 2px;
  overflow: hidden;
  transition: all 0.3s ease;
}

.product-card:hover {
  box-shadow: 0 12px 40px rgba(0, 0, 0, 0.1);
  transform: translateY(-4px);
}

.product-card img {
  transition: transform 0.4s ease;
}

.product-card:hover img {
  transform: scale(1.04);
}

.project-card {
  position: relative;
  overflow: hidden;
  border-radius: 2px;
  aspect-ratio: 4/3;
  background: #1a1a1a;
}

.project-card img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.5s ease;
}

.project-card:hover img {
  transform: scale(1.06);
}

.project-card-overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(to top, rgba(0, 0, 0, 0.85) 0%, transparent 60%);
  opacity: 0;
  transition: opacity 0.3s ease;
}

.project-card:hover .project-card-overlay {
  opacity: 1;
}

.project-card-info {
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
  padding: 1.5rem;
  transform: translateY(8px);
  opacity: 0;
  transition: all 0.3s ease;
}

.project-card:hover .project-card-info {
  transform: translateY(0);
  opacity: 1;
}

/* ---- SECTION DIVIDER ---- */
.section-divider {
  width: 40px;
  height: 2px;
  background: #0a0a0a;
  display: block;
  margin: 1rem 0;
}

/* ---- STATS COUNTER ---- */
.stat-item {
  text-align: center;
  padding: 2rem;
  border-right: 1px solid #2e2e2e;
}

.stat-item:last-child {
  border-right: none;
}

.stat-number {
  font-family: 'Playfair Display', serif;
  font-size: 3rem;
  font-weight: 700;
  color: #fff;
  line-height: 1;
}

/* ---- NAV ACTIVE ---- */
nav .active {
  color: #0a0a0a !important;
  font-weight: 600;
}

/* ---- BREADCRUMB ---- */
.breadcrumb {
  background: #f4f4f4;
  padding: 0.875rem 0;
  border-bottom: 1px solid #e8e8e8;
}

/* ---- FORMS ---- */
.form-input {
  width: 100%;
  padding: 0.875rem 1rem;
  border: 1px solid #d4d4d4;
  border-radius: 2px;
  font-family: 'Inter', sans-serif;
  font-size: 0.875rem;
  color: #1a1a1a;
  background: #fff;
  transition: border-color 0.2s ease, box-shadow 0.2s ease;
  outline: none;
}

.form-input:focus {
  border-color: #0a0a0a;
  box-shadow: 0 0 0 3px rgba(10, 10, 10, 0.06);
}

.form-label {
  display: block;
  font-size: 0.8rem;
  font-weight: 500;
  color: #1a1a1a;
  margin-bottom: 0.4rem;
  font-family: 'Inter', sans-serif;
  letter-spacing: 0.02em;
}

/* ---- ANIMATIONS ---- */
.fade-in-up {
  opacity: 0;
  transform: translateY(24px);
  transition: opacity 0.6s ease, transform 0.6s ease;
}

.fade-in-up.visible {
  opacity: 1;
  transform: translateY(0);
}

/* ---- SCROLL TOP ---- */
#scroll-top {
  position: fixed;
  bottom: 6rem;
  right: 1.5rem;
  z-index: 40;
  width: 2.5rem;
  height: 2.5rem;
  background: #0a0a0a;
  color: #fff;
  border-radius: 2px;
  display: flex;
  align-items: center;
  justify-content: center;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.2s ease;
  cursor: pointer;
}

#scroll-top.visible {
  opacity: 1;
  pointer-events: all;
}

/* ---- LIGHTBOX MODAL ---- */
.lightbox-modal {
  position: fixed;
  inset: 0;
  z-index: 100;
  background: rgba(0, 0, 0, 0.95);
  display: flex;
  align-items: center;
  justify-content: center;
  opacity: 0;
  visibility: hidden;
  transition: all 0.3s ease;
  backdrop-filter: blur(8px);
}

.lightbox-modal.active {
  opacity: 1;
  visibility: visible;
}

.lightbox-content {
  position: relative;
  max-width: 90%;
  max-height: 85vh;
  transform: scale(0.95);
  transition: transform 0.3s ease;
}

.lightbox-modal.active .lightbox-content {
  transform: scale(1);
}

.lightbox-image {
  max-width: 100%;
  max-height: 85vh;
  object-fit: contain;
  box-shadow: 0 0 50px rgba(0, 0, 0, 0.5);
  transition: opacity 0.2s ease-in-out;
}

.lightbox-close {
  position: absolute;
  top: 1.5rem;
  right: 1.5rem;
  color: #fff;
  cursor: pointer;
  z-index: 110;
  padding: 0.5rem;
  opacity: 0.6;
  transition: opacity 0.2s;
}

.lightbox-nav {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  color: #fff;
  cursor: pointer;
  z-index: 110;
  padding: 1rem;
  opacity: 0.4;
  transition: all 0.2s;
  background: rgba(255, 255, 255, 0.05);
  border-radius: 50%;
}

.lightbox-nav:hover {
  opacity: 1;
  background: rgba(255, 255, 255, 0.1);
}

.lightbox-prev {
  left: 1rem;
}

.lightbox-next {
  right: 1rem;
}

.cursor-zoom-in {
  cursor: zoom-in;
}

/* ---- ADMIN ---- */
.admin-sidebar {
  width: 260px;
  min-height: 100vh;
  background: #0a0a0a;
  flex-shrink: 0;
}

/* ---- RESPONSIVE ---- */
@media (max-width: 640px) {
  .stat-item {
    border-right: none;
    border-bottom: 1px solid #2e2e2e;
  }

  .stat-item:last-child {
    border-bottom: none;
  }

  .hero-section {
    min-height: 80vh;
  }
}