/* ============================================================
   PROFESSIONAL DESIGN SYSTEM WITH ANIMATIONS & TRANSPARENCY
   ============================================================ */

/* ---------- 1. CSS VARIABLES (Design System) ---------- */
:root {
  --bg: #0a0c12;
  --bg2: #0f1118;
  --surface: #15171f;
  --surface2: #1c1e2a;
  --border: rgba(255,255,255,0.08);
  --border2: rgba(255,255,255,0.15);
  --primary: #2d7aff;
  --primary-dark: #1a5fdf;
  --primary-glow: rgba(45,122,255,0.3);
  --secondary: #00c8b3;
  --red: #ef4444;
  --red-glow: rgba(239,68,68,0.3);
  --text: #ffffff;
  --text-secondary: #a0a8c3;
  --muted: #6b7280;
  --font-h: 'Plus Jakarta Sans', sans-serif;
  --font-b: 'Inter', sans-serif;
}

/* ---------- 2. RESET & BASE STYLES ---------- */
*,
*::before,
*::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

html {
  scroll-behavior: smooth;
}

body {
  font-family: var(--font-b);
  background: var(--bg);
  color: var(--text);
  overflow-x: hidden;
  min-height: 100vh;
  line-height: 1.5;
}

/* Subtle gradient overlay for depth */
body::before {
  content: '';
  position: fixed;
  inset: 0;
  background: radial-gradient(circle at 20% 30%, rgba(45,122,255,0.03) 0%, transparent 50%);
  pointer-events: none;
  z-index: 0;
}

/* ---------- 3. NAVIGATION COMPONENTS ---------- */
#nav {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 500;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 1rem 3rem;
  background: rgba(10, 12, 18, 0.85);
  backdrop-filter: blur(20px);
  border-bottom: 1px solid var(--border);
  transition: all 0.3s;
}

.nav-logo {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  font-family: var(--font-h);
  font-weight: 800;
  font-size: 1.25rem;
  color: var(--text);
  text-decoration: none;
  cursor: pointer;
}

.logo-mark {
  width: 36px;
  height: 36px;
  border-radius: 10px;
  background: linear-gradient(135deg, var(--primary), var(--secondary));
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.1rem;
}

.nav-links {
  display: flex;
  gap: 2.5rem;
  list-style: none;
  align-items: center;
}

.nav-links a {
  color: var(--text-secondary);
  font-size: 0.9rem;
  font-weight: 500;
  text-decoration: none;
  transition: color 0.2s;
  cursor: pointer;
}

.nav-links a:hover,
.nav-links a.active {
  color: var(--text);
}

.nav-btn {
  background: var(--primary);
  color: white;
  font-weight: 600;
  font-family: var(--font-h);
  padding: 0.6rem 1.5rem;
  border-radius: 40px;
  font-size: 0.85rem;
  border: none;
  cursor: pointer;
  transition: all 0.2s;
}

.nav-btn:hover {
  background: var(--primary-dark);
  transform: translateY(-1px);
  box-shadow: 0 4px 12px var(--primary-glow);
}

/* Mobile Menu */
.hamburger {
  display: none;
  flex-direction: column;
  gap: 5px;
  cursor: pointer;
  background: none;
  border: none;
  padding: 4px;
}

.hamburger span {
  display: block;
  width: 24px;
  height: 2px;
  background: var(--text);
  border-radius: 2px;
}

.mobile-menu {
  display: none;
  position: fixed;
  top: 68px;
  left: 0;
  right: 0;
  background: rgba(15, 17, 24, 0.95);
  backdrop-filter: blur(20px);
  border-bottom: 1px solid var(--border);
  padding: 1.5rem 2rem;
  flex-direction: column;
  gap: 1.2rem;
  z-index: 499;
}

.mobile-menu a {
  color: var(--text-secondary);
  font-size: 1rem;
  cursor: pointer;
  text-decoration: none;
  padding: 0.5rem 0;
}

.mobile-menu.open {
  display: flex;
}

/* ---------- 4. PAGE TRANSITION SYSTEM ---------- */
.page {
  display: none;
  animation: fadeIn 0.4s ease;
}

.page.active {
  display: block;
}

@keyframes fadeIn {
  from { opacity: 0; transform: translateY(10px); }
  to { opacity: 1; transform: none; }
}

/* ---------- 5. UTILITY CLASSES ---------- */
.container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 2rem;
}

.section {
  padding: 5rem 0;
}

