/* Import modern Google Fonts */
@import url('https://fonts.googleapis.com/css2?family=Plus+Jakarta+Sans:wght@300;400;500;600;700&family=Syne:wght@700;800&display=swap');

:root {
  --color-bg-cream: #FFFFFF;
  --color-primary-navy: #0B3033;
  /* Deep navy-teal matching the logo */
  --color-accent-grey: #8BA0A3;
  /* Cool slate gray-teal */
  --color-text-dark: #121212;
  --color-text-light: #4A6063;
  /* Cool gray-teal */
  --color-white: #FFFFFF;
  --color-black: #000000;
  --primary-red: #079092;
  /* Brand logo teal */

  --font-display: 'Syne', sans-serif;
  --font-body: 'Plus Jakarta Sans', sans-serif;

  --transition-smooth: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
  --header-height: 80px;

  /* Desktop Settings (Default) */
  --section-padding: 80px;
  --container-padding: 32px;
  --font-h1-size: clamp(48px, 4.5vw, 60px);
  --font-h2-size: clamp(24px, 2.5vw, 32px);
  --font-body-size: 18px;
}

@media (max-width: 1024px) {
  :root {
    --section-padding: 60px;
    --container-padding: 24px;
    --font-h1-size: clamp(36px, 4vw, 42px);
    --font-h2-size: clamp(20px, 2.2vw, 24px);
    --font-body-size: 16px;
  }
}

@media (max-width: 768px) {
  :root {
    --section-padding: 40px;
    --container-padding: 16px;
    --font-h1-size: clamp(28px, 6vw, 32px);
    --font-h2-size: clamp(18px, 5vw, 22px);
    --font-body-size: 15px;
  }
}

/* Reset and Base Styles */
* {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

html {
  font-size: 16px;
  scroll-behavior: smooth;
}

body {
  font-family: var(--font-body);
  background-color: var(--color-bg-cream);
  color: var(--color-text-dark);
  line-height: 1.6;
  overflow-x: hidden;
  font-size: var(--font-body-size);
}

/* Three.js Canvas Background */
#three-canvas {
  position: fixed;
  top: 0;
  left: 0;
  width: 100vw;
  height: 100vh;
  z-index: -1;
  pointer-events: none;
  opacity: 0.8;
}

h1,
h2,
h3,
h4 {
  font-family: var(--font-display);
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: -0.02em;
}

h1 {
  font-size: var(--font-h1-size);
  line-height: 1.0;
  color: var(--color-primary-navy);
}

h2 {
  font-size: var(--font-h2-size);
  line-height: 1.1;
  margin-bottom: 1.5rem;
}

p {
  font-size: var(--font-body-size);
  font-weight: 400;
  color: var(--color-text-light);
}

a {
  color: inherit;
  text-decoration: none;
  transition: var(--transition-smooth);
}

img,
video {
  max-width: 100%;
  height: auto;
  display: block;
}

/* Utilities */
.container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 var(--container-padding);
  position: relative;
  z-index: 2;
}

.section-padding {
  padding: var(--section-padding) 0;
}

.text-center {
  text-align: center;
}

/* Custom Buttons */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 0.85rem 2rem;
  min-height: 48px;
  max-height: 56px;
  width: auto;
  border-radius: 100px;
  font-family: var(--font-body);
  font-weight: 600;
  text-transform: uppercase;
  font-size: 0.875rem;
  letter-spacing: 0.05em;
  cursor: pointer;
  transition: var(--transition-smooth);
  border: 1px solid transparent;
  will-change: transform, box-shadow, background-color, color;
  transform: translateZ(0);
}

.btn-primary {
  background-color: var(--color-primary-navy);
  color: var(--color-white);
}

.btn-primary:hover {
  background-color: var(--color-black);
  transform: translateY(-3px);
  box-shadow: 0 10px 20px rgba(0, 0, 0, 0.15);
}

.btn-outline {
  border: 1px solid var(--color-primary-navy);
  color: var(--color-primary-navy);
  background-color: transparent;
}

.btn-outline:hover {
  background-color: var(--color-primary-navy);
  color: var(--color-white);
  transform: translateY(-3px);
}

/* Header & Navigation Styles */
header {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: var(--header-height);
  z-index: 900;
  background: transparent;
  transition: var(--transition-smooth);
}

header.scrolled {
  background: transparent;
  height: 70px;
}

header .container {
  display: flex;
  justify-content: space-between;
  align-items: center;
  height: 100%;
  max-width: 100%;
  padding: 0 2rem;
}

/* Hide scrollbar for a cleaner look */
.sticky-bar-container::-webkit-scrollbar {
  display: none;
}

.sticky-bar-container {
  -ms-overflow-style: none;
  scrollbar-width: none;
}

.logo {
  font-family: var(--font-display);
  font-weight: 800;
  font-size: 1.5rem;
  color: var(--color-primary-navy);
  letter-spacing: -0.03em;
  display: flex;
  align-items: center;
  gap: 0.5rem;
}

.logo img {
  height: 60px;
  width: auto;
  transition: var(--transition-smooth);
}

header.scrolled .logo img {
  height: 45px;
}

.nav-links {
  display: flex;
  gap: 2.5rem;
  list-style: none;
}

.nav-links a {
  color: var(--color-primary-navy);
  font-weight: 500;
  font-size: 0.9rem;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  position: relative;
}

.nav-links a::after {
  content: '';
  position: absolute;
  bottom: -5px;
  left: 0;
  width: 0;
  height: 2px;
  background-color: var(--color-primary-navy);
  transition: var(--transition-smooth);
}

.nav-links a:hover::after,
.nav-links a.active::after {
  width: 100%;
}

/* Dark Hero Header - White text when transparent at the top */
header.dark-hero-header:not(.scrolled) .logo {
  color: var(--color-white);
}

header.dark-hero-header:not(.scrolled) .nav-links a {
  color: var(--color-white);
}

header.dark-hero-header:not(.scrolled) .nav-links a::after {
  background-color: var(--color-white);
}

header.dark-hero-header:not(.scrolled) .hamburger span {
  background-color: var(--color-white);
}

/* Hamburger Menu */
.hamburger {
  display: none;
  cursor: pointer;
  border: none;
  background: transparent;
  flex-direction: column;
  gap: 6px;
  padding: 5px;
  z-index: 1001;
}

.hamburger span {
  display: block;
  width: 25px;
  height: 2px;
  background-color: var(--color-primary-navy);
  transition: var(--transition-smooth);
}

/* Mobile Menu Open State Animations */
.hamburger.active span:nth-child(1) {
  transform: translateY(8px) rotate(45deg);
}

.hamburger.active span:nth-child(2) {
  opacity: 0;
}

.hamburger.active span:nth-child(3) {
  transform: translateY(-8px) rotate(-45deg);
}

/* Hero Section */
.hero {
  position: relative;
  min-height: 100vh;
  display: flex;
  align-items: center;
  padding-top: var(--header-height);
  background-size: cover;
  background-position: center;
  background-repeat: no-repeat;
  color: var(--color-white);
  overflow: hidden;
}

/* Overlay for Readability */
.hero::before {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(135deg, rgba(38, 57, 126, 0.85) 0%, rgba(18, 18, 18, 0.75) 100%);
  z-index: 1;
}

.hero .container {
  position: relative;
  z-index: 2;
  width: 100%;
}

.hero-sub {
  font-family: var(--font-body);
  font-weight: 600;
  letter-spacing: 0.1em;
  font-size: 1rem;
  text-transform: uppercase;
  color: var(--color-bg-cream);
  margin-bottom: 1rem;
}

.hero h1 {
  color: var(--color-white);
  margin-bottom: 1rem;
}

.hero-location {
  font-family: var(--font-body);
  font-weight: 600;
  font-size: 1rem;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  color: var(--color-bg-cream);
  margin-bottom: 2.5rem;
}

/* About Section */
.about-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 4rem;
  align-items: center;
}

.about-text h2 {
  color: var(--color-primary-navy);
}

.about-text h3 {
  font-family: var(--font-body);
  font-size: 1.25rem;
  font-weight: 500;
  text-transform: none;
  letter-spacing: normal;
  color: var(--color-text-dark);
  margin-bottom: 1.5rem;
  line-height: 1.4;
}

.about-desc {
  font-size: 1.05rem;
  color: var(--color-text-light);
}

/* Services Section */
.services-section {
  background-size: cover;
  background-position: center;
  color: var(--color-white);
  position: relative;
}

.services-section::before {
  content: '';
  position: absolute;
  inset: 0;
  background-color: rgba(38, 57, 126, 0.9);
  z-index: 1;
}

.services-section {
  background-color: var(--color-primary-navy);
  color: var(--color-white);
}

.services-section .container {
  position: relative;
  z-index: 2;
}

.services-section h2 {
  color: var(--color-white);
  text-align: center;
  margin-bottom: 4rem;
}

.services-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 2rem;
}

.service-card {
  background-color: rgba(255, 255, 255, 0.05);
  border: 1px solid rgba(255, 255, 255, 0.1);
  padding: 3rem 2rem;
  border-radius: 12px;
  transition: var(--transition-smooth);
  will-change: transform, box-shadow, background-color;
  transform: translateZ(0);
}

.service-card:hover {
  transform: translateY(-10px);
  background-color: var(--color-white);
  box-shadow: 0 20px 40px rgba(0, 0, 0, 0.2);
}

.service-card h3 {
  font-size: 1.5rem;
  margin-bottom: 1rem;
  color: var(--color-white);
  transition: var(--transition-smooth);
}

.service-card p {
  color: rgba(255, 255, 255, 0.8);
  font-size: 0.95rem;
  transition: var(--transition-smooth);
}

.service-card:hover h3,
.service-card:hover p {
  color: var(--color-primary-navy);
}

/* Portfolio Work Section */
.work-section h2 {
  color: var(--color-primary-navy);
  margin-bottom: 1rem;
  text-align: center;
}

.work-section .sub {
  text-align: center;
  font-size: 1.1rem;
  margin-bottom: 4rem;
}

.portfolio-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 2rem;
}

.mosaic-grid {
  column-count: 3;
  column-gap: 1.5rem;

/* Filter Bar Styling */
.filter-bar {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
  justify-content: center;
  margin: 2rem 0;
}

.filter-btn {
  padding: 0.5rem 1rem;
  border: none;
  border-radius: 9999px;
  background: rgba(255, 255, 255, 0.08);
  color: var(--color-white);
  cursor: pointer;
  font-weight: 500;
  transition: background 0.3s ease, color 0.3s ease;
}

.filter-btn:hover {
  background: rgba(255, 255, 255, 0.15);
}

.filter-btn.active {
  background: var(--color-primary);
  color: #fff;
}

}

@media (max-width: 1024px) {
  .mosaic-grid {
    column-count: 2;
  }
}

@media (max-width: 768px) {
  .mosaic-grid {
    column-count: 2;
  }
}

