:root {
  --brand: #1E64FF;
  --accent: #00C2FF;

  /* Extra colour pops (used subtly) */
  --pink: #FF4D8D;
  --purple: #7C3AED;
  --lime: #22C55E;
  --amber: #F59E0B;

  --bg: #F5F8FF;
  --text: #0A0A0A;
  --muted: #5E6776;

  /* Slightly glassy surfaces look great with colourful backgrounds */
  --surface: rgba(255, 255, 255, 0.92);
  --surface-solid: #FFFFFF;

  --dark: #0B1B3B;
  --radius: 18px;
  --shadow: 0 14px 40px rgba(11, 27, 59, 0.14);
}

/* =========================
   Top Utility Bar
========================= */

.top {
  background: var(--dark); /* navy */
  color: #ffffff;
  font-size: 0.9rem;
}

.top-inner {
  max-width: 1150px;
  margin: 0 auto;
  padding: 8px 20px;

  display: flex;
  align-items: center;
  justify-content: space-between;
}

.top a {
  color: #ffffff;
  text-decoration: none;
  font-weight: 600;
  transition: opacity 160ms ease;
}

.top a:hover {
  opacity: 0.8;
}

/* Mobile stacking */
@media (max-width: 640px) {
  .top-inner {
    flex-direction: column;
    gap: 6px;
    text-align: center;
  }
}

.top-link {
  display: inline-flex;
  align-items: center;
  gap: 8px;
}

.top-icon {
  width: 16px;
  height: 16px;
  color: #ffffff;
  flex-shrink: 0;
}

/* Slight hover polish */
.top-link:hover .top-icon {
  opacity: 0.85;
}


* { box-sizing: border-box; }
html, body {
  margin: 0;
  padding: 0;
  scroll-behavior: smooth;
  overflow-x: hidden; /* stops tiny right scroll */
}

body {
  font-family: system-ui, -apple-system, Segoe UI, Roboto, Arial, sans-serif;
  color: var(--text);
  line-height: 1.6;

  /* Colourful but still "business" */
  background:
    radial-gradient(900px 420px at 15% -5%, rgba(0,194,255,.22), transparent 60%),
    radial-gradient(900px 420px at 85% 0%, rgba(255,77,141,.18), transparent 55%),
    radial-gradient(900px 420px at 60% 105%, rgba(124,58,237,.14), transparent 55%),
    #ffffff;
}

.container { max-width: 1150px; margin: 0 auto; padding: 0 20px; }

/* Header */
.site-header {
  position: sticky; top: 0; z-index: 50;
  background: rgba(255,255,255,0.86);
  backdrop-filter: blur(10px);
  border-bottom: 1px solid rgba(238,241,246,0.95);
}

.header-inner { display: flex; align-items: center; justify-content: space-between; height: 110px; }
.brand { display: inline-flex; align-items: center; gap: 12px; text-decoration: none; }
.brand-logo { height: 75px; width: auto; display: block; }
.brand-name { font-weight: 800; font-size: 1.05rem; color: var(--dark); letter-spacing: .3px; }

/* Nav */
.nav-menu { display: flex; gap: 16px; align-items: center; list-style: none; padding: 0; margin: 0; }

.nav-menu a {
  text-decoration: none;
  color: var(--dark);
  font-weight: 650;
  padding: 8px 10px;
  border-radius: 10px;
  transition: transform 120ms ease, background 160ms ease, box-shadow 160ms ease, color 160ms ease;
}

.nav-menu a:hover {
  color: var(--brand);
  transform: translateY(-1px);
}

.nav-toggle { display: none; background: none; border: 0; padding: 6px; }
.nav-toggle .bar { display: block; width: 22px; height: 2px; background: var(--dark); margin: 4px 0; border-radius: 2px; }

/* Hero */
.hero {
  position: relative;
  overflow: hidden; /* contains the blurred hero gradient */
  background:
    radial-gradient(1200px 520px at 18% 0%, rgba(30,100,255,.20), transparent 60%),
    radial-gradient(900px 420px at 85% 20%, rgba(0,194,255,.22), transparent 55%),
    radial-gradient(900px 520px at 55% 110%, rgba(255,77,141,.14), transparent 55%);
  padding: 64px 0 40px;
}

