/*! HTML5 Boilerplate v9.0.1 | MIT License | https://html5boilerplate.com/ */

/* main.css 3.0.0 | MIT License | https://github.com/h5bp/main.css#readme */
/*
 * What follows is the result of much research on cross-browser styling.
 * Credit left inline and big thanks to Nicolas Gallagher, Jonathan Neal,
 * Kroc Camen, and the H5BP dev community and team.
 */

/* ==========================================================================
   Base styles: opinionated defaults
   ========================================================================== */

html {
  color: #222;
  font-size: 1em;
  line-height: 1.4;
  max-width: 100%;
  overflow-x: hidden;
}

/*
 * Remove text-shadow in selection highlight:
 * https://twitter.com/miketaylr/status/12228805301
 *
 * Customize the background color to match your design.
 */

::-moz-selection {
  background: #b3d4fc;
  text-shadow: none;
}

::selection {
  background: #b3d4fc;
  text-shadow: none;
}

/*
 * A better looking default horizontal rule
 */

hr {
  display: block;
  height: 1px;
  border: 0;
  border-top: 1px solid #ccc;
  margin: 1em 0;
  padding: 0;
}

/*
 * Remove the gap between audio, canvas, iframes,
 * images, videos and the bottom of their containers:
 * https://github.com/h5bp/html5-boilerplate/issues/440
 */

audio,
canvas,
iframe,
img,
svg,
video {
  vertical-align: middle;
}

/*
 * Remove default fieldset styles.
 */

fieldset {
  border: 0;
  margin: 0;
  padding: 0;
}

/*
 * Allow only vertical resizing of textareas.
 */

textarea {
  resize: vertical;
}

/* ==========================================================================
   Helper classes
   ========================================================================== */

/*
 * Hide visually and from screen readers
 */

.hidden,
[hidden] {
  display: none !important;
}

/*
 * Hide only visually, but have it available for screen readers:
 * https://snook.ca/archives/html_and_css/hiding-content-for-accessibility
 *
 * 1. For long content, line feeds are not interpreted as spaces and small width
 *    causes content to wrap 1 word per line:
 *    https://medium.com/@jessebeach/beware-smushed-off-screen-accessible-text-5952a4c2cbfe
 */

.visually-hidden {
  border: 0;
  clip: rect(0, 0, 0, 0);
  height: 1px;
  margin: -1px;
  overflow: hidden;
  padding: 0;
  position: absolute;
  white-space: nowrap;
  width: 1px;
  /* 1 */
}

/*
 * Extends the .visually-hidden class to allow the element
 * to be focusable when navigated to via the keyboard:
 * https://www.drupal.org/node/897638
 */

.visually-hidden.focusable:active,
.visually-hidden.focusable:focus {
  clip: auto;
  height: auto;
  margin: 0;
  overflow: visible;
  position: static;
  white-space: inherit;
  width: auto;
}

/*
 * Hide visually and from screen readers, but maintain layout
 */

.invisible {
  visibility: hidden;
}

/*
 * Clearfix: contain floats
 *
 * The use of `table` rather than `block` is only necessary if using
 * `::before` to contain the top-margins of child elements.
 */

.clearfix::before,
.clearfix::after {
  content: "";
  display: table;
}

.clearfix::after {
  clear: both;
}

/* ==========================================================================
   EXAMPLE Media Queries for Responsive Design.
   These examples override the primary ('mobile first') styles.
   Modify as content requires.
   ========================================================================== */

@media only screen and (min-width: 35em) {
  /* Style adjustments for viewports that meet the condition */
}

@media print,
  (-webkit-min-device-pixel-ratio: 1.25),
  (min-resolution: 1.25dppx),
  (min-resolution: 120dpi) {
  /* Style adjustments for high resolution devices */
}

/* ==========================================================================
   Print styles.
   Inlined to avoid the additional HTTP request:
   https://www.phpied.com/delay-loading-your-print-css/
   ========================================================================== */

@media print {
  *,
  *::before,
  *::after {
    background: #fff !important;
    color: #000 !important;
    /* Black prints faster */
    box-shadow: none !important;
    text-shadow: none !important;
  }

  a,
  a:visited {
    text-decoration: underline;
  }

  a[href]::after {
    content: " (" attr(href) ")";
  }

  abbr[title]::after {
    content: " (" attr(title) ")";
  }

  /*
   * Don't show links that are fragment identifiers,
   * or use the `javascript:` pseudo protocol
   */
  a[href^="#"]::after,
  a[href^="javascript:"]::after {
    content: "";
  }

  pre {
    white-space: pre-wrap !important;
  }

  pre,
  blockquote {
    border: 1px solid #999;
    page-break-inside: avoid;
  }

  tr,
  img {
    page-break-inside: avoid;
  }

  p,
  h2,
  h3 {
    orphans: 3;
    widows: 3;
  }

  h2,
  h3 {
    page-break-after: avoid;
  }
}
/* ===== Google Font Import ===== */
@import url('https://fonts.googleapis.com/css2?family=Poppins:wght@200;300;400;500;600&display=swap');
@import url('https://fonts.googleapis.com/css2?family=Space+Mono:wght@400;700&display=swap'); /* New Font! */