@media (max-width: 480px) {
  .mosaic-grid {
    column-count: 1;
  }
}

.mosaic-item {
  break-inside: avoid;
  margin-bottom: 1rem;
}

.mosaic-item img {
  width: 100%;
  display: block;
  border-radius: 0;
  object-fit: cover;
}

.portfolio-item {
  position: relative;
  border-radius: 0;
  overflow: hidden;
  aspect-ratio: 4 / 5;
  background-color: var(--color-black);
  cursor: pointer;
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.05);
}

/* Media containers */
.portfolio-media {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
}

.portfolio-media img,
.portfolio-media video {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: var(--transition-smooth);
  will-change: transform, opacity;
}

.portfolio-media video {
  opacity: 0;
  position: absolute;
  top: 0;
  left: 0;
}

.portfolio-item:hover .portfolio-media img {
  transform: scale(1.05);
}

.portfolio-item:hover .portfolio-media video {
  opacity: 1;
}

/* Overlay & info styling */
.portfolio-info {
  position: absolute;
  inset: 0;
  background: linear-gradient(to top, rgba(0, 0, 0, 0.8) 0%, rgba(0, 0, 0, 0.2) 60%, transparent 100%);
  padding: 2rem;
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
  color: var(--color-white);
  z-index: 2;
  transition: var(--transition-smooth);
}

.portfolio-cat {
  font-size: 0.8rem;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  color: var(--color-bg-cream);
  margin-bottom: 0.5rem;
}

.portfolio-title {
  font-size: 1.5rem;
  margin-bottom: 1.5rem;
  color: var(--color-white);
}

.portfolio-link {
  font-family: var(--font-body);
  font-weight: 600;
  font-size: 0.85rem;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--color-white);
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  opacity: 0.8;
  transition: var(--transition-smooth);
}

.portfolio-item:hover .portfolio-link {
  opacity: 1;
  gap: 0.8rem;
}

/* Clients section & Infinite Logo Marquee */
.clients-section {
  background-size: cover;
  background-position: center;
  position: relative;
  overflow: hidden;
}

.clients-section .container {
  position: relative;
  z-index: 2;
  color: var(--color-text-dark);
}

.clients-section h2 {
  margin-bottom: 1rem;
}

.clients-section p {
  color: var(--color-text-light);
  max-width: 600px;
  margin: 0 auto 4rem auto;
}

.marquee-container {
  overflow: hidden;
  white-space: nowrap;
  width: 100%;
  padding: 2rem 0;
  display: flex;
}

.marquee-content {
  display: inline-flex;
  gap: 3rem;
  animation: marquee-scroll 35s linear infinite;
  will-change: transform;
  transform: translateZ(0);
}

.marquee-content img {
  height: 100px;
  width: auto;
  object-fit: contain;
  opacity: 0.6;
  /* Handles both transparent and solid white background logos perfectly */
  filter: grayscale(1);
  mix-blend-mode: multiply;
  transition: var(--transition-smooth);
}

.marquee-content img:hover {
  opacity: 1;
}

@keyframes marquee-scroll {
  0% {
    transform: translateX(0);
  }

  100% {
    transform: translateX(-50%);
  }
}

/* Testimonials Section (New Marquee) */
.testimonials-header {
  text-align: center;
  max-width: 540px;
  margin: 0 auto 3rem auto;
}

.testimonials-header .badge {
  display: inline-block;
  border: 1px solid rgba(0, 0, 0, 0.1);
  padding: 0.25rem 1rem;
  border-radius: 8px;
  font-size: 0.85rem;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  margin-bottom: 1.25rem;
  color: var(--color-primary-navy);
}

.testimonials-header h2 {
  font-size: clamp(1.5rem, 3vw, 2.5rem);
  margin-bottom: 1rem;
  color: var(--color-primary-navy);
}

.testimonials-marquee-wrapper {
  display: flex;
  justify-content: center;
  gap: 1.5rem;
  max-height: 740px;
  overflow: hidden;
  position: relative;
  -webkit-mask-image: linear-gradient(to bottom, transparent, black 15%, black 85%, transparent);
  mask-image: linear-gradient(to bottom, transparent, black 15%, black 85%, transparent);
}

.testimonials-column {
  flex: 1;
  max-width: 320px;
}

.testimonials-track {
  display: flex;
  flex-direction: column;
  gap: 1.5rem;
  padding-bottom: 1.5rem;
  animation: scrollY linear infinite;
  will-change: transform;
  transform: translateZ(0);
}

.track-15 {
  animation-duration: 15s;
}

.track-19 {
  animation-duration: 19s;
}

.track-17 {
  animation-duration: 17s;
}

@keyframes scrollY {
  from {
    transform: translateY(0);
  }

  to {
    transform: translateY(-50%);
  }
}

.test-card {
  padding: 2.5rem;
  border-radius: 24px;
  border: 1px solid rgba(164, 165, 153, 0.2);
  background-color: var(--color-white);
  box-shadow: 0 10px 30px rgba(38, 57, 126, 0.05);
}

.test-card-text {
  font-size: 1rem;
  color: var(--color-text-dark);
  margin-bottom: 1.5rem;
  line-height: 1.6;
}

.test-card-author {
  display: flex;
  align-items: center;
  gap: 1rem;
}

.test-card-author img {
  width: 40px;
  height: 40px;
  border-radius: 50%;
  object-fit: cover;
}

.test-card-info {
  display: flex;
  flex-direction: column;
}

.test-card-name {
  font-weight: 600;
  font-size: 0.95rem;
  color: var(--color-primary-navy);
  line-height: 1.2;
}

.test-card-role {
  font-size: 0.8rem;
  color: var(--color-text-light);
  margin-top: 0.2rem;
}

@media (max-width: 1024px) {
  .hidden-lg {
    display: none;
  }
}

@media (max-width: 768px) {
  .hidden-md {
    display: none;
  }
}

/* Contact Section & Form */
.contact-section {
  background-color: transparent;
  position: relative;
  color: var(--color-text-dark);
}

.contact-section::before {
  display: none;
}

.contact-section .container {
  position: relative;
  z-index: 2;
}

.contact-grid {
  display: grid;
  grid-template-columns: 1fr 1.2fr;
  gap: 5rem;
}

.contact-info-col h2 {
  color: var(--color-primary-navy);
  font-size: clamp(2rem, 3.5vw, 3rem);
}

.contact-details {
  list-style: none;
  margin: 3rem 0;
}

.contact-details li {
  font-size: 1.15rem;
  margin-bottom: 1.5rem;
}

.contact-details a {
  color: var(--color-primary-navy);
}

.contact-details a:hover {
  color: var(--color-text-dark);
  text-decoration: underline;
}

.social-links {
  display: flex;
  gap: 1.5rem;
}

.social-links a {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 45px;
  height: 45px;
  border-radius: 50%;
  border: 1px solid rgba(18, 18, 18, 0.2);
  color: var(--color-text-dark);
  font-size: 1.1rem;
}

.social-links a:hover {
  background-color: var(--color-primary-navy);
  color: var(--color-white);
  transform: translateY(-3px);
}

.social-links svg {
  width: 20px;
  height: 20px;
  fill: currentColor;
}

/* Interactive Form Styling */
.contact-form-col {
  background-color: var(--color-white);
  padding: 3rem 2.5rem;
  border-radius: 12px;
  border: 1px solid rgba(164, 165, 153, 0.2);
  box-shadow: 0 20px 40px rgba(0, 0, 0, 0.06);
}

.form-group {
  margin-bottom: 1.75rem;
}

.form-group label {
  display: block;
  font-size: 0.8rem;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  margin-bottom: 0.5rem;
  color: var(--color-text-light);
}

.form-control {
  width: 100%;
  padding: 0.8rem 0;
  background-color: transparent;
  border: none;
  border-bottom: 1px solid rgba(18, 18, 18, 0.2);
  color: var(--color-text-dark);
  font-family: var(--font-body);
  font-size: 1rem;
  transition: var(--transition-smooth);
}

.form-control:focus {
  outline: none;
  border-bottom-color: var(--color-primary-navy);
}

textarea.form-control {
  min-height: 100px;
  resize: vertical;
}

select.form-control {
  appearance: none;
  -webkit-appearance: none;
  -moz-appearance: none;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='12' viewBox='0 0 24 24' fill='none' stroke='%234A6063' stroke-width='2.5' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpolyline points='6 9 12 15 18 9'%3E%3C/polyline%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: right 0.5rem center;
  padding-right: 2rem;
  cursor: pointer;
}

select.form-control:focus {
  outline: none;
  border-bottom-color: var(--color-primary-navy);
}

select.form-control option {
  background-color: var(--color-white);
  color: var(--color-text-dark);
  padding: 0.5rem;
}

.form-checkbox {
  display: flex;
  align-items: flex-start;
  gap: 0.75rem;
  margin: 2rem 0;
  cursor: pointer;
}

.form-checkbox input {
  margin-top: 0.3rem;
  cursor: pointer;
}

.form-checkbox label {
  font-size: 0.85rem;
  color: var(--color-text-light);
}

/* Success Message */
.form-success-message {
  display: none;
  text-align: center;
  padding: 2rem;
  background-color: rgba(38, 57, 126, 0.05);
  border-radius: 8px;
  border: 1px solid rgba(38, 57, 126, 0.1);
  animation: fade-in 0.5s ease;
}

.form-success-message h3 {
  color: var(--color-primary-navy);
  margin-bottom: 1rem;
}

/* Footer */
footer {
  background-color: var(--color-black);
  color: var(--color-white);
  padding: 2rem 0 1rem 0;
}

.footer-grid {
  display: flex;
  justify-content: space-between;
  align-items: center;
  border-bottom: 1px solid rgba(255, 255, 255, 0.1);
  padding-bottom: 3rem;
  margin-bottom: 2rem;
}

.footer-logo {
  font-family: var(--font-display);
  font-weight: 800;
  font-size: 1.75rem;
  color: var(--color-bg-cream);
  letter-spacing: -0.03em;
}

.footer-nav {
  display: flex;
  gap: 2rem;
}

.footer-nav a {
  font-size: 0.85rem;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  opacity: 0.7;
  color: var(--color-white);
}

.footer-nav a:hover {
  opacity: 1;
  color: var(--color-accent-grey);
}

.footer-bottom {
  display: flex;
  justify-content: space-between;
  align-items: center;
  font-size: 0.9rem;
  color: rgba(255, 255, 255, 0.5);
  margin-top: 1rem;
}

.footer-legal a {
  margin-left: 1.5rem;
  color: inherit;
}

.footer-legal a:hover {
  color: var(--color-white);
}

/* Project Hero (Other pages) - HEIGHT INCREASED HERE */
.project-hero {
  min-height: 60vh;
  display: flex;
  flex-direction: column;
  justify-content: center;
  padding-top: var(--header-height);
  position: relative;
  text-align: center;
}

