/* Article Styles - Reusable for all case studies */

:root {
  --article-max-width: 1200px;
  --article-content-width: 800px;
  --article-spacing: 80px;
  --article-section-spacing: 60px;
  --article-paragraph-spacing: 20px;
  --brand-cyan: #00c2ff;
  --brand-magenta: #bd00ff;
  --var-black: black;
  --var-white: white;
  --var-gray: #c6c6c6;
  --var-dark-gray: #444;
}

/* Article Hero Section */
.article-hero {
  background: linear-gradient(135deg, var(--var-white) 0%, #f8f9fa 100%);
  padding-top: 120px;
  padding-bottom: 80px;
  position: relative;
  overflow: hidden;
}

.hero-bg-image {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  opacity: 0.1;
  z-index: 1;
}

.hero-bg-pattern {
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background-image: url("data:image/svg+xml,%3Csvg width='60' height='60' viewBox='0 0 60 60' xmlns='http://www.w3.org/2000/svg'%3E%3Cg fill='none' fill-rule='evenodd'%3E%3Cg fill='%2300c2ff' fill-opacity='0.03'%3E%3Cpath d='M36 34v-4h-2v4h-4v2h4v4h2v-4h4v-2h-4zm0-30V0h-2v4h-4v2h4v4h2V6h4V4h-4zM6 34v-4H4v4H0v2h4v4h2v-4h4v-2H6zM6 4V0H4v4H0v2h4v4h2V6h4V4H6z'/%3E%3C/g%3E%3C/g%3E%3C/svg%3E");
  z-index: 2;
}

.hero-gradient-overlay {
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: linear-gradient(135deg, rgba(0, 194, 255, 0.02) 0%, rgba(189, 0, 255, 0.02) 100%);
  z-index: 3;
}

.article-hero .container {
  position: relative;
  z-index: 4;
}

.container.article {
  max-width: var(--article-max-width);
  margin: 0 auto;
  padding: 0 20px;
}

.article-header {
  max-width: var(--article-content-width);
  margin: 0 auto;
  text-align: center;
}

.article-title {
  font-size: clamp(36px, 5vw, 56px);
  font-weight: 800;
  color: var(--var-black);
  margin-bottom: 16px;
  line-height: 1.2;
  position: relative;
}

.article-title::after {
  content: "";
  position: absolute;
  bottom: -8px;
  left: 50%;
  transform: translateX(-50%);
  width: 80px;
  height: 4px;
  background: linear-gradient(90deg, var(--brand-cyan), var(--brand-magenta));
  border-radius: 2px;
}

.article-subtitle {
  font-size: clamp(18px, 2.5vw, 24px);
  font-weight: 400;
  color: var(--var-dark-gray);
  margin-bottom: 32px;
  line-height: 1.4;
  margin-top: 20px;
}

.article-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 32px;
  justify-content: center;
  padding: 32px 24px;
  margin-top: 32px;
  border-radius: 20px;
  background: rgba(255, 255, 255, 0.8);
  border: 1px solid rgba(0, 194, 255, 0.1);
  backdrop-filter: blur(20px);
  box-shadow: 0 20px 60px rgba(0, 0, 0, 0.08);
  position: relative;
}

.article-meta::before {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 2px;
  background: linear-gradient(90deg, var(--brand-cyan), var(--brand-magenta));
  border-radius: 20px 20px 0 0;
}

.meta-item {
  display: flex;
  flex-direction: column;
  gap: 8px;
  align-items: center;
  padding: 0 20px;
  position: relative;
}

.meta-item:not(:last-child)::after {
  content: "";
  position: absolute;
  right: -16px;
  top: 50%;
  transform: translateY(-50%);
  width: 1px;
  height: 40px;
  background: linear-gradient(180deg, transparent, rgba(0, 194, 255, 0.3), transparent);
}

.meta-label {
  font-size: 12px;
  font-weight: 700;
  text-transform: uppercase;
  color: var(--brand-magenta);
  letter-spacing: 1px;
}

.meta-value {
  font-size: 16px;
  font-weight: 600;
  color: var(--var-black);
}