/* ===== True Typing Effect Styles ===== */
.typing-container {
  display: inline-flex;
  align-items: center;
  gap: 8px; /* Space between "We Are" and the typed text */
}

.typing-container .text {
  font-family: 'Poppins', sans-serif;
  font-size: 30px;
  font-weight: 600;
}

/* The Blinking Cursor */
.typing-container .cursor {
  display: inline-block;
  width: 2px;
  height: 35px;
  background-color: #FFF; /* Changed from blue to white */
  margin-left: 2px;
  animation: blink 0.8s step-end infinite;
}

@keyframes blink {
  from, to { opacity: 1; }
  50% { opacity: 0; }
}
 html {
   scroll-behavior: smooth;
 }

body {
  background: radial-gradient(circle at 20% 20%, #121828 0%, #090b11 40%, #06070b 100%);
  overflow-x: hidden;
  max-width: 100%;
}

.noise {
  position: fixed;
  inset: 0;
  pointer-events: none;
  opacity: 0.2;
  z-index: 2;
  background-image: radial-gradient(rgba(255, 255, 255, 0.06) 1px, transparent 1px);
  background-size: 3px 3px;
  mix-blend-mode: soft-light;
}

#particles {
  position: fixed;
  inset: 0;
  z-index: 0;
}

.content-layer {
  position: relative;
  z-index: 3;
}

.glass {
  background: rgba(12, 15, 24, 0.75);
  border: 1px solid rgba(99, 102, 241, 0.25);
  backdrop-filter: blur(14px);
}

.neon-line {
  background: linear-gradient(90deg, rgba(56, 189, 248, 0), rgba(56, 189, 248, 1), rgba(56, 189, 248, 0));
}

.service-card,
.portfolio-card {
  transition: transform 0.3s ease, border-color 0.3s ease, box-shadow 0.3s ease;
}

.service-card {
  position: relative;
  overflow: hidden;
  border: 1px solid rgba(148, 163, 184, 0.14);
  background: linear-gradient(155deg, rgba(255, 255, 255, 0.025), rgba(15, 23, 42, 0.08));
  backdrop-filter: blur(14px);
  box-shadow: 0 4px 14px rgba(2, 6, 23, 0.16), inset 0 1px 0 rgba(255, 255, 255, 0.04);
}

.services-slider-wrap {
  position: relative;
}

.services-slider-wrap .slider-wrapper {
  overflow: hidden;
  margin: 0 2.5rem 2.6rem;
  padding: 0.75rem 0.25rem 0.65rem;
}

.services-slider-wrap .card-item {
  user-select: none;
  padding: 1.6rem;
  border-radius: 0.75rem;
  min-height: 15.5rem;
  position: relative;
  overflow: hidden;
  border: 1px solid rgba(148, 163, 184, 0.14);
  background: linear-gradient(155deg, rgba(255, 255, 255, 0.025), rgba(15, 23, 42, 0.08));
  backdrop-filter: blur(14px);
  box-shadow: 0 4px 14px rgba(2, 6, 23, 0.16), inset 0 1px 0 rgba(255, 255, 255, 0.04);
  transition: transform 0.3s ease, border-color 0.3s ease, box-shadow 0.3s ease;
}

.services-slider-wrap .card-item::before,
.service-card::before {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(120deg, rgba(255, 255, 255, 0.06), rgba(255, 255, 255, 0));
  opacity: 0.1;
  pointer-events: none;
}

.services-slider-wrap .card-item > * {
  position: relative;
  z-index: 1;
}

.services-slider-wrap .card-item:hover,
.service-card:hover,
.portfolio-card:hover {
  transform: translateY(-6px);
  border-color: rgba(56, 189, 248, 0.65);
  box-shadow: 0 10px 30px rgba(56, 189, 248, 0.14);
}

/* Extra transparency for services slider cards so background particles are visible. */
#services .card-item.service-card {
  background: rgba(8, 12, 20, 0.04) !important;
  border: 1px solid rgba(148, 163, 184, 0.12) !important;
  backdrop-filter: blur(6px) !important;
  -webkit-backdrop-filter: blur(6px) !important;
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.04) !important;
}

