:root {
  --bg: #0b0f1a;

  --sidebar-w: 200px;
  --sidebar-peek: 50px;

  /* Sidebar-only controls */
  --sidebar-bg: #0b0f1a;
  --sidebar-border: rgba(255, 255, 255, 0.12);
  --sidebar-text: rgba(255, 255, 255, 1);
  --sidebar-muted: rgba(255, 255, 255, 0.8);
  --sidebar-font: system-ui, -apple-system, Segoe UI, Roboto, Arial, sans-serif;
}

* { box-sizing: border-box; }

html, body {
  height: 100%;
  margin: 0;
  background: var(--bg);
}

body {
  overflow: hidden;
}

.main {
  padding: 0;
}

/* Full height sections */
.section {
  min-height: 100vh;
  width: 100%;
  margin: 0;
  padding: 32px 20px;

  position: relative;
  display: flex;
  align-items: center;
  justify-content: center;

  background: var(--section-bg, rgba(255, 255, 255, 0.06));
  background-attachment: fixed;
  color: var(--section-text, rgba(255, 255, 255, 0.92));
  border-top: 1px solid var(--section-border, rgba(255, 255, 255, 0.12));
  font-family: var(--section-font, system-ui, -apple-system, Segoe UI, Roboto, Arial, sans-serif);
}

/* Inner content stays nicely constrained */
.section-inner {
  width: 100%;
  max-width: 1500px;
  text-align: center;
}

/* Typography driven by per-section variables */
.section h1 {
  font-size: var(--h1-size, 64px);
  font-weight: var(--h1-weight, 800);
  letter-spacing: var(--h1-letter, 0.6px);
  margin: 0 0 12px;
  color: var(--heading-color, currentColor);
}

.section h2 {
  font-size: var(--h2-size, 42px);
  font-weight: var(--h2-weight, 700);
  margin: 0 0 10px;
  color: var(--heading-color, currentColor);
}

.section p {
  font-size: var(--p-size, 18px);
  line-height: var(--p-line, 1.6);
  margin: 0;
  color: var(--muted-color, rgba(255, 255, 255, 0.70));
}

.brand-accent {
  color: #CCAF81;
}

/* ───────── HERO ───────── */

#welcome {
  --section-bg: url("assets/images/herobg.jpg") center / cover no-repeat;
  --section-text: rgba(255, 255, 255, 0.96);
  --muted-color: rgba(255, 255, 255, .90);

  --section-font: system-ui, -apple-system, Segoe UI, Roboto, Arial, sans-serif;
  --h1-size: 100px;
  --h1-weight: 800;
  --h1-letter: .8px;
  --p-size: 40px;

  --section-border: rgba(255, 255, 255, 0.10);
}

#welcome.section {
  padding-left: 0;
  padding-right: 0;
}

#welcome .section-inner {
  width: 100%;
  max-width: none;
  text-align: center;
  margin: 0;
  padding: 40px 0;
  border-radius: 0;

  background: rgba(10, 12, 20, 0.25);
  backdrop-filter: blur(30px);

  border-top: 1px solid rgba(255, 255, 255, 0.12);
  border-bottom: 1px solid rgba(255, 255, 255, 0.12);
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.25);
}

#welcome .hero-content {
  max-width: 900px;
  margin: 0 auto;
  padding: 0 20px;
  text-align: center;
}

#welcome .hero-tagline {
  text-align: center;
  font-size: 40px;
  font-weight: 600;
  letter-spacing: 0.4px;
  color: rgba(255, 255, 255, 1);
  margin-top: -25px;
}

/* ───────── MISSION ───────── */

#mission {
  --section-bg: rgba(255, 255, 255, 0.05);
  --section-text: rgba(255, 255, 255, 0.92);
  --muted-color: rgba(255, 255, 255, 0.80);
  --section-border: rgba(255, 255, 255, 0.12);

  --h2-size: 44px;
  --p-size: 30px;
}

