/* css/globals.css — FourNine Theme (Pure CSS Fixed) */

/* ============================================================================
   YOUR BRAND COLORS & THEME
============================================================================ */
:root {
  --brand-cyan: #00c8e0;
  --brand-blue: #0058e0;
  --brand-dark: #232526;
  --surface: #e4ecee;
  --border-subtle: rgba(0, 200, 224, 0.1);
}

/* Tailwind custom colors */
@layer base {
  html {
    scroll-behavior: smooth;
    font-feature-settings:
      "rlig" 1,
      "calt" 1;
    font-size: 18px;
  }
}

/* ============================================================================
   SICK GRADIENTS & TEXTURES
============================================================================ */
@layer utilities {
  /* Mesh gradient hero */
  .bg-mesh-hero {
    position: relative;
    background: transparent;
    overflow: hidden;
  }

  .bg-mesh-hero::before {
    content: "";
    position: absolute;
    inset: 0;

    background: linear-gradient(
      to bottom,
      rgba(255, 255, 255, 0.15),
      rgba(255, 255, 255, 0.15)
    );

    z-index: 0;
  }

  .bg-mesh-hero video {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    transform: scaleY(-1);
    z-index: -1;
  }

  .bg-mesh-hero > .container {
    position: relative;
    z-index: 1;
  }

  .hero-title {
    text-shadow:
      0 10px 40px rgba(0, 0, 0, 0.25),
      0 0 20px rgba(0, 200, 224, 0.2);
  }

  /* CTA gradient */
  .bg-gradient-brand {
    background: linear-gradient(to right, var(--brand-cyan), var(--brand-blue));
  }

  /* Subtle section gradient */
  .bg-mesh-subtle {
    background-image:
      radial-gradient(circle at 10% 20%, var(--brand-cyan) 0%, transparent 70%),
      radial-gradient(circle at 90% 80%, var(--brand-blue) 0%, transparent 70%);
  }

  /* Bold Diamond Grid Background (Tilted Checks) */
  .bg-diamond-grid {
    background-image: 
      repeating-linear-gradient(45deg, transparent, transparent 49px, rgba(0, 200, 224, 0.4) 49px, rgba(0, 200, 224, 0.4) 51px),
      repeating-linear-gradient(-45deg, transparent, transparent 49px, rgba(0, 200, 224, 0.4) 49px, rgba(0, 200, 224, 0.4) 51px) !important;
    background-size: auto !important;
  }

  /* Glassy Cyan Gradient Background with High-Definition Micro-Dot Texture */
  .bg-glass-cyan {
    background: 
      /* High-Definition Micro-Dot Grid */
      radial-gradient(rgba(255, 255, 255, 0.18) 1.5px, transparent 0),
      linear-gradient(
        165deg,
        rgba(37, 150, 190, 0.9) 0%,
        rgba(37, 150, 190, 0.7) 40%,
        rgba(20, 80, 100, 0.95) 100%
      );
    background-size: 24px 24px, 100% 100%;
    backdrop-filter: blur(30px);
    -webkit-backdrop-filter: blur(30px);
    border: 1px solid rgba(255, 255, 255, 0.4);
  }
}

/* ============================================================================
   GRAIN TEXTURE OVERLAY (5% opacity)
============================================================================ */
body::before {
  content: "";
  position: fixed;
  top: 0;
  left: 0;
  width: 100vw;
  height: 100vh;
  opacity: 0.05;
  z-index: -1;
  pointer-events: none;
  background-image: url("data:image/svg+xml,%3Csvg viewBox='0 0 200 200' xmlns='http://www.w3.org/2000/svg'%3E%3Cfilter id='noise'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='.7' numOctaves='3' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='200' height='200' filter='url(%23noise)' opacity='.4'/%3E%3C/svg%3E");
  animation: grain-shift 20s linear infinite;
}

@keyframes grain-shift {
  0%,
  100% {
    transform: translate(0, 0);
  }
  10% {
    transform: translate(-5%, 5%);
  }
  20% {
    transform: translate(-10%, 15%);
  }
  30% {
    transform: translate(5%, -5%);
  }
  40% {
    transform: translate(-5%, 15%);
  }
  50% {
    transform: translate(-10%, 5%);
  }
  60% {
    transform: translate(5%, 0%);
  }
  70% {
    transform: translate(-5%, 10%);
  }
  80% {
    transform: translate(-10%, -5%);
  }
  90% {
    transform: translate(5%, 5%);
  }
}

/* ============================================================================
   TYPOGRAPHY (Premium Agency Feel)
============================================================================ */
@layer base {
  h1,
  h2,
  h3 {
    font-weight: 900;
    letter-spacing: -0.025em;
  }
  h1 {
    font-size: 3rem;
  }
  @media (min-width: 768px) {
    h1 {
      font-size: 4.5rem;
    }
  }
  @media (min-width: 1024px) {
    h1 {
      font-size: 6rem;
    }
  }

  h2 {
    font-size: 2.25rem;
  }
  @media (min-width: 768px) {
    h2 {
      font-size: 3rem;
    }
  }

  h3 {
    font-size: 1.875rem;
  }
  @media (min-width: 768px) {
    h3 {
      font-size: 2.25rem;
    }
  }

  p {
    line-height: 1.625;
    color: rgba(35, 37, 38, 0.8);
    max-width: 48rem;
    margin-left: auto;
    margin-right: auto;
  }
}

/* ============================================================================
   ANIMATIONS (Slow, Premium Pulse)
============================================================================ */
@keyframes pulse-premium {
  0%,
  100% {
    transform: scale(1);
    opacity: 1;
  }
  50% {
    transform: scale(1.02);
    opacity: 0.95;
  }
}

.animate-pulse-premium {
  animation: pulse-premium 8s cubic-bezier(0.4, 0, 0.6, 1) infinite;
}

@keyframes pulse-slower {
  0%,
  100% {
    transform: scale(1);
  }
  50% {
    transform: scale(1.01);
  }
}

.animate-pulse-slower {
  animation: pulse-slower 20s cubic-bezier(0.4, 0, 0.6, 1) infinite;
}

/* ============================================================================
   GLASSMORPHISM COMPONENTS
============================================================================ */
@layer components {
  .glass-card {
    background: rgba(255, 255, 255, 0.6);
    backdrop-filter: blur(20px);
    border: 1px solid var(--border-subtle);
    box-shadow: 0 25px 50px -12px rgba(0, 0, 0, 0.25);
    border-radius: 1.5rem;
    padding: 2rem;
  }
  @media (min-width: 768px) {
    .glass-card {
      padding: 3rem;
    }
  }
}

/* AGGRESSIVE NAVBAR OVERRIDE */
.glass-nav {
  position: fixed !important;
  top: 0 !important;
  left: 0 !important;
  width: 100% !important;
  height: 80px !important;
  z-index: 999999 !important;
  display: block !important;
  background: transparent !important;
  backdrop-filter: none !important;
  -webkit-backdrop-filter: none !important;
  transition: transform 0.4s cubic-bezier(0.4, 0, 0.2, 1), 
              background 0.4s ease, 
              backdrop-filter 0.4s ease, 
              border-color 0.4s ease !important;
}

.glass-nav.scrolled {
  background: rgba(255, 255, 255, 0.1) !important;
  backdrop-filter: blur(20px) !important;
  -webkit-backdrop-filter: blur(20px) !important;
  border-bottom: 1px solid rgba(255, 255, 255, 0.2) !important;
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.1) !important;
}

.glass-nav.nav-hidden {
  transform: translateY(-100%) !important;
}

/* Force links to be visible */
.glass-nav .nav-link {
  color: #232526 !important;
  opacity: 1 !important;
  visibility: visible !important;
}

/* ============================================================================
   RESPONSIVE UTILITIES
============================================================================ */
@layer utilities {
  .container {
    max-width: 80rem;
    margin-left: auto;
    margin-right: auto;
    padding-left: 1rem;
    padding-right: 1rem;
  }
  @media (min-width: 640px) {
    .container {
      padding-left: 1.5rem;
      padding-right: 1.5rem;
    }
  }
  @media (min-width: 1024px) {
    .container {
      padding-left: 2rem;
      padding-right: 2rem;
    }
  }

  .section-padding {
    padding-top: 6rem;
    padding-bottom: 6rem;
  }
  @media (min-width: 768px) {
    .section-padding {
      padding-top: 8rem;
      padding-bottom: 8rem;
    }
  }
}