#services .card-item.service-card::before {
  background: linear-gradient(120deg, rgba(255, 255, 255, 0.04), rgba(255, 255, 255, 0)) !important;
  opacity: 0.06 !important;
}

#services .card-title,
#services .card-copy {
  text-shadow: 0 1px 8px rgba(2, 6, 23, 0.55);
}

#services .card-item.service-card:hover {
  border-color: rgba(56, 189, 248, 0.68) !important;
  box-shadow: 0 10px 28px rgba(56, 189, 248, 0.14) !important;
}

/* Final transparency override for clearly visible background particles. */
#services .card-item.service-card {
  background: rgba(8, 12, 20, 0.015) !important;
  border-color: rgba(148, 163, 184, 0.08) !important;
  backdrop-filter: blur(2px) !important;
  -webkit-backdrop-filter: blur(2px) !important;
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.03) !important;
}

#services .card-item.service-card::before {
  opacity: 0.02 !important;
}

.services-slider-wrap .card-title {
  color: #bae6fd;
  font-size: 1.25rem;
  font-weight: 300;
  letter-spacing: 0.01em;
}

.services-slider-wrap .card-copy {
  margin-top: 0.85rem;
  font-size: 0.9rem;
  line-height: 1.6;
  color: #e2e8f0;
}

.services-slider-wrap .swiper-pagination-bullet {
  width: 0.55rem;
  height: 0.55rem;
  background: rgba(148, 163, 184, 0.5);
  opacity: 1;
}

.services-slider-wrap .swiper-pagination-bullet-active {
  background: #38bdf8;
  box-shadow: 0 0 10px rgba(56, 189, 248, 0.7);
}

.services-slider-wrap .swiper-slide-button {
  width: 2.25rem;
  height: 2.25rem;
  margin-top: -1.1rem;
  border-radius: 999px;
  border: 1px solid rgba(56, 189, 248, 0.45);
  background: rgba(7, 10, 16, 0.78);
  color: #bae6fd;
  backdrop-filter: blur(10px);
  transition: transform 0.25s ease, background-color 0.25s ease;
}

.services-slider-wrap .swiper-slide-button::after {
  font-size: 1rem;
  font-weight: 700;
}

.services-slider-wrap .swiper-slide-button:hover {
  transform: scale(1.06);
  background: rgba(56, 189, 248, 0.2);
}

@media (max-width: 1023px) {
  .services-slider-wrap .slider-wrapper {
    margin: 0 0.6rem 2.2rem;
  }

  #portfolio .portfolio-slider-wrap {
    margin: 0 0.6rem 2.2rem;
  }
}

@media (max-width: 767px) {
  .services-slider-wrap .slider-wrapper {
    margin: 0 0 2rem;
  }

  #portfolio .portfolio-slider-wrap {
    margin: 0 0 2rem;
  }

  .services-slider-wrap .swiper-slide-button {
    display: none;
  }
}

.service-card::before {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(120deg, rgba(255, 255, 255, 0.06), rgba(255, 255, 255, 0));
  opacity: 0.1;
  pointer-events: none;
}

.service-card > * {
  position: relative;
  z-index: 1;
}

.service-card:hover,
.portfolio-card:hover {
  transform: translateY(-6px);
  border-color: rgba(56, 189, 248, 0.65);
  box-shadow: 0 10px 30px rgba(56, 189, 248, 0.14);
}

/* Extra transparency for services slider cards so background particles are visible. */
#services .card-item.service-card {
  background: rgba(8, 12, 20, 0.04) !important;
  border: 1px solid rgba(148, 163, 184, 0.12) !important;
  backdrop-filter: blur(6px) !important;
  -webkit-backdrop-filter: blur(6px) !important;
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.04) !important;
}

#services .card-item.service-card::before {
  background: linear-gradient(120deg, rgba(255, 255, 255, 0.04), rgba(255, 255, 255, 0)) !important;
  opacity: 0.06 !important;
}

#services .card-title,
#services .card-copy {
  text-shadow: 0 1px 8px rgba(2, 6, 23, 0.55);
}

#services .card-item.service-card:hover {
  border-color: rgba(56, 189, 248, 0.68) !important;
  box-shadow: 0 10px 28px rgba(56, 189, 248, 0.14) !important;
}

