:root {
  --bg: #050712;
  --bg-elevated: #0c1122;
  --accent-cyan: #00d7ff;
  --accent-purple: #9d3cff;
  --accent-pink: #ff4fd8;
  --text-main: #e9f2ff;
  --text-muted: #a0adc5;
  --border-subtle: rgba(0, 215, 255, 0.22);
}
*,
*::before,
*::after {
  box-sizing: border-box;
}
body {
  margin: 0;
  font-family: system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  background: radial-gradient(circle at top left, #141b3c 0, #050712 48%);
  color: var(--text-main);
  line-height: 1.6;
}
a {
  color: var(--accent-cyan);
  text-decoration: none;
}
a:hover {
  text-decoration: underline;
}
.wrapper {
  max-width: 1120px;
  margin: 0 auto;
  padding: 24px 16px 56px;
}

/* NAVBAR */
.nav {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  padding: 6px 0 24px;
}
.nav-left {
  display: flex;
  flex-direction: column;
  gap: 4px;
}
.nav-logo {
  font-size: 1.4rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--accent-cyan);
}
.nav-tagline {
  font-size: 0.78rem;
  color: var(--text-muted);
}
.nav-links {
  display: flex;
  flex-wrap: wrap;
  gap: 14px;
  font-size: 0.8rem;
  text-transform: uppercase;
  letter-spacing: 0.12em;
}
.nav-links a {
  position: relative;
  padding-bottom: 4px;
}
.nav-links a::after {
  content: "";
  position: absolute;
  left: 0;
  bottom: 0;
  width: 0;
  height: 2px;
  background: linear-gradient(90deg, var(--accent-cyan), var(--accent-purple));
  transition: width 0.2s ease;
}
.nav-links a.active::after,
.nav-links a:hover::after {
  width: 100%;
}

/* HERO */
.hero {
  display: grid;
  grid-template-columns: minmax(0, 1.6fr) minmax(0, 1.1fr);
  gap: 32px;
  align-items: center;
  margin-bottom: 40px;
}
.hero-title {
  font-size: 2.5rem;
  margin-bottom: 12px;
}
.hero-title span {
  background: linear-gradient(90deg, var(--accent-cyan), var(--accent-purple));
  -webkit-background-clip: text;
  color: transparent;
}
.hero-subtitle {
  font-size: 1rem;
  color: var(--text-muted);
  max-width: 480px;
  margin-bottom: 18px;
}
.hero-tags {
  font-size: 0.8rem;
  text-transform: uppercase;
  letter-spacing: 0.16em;
  color: var(--text-muted);
  margin-bottom: 20px;
}
.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
}
.btn-primary,
.btn-ghost {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  border-radius: 999px;
  padding: 10px 20px;
  font-size: 0.88rem;
  border: 1px solid transparent;
  cursor: pointer;
}
.btn-primary {
  background: radial-gradient(circle at top left, var(--accent-cyan), var(--accent-purple));
  color: #050712;
  font-weight: 600;
}
.btn-ghost {
  background: transparent;
  border-color: rgba(157, 60, 255, 0.7);
  color: var(--text-main);
}
.hero-card {
  background: radial-gradient(circle at top right, rgba(0,215,255,0.25), #0c1122 55%);
  border-radius: 18px;
  padding: 20px;
  border: 1px solid var(--border-subtle);
  box-shadow: 0 0 32px rgba(0,0,0,0.65);
}
.hero-card-title {
  font-size: 0.82rem;
  text-transform: uppercase;
  letter-spacing: 0.16em;
  color: var(--text-muted);
  margin-bottom: 8px;
}
.hero-metric-row {
  display: flex;
  justify-content: space-between;
  margin-top: 8px;
}
.hero-metric-label {
  font-size: 0.8rem;
  color: var(--text-muted);
}
.hero-metric-value {
  font-size: 0.96rem;
}

/* SECTIONS */
.section {
  margin-top: 32px;
  margin-bottom: 24px;
}
.section-heading {
  font-size: 1.3rem;
  margin-bottom: 4px;
}
.section-subtitle {
  font-size: 0.9rem;
  color: var(--text-muted);
}

/* CARD GRIDS */
.grid-3,
.grid-2 {
  display: grid;
  gap: 20px;
  margin-top: 18px;
}
.grid-3 {
  grid-template-columns: repeat(3, minmax(0,1fr));
}
.grid-2 {
  grid-template-columns: repeat(2, minmax(0,1fr));
}
.card {
  background: var(--bg-elevated);
  border-radius: 14px;
  padding: 16px 16px 18px;
  border: 1px solid var(--border-subtle);
}
.card-title {
  font-size: 1rem;
  margin-bottom: 6px;
}
.card-body {
  font-size: 0.88rem;
  color: var(--text-muted);
}
.badge {
  display: inline-block;
  margin-top: 6px;
  padding: 3px 10px;
  border-radius: 999px;
  font-size: 0.7rem;
  text-transform: uppercase;
  letter-spacing: 0.16em;
  border: 1px solid rgba(0,215,255,0.7);
  color: var(--accent-cyan);
}

/* IMAGE GRIDS */
.image-strip {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(210px, 1fr));
  gap: 14px;
  margin-top: 18px;
}
.image-strip figure,
.portfolio-grid figure {
  margin: 0;
  background: var(--bg-elevated);
  border-radius: 14px;
  padding: 8px;
  border: 1px solid var(--border-subtle);
}
.image-strip img,
.portfolio-grid img {
  display: block;
  width: 100%;
  border-radius: 10px;
}