.project-hero-video {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  z-index: 0;
}

.project-hero-overlay {
  position: absolute;
  inset: 0;
  /* background: rgba(38, 57, 126, 0.75); */
  z-index: 1;
}

.project-hero .container {
  position: relative;
  z-index: 2;
  color: var(--color-white);
}

.project-num {
  font-family: var(--font-body);
  font-weight: 600;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  margin-bottom: 1rem;
}

.project-hero h1 {
  color: var(--color-white);
  margin-bottom: 1rem;
}

.project-tagline {
  font-size: 1.2rem;
  color: var(--color-bg-cream);
}

/* Responsive Media Queries */
@media (max-width: 1024px) {

  .about-grid,
  .contact-grid {
    grid-template-columns: 1fr;
    gap: 3rem;
  }

  .portfolio-grid,
  .testimonials-grid,
  .services-grid {
    grid-template-columns: repeat(2, 1fr);
  }

  .hamburger {
    display: flex;
  }

  .nav-links {
    position: fixed;
    top: 0;
    right: -100%;
    width: 100%;
    height: 100vh;
    background-color: rgba(234, 235, 219, 0.98);
    flex-direction: column;
    justify-content: center;
    align-items: center;
    transition: var(--transition-smooth);
    z-index: 1000;
  }

  .nav-links.active {
    right: 0;
  }

  .nav-links a {
    font-size: 1.5rem;
  }
}

@media (max-width: 768px) {

  header .container {
    padding: 0 var(--container-padding);
  }

  .portfolio-grid,
  .testimonials-grid,
  .services-grid {
    grid-template-columns: 1fr;
  }

  .footer-grid,
  .footer-bottom {
    flex-direction: column;
    text-align: center;
    gap: 1.5rem;
  }

  .footer-legal a {
    margin-left: 0;
    margin: 0 0.75rem;
  }
}

/* MEGA FOOTER STYLES */
.mega-footer {
  background-color: var(--color-black);
  color: var(--color-white);
  padding: 2rem 0 1rem 0;
  border-top: 1px solid rgba(255, 255, 255, 0.1);
}

.mega-footer a {
  color: var(--color-white);
}

.mega-footer a:hover {
  text-decoration: underline;
}

.footer-top-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 2rem;
  margin-bottom: 2rem;
}

.footer-logo-icon {
  margin-bottom: 1rem;
  filter: invert(1);
}

.footer-contact p {
  color: var(--color-white);
  font-size: 1.1rem;
  line-height: 1.5;
  margin-bottom: 1.5rem;
}

.footer-contact .mt-2 {
  margin-top: 1rem;
}

.footer-newsletter h4 {
  font-family: var(--font-body);
  font-size: 1.1rem;
  font-weight: 500;
  text-transform: uppercase;
  margin-bottom: 1rem;
}

.newsletter-form .input-group {
  margin-bottom: 1rem;
}

.newsletter-form label {
  display: block;
  font-size: 0.85rem;
  margin-bottom: 0.5rem;
}

.newsletter-form input[type="email"] {
  width: 100%;
  background: transparent;
  border: none;
  border-bottom: 1px solid rgba(255, 255, 255, 0.2);
  color: var(--color-white);
  padding: 0.5rem 0;
  font-size: 1rem;
  transition: var(--transition-smooth);
}

.newsletter-form input[type="email"]:focus {
  outline: none;
  border-bottom-color: var(--color-primary-navy);
}