.ticker {
  width: 100%;
  overflow: hidden;
}

.ticker-track {
  display: flex;
  gap: 60px;
  white-space: nowrap;
  animation: scroll 30s linear infinite;
  width: max-content;
}

.ticker-track span {
  font-size: 20px;
  font-weight: 600;
  color: #00c8e0;
}

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

.logo-slider {
  mask-image: linear-gradient(
    to right,
    transparent,
    black 10%,
    black 90%,
    transparent
  );
}

.outline-text {
  color: #111;
  text-shadow:
    -2px -2px 0 #f5f5f5,
    2px -2px 0 #f5f5f5,
    -2px 2px 0 #f5f5f5,
    2px 2px 0 #f5f5f5,
    -3px 0 0 #f5f5f5,
    3px 0 0 #f5f5f5,
    0 -3px 0 #f5f5f5,
    0 3px 0 #f5f5f5;
}

.editorial-stroke {
  color: #111;
  text-shadow:
    -1px -1px 0 #f5f5f5, /* Subtle stroke */
    2px 2px 10px rgba(0, 0, 0, 0.2), /* Soft sharp shadow */
    0 10px 40px rgba(0, 0, 0, 0.25), /* Wide ambient shadow */
    0 0 20px rgba(0, 200, 224, 0.2); /* Cyan brand glow */
}


/* css/components.css */

/* BUTTONS */
@layer components {
  .btn-primary {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.75rem 2rem;
    font-weight: 600;
    font-size: 0.875rem;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    border-radius: 9999px;
    box-shadow: 0 10px 15px rgba(0, 0, 0, 0.1);
    transition: all 0.3s ease;
    border: 1px solid transparent;
    position: relative;
    overflow: hidden;

    background: linear-gradient(135deg, var(--brand-cyan), #00d5f5);
    color: var(--brand-dark);
  }

  .btn-primary:hover {
    transform: translateY(-2px);
    box-shadow:
      0 12px 32px rgba(0, 200, 224, 0.4),
      0 0 0 1px rgba(255, 255, 255, 0.8) inset,
      0 0 20px rgba(0, 200, 224, 0.6);
  }

  .btn-primary:hover::before {
    content: "";
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg,
        transparent,
        rgba(255, 255, 255, 0.6),
        transparent);
    animation: shine-sweep 0.6s ease-out forwards;
    z-index: 1;
  }

  .btn-primary span {
    position: relative;
    z-index: 10;
    color: inherit;
  }

  /* Ensure footer button text stays electric cyan */
  footer .btn-primary span {
    color: var(--brand-cyan) !important;
  }

  /* Footer: make only the button “black” while keeping footer text black */
  footer .btn-primary {
    background: var(--brand-dark);
    color: var(--brand-cyan);
    border-color: rgba(255, 255, 255, 0.4);
  }

  footer .btn-primary:hover {
    box-shadow:
      0 12px 32px rgba(0, 0, 0, 0.4),
      0 0 0 1px rgba(255, 255, 255, 0.8) inset;
  }

  .btn-secondary {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.75rem 2rem;
    font-weight: 600;
    font-size: 0.875rem;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    border-radius: 9999px;
    border: 2px solid var(--brand-cyan);
    transition: all 0.3s ease;
    background: transparent;
    color: var(--brand-cyan);
  }

  .btn-secondary:hover {
    background: var(--brand-cyan);
    color: white;
    transform: translateY(-1px);
    box-shadow: 0 8px 24px rgba(0, 200, 224, 0.3);
  }
}

/* BUTTON SHINE */

@keyframes shine-sweep {
  0% {
    left: -100%;
  }

  100% {
    left: 100%;
  }
}

/* GLASS CARDS */