/* PORTFOLIO GALLERY */
.portfolio-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(260px, 1fr));
  gap: 18px;
  margin-top: 20px;
}
.portfolio-grid img {
  width: 100%;
  aspect-ratio: 16 / 9;
  object-fit: cover;
  border-radius: 12px;
  border: 1px solid rgba(0,255,255,0.3);
  box-shadow: 0 0 12px rgba(0,255,255,0.06);
}

/* CASE STUDIES */
.case-grid {
  display: grid;
  grid-template-columns: minmax(0, 1.4fr) minmax(0, 1fr);
  gap: 22px;
  margin-top: 18px;
}
.case-meta {
  font-size: 0.85rem;
  color: var(--text-muted);
}
.case-metric {
  font-size: 1rem;
  color: var(--accent-cyan);
}

/* CONTACT FORM */
.contact-layout {
  display: grid;
  grid-template-columns: minmax(0,1.2fr) minmax(0,1fr);
  gap: 20px;
  margin-top: 18px;
}
.contact-form label {
  display: block;
  font-size: 0.86rem;
  margin-bottom: 4px;
}
.contact-form input,
.contact-form textarea {
  width: 100%;
  padding: 9px 10px;
  margin-bottom: 10px;
  border-radius: 8px;
  border: 1px solid var(--border-subtle);
  background: #050712;
  color: var(--text-main);
}

/* FOOTER */
.footer {
  margin-top: 40px;
  padding-top: 18px;
  border-top: 1px solid rgba(255,255,255,0.06);
  font-size: 0.8rem;
  color: var(--text-muted);
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  gap: 8px;
}

/* RESPONSIVE */
@media (max-width: 840px) {
  .hero {
    grid-template-columns: minmax(0,1fr);
  }
  .case-grid,
  .contact-layout {
    grid-template-columns: minmax(0,1fr);
  }
  .grid-3,
  .grid-2 {
    grid-template-columns: minmax(0,1fr);
  }
  .nav {
    flex-direction: column;
    align-items: flex-start;
  }
}

/* Enhanced mobile optimisations */
@media (max-width: 600px) {
  .nav { flex-direction: column; align-items: flex-start; }
  .nav-links { flex-direction: column; gap: 8px; }
  .hero-title { font-size: 1.8rem; }
  .hero { grid-template-columns: 1fr; }
  .grid-3, .grid-2 { grid-template-columns: 1fr; }
  .portfolio-grid { grid-template-columns: 1fr; }
  .portfolio-grid img { aspect-ratio: 16/10; }
  .wrapper { padding: 16px 12px 40px; }
}


