/* Import Raleway Font */
@import url('https://fonts.googleapis.com/css2?family=Raleway:wght@300;400;600;700;900&display=swap');

/* Centralized Color Palette */
:root {
  --color-black: 0, 0, 0;
  --color-dark-slate-gray: 33, 66, 66;
  --color-caribbean-current: 51, 102, 99;
  --color-verdigris: 89, 179, 171;
  --color-tiffany-blue: 109, 218, 207;

  /* Semantic color mappings */
  --color-primary: var(--color-verdigris);
  --color-secondary: var(--color-caribbean-current);
  --color-accent: var(--color-tiffany-blue);
  --color-dark: var(--color-dark-slate-gray);

  /* Hex color versions */
  --hex-verdigris: #59B3AB;
  --hex-caribbean-current: #336663;
  --hex-tiffany-blue: #6DDACF;
  --hex-black: #000000;
  --hex-dark-slate-gray: #214242;
}

* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  font-family: 'Raleway', -apple-system, BlinkMacSystemFont, 'Segoe UI', 'Roboto', sans-serif;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  background-color: black;
  color: white;
}

/* Animations */
@keyframes scroll {
  0% {
    transform: translateX(0);
  }
  100% {
    transform: translateX(calc(-100% - 2rem));
  }
}

.scroll-animation {
  animation: scroll 20s linear infinite;
}

@keyframes float {
  0%, 100% {
    transform: translateY(0px) rotate(0deg);
  }
  50% {
    transform: translateY(-20px) rotate(2deg);
  }
}

.float-animation {
  animation: float 6s ease-in-out infinite;
}

@keyframes glow-pulse {
  0%, 100% {
    box-shadow: 0 0 30px rgba(var(--color-primary), 0.3), inset 0 0 30px rgba(var(--color-primary), 0.1);
  }
  50% {
    box-shadow: 0 0 60px rgba(var(--color-primary), 0.5), inset 0 0 40px rgba(var(--color-primary), 0.2);
  }
}

.glow-pulse {
  animation: glow-pulse 3s ease-in-out infinite;
}

@keyframes grid-slide {
  0% {
    background-position: 0 0;
  }
  100% {
    background-position: 40px 40px;
  }
}

.grid-bg {
  background-image:
    linear-gradient(rgba(var(--color-primary), 0.1) 1px, transparent 1px),
    linear-gradient(90deg, rgba(var(--color-primary), 0.1) 1px, transparent 1px);
  background-size: 40px 40px;
  animation: grid-slide 8s linear infinite;
}

.glass-header {
  position: relative;
  background: rgba(10, 15, 13, 0.7);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  border-bottom: 1px solid rgba(var(--color-primary), 0.1);
}

@keyframes gradient-shift {
  0% {
    background-position: 0% 50%;
  }
  50% {
    background-position: 100% 50%;
  }
  100% {
    background-position: 0% 50%;
  }
}

.gradient-overlay {
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: linear-gradient(
    90deg,
    rgba(var(--color-primary), 0.15),
    rgba(var(--color-secondary), 0.1),
    rgba(var(--color-accent), 0.08),
    rgba(var(--color-primary), 0.15)
  );
  background-size: 200% 100%;
  animation: gradient-shift 8s ease infinite;
  opacity: 0.6;
  pointer-events: none;
}

/* Green Mist Effects */
@keyframes mist-float-1 {
  0%, 100% {
    transform: translate(0, 0) scale(1);
    opacity: 0.3;
  }
  33% {
    transform: translate(100px, -50px) scale(1.2);
    opacity: 0.2;
  }
  66% {
    transform: translate(-50px, 30px) scale(0.9);
    opacity: 0.4;
  }
}

@keyframes mist-float-2 {
  0%, 100% {
    transform: translate(0, 0) scale(1);
    opacity: 0.25;
  }
  33% {
    transform: translate(-80px, 60px) scale(1.1);
    opacity: 0.35;
  }
  66% {
    transform: translate(70px, -40px) scale(0.95);
    opacity: 0.2;
  }
}

@keyframes mist-float-3 {
  0%, 100% {
    transform: translate(0, 0) scale(1) rotate(0deg);
    opacity: 0.2;
  }
  50% {
    transform: translate(50px, -80px) scale(1.3) rotate(180deg);
    opacity: 0.3;
  }
}

.green-mist {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  pointer-events: none;
  z-index: 1;
  overflow: hidden;
}

.mist-orb-1 {
  position: absolute;
  top: 10%;
  left: 15%;
  width: 600px;
  height: 600px;
  background: radial-gradient(circle, rgba(var(--color-primary), 0.3) 0%, transparent 70%);
  filter: blur(60px);
  animation: mist-float-1 25s ease-in-out infinite;
}