.newsletter-action {
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.checkbox-group {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  font-size: 0.85rem;
}

.btn-submit {
  background-color: var(--color-primary-navy);
  color: var(--color-white);
  border: none;
  padding: 0.75rem 2.5rem;
  border-radius: 100px;
  cursor: pointer;
  font-weight: 600;
  transition: var(--transition-smooth);
}

.btn-submit:hover {
  background-color: var(--color-white);
  color: var(--color-black);
}

.footer-middle {
  display: flex;
  justify-content: space-between;
  align-items: flex-end;
  margin-bottom: 0.5rem;
}

.footer-links a {
  display: block;
  font-size: 1rem;
  margin-bottom: 0.25rem;
}

.footer-socials {
  display: flex;
  gap: 1rem;
}

.footer-socials a svg {
  transition: var(--transition-smooth);
}

.footer-socials a:hover svg {
  transform: translateY(-3px);
}

.footer-massive-text {
  font-family: var(--font-display);
  font-size: clamp(3rem, 10vw, 8.5rem);
  font-weight: 800;
  color: var(--color-white);
  line-height: 0.8;
  letter-spacing: -0.02em;
  margin-bottom: 1rem;
  display: flex;
  justify-content: center;
  align-items: center;
  width: 100%;
  padding: 0 1rem;
  box-sizing: border-box;
  overflow: hidden;
}

.footer-copyright {
  font-size: 0.85rem;
  color: var(--color-white);
}

@media (max-width: 1024px) {
  .footer-top-grid {
    grid-template-columns: 1fr;
    gap: 3rem;
  }

  .footer-middle {
    flex-direction: column;
    align-items: flex-start;
    gap: 2rem;
  }
}

/* Animated Shader Hero Section */
.shader-hero-section {
  position: relative;
  min-height: 100vh;
  width: 100%;
  overflow: hidden;
  background-color: #000000;
}

.shader-canvas {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: contain;
  touch-action: none;
  background: black;
}

.shader-content-wrapper {
  position: absolute;
  inset: 0;
  z-index: 10;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  text-align: center;
  color: white;
  padding: 0 1rem;
}

/* Trust Badge */
.trust-badge {
  margin-bottom: 2rem;
  display: flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.75rem 1.5rem;
  background-color: rgba(249, 115, 22, 0.1);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border: 1px solid rgba(253, 186, 116, 0.3);
  border-radius: 9999px;
  font-size: 0.875rem;
}

.trust-icons {
  color: #fcd34d;
}

.trust-text {
  color: #ffedd5;
}

/* Content */
.shader-content {
  max-width: 1024px;
  margin: 0 auto;
  display: flex;
  flex-direction: column;
  gap: 1.5rem;
}

.shader-title-wrapper {
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
}

.shader-title {
  font-size: clamp(3rem, 6vw, 5rem);
  font-weight: 700;
  line-height: 1.1;
  font-family: var(--font-display);
  background-clip: text;
  -webkit-background-clip: text;
  color: transparent;
}

.shader-title.line-1 {
  background-image: linear-gradient(to right, #fdba74, #facc15, #fcd34d);
}

.shader-title.line-2 {
  background-image: linear-gradient(to right, #fde047, #fb923c, #f87171);
}

.shader-subtitle {
  max-width: 768px;
  margin: 0 auto;
  font-size: clamp(1.125rem, 2vw, 1.5rem);
  color: rgba(255, 237, 213, 0.9);
  font-weight: 300;
  line-height: 1.625;
}

.shader-buttons {
  display: flex;
  flex-direction: column;
  gap: 1rem;
  justify-content: center;
  margin-top: 2.5rem;
}

@media (min-width: 640px) {
  .shader-buttons {
    flex-direction: row;
  }
}

.shader-btn {
  padding: 1rem 2rem;
  border-radius: 9999px;
  font-weight: 600;
  font-size: 1.125rem;
  text-decoration: none;
  transition: all 0.3s ease;
}

.shader-btn.primary {
  background: linear-gradient(to right, #f97316, #eab308);
  color: black;
}

.shader-btn.primary:hover {
  background: linear-gradient(to right, #ea580c, #ca8a04);
  transform: scale(1.05);
  box-shadow: 0 20px 25px -5px rgba(249, 115, 22, 0.25), 0 8px 10px -6px rgba(249, 115, 22, 0.25);
}

.shader-btn.secondary {
  background-color: rgba(249, 115, 22, 0.1);
  border: 1px solid rgba(253, 186, 116, 0.3);
  color: #ffedd5;
  backdrop-filter: blur(4px);
}

.shader-btn.secondary:hover {
  background-color: rgba(249, 115, 22, 0.2);
  border-color: rgba(253, 186, 116, 0.5);
  transform: scale(1.05);
}

/* Animations */
@keyframes fadeInDown {
  from {
    opacity: 0;
    transform: translateY(-20px);
  }

  to {
    opacity: 1;
    transform: translateY(0);
  }
}

@keyframes fadeInUp {
  from {
    opacity: 0;
    transform: translateY(30px);
  }

  to {
    opacity: 1;
    transform: translateY(0);
  }
}

.animate-fade-in-down {
  animation: fadeInDown 0.8s ease-out forwards;
}

.animate-fade-in-up {
  animation: fadeInUp 0.8s ease-out forwards;
  opacity: 0;
}

.animation-delay-200 {
  animation-delay: 0.2s;
}

.animation-delay-400 {
  animation-delay: 0.4s;
}

.animation-delay-600 {
  animation-delay: 0.6s;
}

.animation-delay-800 {
  animation-delay: 0.8s;
}

.side-menu {
  position: fixed;
  left: 1.5rem;
  top: 50%;
  transform: translateY(-50%);
  height: auto;
  padding: 2rem 1rem;
  background: rgba(255, 255, 255, 0.75);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  border: 1px solid rgba(0, 0, 0, 0.1);
  border-radius: 20px;
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.05);
  z-index: 999;
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  gap: 2rem;
  color: var(--color-primary-navy);
  pointer-events: auto;
}

.side-menu>* {
  pointer-events: auto;
}

.vertical-text {
  writing-mode: vertical-rl;
  text-orientation: mixed;
  letter-spacing: 0.2em;
  font-size: 0.8rem;
  opacity: 0.6;
}

.scroll-progress {
  position: fixed;
  right: 2rem;
  top: 50%;
  transform: translateY(-50%);
  z-index: 10;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 1rem;
  color: var(--color-primary-navy);
  font-size: 0.8rem;
  opacity: 0.8;
}

.progress-track {
  width: 2px;
  height: 100px;
  background: rgba(38, 57, 126, 0.2);
}

.progress-fill {
  width: 100%;
  background: var(--color-primary-navy);
  height: 0;
  transition: height 0.1s ease-out;
}

.side-menu-links {
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  gap: 2rem;
  position: absolute;
  left: 100%;
  top: 50%;
  width: max-content;
  min-width: 250px;
  height: auto;
  background: var(--color-bg-cream);
  padding: 3rem;
  border-radius: 24px;
  box-shadow: 10px 10px 50px rgba(0, 0, 0, 0.15);
  opacity: 0;
  visibility: hidden;
  transform: translateY(-50%) translateX(-20px) scale(0.95);
  transition: all 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275);
  margin-left: 1rem;
}

.side-menu-links.active {
  opacity: 1;
  visibility: visible;
  transform: translateY(-50%) translateX(0) scale(1);
}

.side-menu-links a {
  font-family: var(--font-display);
  font-size: clamp(1.5rem, 3vw, 2.5rem);
  font-weight: 800;
  text-transform: uppercase;
  color: var(--color-primary-navy);
  text-decoration: none;
  transition: color 0.3s ease;
}

.side-menu-links a:hover {
  color: var(--color-accent-grey);
}

/* Minimalist Space Section */
.minimalist-section {
  position: relative;
  width: 100%;
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  overflow: hidden;
  padding: 4rem 2rem;
  z-index: 10;
}

.minimalist-grid {
  display: grid;
  grid-template-columns: 1fr;
  align-items: center;
  gap: 4rem;
  width: 100%;
  max-width: 1200px;
}

@media (min-width: 768px) {
  .minimalist-grid {
    grid-template-columns: 1fr 1fr 1fr;
  }
}

.min-left {
  text-align: center;
  order: 2;
  opacity: 0;
  transform: translateY(20px);
}

@media (min-width: 768px) {
  .min-left {
    text-align: left;
    order: 1;
  }
}

.min-left p {
  font-size: 1rem;
  line-height: 1.8;
  max-width: 300px;
  margin: 0 auto;
}

@media (min-width: 768px) {
  .min-left p {
    margin: 0;
  }
}

.min-left a.read-more {
  display: inline-block;
  margin-top: 1rem;
  font-weight: 600;
  color: var(--color-primary-navy);
  text-decoration: underline;
  text-decoration-thickness: 2px;
  text-underline-offset: 4px;
}

.min-center {
  position: relative;
  display: flex;
  justify-content: center;
  align-items: center;
  order: 1;
  height: 400px;
}

@media (min-width: 768px) {
  .min-center {
    order: 2;
    height: 500px;
  }
}

.orb {
  position: absolute;
  z-index: 0;
  width: 300px;
  height: 300px;
  border-radius: 50%;
  background: #facc15;
  /* Yellow */
  box-shadow: 0 0 50px rgba(250, 204, 21, 0.4);
  animation: orbPulse 4s infinite alternate ease-in-out;
  transform: scale(0.8);
  opacity: 0;
}

@keyframes orbPulse {
  0% {
    transform: scale(1);
    opacity: 0.7;
  }

  100% {
    transform: scale(1.1);
    opacity: 1;
  }
}

@media (min-width: 768px) {
  .orb {
    width: 400px;
    height: 400px;
  }
}

@media (min-width: 1024px) {
  .orb {
    width: 500px;
    height: 500px;
  }
}

.min-center img {
  position: relative;
  z-index: 10;
  width: 250px;
  height: auto;
  object-fit: cover;
  opacity: 0;
  transform: translateY(50px);
}

@media (min-width: 768px) {
  .min-center img {
    width: 300px;
  }
}

.min-right {
  order: 3;
  text-align: center;
  opacity: 0;
  transform: translateY(20px);
}

@media (min-width: 768px) {
  .min-right {
    text-align: left;
  }
}

.min-right h1 {
  font-size: clamp(4rem, 8vw, 8rem);
  font-weight: 800;
  line-height: 0.9;
  color: var(--color-primary-navy);
  text-transform: lowercase;
}

/* Feature Carousel Section */
.feature-carousel-section {
  position: relative;
  width: 100%;
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  overflow-x: hidden;
  background-color: transparent;
  color: var(--color-text-dark);
  padding: 4rem 1rem;
}

.fc-bg-gradient {
  position: absolute;
  inset: 0;
  z-index: 0;
  opacity: 0.2;
}

.fc-grad-1 {
  position: absolute;
  bottom: 0;
  left: -20%;
  top: -10%;
  height: 500px;
  width: 500px;
  border-radius: 50%;
  background: radial-gradient(circle farthest-side, rgba(128, 90, 213, 0.3), rgba(255, 255, 255, 0));
}

.fc-grad-2 {
  position: absolute;
  bottom: 0;
  right: -20%;
  top: -10%;
  height: 500px;
  width: 500px;
  border-radius: 50%;
  background: radial-gradient(circle farthest-side, rgba(0, 123, 255, 0.3), rgba(255, 255, 255, 0));
}

.fc-content {
  position: relative;
  z-index: 10;
  display: flex;
  width: 100%;
  flex-direction: column;
  align-items: center;
  text-align: center;
  gap: 2rem;
}

.fc-header {
  margin-bottom: 2rem;
}

.fc-subtitle {
  max-width: 600px;
  margin: 0 auto;
  color: var(--color-text-light);
  font-size: 1.1rem;
}

.fc-showcase {
  position: relative;
  width: 100%;
  height: 350px;
  display: flex;
  align-items: center;
  justify-content: center;
}

@media (min-width: 768px) {
  .fc-showcase {
    height: 450px;
  }
}

.fc-carousel-wrapper {
  position: relative;
  width: 100%;
  height: 100%;
  display: flex;
  align-items: center;
  justify-content: center;
  perspective: 1000px;
}

.fc-item {
  position: absolute;
  width: 12rem;
  height: 24rem;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: all 0.5s ease-in-out;
  will-change: transform, opacity, filter;
}

@media (min-width: 768px) {
  .fc-item {
    width: 16rem;
    height: 450px;
  }
}

.fc-item img {
  object-fit: cover;
  width: 100%;
  height: 100%;
  border-radius: 24px;
  border: 2px solid rgba(0, 0, 0, 0.1);
  box-shadow: 0 25px 50px -12px rgba(0, 0, 0, 0.25);
}

.fc-btn {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  border-radius: 50%;
  height: 2.5rem;
  width: 2.5rem;
  z-index: 20;
  background-color: rgba(255, 255, 255, 0.5);
  backdrop-filter: blur(4px);
  border: 1px solid rgba(0, 0, 0, 0.1);
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  color: var(--color-text-dark);
  transition: background-color 0.3s;
}

.fc-btn:hover {
  background-color: rgba(255, 255, 255, 0.8);
}

.fc-btn svg {
  height: 1.25rem;
  width: 1.25rem;
}

.fc-prev {
  left: 0.5rem;
}

@media (min-width: 640px) {
  .fc-prev {
    left: 2rem;
  }
}

.fc-next {
  right: 0.5rem;
}

@media (min-width: 640px) {
  .fc-next {
    right: 2rem;
  }
}

.pg-subtitle {
  text-align: center;
  font-size: 0.75rem;
  font-weight: 300;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  color: var(--color-text-light);
  margin-bottom: 0.5rem;
}

.pg-title {
  text-align: center;
  font-size: clamp(2.5rem, 5vw, 4.5rem);
  font-weight: 800;
  margin-bottom: 2rem;
  color: var(--color-text-dark);
  position: relative;
  z-index: 20;
}

.pg-title span {
  color: var(--primary-red);
  /* Brand logo teal */
}

/* Hover Slider Services Section */
.hover-slider-section {
  width: 100%;
  padding: 3rem 2rem;
  background-color: transparent;
  color: var(--color-primary-navy);
}

.hover-slider-container {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-evenly;
  gap: 3rem;
  max-width: 1200px;
  margin: 0 auto;
}

.hs-left {
  display: flex;
  flex-direction: column;
  gap: 0.8rem;
  width: 100%;
  max-width: 500px;
}

.hs-item {
  cursor: pointer;
  font-size: clamp(1.2rem, 2vw, 2rem);
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: -0.05em;
  position: relative;
  overflow: hidden;
}

/* Base text */
.hs-text-wrap {
  position: relative;
  display: inline-block;
  transform-origin: bottom;
  overflow: hidden;
}

/* Individual character spans */
.hs-char-wrap {
  position: relative;
  display: inline-block;
  overflow: hidden;
  vertical-align: top;
}

.hs-char {
  display: inline-block;
  transition: transform 0.3s cubic-bezier(0.25, 0.46, 0.45, 0.94);
}

.hs-char.primary {
  opacity: 0.2;
  transform: translateY(0%);
}

.hs-char.secondary {
  position: absolute;
  top: 0;
  left: 0;
  opacity: 1;
  transform: translateY(110%);
}

.hs-item.active .hs-char.primary {
  transform: translateY(-110%);
}

.hs-item.active .hs-char.secondary {
  transform: translateY(0%);
}

.hs-right {
  position: relative;
  width: 100%;
  max-width: 500px;
  height: 400px;
  overflow: hidden;
  border-radius: 24px;
}

@media (min-width: 768px) {
  .hs-right {
    height: 500px;
  }
}

.hs-img {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  border-radius: 24px;
  clip-path: polygon(0% 0%, 100% 0%, 100% 0%, 0% 0px);
  /* Hidden by default */
  transition: clip-path 0.8s cubic-bezier(0.33, 1, 0.68, 1);
}

.hs-img.active {
  clip-path: polygon(0% 0%, 100% 0%, 100% 100%, 0% 100%);
}

/* ===== Light Theme Ribbon Hero Section ===== */
.light-hero-section {
  position: relative;
  min-height: 100vh;
  width: 100%;
  overflow: hidden;
  background-color: transparent;
  display: flex;
  align-items: center;
  justify-content: center;
}

/* Subtle grid background */
.light-grid-bg {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  background:
    linear-gradient(to right, #57534e 1px, transparent 1px),
    linear-gradient(to bottom, #57534e 1px, transparent 1px);
  background-size: 3rem 3rem;
  opacity: 0.08;
  mask-image: radial-gradient(ellipse 80% 50% at 50% 0%, #000 70%, transparent 110%);
  -webkit-mask-image: radial-gradient(ellipse 80% 50% at 50% 0%, #000 70%, transparent 110%);
  pointer-events: none;
  z-index: 0;
}

/* Custom Global Cursor Styles */
.cursor-dot,
.cursor-ring {
  position: fixed;
  top: 0;
  left: 0;
  pointer-events: none;
  z-index: 9999;
  border-radius: 50%;
  transform: translate(-50%, -50%);
}

.cursor-dot {
  width: 8px;
  height: 8px;
  background-color: var(--primary-red);
}

@keyframes cursor-rainbow {
  0% {
    filter: blur(15px) hue-rotate(0deg);
  }

  100% {
    filter: blur(15px) hue-rotate(360deg);
  }
}

.cursor-ring {
  width: 80px;
  height: 80px;
  border: none;
  background: radial-gradient(circle, rgba(255, 0, 128, 0.5) 0%, rgba(255, 0, 128, 0.15) 40%, transparent 70%);
  animation: cursor-rainbow 4s linear infinite;
  transition: width 0.4s ease, height 0.4s ease;
  z-index: 9998;
}

.cursor-ring.hovering {
  width: 120px;
  height: 120px;
}

/* ========== Scroll Down Arrow ========== */
.scroll-down-arrow {
  position: absolute;
  bottom: 2.5rem;
  left: 50%;
  transform: translateX(-50%);
  z-index: 50;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.5rem;
  cursor: pointer;
  text-decoration: none;
  color: var(--color-primary-navy);
  transition: opacity 0.4s ease, transform 0.3s ease;
  opacity: 0;
  animation: fadeInArrow 1s ease 2s forwards;
}

.scroll-down-arrow:hover {
  transform: translateX(-50%) translateY(-4px);
  opacity: 1 !important;
}

.scroll-down-arrow .arrow-text {
  font-family: var(--font-body);
  font-size: 0.7rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.15em;
  color: var(--color-text-light);
}

.scroll-down-arrow .arrow-icon {
  width: 40px;
  height: 40px;
  border: 2px solid var(--color-primary-navy);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  position: relative;
  overflow: hidden;
  transition: background-color 0.3s ease, border-color 0.3s ease;
}

.scroll-down-arrow:hover .arrow-icon {
  background-color: var(--color-primary-navy);
  border-color: var(--color-primary-navy);
}

.scroll-down-arrow .arrow-icon svg {
  width: 16px;
  height: 16px;
  stroke: var(--color-primary-navy);
  transition: stroke 0.3s ease;
  animation: bounceArrow 2s ease-in-out infinite;
}

.scroll-down-arrow:hover .arrow-icon svg {
  stroke: var(--color-white);
}

@keyframes bounceArrow {

  0%,
  100% {
    transform: translateY(-3px);
  }

  50% {
    transform: translateY(3px);
  }
}

@keyframes fadeInArrow {
  0% {
    opacity: 0;
    transform: translateX(-50%) translateY(10px);
  }

  100% {
    opacity: 0.7;
    transform: translateX(-50%) translateY(0);
  }
}

/* ========== Cursor Sparkle Trail ========== */
.cursor-sparkle {
  position: fixed;
  pointer-events: none;
  z-index: 9997;
  border-radius: 50%;
  will-change: transform, opacity;
}

.cursor-sparkle--dot {
  width: 4px;
  height: 4px;
  background: var(--primary-red);
  box-shadow: 0 0 6px var(--primary-red), 0 0 12px rgba(7, 144, 146, 0.3);
}

.cursor-sparkle--ring {
  width: 8px;
  height: 8px;
  border: 1px solid rgba(7, 144, 146, 0.6);
  background: transparent;
}

.cursor-sparkle--glow {
  width: 6px;
  height: 6px;
  background: radial-gradient(circle, rgba(255, 255, 255, 0.9) 0%, rgba(7, 144, 146, 0.4) 60%, transparent 100%);
}

/* Content wrapper — sits above canvas */
.light-content-wrapper {
  position: relative;
  z-index: 10;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  text-align: center;
  padding: 8rem 1.5rem 4rem;
  max-width: 900px;
  margin: 0 auto;
  gap: 1.5rem;
}

/* Introducing badge */
.light-badge {
  display: inline-flex;
  align-items: center;
  gap: 0.35rem;
  padding: 0.4rem 1rem;
  border-radius: 9999px;
  border: 1px solid rgba(0, 0, 0, 0.1);
  background: rgba(255, 255, 255, 0.85);
  backdrop-filter: blur(8px);
  font-size: 0.8rem;
  color: var(--color-text-light);
  animation: fadeInDown 0.6s ease-out both;
}

.light-badge-link {
  color: var(--color-primary-navy);
  font-weight: 600;
  text-decoration: none;
  margin-left: 0.25rem;
  transition: color 0.2s;
}

.light-badge-link:hover {
  color: var(--primary-red);
}

/* Title box with plus-icon corners */
.light-title-box {
  position: relative;
  border: 1px solid rgba(0, 0, 0, 0.08);
  background: rgba(255, 255, 255, 0.7);
  backdrop-filter: blur(6px);
  padding: 3rem 2.5rem;
  mask-image: radial-gradient(800rem 96rem at center, white, transparent);
  -webkit-mask-image: radial-gradient(800rem 96rem at center, white, transparent);
  animation: fadeInUp 0.7s 0.15s ease-out both;
}

.plus-icon {
  position: absolute;
  width: 28px;
  height: 28px;
  color: var(--primary-red);
  opacity: 0.45;
}

.plus-icon.top-left {
  top: -14px;
  left: -14px;
}

.plus-icon.top-right {
  top: -14px;
  right: -14px;
}

.plus-icon.bottom-left {
  bottom: -14px;
  left: -14px;
}

.plus-icon.bottom-right {
  bottom: -14px;
  right: -14px;
}

.light-title {
  font-size: clamp(2.5rem, 6vw, 5rem);
  font-weight: 800;
  font-family: var(--font-display);
  line-height: 1.05;
  color: var(--color-primary-navy);
  text-transform: uppercase;
  letter-spacing: -0.02em;
}

/* Utilities */
.text-red {
  color: var(--primary-red);
}

.text-blue {
  color: #3b82f6;
}

.font-bold {
  font-weight: 700;
}

.font-semibold {
  font-weight: 600;
}

/* Availability ping */
.availability-badge {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0.4rem;
  margin-top: 0.75rem;
}

.ping-dot {
  position: relative;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 12px;
  height: 12px;
}

.ping-circle {
  position: absolute;
  width: 100%;
  height: 100%;
  border-radius: 50%;
  background-color: #22c55e;
  opacity: 0.75;
  animation: ping 1.2s cubic-bezier(0, 0, 0.2, 1) infinite;
}

.ping-core {
  position: relative;
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background-color: #22c55e;
}

.ping-text {
  font-size: 0.75rem;
  color: #22c55e;
  font-weight: 500;
}

@keyframes ping {
  0% {
    transform: scale(1);
    opacity: 0.75;
  }

  75%,
  100% {
    transform: scale(2);
    opacity: 0;
  }
}

/* Subtitle and description */
.light-subtitle {
  font-size: clamp(1.25rem, 2.5vw, 1.75rem);
  font-weight: 400;
  font-family: var(--font-body);
  text-transform: none;
  letter-spacing: 0;
  line-height: 1.5;
  color: var(--color-text-dark);
  margin-bottom: 0;
  animation: fadeInUp 0.7s 0.3s ease-out both;
}

.light-desc {
  font-size: 1rem;
  color: var(--color-text-light);
  max-width: 600px;
  margin: 0 auto;
  animation: fadeInUp 0.7s 0.45s ease-out both;
}

/* Typed cursor */
.typed-cursor {
  color: #3b82f6;
  font-weight: 300;
}

/* Buttons row */
.light-buttons {
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem;
  justify-content: center;
  align-items: center;
  margin-top: 0.5rem;
  animation: fadeInUp 0.7s 0.6s ease-out both;
}

.shine-border-wrapper {
  position: relative;
  border-radius: 12px;
  padding: 3px;
  background: conic-gradient(from 0deg, #FF007F, #39FF14, #00FFFF, #FF007F);
  background-size: 300% 300%;
  animation: shinePulse 14s linear infinite;
}

@keyframes shinePulse {
  0% {
    background-position: 0% 50%;
  }

  50% {
    background-position: 100% 50%;
  }

  100% {
    background-position: 0% 50%;
  }
}

.light-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 0.7rem 1.8rem;
  border-radius: 12px;
  font-weight: 600;
  font-size: 0.95rem;
  text-decoration: none;
  transition: all 0.25s ease;
  cursor: pointer;
}

.light-btn.primary {
  background-color: var(--color-primary-navy);
  color: #fff;
}

.light-btn.primary:hover {
  background-color: #0f1d45;
  transform: translateY(-2px);
  box-shadow: 0 8px 24px rgba(27, 43, 101, 0.25);
}

.light-btn.outline {
  background: transparent;
  border: 1px solid rgba(0, 0, 0, 0.15);
  color: var(--color-text-dark);
  border-radius: 12px;
}

.light-btn.outline:hover {
  border-color: var(--color-primary-navy);
  color: var(--color-primary-navy);
  transform: translateY(-2px);
}

/* ===== Mobile tweaks for light hero ===== */
@media (max-width: 768px) {
  .light-content-wrapper {
    padding: 6rem 1rem 3rem;
  }

  .light-title-box {
    padding: 2rem 1.25rem;
  }

  .light-grid-bg {
    display: none;
  }
}

/* Ensure only home page sections sit above the fixed canvas without breaking other pages */
.feature-carousel-section,
.hover-slider-section,
.minimalist-section,
.testimonials-section,
.contact-section,
.light-hero-section,
footer {
  position: relative;
  z-index: 2;
}

/* ==========================================================================
   Project Detail Pages (sat-net-portable, yooma, zestor)
   ========================================================================== */

.project-story-section {
  padding-top: 3.5rem;
}

.project-story-grid {
  display: flex;
  flex-direction: column;
  gap: 2rem;
  margin-bottom: 2.5rem;
}

.story-content h2 {
  font-size: 2.25rem;
  color: var(--color-primary-navy);
  margin-bottom: 1.5rem;
}

.story-content p {
  font-size: 1.1rem;
  line-height: 1.8;
  color: var(--color-text-light);
  margin-bottom: 1.5rem;
}

.project-meta-col {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 1.25rem;
  background: rgba(255, 255, 255, 0.02);
  border: 1px solid rgba(164, 165, 153, 0.15);
  padding: 2rem;
  border-radius: 16px;
}

.meta-group h3 {
  font-size: 0.85rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  color: var(--primary-red);
  /* Brand Accent Teal */
  margin-bottom: 0.5rem;
}

.meta-group p {
  font-size: 1rem;
  color: var(--color-primary-navy);
  font-weight: 500;
  line-height: 1.5;
}

/* Metrics Section */
.metrics-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 1.5rem;
  margin: 2.5rem 0;
  padding: 2rem 0;
  border-top: 1px solid rgba(164, 165, 153, 0.15);
  border-bottom: 1px solid rgba(164, 165, 153, 0.15);
}

.metric-item {
  text-align: center;
}

.metric-item h4 {
  font-size: clamp(2.5rem, 5vw, 3.5rem);
  font-weight: 800;
  color: var(--primary-red);
  /* Brand Accent Teal */
  line-height: 1;
  margin-bottom: 0.5rem;
}

.metric-label {
  font-size: 0.75rem;
  font-weight: 700;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--color-accent-grey);
  display: block;
  margin-bottom: 1rem;
}

.metric-item p {
  font-size: 0.95rem;
  color: var(--color-text-light);
  line-height: 1.5;
}

/* Showcase Image Grid */
.showcase-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 1.5rem;
  margin-top: 2.5rem;
}

.showcase-img {
  width: 100%;
  border-radius: 16px;
  overflow: hidden;
  box-shadow: 0 15px 30px rgba(0, 0, 0, 0.05);
  transition: var(--transition-smooth);
}

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

/* Make image slots horizontal and large */
.showcase-img.img-large {
  grid-column: span 2;
  height: 550px;
}

.showcase-img.img-half-1,
.showcase-img.img-half-2,
.showcase-img.img-tall-1,
.showcase-img.img-tall-2 {
  grid-column: span 1;
  height: 400px;
}

.showcase-img:hover {
  transform: translateY(-5px);
  box-shadow: 0 20px 40px rgba(7, 144, 146, 0.15);
}

/* Responsive adjustments */
@media (max-width: 1024px) {
  .project-story-grid {
    grid-template-columns: 1fr;
    gap: 2.5rem;
  }

  .metrics-grid {
    grid-template-columns: repeat(2, 1fr);
    gap: 2rem;
  }
}

@media (max-width: 576px) {
  .project-meta-col {
    grid-template-columns: 1fr;
  }

  .metrics-grid {
    grid-template-columns: repeat(1, 1fr);
  }

  .showcase-grid {
    grid-template-columns: 1fr;
    gap: 1.5rem;
  }

  .showcase-img.img-large,
  .showcase-img.img-half-1,
  .showcase-img.img-half-2,
  .showcase-img.img-tall-1,
  .showcase-img.img-tall-2 {
    grid-column: span 1;
    height: 300px;
  }
}

/* Utility class for colored headings without overriding font size */
.colored-heading {
  color: var(--color-primary-navy) !important;
}

.colored-heading span {
  color: var(--primary-red) !important;
}

/* Ensure headings are visible on dark backgrounds */
.mega-footer .colored-heading,
footer .colored-heading,
.services-section .colored-heading,
.dark-hero-header .colored-heading,
.dark-section .colored-heading {
  color: var(--color-white) !important;
}

/* About Page Specific Styles */
.core-values-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 2.5rem;
}

.cv-card {
  padding: 3rem 2rem;
}

.cv-heading {
  font-size: 1.5rem;
  margin-bottom: 1rem;
}

/* ==========================================================================
   Comprehensive Mobile & Tablet Responsive Overrides
   ========================================================================== */

@media (max-width: 1024px) {

  /* Global spacing and sizing */
  .section-padding {
    padding: var(--section-padding) 0;
  }

  /* Hero Sections Adjustments */
  .project-hero {
    min-height: 40vh;
  }
}

@media (max-width: 768px) {

  /* Global Spacing */
  .section-padding {
    padding: var(--section-padding) 0;
  }

  .container {
    padding: 0 var(--container-padding);
  }

  /* About Page Mobile Single-Page Compression */
  .about-content-section {
    padding: 1.5rem 0;
  }

  .about-content-section .about-grid {
    gap: 1rem !important;
  }

  .about-visual {
    display: none;
    /* Hide image to fit text on single page */
  }

  .about-desc {
    font-size: 0.95rem !important;
    margin-bottom: 1rem !important;
    line-height: 1.5 !important;
  }

  .about-content-section p {
    font-size: 0.9rem !important;
    line-height: 1.5 !important;
  }

  .core-values-section {
    padding: 1.5rem 0;
  }

  .cv-title {
    margin-bottom: 1.5rem !important;
  }

  .core-values-grid {
    display: flex;
    overflow-x: auto;
    scroll-snap-type: x mandatory;
    gap: 1rem;
    padding-bottom: 1rem;
    -ms-overflow-style: none;
    scrollbar-width: none;
  }

  .core-values-grid::-webkit-scrollbar {
    display: none;
  }

  .cv-card {
    flex: 0 0 85%;
    scroll-snap-align: center;
    padding: 1.5rem 1rem;
  }

  .cv-heading {
    font-size: 1.25rem;
    margin-bottom: 0.5rem;
  }

  .cv-text {
    font-size: 0.9rem;
  }

  /* Header Logo Adjustments */
  .logo {
    position: fixed;
    top: 40px;
    /* Aligns with the center of the menu toggle */
    left: 1rem;
    z-index: 1001;
    transform: translateY(-50%);
  }

  .logo img {
    height: 45px;
  }

  header.scrolled .logo img {
    height: 35px;
  }

  /* Typography Scaling */
  h1 {
    font-size: clamp(2.5rem, 8vw, 3.5rem);
  }

  h2 {
    font-size: clamp(1.75rem, 6vw, 2.5rem);
  }

  .light-title {
    font-size: clamp(2rem, 8vw, 3.5rem);
  }

  .min-right h1 {
    font-size: clamp(2.5rem, 10vw, 4rem);
  }

  /* Side Menu adjustments for Mobile (moved to header) */
  .side-menu {
    top: 20px;
    bottom: auto;
    right: 1.5rem;
    left: auto;
    transform: none;
    flex-direction: row;
    padding: 0;
    width: auto;
    background: transparent;
    border: none;
    box-shadow: none;
    backdrop-filter: none;
    -webkit-backdrop-filter: none;
    z-index: 1001;
    /* Above header */
  }

  .menu-icon {
    background: rgba(255, 255, 255, 0.85);
    padding: 10px;
    border-radius: 50%;
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.1);
  }

  .vertical-text {
    display: none;
  }

  .side-menu-links {
    position: fixed;
    top: 50%;
    left: 50%;
    right: auto;
    bottom: auto;
    width: 90vw;
    max-width: 400px;
    height: auto;
    min-height: 50vh;
    border-radius: 20px;
    transform: translate(-50%, -50%) scale(0.9);
    transition: all 0.3s ease;
    align-items: center;
    justify-content: center;
    padding: 2rem;
    box-shadow: 0 20px 50px rgba(0, 0, 0, 0.5);
    z-index: 1002;
  }

  .side-menu-links.active {
    transform: translate(-50%, -50%) scale(1);
  }

  /* Hero section adjustments */
  .light-content-wrapper {
    padding: 6rem 1rem 3rem;
  }

  /* Grids and stacking */
  .about-grid,
  .minimalist-grid,
  .project-story-grid {
    grid-template-columns: 1fr;
    gap: 2rem;
  }

  .contact-grid {
    grid-template-columns: 1fr;
    gap: 1.5rem;
  }

  .footer-top-grid {
    grid-template-columns: 1fr;
    gap: 1.5rem;
    margin-bottom: 1rem;
  }

  .portfolio-grid,
  .testimonials-grid,
  .services-grid,
  .metrics-grid {
    grid-template-columns: 1fr;
    gap: 1.5rem;
  }

  /* Testimonials Single-Page Compression */
  .testimonials-header {
    margin-bottom: 1.5rem !important;
  }

  .testimonials-header h2 {
    font-size: 1.5rem;
    margin-bottom: 0.25rem;
  }

  .testimonials-header p {
    font-size: 0.9rem;
  }

  .testimonials-marquee-wrapper {
    max-height: 350px;
    /* Reduced to fit mobile screen */
    gap: 1rem;
  }

  .test-card {
    padding: 1.25rem;
    border-radius: 16px;
  }

  .test-card-text {
    font-size: 0.85rem;
    margin-bottom: 1rem;
  }

  /* Clients Section Mobile Compression */
  .clients-section {
    padding: 1.5rem 0 !important;
  }

  .clients-section h2 {
    font-size: 1.5rem;
    margin-bottom: 0.5rem;
  }

  .clients-section p {
    font-size: 0.9rem;
    margin-bottom: 1.5rem;
  }

  .marquee-content img {
    height: 40px !important;
    margin: 0 1rem !important;
  }

  /* Hover Slider adjustments */
  .hover-slider-section {
    padding: 1.5rem 1rem;
  }

  #our-services>div:first-child {
    margin-bottom: 1.5rem !important;
  }

  #our-services>div:first-child h2 {
    margin-bottom: 0.5rem !important;
  }

  .hover-slider-container {
    gap: 1.5rem;
  }

  .hs-left {
    gap: 0.4rem;
  }

  .hs-item {
    font-size: 0.95rem;
    /* Smaller font on mobile to fit 9 items */
  }

  .hs-right {
    height: 180px;
  }

  /* Contact Section Compression for single page */
  .contact-section.section-padding {
    padding: 1rem 0;
  }

  .contact-info-col h2 {
    font-size: 1.4rem;
    line-height: 1.2;
    margin-bottom: 0.5rem;
  }

  .contact-details {
    margin: 0.5rem 0;
  }

  .contact-details li {
    margin-bottom: 0.25rem;
    font-size: 0.85rem;
  }

  .social-links a {
    width: 32px;
    height: 32px;
  }

  .social-links svg {
    width: 14px;
    height: 14px;
  }

  .contact-form-col {
    padding: 1rem;
  }

  #agency-contact-form {
    display: flex;
    flex-wrap: wrap;
    gap: 0.5rem;
  }

  .form-group {
    margin-bottom: 0;
    width: 100%;
  }

  /* Put Name/Email, Phone/Company side-by-side */
  .form-group:nth-child(1),
  .form-group:nth-child(2),
  .form-group:nth-child(3),
  .form-group:nth-child(4) {
    width: calc(50% - 0.25rem);
  }

  .form-group label {
    font-size: 0.7rem;
    margin-bottom: 0.1rem;
  }

  .form-control {
    padding: 0.2rem 0;
    font-size: 0.85rem;
  }

  textarea.form-control {
    min-height: 40px;
  }

  .form-checkbox {
    margin: 0.5rem 0;
    width: 100%;
  }

  .form-checkbox label {
    font-size: 0.75rem;
  }

  #agency-contact-form .btn {
    padding: 0.6rem 1rem;
    font-size: 0.85rem;
  }

  /* Feature Carousel */
  .fc-item {
    width: 14rem;
    height: 350px;
  }

  .fc-showcase {
    height: 350px;
  }

  /* Footer */
  .mega-footer {
    padding: 1.5rem 0 4.5rem 0;
    /* Reduced padding, still prevents side-menu overlap */
  }

  .footer-middle {
    flex-direction: row;
    align-items: center;
    justify-content: center;
    gap: 1rem;
    margin-bottom: 0.5rem;
  }

  .footer-massive-text {
    font-size: clamp(1.5rem, 11vw, 3rem);
    letter-spacing: normal;
    margin-bottom: 0.5rem;
  }

  .footer-bottom {
    flex-direction: column;
    gap: 0.5rem;
    font-size: 0.75rem;
  }

  .footer-contact p,
  .newsletter-form label,
  .newsletter-form input[type="email"],
  .checkbox-group {
    font-size: 0.8rem;
    margin-bottom: 0.25rem;
  }

  .footer-contact .mt-2 {
    margin-top: 0.5rem;
  }

  .footer-newsletter h4 {
    margin-bottom: 0.5rem;
    font-size: 0.9rem;
  }

  .newsletter-form .input-group {
    margin-bottom: 0.5rem;
  }

  .btn-submit {
    padding: 0.5rem 1.5rem;
    font-size: 0.8rem;
  }

  .footer-logo-icon {
    margin-bottom: 0.5rem;
    transform: scale(0.8);
    transform-origin: left;
  }

  /* Testimonials columns */
  .testimonials-column {
    max-width: 100%;
  }
}