/* Sticky nav with subtle glow */
.nav {
  position: sticky;
  top: 0;
  z-index: 20;
  backdrop-filter: blur(10px);
  background: linear-gradient(90deg, rgba(5,7,18,0.96), rgba(12,17,34,0.96));
  box-shadow: 0 8px 20px rgba(0,0,0,0.6);
}

/* Hero animated text */
.hero-title span {
  display: inline-block;
  animation: heroGlow 5s ease-in-out infinite;
}
@keyframes heroGlow {
  0% { text-shadow: 0 0 8px rgba(0,215,255,0.2); }
  50% { text-shadow: 0 0 18px rgba(157,60,255,0.8); }
  100% { text-shadow: 0 0 8px rgba(0,215,255,0.2); }
}

/* Counters section */
.counter-strip {
  display: grid;
  grid-template-columns: repeat(3, minmax(0,1fr));
  gap: 16px;
  margin-top: 18px;
}
.counter-tile {
  background: var(--bg-elevated);
  border-radius: 14px;
  padding: 14px 14px 16px;
  border: 1px solid var(--border-subtle);
  text-align: center;
}
.counter-value {
  font-size: 1.6rem;
  font-weight: 700;
  color: var(--accent-cyan);
}
.counter-label {
  font-size: 0.86rem;
  color: var(--text-muted);
  margin-top: 4px;
}

/* Client logos */
.client-logos {
  display: flex;
  flex-wrap: wrap;
  gap: 16px;
  margin-top: 16px;
}
.client-logo {
  flex: 0 0 auto;
  min-width: 120px;
  padding: 8px 12px;
  border-radius: 999px;
  border: 1px solid var(--border-subtle);
  font-size: 0.8rem;
  text-align: center;
  color: var(--text-muted);
}

/* Blog cards */
.blog-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0,1fr));
  gap: 18px;
  margin-top: 18px;
}
.blog-card {
  min-height: 180px;
}
.blog-meta {
  font-size: 0.78rem;
  color: var(--text-muted);
  margin-top: 6px;
}

/* Cookie banner (bottom bar) */
.cookie-banner {
  position: fixed;
  left: 0;
  right: 0;
  bottom: 0;
  background: rgba(5,7,18,0.96);
  border-top: 1px solid var(--border-subtle);
  padding: 10px 14px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 12px;
  font-size: 0.8rem;
  z-index: 50;
}
.cookie-banner p {
  margin: 0;
  color: var(--text-muted);
}
.cookie-banner .btn-primary {
  padding: 6px 14px;
  font-size: 0.8rem;
}

/* Lightbox */
.lightbox-overlay {
  position: fixed;
  inset: 0;
  background: rgba(0,0,0,0.9);
  display: none;
  justify-content: center;
  align-items: center;
  z-index: 40;
}
.lightbox-overlay img {
  max-width: 90vw;
  max-height: 90vh;
  border-radius: 16px;
  border: 1px solid rgba(0,215,255,0.5);
}

/* Portfolio thumbnails clickable */
.portfolio-grid a {
  display: block;
}

/* Enhanced mobile */
@media (max-width: 840px) {
  .counter-strip {
    grid-template-columns: minmax(0,1fr);
  }
  .blog-grid {
    grid-template-columns: minmax(0,1fr);
  }
}
@media (max-width: 600px) {
  .nav { flex-direction: column; align-items: flex-start; }
  .nav-links { flex-direction: column; gap: 8px; }
  .hero-title { font-size: 1.8rem; }
  .hero { grid-template-columns: 1fr; }
  .grid-3, .grid-2 { grid-template-columns: 1fr; }
  .portfolio-grid { grid-template-columns: 1fr; }
  .portfolio-grid img { aspect-ratio: 16/10; }
  .wrapper { padding: 16px 12px 40px; }
}


/* Ultra-responsive enhancements */
@media (max-width:480px){
  .hero-title{font-size:1.6rem;line-height:1.2;}
  .nav-links a{padding:6px 0;}
  .section{padding:20px 0;}
  .card{padding:14px;}
  .portfolio-grid img{aspect-ratio:16/12;}
  .blog-grid{grid-template-columns:1fr;}
  .counter-strip{grid-template-columns:1fr;}
  .client-logos{flex-direction:column;align-items:flex-start;}
}