.mist-orb-2 {
  position: absolute;
  top: 40%;
  right: 10%;
  width: 500px;
  height: 500px;
  background: radial-gradient(circle, rgba(var(--color-secondary), 0.25) 0%, transparent 70%);
  filter: blur(70px);
  animation: mist-float-2 30s ease-in-out infinite;
  animation-delay: -5s;
}

.mist-orb-3 {
  position: absolute;
  bottom: 15%;
  left: 25%;
  width: 450px;
  height: 450px;
  background: radial-gradient(circle, rgba(var(--color-accent), 0.2) 0%, transparent 70%);
  filter: blur(80px);
  animation: mist-float-3 35s ease-in-out infinite;
  animation-delay: -10s;
}

.mist-orb-4 {
  position: absolute;
  top: 60%;
  right: 30%;
  width: 550px;
  height: 550px;
  background: radial-gradient(circle, rgba(var(--color-primary), 0.22) 0%, transparent 70%);
  filter: blur(75px);
  animation: mist-float-1 28s ease-in-out infinite;
  animation-delay: -15s;
}

.mist-orb-5 {
  position: absolute;
  bottom: 30%;
  right: 15%;
  width: 400px;
  height: 400px;
  background: radial-gradient(circle, rgba(var(--color-secondary), 0.18) 0%, transparent 70%);
  filter: blur(65px);
  animation: mist-float-2 32s ease-in-out infinite;
  animation-delay: -20s;
}

@keyframes mist-float-4 {
  0%, 100% {
    transform: translate(0, 0) scale(1);
    opacity: 0.4;
  }
  50% {
    transform: translate(-60px, 40px) scale(1.15);
    opacity: 0.3;
  }
}

@keyframes mist-float-5 {
  0%, 100% {
    transform: translate(0, 0) scale(1);
    opacity: 0.35;
  }
  50% {
    transform: translate(80px, -30px) scale(1.25);
    opacity: 0.25;
  }
}

.hero-gradient-mist {
  position: absolute;
  bottom: -200px;
  left: 0;
  width: 100%;
  height: 600px;
  pointer-events: none;
  z-index: 5;
  overflow: hidden;
}

.hero-mist-orb-1 {
  position: absolute;
  top: 0;
  left: 10%;
  width: 700px;
  height: 700px;
  background: radial-gradient(circle, rgba(var(--color-primary), 0.6) 0%, rgba(var(--color-secondary), 0.45) 30%, transparent 70%);
  filter: blur(90px);
  animation: mist-float-4 20s ease-in-out infinite;
}

.hero-mist-orb-2 {
  position: absolute;
  top: 50px;
  right: 15%;
  width: 600px;
  height: 600px;
  background: radial-gradient(circle, rgba(var(--color-accent), 0.55) 0%, rgba(var(--color-primary), 0.4) 30%, transparent 70%);
  filter: blur(85px);
  animation: mist-float-5 25s ease-in-out infinite;
  animation-delay: -5s;
}

.hero-mist-orb-3 {
  position: absolute;
  top: 100px;
  left: 50%;
  transform: translateX(-50%);
  width: 800px;
  height: 800px;
  background: radial-gradient(circle, rgba(var(--color-primary), 0.5) 0%, rgba(var(--color-secondary), 0.35) 40%, transparent 70%);
  filter: blur(100px);
  animation: mist-float-4 30s ease-in-out infinite;
  animation-delay: -10s;
}

@keyframes card-mist-glow {
  0%, 100% {
    opacity: 0;
    transform: scale(0.8);
  }
  50% {
    opacity: 1;
    transform: scale(1.1);
  }
}

.service-card {
  position: relative;
  overflow: hidden;
}

.service-card-mist {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  width: 300px;
  height: 300px;
  background: radial-gradient(circle, rgba(var(--color-primary), 0.4) 0%, rgba(var(--color-secondary), 0.3) 30%, transparent 70%);
  filter: blur(60px);
  opacity: 0;
  transition: opacity 0.5s ease-in-out;
  pointer-events: none;
  z-index: 0;
}

.service-card:hover .service-card-mist {
  opacity: 1;
  animation: card-mist-glow 2s ease-in-out infinite;
}

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