/* Final transparency override for clearly visible background particles. */
#services .card-item.service-card {
  background: rgba(8, 12, 20, 0.015) !important;
  border-color: rgba(148, 163, 184, 0.08) !important;
  backdrop-filter: blur(2px) !important;
  -webkit-backdrop-filter: blur(2px) !important;
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.03) !important;
}

#services .card-item.service-card::before {
  opacity: 0.02 !important;
}

#tagline {
  font-family: 'Sora', sans-serif;
  font-weight: 600;
}

#hero-subtitle {
  font-family: 'Space Mono', 'Sora', sans-serif;
  font-weight: 400;
  letter-spacing: 0.01em;
}

#about-text {
  color: #ffffff !important;
}

#hero-cta,
#services-cta,
#portfolio-cta,
#contact-cta {
  background: rgba(15, 23, 42, 0.28);
  border: 1px solid rgba(125, 211, 252, 0.45);
  color: #bae6fd;
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  box-shadow: 0 8px 24px rgba(2, 6, 23, 0.32), inset 0 1px 0 rgba(255, 255, 255, 0.12);
}

#hero-cta:hover,
#services-cta:hover,
#portfolio-cta:hover,
#contact-cta:hover {
  background: rgba(15, 23, 42, 0.42);
  border-color: rgba(56, 189, 248, 0.8);
  color: #bae6fd;
  box-shadow: 0 12px 30px rgba(56, 189, 248, 0.2), inset 0 1px 0 rgba(255, 255, 255, 0.16);
}

@keyframes wordNeonPulse {
  0% {
    filter: brightness(0.95);
    transform: scale(1);
    text-shadow:
      0 0 2px currentColor,
      0 0 8px currentColor,
      0 0 16px currentColor;
  }
  45% {
    filter: brightness(1.25);
    transform: scale(1.06);
    text-shadow:
      0 0 10px currentColor,
      0 0 24px currentColor,
      0 0 42px currentColor,
      0 0 68px currentColor,
      0 0 92px currentColor;
  }
  100% {
    filter: brightness(0.92);
    transform: scale(1);
    text-shadow:
      0 0 2px currentColor,
      0 0 7px currentColor,
      0 0 14px currentColor;
  }
}

.kicker-word {
  display: inline-block;
  animation: wordNeonPulse 1.8s ease-in-out infinite;
  will-change: text-shadow, transform, filter;
}

.kicker-creative {
  color: #ef4444;
}

.kicker-design {
  color: #22c55e;
  animation-delay: 0.15s;
}

.kicker-studio {
  color: #3b82f6;
  animation-delay: 0.3s;
}

@keyframes railBreath {
  0%,
  100% {
    box-shadow: 0 14px 36px rgba(6, 182, 212, 0.12);
    border-color: rgba(56, 189, 248, 0.26);
  }
  50% {
    box-shadow: 0 20px 52px rgba(6, 182, 212, 0.2);
    border-color: rgba(56, 189, 248, 0.4);
  }
}

.main-with-side-nav {
  padding-left: 4.6rem;
}

#side-nav-toggle {
  position: fixed;
  top: 1rem;
  left: 1rem;
  z-index: 40;
  border: 1px solid rgba(56, 189, 248, 0.35);
  background: rgba(10, 13, 20, 0.8);
  color: #bae6fd;
  padding: 0.55rem 0.8rem;
  border-radius: 999px;
  backdrop-filter: blur(10px);
  letter-spacing: 0.08em;
  text-transform: uppercase;
  font-size: 0.68rem;
  display: none;
}

#side-nav {
  position: fixed;
  left: 1.1rem;
  top: 50%;
  transform: translateY(-50%);
  width: 3.75rem;
  height: min(66vh, 29rem);
  min-height: 20.5rem;
  padding: 1rem 0.45rem;
  border-radius: 999px;
  border: 1px solid rgba(56, 189, 248, 0.3);
  background: rgba(10, 13, 20, 0.72);
  backdrop-filter: blur(14px);
  box-shadow: 0 18px 48px rgba(6, 182, 212, 0.15);
  z-index: 35;
  opacity: 1;
  overflow: hidden;
  display: flex;
  flex-direction: column;
  justify-content: center;
  transition: width 0.56s cubic-bezier(0.22, 1, 0.36, 1), border-radius 0.56s cubic-bezier(0.22, 1, 0.36, 1), padding 0.56s cubic-bezier(0.22, 1, 0.36, 1), transform 0.45s cubic-bezier(0.22, 1, 0.36, 1);
  animation: railBreath 5.2s ease-in-out infinite;
}

#side-nav:hover,
#side-nav:focus-within {
  width: 12.5rem;
  border-radius: 1rem;
  padding: 0.95rem 0.55rem;
}

