/* 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.85);
    backdrop-filter: blur(25px) saturate(180%);
    -webkit-backdrop-filter: blur(25px) saturate(180%);
    border-radius: 2.5rem;
    padding: 0.75rem;
    box-shadow: 
      0 30px 60px rgba(0, 0, 0, 0.6),
      0 0 0 1px rgba(255, 255, 255, 0.1) 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(0, 200, 224, 0.1),
      transparent 40%,
      transparent 60%,
      rgba(0, 88, 224, 0.05)
    );
    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(255, 255, 255, 0.1);
    backdrop-filter: blur(10px);
    width: 60px;
    height: 60px;
    border-radius: 50%;
    font-size: 32px;
    color: white;
    display: flex;
    align-items: center;
    justify-content: center;
    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 20px rgba(0, 0, 0, 0.2);
    opacity: 0.8;
    z-index: 10;
    cursor: pointer;
  }

  .hero-nav-btn:hover {
    background: var(--brand-cyan);
    color: var(--brand-dark);
    transform: translateY(-50%) scale(1.1);
    opacity: 1;
    box-shadow: 0 0 30px rgba(0, 200, 224, 0.4);
  }

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

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

  /* 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 TRANSITIONS */
  #work-hero-slideshow-img {
    transition: opacity 0.8s ease-in-out;
  }

  #work-hero-slideshow {
    position: relative;
    box-shadow: 0 0 30px rgba(0, 200, 224, 0.3);
  }
}

/* NAVBAR */

@layer components {
  .glass-nav {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    z-index: 50;

    background: transparent;
    backdrop-filter: none;

    border-bottom: none;
    transition: all 0.3s ease;
  }

  .glass-nav.scrolled {
    background: transparent;
    box-shadow: none;
  }

  .nav-link {
    position: relative;
    font-weight: 500;
    font-size: 0.875rem;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    color: rgba(255, 255, 255, 0.85);
    padding: 0.5rem 0.75rem;
    transition: color 0.2s;
  }

  .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;
    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 35s linear infinite;
}

.logo-track img {
  height: 65px;
  opacity: 0.8;
  transition: all 0.3s 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;
  -webkit-text-stroke: 1px #00c8e0;
  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: 18px;
  background: white;
  border: 1px solid rgba(0, 0, 0, 0.03);
  box-shadow: 
    0 4px 6px -1px rgba(0, 0, 0, 0.1), 
    0 2px 4px -1px rgba(0, 0, 0, 0.06), 
    0 20px 25px -5px rgba(0, 0, 0, 0.05); /* Multi-layered soft deep shadow */
  display: flex;
  flex-direction: column;
  transition: all 0.4s cubic-bezier(0.23, 1, 0.32, 1);
  z-index: 1;
  overflow: hidden;
}

/* Soft Card Shadow Layer */
.work-card::after, .showcase-card::after {
  content: "";
  position: absolute;
  inset: 0;
  border-radius: 18px;
  box-shadow: 0 0 0 rgba(0, 200, 224, 0);
  transition: all 0.5s ease;
  z-index: -1;
  pointer-events: none;
}

.work-card:hover, .showcase-card:hover {
  transform: translateY(-12px) scale(1.02);
  border-color: var(--brand-cyan);
  box-shadow: 
    0 30px 60px -12px rgba(0, 0, 0, 0.15), 
    0 18px 36px -18px rgba(0, 0, 0, 0.2),
    0 0 30px rgba(0, 200, 224, 0.2);
}

.card-slideshow-container {
  position: relative;
  overflow: hidden; /* Contain images and shine sweep */
  border-top-left-radius: 17px;
  border-top-right-radius: 17px;
  border-bottom-left-radius: 0;
  border-bottom-right-radius: 0;
}

/* Glass Shine Sweep (Moved here to stay clipped to image) */
.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.6),
    transparent
  );
  transform: skewX(-25deg);
  transition: 0.75s;
  z-index: 5;
  pointer-events: none;
}

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

.card-slideshow-container {
  border-top-left-radius: 18px;
  border-top-right-radius: 18px;
  border-bottom-left-radius: 0;
  border-bottom-right-radius: 0;
  background: var(--brand-dark);
  overflow: hidden;
  position: relative;
  height: 400px;
}

.work-image {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  opacity: 0;
  transition: opacity 0.8s ease-in-out, transform 0.8s ease-in-out;
  transform: scale(1.05);
  border-radius: 0 !important;
}

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

.work-info {
  background: white;
  padding: 1.5rem;
  flex: 1;
  display: flex;
  flex-direction: column;
  border-bottom-left-radius: 18px;
  border-bottom-right-radius: 18px;
}

.work-meta {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 14px;
}

.work-meta-time {
  font-size: 0.75rem;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  opacity: 0.7;
}

.work-meta-dots {
  font-size: 1.4rem;
  line-height: 1;
  opacity: 0.4;
}

.work-info h3 {
  font-weight: 800;
  font-size: 1.6rem;
  margin-bottom: 8px;
}

.work-info p {
  font-size: 1.1rem;
  opacity: 0.75;
}