@layer components {
  .glass-card {
    position: relative;
    background: rgba(255, 255, 255, 0.7);
    backdrop-filter: blur(20px);
    border-radius: 1rem;
    padding: 1.5rem;
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.1);
    overflow: hidden;
    border: 1px solid var(--border-subtle);
  }

  .glass-card::before {
    content: "";
    position: absolute;
    inset: 0;
    padding: 1px;
    border-radius: inherit;
    background: linear-gradient(45deg,
        var(--brand-cyan),
        var(--brand-blue),
        var(--brand-cyan));

    mask:
      linear-gradient(#fff 0 0) content-box,
      linear-gradient(#fff 0 0);

    mask-composite: exclude;

    opacity: 0;
    transition: opacity 0.4s ease;
    z-index: -1;
  }

  .glass-card:hover::before {
    opacity: 0 !important;
  }

  .glass-card:hover {
    box-shadow: none;
    border-color: transparent !important;
  }

  .glass-card-dark {
    position: relative;
    background: rgba(10, 10, 10, 0.9);
    backdrop-filter: blur(25px) saturate(100%);
    border-radius: 2rem;
    padding: 0.4rem;
    box-shadow:
      0 30px 60px rgba(0, 0, 0, 0.7),
      0 0 0 1px rgba(255, 255, 255, 0.18) inset;
    overflow: hidden;
    aspect-ratio: 16 / 9;
    transition: all 0.5s cubic-bezier(0.4, 0, 0.2, 1);
  }

  .glass-card-dark::before {
    content: "";
    position: absolute;
    inset: 0;
    background: linear-gradient(135deg,
        rgba(255, 255, 255, 0.03),
        transparent 40%,
        transparent 60%,
        rgba(255, 255, 255, 0.03));
    pointer-events: none;
    z-index: 1;
  }

  .glass-card-dark .relative.h-\[600px\],
  .glass-card-dark .relative.h-full {
    height: 100% !important;
  }

  .hero-nav-btn {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    background: rgba(0, 0, 0, 0.6);
    backdrop-filter: blur(20px);
    width: 60px;
    height: 60px;
    border-radius: 50%;
    font-size: 32px !important;
    font-weight: 600 !important;
    color: #ffffff !important;
    display: flex;
    align-items: center;
    justify-content: center;
    line-height: 0;
    padding-bottom: 6px !important;
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    border: 1px solid rgba(255, 255, 255, 0.1);
    box-shadow: 
      0 10px 30px rgba(0, 0, 0, 0.8),
      inset 0 0 10px rgba(255, 255, 255, 0.05);
    opacity: 0.9;
    z-index: 20;
    cursor: pointer;
  }

  .hero-nav-btn:hover {
    background: rgba(0, 0, 0, 0.9);
    color: #ffffff !important;
    transform: translateY(-50%) scale(1.1);
    box-shadow: 
      0 15px 45px rgba(0, 0, 0, 0.9),
      0 0 15px rgba(0, 200, 224, 0.15);
    border-color: rgba(0, 200, 224, 0.4);
    opacity: 1;
  }

  #work-hero-prev {
    left: 80px !important;
    color: #ffffff !important;
    padding-right: 4px; /* Counteract horizontal asymmetry */
  }

  #work-hero-next {
    right: 80px !important;
    color: #ffffff !important;
    padding-left: 4px; /* Counteract horizontal asymmetry */
  }

  .hero-nav-btn.prev {
    left: 24px;
    padding-right: 4px;
  }

  .hero-nav-btn.next {
    right: 24px;
    padding-left: 4px;
  }

  .hero-visual {
    height: 16rem;
    display: flex;
    align-items: flex-end;
    padding: 1.5rem;
    position: relative;
    overflow: hidden;
  }

  /* Make hero glass card fully transparent so the background video shows through */
  .hero-visual.glass-card {
    background: transparent;
    box-shadow: none;
    border: none;
  }

  .hero-visual::before {
    content: "";
    position: absolute;
    inset: 0;
    opacity: 0.3;

    background:
      radial-gradient(circle at 20% 20%, var(--brand-cyan), transparent 60%),
      radial-gradient(circle at 80% 80%, var(--brand-blue), transparent 60%);
  }

  /* TV-style slideshow frame */
  .tv-frame {
    background: rgba(0, 0, 0, 0.75);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 2rem;
    box-shadow:
      0 25px 60px rgba(0, 0, 0, 0.35),
      0 0 0 1px rgba(255, 255, 255, 0.06),
      inset 0 0 0 2px rgba(255, 255, 255, 0.1);
    backdrop-filter: blur(5px);
    position: relative;
    overflow: hidden;
  }

  #image-slideshow.tv-frame::before {
    content: "";
    position: absolute;
    inset: 0;
    pointer-events: none;
    background:
      radial-gradient(circle at 30% 20%,
        rgba(255, 255, 255, 0.18),
        transparent 55%),
      radial-gradient(circle at 70% 30%,
        rgba(255, 255, 255, 0.12),
        transparent 60%),
      linear-gradient(0deg,
        rgba(255, 255, 255, 0.05),
        rgba(255, 255, 255, 0) 50%);
    mix-blend-mode: screen;
  }

  /* TV stand */
  .tv-frame::after {
    content: "";
    position: absolute;
    bottom: -1.5rem;
    left: 50%;
    transform: translateX(-50%);
    width: 7rem;
    height: 1.2rem;
    border-radius: 999px;
    background: rgba(0, 0, 0, 0.55);
    box-shadow: 0 12px 24px rgba(0, 0, 0, 0.35);
  }

  /* Tablet Camera Notch */
  .tablet-camera {
    position: absolute;
    left: 12px;
    top: 50%;
    transform: translateY(-50%);
    width: 10px;
    height: 80px;
    background: #0a0a0a;
    border-radius: 5px;
    z-index: 20;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: space-evenly;
    padding: 8px 0;
    box-shadow: 
      inset 0 0 3px rgba(255, 255, 255, 0.05),
      0 0 10px rgba(0, 0, 0, 0.8);
    border: 1px solid rgba(255, 255, 255, 0.03);
  }

  .tablet-camera::before,
  .tablet-camera::after {
    content: "";
    width: 4px;
    height: 4px;
    border-radius: 50%;
    background: #151515;
    box-shadow: inset 0 0 2px #000;
  }

  .tablet-camera::before {
    background: radial-gradient(circle at center, #222, #000);
    opacity: 0.8;
  }

  /* Make sure the image stays inside rounded corners */
  .tv-frame img {
    border-radius: 1.5rem !important;
  }

  .glass-card img {
    border-radius: inherit !important;
  }

  #work-hero-slideshow {
    position: relative;
    box-shadow: 0 0 40px rgba(0, 0, 0, 0.5);
  }

  .ambient-bg {
    position: absolute;
    inset: -15%;
    width: 130%;
    height: 130%;
    background-size: cover;
    background-position: center;
    filter: blur(80px) brightness(0.8) saturate(2.5);
    opacity: 0.85;
    z-index: 0;
    pointer-events: none;
    transition: background-image 0.8s ease-in-out, opacity 0.8s ease-in-out;
    border-radius: inherit;
  }

  /* Ensure the foreground image is above the ambient glow */
  #work-hero-slideshow-img,
  .work-image,
  .carousel-track img {
    position: relative;
    z-index: 2;
  }
  /* PREMIUM MEDIA FRAME (Bezel-less & Deep Shadow) */
  .media-frame-premium {
    position: relative;
    border-radius: 2.5rem;
    overflow: visible;
    transition: all 0.7s cubic-bezier(0.15, 1, 0.3, 1);
    z-index: 1;
    display: flex;
    justify-content: center;
    align-items: center;
    margin-left: auto;
    margin-right: auto;
    width: 100%;
    max-width: 720px; /* Slightly wider to better accommodate 16:9 */
    aspect-ratio: 16 / 9;
    height: auto !important;
  }

  /* Inner container to keep image clipping */
  .media-frame-premium .media-inner {
    position: relative;
    width: 100%;
    height: 100%;
    border-radius: 2.5rem;
    overflow: hidden;
    border: 1px solid rgba(255, 255, 255, 0.1);
    background: #000;
    box-shadow: 
      0 40px 80px -15px rgba(0, 0, 0, 0.4),
      0 20px 40px -20px rgba(0, 0, 0, 0.3);
    z-index: 2;
    display: flex;
    justify-content: center;
    align-items: center;
  }

  /* Ambient Glow / Bloom */
  .media-frame-premium::before {
    content: "";
    position: absolute;
    inset: -30px;
    background: radial-gradient(circle at center, var(--brand-cyan), transparent 70%);
    opacity: 0;
    filter: blur(60px);
    transition: opacity 0.8s ease, transform 0.8s ease;
    z-index: 0;
    pointer-events: none;
  }

  .media-frame-premium:hover {
    transform: translateY(-15px) scale(1.02);
  }

  .media-frame-premium:hover::before {
    opacity: 0.3;
    transform: scale(1.2);
  }

  .media-frame-premium .media-inner::after {
    content: "";
    position: absolute;
    inset: 0;
    pointer-events: none;
    background: linear-gradient(
      180deg,
      rgba(255, 255, 255, 0.1) 0%,
      transparent 20%,
      transparent 80%,
      rgba(0, 0, 0, 0.3) 100%
    );
    z-index: 3;
  }

  .media-frame-premium img {
    position: absolute;
    inset: 0;
    width: 100% !important;
    height: 100% !important;
    object-fit: cover !important;
    object-position: center !important;
    transition: transform 1.2s cubic-bezier(0.15, 1, 0.3, 1);
    z-index: 1;
    display: block;
  }

  .media-frame-premium:hover img {
    transform: scale(1.1);
  }
}

/* NAVBAR */