.hero-gradient {
  position: absolute;
  left: 0;
  right: 0;
  top: 0;
  height: 420px;
  pointer-events: none;
  z-index: -1;
  background:
    radial-gradient(650px 240px at 22% 0%, rgba(30,100,255,.26), transparent 70%),
    radial-gradient(650px 240px at 80% 30%, rgba(0,194,255,.22), transparent 70%),
    radial-gradient(680px 260px at 58% 25%, rgba(255,77,141,.16), transparent 72%);
  filter: blur(22px);
}

.hero-inner { display: grid; grid-template-columns: 1.1fr .9fr; gap: 28px; align-items: center; }

.hero-copy h1 {
  font-size: clamp(2rem, 3.8vw, 3rem);
  line-height: 1.1;
  margin: 0 0 12px;
  color: var(--dark);
}

.hero-copy p { margin: 0 0 16px; color: var(--muted); font-size: 1.05rem; }
.hero-cta { display: flex; gap: 12px; margin: 12px 0 14px; }

.hero-badges { display: flex; gap: 12px; flex-wrap: wrap; padding: 0; margin: 12px 0 0; list-style: none; }

.hero-badges li {
  background: linear-gradient(135deg, rgba(30,100,255,.10), rgba(0,194,255,.10));
  border: 1px solid rgba(30,100,255,.18);
  padding: 8px 12px;
  border-radius: 999px;
  font-weight: 700;
  color: var(--dark);
  font-size: .9rem;
}

/* Cards (with colourful edge) */
.card {
  position: relative;
  background: var(--surface-solid);
  border: 1px solid rgba(238,241,246,0.95);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  padding: 20px;
  transition: transform 160ms ease, box-shadow 180ms ease;
}

.card::before {
  content: "";
  position: absolute;
  inset: -1px;
  border-radius: calc(var(--radius) + 2px);
  background: linear-gradient(135deg,
    rgba(30,100,255,.35),
    rgba(0,194,255,.35),
    rgba(255,77,141,.22),
    rgba(124,58,237,.22)
  );
  z-index: -1;
}

.card h3 { margin: 0 0 10px; }
.card p { margin: 0 0 10px; color: var(--muted); }

/* Services section polish */
.section-head {
  max-width: 900px;
  margin: 0 auto 22px;
  text-align: center;
}

.services-grid {
  align-items: stretch; /* helps equal height rows */
}

/* Equal-height service cards + better structure */
.service {
  display: flex;
  flex-direction: column;
  gap: 12px;
  height: 100%;
}

.service-top {
  display: flex;
  align-items: center;
  gap: 12px;
}

.service-top h3 {
  margin: 0;
}

.service-icon {
  width: 44px;
  height: 44px;
  border-radius: 12px;
  display: grid;
  place-items: center;
  font-size: 22px;
  background: rgba(30, 100, 255, 0.10); /* uses your brand vibe */
  border: 1px solid rgba(30, 100, 255, 0.18);
}

/* Make checklist sit nicely at the bottom on taller cards */
.service .checklist {
  margin-top: auto;
}

/* Optional: slightly tighter checklist spacing */
.checklist {
  padding-left: 18px;
}
.checklist li {
  margin: 6px 0;
}

/* Mobile layout: keep cards readable */
@media (max-width: 900px) {
  .section-head { text-align: left; }
}

@media (max-width: 640px) {
  .service-icon {
    width: 40px;
    height: 40px;
    border-radius: 10px;
    font-size: 20px;
  }
}


/* Forms */
label { display: grid; gap: 6px; margin: 10px 0; font-weight: 650; color: var(--dark); }

input, textarea {
  border: 1px solid #dfe6f3;
  border-radius: 12px;
  padding: 12px 14px;
  font: inherit;
  background: rgba(255,255,255,0.9);
  transition: box-shadow 160ms ease, border-color 160ms ease, outline-color 160ms ease;
}

input:focus, textarea:focus {
  outline: 2px solid rgba(30,100,255,.25);
  border-color: var(--brand);
  box-shadow: 0 10px 24px rgba(30,100,255,.10);
}

/* Buttons */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 12px 18px;
  border-radius: 12px;
  text-decoration: none;
  font-weight: 800;
  border: 1px solid transparent;
  transition: transform 140ms ease, filter 160ms ease, box-shadow 160ms ease, background 160ms ease;
}

