/* =============================
   PT. QIRANS MEDIA UTAMA - styles.css
   Improved: mobile menu, accessibility, responsive tweaks
   ============================= */

/* Reset / Global */
* { box-sizing: border-box; }
html,body { height: 100%; }
body {
  margin: 0;
  font-family: Inter, system-ui, -apple-system, "Segoe UI", Roboto, "Helvetica Neue", Arial;
  background: #0d0d0d;
  color: #fff;
  -webkit-font-smoothing:antialiased;
  -moz-osx-font-smoothing:grayscale;
  line-height: 1.5;
}

/* Header */
header {
  background: #0f1720;
  padding: 18px 28px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  position: sticky;
  top: 0;
  z-index: 1000;
  border-bottom: 1px solid rgba(255,255,255,0.03);
  transition: background .25s ease;
}
header h1 {
  margin: 0;
  color: #06b6d4; /* teal-cyan */
  font-size: 20px;
  letter-spacing: 0.6px;
  font-weight: 600;
}

/* Nav */
nav {
  display: flex;
  gap: 14px;
  align-items: center;
}
nav a {
  color: #e6eef2;
  text-decoration: none;
  font-size: 15px;
  padding: 8px 10px;
  border-radius: 8px;
  transition: color .18s ease, background .18s ease, transform .12s ease;
}
nav a:hover { color: #06b6d4; transform: translateY(-2px); }
nav a:focus { outline: 3px solid rgba(6,182,212,0.12); outline-offset: 3px; }
nav a.active {
  background: rgba(6,182,212,0.08);
  color: #06b6d4;
  box-shadow: 0 6px 18px rgba(6,182,212,0.06);
}

/* Mobile menu button */
.mobile-menu-btn {
  display: none; /* only for small screens */
  background: transparent;
  border: none;
  color: #e6eef2;
  font-size: 20px;
  cursor: pointer;
  padding: 6px 8px;
  border-radius: 8px;
}
.mobile-menu-btn:focus {
  outline: 3px solid rgba(6,182,212,0.12);
  outline-offset: 3px;
}

/* Hero */
.hero {
  min-height: 68vh;
  background: linear-gradient(0deg, rgba(0,0,0,0.45), rgba(0,0,0,0.15)), url('https://www.student-circuit.com/wp-content/uploads/sites/54/2023/07/AdobeStock_600358251.jpeg') center/cover no-repeat;
  display: flex;
  justify-content: center;
  align-items: center;
  text-align: center;
  padding: 36px 20px;
}
.hero > div { max-width: 980px; }
.hero h2 {
  font-size: clamp(26px, 4.5vw, 44px);
  margin: 0 0 12px;
  color: #ffffff;
  text-shadow: 0 6px 30px rgba(0,0,0,0.6);
  line-height: 1.05;
}
.hero p {
  font-size: clamp(14px, 1.6vw, 18px);
  margin: 0 auto;
  max-width: 760px;
  color: #d6e9ee;
}

/* Button */
.btn {
  background: linear-gradient(90deg,#06b6d4,#0ea5b5);
  padding: 10px 18px;
  border-radius: 10px;
  display: inline-block;
  margin-top: 18px;
  color: #021012;
  text-decoration: none;
  font-weight: 700;
  box-shadow: 0 8px 30px rgba(6,182,212,0.12);
  transition: transform .16s ease, box-shadow .16s ease;
}
.btn:hover { transform: translateY(-4px); box-shadow: 0 14px 40px rgba(6,182,212,0.14); }

/* Sections */
section {
  padding: 56px 20px;
  max-width: 1100px;
  margin: 0 auto;
}
h3 {
  font-size: 22px;
  color: #06b6d4;
  text-align: center;
  margin-bottom: 22px;
}

/* Cards / Services grid */
.services {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
  gap: 20px;
}
.card {
  background: linear-gradient(180deg, rgba(255,255,255,0.02), rgba(0,0,0,0.18));
  padding: 20px;
  border-radius: 12px;
  border: 1px solid rgba(255,255,255,0.03);
  transition: transform .28s ease, border-color .2s ease, box-shadow .28s ease;
}
.card h4 { margin-top:0; color:#dff8fb; }
.card p { color: #c6dfe6; font-size: 14px; }
.card:hover {
  transform: translateY(-8px);
  border-color: rgba(6,182,212,0.14);
  box-shadow: 0 22px 40px rgba(2,6,23,0.6);
}

/* Contact & Footer */
.contact-section { text-align:center; }
footer {
  text-align: center;
  padding: 20px;
  background: transparent;
  border-top: 1px solid rgba(255,255,255,0.02);
  margin-top: 34px;
  color: #9fb5bd;
  font-size: 13px;
}

/* Fade Animation helper */
.fade { opacity: 0; transform: translateY(18px); transition: opacity 700ms ease, transform 700ms ease; }
.fade.show { opacity: 1; transform: translateY(0); }

/* Login small overrides (page-specific inline CSS kept minimal) */
.login-container { max-width: 420px; margin: 56px auto; }

/* Map iframe responsiveness */
iframe { width: 100%; max-width: 1100px; height: 360px; border: 0; border-radius: 12px; }

/* Responsiveness */
@media (max-width: 900px) {
  nav { gap: 10px; }
  .hero { min-height: 54vh; padding: 36px 18px; }
}
@media (max-width: 768px) {
  header { padding: 14px 18px; }
  nav { display: none; flex-direction: column; gap: 8px; background: #071019; padding: 12px; position: absolute; right: 16px; top: 64px; border-radius: 10px; box-shadow: 0 12px 30px rgba(2,6,23,0.6); width: calc(100% - 32px); max-width: 340px; }
  .mobile-menu-btn { display: inline-flex; align-items:center; justify-content:center; }
  header.open nav { display: flex; }
  nav a { padding: 10px 12px; }
}
@media (max-width: 420px) {
  .hero h2 { font-size: 20px; }
  .hero p { font-size: 14px; }
}