@media (min-width: 1024px) {
  #side-nav:not(:hover):not(:focus-within) {
    justify-content: space-evenly;
    padding-top: 0.7rem;
    padding-bottom: 0.7rem;
  }

  #side-nav:not(:hover):not(:focus-within) .side-nav-brand {
    display: none;
  }

  #side-nav:not(:hover):not(:focus-within) .side-nav-link {
    margin: 0;
    flex: 0 0 auto;
    width: 100%;
    min-height: 0;
    padding: 0;
    gap: 0;
    justify-content: center;
  }

  #side-nav:not(:hover):not(:focus-within) .side-nav-text {
    display: none;
  }
}

#side-nav::before {
  content: "";
  position: absolute;
  inset: -35% auto auto -30%;
  width: 10rem;
  height: 10rem;
  background: radial-gradient(circle, rgba(56, 189, 248, 0.22), rgba(56, 189, 248, 0));
  pointer-events: none;
}

.side-nav-brand {
  position: relative;
  margin: 0 0 0.75rem;
  padding: 0.45rem 0.4rem 0.95rem;
  border-bottom: 1px solid rgba(148, 163, 184, 0.2);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 0.64rem;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: #7dd3fc;
  opacity: 0;
  transform: translateX(-6px);
  transition: opacity 0.25s ease, transform 0.25s ease;
  pointer-events: none;
  white-space: nowrap;
}

.side-nav-brand-logo {
  display: block;
  width: 12rem;
  max-width: 100%;
  height: auto;
  margin: 0 auto;
  transform: translateY(-0.8rem);
}

#side-nav:hover .side-nav-brand,
#side-nav:focus-within .side-nav-brand {
  opacity: 1;
  transform: translateX(0);
}

.side-nav-link {
  position: relative;
  display: flex;
  align-items: center;
  gap: 0.9rem;
  margin: 0.35rem 0;
  padding: 0.72rem 0.62rem;
  border-radius: 0.68rem;
  color: #cbd5e1;
  font-size: 0.98rem;
  letter-spacing: 0.05em;
  text-decoration: none;
  transition: background-color 0.3s ease, color 0.3s ease, transform 0.3s ease;
}

.side-nav-icon {
  width: 1.95rem;
  height: 1.95rem;
  padding: 0.3rem;
  box-sizing: border-box;
  border-radius: 0.62rem;
  background: rgba(148, 163, 184, 0.1);
  border: 1px solid rgba(148, 163, 184, 0.25);
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.14), 0 6px 16px rgba(2, 6, 23, 0.24);
  flex: 0 0 auto;
  stroke: rgba(148, 163, 184, 0.92);
  fill: none;
  stroke-width: 1.8;
  stroke-linecap: round;
  stroke-linejoin: round;
  transition: stroke 0.3s ease, filter 0.3s ease, transform 0.3s ease, background-color 0.3s ease, border-color 0.3s ease, box-shadow 0.3s ease;
}

.side-nav-link:hover .side-nav-icon {
  stroke: #bae6fd;
  background: rgba(56, 189, 248, 0.16);
  border-color: rgba(56, 189, 248, 0.5);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.16), 0 8px 18px rgba(56, 189, 248, 0.2);
  transform: scale(1.05);
}

.side-nav-link.active .side-nav-icon {
  stroke: #38bdf8;
  background: rgba(56, 189, 248, 0.2);
  border-color: rgba(56, 189, 248, 0.65);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.2), 0 10px 22px rgba(56, 189, 248, 0.28);
  filter: drop-shadow(0 0 10px rgba(56, 189, 248, 0.75));
}

.side-nav-text {
  opacity: 0;
  transform: translateX(-6px);
  transition: opacity 0.36s ease, transform 0.36s ease;
  white-space: nowrap;
  pointer-events: none;
}

#side-nav:hover .side-nav-text,
#side-nav:focus-within .side-nav-text {
  opacity: 1;
  transform: translateX(0);
  pointer-events: auto;
}