.badge {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  background: rgba(45, 122, 255, 0.1);
  border: 1px solid rgba(45, 122, 255, 0.2);
  color: var(--primary);
  font-size: 0.75rem;
  font-weight: 600;
  padding: 0.4rem 1rem;
  border-radius: 100px;
  letter-spacing: 0.05em;
  text-transform: uppercase;
  margin-bottom: 1.25rem;
}

.badge-dot {
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: var(--primary);
  animation: pulse 1.5s infinite;
}

@keyframes pulse {
  0%, 100% { opacity: 1; transform: scale(1); }
  50% { opacity: 0.4; transform: scale(0.8); }
}

.sh {
  font-family: var(--font-h);
  font-weight: 700;
  line-height: 1.2;
}

.sh-xl { font-size: clamp(2.5rem, 6vw, 4.5rem); }
.sh-lg { font-size: clamp(1.8rem, 3.5vw, 2.8rem); }
.text-secondary { color: var(--text-secondary); }

/* ---------- 6. BUTTONS & CARDS ---------- */
.btn {
  display: inline-flex;
  align-items: center;
  gap: 0.6rem;
  font-family: var(--font-h);
  font-weight: 600;
  font-size: 0.9rem;
  padding: 0.85rem 2rem;
  border-radius: 40px;
  border: none;
  cursor: pointer;
  transition: all 0.2s;
}

.btn-primary {
  background: var(--primary);
  color: white;
}

.btn-primary:hover {
  background: var(--primary-dark);
  transform: translateY(-2px);
  box-shadow: 0 8px 20px var(--primary-glow);
}

.btn-outline {
  background: transparent;
  color: var(--text);
  border: 1px solid var(--border2);
}

.btn-outline:hover {
  background: rgba(255, 255, 255, 0.05);
  border-color: rgba(255, 255, 255, 0.3);
}

.card {
  background: rgba(21, 23, 31, 0.8);
  backdrop-filter: blur(10px);
  border: 1px solid var(--border);
  border-radius: 20px;
  padding: 2rem;
  transition: all 0.3s;
}

.card:hover {
  border-color: rgba(45, 122, 255, 0.4);
  transform: translateY(-4px);
}

.grid-2 { display: grid; grid-template-columns: repeat(2, 1fr); gap: 2rem; }
.grid-3 { display: grid; grid-template-columns: repeat(3, 1fr); gap: 1.75rem; }

.reveal {
  opacity: 0;
  transform: translateY(30px);
  transition: opacity 0.7s ease, transform 0.7s ease;
}
.reveal.vis { opacity: 1; transform: none; }

/* ---------- 7. HERO SECTION ---------- */
.hero {
  min-height: 90vh;
  display: flex;
  align-items: center;
  padding: 8rem 2rem 5rem;
  position: relative;
}

.hero-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 4rem;
  align-items: center;
  max-width: 1200px;
  margin: 0 auto;
  width: 100%;
}

.hero-image img {
  width: 100%;
  border-radius: 24px;
  box-shadow: 0 25px 50px -12px rgba(0, 0, 0, 0.5);
  border: 1px solid var(--border);
}

.hero h1 {
  font-family: var(--font-h);
  font-weight: 800;
  font-size: clamp(2.5rem, 5vw, 4rem);
  margin-bottom: 1.5rem;
  line-height: 1.2;
}

.hero h1 span { color: var(--primary); }
.hero p {
  color: var(--text-secondary);
  font-size: 1.1rem;
  margin-bottom: 2rem;
  max-width: 500px;
}

/* ---------- 8. STATS BAR ---------- */
.stats-bar {
  background: rgba(21, 23, 31, 0.7);
  backdrop-filter: blur(10px);
  border-top: 1px solid var(--border);
  border-bottom: 1px solid var(--border);
  padding: 2.5rem 2rem;
}

.stats-grid {
  max-width: 1200px;
  margin: 0 auto;
  display: grid;
  grid-template-columns: repeat(4, 1fr);
}

.stat-item { text-align: center; }
.stat-number {
  font-family: var(--font-h);
  font-size: 2.5rem;
  font-weight: 800;
  color: var(--primary);
  line-height: 1;
  margin-bottom: 0.25rem;
}
.stat-label {
  font-size: 0.8rem;
  color: var(--text-secondary);
  text-transform: uppercase;
}

/* ---------- 9. SERVICE CARDS ---------- */
.service-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1.75rem;
  margin-top: 3rem;
}