/* Accessibility Enhancements: Larger fonts, more spacing, clearer layout */
:root {
  font-size: 18px;
}

body {
  line-height: 1.65;
}

h1, .section-heading {
  font-size: 2.2rem;
  line-height: 1.3;
  margin-bottom: 1rem;
}

h2, .card-title {
  font-size: 1.6rem;
  line-height: 1.35;
  margin-bottom: 0.75rem;
}

p, .card-body, .section-subtitle {
  font-size: 1.05rem;
}

.section {
  padding: 3rem 0;
}

.card {
  padding: 1.5rem;
  margin-bottom: 1.5rem;
}

.nav-links a {
  font-size: 1.05rem;
  padding: 0.6rem 1rem;
}

@media(max-width:600px){
  :root { font-size: 17px; }
  h1.section-heading { font-size: 1.9rem; }
  h2.section-heading { font-size: 1.45rem; }
  .section { padding: 2.2rem 0; }
  .card { padding: 1.25rem; }
}


/* Moderate spacing adjustments */
.section {
  padding: 2rem 0 !important;
}
.card {
  padding: 1rem !important;
  margin-bottom: 1rem !important;
}
@media(max-width:600px){
  .section { padding: 1.4rem 0 !important; }
  .card { padding: 0.9rem !important; }
}


/* Tightened spacing adjustments */
.section {
  padding: 1.2rem 0 !important;
}
.card {
  padding: 0.75rem !important;
  margin-bottom: 0.75rem !important;
}
h1.section-heading {
  margin-bottom: 0.6rem !important;
}
h2.section-heading {
  margin-bottom: 0.5rem !important;
}
p, .card-body, .section-subtitle {
  margin-bottom: 0.6rem !important;
}
.portfolio-grid {
  gap: 12px !important;
}
.nav-links a {
  padding: 0.4rem 0.6rem !important;
}
@media(max-width:600px){
  .section { padding: 1rem 0 !important; }
  .card { padding: 0.65rem !important; }
  .portfolio-grid { gap: 10px !important; }
}


/* Ensure portfolio images fully visible */
.portfolio-grid img {
  object-fit: contain !important;
  background: #000 !important;
  padding: 4px;
}


/* Hover zoom for portfolio thumbnails */
.portfolio-grid a {
  display: block;
  overflow: hidden;
  border-radius: 12px;
}

.portfolio-grid img {
  transition: transform 0.3s ease !important;
}

.portfolio-grid a:hover img {
  transform: scale(1.5) !important;
}


/* About layout with photo */
.about-layout {
  display: grid;
  grid-template-columns: minmax(0, 260px) minmax(0, 1fr);
  gap: 1.5rem;
  align-items: flex-start;
}
.about-photo img {
  margin-top: 2.8rem !important;
  float: left;
  width: 240px;
  max-width: 40%;
  margin-right: 1.2rem;
  margin-bottom: 1rem;
  border-radius: 16px;
}
.about-copy {
  display: flex;
  flex-direction: column;
  gap: 0.6rem;
}
@media (max-width: 800px) {
  .about-layout {
    grid-template-columns: minmax(0,1fr);
  }
  .about-photo {
    max-width: 260px;
  }
}

/* Float-based wrap for about page */
.about-layout {
  display: block;
}
.about-photo img {
  margin-top: 2.8rem !important;
  float: left;
  width: 240px;
  max-width: 40%;
  margin-right: 1.2rem;
  margin-bottom: 1rem;
  border-radius: 16px;
}
.about-copy {
  overflow: hidden;
}
@media(max-width:700px){
  .about-photo img {
  margin-top: 2.8rem !important;
  float: left;
  width: 240px;
  max-width: 40%;
  margin-right: 1.2rem;
  margin-bottom: 1rem;
  border-radius: 16px;
}
}

.about-photo img {
  margin-top: 2.8rem !important;
  float: left;
  width: 240px;
  max-width: 40%;
  margin-right: 1.2rem;
  margin-bottom: 1rem;
  border-radius: 16px;
}