.btn--primary {
  background: var(--dark);
  color: #ffffff;
  cursor: pointer;
}

.btn--primary:active { transform: translateY(0px); }

.btn--slider{
  display: inline-flex;
  align-items: center;
  justify-content: center;

  padding: 12px 22px;
  border-radius: 0; /* matches sharp text box corners */
  text-decoration: none;
  font-weight: 400;
  letter-spacing: 0.3px;

  color: #ffffff;
  background: rgba(0, 0, 0, 0.45); /* same as overlay */
  border: 2px solid #ffffff;

  transition: background 160ms ease, transform 140ms ease, box-shadow 160ms ease;
}
.btn--slider:hover{
  background: rgba(255, 255, 255, 0.12);
  transform: translateY(-1px);
  box-shadow: 0 10px 24px rgba(0,0,0,0.35);
}

.btn--slider:active{
  transform: translateY(0);
  box-shadow: 0 6px 14px rgba(0,0,0,0.25);
}



.btn--ghost {
  border-color: #dbe4f7;
  color: var(--dark);
  background: rgba(255,255,255,0.9);
}

.btn--ghost:hover {
  background: linear-gradient(90deg, rgba(30,100,255,.08), rgba(0,194,255,.08));
  box-shadow: 0 14px 28px rgba(11, 27, 59, 0.10);
  transform: translateY(-1px);
}

.btn--block { width: 100%; }

/* Sections */
.section { padding: 72px 0; }

.section--alt {
.section { padding: 72px 0; }
}

.section-title { margin: 0 0 8px; font-size: clamp(1.5rem, 2.8vw, 2rem); color:var(--dark); }
.section-intro { color: var(--muted); margin: 0 0 22px; }

/* Grid */
.grid { display: grid; gap: 20px; }
.cards-3 { grid-template-columns: repeat(3, 1fr); }

/* Lists */
.service .checklist, .about .checklist { padding-left: 1.1em; }
.checklist li { margin: 6px 0; }

/* Projects */
.project {
  position: relative;
  background: rgba(255, 255, 255, 0.92);
  border: 1px solid rgba(238,241,246,0.95);
  border-radius: var(--radius);
  overflow: hidden;
  box-shadow: var(--shadow);
  transition: transform 160ms ease, box-shadow 180ms ease;
}

.project:hover {
  transform: translateY(-2px);
  box-shadow: 0 18px 52px rgba(11, 27, 59, 0.18);
}

.project-img{
  width: 100%;
  height: 350px;
  display: block;

  object-fit: cover;
  object-position: center;

  cursor: zoom-in;
  pointer-events: auto;
  touch-action: manipulation;
}

.project figcaption { padding: 16px; }