.service-card {
  background: rgba(21, 23, 31, 0.8);
  backdrop-filter: blur(10px);
  border: 1px solid var(--border);
  border-radius: 24px;
  padding: 2rem;
  transition: all 0.3s;
  cursor: pointer;
}

.service-card:hover {
  border-color: var(--primary);
  transform: translateY(-6px);
}

.service-icon {
  width: 56px;
  height: 56px;
  border-radius: 16px;
  background: rgba(45, 122, 255, 0.1);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.8rem;
  margin-bottom: 1.5rem;
}

.service-card h3 {
  font-family: var(--font-h);
  font-size: 1.2rem;
  font-weight: 700;
  margin-bottom: 0.75rem;
}
.service-card p { color: var(--text-secondary); font-size: 0.9rem; }

/* ---------- 10. URGENT ALERT BOX ---------- */
.urgent-alert {
  background: linear-gradient(135deg, rgba(239, 68, 68, 0.15), rgba(239, 68, 68, 0.05));
  border: 1px solid rgba(239, 68, 68, 0.4);
  border-radius: 20px;
  padding: 1.8rem;
  margin: 2rem 0;
  animation: softGlow 1.5s ease-in-out infinite;
  transition: all 0.3s;
}

@keyframes softGlow {
  0%, 100% { box-shadow: 0 0 0 0 rgba(239, 68, 68, 0.2); border-color: rgba(239, 68, 68, 0.4); }
  50% { box-shadow: 0 0 20px 5px rgba(239, 68, 68, 0.3); border-color: rgba(239, 68, 68, 0.8); }
}

.urgent-alert h4 {
  color: var(--red);
  font-family: var(--font-h);
  font-size: 1.3rem;
  margin-bottom: 0.75rem;
  display: flex;
  align-items: center;
  gap: 0.75rem;
}

.urgent-alert h4::before {
  content: '⚠️';
  font-size: 1.5rem;
  animation: blink 1s infinite;
}

@keyframes blink { 0%, 100% { opacity: 1; } 50% { opacity: 0.4; } }

.urgent-alert p { color: var(--text-secondary); font-size: 1rem; line-height: 1.6; }

.urgent-hotline {
  display: inline-block;
  background: var(--red);
  color: white;
  font-weight: 700;
  padding: 0.5rem 1.2rem;
  border-radius: 40px;
  margin-top: 1rem;
  font-size: 1.1rem;
  transition: all 0.3s;
  cursor: pointer;
}

.urgent-hotline:hover {
  transform: scale(1.05);
  box-shadow: 0 0 15px var(--red-glow);
}

/* ---------- 11. FAQ SECTION - PERFECTLY CENTERED ---------- */
.faq-section {
  margin: 3rem 0;
}

.faq-header {
  text-align: center;
  margin-bottom: 2.5rem;
}

.faq-header .badge {
  margin: 0 auto 1rem;
  display: inline-flex;
}

.faq-header h2 {
  margin-bottom: 0.75rem;
}

.faq-header p {
  max-width: 600px;
  margin: 0 auto;
}

.faq-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 1.5rem;
  max-width: 1000px;
  margin: 0 auto;
}

.faq-item {
  background: rgba(21, 23, 31, 0.7);
  backdrop-filter: blur(10px);
  border: 1px solid var(--border);
  border-radius: 16px;
  padding: 1.5rem;
  transition: all 0.3s;
  cursor: pointer;
}

.faq-item:hover {
  border-color: rgba(45, 122, 255, 0.4);
  transform: translateY(-2px);
}

.faq-question {
  display: flex;
  justify-content: space-between;
  align-items: center;
  font-family: var(--font-h);
  font-weight: 600;
  font-size: 1rem;
  color: var(--text);
  gap: 1rem;
}

.faq-question span:first-child {
  flex: 1;
}

.faq-question .icon {
  font-size: 1.2rem;
  transition: transform 0.3s;
  color: var(--primary);
  font-weight: 700;
  flex-shrink: 0;
}

.faq-answer {
  max-height: 0;
  overflow: hidden;
  transition: max-height 0.4s ease, margin-top 0.3s ease;
  color: var(--text-secondary);
  font-size: 0.9rem;
  line-height: 1.6;
}

.faq-item.active .faq-answer {
  max-height: 300px;
  margin-top: 1rem;
}

.faq-item.active .faq-question .icon {
  transform: rotate(45deg);
}

/* ---------- 12. PROCESS STEPS ---------- */
.process-steps {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 1.5rem;
  margin-top: 3rem;
}