@media (max-width: 480px) {

  /* Clients Marquee */
  .marquee-content img {
    height: 50px;
    margin: 0 0.2rem;
  }

  /* Smaller adjustments for very small screens */
  .fc-item {
    width: 10rem;
    height: 250px;
  }

  .fc-showcase {
    height: 250px;
  }

  .metrics-grid {
    grid-template-columns: 1fr;
  }
}

/* Clients Marquee Section */
.clients-marquee {
  width: 100%;
  overflow: hidden;
  white-space: nowrap;
  position: relative;
  display: flex;
}

.marquee-track {
  display: flex;
  width: max-content;
  animation: marquee-scroll 100s linear infinite;
}

.marquee-content {
  display: flex;
  align-items: center;
  justify-content: center;
}

.marquee-content img {
  height: 80px;
  width: auto;
  max-width: 200px;
  object-fit: contain;
  margin: 0 0.3rem;
  filter: grayscale(100%);
  opacity: 0.6;
  transition: filter 0.3s, opacity 0.3s, transform 0.3s;
}

.marquee-content img:hover {
  filter: grayscale(0%);
  opacity: 1;
  transform: scale(1.05);
}

@keyframes marquee-scroll {
  0% {
    transform: translateX(0);
  }

  100% {
    transform: translateX(-50%);
  }
}

