/* Fonts are loaded via <link> in HTML for better performance */

:root {
  --accent: #4d9fff;
  --accent-2: #00c8ff;
  --bg: #1e1a1c;
  --bg-card: #322c2f;
  --border: rgba(255, 255, 255, 0.08);
  --text: #f0ecee;
  --muted: #9e9097;
  --header-height: 56px;
}

* { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; scroll-padding-top: var(--header-height); }

/* Skip to content link for keyboard / screen reader users */
.skip-link {
  position: absolute;
  top: -100%;
  left: 16px;
  z-index: 200;
  padding: 8px 16px;
  background: var(--accent);
  color: #fff;
  font-weight: 600;
  border-radius: 0 0 8px 8px;
  text-decoration: none;
  transition: top .2s ease;
}
.skip-link:focus { top: 0; }

/* Visible keyboard focus ring */
:focus-visible {
  outline: 2px solid var(--accent);
  outline-offset: 3px;
  border-radius: 4px;
}

/* Respect reduced-motion preference */
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation-duration: 0.01ms !important; transition-duration: 0.01ms !important; }
  html { scroll-behavior: auto; }
}

body {
  font-family: 'Inter', system-ui, -apple-system, Segoe UI, Roboto, "Helvetica Neue", Arial, sans-serif;
  color: var(--text);
  background: var(--bg);
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  padding-bottom: env(safe-area-inset-bottom, 0px);
}

/* ===== Fixed full-screen background image ===== */
.hero-bg {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100vh;
  height: 100dvh;
  background: url('../assets/proagility-logo.png') center center / contain no-repeat;
  background-color: #292326;
  z-index: 0;
}

/* Spacer pushes content below the fold */
.hero-spacer {
  height: 100vh;
  height: 100dvh;
  position: relative;
  z-index: 0;
}

/* ===== Scroll indicator ===== */
.scroll-hint {
  position: absolute;
  bottom: calc(32px + env(safe-area-inset-bottom, 0px));
  left: 50%;
  transform: translateX(-50%);
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 6px;
  animation: bounce 2s ease infinite;
  transition: opacity 0.4s ease;
}

.scroll-hint.hidden {
  opacity: 0;
  pointer-events: none;
}

.scroll-hint-text {
  font-family: 'Inter', sans-serif;
  font-size: 0.8rem;
  font-weight: 600;
  color: rgba(255, 255, 255, 0.6);
  letter-spacing: 1px;
  text-transform: uppercase;
}

.scroll-hint-arrow { opacity: 0.7; }

@keyframes bounce {
  0%, 100% { transform: translateX(-50%) translateY(0); }
  50% { transform: translateX(-50%) translateY(10px); }
}

/* ===== Content layer covers the background on scroll ===== */
.content {
  position: relative;
  z-index: 1;
  background: var(--bg);
  border-radius: 24px 24px 0 0;
  box-shadow: 0 -16px 48px rgba(0, 0, 0, 0.4);
}

/* ===== Header — fixed top bar, always on top ===== */
.site-header {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  z-index: 100;
  background: rgba(30, 26, 28, 0.88);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border-bottom: 1px solid var(--border);
}

.site-header .container {
  display: flex;
  align-items: center;
  justify-content: flex-end;
}

.brand {
  font-family: 'Montserrat', 'Inter', sans-serif;
  font-weight: 700;
  font-size: 1.25rem;
  color: #ffffff;
  letter-spacing: 0.4px;
}

.main-nav a {
  margin-left: 18px;
  text-decoration: none;
  color: rgba(255, 255, 255, 0.7);
  transition: color .18s ease;
}

.main-nav a:hover { color: #ffffff; }

/* ===== Container ===== */
.container {
  max-width: 1000px;
  margin: 0 auto;
  padding: 24px;
}

/* ===== Sections ===== */
.services { padding: 48px 24px; padding-top: var(--header-height); }
.about { padding: 48px 24px; padding-top: var(--header-height); }
.contact { padding: 48px 24px; padding-top: var(--header-height); }

/* ===== Contact row ===== */
.contact-row {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  margin-top: 16px;
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: 10px;
  padding: 12px 16px;
}

.contact-email {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  color: var(--accent);
  font-weight: 600;
  font-size: 1rem;
  text-decoration: none;
  transition: color .18s ease;
}

.contact-email:hover { color: var(--accent-2); }

.btn-copy {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  padding: 6px 12px;
  border-radius: 6px;
  border: 1px solid var(--border);
  background: transparent;
  color: var(--muted);
  font-size: 0.8rem;
  font-family: inherit;
  cursor: pointer;
  transition: background .16s ease, color .16s ease, border-color .16s ease;
}

.btn-copy:hover {
  background: var(--accent);
  border-color: var(--accent);
  color: #fff;
}

.btn-copy.copied {
  background: #1a7a4a;
  border-color: #1a7a4a;
  color: #fff;
}

.services h2,
.about h2,
.contact h2 {
  margin-bottom: 16px;
  font-family: 'Montserrat', 'Inter', sans-serif;
  font-weight: 700;
  color: var(--text);
}

/* ===== Grid & Cards ===== */
.grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 16px;
  margin-top: 32px;
}

.card {
  background: var(--bg-card);
  padding: 20px;
  border-radius: 12px;
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.25);
  border: 1px solid var(--border);
}

.card h3 {
  margin-top: 0;
  margin-bottom: 8px;
  font-family: 'Montserrat', 'Inter', sans-serif;
  font-weight: 700;
  letter-spacing: 0.2px;
  color: var(--text);
}

.card p {
  color: var(--muted);
  font-size: 0.95rem;
}

/* ===== Button ===== */
.btn {
  display: inline-block;
  background: linear-gradient(90deg, var(--accent), var(--accent-2));
  color: #fff;
  padding: 10px 18px;
  border-radius: 8px;
  text-decoration: none;
  border: none;
  cursor: pointer;
  font-weight: 700;
  box-shadow: 0 8px 20px rgba(10, 116, 255, 0.12);
  transition: transform .14s ease, box-shadow .14s ease;
}

.btn:hover {
  transform: translateY(-3px);
  box-shadow: 0 14px 28px rgba(10, 116, 255, 0.14);
}

/* ===== Footer ===== */
.site-footer {
  padding: 20px 0;
  text-align: center;
  color: var(--muted);
  font-size: 0.9rem;
  border-top: 1px solid var(--border);
}

/* ===== Responsive ===== */
@media (max-width: 600px) {
  .hero-bg { background-size: 80% auto; }
  .content { border-radius: 16px 16px 0 0; }
  .main-nav a { margin-left: 12px; font-size: 0.9rem; }
}

@media (min-width: 700px) {
  .main-nav a { margin-left: 28px; }
  .services, .about, .contact { padding: 64px 24px; }
}