@media (max-width: 1023px) {
  .main-with-side-nav {
    padding-left: 0;
    padding-top: calc(env(safe-area-inset-top, 0px) + 4.3rem);
  }

  #side-nav-toggle {
    display: none !important;
  }

  #side-nav {
    position: fixed;
    top: env(safe-area-inset-top, 0px);
    left: 0.25rem;
    right: 0.25rem;
    margin-inline: auto;
    transform: none;
    width: auto;
    max-width: none;
    height: 3.75rem;
    min-height: 0;
    max-height: none;
    overflow-x: hidden;
    overflow-y: hidden;
    box-sizing: border-box;
    border-radius: 999px;
    padding: 0.4rem 0.55rem;
    opacity: 1;
    animation: railBreath 5.2s ease-in-out infinite;
    flex-direction: row;
    align-items: center;
    justify-content: space-between;
    gap: 0;
    scrollbar-width: none;
    margin-top: 0;
    margin-bottom: 0;
    z-index: 45;
  }

  #home {
    padding-top: 0 !important;
    justify-content: flex-start;
  }

  #side-nav::-webkit-scrollbar {
    display: none;
  }

  #side-nav.side-nav-open {
    transform: none;
  }

  .side-nav-brand,
  .side-nav-text {
    opacity: 1;
    transform: none;
    pointer-events: auto;
  }

  .side-nav-brand {
    display: none;
  }

  .side-nav-link {
    flex: 1 1 0;
    min-width: 0;
    margin: 0;
    padding: 0.48rem 0.32rem;
    gap: 0.28rem;
    font-size: 0.72rem;
    letter-spacing: 0.03em;
    white-space: nowrap;
    justify-content: center;
  }

  .side-nav-icon {
    width: 1.28rem;
    height: 1.28rem;
    padding: 0.18rem;
  }

  .side-nav-text {
    display: inline;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
  }

  #side-nav:hover,
  #side-nav:focus-within {
    width: auto;
    max-width: none;
    border-radius: 999px;
    padding: 0.4rem 0.55rem;
  }

  #home,
  #about,
  #services,
  #portfolio,
  #process,
  #contact {
    scroll-margin-top: calc(env(safe-area-inset-top, 0px) + 4.8rem);
  }
}

@media (max-width: 767px) {
  #home {
    padding-top: 0 !important;
    padding-left: 1rem;
    padding-right: 1rem;
    justify-content: flex-start;
  }

  #logo {
    width: clamp(12.5rem, 62vw, 16rem);
  }

  #hero-kicker {
    margin-top: 1.5rem;
    font-size: 0.7rem;
    letter-spacing: 0.28em;
  }

  .typing-container {
    gap: 0.38rem;
    flex-wrap: wrap;
    justify-content: center;
  }

  .typing-container .text {
    font-size: 1.6rem;
    line-height: 1.25;
  }

  .typing-container .cursor {
    height: 1.7rem;
  }

  #hero-subtitle {
    margin-top: 1rem;
    font-size: 0.95rem;
    line-height: 1.55;
  }

  #hero-cta,
  #services-cta,
  #portfolio-cta,
  #contact-cta {
    width: 100%;
    max-width: 15rem;
    justify-content: center;
    margin-top: 1.2rem;
  }

  #about,
  #services,
  #portfolio,
  #process,
  #contact {
    padding-top: 4rem;
    padding-bottom: 4rem;
  }

  #services .card-item {
    min-height: 13rem;
    padding: 1.25rem;
  }

  #portfolio .portfolio-scroll-row .portfolio-card {
    min-height: 13rem;
    height: auto;
    padding: 1.25rem;
  }

  #contact-panel {
    padding: 2rem 1.25rem;
  }

  #contact-actions a {
    width: 100%;
    max-width: 16rem;
    justify-content: center;
    text-align: center;
  }
}

@media (prefers-reduced-motion: reduce) {
  #side-nav {
    animation: none;
  }

  .side-nav-text,
  .side-nav-link,
  .side-nav-icon {
    transition: none;
  }
}

.portfolio-image-trigger {
  padding: 0;
  border: 0;
  background: transparent;
  cursor: zoom-in;
}

.portfolio-image-trigger img {
  transition: transform 0.25s ease, box-shadow 0.25s ease;
}

.portfolio-image-trigger:hover img,
.portfolio-image-trigger:focus-visible img {
  transform: translateY(-2px) scale(1.01);
  box-shadow: 0 10px 28px rgba(56, 189, 248, 0.18);
}

#portfolio .portfolio-scroll-shell {
  position: relative;
}

#portfolio .portfolio-slider-wrap {
  overflow: hidden;
  margin: 0 2.5rem 2.6rem;
  padding: 0.75rem 0.25rem 0.65rem;
}

#portfolio .portfolio-scroll-arrow {
  position: absolute;
  top: 45%;
  transform: translateY(-50%);
  width: 2.25rem;
  height: 2.25rem;
  border-radius: 999px;
  border: 1px solid rgba(56, 189, 248, 0.45);
  background: rgba(7, 10, 16, 0.78);
  color: #bae6fd;
  backdrop-filter: blur(10px);
  transition: transform 0.25s ease, background-color 0.25s ease, opacity 0.25s ease;
  z-index: 4;
}