@layer components {
  /* [RECURRING SECTION DELETED - MOVED TO TOP OF FILE] */

  .nav-link {
    position: relative;
    font-weight: 600;
    font-size: 0.875rem;
    text-transform: uppercase;
    letter-spacing: 0.1em;
    color: var(--brand-dark) !important;
    padding: 0.5rem 0.75rem;
    transition: all 0.3s ease;
  }

  .nav-link:hover {
    color: white;
  }

  .nav-link::after {
    content: "";
    position: absolute;
    bottom: 0;
    left: 0;
    width: 0;
    height: 2px;

    background: linear-gradient(90deg, var(--brand-cyan), var(--brand-blue));

    transition: width 0.3s ease;
  }

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

/* SECTION COMPONENTS */

@layer components {
  .section-header {
    display: flex;
    justify-content: space-between;
    align-items: baseline;

    margin-bottom: 3rem;
    padding-bottom: 2rem;

    border-bottom: 1px solid var(--border-subtle);
  }

  .section-header.section-header--center {
    flex-direction: column;
    align-items: center;
    justify-content: center;
    text-align: center;
  }

  .section-header.section-header--center .section-title {
    font-size: 2rem !important;
    font-weight: 900;
  }

  .section-header.section-header--center .section-subtitle {
    font-size: 1rem;
  }

  .section-header.section-header--center .section-divider {
    width: 100%;
    height: 2px;
    margin-top: 1.5rem;
    background: linear-gradient(to right,
        rgba(0, 200, 224, 0),
        rgba(0, 200, 224, 0.35),
        rgba(0, 200, 224, 0));
  }

  .section-title {
    font-size: 1.125rem;
    text-transform: uppercase;
    letter-spacing: 0.22em;
    font-weight: 900;
    color: var(--brand-dark);
  }

  .section-subtitle {
    font-size: 0.875rem;
    color: rgba(35, 37, 38, 0.6);
    max-width: 24rem;
    line-height: 1.6;
  }

  .grid-cards {
    display: grid;
    grid-template-columns: 1fr;
    gap: 2rem;
  }

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

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

  .capability-card {
    transition: all 0.5s ease;
  }

  .capability-card:hover {
    box-shadow: 0 20px 60px rgba(0, 200, 224, 0.15);
  }

  /* PREMIUM SERVICE CARDS */
  .service-card-premium {
    position: relative;
    background: #0f171acc;
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    border-radius: 2rem;
    padding: 3rem 2rem;
    height: 100%;
    display: flex;
    flex-direction: column;
    align-items: center;
    border: 1px solid rgba(255, 255, 255, 0.05);
    overflow: hidden;
    transition: all 0.5s cubic-bezier(0.23, 1, 0.32, 1);
    cursor: default;
    z-index: 1;
  }

  .service-card-premium::before {
    content: "";
    position: absolute;
    top: -50%;
    left: -50%;
    width: 200%;
    height: 200%;
    background: conic-gradient(from 180deg at 50% 50%,
        transparent 0deg,
        transparent 150deg,
        var(--brand-cyan) 180deg,
        transparent 210deg,
        transparent 360deg);
    animation: rotate-border 6s linear infinite;
    opacity: 0;
    transition: opacity 0.5s ease;
    z-index: -1;
  }

  .service-card-premium::after {
    content: "";
    position: absolute;
    inset: 2px;
    background: #0f171a;
    border-radius: calc(2rem - 2px);
    z-index: -1;
  }

  .service-card-premium:hover {
    transform: translateY(-15px) scale(1.02);
    box-shadow:
      0 40px 80px rgba(0, 0, 0, 0.6),
      0 0 40px rgba(0, 200, 224, 0.2);
  }

  .service-card-premium:hover::before {
    opacity: 1;
  }

  .service-card-premium h3 {
    background: linear-gradient(135deg, #fff, rgba(255, 255, 255, 0.7));
    -webkit-background-clip: text;
    background-clip: text;
    -webkit-text-fill-color: transparent;
    transition: all 0.5s ease;
  }

  .service-card-premium:hover h3 {
    -webkit-text-fill-color: var(--brand-cyan);
    text-shadow: 0 0 20px rgba(0, 200, 224, 0.3);
  }

  .service-card-premium p {
    color: rgba(255, 255, 255, 0.6);
    transition: color 0.5s ease;
    margin: 0;
  }

  .service-card-premium:hover p {
    color: rgba(255, 255, 255, 0.9);
  }

  .service-icon-box {
    width: 80px;
    height: 80px;
    background: rgba(0, 200, 224, 0.1);
    border-radius: 1.5rem;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 2rem;
    color: var(--brand-cyan);
    transition: all 0.5s ease;
    position: relative;
    border: 1px solid rgba(0, 200, 224, 0.2);
  }

  .service-card-premium:hover .service-icon-box {
    background: var(--brand-cyan);
    color: #0f171a;
    transform: rotate(10deg) scale(1.1);
    box-shadow: 0 0 30px rgba(0, 200, 224, 0.4);
  }

  @keyframes rotate-border {
    from {
      transform: rotate(0deg);
    }

    to {
      transform: rotate(360deg);
    }
  }
}

/* CLIENT PILLS */

@layer components {
  .client-pill {
    padding: 0.75rem 1.5rem;
    border-radius: 9999px;

    border: 2px solid var(--border-subtle);

    background: rgba(255, 255, 255, 0.5);
    backdrop-filter: blur(6px);

    font-size: 0.875rem;
    font-weight: 500;

    color: rgba(35, 37, 38, 0.8);

    display: flex;
    align-items: center;
    gap: 0.5rem;

    transition: all 0.3s ease;
  }

  .client-pill:hover {
    border-color: rgba(0, 200, 224, 0.5);
    color: var(--brand-cyan);
  }
}

/* CTA SECTION */

@layer components {
  .cta-section {
    padding: 8rem 0;
    position: relative;
  }

  .cta-section::before {
    content: "";
    position: absolute;
    inset: 0;
    opacity: 0.5;
  }

  .footer-cta {
    position: relative;
    z-index: 10;

    max-width: 64rem;
    margin: auto;

    text-align: center;

    padding: 3rem;
  }

  .footer-cta::before {
    content: "";
    position: absolute;

    top: -20%;
    right: -10%;

    width: 300px;
    height: 300px;

    background: radial-gradient(circle, var(--brand-cyan) 0%, transparent 70%);

    filter: blur(80px);
    opacity: 0.3;

    animation: pulse-premium 8s ease-in-out infinite;

    z-index: -1;
  }

  .footer-cta::after {
    content: "";
    position: absolute;

    bottom: -15%;
    left: -10%;

    width: 250px;
    height: 250px;

    background: radial-gradient(circle, var(--brand-blue) 0%, transparent 70%);

    filter: blur(60px);
    opacity: 0.2;

    animation: pulse-slower 12s ease-in-out infinite reverse;

    z-index: -1;
  }
}

/* UTILITIES */

@layer utilities {
  .container {
    max-width: 80rem;
    margin: auto;
    padding-left: 1rem;
    padding-right: 1rem;
  }

  .section-padding {
    padding-top: 6rem;
    padding-bottom: 6rem;
  }

  .text-glow {
    font-size: 16px !important;
    font-weight: 430 !important;
    text-shadow:
      0 2px 4px rgba(0, 200, 224, 0.2),
      0 0 20px rgba(0, 200, 224, 0.1);
  }

  footer .text-glow {
    font-size: 1.75rem !important;
    line-height: 1.2;
  }
}

/* MOBILE */

@media (max-width: 768px) {
  .btn-primary {
    padding: 0.625rem 1.5rem;
    font-size: 0.75rem;
  }

  .glass-card {
    padding: 1.5rem;
  }
}

/* ANIMATIONS */

@keyframes pulse-premium {

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

  50% {
    transform: scale(1.02);
    opacity: 0.95;
  }
}

@keyframes pulse-slower {

  0%,
  100% {
    transform: scale(1);
  }

  50% {
    transform: scale(1.01);
  }
}

.logo-slider {
  overflow: hidden;
  width: 100%;
}

.logo-track {
  display: flex;
  align-items: center;
  gap: 120px;
  width: max-content;
  animation: scrollLogos 55s linear infinite;
}

.logo-track img {
  height: 65px;
  opacity: 0.8;
  transition: all 0.5s ease;
}

@media (max-width: 768px) {
  .logo-track {
    gap: 60px;
  }

  .logo-track img {
    height: 40px;
  }
}

.logo-track img:hover {
  opacity: 1;
  transform: scale(1.1);
}

@keyframes scrollLogos {
  0% {
    transform: translateX(0);
  }

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

/* OUR WORK FLIP CARD - Replaced with Cyan Theme Card */

.card {
  overflow: visible;
  width: 100%;
  height: 420px;
  max-width: 540px;
  position: relative;
}

.content {
  width: 100%;
  height: 100%;
  transform-style: preserve-3d;
  transition: transform 300ms;
  box-shadow: 0px 0px 10px 1px #000000ee;
  border-radius: 14px;
}

.front,
.back {
  background-color: #111;
  position: absolute;
  width: 100%;
  height: 100%;
  backface-visibility: hidden;
  -webkit-backface-visibility: hidden;
  border-radius: 14px;
  overflow: hidden;
}

.back {
  width: 100%;
  height: 100%;
  justify-content: center;
  display: flex;
  align-items: center;
  overflow: hidden;
}

.back::before {
  position: absolute;
  content: " ";
  display: block;
  width: 160px;
  height: 160%;
  background: linear-gradient(90deg,
      transparent,
      #00c8e0,
      #00c8e0,
      #00c8e0,
      #00c8e0,
      transparent);
  animation: rotation_481 5000ms infinite linear;
}

.back-content {
  position: absolute;
  width: 99%;
  height: 99%;
  background-color: rgba(17, 17, 17, 0.9);
  border-radius: 14px;
  color: white;
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  gap: 30px;
  font-size: 1.2rem;
  text-align: center;
}

.back-content strong {
  font-size: 1.25rem;
  line-height: 1.2;
}

.card:hover .content {
  transform: rotateY(180deg);
}

@keyframes rotation_481 {
  0% {
    transform: rotateZ(0deg);
  }

  100% {
    transform: rotateZ(360deg);
  }
}

.front {
  transform: rotateY(180deg);
  color: white;
}

.front .front-content {
  position: absolute;
  width: 100%;
  height: 100%;
  padding: 32px;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
}

.front-content .badge {
  background-color: #00000055;
  padding: 2px 10px;
  border-radius: 10px;
  backdrop-filter: blur(2px);
  width: fit-content;
  font-size: 0.75rem;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: white;
}

.description {
  box-shadow: 0px 0px 10px 5px #00000088;
  width: 100%;
  padding: 10px;
  background-color: rgba(0, 0, 0, 0.75);
  backdrop-filter: blur(2px);
  border-radius: 5px;
}

.title {
  font-size: 1.8rem;
  max-width: 100%;
  display: flex;
  justify-content: space-between;
  font-weight: 700;
  margin-bottom: 6px;
}

.glow-title {
  color: white;
  text-shadow: 0 0 12px rgba(0, 200, 224, 0.75);
}

.title p {
  width: 100%;
}

.card-footer {
  color: white;
  margin-top: 5px;
  font-size: 0.85rem;
}

.front .img {
  position: absolute;
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center;
  background: linear-gradient(135deg,
      rgba(255, 255, 255, 0.12),
      rgba(255, 255, 255, 0.08));
  backdrop-filter: blur(2px);
}

.circle {
  width: 90px;
  height: 90px;
  border-radius: 50%;
  background-color: #00c8e0;
  position: relative;
  filter: blur(8px);
  animation: floating 2600ms infinite linear;
}

#bottom {
  background-color: #0058e0;
  left: 50px;
  top: 0px;
  width: 150px;
  height: 150px;
  animation-delay: -800ms;
}

#right {
  background-color: #232526;
  left: 160px;
  top: -80px;
  width: 30px;
  height: 30px;
  animation-delay: -1800ms;
}

@keyframes floating {
  0% {
    transform: translateY(0px);
  }

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

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

.contact-bg {
  background:
    radial-gradient(circle at 20% 20%,
      rgba(0, 200, 224, 0.35),
      transparent 40%),
    radial-gradient(circle at 80% 80%, rgba(0, 88, 224, 0.35), transparent 40%),
    radial-gradient(circle at 40% 60%, rgba(0, 200, 224, 0.2), transparent 50%),
    linear-gradient(to bottom right, #ffffff, #f5f9fa);

  position: relative;
  overflow: hidden;
}

/* floating glow orbs */

.orb {
  position: absolute;
  border-radius: 50%;
  filter: blur(80px);
  opacity: 0.5;
  animation: float 12s infinite ease-in-out;
}

.orb1 {
  width: 350px;
  height: 350px;
  background: #00c8e0;
  top: -120px;
  left: -100px;
}

.orb2 {
  width: 300px;
  height: 300px;
  background: #0058e0;
  bottom: -120px;
  right: -120px;
  animation-delay: 3s;
}

.orb3 {
  width: 250px;
  height: 250px;
  background: #00c8e0;
  top: 40%;
  right: 10%;
  animation-delay: 6s;
}

@keyframes float {

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

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

/* input glow */

.form-input {
  background: white;
  border: 1px solid rgba(0, 0, 0, 0.1);
  padding: 16px;
  border-radius: 10px;
  transition: all 0.3s ease;
}

.form-input:focus {
  border-color: #00c8e0;
  box-shadow: 0 0 0 2px rgba(0, 200, 224, 0.25);
}

textarea.form-input {
  resize: none;
}

.floating-shape {
  position: absolute;
  width: 120px;
  height: 120px;
  border-radius: 50%;
  background: linear-gradient(135deg, #00c8e0, #0058e0);
  filter: blur(60px);
  opacity: 0.3;
  animation: floaty 8s ease-in-out infinite;
}

@keyframes floaty {
  0% {
    transform: translateY(0px);
  }

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

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

/* WORK CARDS */

.work-card,
.showcase-card {
  position: relative;
  border-radius: 2.2rem; /* Clean iPhone-style curvature */
  background: #000;
  border: 6px solid #1a1a1a; /* Ultra-thin, realistic bezel */
  box-shadow:
    0 40px 80px -20px rgba(0, 0, 0, 0.6),
    inset 0 0 10px rgba(255, 255, 255, 0.05);
  display: flex;
  flex-direction: column;
  transition: all 0.7s cubic-bezier(0.15, 1, 0.3, 1);
  z-index: 1;
  overflow: hidden;
  height: 500px;
}

/* Dynamic Island Style Notch - Floating & Slim */
.work-card::before {
  content: "";
  position: absolute;
  top: 14px; /* Floating from the top */
  left: 50%;
  transform: translateX(-50%);
  width: 90px;
  height: 22px;
  background: #000;
  border-radius: 20px; /* Capsule shape */
  z-index: 30;
  border: 1px solid rgba(255, 255, 255, 0.05);
}

/* Internal Camera Dot for Dynamic Island */
.work-card::after {
  content: "";
  position: absolute;
  top: 22px;
  left: calc(50% - 25px);
  width: 6px;
  height: 6px;
  background: #0f0f0f;
  border-radius: 50%;
  box-shadow: inset 0 0 3px rgba(0, 200, 224, 0.5);
  z-index: 31;
  opacity: 0.6;
}

.work-card:hover,
.showcase-card:hover {
  transform: translateY(-20px) scale(1.03);
  border-color: #222;
  box-shadow:
    0 60px 120px -20px rgba(0, 0, 0, 0.8),
    0 0 40px rgba(0, 200, 224, 0.25);
}

.card-slideshow-container {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  z-index: 1;
  overflow: hidden;
  border-radius: 0; /* Remove rounding, handled by parent overflow:hidden */
}

/* Glass Shine Sweep */
.card-slideshow-container::after {
  content: "";
  position: absolute;
  top: 0;
  left: -150%;
  width: 100%;
  height: 100%;
  background: linear-gradient(90deg,
      transparent,
      rgba(255, 255, 255, 0.25),
      transparent);
  transform: skewX(-25deg);
  transition: 1s cubic-bezier(0.15, 1, 0.3, 1);
  z-index: 5;
  pointer-events: none;
}

.work-card:hover .card-slideshow-container::after,
.showcase-card:hover .card-slideshow-container::after {
  left: 150%;
}

.card-ambient {
  position: absolute;
  inset: -15%;
  width: 130%;
  height: 130%;
  background-size: cover;
  background-position: center;
  filter: blur(60px) brightness(0.6) saturate(2.5);
  opacity: 0.7;
  z-index: 0;
  pointer-events: none;
  transition: background-image 1.2s ease-in-out;
}

.work-image {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  object-fit: cover !important;
  opacity: 0;
  transition: opacity 1s ease-in-out, transform 1.5s cubic-bezier(0.15, 1, 0.3, 1);
  transform: scale(1.1);
}

.work-image.active {
  opacity: 1;
  transform: scale(1);
}

.work-info {
  position: absolute;
  inset: 0;
  z-index: 10;
  padding: 3rem 2.2rem;
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
  background: linear-gradient(
    to top, 
    rgba(0, 0, 0, 1) 0%, 
    rgba(0, 0, 0, 0.5) 35%, 
    transparent 70%
  );
  transition: all 0.6s ease;
  pointer-events: none;
}

.work-card:hover .work-info {
  padding-bottom: 4rem;
}

.work-info h3 {
  font-weight: 900;
  font-size: 1.8rem;
  margin-bottom: 4px;
  color: white !important;
  text-shadow: 0 4px 12px rgba(0, 0, 0, 0.5);
}

.work-info p {
  font-size: 1rem;
  font-weight: 500;
  color: rgba(255, 255, 255, 0.85) !important;
  text-shadow: 0 2px 8px rgba(0, 0, 0, 0.5);
  margin-bottom: 0;
}

/* RENDERING UTILITIES */

.card-glass-content {
  background: transparent;
  backdrop-filter: none;
  -webkit-backdrop-filter: none;
  padding: 0;
  border-radius: 0;
  border: none;
  box-shadow: none;
  text-align: left;
}

/* ============================================
   CS-CARD — Perfect Case Study Card
   A (glass bubble) + B (dark→bright) + E (zoom out)
   ============================================ */

.cs-card {
  position: relative;
  height: 500px;
  border-radius: 2.2rem;
  overflow: hidden;
  background: #fff;
  border: 3px solid rgba(255, 255, 255, 0.35);
  box-shadow:
    0 40px 80px -20px rgba(0, 0, 0, 0.4),
    0 0 25px rgba(255, 255, 255, 0.04);
  cursor: pointer;
  transition: border-color 0.6s ease, box-shadow 0.6s ease;
  z-index: 1;
}

/* Images inside the slideshow container: start zoomed-in + dim */
.cs-card .card-slideshow-container {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  overflow: hidden;
}

.cs-card .work-image {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  opacity: 0;
  transform: scale(1.35);
  filter: brightness(0.55);
  transition:
    opacity 1s ease-in-out,
    transform 1.2s cubic-bezier(0.15, 1, 0.3, 1),
    filter 0.9s ease;
}

.cs-card .work-image.active {
  opacity: 1;
}

/* Frosted glass bubble — neutral white, bottom of card */
.cs-card .cs-bubble {
  position: absolute;
  bottom: 28px;
  left: 20px;
  right: 20px;
  background: rgba(255, 255, 255, 0.1);
  backdrop-filter: blur(28px);
  -webkit-backdrop-filter: blur(28px);
  border: 1px solid rgba(255, 255, 255, 0.2);
  border-radius: 22px;
  padding: 22px 26px;
  color: white;
  z-index: 10;
  transform: translateY(8px);
  opacity: 0.85;
  transition:
    transform 0.6s cubic-bezier(0.15, 1, 0.3, 1),
    opacity 0.6s ease,
    background 0.6s ease;
  pointer-events: none;
}

.cs-card .cs-bubble h3 {
  font-weight: 900;
  font-size: 1.4rem;
  color: white;
  margin-bottom: 4px;
  text-shadow: 0 2px 8px rgba(0, 0, 0, 0.4);
}

.cs-card .cs-bubble p {
  font-size: 0.65rem;
  font-weight: 700;
  color: rgba(255, 255, 255, 0.5);
  text-transform: uppercase;
  letter-spacing: 4px;
  margin: 0;
}

/* HOVER — border brightens, image zooms out to full brightness, bubble lifts */
.cs-card:hover {
  border-color: rgba(255, 255, 255, 0.65);
  box-shadow:
    0 60px 120px -20px rgba(0, 0, 0, 0.6),
    0 0 0 2px rgba(255, 255, 255, 0.15),
    0 0 60px rgba(255, 255, 255, 0.08);
}

.cs-card:hover .work-image.active {
  transform: scale(1);
  filter: brightness(1);
}

.cs-card:hover .cs-bubble {
  transform: translateY(0);
  opacity: 1;
  background: rgba(255, 255, 255, 0.18);
}

/* Glass sweep shine on hover */
.cs-card .card-slideshow-container::after {
  content: "";
  position: absolute;
  top: 0;
  left: -150%;
  width: 100%;
  height: 100%;
  background: linear-gradient(
    90deg,
    transparent,
    rgba(255, 255, 255, 0.12),
    transparent
  );
  transform: skewX(-25deg);
  transition: 1s cubic-bezier(0.15, 1, 0.3, 1);
  z-index: 5;
  pointer-events: none;
}

.cs-card:hover .card-slideshow-container::after {
  left: 150%;
}



.project-modal {
  position: fixed;
  inset: 0;
  background: #111;

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

  z-index: 100;
}

.project-container {
  width: 90%;
  height: 85%;

  display: grid;
  grid-template-columns: 2fr 1fr;

  background: #111;
}

.project-gallery {
  position: relative;

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

.project-gallery img {
  max-height: 90%;
  max-width: 90%;
  object-fit: contain;
}

.gallery-btn {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);

  font-size: 40px;
  background: none;
  border: none;
  color: white;
  cursor: pointer;
}

.gallery-btn.prev {
  left: 20px;
}

.gallery-btn.next {
  right: 20px;
}

.project-info {
  padding: 50px;
  color: white;
  overflow: auto;
}


.close-modal {
  margin-top: 40px;

  padding: 12px 24px;

  background: #00c8e0;
  border: none;

  cursor: pointer;
}

/* ===== CINEMATIC SLIDESHOW ===== */

#image-slideshow.tv-frame {
  width: 100%;
  max-width: 1200px;
  aspect-ratio: 16 / 9;

  position: relative;

  border-radius: 28px;

  background: #000;

  overflow: hidden;

  box-shadow:
    0 60px 120px rgba(0, 0, 0, 0.45),
    0 0 0 1px rgba(255, 255, 255, 0.06),
    inset 0 0 0 2px rgba(255, 255, 255, 0.08);
}

/* IMAGE */

.slideshow-img {
  width: 100%;
  height: 100%;

  object-fit: cover;

  opacity: 0;

  transform: scale(1.08);

  transition:
    opacity 1.2s ease,
    transform 6s ease;
}

.slideshow-img.active {
  opacity: 1;
  transform: scale(1);
}

/* SCREEN REFLECTION */

.screen-glow {
  position: absolute;

  inset: 0;

  pointer-events: none;

  background:
    radial-gradient(circle at 30% 20%,
      rgba(255, 255, 255, 0.25),
      transparent 40%),
    radial-gradient(circle at 80% 30%,
      rgba(255, 255, 255, 0.15),
      transparent 40%);

  mix-blend-mode: screen;
}

/* AMBIENT GLOW */

#image-slideshow::after {
  content: "";

  position: absolute;

  inset: -60px;

  background: radial-gradient(circle at center,
      rgba(0, 200, 224, 0.25),
      transparent 60%);

  filter: blur(60px);

  z-index: -1;
}


/* PROJECT MODAL REVAMP */
.project-modal {
  position: fixed;
  inset: 0;
  z-index: 100;
  background: rgba(35, 37, 38, 0.95);
  backdrop-filter: blur(10px);
  display: none;
  /* Controlled by JS */
  align-items: center;
  justify-content: center;
  padding: 2rem;
  opacity: 0;
  transition: opacity 0.4s ease;
}

.project-modal.active {
  display: flex;
  opacity: 1;
}

.project-container {
  display: flex;
  width: 98%;
  max-width: 1840px;
  /* Increased from 1600px (approx 15%) */
  height: 95vh;
  background: rgba(245, 249, 250, 0.85);
  backdrop-filter: blur(20px);
  border: 1px solid rgba(0, 0, 0, 0.05);
  border-radius: 24px;
  overflow: hidden;
  box-shadow: 0 25px 50px rgba(0, 0, 0, 0.5);
  transform: scale(0.9);
  transition: transform 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275);
}

.project-modal.active .project-container {
  transform: scale(1);
}

/* LEFT GALLERY */
.project-gallery {
  flex: 1.5;
  /* Increased from 1.1 to show larger images */
  position: relative;
  background: transparent;
  overflow: hidden;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 0.5rem;
  /* Reduced padding */
}

.project-gallery::after {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: radial-gradient(circle, transparent 40%, rgba(0, 50, 60, 0.1) 100%);
  pointer-events: none;
  z-index: 2;
}

.carousel-track {
  display: flex;
  width: 100%;
  height: 100%;
  transition: transform 0.5s cubic-bezier(0.645, 0.045, 0.355, 1);
  overflow: visible;
}

.modal-slide {
  min-width: 100%;
  height: 100%;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 0 0.5rem;
  /* Reduced padding to maximize image area */
  box-sizing: border-box;
}

.carousel-track img {
  max-width: 100%;
  max-height: 100%;
  object-fit: contain;
  background: transparent;
  display: block;
  border-radius: 40px;
  /* Premium multi-layered shadow */
  box-shadow:
    0 10px 20px rgba(0, 0, 0, 0.1),
    0 20px 50px rgba(0, 163, 184, 0.15),
    0 40px 80px rgba(0, 0, 0, 0.2);
  transition: transform 0.5s cubic-bezier(0.175, 0.885, 0.32, 1.275);
}

.gallery-btn {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  background: rgba(0, 200, 224, 0.15);
  backdrop-filter: blur(12px);
  border: 1px solid rgba(255, 255, 255, 0.2);
  color: white;
  width: 90px;
  height: 90px;
  border-radius: 50%;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 70px;
  line-height: 1;
  transition: all 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275);
  z-index: 20;
  padding: 0;
  margin: 0;
  opacity: 0.95;
  box-shadow: 
    0 15px 35px rgba(0, 0, 0, 0.3),
    0 0 20px rgba(0, 200, 224, 0.4);
}

.gallery-btn:hover {
  opacity: 1;
  transform: translateY(-50%) scale(1.1);
  background: var(--brand-cyan);
  color: var(--brand-dark);
  box-shadow: 
    0 20px 45px rgba(0, 200, 224, 0.5),
    0 0 40px rgba(0, 200, 224, 0.8);
}

.gallery-btn.prev {
  left: 1.5rem;
}

.gallery-btn.next {
  right: 1.5rem;
}

/* RIGHT INFO */
.project-info {
  flex: 1;
  /* Restored to 1 to give text more space in the wider container */
  padding: 2rem;
  /* Slightly more compact padding */
  overflow-y: auto;
  display: flex;
  flex-direction: column;
  background: transparent;
  /* Hide scrollbar but keep functionality */
  scrollbar-width: none;
  /* Firefox */
  -ms-overflow-style: none;
  /* IE/Edge */
}

.project-info::-webkit-scrollbar {
  display: none;
  /* Chrome, Safari, Opera */
}

.project-info h2 {
  font-size: 3rem;
  margin-bottom: 0.5rem;
  color: var(--brand-dark);
  font-weight: 900;
  line-height: 1.1;
}

.project-meta {
  color: var(--brand-dark);
  font-weight: 700;
  margin-bottom: 0.75rem;
  text-transform: uppercase;
  letter-spacing: 2px;
  font-size: 0.9rem;
  opacity: 0.8;
}

.project-description {
  font-size: 1.15rem;
  line-height: 1.8;
  color: rgba(35, 37, 38, 0.9);
  margin-bottom: 1rem;
  max-width: none;
  /* Reset paragraph max-width */
  border-top: 1px solid rgba(0, 0, 0, 0.05);
  /* Divider before Overview */
  padding-top: 1rem;
}

.case-section {
  margin-bottom: 0.5rem;
  padding-bottom: 0.5rem;
  border-bottom: 1px solid rgba(0, 0, 0, 0.05);
}

.case-section:last-child {
  margin-bottom: 0;
  padding-bottom: 0;
  border-bottom: none;
}

.case-section h4 {
  font-size: 0.9rem;
  text-transform: uppercase;
  letter-spacing: 1.5px;
  color: var(--brand-dark);
  margin-bottom: 0.75rem;
  font-weight: 800;
}

.case-section p {
  color: rgba(35, 37, 38, 0.8);
  margin: 0;
  max-width: 100%;
}

.project-stats {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 2rem;
  margin-bottom: 1rem;
  padding-top: 1rem;
  border-top: 1px solid rgba(0, 0, 0, 0.05);
  /* Divider after meta */
}

.project-stats div {
  display: flex;
  flex-direction: column;
  transition: all 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275);
  cursor: default;
  padding: 0.75rem;
  border-radius: 16px;
  background: rgba(255, 255, 255, 0.3);
  border: 1px solid rgba(0, 0, 0, 0.03);
  position: relative;
  overflow: hidden;
  animation: metric-auto-lift 9s infinite;
}

.project-stats div:nth-child(2) {
  animation-delay: 3s;
}

.project-stats div:nth-child(3) {
  animation-delay: 6s;
}

/* Background Shimmer Layer */
.project-stats div::after {
  content: "";
  position: absolute;
  top: 0;
  left: -100%;
  width: 100%;
  height: 100%;
  background: linear-gradient(90deg,
      transparent,
      rgba(255, 255, 255, 0.6),
      transparent);
  animation: metric-bg-shimmer 9s infinite;
  pointer-events: none;
  z-index: 0;
}

.project-stats div:nth-child(2)::after {
  animation-delay: 3s;
}

.project-stats div:nth-child(3)::after {
  animation-delay: 6s;
}

/* Force reset all metrics when container is hovered to ensure exclusivity */
.project-stats:hover div {
  animation: none !important;
  transform: scale(1) translateY(0) !important;
  background: rgba(255, 255, 255, 0.3) !important;
  box-shadow: none !important;
  border-color: rgba(0, 0, 0, 0.03) !important;
}

.project-stats:hover div::after {
  animation: none !important;
}

/* Specifically style the hovered metric to "pop" */
.project-stats div:hover {
  transform: scale(1.15) translateY(-10px) !important;
  background: rgba(255, 255, 255, 0.9) !important;
  box-shadow:
    0 20px 40px rgba(0, 0, 0, 0.1),
    0 0 20px rgba(0, 200, 224, 0.2) !important;
  border-color: rgba(0, 200, 224, 0.3) !important;
  z-index: 10;
}

.project-stats div:hover::after {
  animation: metric-hover-shimmer 2s infinite linear;
}

@keyframes metric-hover-shimmer {
  0% {
    left: -100%;
  }

  100% {
    left: 100%;
  }
}

.project-stats strong {
  font-size: 1.6rem;
  font-weight: 900;
  color: #000;
  display: inline-block;
  line-height: 1;
  margin-bottom: 0.25rem;
  position: relative;
  z-index: 1;
}

.project-stats span {
  font-size: 0.8rem;
  text-transform: uppercase;
  color: rgba(35, 37, 38, 0.6);
  position: relative;
  z-index: 1;
}

@keyframes metric-auto-lift {

  0%,
  100%,
  33.33% {
    transform: scale(1) translateY(0);
    background: rgba(255, 255, 255, 0.3);
    box-shadow: none;
    border-color: rgba(0, 0, 0, 0.03);
  }

  5%,
  28% {
    transform: scale(1.1) translateY(-8px);
    background: rgba(255, 255, 255, 0.8);
    box-shadow:
      0 20px 40px rgba(0, 0, 0, 0.1),
      0 0 20px rgba(0, 200, 224, 0.15);
    border-color: rgba(0, 200, 224, 0.2);
  }
}

@keyframes metric-bg-shimmer {

  0%,
  100%,
  33.33% {
    left: -100%;
  }

  5%,
  28% {
    left: 100%;
  }
}

.project-stats span {
  font-size: 0.8rem;
  text-transform: uppercase;
  color: rgba(35, 37, 38, 0.6);
}

.close-modal {
  margin-top: 1rem;
  align-self: flex-start;
  padding: 0.8rem 2.5rem;
  background: var(--brand-dark);
  color: white;
  border-radius: 99px;
  font-weight: 600;
  transition: all 0.3s ease;
}

.close-modal:hover {
  background: var(--brand-cyan);
  color: var(--brand-dark);
}

/* RESPONSIVE MODAL */
@media (max-width: 1024px) {
  .project-container {
    flex-direction: column;
    height: 90vh;
  }

  .project-gallery {
    flex: 1;
  }

  .project-info {
    flex: 1.2;
    padding: 2rem;
  }

  .project-info h2 {
    font-size: 1.8rem;
  }
}

/* 3D HOVER CARD FOR SERVICES */
.service-3d-wrap {
  perspective: 1000px;
}

.service-3d-card {
  width: 100%;
  height: 100%;
  min-height: 320px;
  background: #0f171a;
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: 2rem;
  position: relative;
  transform-style: preserve-3d;
  will-change: transform;
  transition: transform 0.5s cubic-bezier(0.23, 1, 0.32, 1);
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  padding: 3rem 2rem;
  text-align: center;
  overflow: hidden;
  box-shadow: 
    0 40px 80px rgba(0, 0, 0, 0.7), 
    0 0 30px rgba(0, 200, 224, 0.15); /* Intense base shadow */
  border: 1px solid rgba(255, 255, 255, 0.05);
}

.service-3d-card:hover {
  transform: translateZ(20px) rotateX(10deg) rotateY(10deg);
  border-color: var(--brand-cyan);
  box-shadow:
    0 80px 160px rgba(0, 0, 0, 0.9),
    0 0 80px rgba(0, 200, 224, 0.5); /* Massive glow and depth on hover */
}

.service-3d-title-tag {
  color: #fff;
  position: absolute;
  top: 20px;
  right: 20px;
  transform: translateZ(0);
  transition: transform 0.5s, opacity 0.5s;
  font: 700 0.75rem monospace;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  opacity: 0.3;
  pointer-events: none;
}

.service-3d-card:hover .service-3d-title-tag {
  transform: translateZ(50px);
  opacity: 1;
  color: var(--brand-cyan);
}

.service-3d-content {
  transform-style: preserve-3d;
  transition: transform 0.5s;
  display: flex;
  flex-direction: column;
  align-items: center;
}

.service-3d-card:hover .service-3d-content {
  transform: translateZ(40px);
}

.service-3d-card:hover .service-icon-box {
  background: var(--brand-cyan);
  color: #0f171a;
  transform: rotate(10deg) scale(1.1);
  box-shadow: 0 0 30px rgba(0, 200, 224, 0.4);
}

.service-3d-card h3 {
  color: white !important;
  transition: transform 0.5s cubic-bezier(0.23, 1, 0.32, 1), color 0.5s ease;
  transform: translateZ(0);
}

.service-3d-card p {
  color: rgba(255, 255, 255, 0.7) !important;
  transition: transform 0.5s cubic-bezier(0.23, 1, 0.32, 1), color 0.5s ease;
  transform: translateZ(0);
}

.service-3d-card:hover h3 {
  color: var(--brand-cyan) !important;
  transform: translateZ(60px);
  text-shadow:
    0 4px 10px rgba(0, 0, 0, 0.5),
    0 0 10px rgba(0, 200, 224, 0.2);
}

.service-3d-card:hover p {
  color: white !important;
  transform: translateZ(30px);
}

/* ============================================================================
   UTILITY CLASSES — replaced inline styles
============================================================================ */

/* Footer logo — replaces style="height: 102.4px" */
.footer-logo-img {
  height: 102.4px;
}

/* Featured carousel — replaces style="max-width: 1400px" */
.featured-carousel {
  max-width: 1400px;
}

/* Floating shape position variants — agency.html hero decorations */
.floating-shape--tl {
  top: -80px;
  left: -80px;
}

.floating-shape--br {
  bottom: -80px;
  right: -80px;
}

.floating-shape--tr {
  top: 0;
  right: 10%;
}

/* Brand section divider bar — replaces inline div style in work.html */
.brand-divider-bar {
  width: 100px;
  height: 4px;
  background-color: #000;
  border-radius: 999px;
}

/* INTENSE TEXT GLOWS */
.intense-glow-cyan, .intense-glow-dark {
    text-shadow: 
        0 10px 40px rgba(0, 0, 0, 0.25),
        0 4px 12px rgba(0, 0, 0, 0.15) !important;
}

.services-gradient {
    /* VIBRANT WHITE-TO-CYAN BLOCK */
    background: linear-gradient(180deg, 
        #FFFFFF 0%, 
        #FFFFFF 40%, 
        #00C8E0 100%
    ) !important;
    border: none !important;
}

.services-gradient .section-title, 
.services-gradient .section-subtitle,
.services-gradient p {
    text-shadow: 0 1px 4px rgba(0,0,0,0.1); /* Subtle definition */
}

/* Footer list item row spacing */
footer ul li + li {
  margin-top: 1rem !important;
}

/* BILLBOARD STYLES */
.billboard-container {
    width: 100%;
    max-width: 1300px;
    height: auto;
    padding-top: 80px; /* Space for industrial lights */
    padding-bottom: 20px;
    display: flex;
    align-items: center;
    justify-content: center;
    perspective: 2000px;
}

.billboard-frame {
    position: relative;
    width: 100%;
    aspect-ratio: 16 / 9;
    background: #0a0a0a;
    border-radius: 12px;
    box-shadow: 
        0 40px 100px -20px rgba(0,0,0,0.8),
        0 20px 40px -10px rgba(0,0,0,0.5);
    transition: transform 0.1s ease-out, opacity 0.5s ease;
    transform-origin: center;
    will-change: transform, opacity;
}

/* [BILLBOARD FLOOR SHADOW REMOVED] */

.billboard-bezel {
    position: absolute;
    inset: -4px;
    border: 12px solid #1a1b1c;
    border-radius: 16px;
    background: #000;
    overflow: hidden;
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: inset 0 0 40px rgba(0,0,0,0.8);
}

.billboard-bezel::before {
    content: "";
    position: absolute;
    inset: 0;
    background: linear-gradient(135deg, rgba(255,255,255,0.05) 0%, transparent 50%);
    pointer-events: none;
    z-index: 5;
}

.billboard-supports {
    position: absolute;
    bottom: -80px;
    left: 0;
    right: 0;
    height: 80px;
    display: flex;
    justify-content: space-around;
    pointer-events: none;
    z-index: -1;
}

.support {
    width: 40px;
    height: 100%;
    background: linear-gradient(to right, #111, #222, #111);
    border-radius: 4px;
    box-shadow: 10px 10px 20px rgba(0,0,0,0.3);
}

.spotlight {
    position: absolute;
    top: -20px;
    left: 50%;
    transform: translateX(-50%);
    width: 80%;
    height: 200px;
    background: radial-gradient(ellipse at center, rgba(0, 200, 224, 0.1) 0%, transparent 70%);
    pointer-events: none;
    z-index: 10;
}

.slideshow-wrapper {
    background: #000;
}

.billboard-content {
    z-index: 2;
}

.billboard-lights {
    position: absolute;
    top: -55px; /* Mounted above the frame */
    left: 0;
    right: 0;
    height: 40px;
    display: flex;
    justify-content: space-around;
    padding: 0 15%;
    z-index: 100;
    pointer-events: none;
}

.light-fixture {
    width: 50px;
    height: 18px;
    background: linear-gradient(#444, #111);
    border-radius: 6px;
    position: relative;
    box-shadow: 0 15px 30px rgba(0,0,0,0.5);
}

/* Structural Mounting Bracket */
.bracket {
    position: absolute;
    top: 15px;
    left: 50%;
    transform: translateX(-50%);
    width: 6px;
    height: 55px; /* Extends down into the frame */
    background: linear-gradient(to right, #222, #444, #222);
    border-radius: 4px;
    z-index: -1;
    box-shadow: 2px 5px 10px rgba(0,0,0,0.3);
}

/* Intense Light Beam */
.light-fixture::after {
    content: "";
    position: absolute;
    top: 100%;
    left: 50%;
    transform: translateX(-50%);
    width: 280px;
    height: 650px;
    background: radial-gradient(ellipse at top, rgba(255, 255, 255, 0.2) 0%, transparent 70%);
    pointer-events: none;
    clip-path: polygon(46% 0, 54% 0, 100% 100%, 0 100%);
    opacity: 0.9;
}

/* Vibrant gradient wrapper for billboard */
.bg-subtle-vignette {
    position: sticky;
    top: 0;
    z-index: 0;
    min-height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    padding-top: 120px; /* Gap on top */
    padding-bottom: 60px; /* Keep bottom tighter as requested */
    background: linear-gradient(135deg, var(--brand-cyan) 0%, var(--brand-blue) 100%);
    overflow: hidden;
}
.bg-subtle-vignette::before {
    content: "";
    position: absolute;
    inset: 0;
    pointer-events: none;
    background: none; /* Removed dark vignette */
    z-index: 5;
}

/* ============================================================================
   GLOBAL CUSTOM CURSOR (FourNine Brand)
============================================================================ */
body { cursor: none !important; }
a, button, [role="button"], .demo-card, .btn-primary, .btn-secondary, .hero-nav-btn { cursor: none !important; }

#custom-cursor {
  position: fixed;
  top: 0;
  left: 0;
  width: 8px;
  height: 8px;
  background: #ffffff;
  border-radius: 50%;
  pointer-events: none;
  z-index: 9999999;
  transform: translate(-50%, -50%);
  mix-blend-mode: difference; /* ALWAYS VISIBLE on all colors */
  transition: width 0.3s cubic-bezier(0.15, 1, 0.3, 1), 
              height 0.3s cubic-bezier(0.15, 1, 0.3, 1), 
              background 0.3s ease, 
              opacity 0.3s ease;
}

#cursor-follower {
  position: fixed;
  top: 0;
  left: 0;
  width: 40px;
  height: 40px;
  border: 1.5px solid rgba(0, 240, 255, 0.8);
  border-radius: 50%;
  pointer-events: none;
  z-index: 9999998;
  transform: translate(-50%, -50%);
  transition: width 0.3s ease, height 0.3s ease, border-color 0.3s ease, box-shadow 0.3s ease;
  box-shadow: 
    0 0 15px rgba(0, 200, 224, 0.4),
    0 0 5px rgba(0, 0, 0, 0.2); /* Darker shadow for visibility on light backgrounds */
}

/* Hover States for Interactive Elements */
.cursor-hover #custom-cursor {
  width: 12px;
  height: 12px;
}

.cursor-hover #cursor-follower {
  width: 70px;
  height: 70px;
  border-color: rgba(255, 255, 255, 0.9);
  box-shadow: 
    0 0 20px rgba(0, 200, 224, 0.6),
    0 0 10px rgba(0, 0, 0, 0.3);
}


