/* GlobalTechnowledge - Modern, Professional, Business-Friendly */

:root {
  --bg: #0b0f1a;
  --bg-alt: #11162a;
  --card: rgba(255,255,255,0.06);
  --border: rgba(255,255,255,0.12);
  --text: rgba(255,255,255,0.92);
  --muted: rgba(255,255,255,0.65);

  --primary: #6ee7ff;
  --secondary: #a78bfa;
  --danger: #ff6b6b;

  --radius: 18px;
  --radius-lg: 24px;
  --shadow: 0 20px 50px rgba(0,0,0,0.5);
  --max-width: 1120px;
}

* { box-sizing: border-box; }

html { scroll-behavior: smooth; }

body {
  margin: 0;
  font-family: Inter, system-ui, -apple-system, Segoe UI, Roboto, Arial, sans-serif;
  background:
    radial-gradient(900px 600px at 15% -10%, rgba(110,231,255,0.18), transparent 60%),
    radial-gradient(800px 600px at 90% 0%, rgba(167,139,250,0.18), transparent 65%),
    linear-gradient(180deg, var(--bg), var(--bg-alt));
  color: var(--text);
}

a { color: inherit; text-decoration: none; }
p { line-height: 1.6; }

.container {
  width: min(var(--max-width), calc(100% - 2rem));
  margin-inline: auto;
}

/* Header */
.site-header {
  position: sticky;
  top: 0;
  z-index: 50;
  background: rgba(11,15,26,0.65);
  backdrop-filter: blur(10px);
  border-bottom: 1px solid var(--border);
}

.nav {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0.9rem 0;
}

.brand {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  font-weight: 700;
}

.brand-mark {
  width: 14px;
  height: 14px;
  border-radius: 5px;
  background: linear-gradient(135deg, var(--primary), var(--secondary));
  box-shadow: 0 0 18px rgba(110,231,255,0.4);
}

.nav-links {
  display: flex;
  align-items: center;
  gap: 0.65rem; /* was 1rem */;
}

.nav-links a {
  padding: 0.5rem 0.7rem;
  border-radius: 12px;
  color: var(--muted);
}

.nav-links a:hover {
  background: rgba(255,255,255,0.05);
  color: var(--text);
}

/* Buttons */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 0.8rem 1rem;
  border-radius: 16px;
  border: 1px solid var(--border);
  background: rgba(255,255,255,0.05);
  font-weight: 600;
  cursor: pointer;
  transition: transform .15s ease, background .15s ease;
}

.btn:hover {
  transform: translateY(-1px);
  background: rgba(255,255,255,0.08);
}

.btn-primary {
  background: linear-gradient(135deg, rgba(110,231,255,0.25), rgba(167,139,250,0.2));
  border-color: rgba(110,231,255,0.35);
}

.btn-secondary {
  border-color: rgba(167,139,250,0.35);
}

.btn-ghost {
  background: rgba(255,255,255,0.04);
}

/* Hero */
.hero {
  padding: 5rem 0 3rem;
}

.hero-grid {
  display: grid;
  grid-template-columns: 1.2fr 0.8fr;
  gap: 2rem;
}

.eyebrow {
  color: var(--muted);
  text-transform: uppercase;
  letter-spacing: 0.2em;
  font-size: 0.75rem;
}

.hero h1 {
  font-size: clamp(2rem, 3.4vw, 3.1rem);
  margin: 0.8rem 0;
}

.subhead {
  color: var(--muted);
  max-width: 60ch;
}

.cta-row {
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem;
  margin-top: 1.25rem;
}

/* Sections */
.section {
  padding: 4rem 0;
}

.section-alt {
  background: rgba(255,255,255,0.02);
  border-top: 1px solid var(--border);
  border-bottom: 1px solid var(--border);
}

.cards-grid {
  display: grid;
  grid-template-columns: repeat(3,1fr);
  gap: 1rem;
  margin-top: 2rem;
}

.service-card {
  background: var(--card);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 1.25rem;
}

.service-card h3 {
  margin-top: 0;
}

.muted { color: var(--muted); }

/* Contact */
.contact-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 2rem;
}

form {
  background: var(--card);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 1.5rem;
}

label {
  display: block;
  font-weight: 600;
  margin-bottom: 0.75rem;
}

input, textarea, select {
  width: 100%;
  margin-top: 0.35rem;
  padding: 0.7rem 0.8rem;
  border-radius: 12px;
  border: 1px solid var(--border);
  background: rgba(0,0,0,0.25);
  color: var(--text);
}

textarea { resize: vertical; }

button { margin-top: 1rem; width: 100%; }

/* Footer */
.footer {
  padding: 2.5rem 0;
  text-align: center;
  border-top: 1px solid var(--border);
}