#portfolio #portfolio-scroll-prev {
  left: 0.2rem;
}

#portfolio #portfolio-scroll-next {
  right: 0.2rem;
}

#portfolio .portfolio-scroll-arrow:hover {
  transform: translateY(-50%) scale(1.06);
  background: rgba(56, 189, 248, 0.2);
}

#portfolio .portfolio-scroll-arrow:disabled,
#portfolio .portfolio-scroll-arrow.swiper-button-disabled {
  opacity: 0.35;
  cursor: not-allowed;
}

#portfolio .portfolio-scroll-arrow::after {
  display: none;
}

#portfolio .portfolio-scroll-row {
  overflow: visible;
  padding: 0;
}

#portfolio .portfolio-scroll-row .portfolio-card {
  padding: 1.2rem;
  height: 21.5rem;
  user-select: none;
  position: relative;
  overflow: hidden;
  border: 1px solid rgba(148, 163, 184, 0.08) !important;
  background: rgba(8, 12, 20, 0.015) !important;
  backdrop-filter: blur(2px) !important;
  -webkit-backdrop-filter: blur(2px) !important;
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.03) !important;
}

#portfolio .portfolio-scroll-row .portfolio-card::before {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(120deg, rgba(255, 255, 255, 0.04), rgba(255, 255, 255, 0));
  opacity: 0.02;
  pointer-events: none;
}

#portfolio .portfolio-scroll-row .portfolio-card > * {
  position: relative;
  z-index: 1;
}

#portfolio .portfolio-scroll-row .portfolio-card:hover {
  transform: translateY(-6px);
  border-color: rgba(56, 189, 248, 0.68) !important;
  box-shadow: 0 10px 28px rgba(56, 189, 248, 0.14) !important;
}

#portfolio .portfolio-scroll-dots {
  position: static !important;
  width: 100%;
  margin-top: 0.75rem;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0.55rem;
}

#portfolio .portfolio-scroll-dot {
  width: 0.55rem;
  height: 0.55rem;
  background: rgba(148, 163, 184, 0.5);
  border: 0;
  border-radius: 999px;
  opacity: 0.7;
  transform: scale(0.9);
  cursor: pointer;
  transition: transform 0.2s ease, background-color 0.2s ease, box-shadow 0.2s ease;
}

#portfolio .portfolio-scroll-dot:hover {
  transform: scale(1.08);
  background: rgba(125, 211, 252, 0.85);
}

#portfolio .portfolio-scroll-dot.is-active {
  background: #38bdf8;
  opacity: 1;
  transform: scale(1.18);
  box-shadow: 0 0 10px rgba(56, 189, 248, 0.7);
}

@media (max-width: 767px) {
  #portfolio .portfolio-slider-wrap {
    margin: 0 0 2rem;
  }

  #portfolio .portfolio-scroll-arrow {
    display: none;
  }

  #portfolio .portfolio-scroll-row > .swiper-slide {
    width: 100% !important;
    max-width: 100% !important;
  }

  #portfolio .portfolio-scroll-row .portfolio-card {
    min-height: 13rem;
    height: auto;
    padding: 1.25rem;
    width: 100% !important;
    max-width: 100% !important;
    box-sizing: border-box;
  }

  #portfolio .portfolio-scroll-row {
    padding: 0;
  }
}

@media (max-width: 1023px) {
  #portfolio .portfolio-slider-wrap {
    margin: 0 0.6rem 2.2rem;
  }
}

@media (max-width: 767px) {
  #portfolio .portfolio-slider-wrap {
    margin: 0 0 2rem;
  }
}

/* ── Video trigger button ── */
.portfolio-video-trigger {
  padding: 0;
  border: 0;
  background: transparent;
  cursor: pointer;
}

.portfolio-video-thumb {
  position: relative;
  display: block;
  height: 11rem;
  border-radius: 0.5rem;
  overflow: hidden;
}

.portfolio-video-preview {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
  border-radius: 0.5rem;
  transition: transform 0.25s ease, box-shadow 0.25s ease;
  pointer-events: none;
}

.portfolio-video-trigger:hover .portfolio-video-preview,
.portfolio-video-trigger:focus-visible .portfolio-video-preview {
  transform: translateY(-2px) scale(1.01);
  box-shadow: 0 10px 28px rgba(56, 189, 248, 0.18);
}

.portfolio-video-overlay {
  position: absolute;
  inset: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  background: rgba(6, 10, 20, 0.38);
  border-radius: 0.5rem;
  transition: background 0.25s ease;
}