/* ========================================================================= */
/* Forms & Inputs                                                            */
/* ========================================================================= */

/* ========================================================================= */
/* Bento Layout Portfolio Override                                           */
/* ========================================================================= */
.portfolio-grid.bento-layout {
  display: grid;
  grid-template-columns: repeat(12, 1fr);
  grid-auto-rows: 25px;
  grid-auto-flow: row dense;
  gap: 0;
  /* without gap */
}

.portfolio-grid.bento-layout .portfolio-item {
  position: relative;
  overflow: hidden;
  cursor: pointer;
  border-radius: 0;
  /* flush edges */
}

/* Explicit columns to prevent overlaps */
.portfolio-grid.bento-layout .portfolio-item:nth-child(6n + 1) {
  grid-column: 1 / 4;
  grid-row: span 12;
}

.portfolio-grid.bento-layout .portfolio-item:nth-child(6n + 2) {
  grid-column: 4 / 9;
  grid-row: span 9;
}

.portfolio-grid.bento-layout .portfolio-item:nth-child(6n + 3) {
  grid-column: 9 / 13;
  grid-row: span 10;
}

.portfolio-grid.bento-layout .portfolio-item:nth-child(6n + 4) {
  grid-column: 1 / 4;
  grid-row: span 8;
}

.portfolio-grid.bento-layout .portfolio-item:nth-child(6n + 5) {
  grid-column: 4 / 9;
  grid-row: span 11;
}