.small { font-size: 0.9rem; }

/* Responsive */
@media (max-width: 900px) {
  .hero-grid,
  .contact-grid {
    grid-template-columns: 1fr;
  }

  .cards-grid {
    grid-template-columns: repeat(2,1fr);
  }
}

@media (max-width: 600px) {
  .cards-grid {
    grid-template-columns: 1fr;
  }
}
/* =========================
   Accessibility helpers
   ========================= */

/* Screen-reader only text (hide visually) */
.sr-only {
  position: absolute !important;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}

/* Skip-to-content link (hidden unless focused) */
.skip-link {
  position: absolute;
  left: -9999px;
  top: auto;
  width: 1px;
  height: 1px;
  overflow: hidden;
}

.skip-link:focus {
  left: 1rem;
  top: 1rem;
  width: auto;
  height: auto;
  padding: 0.75rem 1rem;
  background: rgba(0, 0, 0, 0.85);
  color: #fff;
  border-radius: 12px;
  z-index: 10000;
}
/* Keep top nav items on one line */
.nav-links a {
  white-space: nowrap;
}
.nav {
  flex-wrap: nowrap;
}
/* =========================
   How it works – inline numbering
   ========================= */

.how-card {
  display: flex;
  flex-direction: column;
}

.how-header {
  display: flex;
  align-items: baseline;
  gap: 0.4rem;
}

.how-num {
  font-weight: 800;
  font-size: 0.95rem;
  color: rgba(110, 231, 255, 0.9);
  letter-spacing: 0.08em;
}

.how-num::after {
  content: ".";
  margin-left: 0.1rem;
}

.how-card h3 {
  margin: 0;
  font-size: 1.05rem;
}

.how-card p {
  margin-top: 0.4rem;
  color: var(--muted);
}

/* Force-hide honeypot spam trap field */
.honeypot {
  display: none !important;
}

/* =========================
   Form submit button states
   ========================= */

button[disabled] {
  opacity: 0.45;
  cursor: not-allowed;
  filter: grayscale(40%);
}

button.ready {
  opacity: 1;
  filter: none;
  box-shadow: 0 0 0 rgba(110,231,255,0);
  transition: box-shadow 0.25s ease, transform 0.15s ease;
}

button.ready:hover {
  box-shadow: 0 0 22px rgba(110,231,255,0.45);
  transform: translateY(-1px);
}

#submitBtn:disabled {
  opacity: 0.45;
  cursor: not-allowed;
  filter: grayscale(40%);
}

#submitBtn.ready {
  opacity: 1;
  filter: none;
}

#submitBtn.ready:hover {
  box-shadow: 0 0 22px rgba(110,231,255,0.45);
  transform: translateY(-1px);
}

/* =========================
   Parallax background
   ========================= */

.parallax {
  position: relative;
  background-image: url("./images/hero-bg.webp"); /* <-- your image */
  background-size: cover;
  background-position: center;
  background-repeat: no-repeat;
  background-attachment: fixed;
}

/* Dark overlay so text stays readable */
.parallax-overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(
    180deg,
    rgba(7, 20, 73, 0.45),
    rgba(5, 8, 20, 0.30)
  );
  z-index: 0;
}

/* Ensure content sits above overlay */
.parallax > .container {
  position: relative;
  z-index: 1;
}

@media (max-width: 768px) {
  .parallax {
    background-attachment: scroll;
  }
}

/* =========================
   Inquiry section background image
   ========================= */

.contact-parallax {
  position: relative;
  overflow: hidden;
  padding-top: 5rem;
  padding-bottom: 5rem;
}

.contact-parallax::after {
  content: "";
  position: absolute;
  inset: -40px 0; /* give room for movement */
  background-image: url("./images/bottom-bg.webp");
  background-size: cover;
  background-position: center;
  background-repeat: no-repeat;

  transform: translateY(var(--parallaxOffset, 0px));
  will-change: transform;
  z-index: 0;
}


/* Overlay for readability */
.contact-parallax::before {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(
    180deg,
    rgba(5, 8, 20, 0.55),
    rgba(5, 8, 20, 0.75)
  );
  z-index: 1;
}

/* Content above */
.contact-parallax .container {
  position: relative;
  z-index: 2;
}


@media (max-width: 768px) {
  .contact-parallax {
    background-attachment: scroll;
  }
}


/* Overlay so text/cards remain readable */
.contact-parallax::before {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(
    180deg,
    rgba(5, 8, 20, 0.55),
    rgba(5, 8, 20, 0.75)
  );
  z-index: 0;
}

/* Ensure section content is above overlay */
.contact-parallax .container {
  position: relative;
  z-index: 1;
}