.portfolio-video-trigger:hover .portfolio-video-overlay,
.portfolio-video-trigger:focus-visible .portfolio-video-overlay {
  background: rgba(6, 10, 20, 0.22);
}

.portfolio-play-icon {
  width: 3.2rem;
  height: 3.2rem;
  fill: rgba(56, 189, 248, 0.18);
  stroke: #e0f2fe;
  stroke-width: 1.4;
  filter: drop-shadow(0 0 8px rgba(56, 189, 248, 0.55));
  transition: transform 0.25s ease, filter 0.25s ease;
}

.portfolio-video-trigger:hover .portfolio-play-icon,
.portfolio-video-trigger:focus-visible .portfolio-play-icon {
  transform: scale(1.14);
  filter: drop-shadow(0 0 16px rgba(56, 189, 248, 0.9));
}

.portfolio-video-label {
  font-size: 0.72rem;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: #7dd3fc;
}

.portfolio-lightbox {
  position: fixed;
  inset: 0;
  z-index: 120;
  display: grid;
  place-items: center;
  padding: 1rem;
}

.portfolio-lightbox[hidden] {
  display: none;
}

.portfolio-lightbox-backdrop {
  position: absolute;
  inset: 0;
  background: rgba(2, 6, 23, 0.82);
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
}

.portfolio-lightbox-dialog {
  position: relative;
  z-index: 1;
  width: min(92vw, 62rem);
  border: 1px solid rgba(125, 211, 252, 0.35);
  border-radius: 1rem;
  background: rgba(8, 12, 20, 0.72);
  box-shadow: 0 22px 56px rgba(2, 6, 23, 0.5);
  padding: 0.75rem;
}

#portfolio-lightbox-image {
  display: block;
  width: 100%;
  height: auto;
  max-height: calc(100vh - 7rem);
  object-fit: contain;
  border-radius: 0.7rem;
}

.portfolio-lightbox-video {
  display: block;
  width: 100%;
  aspect-ratio: 16 / 9;
  border-radius: 0.7rem;
  border: 0;
  background: #000;
}

.portfolio-lightbox-video[hidden] {
  display: none;
}

.portfolio-lightbox-close {
  position: absolute;
  top: 0.4rem;
  right: 0.4rem;
  padding: 0.35rem 0.6rem;
  border-radius: 0.5rem;
  border: 1px solid rgba(125, 211, 252, 0.55);
  background: rgba(15, 23, 42, 0.74);
  color: #bae6fd;
  font-size: 0.75rem;
  cursor: pointer;
}

body.lightbox-open {
   overflow: hidden;
}

/* ── Service modal ── */
.service-modal {
   position: fixed;
   inset: 0;
   z-index: 120;
   display: grid;
   place-items: center;
   padding: 1rem;
}

.service-modal[hidden] {
   display: none;
}

.service-modal-backdrop {
   position: absolute;
   inset: 0;
   background: rgba(2, 6, 23, 0.82);
   backdrop-filter: blur(8px);
   -webkit-backdrop-filter: blur(8px);
}

.service-modal-dialog {
   position: relative;
   z-index: 1;
   width: min(92vw, 48rem);
   border: 1px solid rgba(125, 211, 252, 0.35);
   border-radius: 1rem;
   background: rgba(8, 12, 20, 0.72);
   box-shadow: 0 22px 56px rgba(2, 6, 23, 0.5);
   padding: 2.5rem 2rem;
}

.service-modal-title {
   font-size: 1.875rem;
   font-weight: 300;
   color: #bae6fd;
   margin-bottom: 1rem;
}

.service-modal-text {
   font-size: 1rem;
   line-height: 1.75;
   color: #e2e8f0;
   margin-bottom: 2rem;
   white-space: pre-wrap;
   word-wrap: break-word;
}

.service-modal-close {
   position: absolute;
   top: 0.4rem;
   right: 0.4rem;
   padding: 0.35rem 0.6rem;
   border-radius: 0.5rem;
   border: 1px solid rgba(125, 211, 252, 0.55);
   background: rgba(15, 23, 42, 0.74);
   color: #bae6fd;
   font-size: 0.75rem;
   cursor: pointer;
   transition: background 0.3s ease, border-color 0.3s ease;
}

.service-modal-close:hover {
   background: rgba(15, 23, 42, 0.9);
   border-color: rgba(125, 211, 252, 0.8);
}

/* Service card trigger cursor */
.service-card-trigger {
   cursor: pointer;
}

.service-card-trigger:hover {
   transform: translateY(-6px) !important;
}

body.service-modal-open {
   overflow: hidden;
}