/* Post pages */
.blog-article {
  max-width: 760px;
  margin-top: 1rem;
}
.blog-article .card-body,
.blog-article ol.card-body,
.blog-article ul.card-body {
  margin-bottom: 0.8rem;
}
.post-hero-image {
  margin-top: 1.2rem;
  margin-bottom: 1rem;
}
.post-hero-image img {
  width: 100%;
  border-radius: 14px;
  border: 1px solid rgba(0,215,255,0.5);
  box-shadow: 0 10px 24px rgba(0,0,0,0.7);
}


/* Refined nav styling and Content Hub glow */
.nav {
  position: sticky;
  top: 0;
  z-index: 30;
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 0.6rem 1.2rem;
  backdrop-filter: blur(12px);
  background: radial-gradient(circle at top left, rgba(0,215,255,0.14), transparent 55%),
              radial-gradient(circle at top right, rgba(157,60,255,0.16), transparent 55%),
              rgba(5,7,18,0.96);
  box-shadow: 0 10px 30px rgba(0,0,0,0.7);
}
.nav-left {
  display: flex;
  flex-direction: column;
  gap: 2px;
}
.nav-logo {
  font-weight: 700;
  letter-spacing: 0.08em;
  font-size: 0.9rem;
}
.nav-tagline {
  font-size: 0.75rem;
  color: var(--text-muted);
}
.nav-links {
  display: flex;
  align-items: center;
  gap: 0.75rem;
}
.nav-links a {
  font-size: 0.85rem;
  text-decoration: none;
  color: var(--text-muted);
  padding: 0.35rem 0.6rem;
  border-radius: 999px;
  transition: color 0.15s ease, background 0.15s ease, box-shadow 0.15s ease;
}
.nav-links a:hover {
  color: #f9fafb;
  background: rgba(15,118,255,0.2);
}
.nav-links a.active {
  color: #f9fafb;
  background: rgba(15,118,255,0.28);
}

/* Content Hub CTA */
.nav-links .nav-cta {
  background: linear-gradient(120deg, #00d7ff, #9d3cff);
  color: #0b1020;
  font-weight: 600;
  padding-inline: 0.9rem;
  box-shadow: 0 0 18px rgba(0,215,255,0.5);
}
.nav-links .nav-cta:hover {
  box-shadow: 0 0 22px rgba(157,60,255,0.7);
}
.nav-links .nav-cta.active {
  box-shadow: 0 0 26px rgba(157,60,255,0.9);
}

/* Mobile nav stacking */
@media (max-width: 720px) {
  .nav {
    flex-direction: column;
    align-items: flex-start;
    gap: 0.5rem;
  }
  .nav-links {
    flex-wrap: wrap;
    gap: 0.4rem;
  }
}

/* Home: Content Hub teaser section */
.home-contenthub-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0,1fr));
  gap: 1rem;
  margin-top: 1rem;
}
@media (max-width: 900px) {
  .home-contenthub-grid {
    grid-template-columns: minmax(0,1fr);
  }
}



/* Content Hub controls */
.contenthub-controls {
  margin-top: 1.5rem;
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem 1rem;
  align-items: center;
}
#contenthub-search {
  flex: 1 1 260px;
  max-width: 420px;
  padding: 8px 10px;
  border-radius: 999px;
  border: 1px solid var(--border-subtle);
  background: #050712;
  color: var(--text-main);
  font-size: 0.9rem;
}
#contenthub-search::placeholder {
  color: var(--text-muted);
}
.contenthub-filters {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
}
.contenthub-filter {
  padding: 6px 12px;
  border-radius: 999px;
  border: 1px solid var(--border-subtle);
  background: transparent;
  color: var(--text-muted);
  font-size: 0.75rem;
  text-transform: uppercase;
  letter-spacing: 0.12em;
  cursor: pointer;
}
.contenthub-filter.active {
  border-color: var(--accent-cyan);
  color: var(--accent-cyan);
  background: rgba(0,215,255,0.08);
}

/* Content Hub grid tweaks */
.contenthub-grid {
  margin-top: 1rem;
}
@media (max-width: 900px) {
  .contenthub-controls {
    flex-direction: column;
    align-items: stretch;
  }
  .contenthub-filters {
    justify-content: flex-start;
  }
}
