/* ═══════════════════════════════════════════════
   PRABHAKAR INFRATECH — Global Styles
   ═══════════════════════════════════════════════ */

/* ─── Base ─────────────────────────────────────── */
* { scroll-behavior: smooth; box-sizing: border-box; }
body { font-family: 'Outfit', sans-serif; background: #0B1F3A; color: #fff; margin: 0; }
h1, h2, h3, h4 { font-family: 'Playfair Display', serif; }

/* ─── Gold Divider ─────────────────────────────── */
.gold-line { width: 60px; height: 3px; background: #C9A84C; margin: 0 auto 1.5rem; }

/* ─── Scroll Animations ────────────────────────── */
.fade-up {
  opacity: 0;
  transform: translateY(40px);
  transition: opacity 0.7s ease, transform 0.7s ease;
}
.fade-up.visible { opacity: 1; transform: translateY(0); }

/* ─── Navbar ───────────────────────────────────── */
#navbar {
  transition: background 0.3s, box-shadow 0.3s;
  background: transparent;
}
#navbar.scrolled {
  background: rgba(11,31,58,0.97);
  box-shadow: 0 2px 20px rgba(0,0,0,0.5);
}

/* ─── Hero Background ──────────────────────────── */
.hero-bg {
  background-image:
    linear-gradient(to bottom, rgba(6,15,28,0.7) 0%, rgba(11,31,58,0.85) 100%),
    url('https://images.unsplash.com/photo-1600585154340-be6161a56a0c?w=1600&q=80');
  background-size: cover;
  background-position: center;
}

/* ─── Gold Button ──────────────────────────────── */
.btn-gold {
  background: linear-gradient(135deg, #C9A84C, #E2C47A);
  color: #0B1F3A;
  font-weight: 700;
  letter-spacing: 0.04em;
  transition: transform 0.2s, box-shadow 0.2s;
  border: none;
  cursor: pointer;
}
.btn-gold:hover {
  transform: translateY(-2px);
  box-shadow: 0 8px 24px rgba(201,168,76,0.4);
}

/* ─── Card Hover ───────────────────────────────── */
.card-hover {
  transition: transform 0.3s, box-shadow 0.3s;
}
.card-hover:hover {
  transform: translateY(-6px);
  box-shadow: 0 16px 40px rgba(0,0,0,0.4);
}

/* ─── Section Backgrounds ──────────────────────── */
.section-dark   { background: #0B1F3A; }
.section-darker { background: #060f1c; }
.section-mid    { background: #0f2847; }

/* ─── Gallery Lightbox ─────────────────────────── */
#lightbox {
  display: none;
  position: fixed; inset: 0;
  background: rgba(0,0,0,0.92);
  z-index: 9999;
  align-items: center;
  justify-content: center;
}
#lightbox.open { display: flex; }
#lightbox img { max-width: 90vw; max-height: 85vh; border-radius: 8px; }

/* ─── FAQ Accordion ────────────────────────────── */
.faq-answer { max-height: 0; overflow: hidden; transition: max-height 0.4s ease; }
.faq-answer.open { max-height: 300px; }
.rotate-45 { transform: rotate(45deg); }

/* ─── Toast Notification ───────────────────────── */
#toast {
  position: fixed; bottom: 2rem; right: 1.5rem;
  padding: 1rem 1.5rem;
  border-radius: 8px;
  font-weight: 600;
  font-size: 0.95rem;
  z-index: 10000;
  transform: translateY(100px);
  opacity: 0;
  transition: all 0.4s ease;
}
#toast.show { transform: translateY(0); opacity: 1; }
#toast.success { background: #16a34a; color: #fff; }
#toast.error   { background: #dc2626; color: #fff; }

/* ─── Scrollbar ────────────────────────────────── */
::-webkit-scrollbar { width: 6px; }
::-webkit-scrollbar-track { background: #060f1c; }
::-webkit-scrollbar-thumb { background: #C9A84C; border-radius: 3px; }

/* ─── Lead Modal ───────────────────────────────── */
#leadModal {
  display: none;
  position: fixed; inset: 0;
  background: rgba(0,0,0,0.85);
  z-index: 1000;
  align-items: center;
  justify-content: center;
  padding: 1rem;
}
#leadModal.open { display: flex; }
#leadModal .modal-box {
  background: linear-gradient(135deg, #0B1F3A, #0f2847);
  border: 1px solid rgba(201,168,76,0.3);
  border-radius: 1.25rem;
  width: 100%;
  max-width: 480px;
  padding: 2rem;
  animation: modalSlideUp 0.35s ease;
}
@keyframes modalSlideUp {
  from { opacity:0; transform:translateY(40px); }
  to   { opacity:1; transform:translateY(0); }
}

/* ─── Lead Modal Inputs ────────────────────────── */
#leadModal input,
#leadModal textarea {
  background: rgba(11,31,58,0.7);
  border: 1px solid rgba(255,255,255,0.12);
  color: #fff;
  font-family: 'Outfit', sans-serif;
  width: 100%;
  box-sizing: border-box;
  border-radius: 0.75rem;
  padding: 0.85rem 1rem;
  font-size: 0.875rem;
  transition: border-color 0.2s;
}
#leadModal input:focus,
#leadModal textarea:focus {
  border-color: #C9A84C;
  outline: none;
}
#leadModal input::placeholder,
#leadModal textarea::placeholder {
  color: #6b7280;
}

/* ─── Project Lock/Unlock ──────────────────────── */
.project-card { cursor: pointer; }
.project-card .lock-overlay {
  position: absolute; inset: 0;
  background: linear-gradient(to top, rgba(6,15,28,0.97) 0%, rgba(6,15,28,0.5) 60%, transparent 100%);
  display: flex; flex-direction: column;
  align-items: center; justify-content: flex-end;
  padding: 1rem; opacity: 0; transition: opacity 0.3s;
}
.project-card:hover .lock-overlay { opacity: 1; }
.lock-icon { font-size: 1.5rem; color: #C9A84C; margin-bottom: 0.4rem; }

/* ─── Gallery Items ────────────────────────────── */
.gallery-item { overflow: hidden; border-radius: 12px; cursor: pointer; }
.gallery-item img { transition: transform 0.4s ease; width: 100%; height: 100%; object-fit: cover; display: block; }
.gallery-item:hover img { transform: scale(1.06); }
.gallery-overlay {
  position: absolute; inset: 0;
  background: linear-gradient(to top, rgba(0,0,0,0.7) 0%, transparent 60%);
  opacity: 0; transition: opacity 0.3s;
  display: flex; align-items: flex-end; padding: 1rem;
}
.gallery-item:hover .gallery-overlay { opacity: 1; }

/* Lightbox Nav Buttons */
.lb-btn {
  position: absolute; top: 50%; transform: translateY(-50%);
  background: rgba(201,168,76,0.15); border: 1px solid rgba(201,168,76,0.3);
  color: #C9A84C; width: 3rem; height: 3rem; border-radius: 50%;
  display: flex; align-items: center; justify-content: center;
  cursor: pointer; font-size: 1.1rem; transition: background 0.2s;
}
.lb-btn:hover { background: rgba(201,168,76,0.3); }
#lbPrev { left: 1rem; }
#lbNext { right: 1rem; }