.portfolio-grid.bento-layout .portfolio-item:nth-child(6n + 6) {
  grid-column: 9 / 13;
  grid-row: span 10;
}

.portfolio-grid.bento-layout .portfolio-media {
  width: 100%;
  height: 100%;
  padding-bottom: 0;
}

.portfolio-grid.bento-layout .portfolio-media img,
.portfolio-grid.bento-layout .portfolio-media video {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.5s ease;
}

.portfolio-grid.bento-layout .portfolio-item:hover .portfolio-media img,
.portfolio-grid.bento-layout .portfolio-item:hover .portfolio-media video {
  transform: scale(1.05);
}

.portfolio-grid.bento-layout .portfolio-info {
  position: absolute;
  bottom: 0;
  left: 0;
  width: 100%;
  padding: 1.5rem;
  background: linear-gradient(to top, rgba(0, 0, 0, 0.85) 0%, rgba(0, 0, 0, 0) 100%);
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
  align-items: flex-start;
  margin-top: 0;
  pointer-events: none;
}

.portfolio-grid.bento-layout .portfolio-title {
  font-size: 1.2rem;
  font-family: var(--font-body);
  font-weight: 500;
  margin: 0;
  color: #fff;
  text-transform: none;
  letter-spacing: normal;
}

.portfolio-grid.bento-layout .portfolio-title span {
  color: #fff;
}

.portfolio-grid.bento-layout .portfolio-cat,
.portfolio-grid.bento-layout .portfolio-link {
  display: none;
}

@media (max-width: 1024px) {

  .portfolio-grid.bento-layout .portfolio-item:nth-child(6n + 1),
  .portfolio-grid.bento-layout .portfolio-item:nth-child(6n + 2),
  .portfolio-grid.bento-layout .portfolio-item:nth-child(6n + 3),
  .portfolio-grid.bento-layout .portfolio-item:nth-child(6n + 4),
  .portfolio-grid.bento-layout .portfolio-item:nth-child(6n + 5),
  .portfolio-grid.bento-layout .portfolio-item:nth-child(6n + 6) {
    grid-column: 1 / 13;
    grid-row: span 12;
  }
}

@media (max-width: 576px) {

  .portfolio-grid.bento-layout .portfolio-item:nth-child(6n + 1),
  .portfolio-grid.bento-layout .portfolio-item:nth-child(6n + 2),
  .portfolio-grid.bento-layout .portfolio-item:nth-child(6n + 3),
  .portfolio-grid.bento-layout .portfolio-item:nth-child(6n + 4),
  .portfolio-grid.bento-layout .portfolio-item:nth-child(6n + 5),
  .portfolio-grid.bento-layout .portfolio-item:nth-child(6n + 6) {
    grid-column: 1 / 13 !important;
    grid-row: span 12;
  }
}

/* Sticky Client Bar */
.sticky-client-bar {
  position: sticky !important;
  top: 0 !important;
  padding: 1rem 0;
  background-color: var(--color-bg-cream) !important;
  border-bottom: 1px solid rgba(0, 0, 0, 0.1);
  z-index: 1000 !important;
  transition: var(--transition-smooth);
}

.sticky-client-bar.scrolled {
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.05);
  padding: 0.5rem 0;
}

.sticky-bar-container {
  display: flex;
  justify-content: space-between;
  align-items: center;
  width: 100%;
  padding: 0 2rem;
  max-width: 1400px;
  margin: 0 auto;
  gap: 1rem;
  flex-wrap: nowrap;
  overflow-x: auto;
}

/* Hide scrollbar for a cleaner look */
.sticky-bar-container::-webkit-scrollbar {
  display: none;
}

.sticky-bar-container {
  -ms-overflow-style: none;
  scrollbar-width: none;
}

.sticky-nav-content-wrapper {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  white-space: nowrap;
  flex-shrink: 0;
}

.nav-label {
  font-size: 0.8rem;
  text-transform: uppercase;
  color: var(--color-text-light);
  letter-spacing: 0.05em;
  white-space: nowrap;
}

.nav-label-name {
  font-weight: 600;
  color: var(--color-text-dark);
  white-space: nowrap;
}

.nav-services-wrapper {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  white-space: nowrap;
  flex-shrink: 0;
}

.sticky-nav-bullets {
  width: 4px;
  height: 4px;
  background-color: var(--color-primary-navy);
  border-radius: 50%;
}

.sticky-nav-button {
  padding: 0.5rem 1.5rem;
  border: 1px solid var(--color-primary-navy);
  border-radius: 100px;
  font-size: 0.85rem;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  font-weight: 600;
  color: var(--color-primary-navy);
  transition: var(--transition-smooth);
  white-space: nowrap;
  flex-shrink: 0;
}

.sticky-nav-button:hover {
  background-color: var(--color-primary-navy);
  color: var(--color-white);
}


/* Overview Section & Stats */
.section_overview {
  padding: clamp(3rem, 6vw, 5rem) 2rem;
  max-width: 1200px;
  margin: 0 auto;
}

.overview-text {
  font-size: clamp(1.4rem, 2.5vw, 2.2rem);
  line-height: 1.35;
  font-family: var(--font-display);
  font-weight: 400;
  color: var(--color-text-dark);
  margin-bottom: 3rem;
}

.overview-text strong {
  font-weight: 800;
  color: var(--color-primary-navy);
}

.works-stats-wrapper {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 2rem;
  border-top: 1px solid rgba(0, 0, 0, 0.1);
  padding-top: 2.5rem;
}

.work-stats-item {
  display: flex;
  flex-direction: column;
}

.work-stats {
  font-size: clamp(1.6rem, 2.2vw, 2.2rem);
  font-family: var(--font-display);
  font-weight: 800;
  color: var(--color-primary-navy);
  margin-bottom: 0.25rem;
}

.stats-label {
  font-size: 0.9rem;
  color: var(--color-text-light);
  font-weight: 500;
}

/* Interleaved Image Grids */
.case-study-content-wrapper {
  max-width: 1200px;
  margin: 0 auto;
  padding: clamp(2rem, 5vw, 4rem) 2rem;
}

.client_overview-head {
  margin-bottom: 2.5rem;
}

.client-overview-heading {
  font-size: clamp(1.8rem, 3.5vw, 2.6rem);
  color: var(--color-primary-navy);
}

.client-overview-rich-text {
  font-size: clamp(1rem, 1.2vw, 1.15rem);
  line-height: 1.65;
  color: var(--color-text-light);
  margin-bottom: 3.5rem;
  max-width: 800px;
}

.case-study-image-2-col {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 2rem;
  margin: 0 auto 3.5rem auto;
  max-width: 1000px;
}

.case-study-image-1-col {
  margin: 0 auto 3.5rem auto;
  max-width: 850px;
}

.case-study-image-wrapper {
  position: relative;
  border-radius: 12px;
  overflow: hidden;
}

.rich-text-image {
  width: auto;
  height: 500px;
  display: block;
  border-radius: 11px;
}


.cs-image-context {
  margin-top: 0.75rem;
  display: flex;
  justify-content: space-between;
  font-size: 0.85rem;
  color: var(--color-text-light);
  border-top: 1px solid rgba(0, 0, 0, 0.08);
  padding-top: 0.5rem;
}

.cs-image-context-text.col-2 {
  text-align: right;
  font-weight: 600;
  color: var(--color-primary-navy);
}

.works-half-info {
  display: flex;
  justify-content: flex-end;
  margin: clamp(3rem, 6vw, 5rem) 0;
}

.works-half-info-container {
  max-width: 50%;
}

.client_description-rt {
  font-size: clamp(1rem, 1.2vw, 1.15rem);
  line-height: 1.65;
  color: var(--color-text-light);
  margin-bottom: 1.5rem;
}

.client-link {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  font-weight: 600;
  color: var(--color-primary-navy);
  text-transform: uppercase;
  letter-spacing: 0.05em;
  font-size: 0.85rem;
}

.client-link img {
  width: 16px;
  transition: var(--transition-smooth);
}

.client-link:hover img {
  transform: translateY(3px);
}

@media (max-width: 768px) {
  .sticky-bar-container {
    flex-direction: row;
    justify-content: flex-start;
    overflow-x: auto;
    white-space: nowrap;
    padding: 0 1rem;
    gap: 1.5rem;
    -webkit-overflow-scrolling: touch;
  }

  .works-stats-wrapper {
    grid-template-columns: 1fr;
  }

  .case-study-image-2-col {
    grid-template-columns: 1fr;
  }

  .works-half-info-container {
    max-width: 100%;
  }
}