.process-step { text-align: center; }
.step-number {
  width: 48px;
  height: 48px;
  background: var(--primary);
  border-radius: 60px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: 800;
  font-size: 1.2rem;
  margin: 0 auto 1rem;
  color: white;
}

/* ---------- 13. CALL TO ACTION ---------- */
.cta-section {
  background: linear-gradient(135deg, rgba(21, 23, 31, 0.9), rgba(28, 30, 42, 0.9));
  backdrop-filter: blur(10px);
  border-radius: 32px;
  padding: 4rem;
  text-align: center;
  margin: 4rem auto;
  max-width: 1000px;
  border: 1px solid var(--border);
}

/* ---------- 14. CONTACT FORM ---------- */
.contact-wrapper {
  display: grid;
  grid-template-columns: 1fr 1.2fr;
  gap: 3rem;
  padding: 4rem 0;
}

.contact-form-card {
  background: rgba(21, 23, 31, 0.8);
  backdrop-filter: blur(10px);
  border-radius: 24px;
  padding: 2rem;
  border: 1px solid var(--border);
}

.form-group { margin-bottom: 1.25rem; }
.form-group input,
.form-group select,
.form-group textarea {
  width: 100%;
  background: rgba(15, 17, 24, 0.9);
  border: 1px solid var(--border2);
  border-radius: 12px;
  padding: 1rem;
  color: var(--text);
  font-family: var(--font-b);
  font-size: 0.9rem;
  outline: none;
  transition: all 0.2s;
}

.form-group input:focus,
.form-group select:focus,
.form-group textarea:focus {
  border-color: var(--primary);
  box-shadow: 0 0 0 2px var(--primary-glow);
}

.form-row { display: grid; grid-template-columns: 1fr 1fr; gap: 1rem; }

/* ---------- 15. LEGAL PAGES ---------- */
.legal-content {
  max-width: 900px;
  margin: 0 auto;
  padding: 4rem 2rem;
}

.legal-content h1 {
  font-family: var(--font-h);
  font-size: 2.5rem;
  margin-bottom: 1rem;
}

.legal-content h2 {
  font-size: 1.3rem;
  margin: 1.5rem 0 0.75rem;
  color: var(--primary);
}

.legal-content p {
  color: var(--text-secondary);
  margin-bottom: 1rem;
  line-height: 1.7;
}

.legal-content .last-updated {
  color: var(--muted);
  font-size: 0.85rem;
  margin-bottom: 2rem;
  padding-bottom: 1rem;
  border-bottom: 1px solid var(--border);
}

/* ---------- 16. FOOTER ---------- */
footer {
  background: rgba(15, 17, 24, 0.9);
  backdrop-filter: blur(10px);
  border-top: 1px solid var(--border);
  padding: 4rem 2rem 2rem;
  margin-top: 4rem;
}

.footer-grid {
  max-width: 1200px;
  margin: 0 auto;
  display: grid;
  grid-template-columns: 1.5fr repeat(3, 1fr);
  gap: 3rem;
  padding-bottom: 3rem;
  border-bottom: 1px solid var(--border);
}

.footer-col h5 {
  font-family: var(--font-h);
  font-size: 0.9rem;
  margin-bottom: 1.25rem;
  color: var(--text);
}

.footer-col ul { list-style: none; }
.footer-col ul li { margin-bottom: 0.75rem; }
.footer-col ul li a {
  color: var(--text-secondary);
  text-decoration: none;
  font-size: 0.85rem;
  cursor: pointer;
  transition: color 0.2s;
}
.footer-col ul li a:hover { color: var(--primary); }

.footer-bottom {
  max-width: 1200px;
  margin: 2rem auto 0;
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: 1rem;
}

.copyright { color: var(--muted); font-size: 0.75rem; }

/* ---------- 17. RESPONSIVE DESIGN ---------- */
@media (max-width: 900px) {
  .grid-2, .grid-3, .service-grid, .process-steps, .contact-wrapper, .faq-grid {
    grid-template-columns: 1fr !important;
  }
  .hero-grid { grid-template-columns: 1fr; text-align: center; }
  .stats-grid { grid-template-columns: 1fr 1fr; gap: 1.5rem; }
  .nav-links { display: none; }
  .hamburger { display: flex; }
  #nav { padding: 1rem 1.5rem; }
  .footer-grid { grid-template-columns: 1fr !important; gap: 2rem; }
  .cta-section { padding: 2rem; margin: 2rem; }
  .urgent-alert h4 { font-size: 1.1rem; }
  .faq-grid { max-width: 100%; }
}