/* =========================
   RESET & BASE
========================= */
* { margin:0; padding:0; box-sizing:border-box; }

body {
  font-family: "Segoe UI", Arial, sans-serif;
  color: #0f172a;
  line-height: 1.6;
  scroll-behavior: smooth; /* keep for marketing site; remove for app UI */
}

/* Skip link + screen-reader-only helpers */
.skip-link {
  position: absolute;
  left: -999px;
  top: 10px;
  background: #dc2626;
  color: #fff;
  padding: 10px 14px;
  border-radius: 6px;
  text-decoration: none;
  z-index: 2000;
}
.skip-link:focus { left: 10px; }

.sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0,0,0,0);
  white-space: nowrap;
  border: 0;
}

/* =========================
   TOP BAR
========================= */
.top-bar {
  background: linear-gradient(90deg,#020617,#0a0f23);
  color: #e5e7eb;
  display: flex;
  justify-content: center;
  align-items: center;
  font-size: 14px;
  padding: 8px 20px;
  gap: 10px;
  flex-wrap: wrap;

  transform: translateY(-100%);
  opacity: 0;
  animation: slideDown 1s forwards ease-out;
  animation-delay: 0.3s;
}

.top-bar-item {
  display: flex;
  align-items: center;
  gap: 4px;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.5px;
}

.separator { color: #6b7280; }
.top-icon { height: 16px; width: 16px; }

@keyframes slideDown {
  0% { transform: translateY(-100%); opacity: 0; }
  100% { transform: translateY(0); opacity: 1; }
}

/* =========================
   HEADER
========================= */
.header {
  background: #fff;
  border-bottom: 1px solid #e5e7eb;
  position: sticky;
  top: 0;
  z-index: 1000;
  box-shadow: 0 2px 8px rgba(0,0,0,0.05);
}

.nav-container {
  max-width: 1200px;
  margin: auto;
  padding: 15px 20px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  position: relative;
}

.logo-area { display: flex; align-items: center; gap: 10px; }
.logo-img { height: 50px; width: auto; }
.logo-text { font-size: 20px; font-weight: 700; color: #020617; }

.nav-links { display: flex; align-items: center; }
.nav-links a {
  margin-left: 25px;
  text-decoration: none;
  color: #020617;
  font-weight: 600;
  transition: color 0.3s, text-decoration-color 0.3s;
}
.nav-links a:hover { color: #dc2626; text-decoration: underline; text-decoration-color: #dc2626; }

.hamburger {
  display: none;
  flex-direction: column;
  cursor: pointer;
  gap: 4px;
  background: transparent;
  border: none;
  padding: 6px;
}
.hamburger span {
  height: 3px;
  width: 25px;
  background: #020617;
  border-radius: 2px;
}

/* =========================
   HERO
========================= */
.hero {
  background:
    linear-gradient(rgba(2,6,23,0.7), rgba(2,6,23,0.7)),
    url("hero.jpg") center/cover no-repeat;
  color: white;
  padding: 120px 20px;
  text-align: center;
  background-attachment: scroll;
}

@media (min-width: 1024px) {
  .hero { background-attachment: fixed; }
}

.hero-content { max-width: 800px; margin: auto; }

.hero h1,
.hero p,
.hero .btn-primary {
  opacity: 0;
  transform: translateY(20px);
  animation: fadeUp 1s forwards;
}

.hero h1 {
  animation-delay: 0.3s;
  font-size: 42px;
  margin-bottom: 15px;
}

.hero p {
  animation-delay: 0.6s;
  font-size: 18px;
  color: #e5e7eb;
}

.hero .btn-primary { animation-delay: 0.9s; }

.btn-primary {
  display: inline-block;
  margin-top: 25px;
  background: #dc2626;
  color: white;
  padding: 12px 30px;
  border-radius: 5px;
  text-decoration: none;
  font-weight: bold;
  transition: background 0.3s, transform 0.3s;
}
.btn-primary:hover { background: #b91c1c; transform: scale(1.05); }

@keyframes fadeUp {
  to { opacity: 1; transform: translateY(0); }
}

/* =========================
   SERVICES
========================= */
.services {
  padding: 80px 20px;
  background: #f8fafc;
  text-align: center;
}
.services h2 { margin-bottom: 40px; font-size: 32px; }

.services-grid {
  max-width: 1200px;
  margin: auto;
  display: grid;
  gap: 30px;
  grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
}

.service-box {
  background: white;
  padding: 30px;
  border-radius: 8px;
  box-shadow: 0 5px 15px rgba(0,0,0,0.05);

  opacity: 0;
  transform: translateY(20px);

  transition:
    opacity 0.6s ease-out,
    transform 0.6s ease-out,
    box-shadow 0.3s ease,
    transform 0.3s ease;
}

.service-box:hover {
  transform: translateY(-5px);
  box-shadow: 0 10px 25px rgba(0,0,0,0.1);
}

.service-box.fade-in-up {
  opacity: 1;
  transform: translateY(0);
}

.service-icon { height: 50px; margin-bottom: 15px; }

/* =========================
   ABOUT
========================= */
.about {
  padding: 80px 20px;
  max-width: 900px;
  margin: auto;
  text-align: center;
}
.about p { max-width: 70ch; margin: 0 auto; }

/* =========================
   CONTACT
========================= */
.contact {
  background: #020617;
  color: white;
  padding: 80px 20px;
  text-align: center;
}

.contact p { max-width: 70ch; margin: 0 auto; }

.contact form {
  max-width: 400px;
  margin: 30px auto 0;
  display: grid;
  gap: 15px;
}

.contact input,
.contact textarea {
  padding: 12px;
  border-radius: 4px;
  border: none;
}

.contact button {
  background: #dc2626;
  color: white;
  border: none;
  padding: 12px;
  font-weight: bold;
  cursor: pointer;
  transition: background 0.3s;
}
.contact button:hover { background: #b91c1c; }

/* =========================
   FOOTER
========================= */
footer {
  background: #020617;
  color: #9ca3af;
  text-align: center;
  padding: 20px;
  font-size: 14px;
}

/* =========================
   ANCHOR SCROLL FIX
========================= */
section { scroll-margin-top: 100px; }

/* =========================
   ACCESSIBILITY: FOCUS
========================= */
.nav-links a:focus-visible,
.btn-primary:focus-visible,
.contact input:focus-visible,
.contact textarea:focus-visible,
.contact button:focus-visible,
.hamburger:focus-visible {
  outline: 2px solid #dc2626;
  outline-offset: 2px;
}

/* =========================
   RESPONSIVE
========================= */
@media (max-width: 768px) {
  .nav-links {
    display: none;
    flex-direction: column;
    background: #fff;
    position: absolute;
    top: 70px;
    right: 20px;
    width: 200px;
    border: 1px solid #ddd;
    padding: 15px;
    border-radius: 6px;
  }
  .nav-links.show { display: flex; }
  .hamburger { display: flex; }
  .hero h1 { font-size: 34px; }
}

/* =========================
   ACCESSIBILITY: REDUCED MOTION
========================= */
@media (prefers-reduced-motion: reduce) {
  * {
    animation: none !important;
    transition: none !important;
    scroll-behavior: auto !important;
  }
  .top-bar {
    transform: none !important;
    opacity: 1 !important;
  }
  .service-box { opacity: 1; transform: none; }
  .hero h1,
  .hero p,
  .hero .btn-primary { opacity: 1; transform: none; }
}