/* Policy Content Headings */
.policy-content h1.colored-heading {
  font-size: clamp(2rem, 4vw, 3.5rem);
}

.policy-content h2.colored-heading {
  font-size: clamp(1.1rem, 2vw, 1.5rem);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

/* Works Portfolio Section Grid Custom */
.works-cl-wrapper {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 4rem 3rem;
  padding: 2rem 0;
}

@media (max-width: 1024px) {
  .works-cl-wrapper {
    grid-template-columns: repeat(2, 1fr);
    gap: 3rem 2rem;
  }

  .works-collection-item:nth-child(even) {
    margin-top: 0 !important;
  }
}

@media (max-width: 768px) {
  .works-cl-wrapper {
    grid-template-columns: 1fr;
    gap: 2rem;
  }
}

.works-collection-item:nth-child(even) {
  margin-top: 160px;
}

.works-item {
  display: flex;
  flex-direction: column;
  gap: 1.5rem;
}

.works-item-top {
  display: flex;
  flex-direction: column;
  gap: 1rem;
}

.works-item-top-hr {
  height: 1px;
  background: rgba(18, 18, 18, 0.1);
  width: 100%;
}

.works-item-top-content-wrapper {
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.works-item-top-title {
  font-size: 1.5rem;
  font-weight: 600;
  color: var(--color-primary-navy);
}

.works-item-top-category {
  font-size: 0.85rem;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  color: var(--color-text-light);
  border: 1px solid rgba(18, 18, 18, 0.2);
  padding: 0.4rem 1rem;
  border-radius: 30px;
}

.works-item-image-wrapper {
  position: relative;
  display: block;
  width: 100%;
  aspect-ratio: 4/5;
  background-size: cover;
  background-position: center;
  overflow: hidden;
  text-decoration: none;
  color: inherit;
  border-radius: 0;
}

/* Hover Effects */
.works-item-bg-blur {
  position: absolute;
  inset: 0;
  background: rgba(7, 144, 146, 0.6);
  /* #079092 with transparency */
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
  opacity: 0;
  transition: opacity 0.5s ease;
  z-index: 1;
}

.works-item-text-mask {
  position: absolute;
  inset: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 1.5rem;
  text-align: center;
  z-index: 3;
}

.work-item-mask-text {
  font-size: 1.1rem;
  color: #fff;
  transform: translateY(20px);
  opacity: 0;
  transition: all 0.5s ease;
  font-weight: 500;
  line-height: 1.5;
}

.works-item-btn {
  position: absolute;
  bottom: 1rem;
  right: 1rem;
  width: 3.5rem;
  height: 3.5rem;
  background: var(--color-white);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  transform: scale(0.5);
  opacity: 0;
  transition: all 0.5s cubic-bezier(0.175, 0.885, 0.32, 1.275);
  z-index: 4;
}

.works-item-btn img {
  width: 1.5rem;
}

.works-item-image-wrapper:hover .works-item-bg-blur {
  opacity: 1;
}

.works-item-image-wrapper:hover .work-item-mask-text {
  opacity: 1;
  transform: translateY(0);
}

.works-item-image-wrapper:hover .works-item-btn {
  opacity: 1;
  transform: scale(1);
}

/* Vectors */
.works-item-upper-mask,
.works-item-lower-mask {
  position: absolute;
  left: 0;
  width: 100%;
  height: 50.5%;
  overflow: hidden;
  z-index: 2;
}

.works-item-upper-mask {
  top: 0;
  transform: translateY(-100%);
  transition: transform 0.6s cubic-bezier(0.77, 0, 0.175, 1);
}

.works-item-lower-mask {
  bottom: 0;
  transform: translateY(100%);
  transition: transform 0.6s cubic-bezier(0.77, 0, 0.175, 1);
}

.works-item-vector-1,
.works-item-vector-2 {
  width: 100%;
  height: 200%;
  object-fit: cover;
  position: absolute;
  opacity: 0.9;
  filter: sepia(1) hue-rotate(140deg) saturate(3) brightness(0.7);
}

.works-item-vector-1 {
  top: 0;
  object-position: top;
}

.works-item-vector-2 {
  bottom: 0;
  object-position: bottom;
}

.works-item-image-wrapper:hover .works-item-upper-mask {
  transform: translateY(0);
}

.works-item-image-wrapper:hover .works-item-lower-mask {
  transform: translateY(0);
}

/* Service Category Showcase Grid */
.showcase-grid-section {
  padding: 6rem 0;
  background-color: var(--color-bg-cream);
}

.showcase-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 2.5rem;
  margin-top: 2.5rem;
}

@media (max-width: 1024px) {
  .showcase-grid {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media (max-width: 600px) {
  .showcase-grid {
    grid-template-columns: 1fr;
    gap: 1.5rem;
  }
}

.showcase-card {
  background: #ffffff;
  border-radius: 12px;
  overflow: hidden;
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.02);
  transition: transform 0.4s cubic-bezier(0.165, 0.84, 0.44, 1), box-shadow 0.4s ease;
  display: flex;
  flex-direction: column;
  border: 1px solid rgba(11, 48, 51, 0.05);
}

.showcase-card:hover {
  transform: translateY(-8px);
  box-shadow: 0 20px 40px rgba(11, 48, 51, 0.1);
}

.showcase-media-wrapper {
  width: 100%;
  aspect-ratio: 4 / 5;
  /* Beautiful portrait ratio */
  overflow: hidden;
  background-color: #f9f9f9;
  position: relative;
}

.showcase-media-wrapper img,
.showcase-media-wrapper video {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.6s cubic-bezier(0.165, 0.84, 0.44, 1);
}

.showcase-card:hover .showcase-media-wrapper img,
.showcase-card:hover .showcase-media-wrapper video {
  transform: scale(1.05);
}

.showcase-content {
  padding: 1.5rem;
  display: flex;
  flex-direction: column;
  flex-grow: 1;
}

.showcase-tag {
  font-size: 0.75rem;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  color: var(--primary-red);
  font-weight: 700;
  margin-bottom: 0.5rem;
}

.showcase-title {
  font-family: var(--font-body);
  font-size: 1.15rem;
  color: var(--color-primary-navy);
  font-weight: 700;
  margin: 0;
}

/* ===== More Projects Navigation Section ===== */
.more-projects-section {
  padding: 5rem 0;
  background: linear-gradient(180deg, var(--color-bg-cream) 0%, #f0f6f6 100%);
}

.more-projects-section .section-header {
  text-align: center;
  margin-bottom: 3rem;
}

.more-projects-section .section-header .section-label {
  font-family: var(--font-body);
  font-size: 0.85rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.15em;
  color: var(--primary-red);
  margin-bottom: 0.5rem;
}

.more-projects-section .section-header h2 {
  font-family: var(--font-display);
  font-size: clamp(1.8rem, 3vw, 2.5rem);
  color: var(--color-primary-navy);
  margin-bottom: 0.75rem;
}

.more-projects-section .section-header p {
  font-size: 1.05rem;
  color: var(--color-text-light);
  max-width: 500px;
  margin: 0 auto;
  line-height: 1.6;
}

.more-projects-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 2rem;
}

.more-project-card {
  position: relative;
  border-radius: 16px;
  overflow: hidden;
  background: #fff;
  box-shadow: 0 4px 24px rgba(11, 48, 51, 0.06);
  transition: transform 0.45s cubic-bezier(0.165, 0.84, 0.44, 1),
    box-shadow 0.45s ease;
  text-decoration: none;
  display: block;
  border: 1px solid rgba(11, 48, 51, 0.06);
}

.more-project-card:hover {
  transform: translateY(-10px);
  box-shadow: 0 20px 50px rgba(11, 48, 51, 0.14);
}

.more-project-card .card-image {
  width: 100%;
  aspect-ratio: 16 / 10;
  overflow: hidden;
  position: relative;
}

.more-project-card .card-image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.6s cubic-bezier(0.165, 0.84, 0.44, 1);
}

.more-project-card:hover .card-image img {
  transform: scale(1.08);
}

.more-project-card .card-image::after {
  content: '';
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
  height: 50%;
  background: linear-gradient(to top, rgba(11, 48, 51, 0.5), transparent);
  pointer-events: none;
  opacity: 0;
  transition: opacity 0.4s ease;
}

.more-project-card:hover .card-image::after {
  opacity: 1;
}

.more-project-card .card-body {
  padding: 1.25rem 1.5rem;
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.more-project-card .card-tag {
  font-family: var(--font-body);
  font-size: 0.7rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.12em;
  color: var(--primary-red);
  margin-bottom: 0.35rem;
}

.more-project-card .card-title {
  font-family: var(--font-display);
  font-size: 1.15rem;
  color: var(--color-primary-navy);
  font-weight: 700;
  margin: 0;
  line-height: 1.3;
}

.more-project-card .card-arrow {
  width: 36px;
  height: 36px;
  border-radius: 50%;
  background: var(--color-primary-navy);
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  transition: background 0.3s ease, transform 0.3s ease;
}

.more-project-card:hover .card-arrow {
  background: var(--primary-red);
  transform: translateX(4px);
}

.more-project-card .card-arrow svg {
  width: 16px;
  height: 16px;
  fill: none;
  stroke: #fff;
  stroke-width: 2;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.more-projects-cta {
  text-align: center;
  margin-top: 2.5rem;
}

.more-projects-cta .btn-view-all {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.85rem 2rem;
  background: var(--color-primary-navy);
  color: #fff;
  text-decoration: none;
  border-radius: 50px;
  font-family: var(--font-body);
  font-size: 0.95rem;
  font-weight: 600;
  letter-spacing: 0.02em;
  transition: background 0.3s ease, transform 0.3s ease, box-shadow 0.3s ease;
}

.more-projects-cta .btn-view-all:hover {
  background: var(--primary-red);
  transform: translateY(-2px);
  box-shadow: 0 8px 25px rgba(7, 144, 146, 0.3);
}

.more-projects-cta .btn-view-all svg {
  width: 18px;
  height: 18px;
  fill: none;
  stroke: currentColor;
  stroke-width: 2;
  stroke-linecap: round;
  stroke-linejoin: round;
  transition: transform 0.3s ease;
}

.more-projects-cta .btn-view-all:hover svg {
  transform: translateX(3px);
}

@media (max-width: 1024px) {
  .more-projects-grid {
    grid-template-columns: repeat(2, 1fr);
    gap: 1.5rem;
  }
}

@media (max-width: 600px) {
  .more-projects-section {
    padding: 3.5rem 0;
  }

  .more-projects-grid {
    grid-template-columns: 1fr;
    gap: 1.25rem;
  }

  .more-project-card .card-body {
    padding: 1rem 1.25rem;
  }

  .more-project-card .card-title {
    font-size: 1.05rem;
  }
}