/* Smooth transition to content */
.to-dark-bg {
  height: 120px;
  background: linear-gradient(180deg, #f8f9fa 0%, var(--var-black) 100%);
  position: relative;
  z-index: 10;
}

/* Article Content */
.article-content {
  background-color: var(--var-black);
  padding: 0;
  position: relative;
  overflow: hidden;
}

/* Mesh Animation Background - Properly positioned */
.article-mesh-animation {
  position: absolute;
  right: -40%;
  top: 30%;
  transform: translate(-50%, 50%);
  width: 1000px;
  height: 1000px;
  /* border-radius: 50%; */
  opacity: 0.5;
  z-index: 0;
  pointer-events: none;
  filter: blur(60px);
}

.article-mesh-animation video {
  width: 100%;
  height: 100%;
  object-fit: cover;
  border-radius: 50%;
}

/* Sticky CTA Button */
.sticky-cta {
  position: fixed;
  bottom: 30px;
  right: 30px;
  background: linear-gradient(135deg, var(--brand-cyan) 0%, var(--brand-magenta) 100%);
  color: white;
  padding: 16px 24px;
  border-radius: 50px;
  text-decoration: none;
  display: flex;
  align-items: center;
  gap: 8px;
  font-weight: 600;
  box-shadow: 0 10px 40px rgba(0, 194, 255, 0.3);
  transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
  z-index: 1000;
}

.sticky-cta:hover {
  transform: translateY(-4px);
  box-shadow: 0 20px 60px rgba(0, 194, 255, 0.4);
}

.cta-icon {
  transition: transform 0.3s ease;
}

.sticky-cta:hover .cta-icon {
  transform: translate(3px, -3px);
}

/* Image Showcase Slider */
.showcase-section {
  padding: var(--article-spacing) 20px;
  /* background: #0f0f0f; */
  margin: 0;
  position: relative;
}

.showcase-section::before {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 2px;
  background: linear-gradient(90deg, transparent, var(--brand-cyan) 30%, var(--brand-magenta) 70%, transparent);
}

.showcase-slider {
  max-width: 1100px;
  margin: 60px auto;
}

.splide__slide {
  opacity: 0.6;
  transition: opacity 0.3s ease;
}

.splide__slide.is-active {
  opacity: 1;
}

.slide-content {
  text-align: center;
  background: linear-gradient(135deg, #1a1a1a 0%, #2d2d2d 100%);
  border-radius: 24px;
  overflow: hidden;
  border: 1px solid rgba(0, 194, 255, 0.1);
  transition: all 0.3s ease;
  box-shadow: 0 8px 32px rgba(0, 0, 0, 0.2);
}

.slide-content:hover {
  border-color: rgba(0, 194, 255, 0.3);
  box-shadow: 0 12px 48px rgba(0, 0, 0, 0.3);
  transform: translateY(-4px);
}

.splide__slide img {
  width: 100%;
  height: 500px;
  object-fit: cover;
  transition: transform 0.3s ease;
}

.slide-content:hover img {
  transform: scale(1.02);
}

.slide-caption {
  padding: 24px;
  background: linear-gradient(135deg, rgba(0, 0, 0, 0.9) 0%, rgba(0, 194, 255, 0.1) 100%);
  color: white;
  font-weight: 600;
  font-size: 18px;
}

/* Splide Arrow Styling */
.splide__arrow {
  width: 44px;
  height: 44px;
  background: rgba(255, 255, 255, 0.4);
  border-radius: 999px;
  box-shadow: 0 2px 12px rgba(0, 0, 0, 0.15);
  transition: all 0.3s ease;
  backdrop-filter: blur(30px);
  opacity: 1;
}

.splide__arrow svg {
  width: 16px;
  height: 16px;
  fill: var(--var-black);
  transition: fill 0.3s ease;
}

.splide__arrow:hover {
  background: rgba(255, 255, 255, 1);
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.2);
  /* transform: scale(1.05); */
}

.splide__arrow:hover svg {
  fill: var(--brand-cyan);
}

.splide__arrow:disabled {
  opacity: 0.3;
}

/* Splide Pagination Styling */
.splide__pagination {
  bottom: -50px;
}

.splide__pagination__page {
  width: 12px;
  height: 12px;
  background: rgba(255, 255, 255, 0.3);
  border-radius: 6px;
  transition: all 0.3s ease;
}

.splide__pagination__page.is-active {
  background: var(--brand-magenta);
  /* width: 30px; */
  transform: scale(1);
}

.showcase-section .section-heading {
  color: white;
  text-align: center;
  margin-bottom: 40px;
  font-size: 36px;
}

/* Article Sections */
.article-section {
  width: 100%;
  margin: 0;
  padding: var(--article-spacing) 0;
  position: relative;
  z-index: 1;
  color: var(--var-white);
}

.article-section > * {
  max-width: var(--article-content-width);
  margin-left: auto;
  margin-right: auto;
  padding-left: 20px;
  padding-right: 20px;
}

.article-section.light-bg {
  background: var(--var-white);
  color: var(--var-black);
}

.article-section.dark-bg {
  background: var(--var-black);
  color: var(--var-white);
}

.article-section.dark-bg .section-heading {
  color: var(--var-white) !important;
}

.article-section.dark-bg .section-heading::before {
  background: linear-gradient(180deg, var(--brand-cyan), var(--brand-magenta));
}

.article-section.dark-bg .article-paragraph {
  color: rgba(255, 255, 255, 0.9) !important;
}

.article-section.dark-bg .highlight-box {
  background: linear-gradient(135deg, rgba(0, 194, 255, 0.08) 0%, rgba(189, 0, 255, 0.08) 100%);
  border-color: rgba(0, 194, 255, 0.3);
}

.article-section.dark-bg .highlight-list li {
  color: rgba(255, 255, 255, 0.9) !important;
}

.article-section.dark-bg .highlight-list strong {
  background: linear-gradient(135deg, var(--brand-cyan), var(--brand-magenta));
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  /* Fallback for browsers that don't support background-clip */
  color: var(--brand-cyan) !important;
}

.article-section.dark-bg .highlight-title {
  background: linear-gradient(135deg, var(--brand-cyan), var(--brand-magenta));
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  /* Fallback for browsers that don't support background-clip */
  color: var(--brand-cyan) !important;
}

.section-heading {
  font-size: 36px;
  font-weight: 700;
  /* color: var(--var-black); */
  margin-bottom: 32px;
  position: relative;
  padding-left: 24px;
}

.section-heading::before {
  content: "";
  position: absolute;
  left: 0;
  top: 0;
  bottom: 0;
  width: 5px;
  background: linear-gradient(180deg, var(--brand-cyan), var(--brand-magenta));
  border-radius: 3px;
  box-shadow: 0 0 20px rgba(0, 194, 255, 0.3);
}

.section-content {
  padding-left: 24px;
}

.article-paragraph {
  font-size: 18px;
  line-height: 1.8;
  /* color: var(--var-black); */
  margin-bottom: var(--article-paragraph-spacing);
  font-weight: 400;
}

/* Highlight Cards */
.highlight-cards {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 24px;
  margin-top: 40px;
}

.highlight-card {
  background: rgba(255, 255, 255, 0.05);
  border: 1px solid rgba(255, 255, 255, 0.15);
  border-radius: 16px;
  padding: 24px;
  /* box-shadow: 0 4px 20px rgba(0, 0, 0, 0.04); */
  transition: all 0.3s ease;
  position: relative;
  overflow: hidden;
  backdrop-filter: blur(35px);
  color: var(--var-white);
}

/* .highlight-card::before {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 3px;
  background: linear-gradient(90deg, var(--brand-cyan), var(--brand-magenta)); 
  border-radius: 16px 16px 0 0;
} */

.highlight-card:hover {
  box-shadow: 0 12px 40px rgba(0, 194, 255, 0.1);
  transform: translateY(-6px);
  border-color: rgba(255, 255, 255, 0.5);
}

.card-icon {
  width: 48px;
  height: 48px;
  background: rgba(255, 255, 255, 0.2);
  border: 1px solid rgba(255, 255, 255, 0.35);
  border-radius: 12px;
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 16px;
  color: var(--var-white);
  backdrop-filter: blur(35px);
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
}

.card-content {
  flex: 1;
}

.card-title {
  font-size: 18px;
  font-weight: 700;
  margin-bottom: 8px;
  line-height: 1.3;
}

.card-description {
  font-size: 14px;
  line-height: 1.5;
  /* color: var(--var-dark-gray); */
  opacity: 0.8;
  margin: 0;
}

/* Dark background card styles */
.article-section.dark-bg .highlight-card {
  background: rgba(0, 0, 0, 0.4);
  border: 1px solid rgba(0, 0, 0, 0.55);
}

.article-section.dark-bg .highlight-card:hover {
  border-color: rgba(0, 0, 0, 0.7);
}

.article-section.dark-bg .card-icon {
  background: rgba(0, 0, 0, 0.4);
  border: 1px solid rgba(0, 0, 0, 0.55);
  color: var(--var-white);
}

.article-section.dark-bg .card-title {
  color: var(--var-white) !important;
}

.article-section.dark-bg .card-description {
  color: rgba(255, 255, 255, 0.8) !important;
}

/* Article Navigation */
.article-navigation {
  max-width: var(--article-content-width);
  margin: 0 auto;
  padding: 60px 20px;
  border-top: 2px solid rgba(0, 194, 255, 0.2);
  display: flex;
  justify-content: center;
  align-items: center;
  background: var(--var-black);
}

.link-btn.article-nav {
  background: linear-gradient(135deg, var(--brand-cyan), var(--brand-magenta));
  color: var(--var-white);
  border: none;
  border-radius: 50px;
  padding: 18px 32px;
  font-weight: 700;
  text-decoration: none;
  display: inline-flex;
  align-items: center;
  gap: 12px;
  transition: all 0.3s ease;
  box-shadow: 0 10px 30px rgba(0, 194, 255, 0.3);
}

.link-btn.article-nav:hover {
  transform: translateY(-3px);
  box-shadow: 0 20px 50px rgba(0, 194, 255, 0.4);
}

.nav-arrow {
  width: 20px;
  height: 20px;
  transition: transform 0.3s ease;
  filter: brightness(0) invert(1);
}

.nav-arrow.left {
  transform: rotate(90deg);
}

.link-btn.article-nav:hover .nav-arrow {
  transform: rotate(90deg) translate(2px, -2px);
}

/* Animation for sections on scroll */
.article-section {
  opacity: 0;
  transform: translateY(30px);
  animation: fadeInUp 0.8s ease forwards;
}

.showcase-section { animation-delay: 0.1s; }
.article-section:nth-child(2) { animation-delay: 0.2s; }
.article-section:nth-child(3) { animation-delay: 0.3s; }
.article-section:nth-child(4) { animation-delay: 0.4s; }
.article-section:nth-child(5) { animation-delay: 0.5s; }
.article-section:nth-child(6) { animation-delay: 0.6s; }
.article-section:nth-child(7) { animation-delay: 0.7s; }

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

/* Responsive Design */
@media (max-width: 1024px) {
  .article-mesh-animation {
    width: 600px;
    height: 600px;
    right: -25%;
    /* opacity: 0.1; */
  }
  
  .sticky-cta {
    bottom: 20px;
    right: 20px;
    padding: 14px 20px;
  }
}

@media (max-width: 768px) {
  .article-mesh-animation {
    width: 400px;
    height: 400px;
    right: -30%;
    /* opacity: 0.08; */
    filter: blur(80px) hue-rotate(180deg);
  }
  
  .article-hero {
    padding-top: 100px;
    padding-bottom: 60px;
  }

  .article-title {
    font-size: 32px;
  }

  .article-meta {
    flex-direction: column;
    gap: 20px;
    padding: 24px 20px;
  }

  .meta-item {
    flex-direction: row;
    justify-content: space-between;
    width: 100%;
    padding: 16px 0;
    border-bottom: 1px solid rgba(0, 194, 255, 0.1);
  }
  
  .meta-item:not(:last-child)::after {
    display: none;
  }
  
  .meta-item:last-child {
    border-bottom: none;
  }

  .section-heading {
    font-size: 28px;
    padding-left: 20px;
  }

  .section-content {
    padding-left: 20px;
  }

  .article-paragraph {
    font-size: 16px;
    line-height: 1.7;
  }

  .highlight-box {
    padding: 24px;
    border-radius: 16px;
  }

  .splide__slide img {
    height: 350px;
  }
  
  .sticky-cta {
    bottom: 15px;
    right: 15px;
    padding: 12px 18px;
    font-size: 14px;
  }
  
  .showcase-slider {
    margin: 40px auto;
  }

  .highlight-cards {
    grid-template-columns: 1fr;
    gap: 20px;
  }
}

@media (max-width: 480px) {
  .article-mesh-animation {
    /* display: none; */
    width: 400px;
    height: 400px;
    right: -50%;
    filter: blur(80px) hue-rotate(180deg);
  }
  
  .article-title {
    font-size: 26px;
  }

  .article-title::after {
    width: 60px;
    height: 3px;
  }

  .article-subtitle {
    font-size: 16px;
  }

  .section-heading {
    font-size: 22px;
    padding-left: 16px;
  }

  .section-content {
    padding-left: 16px;
  }

  .article-paragraph {
    font-size: 15px;
  }

  .highlight-list li {
    font-size: 14px;
    padding-left: 24px;
  }
  
  .sticky-cta .cta-text {
    display: none;
  }
  
  .sticky-cta {
    width: 56px;
    height: 56px;
    padding: 0;
    justify-content: center;
    border-radius: 50%;
  }
  
  .splide__slide img {
    height: 250px;
  }

  .meta-item {
    padding: 12px 0;
  }

  .article-section {
    padding: 60px 0;
  }

  .showcase-section {
    padding: 60px 10px;
  }

  .highlight-cards {
    gap: 16px;
    margin-top: 24px;
  }

  .highlight-card {
    padding: 20px;
  }

  .card-icon {
    width: 40px;
    height: 40px;
  }

  .card-title {
    font-size: 16px;
  }

  .card-description {
    font-size: 13px;
  }
}

/* Print styles */
@media print {
  .navbar,
  .footer,
  .article-navigation,
  .sticky-cta,
  .showcase-section,
  .article-mesh-animation {
    display: none;
  }

  .article-hero {
    background: white;
    padding-bottom: 20px;
  }
  
  .article-title,
  .article-subtitle {
    color: black;
  }

  .article-title::after {
    display: none;
  }

  .article-section {
    page-break-inside: avoid;
    background: white !important;
    color: black !important;
  }

  .highlight-box {
    border: 2px solid #00c2ff;
    box-shadow: none;
    background: #f8f9fa;
  }

  .highlight-title,
  .highlight-list strong {
    color: #00c2ff !important;
    -webkit-text-fill-color: #00c2ff !important;
  }
}