:root {
  --bg-primary: #05070f;
  --bg-secondary: #0b0f1e;
  --accent-blue: #3b82f6;
  --accent-yellow: #facc15;
  --text-primary: #ffffff;
  --text-muted: #f8fafc;
  --card-bg: rgba(5, 7, 15, 0.82);
  --card-border: rgba(255, 255, 255, 0.18);
  --font: 'Poppins', sans-serif;
}

* { margin: 0; padding: 0; box-sizing: border-box; }

html { scroll-behavior: smooth; }

body {
  font-family: var(--font);
  background: var(--bg-primary);
  color: var(--text-primary);
  overflow-x: hidden;
}

#bg-canvas {
  position: fixed;
  top: 0; left: 0;
  width: 100%; height: 100%;
  z-index: -1;
}

/* ===== NAVBAR ===== */
.navbar {
  position: fixed;
  top: 0; left: 0; right: 0;
  z-index: 100;
  background: rgba(5, 7, 15, 0.7);
  backdrop-filter: blur(12px);
  border-bottom: 1px solid var(--card-border);
}

.nav-container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 14px 24px;
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.logo img { height: 40px; }
.logo-fallback {
  font-weight: 700;
  font-size: 1.2rem;
  color: var(--accent-yellow);
}

.nav-links {
  display: flex;
  gap: 32px;
}

.nav-links a {
  color: var(--text-primary);
  text-decoration: none;
  font-size: 0.95rem;
  font-weight: 500;
  transition: color 0.2s;
}

.nav-links a:hover { color: var(--accent-yellow); }

.nav-toggle {
  display: none;
  flex-direction: column;
  gap: 5px;
  background: none;
  border: none;
  cursor: pointer;
}

.nav-toggle span {
  width: 24px; height: 2px;
  background: var(--text-primary);
}

/* ===== HERO / SCROLL ANIMATION ===== */
.hero {
  position: relative;
  height: 100vh;
  z-index: 0;
}

.hero-sticky {
  position: sticky;
  top: 0;
  height: 100vh;
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: visible;
}

.hero-sticky::before {
  content: "";
  position: absolute;
  inset: 0;
  z-index: 1;
  pointer-events: none;
  background: linear-gradient(
    180deg,
    rgba(5, 7, 15, 0.48) 0%,
    rgba(5, 7, 15, 0.12) 42%,
    rgba(5, 7, 15, 0.5) 100%
  );
}

#frame-canvas {
  position: fixed;
  top: 0; left: 0;
  width: 100%; height: 100%;
  object-fit: cover;
  z-index: -1;
  pointer-events: none;
}

/* Keep the fixed frame animation behind the rest of the page content. */
body > section:not(.hero),
body > footer {
  position: relative;
  z-index: 1;
  background: rgba(5, 7, 15, 0.28);
}

.hero-text {
  position: relative;
  z-index: 2;
  text-align: center;
  padding: 28px 32px 32px;
  border-radius: 20px;
  background: rgba(5, 7, 15, 0.78);
  backdrop-filter: blur(3px);
  text-shadow: 0 2px 8px rgba(0, 0, 0, 0.85);
}

.hero-text h1 {
  font-size: clamp(2rem, 5vw, 3.5rem);
  font-weight: 700;
  line-height: 1.2;
}

.hero-text h1 span { color: var(--accent-yellow); }

.hero-text p {
  margin-top: 16px;
  color: #ffffff;
  font-size: 1.1rem;
  font-weight: 500;
}

.btn-primary, .btn-secondary {
  display: inline-block;
  margin-top: 28px;
  padding: 14px 32px;
  border-radius: 999px;
  font-weight: 600;
  text-decoration: none;
  transition: transform 0.2s, opacity 0.2s;
}

.btn-primary {
  background: var(--accent-yellow);
  color: #05070f;
}

.btn-secondary {
  background: transparent;
  border: 1px solid var(--accent-blue);
  color: var(--accent-blue);
  margin-top: 20px;
}

.btn-primary:hover, .btn-secondary:hover { transform: translateY(-2px); opacity: 0.9; }

.scroll-hint {
  position: absolute;
  bottom: 30px;
  left: 50%;
  transform: translateX(-50%);
  color: #f8fafc;
  font-size: 0.85rem;
  text-shadow: 0 2px 6px rgba(0, 0, 0, 0.9);
  animation: bounce 2s infinite;
}

@keyframes bounce {
  0%, 100% { transform: translate(-50%, 0); }
  50% { transform: translate(-50%, 8px); }
}

/* ===== SHARED SECTION STYLES ===== */
.section-container {
  max-width: 1100px;
  margin: 0 auto;
  padding: 100px 24px;
}