/* Skeleton shimmer (kept) */
.skeleton { background: linear-gradient(90deg, #e8efff, #f5f8ff, #e8efff); background-size: 200% 100%; animation: shimmer 2s infinite; }
@keyframes shimmer { 0% {background-position: 200% 0} 100% {background-position: -200% 0} }

/* About / Contact layout */
.about { display: grid; gap: 22px; grid-template-columns: 1.1fr .9fr; align-items: start; }
.ticks { padding-left: 1.1em; }
.ticks li { margin: 6px 0; }

.contact-grid { display: grid; grid-template-columns: 1.1fr .9fr; gap: 20px; }
.map { height: 260px; border-radius: 14px; }

/* Footer */
.site-footer {
  border-top: 1px solid rgba(238,241,246,0.95);
  padding: 28px 0;
  background: rgba(255,255,255,0.88);
  color: var(--muted);
  backdrop-filter: blur(8px);
}

.footer-inner { display: flex; align-items: center; justify-content: space-between; gap: 12px; }
.footer-nav a { color: var(--muted); text-decoration: none; margin-left: 12px; }
.footer-nav a:hover { color: var(--brand); }

.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; }

/* Responsive */
@media (max-width: 920px) {
  .hero-inner, .about, .contact-grid { grid-template-columns: 1fr; }
  .cards-3 { grid-template-columns: 1fr 1fr; }
}

@media (max-width: 640px) {
  .cards-3 { grid-template-columns: 1fr; }
  .nav-toggle { display: inline-block; }

  .nav-menu {
    position: absolute;
    right: 20px;
    top: 70px;
    background: rgba(255,255,255,0.96);
    border: 1px solid rgba(238,241,246,0.95);
    border-radius: 12px;
    padding: 10px;
    display: none;
    flex-direction: column;
    width: 220px;
    box-shadow: var(--shadow);
    backdrop-filter: blur(10px);
  }

  .nav-menu.is-open { display: flex; }
}

/* Lightbox (animated + works properly) */
.lightbox{
  position: fixed;
  inset: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 24px;
  background: rgba(0, 0, 0, 0.75);
  z-index: 9999;

  /* hidden state */
  opacity: 0;
  visibility: hidden;
  pointer-events: none;

  transition: opacity 200ms ease, visibility 0s linear 200ms;
}

.lightbox.is-open{
  opacity: 1;
  visibility: visible;
  pointer-events: auto;

  transition: opacity 200ms ease, visibility 0s;
}

/* Frame / content animation */
.lightbox-content{
  max-width: min(1000px, 92vw);
  max-height: 86vh;
  background: #fff;
  border-radius: 16px;
  padding: 12px;
  box-shadow: 0 20px 60px rgba(0,0,0,0.35);

  transform: scale(2);
  opacity: 0;
  transform-origin: center;

  transition: transform 220ms ease, opacity 220ms ease;
}

.lightbox.is-open .lightbox-content{
  transform: scale(1);
  opacity: 1;
}

.lightbox-content img{
  display: block;
  width: 100%;
  height: auto;
  max-height: calc(86vh - 24px);
  object-fit: contain;
  border-radius: 12px;
}

/* Close button */
.lightbox-close{
  position: fixed;
  top: 16px;
  right: 16px;
  width: 44px;
  height: 44px;
  border: 0;
  border-radius: 999px;
  cursor: pointer;
  font-size: 28px;
  line-height: 44px;
  background: rgba(255,255,255,0.9);
}

.lightbox{
  -webkit-tap-highlight-color: transparent;
}

/* -------------------------
   Scroll reveal animations
-------------------------- */

/* Default hidden state */
.reveal {
  opacity: 0;
  transform: translateY(22px);
  transition: opacity 600ms ease, transform 600ms ease;
  will-change: opacity, transform;
}

/* When revealed */
.reveal.is-visible {
  opacity: 1;
  transform: translateY(0);
}

/* Optional directions (if you want variety) */
.reveal[data-reveal="left"]  { transform: translateX(-28px); }
.reveal[data-reveal="right"] { transform: translateX(28px); }
.reveal[data-reveal="up"]    { transform: translateY(28px); } /* same as default but explicit */

/* Reveal active state should always end at neutral position */
.reveal.is-visible[data-reveal="left"],
.reveal.is-visible[data-reveal="right"],
.reveal.is-visible[data-reveal="up"] {
  transform: translate(0, 0);
}

/* Respect reduced motion */
@media (prefers-reduced-motion: reduce) {
  .reveal {
    opacity: 1 !important;
    transform: none !important;
    transition: none !important;
  }
}


/* Respect reduced motion settings */
@media (prefers-reduced-motion: reduce){
  .lightbox,
  .lightbox-content{
    transition: none !important;
  }
}
.form-message {
  margin-top: 12px;
  font-weight: 650;
  font-size: 0.95rem;
}

.form-message.error {
  color: #b91c1c;
}

.form-message.success {
  color: #15803d;
}


/* =========================
   FULL WIDTH HERO SLIDER
========================= */

.hero-slider{
  width: 100%;
  position: relative;
  overflow: hidden;
}

/* 75vh desktop, shorter on mobile */
.hero-slider{
  height: 75vh;
  min-height: 420px;
  max-height: 700px;
}

@media (max-width: 640px){
  .hero-slider{
    height: 52vh;
    min-height: 320px;
    max-height: 600px;
  }
}

.slider{
  width: 100%;
  height: 100%;
  position: relative;
}

.slide{
  position: absolute;
  inset: 0;
  opacity: 0;
  transition: opacity 700ms ease;
}

.slide.is-active{
  opacity: 1;
  z-index: 1;
}

.slide img{
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

/* Controls */
.slider-btn{
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  z-index: 5;

  width: 48px;
  height: 48px;
  border-radius: 999px;
  border: 0;
  cursor: pointer;

  display: flex;
  align-items: center;
  justify-content: center;

  background: rgba(0,0,0,0.45);
  transition: background 160ms ease, transform 160ms ease;
}

.slider-btn:hover{
  background: rgba(0,0,0,0.65);
  transform: translateY(-50%) scale(1.04);
}

.slider-btn.prev{ left: 18px; }
.slider-btn.next{ right: 18px; }

/* SVG arrow */
.slider-btn svg{
  width: 22px;
  height: 22px;
  stroke: #fff;
  stroke-width: 2.8;
  fill: none;
  stroke-linecap: round;
  stroke-linejoin: round;
}


/* Optical centering tweaks */
.slider-btn.prev { padding-right: 2px; }
.slider-btn.next { padding-left: 2px; }


.slider-btn:hover{
  background: rgba(0,0,0,0.65);
  transform: translateY(-50%) scale(1.03);
}

.slider-btn.prev{ left: 18px; }
.slider-btn.next{ right: 18px; }

/* Dots */
.slider-dots{
  position: absolute;
  left: 0;
  right: 0;
  bottom: 16px;
  display: flex;
  justify-content: center;
  gap: 10px;
  z-index: 5;
  padding: 0 16px;
}

.slider-dots button{
  width: 10px;
  height: 10px;
  border-radius: 999px;
  border: 0;
  cursor: pointer;
  background: rgba(255,255,255,0.55);
  transition: transform 160ms ease, background 160ms ease;
}

.slider-dots button[aria-selected="true"]{
  background: rgba(255,255,255,0.98);
  transform: scale(1.15);
}

/* Optional: subtle bottom fade for readability if you later add captions */
.hero-slider::after{
  content: "";
  position: absolute;
  inset: 0;
  pointer-events: none;
  background: linear-gradient(to top, rgba(0,0,0,0.25), transparent 45%);
}

/* =========================
   Slider Text Overlay
========================= */

.slider-overlay{
  position: absolute;
  inset: 0;
  z-index: 4; /* below arrows, above images */
  display: flex;
  align-items: center; /* vertical centering */
  pointer-events: none;
}

.slider-overlay-inner{
  max-width: 520px;
  margin-left: clamp(32px, 10vw, 200px);
  background: rgba(0, 0, 0, 0.45);
  backdrop-filter: blur(2px);
  padding: 28px 32px;
  border-radius: 0px;
  color: #ffffff;
  pointer-events: auto;
}

.slider-overlay-inner h1{
  margin: 0 0 10px;
  font-size: clamp(1.8rem, 3.6vw, 2.6rem);
  line-height: 1.1;
}

.slider-overlay-inner p{
  margin: 0 0 18px;
  font-size: 1.05rem;
  color: rgba(255,255,255,0.9);
}

/* Mobile adjustment */
@media (max-width: 640px){
  .slider-overlay{
    justify-content: center;
    text-align: center;
  }

  .slider-overlay-inner{
    margin-left: 0;
    max-width: 90%;
  }
}



/* =========================
   Floating Header (FORCED)
========================= */
.site-header {
  position: sticky;
  top: 0;
  z-index: 100;
}

/* Floating state – clearly visible */
.site-header.is-floating {
  background: rgba(255, 255, 255, 0.65) !important;
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
  box-shadow: 0 18px 40px rgba(11, 27, 59, 0.18);
  border-bottom: 1px solid rgba(11, 27, 59, 0.15);
}


/* =========================
   Fixed Top Bar + Header
   - Keeps both visible while scrolling
========================= */

/* Top utility bar fixed at top */
.top {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 120;
}

/* Header fixed below top bar */
.site-header {
  position: fixed !important;
  top: var(--topbar-h, 0px) !important;
  left: 0;
  right: 0;
  width: 100%;
  z-index: 110;
}

/* When floating (after scroll), make it slightly transparent/glassy */
.site-header.is-floating {
  background: rgba(255, 255, 255, 0.72) !important;
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
  box-shadow: 0 18px 40px rgba(11, 27, 59, 0.18);
}