#mission p {
  line-height: 2;
}

/* ───────── SERVICES ───────── */

#services {
  --section-bg: rgba(255, 255, 255, 0.05);
  --section-text: rgba(255, 255, 255, 0.95);
  --muted-color: rgba(255, 255, 255, 0.80);
  --section-border: rgba(255, 255, 255, 0.10);

  --h2-size: 46px;
  --p-size: 16px;
}

/* Remove outer section padding so header + grid share same edges */
#services.section {
  padding-left: 0;
  padding-right: 0;
}

/* One source of truth for width + inset */
#services .services-wrap {
  width: min(1500px, 100%);
  margin: 0 auto;
  padding: 0 20px;
  text-align: center;
}

/* Header centered, same width as grid */
#services .services-header {
  width: 100%;
  margin: 0 auto 40px auto;
  text-align: center;
}

#services .services-header h2 {
  margin-bottom: 12px;
}

/* This is where you change the services paragraph font + spacing */
#services .services-intro {
  width: 100%;
  max-width: none;
  margin: 0 auto 32px auto;

  font-size: 22px;
  line-height: 1.7;
  color: rgba(255, 255, 255, 0.85);
}

/* 2x2 grid */
#services .services-grid {
  width: 100%;
  border: 1px solid rgba(255, 255, 255, 0.18);
  border-radius: 6px;
  overflow: hidden;

  display: grid;
  grid-template-columns: 1fr 1fr;
}

/* Each service cell */
#services .service-cell {
  padding: 56px 56px;
  min-height: 320px;

  display: flex;
  flex-direction: column;
  gap: 20px;
}

/* Icon sizing FIX */
#services .service-icon {
  display: inline-block;
  font-size: 80px;
  line-height: 1;
  opacity: 0.95;

  font-variation-settings:
    "opsz" 80,
    "wght" 300,
    "FILL" 0,
    "GRAD" 0;
}

#services .service-cell h3 {
  margin: 0;
  font-size: 26px;
  font-weight: 700;
  color: rgba(255, 255, 255, 0.95);
}

#services .service-cell p {
  margin: 0;
  color: rgba(255, 255, 255, 0.78);
  font-size: 18px;
  line-height: 1.7;
}

/* Divider lines between blocks */
#services .service-cell:nth-child(1),
#services .service-cell:nth-child(2) {
  border-bottom: 1px solid rgba(255, 255, 255, 0.18);
}

#services .service-cell:nth-child(1),
#services .service-cell:nth-child(3) {
  border-right: 1px solid rgba(255, 255, 255, 0.18);
}

/* ───────── CONTACT ───────── */
/* Your contact CSS is already present in your file and working visually,
   so I am not rewriting it here. Keep it exactly as you have it below this point. */

/* ───────── Sidebar Hover System ───────── */

.sidebar {
  position: fixed;
  top: 0;
  left: 0;
  z-index: 10;
  height: 100vh;
  width: var(--sidebar-w);
  padding: 18px 14px;
  font-family: var(--sidebar-font);
  background: var(--sidebar-bg);
  backdrop-filter: blur(10px);
  border-right: 1px solid var(--sidebar-border);

  transform: translateX(calc(-1 * (var(--sidebar-w) - var(--sidebar-peek))));
  transition: transform 250ms ease;
}

.sidebar.open {
  transform: translateX(0);
}

.sidebar-nav {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 100px;
  height: 100%;
}

.sidebar-nav a {
  color: var(--sidebar-muted);
  text-decoration: none;
  font-size: 18px;
  font-weight: 500;
  letter-spacing: 0.4px;
  padding: 2px 0;
  transition: color 150ms ease;
  text-align: center;
}

.sidebar-nav a:hover {
  color: var(--sidebar-text);
}

/* Invisible hover trigger on left edge */
.sidebar-hover-zone {
  position: fixed;
  top: 0;
  left: 0;
  width: 18px;
  height: 100vh;
  z-index: 9;
}