/* CARD TEXTURES */
.texture-1 {
  background-color: #e5e5f7;
  background-image: radial-gradient(#444cf7 10%, transparent 10%),
                    radial-gradient(#444cf7 10%, transparent 10%);
  background-size: 100px 100px;
  background-position: 0 0, 50px 50px;
  color: #232526;
}

.texture-2 {
  --color1: rgb(108, 231, 221);
  --color2: rgb(250, 255, 178);
  background-color: var(--color1);
  background-image: linear-gradient(45deg, var(--color2) 25%, transparent 25%, transparent 75%, var(--color2) 75%, var(--color2)), 
                    linear-gradient(45deg, var(--color2) 25%, var(--color1) 25%, var(--color1) 75%, var(--color2) 75%, var(--color2));
  background-size: 60px 60px;
  background-position: 0 0, 30px 30px;
  color: #232526;
}

.texture-3 {
  --size: 3rem;
  background-color: #f5f9fa;
  background-image: radial-gradient(rgba(0,0,0,0.1) 5%, transparent 6%),
                    radial-gradient(rgba(0,0,0,0.1) 5%, transparent 6%);
  background-position: 0 0, calc(var(--size) / 2) calc(var(--size) / 2);
  background-size: var(--size) var(--size);
  color: #232526;
}

.texture-4 {
  --color: #faa7d8;
  background: linear-gradient(45deg, var(--color) 25%, transparent 25%) -50px 0,
        linear-gradient(-45deg, var(--color) 25%, transparent 25%) -50px 0,
        linear-gradient(45deg, transparent 75%, var(--color) 75%) -50px 0,
        linear-gradient(-45deg, transparent 75%, var(--color) 75%) -50px 0;
  background-color: #e5e5f7;
  background-size: 10px 40px;
  color: #232526;
}

.texture-5 {
  --color1: #734652;
  --color2: #d98baf;
  --color3: #bf567d;
  background: radial-gradient(circle at top left, var(--color1), transparent 40%),
              radial-gradient(circle at bottom right, var(--color2), transparent 40%),
              linear-gradient(45deg, var(--color3) 25%, transparent 25%, transparent 75%, var(--color3) 75%, var(--color3));
  background-size: 120px 120px, 150px 150px, 90px 90px;
  background-position: 0 0, 100% 100%, 0 0;
  color: #232526;
}

.texture-6 {
  background-color: #f5f9fa; /* Light background for contrast */
  background-image: linear-gradient(45deg, #000000 25%, transparent 25%),
    linear-gradient(
      -135deg,
      #000000 25%,
      transparent 25%,
      transparent 75%,
      #000000 75%,
      #000000
    );
  background-size: 50px 50px;
  color: #232526;
}

.texture-7 {
  --s: 25px; /* control the size */
  --c1: #1eaaee;
  --c2: #171717;

  --c: #0000 71%, var(--c1) 0 79%, #0000 0;
  --_s: calc(var(--s) / 2) / calc(2 * var(--s)) calc(2 * var(--s));
  background: linear-gradient(45deg, var(--c)) calc(var(--s) / -2) var(--_s),
    linear-gradient(135deg, var(--c)) calc(var(--s) / 2) var(--_s),
    radial-gradient(var(--c1) 35%, var(--c2) 37%) 0 0 / var(--s) var(--s);
  color: #232526;
}

.texture-8 {
  background-color: #cbd5e1;
  background-image: 
    linear-gradient(rgba(2, 132, 199, 0.1) 2px, transparent 2px),
    linear-gradient(90deg, rgba(2, 132, 199, 0.1) 2px, transparent 2px),
    linear-gradient(rgba(2, 132, 199, 0.05) 1px, transparent 1px),
    linear-gradient(90deg, rgba(2, 132, 199, 0.05) 1px, transparent 1px);
  background-size: 100px 100px, 100px 100px, 20px 20px, 20px 20px;
  background-position: -2px -2px, -2px -2px, -1px -1px, -1px -1px;
  color: #1e293b;
}

.texture-5::before {
  content: "";
  position: absolute;
  inset: 0;
  background: repeating-linear-gradient(45deg, rgba(255, 255, 255, 0.1) 10px, transparent 10px, transparent 20px);
  opacity: 0.4;
  z-index: 0;
}

.texture-5 * {
  position: relative;
  z-index: 1;
}

.texture-5 h3, .texture-5 p {
  color: #232526 !important;
}

.card-glass-content {
  background: rgba(255, 255, 255, 0.15);
  backdrop-filter: blur(12px);


  -webkit-backdrop-filter: blur(12px);
  padding: 1.5rem 2rem;
  border-radius: 14px;
  border: 1px solid rgba(255, 255, 255, 0.4);
  box-shadow: 0 8px 32px 0 rgba(0, 0, 0, 0.05);
  text-align: center;
}



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

.prev {
  left: 20px;
}

.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: transparent;
  border: none;
  color: white;
  width: 80px;
  height: 80px;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 80px;
  line-height: 1;
  transition: all 0.3s ease;
  z-index: 10;
  padding: 0;
  margin: 0;
  opacity: 0.7;
}

.gallery-btn:hover {
  opacity: 1;
  transform: translateY(-50%) scale(1.1);
}

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

.service-3d-card:hover {
  transform: translateZ(20px) rotateX(10deg) rotateY(10deg);
  border-color: var(--brand-cyan);
  box-shadow: 
    0 40px 80px rgba(0, 0, 0, 0.6),
    0 0 40px rgba(0, 200, 224, 0.2);
}

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