@keyframes fadeInUp {
  from {
    opacity: 0;
    transform: translateY(40px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

@keyframes fadeInLeft {
  from {
    opacity: 0;
    transform: translateX(-60px);
  }
  to {
    opacity: 1;
    transform: translateX(0);
  }
}

@keyframes fadeInRight {
  from {
    opacity: 0;
    transform: translateX(60px);
  }
  to {
    opacity: 1;
    transform: translateX(0);
  }
}

/* Animation for card wrappers instead of cards themselves */
.service-card-wrapper {
  opacity: 0;
  animation-play-state: paused;
}

/* Mobile: slide from sides */
.service-card-wrapper:nth-child(odd) {
  animation: fadeInLeft 0.6s ease-out forwards paused;
}

.service-card-wrapper:nth-child(even) {
  animation: fadeInRight 0.6s ease-out forwards paused;
}

.service-card-wrapper:nth-child(1) {
  animation-delay: 0.2s;
}

.service-card-wrapper:nth-child(2) {
  animation-delay: 0.4s;
}

.service-card-wrapper:nth-child(3) {
  animation-delay: 0.6s;
}

.service-card-wrapper:nth-child(4) {
  animation-delay: 0.8s;
}

/* Play animations only when visible */
.service-card-wrapper.card-visible {
  animation-play-state: running;
}

/* Desktop: fade up from bottom */
@media (min-width: 768px) {
  .service-card-wrapper:nth-child(odd),
  .service-card-wrapper:nth-child(even) {
    animation: fadeInUp 0.6s ease-out forwards paused;
  }

  .service-card-wrapper.card-visible:nth-child(odd),
  .service-card-wrapper.card-visible:nth-child(even) {
    animation-play-state: running;
  }
}

/* Service Toggle Switch */
.service-toggle {
  position: relative;
  width: 60px;
  height: 28px;
  background-color: rgba(89, 179, 171, 0.2);
  border: 1px solid rgba(89, 179, 171, 0.3);
  border-radius: 14px;
  cursor: pointer;
  transition: all 0.3s ease;
  padding: 0;
  outline: none;
}

.service-toggle:hover {
  background-color: rgba(89, 179, 171, 0.25);
  border-color: rgba(89, 179, 171, 0.4);
}

.service-toggle-slider {
  position: absolute;
  top: 3px;
  left: 3px;
  width: 20px;
  height: 20px;
  background-color: var(--hex-verdigris);
  border-radius: 50%;
  transition: transform 0.3s ease;
  box-shadow: 0 0 8px rgba(89, 179, 171, 0.5);
}

.service-toggle.active .service-toggle-slider {
  transform: translateX(32px);
  background-color: var(--hex-tiffany-blue);
  box-shadow: 0 0 12px rgba(109, 218, 207, 0.7);
}

.toggle-label {
  transition: color 0.3s ease, opacity 0.3s ease;
  opacity: 0.6;
}

.toggle-label.active {
  color: var(--hex-tiffany-blue);
  opacity: 1;
}

/* Service Card Flip Animation - Based on standard flip card pattern */
.service-card-wrapper {
  background-color: transparent;
  perspective: 1000px;
  min-height: 350px;
  display: flex;
  flex-direction: column;
}

.service-card-flipper {
  position: relative;
  width: 100%;
  height: 100%;
  min-height: 350px;
  flex: 1;
  transition: transform 0.6s;
  transform-style: preserve-3d;
}

.service-card-flipper.flipped {
  transform: rotateY(180deg);
}

.service-card-front,
.service-card-back {
  position: absolute;
  width: 100%;
  height: 100%;
  -webkit-backface-visibility: hidden;
  backface-visibility: hidden;
  top: 0;
  left: 0;
}

.service-card-front {
  transform: rotateY(0deg);
}

.service-card-back {
  transform: rotateY(180deg);
}

/* Neon Flicker Effect for Email */
.neon-flicker-text {
  text-shadow:
    0 0 3px var(--hex-verdigris),
    0 0 8px var(--hex-verdigris),
    0 0 12px var(--hex-caribbean-current);
  color: var(--hex-tiffany-blue);
  animation: neon-flicker 12s infinite;
  -webkit-animation: neon-flicker 12s infinite;
}

.neon-flicker-text:hover {
  color: var(--hex-tiffany-blue);
  text-shadow:
    0 0 3px var(--hex-verdigris),
    0 0 8px var(--hex-verdigris),
    0 0 12px var(--hex-caribbean-current);
}

@keyframes neon-flicker {
  20%, 24%, 55% {
    color: #111;
    text-shadow: none;
  }

  0%, 19%, 21%, 23%, 25%, 54%, 56%, 100% {
    text-shadow:
      0 0 3px var(--hex-verdigris),
      0 0 8px var(--hex-verdigris),
      0 0 12px var(--hex-caribbean-current);
    color: var(--hex-tiffany-blue);
  }
}

@-webkit-keyframes neon-flicker {
  20%, 24%, 55% {
    color: #111;
    text-shadow: none;
  }

  0%, 19%, 21%, 23%, 25%, 54%, 56%, 100% {
    text-shadow:
      0 0 3px var(--hex-verdigris),
      0 0 8px var(--hex-verdigris),
      0 0 12px var(--hex-caribbean-current);
    color: var(--hex-tiffany-blue);
  }
}

/* Glowing Button Styles - Toned down */
.glowing-btn {
  position: relative;
  color: var(--hex-tiffany-blue);
  cursor: pointer;
  padding: 0.5em 1.2em;
  border: 0.12em solid var(--hex-tiffany-blue);
  border-radius: 0.45em;
  background: none;
  perspective: 2em;
  font-family: 'Raleway', sans-serif;
  font-size: 1.2em;
  font-weight: 600;
  letter-spacing: 0.15em;
  text-decoration: none;
  display: inline-block;
  box-shadow: inset 0px 0px 0.15em 0px var(--hex-tiffany-blue),
    0px 0px 0.15em 0px var(--hex-tiffany-blue);
  animation: border-flicker 5s linear infinite;
}

.glowing-txt {
  margin-right: -0.15em;
  text-shadow: 0 0 0.05em hsl(0 0% 100% / 0.15),
    0 0 0.15em var(--hex-tiffany-blue);
  animation: text-flicker 6s linear infinite;
}

.faulty-letter {
  opacity: 0.7;
  animation: faulty-flicker 4s linear infinite;
}

.glowing-btn::after {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  opacity: 0;
  z-index: -1;
  background-color: var(--hex-tiffany-blue);
  box-shadow: 0 0 0.8em 0.1em var(--hex-tiffany-blue);
  transition: opacity 100ms linear;
}

.glowing-btn:hover {
  color: rgba(0, 0, 0, 0.9);
  text-shadow: none;
  animation: none;
}

.glowing-btn:hover .glowing-txt {
  animation: none;
}

.glowing-btn:hover .faulty-letter {
  animation: none;
  text-shadow: none;
  opacity: 1;
}

.glowing-btn:hover::after {
  opacity: 0.7;
}

@keyframes faulty-flicker {
  0% {
    opacity: 0.3;
  }
  2% {
    opacity: 0.3;
  }
  4% {
    opacity: 0.6;
  }
  19% {
    opacity: 0.6;
  }
  21% {
    opacity: 0.3;
  }
  23% {
    opacity: 1;
  }
  80% {
    opacity: 0.6;
  }
  83% {
    opacity: 0.5;
  }
  87% {
    opacity: 1;
  }
}

@keyframes text-flicker {
  0% {
    opacity: 0.3;
  }
  2% {
    opacity: 1;
  }
  8% {
    opacity: 0.3;
  }
  9% {
    opacity: 1;
  }
  12% {
    opacity: 0.3;
  }
  20% {
    opacity: 1;
  }
  25% {
    opacity: 0.5;
  }
  30% {
    opacity: 1;
  }
  70% {
    opacity: 0.8;
  }
  72% {
    opacity: 0.4;
  }
  77% {
    opacity: 0.95;
  }
  100% {
    opacity: 0.95;
  }
}

@keyframes border-flicker {
  0% {
    opacity: 0.3;
  }
  2% {
    opacity: 1;
  }
  4% {
    opacity: 0.3;
  }
  8% {
    opacity: 1;
  }
  70% {
    opacity: 0.8;
  }
  100% {
    opacity: 1;
  }
}

@media only screen and (max-width: 600px) {
  .glowing-btn {
    font-size: 1em;
    letter-spacing: 0.1em;
    padding: 0.45em 1em;
  }
}

/* Featured Section - Review with Expandable Case Study */
.featured-section {
  position: relative;
  overflow: hidden;
  background: linear-gradient(180deg, rgba(15, 15, 15, 0.95) 0%, rgba(20, 25, 25, 0.98) 100%);
}

/* Featured Section Mist Background Effect */
.featured-mist {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  overflow: hidden;
  pointer-events: none;
  z-index: 0;
}

.featured-mist-orb-1,
.featured-mist-orb-2,
.featured-mist-orb-3 {
  position: absolute;
  border-radius: 50%;
  filter: blur(100px);
  opacity: 0.12;
  animation: float 25s ease-in-out infinite;
}

.featured-mist-orb-1 {
  width: 500px;
  height: 500px;
  background: radial-gradient(circle, var(--hex-verdigris), transparent);
  top: 15%;
  left: -15%;
  animation-delay: 0s;
}

.featured-mist-orb-2 {
  width: 450px;
  height: 450px;
  background: radial-gradient(circle, var(--hex-tiffany-blue), transparent);
  top: 40%;
  right: -10%;
  animation-delay: 8s;
}

.featured-mist-orb-3 {
  width: 400px;
  height: 400px;
  background: radial-gradient(circle, var(--hex-caribbean-current), transparent);
  bottom: 20%;
  left: 40%;
  animation-delay: 16s;
}

@keyframes float {
  0%, 100% {
    transform: translate(0, 0);
  }
  33% {
    transform: translate(30px, -30px);
  }
  66% {
    transform: translate(-20px, 20px);
  }
}

/* Review Slide Styles */
.review-container {
  max-width: 900px;
  margin: 0 auto;
  position: relative;
  padding: 1rem;
  z-index: 1;
}

.review-quote-section {
  position: relative;
  margin-bottom: 3rem;
  padding: 2.5rem 1.5rem;
}

.quote-mark-left,
.quote-mark-right {
  position: absolute;
  font-size: 8rem;
  font-family: Georgia, serif;
  color: rgba(var(--color-primary), 0.15);
  line-height: 1;
  user-select: none;
  pointer-events: none;
}

.quote-mark-left {
  top: -1rem;
  left: -1rem;
}

.quote-mark-right {
  bottom: -3rem;
  right: -1rem;
  transform: rotate(180deg);
}

.review-quote {
  font-size: 2rem;
  line-height: 1.7;
  color: #ffffff;
  font-style: italic;
  font-weight: 300;
  text-align: center;
  position: relative;
  z-index: 1;
  letter-spacing: 0.01em;
}

.review-divider {
  width: 80px;
  height: 2px;
  background: linear-gradient(90deg, transparent, var(--hex-verdigris), var(--hex-tiffany-blue), transparent);
  margin: 3rem auto;
}

.review-author {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 2.5rem;
  flex-wrap: wrap;
}

.author-image-wrapper {
  position: relative;
  flex-shrink: 0;
}

.author-image-glow {
  position: absolute;
  inset: -8px;
  background: radial-gradient(circle, rgba(var(--color-primary), 0.4), transparent 70%);
  border-radius: 50%;
  filter: blur(15px);
  animation: glow-pulse-soft 3s ease-in-out infinite;
}

@keyframes glow-pulse-soft {
  0%, 100% {
    opacity: 0.5;
    transform: scale(1);
  }
  50% {
    opacity: 0.8;
    transform: scale(1.1);
  }
}

.author-image {
  width: 120px;
  height: 120px;
  border-radius: 50%;
  border: 3px solid rgba(255, 255, 255, 0.1);
  box-shadow: 0 8px 32px rgba(0, 0, 0, 0.5);
  object-fit: cover;
  position: relative;
  z-index: 1;
  filter: grayscale(30%) brightness(1.05);
  transition: all 0.5s ease;
}

.author-image:hover {
  filter: grayscale(0%) brightness(1.1);
  transform: scale(1.05);
  border-color: rgba(var(--color-accent), 0.4);
}

.author-info {
  text-align: left;
  flex: 1;
  min-width: 280px;
  max-width: 400px;
}

.author-name {
  font-size: 1.5rem;
  font-weight: 700;
  color: #ffffff;
  margin-bottom: 0.5rem;
  letter-spacing: 0.3px;
}

.author-position {
  font-size: 1.1rem;
  color: var(--hex-verdigris);
  margin-bottom: 0.3rem;
  font-weight: 500;
}

.author-company {
  font-size: 1.05rem;
  color: var(--hex-tiffany-blue);
  font-weight: 600;
  margin-bottom: 0.4rem;
}

.author-location {
  font-size: 0.95rem;
  color: #888;
  margin-bottom: 1rem;
  display: flex;
  align-items: center;
  gap: 0.5rem;
}

.author-location::before {
  content: '📍';
  font-size: 0.9rem;
}

.review-company-logo {
  height: 40px;
  width: auto;
  filter: grayscale(100%) brightness(1.5);
  opacity: 0.6;
  transition: all 0.4s ease;
}

.review-company-logo:hover {
  filter: grayscale(0%) brightness(1);
  opacity: 1;
  transform: scale(1.05);
}

/* Case Study Button - Minimalistic Design */
.case-study-toggle-btn {
  position: relative;
  margin: 3rem auto 0;
  padding: 0;
  background: none;
  border: none;
  color: var(--hex-tiffany-blue);
  cursor: pointer;
  font-family: 'Raleway', sans-serif;
  font-size: 1rem;
  font-weight: 500;
  letter-spacing: 0.05em;
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  transition: all 0.3s ease;
  z-index: 1;
}

.case-study-toggle-btn::after {
  content: '';
  position: absolute;
  bottom: -4px;
  left: 0;
  width: 100%;
  height: 1px;
  background: var(--hex-tiffany-blue);
  transform: scaleX(0);
  transform-origin: right;
  transition: transform 0.3s ease;
}

.case-study-toggle-btn:hover {
  color: var(--hex-verdigris);
}

.case-study-toggle-btn:hover::after {
  transform: scaleX(1);
  transform-origin: left;
}

.toggle-arrow {
  display: inline-block;
  transition: transform 0.3s ease;
  font-size: 0.8em;
}

.case-study-toggle-btn:hover .toggle-arrow {
  transform: translateX(4px);
}

/* Case Study Section */
.case-study-section {
  max-height: 0;
  overflow: hidden;
  opacity: 0;
  transition: max-height 0.5s ease, opacity 0.3s ease, margin-top 0.5s ease;
  margin-top: 0;
  z-index: 1;
  position: relative;
}

.case-study-section.active {
  max-height: 2000px;
  opacity: 1;
  margin-top: 4rem;
}

.case-study-container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 1rem;
}

.case-study-header {
  text-align: center;
  margin-bottom: 3rem;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 1.5rem;
}

.case-study-logo {
  height: 60px;
  width: auto;
  filter: grayscale(100%) brightness(1.5);
  opacity: 0.7;
}

.case-study-title {
  font-size: 2.5rem;
  font-weight: 700;
  color: #ffffff;
  margin-bottom: 0.5rem;
}

.case-study-subtitle {
  color: #888;
  font-size: 0.9rem;
  text-transform: uppercase;
  letter-spacing: 2px;
}

/* Animated Cards Grid */
.cs-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 2rem;
  position: relative;
  z-index: 1;
}

.cs-card {
  background-color: var(--hex-black);
  box-shadow:
    0px 3px 6px rgba(0, 0, 0, 0.05),
    0px 8px 15px rgba(0, 0, 0, 0.1),
    0 0 0 1px rgba(var(--color-primary), 0.1);
  padding: 56px 20px 20px;
  border-radius: 15px;
  cursor: pointer;
  position: relative;
  transition: box-shadow 0.25s;
}

.cs-card::before {
  content: '';
  position: absolute;
  inset: 0;
  border-radius: 15px;
  background-color: rgba(255, 255, 255, 0.015);
}

.cs-icon {
  z-index: 2;
  position: relative;
  display: table;
  padding: 8px;
}

.cs-icon::after {
  content: '';
  position: absolute;
  inset: 4.5px;
  border-radius: 50%;
  background-color: rgba(255, 255, 255, 0.08);
  border: 1px solid rgba(var(--color-primary), 0.2);
  backdrop-filter: blur(2px);
  transition: background-color 0.25s, border-color 0.25s;
}

.cs-icon svg {
  position: relative;
  z-index: 1;
  display: block;
  width: 24px;
  height: 24px;
  color: var(--hex-verdigris);
  transition: color 0.25s;
  stroke-width: 1.5;
}

.cs-card h4 {
  z-index: 2;
  position: relative;
  margin: 12px 0 8px;
  font-weight: 600;
  font-size: 1.1rem;
  line-height: 1.4;
  color: #ffffff;
}

.cs-card p,
.cs-card ul {
  z-index: 2;
  position: relative;
  margin: 0;
  font-size: 0.95rem;
  line-height: 1.7;
  color: #a1a1aa;
}

.cs-card ul {
  list-style: none;
  padding: 0;
}

.cs-card ul li {
  padding: 0.4rem 0;
  padding-left: 1.5rem;
  position: relative;
}

.cs-card ul li::before {
  content: '✓';
  position: absolute;
  left: 0;
  color: var(--hex-verdigris);
  font-weight: bold;
}

.cs-tech-list {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
  z-index: 2;
  position: relative;
}

.cs-tech-badge {
  display: inline-block;
  padding: 0.4rem 0.8rem;
  background: rgba(var(--color-primary), 0.1);
  border: 1px solid rgba(var(--color-primary), 0.3);
  border-radius: 6px;
  color: var(--hex-tiffany-blue);
  font-size: 0.85rem;
  font-weight: 500;
  transition: all 0.3s ease;
}

.cs-tech-badge:hover {
  background: rgba(var(--color-primary), 0.2);
  border-color: var(--hex-verdigris);
}

.cs-results-list {
  display: flex;
  flex-direction: column;
  gap: 0.8rem;
  z-index: 2;
  position: relative;
}

.cs-result-item {
  position: relative;
  padding-left: 1.5rem;
  color: #a1a1aa;
  font-size: 0.95rem;
  line-height: 1.5;
}

.cs-result-item::before {
  content: '✓';
  position: absolute;
  left: 0;
  color: var(--hex-verdigris);
  font-weight: bold;
  font-size: 1.1rem;
}

/* Card Shine Effect */
.cs-shine {
  border-radius: inherit;
  position: absolute;
  inset: 0;
  z-index: 1;
  overflow: hidden;
  opacity: 1;
  transition: opacity 0.5s;
}

.cs-shine::before {
  content: '';
  width: 150%;
  padding-bottom: 150%;
  border-radius: 50%;
  position: absolute;
  left: 50%;
  bottom: 55%;
  filter: blur(35px);
  opacity: 0.1;
  transform: translateX(-50%);
  background-image: conic-gradient(from 205deg at 50% 50%, rgba(var(--color-primary), 0) 0deg, var(--hex-verdigris) 25deg, rgba(var(--color-accent), 0.18) 295deg, rgba(var(--color-primary), 0) 360deg);
}

/* Unique shine angles for each card */
.cs-card:nth-child(1) .cs-shine::before {
  background-image: conic-gradient(from 205deg at 50% 50%, rgba(var(--color-primary), 0) 0deg, var(--hex-verdigris) 25deg, rgba(var(--color-accent), 0.18) 295deg, rgba(var(--color-primary), 0) 360deg);
}

.cs-card:nth-child(2) .cs-shine::before {
  background-image: conic-gradient(from 130deg at 45% 55%, rgba(var(--color-primary), 0) 0deg, var(--hex-tiffany-blue) 35deg, rgba(var(--color-accent), 0.2) 280deg, rgba(var(--color-primary), 0) 360deg);
}

.cs-card:nth-child(3) .cs-shine::before {
  background-image: conic-gradient(from 310deg at 55% 48%, rgba(var(--color-primary), 0) 0deg, var(--hex-caribbean-current) 30deg, rgba(var(--color-accent), 0.15) 300deg, rgba(var(--color-primary), 0) 360deg);
}

/* Card Background Animation */
.cs-background {
  border-radius: inherit;
  position: absolute;
  inset: 0;
  overflow: hidden;
  -webkit-mask-image: radial-gradient(circle at 60% 5%, black 0%, black 15%, transparent 60%);
  mask-image: radial-gradient(circle at 60% 5%, black 0%, black 15%, transparent 60%);
}

/* Unique mask patterns for each card */
.cs-card:nth-child(1) .cs-background {
  -webkit-mask-image: radial-gradient(circle at 60% 5%, black 0%, black 15%, transparent 60%);
  mask-image: radial-gradient(circle at 60% 5%, black 0%, black 15%, transparent 60%);
}

.cs-card:nth-child(2) .cs-background {
  -webkit-mask-image: radial-gradient(circle at 40% 10%, black 0%, black 18%, transparent 65%);
  mask-image: radial-gradient(circle at 40% 10%, black 0%, black 18%, transparent 65%);
}

.cs-card:nth-child(3) .cs-background {
  -webkit-mask-image: radial-gradient(circle at 70% 8%, black 0%, black 12%, transparent 55%);
  mask-image: radial-gradient(circle at 70% 8%, black 0%, black 12%, transparent 55%);
}

.cs-tiles {
  opacity: 1;
  transition: opacity 0.25s;
}

.cs-tile {
  position: absolute;
  background-color: rgba(var(--color-primary), 0.05);
  animation-duration: 8s;
  animation-iteration-count: infinite;
  animation-name: cs-tile;
  opacity: 0;
}

/* Default tile delays (Card 1) */
.cs-tile:nth-child(4),
.cs-tile:nth-child(6),
.cs-tile:nth-child(10) {
  animation-delay: -2s;
}

.cs-tile:nth-child(3),
.cs-tile:nth-child(5),
.cs-tile:nth-child(8) {
  animation-delay: -4s;
}

.cs-tile:nth-child(2),
.cs-tile:nth-child(9) {
  animation-delay: -6s;
}

/* Card 2 - Different tile animation delays */
.cs-card:nth-child(2) .cs-tile:nth-child(1),
.cs-card:nth-child(2) .cs-tile:nth-child(7) {
  animation-delay: -1.5s;
}

.cs-card:nth-child(2) .cs-tile:nth-child(2),
.cs-card:nth-child(2) .cs-tile:nth-child(6),
.cs-card:nth-child(2) .cs-tile:nth-child(9) {
  animation-delay: -3s;
}

.cs-card:nth-child(2) .cs-tile:nth-child(3),
.cs-card:nth-child(2) .cs-tile:nth-child(8) {
  animation-delay: -5s;
}

/* Card 3 - Different tile animation delays */
.cs-card:nth-child(3) .cs-tile:nth-child(1),
.cs-card:nth-child(3) .cs-tile:nth-child(5),
.cs-card:nth-child(3) .cs-tile:nth-child(10) {
  animation-delay: -1s;
}

.cs-card:nth-child(3) .cs-tile:nth-child(4),
.cs-card:nth-child(3) .cs-tile:nth-child(7) {
  animation-delay: -3.5s;
}

.cs-card:nth-child(3) .cs-tile:nth-child(2),
.cs-card:nth-child(3) .cs-tile:nth-child(6) {
  animation-delay: -5.5s;
}

@keyframes cs-tile {
  0%, 12.5%, 100% { opacity: 1; }
  25%, 82.5% { opacity: 0; }
}

.cs-tile:nth-child(1) { top: 0; left: 0; height: 10%; width: 22.5%; }
.cs-tile:nth-child(2) { top: 0; left: 22.5%; height: 10%; width: 27.5%; }
.cs-tile:nth-child(3) { top: 0; left: 50%; height: 10%; width: 27.5%; }
.cs-tile:nth-child(4) { top: 0; left: 77.5%; height: 10%; width: 22.5%; }
.cs-tile:nth-child(5) { top: 10%; left: 0; height: 22.5%; width: 22.5%; }
.cs-tile:nth-child(6) { top: 10%; left: 22.5%; height: 22.5%; width: 27.5%; }
.cs-tile:nth-child(7) { top: 10%; left: 50%; height: 22.5%; width: 27.5%; }
.cs-tile:nth-child(8) { top: 10%; left: 77.5%; height: 22.5%; width: 22.5%; }
.cs-tile:nth-child(9) { top: 32.5%; left: 50%; height: 22.5%; width: 27.5%; }
.cs-tile:nth-child(10) { top: 32.5%; left: 77.5%; height: 22.5%; width: 22.5%; }

.cs-line {
  position: absolute;
  inset: 0;
  opacity: 1;
  transition: opacity 0.35s;
}

.cs-line::before,
.cs-line::after {
  content: '';
  position: absolute;
  background-color: rgba(var(--color-primary), 0.15);
  transition: transform 0.35s;
}

.cs-line::before {
  left: 0;
  right: 0;
  height: 1px;
  transform-origin: 0 50%;
  transform: scaleX(1);
}

.cs-line::after {
  top: 0;
  bottom: 0;
  width: 1px;
  transform-origin: 50% 0;
  transform: scaleY(1);
}

/* Default line positions (Card 1) */
.cs-line:nth-child(1)::before { top: 10%; }
.cs-line:nth-child(1)::after { left: 22.5%; }
.cs-line:nth-child(1)::before,
.cs-line:nth-child(1)::after { transition-delay: 0.3s; }

.cs-line:nth-child(2)::before { top: 32.5%; }
.cs-line:nth-child(2)::after { left: 50%; }
.cs-line:nth-child(2)::before,
.cs-line:nth-child(2)::after { transition-delay: 0.15s; }

.cs-line:nth-child(3)::before { top: 55%; }
.cs-line:nth-child(3)::after { right: 22.5%; }

/* Card 2 - Different line positions */
.cs-card:nth-child(2) .cs-line:nth-child(1)::before { top: 15%; }
.cs-card:nth-child(2) .cs-line:nth-child(1)::after { left: 30%; }

.cs-card:nth-child(2) .cs-line:nth-child(2)::before { top: 45%; }
.cs-card:nth-child(2) .cs-line:nth-child(2)::after { left: 60%; }

.cs-card:nth-child(2) .cs-line:nth-child(3)::before { top: 70%; }
.cs-card:nth-child(2) .cs-line:nth-child(3)::after { right: 15%; }

/* Card 3 - Different line positions */
.cs-card:nth-child(3) .cs-line:nth-child(1)::before { top: 8%; }
.cs-card:nth-child(3) .cs-line:nth-child(1)::after { left: 18%; }

.cs-card:nth-child(3) .cs-line:nth-child(2)::before { top: 38%; }
.cs-card:nth-child(3) .cs-line:nth-child(2)::after { left: 45%; }

.cs-card:nth-child(3) .cs-line:nth-child(3)::before { top: 62%; }
.cs-card:nth-child(3) .cs-line:nth-child(3)::after { right: 28%; }

/* Card Hover States - Only add border on hover */
.cs-card:hover {
  box-shadow:
    0px 3px 6px rgba(0, 0, 0, 0.04),
    0px 15px 25px rgba(0, 0, 0, 0.3),
    0 0 0 2px rgba(var(--color-primary), 0.5);
}

.cs-card:hover .cs-icon::after {
  background-color: rgba(var(--color-accent), 0.1);
  border-color: rgba(var(--color-accent), 0.3);
}

.cs-card:hover .cs-icon svg {
  color: var(--hex-tiffany-blue);
}


@media (max-width: 768px) {
  .quote-mark-left,
  .quote-mark-right {
    font-size: 5rem;
  }

  .review-quote {
    font-size: 1.2rem;
    padding: 0 0.5rem;
    line-height: 1.6;
  }

  .author-image {
    width: 100px;
    height: 100px;
  }

  .author-name {
    font-size: 1.3rem;
  }

  .author-position,
  .author-company {
    font-size: 1rem;
  }

  .case-study-header {
    flex-direction: column;
    gap: 1rem;
    margin-bottom: 2.5rem;
  }

  .case-study-logo {
    height: 40px;
  }

  .case-study-title {
    font-size: 1.6rem;
  }

  /* Mobile: Adjust case study cards */
  .cs-grid {
    grid-template-columns: 1fr;
    gap: 1.5rem;
  }

  .cs-card {
    padding: 48px 16px 16px;
  }

  .cs-card-title {
    font-size: 1.1rem;
  }

  .cs-card-content {
    font-size: 0.9rem;
  }

  .cs-tech-badge {
    font-size: 0.8rem;
    padding: 0.3rem 0.6rem;
  }
}