/* Mobile sidebar toggle button */
.sidebar-toggle {
  position: fixed;
  top: 14px;
  left: 14px;
  z-index: 20;

  background: rgba(11, 15, 26, 0.55);
  border: 1px solid rgba(255, 255, 255, 0.16);
  backdrop-filter: blur(10px);
  border-radius: 10px;

  width: 46px;
  height: 46px;
  padding: 0;

  display: none;
  align-items: center;
  justify-content: center;

  color: rgba(255, 255, 255, 0.95);
  cursor: pointer;
}

.sidebar-toggle .material-symbols-outlined {
  font-size: 28px;
  line-height: 1;
}

/* ───────── Section navigation arrows ───────── */

.section-arrow .material-symbols-outlined {
  font-size: 60px;
  line-height: 1;
  font-variation-settings:
    "wght" 300,
    "opsz" 24;
}

.section-arrow {
  position: absolute;
  left: 50%;
  transform: translateX(-50%);
  z-index: 2;

  background: none;
  border: none;
  padding: 0;
  opacity: 0.2;

  display: flex;
  align-items: center;
  justify-content: center;

  color: var(--section-text, rgba(255, 255, 255, 0.92));
  cursor: pointer;
  user-select: none;

  transition: transform 150ms ease, opacity 150ms ease;
}

.section-arrow:hover {
  transform: translateX(-50%) scale(1.1);
  opacity: 0.85;
}

.section-arrow:active {
  transform: translateX(-50%) scale(0.98);
}

.section-arrow.top { top: 14px; }
.section-arrow.bottom { bottom: 14px; }

.section-arrow svg {
  width: 18px;
  height: 18px;
  display: block;
}

@keyframes pulseGlow {
  0% {
    opacity: 0.35;
    filter: drop-shadow(0 0 0 rgba(255, 255, 255, 0));
  }
  50% {
    opacity: 1;
    filter: drop-shadow(0 0 10px rgba(255, 255, 255, 0.65));
  }
  100% {
    opacity: 0.35;
    filter: drop-shadow(0 0 0 rgba(255, 255, 255, 0));
  }
}

#welcome .section-arrow.bottom {
  animation: pulseGlow 2.5s ease-in-out infinite;
}

/* ───────── Mobile fixes ───────── */

@media (max-width: 900px) {
  /* Mobile browsers hate background-attachment: fixed */
  .section {
    background-attachment: scroll;
    min-height: 100svh;
    padding: 22px 16px;
  }

  /* Hero scaling */
  #welcome {
    --h1-size: 62px;
    --p-size: 22px;
  }

  #welcome .hero-tagline {
    font-size: 22px;
    margin-top: 6px;
  }

  #welcome .hero-content {
    max-width: 560px;
  }

  /* Services: stack and scale */
  #services .services-grid {
    grid-template-columns: 1fr;
  }

  #services .service-cell {
    min-height: 0;
    padding: 34px 22px;
    text-align: left;
  }

  #services .service-cell:nth-child(1),
  #services .service-cell:nth-child(3) {
    border-right: none;
  }

  #services .service-cell:not(:last-child) {
    border-bottom: 1px solid rgba(255, 255, 255, 0.18);
  }

  #services .service-icon {
    font-size: 64px;
    font-variation-settings:
      "opsz" 64,
      "wght" 300,
      "FILL" 0,
      "GRAD" 0;
  }

  #services .services-intro {
    font-size: 18px;
    line-height: 1.7;
  }

  /* Sidebar becomes tap-driven on mobile */
  .sidebar-hover-zone {
    display: none;
  }

  .sidebar-toggle {
    display: inline-flex;
  }

  /* Give sidebar more usable width on phones */
  :root {
    --sidebar-w: 260px;
    --sidebar-peek: 40px;
  }

  .sidebar-nav {
    gap: 42px;
  }

  .sidebar-nav a {
    font-size: 20px;
  }
}