.section-title {
  font-size: clamp(1.6rem, 3vw, 2.4rem);
  font-weight: 700;
  margin-bottom: 20px;
  text-align: center;
  text-shadow: 0 2px 7px rgba(0, 0, 0, 0.9);
}

.section-text {
  color: #ffffff;
  text-align: center;
  max-width: 700px;
  margin: 0 auto;
  line-height: 1.7;
  text-shadow: 0 1px 5px rgba(0, 0, 0, 0.95);
}

/* ===== SERVICE FACTOR CARDS ===== */
.factor-grid, .services-grid, .testimonial-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(230px, 1fr));
  gap: 24px;
  margin-top: 48px;
}

.factor-card, .service-card, .testimonial-card, .job-card {
  background: var(--card-bg);
  border: 1px solid var(--card-border);
  border-radius: 16px;
  padding: 28px 22px;
  transition: transform 0.25s, border-color 0.25s;
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.38);
}

.factor-card:hover, .service-card:hover {
  transform: translateY(-6px);
  border-color: var(--accent-blue);
}

.factor-icon { font-size: 2rem; margin-bottom: 12px; }

.factor-card h3, .service-card h3, .job-card h3 {
  font-size: 1.1rem;
  margin-bottom: 8px;
}

.factor-card p, .service-card p, .job-card p, .testimonial-card p {
  color: #f8fafc;
  font-size: 0.92rem;
  line-height: 1.6;
}

.service-card.highlight {
  border-color: var(--accent-yellow);
  position: relative;
}

.badge {
  position: absolute;
  top: 16px; right: 16px;
  background: var(--accent-yellow);
  color: #05070f;
  font-size: 0.7rem;
  font-weight: 700;
  padding: 4px 10px;
  border-radius: 999px;
}

/* ===== TESTIMONIALS ===== */
.testimonial-card { text-align: center; }
.avatar {
  width: 56px; height: 56px;
  border-radius: 50%;
  background: rgba(255,255,255,0.08);
  display: flex; align-items: center; justify-content: center;
  font-size: 1.5rem;
  margin: 0 auto 16px;
}
.reviewer {
  display: block;
  margin-top: 12px;
  color: var(--accent-yellow);
  font-size: 0.85rem;
  font-weight: 600;
}

/* ===== CAREERS ===== */
.careers { text-align: center; }
.job-list { margin: 40px auto; max-width: 500px; }

/* ===== CONTACT ===== */
.contact-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 48px;
  align-items: start;
}

.contact-info p { margin-bottom: 12px; color: var(--text-muted); }
.map-embed { margin-top: 20px; border: 1px solid var(--card-border); border-radius: 12px; overflow: hidden; }
.contact-info a { color: var(--accent-blue); text-decoration: none; }

.contact-payment { text-align: center; }
.qr-box {
  margin-top: 20px;
  background: var(--card-bg);
  border: 1px solid var(--card-border);
  border-radius: 16px;
  padding: 24px;
  display: inline-block;
}
.qr-box img { width: 200px; height: 200px; object-fit: contain; }

/* ===== BOOKING FORM ===== */
.booking-form {
  max-width: 560px;
  margin: 40px auto 0;
  display: flex;
  flex-direction: column;
  gap: 18px;
}

.form-row { display: flex; flex-direction: column; gap: 8px; text-align: left; }

.form-row label {
  font-size: 0.85rem;
  color: #ffffff;
  font-weight: 500;
}

.form-row input,
.form-row textarea {
  background: var(--card-bg);
  border: 1px solid rgba(255, 255, 255, 0.24);
  border-radius: 10px;
  padding: 12px 14px;
  color: var(--text-primary);
  font-family: var(--font);
  font-size: 0.95rem;
  resize: vertical;
}

.form-row input:focus,
.form-row textarea:focus {
  outline: none;
  border-color: var(--accent-blue);
}

.booking-form .btn-primary {
  border: none;
  cursor: pointer;
  font-family: var(--font);
  font-size: 1rem;
}

.booking-form .btn-primary:disabled { opacity: 0.6; cursor: not-allowed; }

.booking-status-msg {
  font-size: 0.9rem;
  min-height: 1.2em;
}

.booking-status-msg.success { color: #4ade80; }
.booking-status-msg.error { color: #f87171; }

/* ===== FOOTER ===== */
.footer {
  text-align: center;
  padding: 32px;
  color: var(--text-muted);
  font-size: 0.85rem;
  border-top: 1px solid var(--card-border);
}

/* ===== RESPONSIVE ===== */
@media (max-width: 768px) {
  .nav-links {
    position: absolute;
    top: 100%; left: 0; right: 0;
    background: var(--bg-secondary);
    flex-direction: column;
    padding: 20px;
    display: none;
  }
  .nav-links.open { display: flex; }
  .nav-toggle { display: flex; }
  .contact-grid { grid-template-columns: 1fr; }
}
