:root {
  --bg: #0b0d12;
  --bg-alt: #111520;
  --card: #161b29;
  --text: #f3f5f8;
  --muted: #b8c0d9;
  --primary: #9b7cff;
  --primary-2: #6f49ff;
  --border: rgba(255, 255, 255, 0.08);
}

 
/* Logos Carousel */
.logos-carousel {
  background: var(--bg-alt);
  padding: 2rem 0;
  overflow: hidden;
  position: relative;
}

.logos-carousel::before,
.logos-carousel::after {
  content: '';
  position: absolute;
  top: 0;
  bottom: 0;
  width: 100px;
  z-index: 2;
  pointer-events: none;
}

.logos-carousel::before {
  left: 0;
  background: linear-gradient(90deg, var(--bg-alt), transparent);
}

.logos-carousel::after {
  right: 0;
  background: linear-gradient(-90deg, var(--bg-alt), transparent);
}

.logos-track {
  display: flex;
  animation: scroll-logos 25s linear infinite;
  width: max-content;
}

.logos-slide {
  display: flex;
  align-items: center;
  gap: 4rem;
  padding: 0 2rem;
}

.logos-slide img {
  height: 36px;
  width: auto;
  opacity: 1;
  filter: grayscale(0%);
  transition: opacity 0.3s ease, filter 0.3s ease, transform 0.3s ease;
}

.logos-slide img:hover {
  opacity: 1;
  filter: grayscale(0%) brightness(1.1);
  transform: scale(1.05);
}

body.light .logos-slide img {
  filter: brightness(1);
}

body.light .logos-slide img:hover {
  filter: brightness(1.05);
}

@keyframes scroll-logos {
  0% {
    transform: translateX(0);
  }
  100% {
    transform: translateX(-33.333%);
  }
}

/* Testimonials Section */
.testimonials-section {
  padding: 1rem 0;
  background: var(--bg);
  overflow: hidden;
  position: relative;
}

.testimonials-section h2 {
  text-align: center;
  margin-bottom: 0.5rem;
}

.testimonials-section .section-intro {
  text-align: center;
  margin-bottom: 2rem;
}

.testimonials-wrapper {
  overflow: hidden;
  position: relative;
  padding: 1rem 0;
}

.testimonials-track {
  display: flex;
  gap: 1.5rem;
  width: max-content;
  cursor: grab;
}

.testimonials-track:active {
  cursor: grabbing;
}

.testimonial-card {
  background: linear-gradient(135deg, rgba(155, 124, 255, 0.08), rgba(111, 73, 255, 0.03));
  border: 1px solid var(--border);
  border-radius: 16px;
  padding: 1.25rem 1.5rem;
  min-width: 340px;
  max-width: 340px;
  position: relative;
  transition: transform 0.3s ease, box-shadow 0.3s ease;
  cursor: grab;
}

.testimonial-card:active {
  cursor: grabbing;
}

.testimonial-card:hover {
  transform: translateY(-5px);
  box-shadow: 0 10px 40px rgba(155, 124, 255, 0.15);
}

.quote-icon {
  font-size: 2rem;
  color: var(--primary);
  opacity: 0.5;
  font-family: Georgia, serif;
  line-height: 1;
}

.quote-icon.open {
  position: absolute;
  top: 0.75rem;
  left: 1rem;
}

.quote-icon.close {
  position: absolute;
  bottom: 4rem;
  right: 1rem;
}

.testimonial-highlight {
  font-size: 0.95rem;
  font-weight: 600;
  color: var(--text);
  margin: 1rem 0 0.5rem;
  line-height: 1.4;
}

.testimonial-detail {
  font-size: 0.85rem;
  color: var(--muted);
  line-height: 1.5;
  margin-bottom: 1rem;
  display: -webkit-box;
  /*-webkit-line-clamp: 4;*/
  -webkit-box-orient: vertical;
  overflow: hidden;
}

.testimonial-info {
  border-top: 1px solid var(--border);
  padding-top: 1rem;
  text-align: center;
}

.testimonial-info h4 {
  font-size: 1rem;
  font-weight: 700;
  color: var(--text);
  margin-bottom: 0.2rem;
}

.testimonial-info .author {
  font-size: 0.8rem;
  color: var(--muted);
  margin-bottom: 0.3rem;
}

.testimonial-info .location {
  font-size: 0.75rem;
  color: var(--muted);
  margin-bottom: 0.5rem;
}

.testimonial-info .rating {
  color: #fbbf24;
  font-size: 0.9rem;
  letter-spacing: 2px;
}

.testimonial-info .rating .stars {
  color: #fbbf24;
}

.testimonial-info .rating .star-empty {
  color: #4b5563;
}

.testimonial-info .rating-num {
  color: var(--primary);
  font-weight: 700;
  margin-right: 0.5rem;
}

.testimonial-controls {
  display: flex;
  justify-content: center;
  gap: 1rem;
  margin-top: 2rem;
}

.testimonial-btn {
  background: var(--card);
  border: 1px solid var(--border);
  color: var(--text);
  width: 48px;
  height: 48px;
  border-radius: 50%;
  cursor: pointer;
  font-size: 1.2rem;
  transition: all 0.3s ease;
}

.testimonial-btn:hover {
  background: var(--primary);
  border-color: var(--primary);
}

body.light .testimonial-card {
  background: linear-gradient(135deg, rgba(155, 124, 255, 0.1), rgba(111, 73, 255, 0.05));
}

@keyframes scroll-testimonials {
  0% {
    transform: translateX(0);
  }
  100% {
    transform: translateX(-50%);
  }
}

/* Case Studies Section */
.case-studies-section {
  background: var(--bg);
  padding: 4rem 0;
  overflow: hidden;
}

.case-studies-section .container {
  max-width: 1120px;
  margin: 0 auto;
  padding: 0 4%;
}

.case-studies-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 2rem;
}

.clutch-rating {
  display: flex;
  align-items: center;
  gap: 0.5rem;
}

.clutch-logo {
  font-size: 1.5rem;
  font-weight: 700;
  color: var(--text);
}

.clutch-score {
  font-size: 1.2rem;
  color: var(--muted);
}

.clutch-stars {
  color: #ff3d2e;
  font-size: 1rem;
  letter-spacing: 2px;
}

.case-studies-slider {
  overflow: hidden;
  width: 100%;
  position: relative;
}

.case-studies-track {
  display: flex;
  transition: transform 0.5s ease;
}

.case-study-card {
  display: grid;
  grid-template-columns: 1fr 1.2fr 1fr;
  gap: 2rem;
  background: var(--bg-alt);
  border: 1px solid var(--border);
  border-radius: 16px;
  padding: 2.5rem;
  min-width: 100%;
  width: 100%;
  flex-shrink: 0;
  box-sizing: border-box;
}

.case-study-content {
  display: flex;
  flex-direction: column;
}

.case-category {
  color: var(--primary);
  font-size: 0.75rem;
  font-weight: 600;
  letter-spacing: 1px;
  text-transform: uppercase;
  margin-bottom: 1rem;
}

.case-study-content h3 {
  font-size: 1.5rem;
  font-weight: 700;
  color: var(--text);
  margin-bottom: 1rem;
  line-height: 1.3;
}

.case-study-content p {
  font-size: 0.95rem;
  color: var(--muted);
  line-height: 1.6;
  flex-grow: 1;
}

.case-link {
  color: var(--primary);
  font-size: 0.85rem;
  font-weight: 600;
  text-decoration: none;
  margin-top: 1.5rem;
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  transition: gap 0.3s ease;
}

.case-link:hover {
  gap: 1rem;
}

.case-study-image {
  display: flex;
  align-items: center;
  justify-content: center;
}

.case-study-image img {
  width: 100%;
  max-width: 350px;
  height: auto;
  border-radius: 12px;
  box-shadow: 0 10px 40px rgba(0, 0, 0, 0.15);
  transform: rotate(-5deg);
}

.case-study-quote {
  display: flex;
  flex-direction: column;
  justify-content: center;
}

.case-study-quote .quote-mark {
  font-size: 3rem;
  color: var(--primary);
  opacity: 0.5;
  line-height: 1;
  margin-bottom: 1rem;
}

.case-study-quote p {
  font-size: 1rem;
  font-weight: 600;
  color: var(--text);
  line-height: 1.6;
  margin-bottom: 1.5rem;
}

.quote-author h4 {
  font-size: 1rem;
  font-weight: 700;
  color: var(--text);
  margin-bottom: 0.25rem;
}

.quote-author span {
  font-size: 0.75rem;
  color: var(--muted);
  letter-spacing: 0.5px;
}

.quote-location {
  margin-top: 1rem;
  font-size: 0.9rem;
  color: var(--muted);
  display: flex;
  align-items: center;
  gap: 0.5rem;
}

.case-studies-footer {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-top: 2rem;
  max-width: 1120px;
  margin-left: auto;
  margin-right: auto;
  padding: 0 4%;
}

.case-pagination {
  display: flex;
  align-items: center;
  gap: 0.75rem;
}

.page-dot {
  width: 32px;
  height: 32px;
  border-radius: 4px;
  border: none;
  background: transparent;
  color: var(--muted);
  font-size: 0.9rem;
  cursor: pointer;
  transition: all 0.3s ease;
}

.page-dot.active {
  background: var(--text);
  color: var(--bg);
}

.page-dot:hover:not(.active) {
  color: var(--text);
}

@media (max-width: 992px) {
  .case-study-card {
    grid-template-columns: 1fr;
    gap: 1.5rem;
  }
  
  .case-study-image {
    order: -1;
  }
  
  .case-study-image img {
    transform: none;
    max-width: 100%;
  }
}

@media (max-width: 768px) {
  .case-studies-header {
    flex-direction: row;
    flex-wrap: wrap;
    gap: 0.5rem;
    align-items: center;
  }
  
  .case-studies-header h2 {
    font-size: 1.3rem;
    flex: 0 0 auto;
    white-space: nowrap;
  }
  
  .clutch-rating {
    flex-direction: row;
    gap: 0.4rem;
    align-items: center;
  }
  
  .clutch-logo {
    font-size: 1.1rem;
  }
  
  .clutch-score {
    font-size: 1rem;
  }
  
  .clutch-stars {
    font-size: 0.85rem;
  }
}

/* Case Studies Page */
.page-hero {
  padding: 6rem 0 4rem;
  text-align: center;
  background: linear-gradient(180deg, var(--bg-alt) 0%, var(--bg) 100%);
}

.page-hero h1 {
  font-size: 3rem;
  font-weight: 800;
  margin-bottom: 1rem;
}

.hero-subtitle {
  font-size: 1.1rem;
  color: var(--muted);
  max-width: 600px;
  margin: 0 auto 2rem;
}

.clutch-badge {
  display: inline-flex;
  align-items: center;
  gap: 0.75rem;
  padding: 0.75rem 1.5rem;
  background: var(--card);
  border-radius: 50px;
  border: 1px solid var(--border);
}

/* Projects Page - 2 Column Grid Layout */
.projects-hero {
  padding: 6rem 0 3rem;
  text-align: left;
}

.projects-hero h1 {
  font-size: 3rem;
  font-weight: 700;
  margin-bottom: 2rem;
}

/* Filter Buttons */
.filter-buttons {
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem;
  margin-top: 2rem;
}

.filter-btn {
  padding: 0.65rem 1.25rem;
  font-size: 0.8rem;
  font-weight: 600;
  border: 1px solid var(--border);
  border-radius: 4px;
  background: var(--bg-alt);
  color: var(--text);
  cursor: pointer;
  transition: all 0.3s ease;
  text-transform: uppercase;
  letter-spacing: 0.5px;
}

.filter-btn:hover {
  border-color: var(--primary);
  color: var(--primary);
}

.filter-btn.active {
  background: var(--primary);
  color: #fff;
  border-color: var(--primary);
}

/* Projects Grid */
.projects-section {
  padding: 3rem 0 6rem;
}

.projects-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 2.5rem;
}

/* Project Card */
.project-card {
  text-decoration: none;
  display: block;
  transition: transform 0.3s ease, opacity 0.3s ease;
}

.project-card:hover {
  transform: translateY(-5px);
}

.project-image {
  position: relative;
  border-radius: 12px;
  overflow: hidden;
  background: var(--bg-alt);
  margin-bottom: 1.25rem;
}

.project-image img {
  width: 100%;
  height: 320px;
  object-fit: cover;
  display: block;
}

/* Years Badge */
.years-badge {
  position: absolute;
  bottom: 0;
  right: 0;
  background: var(--bg-alt);
  padding: 1rem 1.5rem;
  border-top-left-radius: 12px;
  display: flex;
  flex-direction: column;
  align-items: center;
  min-width: 100px;
  border: 1px solid var(--border);
  border-bottom: none;
  border-right: none;
}

.years-number {
  font-size: 2rem;
  font-weight: 700;
  color: var(--primary);
  line-height: 1;
}

.years-text {
  font-size: 0.75rem;
  color: var(--muted);
  text-align: center;
  line-height: 1.3;
  margin-top: 0.25rem;
}

/* Project Info */
.project-info {
  padding: 0 0.5rem;
}

.project-category {
  display: inline-block;
  font-size: 0.75rem;
  font-weight: 600;
  color: var(--primary);
  text-transform: uppercase;
  letter-spacing: 0.5px;
  margin-bottom: 0.5rem;
}

.project-title {
  font-size: 1.35rem;
  font-weight: 700;
  color: var(--text);
  line-height: 1.4;
  margin: 0;
}

/* Responsive */
@media (max-width: 992px) {
  .projects-grid {
    grid-template-columns: 1fr;
    gap: 2rem;
  }
  
  .projects-hero h1 {
    font-size: 2.25rem;
  }
  
  .filter-buttons {
    gap: 0.5rem;
  }
  
  .filter-btn {
    padding: 0.5rem 1rem;
    font-size: 0.7rem;
  }
}

@media (max-width: 576px) {
  .project-image img {
    height: 220px;
  }
  
  .project-title {
    font-size: 1.15rem;
  }
}

.case-studies-grid {
  display: flex;
  flex-direction: column;
  gap: 3rem;
}

.case-study-full {
  display: grid;
  grid-template-columns: 1fr 1.2fr 1fr;
  gap: 2.5rem;
  background: var(--bg-alt);
  border: 1px solid var(--border);
  border-radius: 20px;
  padding: 3rem;
}

.case-study-full h2 {
  font-size: 1.75rem;
  font-weight: 700;
  margin-bottom: 1rem;
  line-height: 1.3;
}

.case-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 1.5rem;
  margin-top: 2rem;
  padding-top: 1.5rem;
  border-top: 1px solid var(--border);
}

.meta-item {
  display: flex;
  flex-direction: column;
  gap: 0.25rem;
}

.meta-label {
  font-size: 0.75rem;
  color: var(--muted);
  text-transform: uppercase;
  letter-spacing: 0.5px;
}

.meta-value {
  font-size: 0.95rem;
  font-weight: 600;
  color: var(--text);
}

.cta-section {
  padding: 5rem 0;
  text-align: center;
  background: linear-gradient(135deg, var(--primary) 0%, var(--primary-2) 100%);
  color: #fff;
}

.cta-section h2 {
  font-size: 2.5rem;
  margin-bottom: 1rem;
}

.cta-section p {
  font-size: 1.1rem;
  opacity: 0.9;
  margin-bottom: 2rem;
}

.btn-lg {
  padding: 1rem 2.5rem;
  font-size: 1.1rem;
}

.cta-section .btn-primary {
  background: #fff;
  color: var(--primary);
}

.cta-section .btn-primary:hover {
  background: rgba(255,255,255,0.9);
}

/* Reasons Section - Top 9 Reasons */
.reasons-section {
  padding: 5rem 0;
  background: var(--bg);
}

.reasons-section h2 {
  text-align: center;
  font-size: 2.5rem;
  font-weight: 700;
  margin: 0 0 3rem;
}

.reasons-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 2rem;
  max-width: 1000px;
  margin: 0 auto;
}

.reason-card {
  text-align: center;
  padding: 2rem 1.5rem;
}

.reason-number {
  display: block;
  font-size: 2.5rem;
  font-weight: 700;
  color: var(--primary);
  margin-bottom: 1rem;
  font-style: italic;
}

.reason-card h3 {
  font-size: 1rem;
  font-weight: 500;
  color: var(--text);
  margin: 0;
  line-height: 1.5;
}

@media (max-width: 768px) {
  .reasons-grid {
    grid-template-columns: repeat(2, 1fr);
    gap: 1.5rem;
  }
  
  .reasons-section h2 {
    font-size: 2rem;
  }
  
  .reason-number {
    font-size: 2rem;
  }
}

@media (max-width: 480px) {
  .reasons-grid {
    grid-template-columns: 1fr;
    gap: 1rem;
  }
  
  .reason-card {
    padding: 1.5rem 1rem;
  }
}

/* FAQ Section */
.faq-section {
  padding: 3rem 0 6rem;
  background: var(--bg-alt);
}

.faq-section h2 {
  text-align: center;
  font-size: clamp(2rem, 4vw, 2.75rem);
  font-weight: 800;
  margin: 0 0 2.5rem;
  letter-spacing: -0.02em;
}

.faq-section h2 span {
  background: linear-gradient(135deg, #60a5fa, #a78bfa, #f472b6);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
  font-style: italic;
}

.faq-tabs {
  display: flex;
  justify-content: center;
  gap: 2rem;
  flex-wrap: wrap;
  margin-bottom: 3rem;
  padding-bottom: 0;
  border-bottom: 1px solid var(--border);
}

.faq-tab {
  padding: 1rem 0.5rem;
  font-size: 1rem;
  font-weight: 500;
  color: var(--muted);
  background: transparent;
  border: none;
  cursor: pointer;
  transition: all 0.3s ease;
  position: relative;
}

.faq-tab::after {
  content: '';
  position: absolute;
  bottom: -1px;
  left: 0;
  right: 0;
  height: 3px;
  background: var(--primary);
  border-radius: 3px 3px 0 0;
  transform: scaleX(0);
  transition: transform 0.3s ease;
}

.faq-tab:hover {
  color: var(--text);
}

.faq-tab.active {
  color: var(--primary);
  font-weight: 600;
}

.faq-tab.active::after {
  transform: scaleX(1);
}

.faq-content {
  max-width: 900px;
  margin: 0 auto;
  display: flex;
  flex-direction: column;
  gap: 1rem;
}

.faq-category {
  display: none;
  flex-direction: column;
  gap: 1rem;
}

.faq-category.active {
  display: flex;
}

.faq-section .faq-item {
  background: var(--bg-alt);
  border: 1px solid transparent;
  border-radius: 16px;
  overflow: hidden;
  transition: all 0.3s ease;
}

.faq-section .faq-item:hover {
  border-color: rgba(155, 124, 255, 0.2);
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.05);
}

.faq-section .faq-item[open] {
  background: linear-gradient(145deg, var(--card), var(--bg-alt));
  border-color: rgba(155, 124, 255, 0.3);
  box-shadow: 0 8px 30px rgba(155, 124, 255, 0.1);
}

body.light .faq-section .faq-item {
  background: #f8f9fc;
}

body.light .faq-section .faq-item:hover {
  background: #f3f4f8;
}

body.light .faq-section .faq-item[open] {
  background: #ffffff;
  box-shadow: 0 8px 30px rgba(0, 0, 0, 0.06);
}

.faq-section .faq-item summary {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 1.5rem 1.75rem;
  font-size: 1.05rem;
  font-weight: 600;
  color: var(--text);
  cursor: pointer;
  list-style: none;
  transition: all 0.3s ease;
  -webkit-tap-highlight-color: transparent;
  user-select: none;
}

.faq-section .faq-item summary::-webkit-details-marker {
  display: none;
}

.faq-section .faq-item summary:hover {
  color: var(--primary);
}

.faq-section .faq-item summary .faq-icon {
  width: 28px;
  height: 28px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.25rem;
  font-weight: 300;
  color: var(--muted);
  transition: all 0.3s ease;
  flex-shrink: 0;
  margin-left: 1rem;
  border-radius: 50%;
  background: rgba(155, 124, 255, 0.1);
}

.faq-section .faq-item[open] summary .faq-icon {
  transform: rotate(45deg);
  background: var(--primary);
  color: #fff;
}

.faq-section .faq-answer {
  padding: 0 1.75rem 1.75rem;
  font-size: 1rem;
  color: var(--muted);
  line-height: 1.8;
  border-top: 1px solid var(--border);
  margin-top: -0.5rem;
  padding-top: 1.25rem;
  display: block;
  overflow: visible;
  max-height: none;
}

.faq-section .faq-item[open] .faq-answer {
  display: block;
}

.faq-section .faq-answer p {
  margin-bottom: 1rem;
  display: block;
}

.faq-section .faq-answer p:last-child {
  margin-bottom: 0;
}

.faq-section .faq-answer ul {
  margin: 1rem 0;
  padding-left: 1.5rem;
  display: block;
}

.faq-section .faq-answer ul li {
  margin-bottom: 0.5rem;
  position: relative;
  display: list-item;
  color: var(--muted);
}

.faq-section .faq-answer ul li::marker {
  color: var(--primary);
}

.faq-section .faq-answer strong {
  color: var(--text);
  font-weight: 600;
}

@media (max-width: 768px) {
  .faq-section h2 {
    font-size: 2rem;
  }

  .faq-tabs {
    gap: 1rem;
  }

  .faq-tab {
    padding: 0.75rem 0.5rem;
    font-size: 0.9rem;
  }

  .faq-section .faq-item summary {
    font-size: 1rem;
    padding: 1.25rem 1.25rem;
  }

  .faq-section .faq-answer {
    padding: 0 1.25rem 1.25rem;
  }

  .faq-section .faq-item summary .faq-icon {
    width: 24px;
    height: 24px;
    font-size: 1rem;
  }
}

@media (max-width: 480px) {
  .faq-tabs {
    justify-content: flex-start;
    overflow-x: auto;
    flex-wrap: nowrap;
    gap: 0.5rem;
    padding-bottom: 0;
    margin-left: -1rem;
    margin-right: -1rem;
    padding-left: 1rem;
    padding-right: 1rem;
    -webkit-overflow-scrolling: touch;
    scrollbar-width: none;
    -ms-overflow-style: none;
  }

  .faq-tabs::-webkit-scrollbar {
    display: none;
  }

  .faq-tab {
    flex-shrink: 0;
    padding: 0.75rem 0.75rem;
    font-size: 0.85rem;
  }

  .faq-section .faq-item {
    border-radius: 12px;
  }

  .faq-section .faq-item summary {
    padding: 1rem;
    font-size: 0.95rem;
  }

  .faq-section .faq-answer {
    padding: 0 1rem 1rem;
    font-size: 0.9rem;
  }

  .faq-content {
    gap: 0.75rem;
  }
}

/* How We Make Things Differently Section */
.difference-section {
  padding: 5rem 0;
  background: var(--bg);
}

.difference-section h2 {
  text-align: center;
  font-size: 2.5rem;
  font-weight: 700;
  margin: 0 0 1.5rem;
}

.difference-section h2 span {
  color: var(--primary);
}

.difference-intro {
  text-align: center;
  max-width: 700px;
  margin: 0 auto 3rem;
  color: var(--muted);
  font-size: 1.1rem;
  line-height: 1.7;
}

.comparison-table {
  max-width: 900px;
  margin: 0 auto;
  border-radius: 16px;
  overflow: hidden;
  border: 1px solid var(--border);
  background: var(--card);
}

.comparison-header {
  display: grid;
  grid-template-columns: 1fr 1fr;
  background: var(--bg-alt);
  border-bottom: 1px solid var(--border);
}

.comparison-header .comparison-col {
  padding: 1.25rem 2rem;
  font-size: 1rem;
  font-weight: 700;
  text-align: center;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  color: var(--muted);
}

.comparison-header .comparison-col.highlight {
  background: linear-gradient(135deg, var(--primary) 0%, var(--primary-2) 100%);
  color: #fff;
}

.comparison-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  border-bottom: 1px solid var(--border);
}

.comparison-row:last-child {
  border-bottom: none;
}

.comparison-row .comparison-col {
  padding: 1.5rem 2rem;
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
}

.comparison-row .comparison-col.others {
  background: var(--card);
}

.comparison-row .comparison-col.innerluxes {
  background: rgba(155, 124, 255, 0.05);
}

.comparison-icon {
  font-size: 1.5rem;
  font-weight: 700;
}

.comparison-icon.negative {
  color: #ef4444;
}

.comparison-icon.positive {
  color: #22c55e;
}

.comparison-label {
  font-size: 0.75rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  color: var(--muted);
}

.comparison-row .comparison-col p {
  margin: 0;
  font-size: 1rem;
  color: var(--text);
  line-height: 1.5;
}

@media (max-width: 768px) {
  .difference-section h2 {
    font-size: 2rem;
  }
  
  .difference-intro {
    font-size: 1rem;
    padding: 0 1rem;
  }
  
  .comparison-header .comparison-col {
    padding: 1rem;
    font-size: 0.85rem;
  }
  
  .comparison-row .comparison-col {
    padding: 1rem;
  }
  
  .comparison-row .comparison-col p {
    font-size: 0.9rem;
  }
  
  .comparison-icon {
    font-size: 1.25rem;
  }
}

@media (max-width: 480px) {
  .comparison-table {
    border-radius: 12px;
  }
  
  .comparison-header .comparison-col,
  .comparison-row .comparison-col {
    padding: 0.75rem;
  }
  
  .comparison-row .comparison-col p {
    font-size: 0.85rem;
  }
  
  .comparison-label {
    font-size: 0.7rem;
  }
}

@media (max-width: 992px) {
  .case-study-full {
    grid-template-columns: 1fr;
  }
  
  .page-hero h1 {
    font-size: 2rem;
  }
}

body.light {
  --bg: #f8f9fc;
  --bg-alt: #f1f3f9;
  --card: #eaecf4;
  --text: #0f1220;
  --muted: #4d5a73;
  --primary: #6f49ff;
  --primary-2: #4d33d6;
  --border: rgba(17, 21, 32, 0.10);
}

* {
  box-sizing: border-box;
}

html {
  overflow-x: clip;
}

/* Shrink layout on mobile (~80% zoom effect) */
@media (max-width: 768px) {
  html {
    font-size: 80%;
  }
}

body {
  margin: 0;
  font-family: "Inter", "Segoe UI", system-ui, -apple-system, sans-serif;
  color: var(--text);
  background: var(--bg);
  line-height: 1.6;
  padding-top: 0;
  overflow-x: clip;
  max-width: 100vw;
}

main {
  padding-top: 72px;
}

a {
  color: inherit;
  text-decoration: none;
}

.container {
  width: min(1120px, 92vw);
  margin: 0 auto;
}

.site-header {
  position: fixed;
  top: 10px;
  left: 16px;
  right: 16px;
  justify-content: flex-start;
  padding-left: 140px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 1rem 2rem;
  z-index: 1000;
  backdrop-filter: blur(8px);
  border-bottom: 1px solid var(--border);
  border-radius: 14px;
  max-width: calc(100% - 32px);
  margin: 0 auto;
  will-change: transform, max-width, padding;
  transition: padding 0.4s cubic-bezier(0.25, 0.46, 0.45, 0.94),
              box-shadow 0.4s cubic-bezier(0.25, 0.46, 0.45, 0.94),
              background 0.4s cubic-bezier(0.25, 0.46, 0.45, 0.94),
              max-width 0.4s cubic-bezier(0.25, 0.46, 0.45, 0.94),
              left 0.4s cubic-bezier(0.25, 0.46, 0.45, 0.94),
              right 0.4s cubic-bezier(0.25, 0.46, 0.45, 0.94),
              border-radius 0.4s cubic-bezier(0.25, 0.46, 0.45, 0.94);
}


.site-header.shrink {
  padding: 0.85rem 1.5rem;
  left: 300px;
  right: 300px;
}

@media (max-width: 1400px) {
  .site-header.shrink {
    left: 200px;
    right: 200px;
  }
}

body.light .site-header {
  background: #ffffff;
  box-shadow: 0 8px 24px rgba(15, 18, 32, 0.08);
}

.logo {
  display: inline-flex;
  align-items: center;
  gap: 0.6rem;
  font-weight: 700;
  font-size: 1.5rem;
  letter-spacing: 0.02em;
  transition: transform 0.2s ease;
}

.logo-icon {
  width: 40px;
  height: 40px;
}

.site-header .logo-icon {
  animation: logo-spin 6s linear infinite;
  transform-origin: 50% 50%;
}

.site-footer .logo-icon {
  animation: logo-spin 6s linear infinite;
  transform-origin: 50% 50%;
}

.site-footer .logo-text {
  position: relative;
  top: -12px;
}

.site-header.shrink .logo-text {
  display: none;
}

/* Light mode logo visibility */
body.light .logo-icon {
  filter: brightness(0) saturate(100%);
  opacity: 1 !important;
}

body.light .site-header .logo-icon {
  filter: brightness(0.1) saturate(0%);
}

body.light .site-footer .logo-icon {
  filter: brightness(0.1) saturate(0%);
}

/* Ensure logo icon is visible on mobile header */
@media (max-width: 900px) {
  .logo-icon {
    display: block !important;
    width: 40px !important;
    height: 40px !important;
    margin: 0 !important;
    padding: 0 !important;
  }

  .site-header .logo {
    gap: 0.6rem;
    display: inline-flex;
  }

  .site-header .logo-text {
    display: inline;
    font-size: 1rem;
  }
}

.site-nav {
  display: flex;
  gap: 1.2rem;
  align-items: center;
  flex: 1;
  justify-content: center;
  flex-wrap: nowrap;
}

.logo-spin-section {
  padding: 48px 0 24px;
  position: relative;
  overflow: hidden;
}

/* Floating tech cards behind the logo */
.logo-spin-cards{position:absolute;inset:0;pointer-events:none;z-index:0}
.ls-card{position:absolute;padding:10px 22px;border-radius:12px;font-size:.78rem;font-weight:700;letter-spacing:.05em;color:var(--muted);border:1px solid var(--border);background:var(--card);opacity:.45;box-shadow:0 4px 24px rgba(0,0,0,.06);animation-timing-function:ease-in-out;animation-iteration-count:infinite;animation-fill-mode:both}
.ls-card span{display:block}
body.light .ls-card{background:#fff;border-color:rgba(0,0,0,.08);box-shadow:0 4px 20px rgba(0,0,0,.05)}

.ls-card-1{top:12%;left:6%;animation:lsFloat1 6s infinite}
.ls-card-2{top:8%;right:8%;animation:lsFloat2 7s infinite}
.ls-card-3{top:55%;left:3%;animation:lsFloat3 5.5s infinite}
.ls-card-4{top:65%;right:5%;animation:lsFloat4 6.5s infinite}
.ls-card-5{top:25%;left:18%;animation:lsFloat5 7.5s infinite}
.ls-card-6{top:30%;right:16%;animation:lsFloat6 5s infinite}
.ls-card-7{bottom:10%;left:14%;animation:lsFloat7 6.8s infinite}
.ls-card-8{bottom:8%;right:14%;animation:lsFloat8 5.8s infinite}

@keyframes lsFloat1{0%,100%{transform:translateY(0) rotate(-2deg)}50%{transform:translateY(-18px) rotate(2deg)}}
@keyframes lsFloat2{0%,100%{transform:translateY(0) rotate(3deg)}50%{transform:translateY(-22px) rotate(-2deg)}}
@keyframes lsFloat3{0%,100%{transform:translateY(0) rotate(1deg)}50%{transform:translateY(-16px) rotate(-3deg)}}
@keyframes lsFloat4{0%,100%{transform:translateY(0) rotate(-3deg)}50%{transform:translateY(-20px) rotate(1deg)}}
@keyframes lsFloat5{0%,100%{transform:translateY(0) rotate(2deg)}50%{transform:translateY(-14px) rotate(-2deg)}}
@keyframes lsFloat6{0%,100%{transform:translateY(0) rotate(-1deg)}50%{transform:translateY(-20px) rotate(3deg)}}
@keyframes lsFloat7{0%,100%{transform:translateY(0) rotate(3deg)}50%{transform:translateY(-16px) rotate(-1deg)}}
@keyframes lsFloat8{0%,100%{transform:translateY(0) rotate(-2deg)}50%{transform:translateY(-18px) rotate(2deg)}}

.logo-spin-container{position:relative;z-index:1}

@media(max-width:768px){
  .ls-card{font-size:.68rem;padding:7px 14px}
  .ls-card-5,.ls-card-6{display:none}
}

.logo-spin-container {
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  gap: 12px;
}

.spinning-logo {
  width: 200px;
  height: 200px;
  animation: logo-spin 6s linear infinite;
}

.logo-spin-title {
  margin: 0;
  font-size: 1.25rem;
  font-weight: 800;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: #0FF3F1;
  text-align: center;
}

body.light .logo-spin-title {
  color: #000000;
}

@keyframes logo-spin {
  from {
    transform: rotate(0deg);
  }
  to {
    transform: rotate(360deg);
  }
}

.nav-links {
  display: flex;
  gap: 1.2rem;
  align-items: center;
  justify-content: center;
  flex-wrap: nowrap;
  white-space: nowrap;
}

.site-header.shrink .site-nav {
  gap: 0.4rem;
}

.site-header.shrink .nav-links {
  gap: 0.4rem;
  max-width: calc(100% - 220px);
  overflow: hidden;
}

.site-header.shrink .nav-links > a,
.site-header.shrink .nav-links > .nav-item > a {
  font-size: 0.78rem;
  padding: 0.1rem 0.15rem;
}

.site-header.shrink .nav-item {
  padding-bottom: 3rem;
  margin-bottom: -3rem;
}

.site-header.shrink .dropdown {
  margin-top: 0;
  transition: opacity 0.15s ease 0.08s, visibility 0.15s ease 0.08s;
}

.site-header.shrink .nav-item.has-dropdown:hover .dropdown,
.site-header.shrink .nav-item.has-dropdown.active .dropdown,
.site-header.shrink .nav-item.has-dropdown.hover-active .dropdown,
.site-header.shrink .dropdown:hover {
  transition: opacity 0.1s ease, visibility 0.1s ease;
  transition-delay: 0s;
}

.site-header.shrink .dropdown::before {
  top: -4rem;
  left: -3rem;
  right: -3rem;
  height: 4.5rem;
}

.nav-actions {
  position: absolute;
  right: 2rem;
  display: inline-flex;
  align-items: center;
  gap: 0.6rem;
}

.contact-btn {
  position: relative;
  min-width: 44px;
  justify-content: center;
}

.site-header.shrink .contact-text {
  display: none;
}

.site-header.shrink .nav-actions {
  gap: 0.35rem;
}

.site-header.shrink .theme-toggle {
  width: 30px;
  height: 30px;
}

.site-header.shrink .moon,
.site-header.shrink .sun {
  width: 14px;
  height: 14px;
}

.site-header.shrink .moon::after {
  width: 10px;
  height: 10px;
  top: 1px;
  left: 4px;
}

.site-header.shrink .contact-btn {
  min-width: 34px;
  padding: 0.4rem 0.6rem;
}

.site-header.shrink .contact-btn::before {
  font-size: 0.9rem;
}

.site-header.shrink .contact-btn::before {
  content: "☎";
  font-size: 1rem;
  color: #fff;
}

body.light .site-header.shrink .contact-btn::before {
  color: #fff;
}

.theme-toggle {
  width: 38px;
  height: 38px;
  border-radius: 999px;
  border: 1px solid var(--border);
  background: var(--bg-alt);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  transition: 0.2s ease;
}

.theme-toggle:hover {
  border-color: rgba(155, 124, 255, 0.6);
  box-shadow: 0 8px 20px rgba(155, 124, 255, 0.2);
}

.moon {
  width: 18px;
  height: 18px;
  background: url("../icons/night.svg") center/contain no-repeat;
}

.sun {
  width: 18px;
  height: 18px;
  background: url("../icons/sun.svg") center/contain no-repeat;
  display: none;
}

body.light .moon {
  display: block;
}

body.light .sun {
  display: none;
}

body:not(.light) .moon {
  display: none;
}

body:not(.light) .sun {
  display: block;
}

.nav-item {
  position: static;
  padding-bottom: 4rem;
  margin-bottom: -4rem;
}

.nav-item.has-dropdown > a {
  display: inline-flex;
  align-items: center;
  gap: 0.35rem;
}

.nav-item.has-dropdown > a::after {
  content: "▸";
  font-size: 0.75rem;
  color: var(--muted);
  display: inline-block;
  transition: transform 0.3s ease;
  transform: rotate(-90deg);
}

.nav-item.has-dropdown:hover > a::after,
.nav-item.has-dropdown.active > a::after {
  transform: rotate(90deg);
}

.dropdown {
  position: absolute;
  top: 100%;
  left: 50%;
  width: min(640px, 86vw);
  background: rgba(17, 21, 32, 0.98);
  border: 1px solid var(--border);
  border-radius: 16px;
  padding: 1rem;
  display: block;
  opacity: 0;
  visibility: hidden;
  pointer-events: none;
  z-index: 1100;
  box-shadow: 0 18px 40px rgba(0, 0, 0, 0.35);
  transform: translateX(-50%);
  margin-top: 0;
  transition: opacity 0.15s ease 0.08s, visibility 0.15s ease 0.08s;
  max-height: 82vh;
  overflow-y: auto;
  overflow-x: hidden;
  scrollbar-width: thin;
  scrollbar-color: #3b82f6 rgba(0, 0, 0, 0.2);
}

/* Custom scrollbar for all dropdowns */
.dropdown::-webkit-scrollbar {
  width: 10px;
}

.dropdown::-webkit-scrollbar-track {
  background: rgba(0, 0, 0, 0.3);
  border-radius: 10px;
}

.dropdown::-webkit-scrollbar-thumb {
  background: linear-gradient(180deg, #3b82f6 0%, #1e40af 100%);
  border-radius: 10px;
  border: 1px solid rgba(59, 130, 246, 0.4);
  min-height: 40px;
}

.dropdown::-webkit-scrollbar-thumb:hover {
  background: linear-gradient(180deg, #60a5fa 0%, #3b82f6 100%);
}

body.light .dropdown {
  scrollbar-color: #3b82f6 rgba(0, 0, 0, 0.08);
}

body.light .dropdown::-webkit-scrollbar-track {
  background: rgba(0, 0, 0, 0.08);
}

body.light .dropdown::-webkit-scrollbar-thumb {
  background: linear-gradient(180deg, #3b82f6 0%, #1e3a8a 100%);
}

.dropdown::before {
  content: '';
  position: absolute;
  top: -5rem;
  left: -4rem;
  right: -4rem;
  height: 6rem;
  pointer-events: auto;
}

body.light .dropdown {
  background: rgba(255, 255, 255, 0.98);
}

.dropdown-wide {
  width: min(1200px, 96vw);
  display: flex;
  flex-wrap: wrap;
  gap: 0.8rem;
  max-height: 82vh;
  overflow-y: auto;
  overflow-x: hidden;
  scrollbar-width: thin;
  scrollbar-color: #3b82f6 rgba(0, 0, 0, 0.2);
}

/* Custom scrollbar for dropdown */
.dropdown-wide::-webkit-scrollbar {
  width: 10px;
}

.dropdown-wide::-webkit-scrollbar-track {
  background: rgba(0, 0, 0, 0.3);
  border-radius: 10px;
}

.dropdown-wide::-webkit-scrollbar-thumb {
  background: linear-gradient(180deg, #3b82f6 0%, #1e40af 100%);
  border-radius: 10px;
  border: 1px solid rgba(59, 130, 246, 0.4);
  min-height: 40px;
}

.dropdown-wide::-webkit-scrollbar-thumb:hover {
  background: linear-gradient(180deg, #60a5fa 0%, #3b82f6 100%);
}

body.light .dropdown-wide {
  scrollbar-color: #3b82f6 rgba(0, 0, 0, 0.08);
}

body.light .dropdown-wide::-webkit-scrollbar-track {
  background: rgba(0, 0, 0, 0.08);
}

body.light .dropdown-wide::-webkit-scrollbar-thumb {
  background: linear-gradient(180deg, #3b82f6 0%, #1e3a8a 100%);
}

.dropdown-wide .dropdown-header,
.dropdown-wide .dropdown-footer {
  flex: 0 0 100%;
}

.dropdown-wide .dropdown-header {
  order: 0;
}

.dropdown-wide .dropdown-footer {
  order: 8;
}

.dropdown-wide .dropdown-footer {
  text-align: center;
  padding-top: 0.6rem;
  border-top: 1px solid var(--border);
}

.dropdown-section {
  margin-bottom: 0.6rem;
}

.dropdown-wide .dropdown-section {
  flex: 1 1 12.5%;
  margin-bottom: 0;
}

/* Reorder Technology sections: Frontend, Backend, Mobile, Desktop, DevOps, CMS/CRM, Database */
.dropdown-wide .dropdown-section:nth-of-type(1) { order: 1; }
.dropdown-wide .dropdown-section:nth-of-type(2) { order: 2; }
.dropdown-wide .dropdown-section:nth-of-type(3) { order: 3; }
.dropdown-wide .dropdown-section:nth-of-type(4) { order: 4; }
.dropdown-wide .dropdown-section:nth-of-type(5) { order: 5; }
.dropdown-wide .dropdown-section:nth-of-type(6) { order: 6; }
.dropdown-wide .dropdown-section:nth-of-type(7) { order: 7; }

.dropdown-section-title {
  font-weight: 600;
  font-size: 0.95rem;
  color: var(--muted);
  margin: 0 0 0.6rem;
}

.dropdown-section-title.strong {
  font-weight: 700;
  color: var(--text);
}

.dropdown-group-title {
  font-weight: 700;
  font-size: 0.75rem;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--text);
  margin: 0 0 0.35rem;
}

.dropdown-wide .dropdown-section-title {
  font-size: 0.7rem;
  margin-bottom: 0.15rem;
}

.nav-item.has-dropdown:hover .dropdown,
.nav-item.has-dropdown:focus-within .dropdown,
.nav-item.has-dropdown.active .dropdown,
.nav-item.has-dropdown.hover-active .dropdown,
.dropdown:hover {
  opacity: 1;
  visibility: visible;
  pointer-events: auto;
  transition: opacity 0.1s ease, visibility 0.1s ease;
  transition-delay: 0s;
}

.dropdown-header {
  font-weight: 600;
  margin-bottom: 0.8rem;
}

.dropdown-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 0.8rem;
}

.dropdown-wide .dropdown-grid {
  display: flex;
  flex-direction: column;
  gap: 0.35rem;
}

.dropdown.dropdown-wide.marketing-dropdown .dropdown-grid {
  display: grid;
  grid-auto-flow: column;
  grid-template-rows: repeat(8, auto);
  column-gap: 2rem;
  row-gap: 0.35rem;
}

.dropdown-item {
  display: flex;
  align-items: center;
  gap: 0.8rem;
  padding: 0.6rem 0.8rem;
  border-radius: 12px;
  border: 1px solid transparent;
  color: var(--text);
  font-size: 0.92rem;
}

.dropdown-wide .dropdown-item {
  padding: 0.15rem 0.2rem;
  gap: 0.3rem;
  font-size: 0.7rem;
}

.dropdown-item:hover {
  border-color: rgba(155, 124, 255, 0.4);
  background: rgba(155, 124, 255, 0.1);
}

.dropdown-item img {
  width: 28px;
  height: 28px;
}

.dropdown-item span {
  display: block;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  max-width: 100%;
}

.dropdown-footer {
  margin-top: 0.8rem;
  text-align: center;
}

.dropdown-footer .link {
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
}

.dropdown-footer .link::after {
  content: "";
  width: 8px;
  height: 8px;
  border-top: 2px solid var(--muted);
  border-right: 2px solid var(--muted);
  transform: translateY(2px) rotate(45deg);
}

.site-nav a {
  color: var(--muted);
  font-weight: 500;
}

.site-nav a.active,
.site-nav a:hover {
  color: var(--text);
}

/* Hide mobile header actions on desktop */
.header-actions-mobile {
  display: none;
}

.nav-toggle {
  display: none;
  background: transparent;
  border: 1px solid var(--border);
  color: var(--text);
  padding: 0.5rem 0.8rem;
  border-radius: 6px;
}

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 0.75rem 1.4rem;
  border-radius: 999px;
  border: 1px solid transparent;
  font-weight: 600;
  transition: 0.2s ease;
}

.btn-primary {
  background: linear-gradient(135deg, var(--primary), var(--primary-2));
  color: #fff;
}

.btn-primary:hover {
  transform: translateY(-1px);
  box-shadow: 0 8px 24px rgba(155, 124, 255, 0.25);
}

.btn-ghost {
  border-color: var(--border);
  color: var(--text);
}

.hero {
  position: relative;
  padding: 6rem 0 4rem;
  background-color: var(--bg);
  overflow: hidden;
  min-height: 70vh;
}

.hero::before {
  content: "";
  position: absolute;
  inset: 0;
  background-image: url("../icons/INNERLUXES-logo.svg");
  background-repeat: no-repeat;
  background-position: center;
  background-size: min(60vw, 520px);
  animation: logo-spin 8s linear infinite;
  transform-origin: center;
  opacity: 0.35;
  z-index: 0;
}

.hero.has-video::before {
  display: none;
}

.hero-video {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  z-index: 0;
  pointer-events: none;
  filter: brightness(1.2) contrast(0.105);
}

#hero-canvas {
  display: block;
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  z-index: 0;
}

/* Developers hero uses the same network canvas structure */
.developers-page .page-hero #hero-canvas {
  display: block;
}

.hero-overlay {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: linear-gradient(180deg, rgba(11, 13, 18, 0.3) 0%, rgba(11, 13, 18, 0.7) 100%);
  z-index: 1;
}

.hero.has-video .hero-overlay {
  background: linear-gradient(180deg, rgba(11, 13, 18, 0.03) 0%, rgba(11, 13, 18, 0.12) 100%);
}

body.light .hero-overlay {
  background: linear-gradient(180deg, rgba(246, 247, 251, 0.4) 0%, rgba(246, 247, 251, 0.85) 100%);
}

body.light .hero.has-video .hero-overlay {
  background: linear-gradient(180deg, rgba(246, 247, 251, 0.03) 0%, rgba(246, 247, 251, 0.15) 100%);
}

body.light .hero {
  background-image: none;
}

body.light .hero::before {
  background-image: url("../icons/innerluxes-logo-day.svg");
}

.hero .container {
  position: relative;
  z-index: 2;
}

.hero h1 {
  font-size: clamp(2.4rem, 4vw, 3.4rem);
  line-height: 1.15;
  margin: 0 0 1rem;
}

.lead {
  font-size: 1.1rem;
  color: var(--text);
  max-width: 640px;
}

.hero-actions {
  display: flex;
  right: 2.6rem;
  margin: 2rem 0;
  flex-wrap: wrap;
}

.hero-stats {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(160px, 1fr));
  gap: 1rem;
  margin-top: 2rem;
}

.hero-stats div {
  padding: 1rem;
  border: 1px solid var(--border);
  border-radius: 12px;
  background: var(--bg-alt);
}

.hero-stats strong {
  display: block;
  font-size: 1.4rem;
}

/* ══════════════════════════════════════════════════
   CIRCUIT BOARD ANIMATED BACKGROUND (Global)
══════════════════════════════════════════════════ */
.hero.has-circuit {
  background: #060810;
}
.hero.has-circuit::before {
  display: none;
}
.hero.has-circuit .container {
  position: relative;
  z-index: 5;
}

.circuit-board-bg {
  position: absolute;
  inset: 0;
  z-index: 0;
  overflow: hidden;
  pointer-events: none;
  transform: translateZ(0);
  will-change: contents;
}

.circuit-grid {
  position: absolute;
  inset: 0;
  background-image:
    linear-gradient(rgba(255,255,255,0.02) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255,255,255,0.02) 1px, transparent 1px);
  background-size: 60px 60px;
  opacity: 0.5;
}

.circuit-blue-glow {
  position: absolute;
  bottom: -20%;
  left: 50%;
  transform: translateX(-50%);
  width: 120%;
  height: 70%;
  background: radial-gradient(ellipse at center bottom, rgba(59, 130, 246, 0.25) 0%, rgba(59, 130, 246, 0.1) 30%, rgba(99, 102, 241, 0.05) 50%, transparent 70%);
  z-index: 1;
}

.circuit-svg {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  transform: translateZ(0);
}

.circuit-trace {
  fill: none;
  stroke: rgba(255, 255, 255, 0.08);
  stroke-width: 1.5;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.circuit-trace-glow {
  fill: none;
  stroke-width: 1.5;
  stroke-linecap: round;
  stroke-linejoin: round;
  stroke-dasharray: 80 400;
  filter: drop-shadow(0 0 6px rgba(59, 130, 246, 0.8)) drop-shadow(0 0 12px rgba(59, 130, 246, 0.4));
  will-change: stroke-dashoffset;
}

.trace-glow-1 { stroke: rgba(59, 130, 246, 0.9); animation: traceFlowFwd 8s linear infinite; }
.trace-glow-2 { stroke: rgba(99, 102, 241, 0.9); animation: traceFlowRev 10s linear infinite; }
.trace-glow-3 { stroke: rgba(59, 130, 246, 0.8); animation: traceFlowFwd 9s linear infinite; }
.trace-glow-4 { stroke: rgba(139, 92, 246, 0.9); animation: traceFlowRev 11s linear infinite; }
.trace-glow-5 { stroke: rgba(59, 130, 246, 0.85); animation: traceFlowFwd 7s linear infinite; }
.trace-glow-6 { stroke: rgba(99, 102, 241, 0.85); animation: traceFlowRev 9.5s linear infinite; }

@keyframes traceFlowFwd {
  0% { stroke-dashoffset: 480; }
  100% { stroke-dashoffset: 0; }
}
@keyframes traceFlowRev {
  0% { stroke-dashoffset: 0; }
  100% { stroke-dashoffset: -480; }
}

.circuit-node {
  position: absolute;
  width: 6px;
  height: 6px;
  background: rgba(59, 130, 246, 0.6);
  border-radius: 50%;
  box-shadow: 0 0 8px rgba(59, 130, 246, 0.5), 0 0 16px rgba(59, 130, 246, 0.2);
  will-change: transform, opacity;
  transform: translateZ(0);
}

.circuit-node::after {
  content: '';
  position: absolute;
  inset: -3px;
  border: 1px solid rgba(59, 130, 246, 0.3);
  border-radius: 50%;
}

.circuit-node.pulse { animation: nodePulse 4s ease-in-out infinite; }
.circuit-node.pulse-delay-1 { animation-delay: 0.6s; }
.circuit-node.pulse-delay-2 { animation-delay: 1.2s; }
.circuit-node.pulse-delay-3 { animation-delay: 1.8s; }
.circuit-node.pulse-delay-4 { animation-delay: 2.4s; }
.circuit-node.pulse-delay-5 { animation-delay: 3s; }

@keyframes nodePulse {
  0%, 100% { opacity: 0.4; transform: scale(1) translateZ(0); }
  25% { opacity: 0.7; transform: scale(1.3) translateZ(0); }
  50% { opacity: 1; transform: scale(1.8) translateZ(0); box-shadow: 0 0 12px rgba(59, 130, 246, 0.8), 0 0 24px rgba(59, 130, 246, 0.4); }
  75% { opacity: 0.7; transform: scale(1.3) translateZ(0); }
}

.circuit-chip {
  position: absolute;
  width: 28px;
  height: 28px;
  border: 1.5px solid rgba(255, 255, 255, 0.08);
  border-radius: 4px;
  background: rgba(59, 130, 246, 0.03);
  will-change: border-color, background, box-shadow;
  transform: translateZ(0);
}

.circuit-chip::before {
  content: '';
  position: absolute;
  inset: 4px;
  border: 1px solid rgba(59, 130, 246, 0.15);
  border-radius: 2px;
}

.circuit-chip.glow { animation: chipGlow 5s ease-in-out infinite; }
.circuit-chip.glow-delay { animation-delay: 2.5s; }

@keyframes chipGlow {
  0%, 100% { border-color: rgba(255,255,255,0.08); background: rgba(59,130,246,0.03); box-shadow: none; }
  25% { border-color: rgba(59,130,246,0.15); background: rgba(59,130,246,0.05); }
  50% { border-color: rgba(59,130,246,0.3); background: rgba(59,130,246,0.08); box-shadow: 0 0 20px rgba(59,130,246,0.15); }
  75% { border-color: rgba(59,130,246,0.15); background: rgba(59,130,246,0.05); }
}

.circuit-chevrons {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -55%) translateZ(0);
  z-index: 1;
  will-change: transform;
}

.chevron-line {
  fill: none;
  stroke: rgba(255, 255, 255, 0.06);
  stroke-width: 2;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.chevron-glow {
  fill: none;
  stroke-width: 2;
  stroke-linecap: round;
  stroke-linejoin: round;
  opacity: 0;
}

.chevron-glow-1 { stroke: rgba(255,255,255,0.15); animation: chevronPulse 5s ease-in-out infinite; }
.chevron-glow-2 { stroke: rgba(255,255,255,0.12); animation: chevronPulse 5s ease-in-out infinite 0.5s; }
.chevron-glow-3 { stroke: rgba(255,255,255,0.09); animation: chevronPulse 5s ease-in-out infinite 1s; }
.chevron-glow-4 { stroke: rgba(255,255,255,0.07); animation: chevronPulse 5s ease-in-out infinite 1.5s; }
.chevron-glow-5 { stroke: rgba(255,255,255,0.05); animation: chevronPulse 5s ease-in-out infinite 2s; }

@keyframes chevronPulse {
  0%, 100% { opacity: 0; }
  15% { opacity: 0.3; }
  35% { opacity: 1; }
  65% { opacity: 1; }
  85% { opacity: 0.3; }
}

.circuit-particle {
  position: absolute;
  width: 2px;
  height: 2px;
  background: rgba(59, 130, 246, 0.6);
  border-radius: 50%;
  box-shadow: 0 0 4px rgba(59, 130, 246, 0.4);
  animation: particleFloat 8s ease-in-out infinite;
  will-change: transform, opacity;
  transform: translateZ(0);
}

.circuit-particle:nth-child(1) { top: 20%; left: 10%; animation-delay: 0s; animation-duration: 7s; }
.circuit-particle:nth-child(2) { top: 40%; left: 85%; animation-delay: 1s; animation-duration: 9s; }
.circuit-particle:nth-child(3) { top: 70%; left: 30%; animation-delay: 2s; animation-duration: 6s; }
.circuit-particle:nth-child(4) { top: 15%; left: 60%; animation-delay: 3s; animation-duration: 8s; }
.circuit-particle:nth-child(5) { top: 80%; left: 70%; animation-delay: 0.5s; animation-duration: 10s; }
.circuit-particle:nth-child(6) { top: 55%; left: 5%; animation-delay: 1.5s; animation-duration: 7.5s; }
.circuit-particle:nth-child(7) { top: 30%; left: 95%; animation-delay: 2.5s; animation-duration: 6.5s; }
.circuit-particle:nth-child(8) { top: 65%; left: 50%; animation-delay: 4s; animation-duration: 8.5s; }

@keyframes particleFloat {
  0% { opacity: 0; transform: translateY(0) scale(1) translateZ(0); }
  15% { opacity: 0.8; transform: translateY(-8px) scale(1.3) translateZ(0); }
  35% { opacity: 1; transform: translateY(-18px) scale(1.5) translateZ(0); }
  50% { opacity: 0.7; transform: translateY(-28px) scale(1.2) translateZ(0); }
  65% { opacity: 0.9; transform: translateY(-18px) scale(1.4) translateZ(0); }
  85% { opacity: 0.5; transform: translateY(-8px) scale(1.1) translateZ(0); }
  100% { opacity: 0; transform: translateY(0) scale(1) translateZ(0); }
}

.circuit-scanline {
  position: absolute;
  left: 0;
  top: 0;
  width: 100%;
  height: 2px;
  background: linear-gradient(90deg, transparent 0%, rgba(59, 130, 246, 0.12) 15%, rgba(59, 130, 246, 0.25) 50%, rgba(59, 130, 246, 0.12) 85%, transparent 100%);
  animation: scanDown 12s linear infinite;
  z-index: 2;
  will-change: transform, opacity;
  transform: translateY(-5%) translateZ(0);
}

@keyframes scanDown {
  0% { transform: translateY(-5%) translateZ(0); opacity: 0; }
  3% { opacity: 0.8; }
  50% { opacity: 1; }
  97% { opacity: 0.8; }
  100% { transform: translateY(105%) translateZ(0); opacity: 0; }
}

.circuit-corner {
  position: absolute;
  width: 80px;
  height: 80px;
}
.circuit-corner svg { width: 100%; height: 100%; }
.circuit-corner-tl { top: 20px; left: 20px; }
.circuit-corner-tr { top: 20px; right: 20px; transform: scaleX(-1); }
.circuit-corner-bl { bottom: 20px; left: 20px; transform: scaleY(-1); }
.circuit-corner-br { bottom: 20px; right: 20px; transform: scale(-1, -1); }

.corner-line {
  fill: none;
  stroke: rgba(255, 255, 255, 0.06);
  stroke-width: 1.5;
  stroke-linecap: round;
}

/* Circuit board hero text overrides for visibility */
.hero.has-circuit h1 { color: #ffffff; }
.hero.has-circuit .eyebrow { color: #9b7cff; }
.hero.has-circuit .lead { color: #c0c7de; }
.hero.has-circuit .btn-ghost {
  border: 1.5px solid rgba(255, 255, 255, 0.25);
  color: #ffffff;
  background: rgba(255, 255, 255, 0.05);
}
.hero.has-circuit .btn-ghost:hover {
  border-color: rgba(155, 124, 255, 0.5);
  color: #ffffff;
  background: rgba(155, 124, 255, 0.1);
}

/* Light theme: force dark background for circuit hero */
body.light .hero.has-circuit {
  background: #060810;
}
body.light .hero.has-circuit h1 { color: #ffffff; }
body.light .hero.has-circuit .eyebrow { color: #9b7cff; }
body.light .hero.has-circuit .lead { color: #c0c7de; }
body.light .hero.has-circuit .btn-ghost {
  border: 1.5px solid rgba(255, 255, 255, 0.25);
  color: #ffffff;
  background: rgba(255, 255, 255, 0.05);
}

/* Circuit responsive */
@media (max-width: 1024px) {
  .circuit-chevrons { transform: translate(-50%, -55%) scale(0.8) translateZ(0); }
  .circuit-corner { display: none; }
}
@media (max-width: 768px) {
  .circuit-chevrons { transform: translate(-50%, -55%) scale(0.5) translateZ(0); }
  .circuit-chip { display: none; }
  .circuit-corner { display: none; }
  .circuit-grid { opacity: 0.3; }
  .circuit-blue-glow { height: 80%; opacity: 0.8; }
  .circuit-scanline { display: none; }
}

/* ══════════════════════════════════════════════════
   END CIRCUIT BOARD ANIMATED BACKGROUND
══════════════════════════════════════════════════ */

.section {
  padding: 4rem 0;
}

.section.alt {
  background: var(--bg-alt);
}

.section h2 {
  margin-top: 0;
  font-size: 2rem;
}

.section-intro {
  color: var(--muted);
  max-width: 640px;
}

.grid-3 {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 1.5rem;
  margin-top: 2rem;
}

.services-showcase {
  padding: 4.5rem 0;
  background: var(--bg);
}

.services-showcase-header {
  text-align: center;
  margin-bottom: 2.5rem;
}

.services-badge {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 0.4rem 1.1rem;
  border-radius: 999px;
  border: 1px solid var(--border);
  background: var(--bg-alt);
  font-weight: 600;
  font-size: 0.85rem;
  margin-bottom: 1rem;
  gap: 0.5rem;
}

.services-badge::before {
  content: "";
  width: 18px;
  height: 20px;
  border: 2px solid #3b82f6;
  border-radius: 10px 10px 12px 12px;
  background: transparent;
  clip-path: polygon(50% 0%, 88% 16%, 88% 62%, 50% 100%, 12% 62%, 12% 16%);
}

.services-title {
  font-size: clamp(2rem, 4vw, 3rem);
  margin: 0 0 1rem;
}

.services-title span {
  background: linear-gradient(90deg, #3b82f6, #8b5cf6);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}

.services-showcase-header .section-intro {
  margin: 0 auto;
}

.services-showcase-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 1.8rem;
}

.services-showcase-footer {
  display: flex;
  justify-content: center;
  margin-top: 2rem;
}

.difference-section {
  text-align: center;
  --sticky-offset: 110px;
  --sticky-stack-gap: 0px;
  --stack-top-offset: 220px;
  padding-top: 2.5rem;
}

.difference-section .section-intro {
  margin: 0 auto;
}

.difference-section h2 span {
  background: linear-gradient(90deg, #3b82f6, #8b5cf6);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}

.difference-sticky-header {
  position: sticky;
  top: var(--sticky-offset);
  z-index: 0;
  padding: 0.0rem 0 0;
  background: var(--bg);
}

.difference-sticky-header .comparison-block {
  margin-top: 0.8rem;
  position: relative;
  top: auto;
  z-index: auto;
}

.comparison-stack {
  position: relative;
}

.comparison-block {
  margin-top: 2rem;
  transition: opacity 0.35s ease, transform 0.35s ease;
}

.comparison-block.is-covered {
  opacity: 0;
  transform: translateY(-16px);
  pointer-events: none;
}

.comparison-stack .comparison-block {
  position: sticky;
  top: calc(var(--sticky-offset) + var(--stack-top-offset));
  z-index: calc(15 + var(--stack-index, 0));
  margin-top: 180px;
  background: var(--bg);
  box-shadow: none;
}

.comparison-pill {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.45rem 1.1rem;
  border-radius: 999px;
  font-weight: 700;
  font-size: 0.85rem;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  margin: -0.35rem 0.6rem 1.2rem;
}

.comparison-pill-others {
  background: rgba(245, 158, 11, 0.15);
  color: #d97706;
  border: 1px solid rgba(245, 158, 11, 0.35);
}

.comparison-pill-entalogics {
  background: rgba(6, 182, 212, 0.15);
  color: #06b6d4;
  border: 1px solid rgba(6, 182, 212, 0.4);
}

.comparison-cards {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 0;
  border: 1px solid var(--border);
  border-radius: 16px;
  overflow: hidden;
  background: var(--bg-alt);
  box-shadow: none;
}

.comparison-card {
  padding: 1.6rem 1.8rem;
  display: flex;
  gap: 1rem;
  align-items: center;
}

.comparison-card-others {
  background: rgba(245, 158, 11, 0.05);
  border-right: 1px solid var(--border);
}

.comparison-card-entalogics {
  background: rgba(6, 182, 212, 0.06);
}

.comparison-icon {
  width: 44px;
  height: 44px;
  border-radius: 50%;
  display: grid;
  place-items: center;
  font-size: 1.1rem;
  font-weight: 700;
}

.comparison-card-others .comparison-icon {
  background: rgba(245, 158, 11, 0.15);
  color: #d97706;
}

.comparison-card-entalogics .comparison-icon {
  background: rgba(6, 182, 212, 0.18);
  color: #06b6d4;
}

.comparison-card h3 {
  margin: 0 0 0.35rem;
  font-size: 1.1rem;
}

.comparison-card p {
  margin: 0;
  color: var(--muted);
}

@media (max-width: 768px) {
  .difference-section {
    --sticky-offset: 72px;
    --sticky-stack-gap: 0px;
    --stack-top-offset: 280px;
    padding: 1rem 1rem;
  }

  .difference-section h2 {
    font-size: 1.3rem;
    margin-bottom: 0.6rem;
  }

  .difference-section .section-intro {
    font-size: 0.72rem;
    margin-bottom: 0.5rem;
    line-height: 1.35;
    padding: 0;
  }

  .difference-sticky-header {
    padding: 0.5rem 0 0.3rem;
  }

  .difference-sticky-header .comparison-block {
    margin-top: 0.5rem;
  }

  .comparison-stack .comparison-block {
    margin-top: 0.6rem;
  }

  .comparison-block {
    padding: 0;
  }

  .comparison-cards {
    grid-template-columns: 1fr;
    gap: 0;
    width: 100%;
    border-radius: 6px;
    box-sizing: border-box;
    overflow: hidden;
    margin-bottom: 0rem;
  }

  .comparison-card {
    padding: 0.6rem 0.8rem;
    flex-direction: row;
    text-align: left;
    gap: 0.5rem;
    align-items: center;
    min-height: auto;
    box-sizing: border-box;
  }

  .comparison-card > div {
    flex: 1;
    min-width: 0;
  }

  .comparison-card h3 {
    font-size: 0.75rem;
    margin-bottom: 0.05rem;
    font-weight: 600;
  }

  .comparison-card p {
    font-size: 0.7rem;
    line-height: 1.3;
    margin: 0;
  }

  .comparison-icon {
    width: 26px !important;
    height: 26px !important;
    min-width: 26px !important;
    max-width: 26px !important;
    min-height: 26px !important;
    max-height: 26px !important;
    font-size: 0.75rem;
    flex-shrink: 0;
    border-radius: 100% !important;
    aspect-ratio: 1 / 1;
    display: flex;
    align-items: center;
    justify-content: center;
  }

  .comparison-pill {
    font-size: 0.7rem;
    padding: 0.3rem 0.8rem;
    margin: 0 0.4rem 0.8rem;
  }

  .comparison-card-others {
    border-right: none;
    border-bottom: 1px solid var(--border);
  }
  
  .difference-section .container {
    padding: 0;
    max-width: 100%;
  }
}

@media (max-width: 480px) {
  .comparison-cards {
    grid-template-columns: 1fr;
  }
  
  .comparison-card {
    padding: 0.6rem 0.8rem;
    flex-direction: row;
    text-align: left;
    gap: 0.6rem;
  }

  .comparison-card h3 {
    font-size: 0.85rem;
  }

  .comparison-card p {
    font-size: 0.75rem;
    line-height: 1.3;
  }

  .comparison-icon {
    width: 28px;
    height: 28px;
    font-size: 0.8rem;
    flex-shrink: 0;
  }
  
  .comparison-card > div {
    width: 100%;
  }
}

.service-showcase-card {
  background: var(--bg-alt);
  border: 1px solid var(--border);
  border-radius: 20px;
  padding: 1.6rem;
  box-shadow: 0 12px 28px rgba(15, 18, 32, 0.08);
  display: flex;
  flex-direction: column;
  gap: 0;
  min-height: 300px;
  transition: transform 0.2s ease, box-shadow 0.2s ease, border-color 0.2s ease;
  overflow: hidden;
  position: relative;
}

.service-showcase-card-link {
  position: absolute;
  inset: 0;
  z-index: 2;
  cursor: pointer;
}

.service-showcase-card:hover {
  transform: translateY(-4px);
  border-color: rgba(155, 124, 255, 0.35);
  box-shadow: 0 18px 36px rgba(15, 18, 32, 0.15);
}

.service-showcase-media {
  height: 190px;
  margin: -1.6rem -1.6rem 0;
  border-radius: 20px 20px 0 0;
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
}

.service-showcase-media img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

.service-showcase-divider {
  display: block;
  height: 1px;
  background: var(--border);
  margin: 0 -1.6rem 0.9rem;
}

.service-showcase-media + .service-showcase-divider {
  margin-top: 0;
}

.service-showcase-card h3 {
  margin: 0 0 0.6rem;
}

.service-showcase-card p {
  margin: 0 0 1rem;
}

.service-showcase-card h3 {
  margin: 0;
  font-size: 1.2rem;
}

.service-showcase-card p {
  margin: 0;
  color: var(--muted);
}

.service-showcase-link {
  margin-top: auto;
  display: flex;
  align-items: center;
  justify-content: space-between;
  font-weight: 600;
  color: var(--text);
  position: relative;
  padding-top: 0.6rem;
}

.service-showcase-link img {
  width: 28px;
  height: 28px;
}

.service-showcase-link span {
  position: relative;
}

.service-showcase-link span::after {
  content: "";
  position: absolute;
  left: 0;
  bottom: -4px;
  width: 0;
  height: 2px;
  background: currentColor;
  transition: width 0.2s ease;
}

.service-showcase-card:hover .service-showcase-link span::after {
  width: 100%;
}

@media (max-width: 1024px) {
  .services-showcase-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

@media (max-width: 640px) {
  .services-showcase-grid {
    grid-template-columns: 1fr;
  }
}

.grid-2 {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
  gap: 2rem;
}

.card {
  padding: 1.5rem;
  background: var(--card);
  border: 1px solid var(--border);
  border-radius: 16px;
}

.card.highlight {
  border-color: rgba(155, 124, 255, 0.6);
  background: linear-gradient(180deg, rgba(155, 124, 255, 0.15), rgba(22, 27, 41, 0.95));
}

.eyebrow {
  text-transform: uppercase;
  font-size: 0.9rem;
  letter-spacing: 0.15em;
  color: var(--text);
  margin-bottom: 0.75rem;
}

.checklist {
  list-style: none;
  padding: 0;
  margin: 0;
}

.checklist li {
  padding-left: 1.5rem;
  position: relative;
  margin-bottom: 0.8rem;
}

.checklist li::before {
  content: "✓";
  position: absolute;
  left: 0;
  color: var(--primary);
}

.timeline {
  display: grid;
  grid-template-columns: 1fr 2fr;
  gap: 0.8rem 1rem;
  margin-top: 1.2rem;
  color: var(--muted);
}

.page-hero {
  padding: 4rem 0 2rem;
  background: var(--bg-alt);
}

.page-hero h1 {
  margin: 0 0 1rem;
}

.link {
  display: inline-flex;
  margin-top: 1rem;
  color: var(--primary);
  font-weight: 600;
}

form label {
  display: block;
  margin-bottom: 1rem;
  color: var(--muted);
}

form input,
form textarea {
  width: 100%;
  margin-top: 0.4rem;
  background: transparent;
  border: 1px solid var(--border);
  border-radius: 10px;
  padding: 0.75rem 0.9rem;
  color: var(--text);
  font-size: 1rem;
}

.site-footer {
  padding: 3rem 0 2rem;
  border-top: 1px solid var(--border);
  background: #0a0c11 url("../images/footer-night.svg") center bottom/cover no-repeat;
  position: relative;
}


body.light .site-footer {
  background: #ffffff url("../images/footer-day.svg") center bottom/cover no-repeat;
  box-shadow: 0 -8px 24px rgba(15, 18, 32, 0.06);
}

.footer-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
  gap: 1.5rem;
}

.site-footer a {
  display: block;
  color: var(--muted);
  margin-bottom: 0.4rem;
  font-size: 0.9rem;
  transition: color 0.2s ease, transform 0.2s ease;
}

.site-footer a:hover {
  color: var(--primary);
}

.footer-grid .footer-nav a:hover {
  transform: translateY(-2px);
}

body.light .site-footer a {
  color: #5a6785;
}

body.light .site-footer a:hover {
  color: var(--primary);
}

.footer-bottom {
  text-align: center;
  color: var(--muted);
  margin-top: 2rem;
}

/* Mobile Navigation Overlay Background */
.mobile-nav-overlay {
  display: none;
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: rgba(0, 0, 0, 0.5);
  z-index: 998;
  opacity: 0;
  transition: opacity 0.3s ease;
}

.mobile-nav-overlay.active {
  display: block;
  opacity: 1;
}

/* Mobile Nav Header */
.mobile-nav-header {
  display: none;
}

/* Mobile Nav Footer */
.mobile-nav-footer {
  display: none;
}

/* Hide Contact nav item on desktop */
.nav-item-contact {
  display: none;
}

@media (max-width: 900px) {
  /* Show Contact nav item on mobile */
  .nav-item-contact {
    display: block;
  }

  /* Disable shrink effect on mobile - keep header same as normal state */
  .site-header.shrink {
    padding: 0.75rem 1rem;
    border-radius: 0;
    max-width: 100%;
    margin: 0;
    left: 0;
    right: 0;
    transform: none;
    top: 0;
    background: rgba(255, 255, 255, 0.98);
    border: none;
    border-bottom: 1px solid rgba(0, 0, 0, 0.08);
  }

  body:not(.light) .site-header.shrink {
    background: rgba(17, 21, 32, 0.98);
    border-color: var(--border);
  }

  .site-header.shrink .logo {
    position: static;
    transform: none;
  }

  .site-header.shrink .logo-icon {
    width: 36px;
    height: 36px;
  }

  .site-header.shrink .logo-text {
    font-size: 1.1rem;
    opacity: 1;
  }

  .site-header.shrink .contact-btn::before {
    content: "☎";
  }

  .site-header {
    padding: 0.75rem 1rem;
    background: rgba(255, 255, 255, 0.98);
    border: none;
    border-bottom: 1px solid rgba(0, 0, 0, 0.08);
    border-radius: 0;
    max-width: 100%;
    margin: 0;
    left: 0;
    right: 0;
  }

  body:not(.light) .site-header {
    background: rgba(17, 21, 32, 0.98);
    border-color: var(--border);
  }

  /* Mobile Header Actions Container */
  .header-actions-mobile {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    margin-left: auto;
  }

  /* Show theme toggle in mobile header */
  .header-actions-mobile .theme-toggle {
    display: inline-flex;
    width: 40px;
    height: 40px;
    border-radius: 50%;
  }

  .nav-toggle {
    display: inline-flex;
    z-index: 1001;
    width: 40px;
    height: 40px;
    border-radius: 50%;
    border: 1px solid rgba(0, 0, 0, 0.1);
    background: transparent;
    align-items: center;
    justify-content: center;
    font-size: 1.2rem;
    cursor: pointer;
    color: var(--text);
  }

  body:not(.light) .nav-toggle {
    border-color: var(--border);
  }

  /* Hide nav-actions theme toggle on mobile since it's in header-actions-mobile */
  .nav-actions .theme-toggle {
    display: none;
  }

  /* Mobile Navigation - Slide from Right */
  .site-nav,
  .site-header.shrink .site-nav {
    position: fixed;
    top: 0;
    right: -100%;
    width: 85%;
    max-width: 380px;
    height: 100vh;
    height: 100dvh;
    flex-direction: column;
    background: #fff;
    padding: 0;
    border: none;
    border-radius: 0;
    z-index: 999;
    overflow: hidden;
    transition: right 0.35s cubic-bezier(0.4, 0, 0.2, 1);
    box-shadow: -10px 0 40px rgba(0, 0, 0, 0.12);
  }

  body:not(.light) .site-nav,
  body:not(.light) .site-header.shrink .site-nav {
    background: #1a1d2e;
    border-color: var(--border);
    box-shadow: -20px 0 60px rgba(0, 0, 0, 0.5);
  }

  .site-nav.open,
  .site-header.shrink .site-nav.open {
    right: 0;
    display: flex;
  }

  /* Mobile Nav Header */
  .mobile-nav-header {
    display: flex !important;
    align-items: center;
    justify-content: space-between;
    padding: 0.85rem 1rem;
    background: linear-gradient(135deg, #4F46E5 0%, #6366F1 100%);
    border-radius: 0;
    gap: 0.5rem;
    min-height: 56px;
    visibility: visible !important;
    opacity: 1 !important;
  }

  .mobile-nav-brand {
    display: flex !important;
    align-items: center;
    gap: 0.6rem;
    visibility: visible !important;
    opacity: 1 !important;
  }

  .mobile-nav-brand .logo-icon {
    display: block !important;
    width: 32px !important;
    height: 32px !important;
    background: rgba(255, 255, 255, 0.2);
    border-radius: 8px;
    padding: 5px;
    animation: none;
    visibility: visible !important;
    opacity: 1 !important;
    filter: brightness(1) invert(0) !important;
  }

  body.light .mobile-nav-brand .logo-icon {
    filter: brightness(0.1) saturate(0%) !important;
  }

  .mobile-nav-brand h3 {
    margin: 0;
    font-size: 1rem;
    font-weight: 600;
    color: #fff;
    letter-spacing: 0.02em;
  }

  .mobile-nav-brand-info h3 {
    margin: 0;
    font-size: 0.95rem;
    font-weight: 600;
    color: #fff;
    letter-spacing: 0.02em;
  }

  .mobile-nav-brand-info p {
    display: none;
    max-width: 180px;
  }

  .mobile-nav-close {
    display: flex;
    width: 30px;
    height: 30px;
    align-items: center;
    justify-content: center;
    background: rgba(255, 255, 255, 0.2);
    border: none;
    border-radius: 8px;
    color: #fff;
    font-size: 1.25rem;
    font-weight: 300;
    cursor: pointer;
    flex-shrink: 0;
    transition: background 0.2s ease;
    line-height: 1;
  }

  .mobile-nav-close:hover {
    background: rgba(255, 255, 255, 0.3);
  }

  /* Nav Links Container */
  .nav-links,
  .site-header.shrink .nav-links {
    width: 100%;
    flex-direction: column;
    align-items: stretch;
    justify-content: flex-start;
    gap: 0;
    padding: 0.25rem 0;
    flex: 1;
    overflow-y: auto;
    overflow-x: hidden;
    scrollbar-gutter: stable;
    max-width: 100%;
  }

  /* Custom Scrollbar for nav-links */
  .nav-links::-webkit-scrollbar {
    width: 5px;
  }

  .nav-links::-webkit-scrollbar-track {
    background: rgba(0, 200, 200, 0.1);
    border-radius: 10px;
  }

  .nav-links::-webkit-scrollbar-thumb {
    background: linear-gradient(180deg, #00E5CC 0%, #00D4AA 100%);
    border-radius: 10px;
  }

  /* Nav Item Styles for Mobile */
  .nav-item {
    padding: 0;
    margin: 0 0.6rem;
    border-bottom: none;
    position: relative;
  }

  .nav-item.has-dropdown > a {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 0.5rem 0.75rem;
    font-size: 0.8rem;
    font-weight: 500;
    color: #1a1a2e;
    gap: 0.5rem;
    border-radius: 8px;
    border: 1px solid transparent;
    transition: all 0.2s ease;
    background: #fff;
  }

  body:not(.light) .nav-item.has-dropdown > a {
    background: #1a1d2e;
    color: var(--text);
  }

  .nav-item.has-dropdown > a::before {
    content: "";
    width: 18px;
    height: 18px;
    background-size: contain;
    background-repeat: no-repeat;
    background-position: center;
    opacity: 0.85;
    flex-shrink: 0;
  }

  /* Icons for each nav item */
  .nav-item.has-dropdown:nth-child(1) > a::before {
    background-image: url("../icons/saas-product-development.svg");
  }
  .nav-item.has-dropdown:nth-child(2) > a::before {
    background-image: url("../icons/web-development.svg");
  }
  .nav-item.has-dropdown:nth-child(3) > a::before {
    background-image: url("../icons/dedicated.svg");
  }
  .nav-item.has-dropdown:nth-child(4) > a::before {
    background-image: url("../icons/automation-workflow-tools.svg");
  }
  .nav-item.has-dropdown:nth-child(5) > a::before {
    background-image: url("../icons/maintenance-support.svg");
  }

  .nav-item.has-dropdown > a span {
    flex: 1;
  }

  .nav-item.has-dropdown > a::after {
    content: "";
    width: 16px;
    height: 16px;
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%236b7280' stroke-width='2.5'%3E%3Cpath d='M6 9l6 6 6-6'/%3E%3C/svg%3E");
    background-size: contain;
    background-repeat: no-repeat;
    background-position: center;
    transition: transform 0.3s ease;
    flex-shrink: 0;
  }

  .nav-item.has-dropdown.active > a {
    background: #fff;
    border: 1px solid rgba(79, 70, 229, 0.25);
    border-radius: 10px;
  }

  body:not(.light) .nav-item.has-dropdown.active > a {
    background: #1a1d2e;
    border-color: rgba(99, 102, 241, 0.3);
  }

  .nav-item.has-dropdown.active > a::after {
    transform: rotate(180deg);
  }

  .nav-item.has-dropdown > a:hover {
    background: rgba(79, 70, 229, 0.04);
  }

  /* Contact Nav Item */
  .nav-item-contact {
    padding: 0;
    margin: 0 0.6rem;
  }

  .nav-item-contact > a {
    display: flex;
    align-items: center;
    padding: 0.5rem 0.75rem;
    font-size: 0.8rem;
    font-weight: 500;
    color: #1a1a2e;
    gap: 0.5rem;
    border-radius: 8px;
  }

  body:not(.light) .nav-item-contact > a {
    color: var(--text);
  }

  .nav-item-contact > a::before {
    content: "";
    width: 18px;
    height: 18px;
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%236b7280' stroke-width='2'%3E%3Cpath d='M22 16.92v3a2 2 0 01-2.18 2 19.79 19.79 0 01-8.63-3.07 19.5 19.5 0 01-6-6 19.79 19.79 0 01-3.07-8.67A2 2 0 014.11 2h3a2 2 0 012 1.72 12.84 12.84 0 00.7 2.81 2 2 0 01-.45 2.11L8.09 9.91a16 16 0 006 6l1.27-1.27a2 2 0 012.11-.45 12.84 12.84 0 002.81.7A2 2 0 0122 16.92z'/%3E%3C/svg%3E");
    background-size: contain;
    background-repeat: no-repeat;
    background-position: center;
    opacity: 0.7;
    flex-shrink: 0;
  }

  .nav-item-contact > a::after {
    content: "";
    width: 16px;
    height: 16px;
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%236b7280' stroke-width='2.5'%3E%3Cpath d='M7 17L17 7M17 7H7M17 7V17'/%3E%3C/svg%3E");
    background-size: contain;
    background-repeat: no-repeat;
    background-position: center;
    margin-left: auto;
    flex-shrink: 0;
  }

  .nav-item-contact > a:hover {
    background: rgba(79, 70, 229, 0.05);
  }

  /* Dropdown Styles for Mobile - Accordion */
  .nav-item.has-dropdown .dropdown {
    position: static;
    width: 100%;
    max-height: 0;
    overflow: hidden;
    margin: 0;
    padding: 0;
    border: none;
    border-radius: 0;
    box-shadow: none;
    background: transparent;
    transform: none;
    opacity: 1;
    visibility: visible;
    pointer-events: auto;
    transition: max-height 0.4s cubic-bezier(0.4, 0, 0.2, 1);
  }

  .nav-item.has-dropdown .dropdown::before {
    display: none;
  }

  .nav-item.has-dropdown.active .dropdown {
    max-height: none;
    overflow-y: visible;
    margin-top: 0.25rem;
    padding-left: 0.75rem;
    border-left: 2px solid rgba(79, 70, 229, 0.2);
    margin-left: 0.5rem;
  }

  /* Custom Scrollbar for dropdown */
  .nav-item.has-dropdown.active .dropdown::-webkit-scrollbar {
    width: 5px;
  }

  .nav-item.has-dropdown.active .dropdown::-webkit-scrollbar-track {
    background: rgba(0, 200, 200, 0.1);
    border-radius: 10px;
  }

  .nav-item.has-dropdown.active .dropdown::-webkit-scrollbar-thumb {
    background: linear-gradient(180deg, #00E5CC 0%, #00D4AA 100%);
    border-radius: 10px;
  }

  /* Dropdown Content on Mobile */
  .dropdown-header {
    display: none;
  }

  .dropdown-footer {
    display: flex;
    padding: 0.5rem 0.5rem;
    margin-top: 0.25rem;
    border-top: 1px solid rgba(79, 70, 229, 0.15);
  }

  .dropdown-footer .link {
    display: flex;
    align-items: center;
    gap: 0.4rem;
    font-size: 0.75rem;
    font-weight: 600;
    color: #4F46E5;
    padding: 0.35rem 0.5rem;
    border-radius: 6px;
    margin: 0;
    width: 100%;
  }

  .dropdown-footer .link:hover {
    background: rgba(79, 70, 229, 0.08);
  }

  .dropdown-footer .link::after {
    content: "";
    width: 16px;
    height: 16px;
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%234F46E5' stroke-width='2.5'%3E%3Cpath d='M7 17L17 7M17 7H7M17 7V17'/%3E%3C/svg%3E");
    background-size: contain;
    background-repeat: no-repeat;
    background-position: center;
    margin-left: auto;
    border: none;
    transform: none;
  }

  .dropdown-wide {
    width: 100%;
    display: flex !important;
    flex-direction: column !important;
    flex-wrap: nowrap !important;
    gap: 0;
    max-height: none;
    padding: 0.15rem 0;
  }

  .dropdown-section {
    margin-bottom: 0;
    padding: 0.25rem 0;
    border-bottom: none;
    flex: none !important;
    width: 100% !important;
  }

  .dropdown-wide .dropdown-section {
    flex: none !important;
    width: 100% !important;
    margin-bottom: 0;
  }

  .dropdown-section-title {
    padding: 0.5rem 0.5rem 0.35rem;
    font-size: 0.65rem;
    font-weight: 700;
    color: #6B7280;
    margin-bottom: 0;
    text-transform: uppercase;
    letter-spacing: 0.08em;
  }

  body:not(.light) .dropdown-section-title {
    color: var(--muted);
  }

  .dropdown-wide .dropdown-section-title {
    font-size: 0.62rem;
  }

  .dropdown-group-title {
    display: none;
  }

  .dropdown-grid {
    display: flex !important;
    flex-direction: column !important;
    gap: 0 !important;
    grid-template-columns: none !important;
  }

  .dropdown-wide .dropdown-grid {
    display: flex !important;
    flex-direction: column !important;
    gap: 0 !important;
    grid-template-columns: none !important;
  }

  .dropdown-item {
    padding: 0.4rem 0.5rem;
    font-size: 0.75rem;
    gap: 0.5rem;
    border-radius: 0;
    margin: 0;
    color: #1a1a2e;
    background: transparent;
    border: none;
  }

  body:not(.light) .dropdown-item {
    color: var(--text);
  }

  .dropdown-wide .dropdown-item {
    padding: 0.4rem 0.5rem;
    font-size: 0.75rem;
    gap: 0.5rem;
  }

  .dropdown-item img {
    width: 16px;
    height: 16px;
    height: 18px;
  }

  .dropdown-item:hover {
    background: rgba(79, 70, 229, 0.06);
    border-color: transparent;
  }

  /* Mobile Nav Footer */
  .mobile-nav-footer {
    display: flex;
    flex-direction: column;
    padding: 0.85rem 1rem;
    border-top: 1px solid rgba(0, 0, 0, 0.08);
    background: #fff;
    gap: 0;
    border-radius: 0;
    margin-top: auto;
  }

  body:not(.light) .mobile-nav-footer {
    background: #1a1d2e;
    border-top-color: var(--border);
  }

  .mobile-nav-footer-row {
    display: flex;
    align-items: center;
    gap: 0.75rem;
  }

  .mobile-nav-footer-header {
    display: none;
  }

  .mobile-nav-quick-actions {
    display: none;
  }

  /* Mobile Theme Toggle */
  .theme-toggle-mobile {
    width: 38px;
    height: 38px;
    border-radius: 50%;
    border: 1px solid rgba(0, 0, 0, 0.1);
    background: #fff;
    display: inline-flex;
    align-items: center;
    flex-shrink: 0;
    justify-content: center;
    cursor: pointer;
    transition: 0.2s ease;
  }

  body:not(.light) .theme-toggle-mobile {
    background: var(--bg);
    border-color: var(--border);
  }

  .theme-toggle-mobile:hover {
    border-color: #4F46E5;
  }

  .theme-toggle-mobile .moon,
  .theme-toggle-mobile .sun {
    width: 20px;
    height: 20px;
  }

  .mobile-nav-quick-actions {
    display: none;
  }

  .mobile-nav-cta {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
    padding: 0.75rem 1.25rem;
    background: #4F46E5;
    color: #fff;
    border: none;
    border-radius: 10px;
    font-size: 0.88rem;
    font-weight: 600;
    cursor: pointer;
    transition: transform 0.2s ease, box-shadow 0.2s ease;
    text-decoration: none;
    flex: 1;
  }

  .mobile-nav-cta:hover {
    transform: translateY(-1px);
    box-shadow: 0 6px 20px rgba(79, 70, 229, 0.3);
  }

  .mobile-nav-cta::after {
    content: "";
    width: 16px;
    height: 16px;
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='white' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M22 16.92v3a2 2 0 0 1-2.18 2 19.79 19.79 0 0 1-8.63-3.07 19.5 19.5 0 0 1-6-6 19.79 19.79 0 0 1-3.07-8.67A2 2 0 0 1 4.11 2h3a2 2 0 0 1 2 1.72 12.84 12.84 0 0 0 .7 2.81 2 2 0 0 1-.45 2.11L8.09 9.91a16 16 0 0 0 6 6l1.27-1.27a2 2 0 0 1 2.11-.45 12.84 12.84 0 0 0 2.81.7A2 2 0 0 1 22 16.92z'%3E%3C/path%3E%3C/svg%3E");
    background-size: contain;
    background-repeat: no-repeat;
  }

  /* Hide default nav actions on mobile */
  .nav-actions {
    display: none;
  }

  /* Disable hover effects on mobile dropdowns */
  .nav-item.has-dropdown:hover .dropdown {
    max-height: 0;
  }

  .nav-item.has-dropdown.active .dropdown,
  .nav-item.has-dropdown.active:hover .dropdown {
    max-height: 400px;
  }
}

/* Case Study Blog Page Styles */
.case-study-hero {
  background: linear-gradient(135deg, var(--bg-alt) 0%, var(--bg) 100%);
  padding: 8rem 0 4rem;
  border-bottom: 1px solid var(--border);
}

/* NEW Case Article Styles - Clean Design */
.case-article {
  padding: 6rem 0 4rem;
}

.case-article-container {
  max-width: 900px;
  margin: 0 auto;
}

.case-article-title {
  font-size: clamp(2rem, 4vw, 2.75rem);
  font-weight: 700;
  color: var(--primary);
  margin-bottom: 2.5rem;
  line-height: 1.3;
}

.case-hero-image {
  width: 100%;
  border-radius: 12px;
  overflow: hidden;
  margin-bottom: 2rem;
}

.case-hero-image img {
  width: 100%;
  height: auto;
  display: block;
  object-fit: cover;
}

/* Meta Info Row */
.case-meta-row {
  display: flex;
  gap: 3rem;
  padding: 1.5rem 0;
  border-bottom: 1px solid var(--border);
  margin-bottom: 3rem;
}

.case-meta-item {
  display: flex;
  flex-direction: column;
  gap: 0.35rem;
}

.case-meta-label {
  font-size: 0.7rem;
  color: var(--muted);
  text-transform: uppercase;
  letter-spacing: 1px;
  font-weight: 500;
}

.case-meta-value {
  font-size: 1rem;
  font-weight: 600;
  color: var(--text);
}

.case-meta-value.highlight {
  color: var(--primary);
}

/* Article Body */
.case-article-body {
  line-height: 1.8;
}

.case-section {
  margin-bottom: 3rem;
}

.case-section h2 {
  font-size: 1.75rem;
  font-weight: 700;
  color: var(--text);
  margin-bottom: 1.25rem;
}

.case-section h3 {
  font-size: 1.15rem;
  font-weight: 700;
  color: var(--text);
  margin-top: 2rem;
  margin-bottom: 0.75rem;
}

.case-section p {
  font-size: 1rem;
  line-height: 1.8;
  color: var(--muted);
  margin-bottom: 1rem;
}

.case-section ul {
  margin: 1rem 0 1.5rem 1.5rem;
  color: var(--muted);
}

.case-section ul li {
  margin-bottom: 0.5rem;
  line-height: 1.7;
}

/* Technology Icons Grid */
.tech-icons-grid {
  display: grid;
  grid-template-columns: repeat(5, 1fr);
  gap: 2rem 1.5rem;
  margin-top: 1.5rem;
}

.tech-icon-item {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.75rem;
  text-align: center;
}

.tech-icon-item img {
  width: 48px;
  height: 48px;
  object-fit: contain;
}

.tech-icon-item span {
  font-size: 0.85rem;
  color: var(--text);
  font-weight: 500;
}

/* Product Screenshot */
.case-product-screenshot {
  width: 100%;
  margin: 3rem 0;
  border-radius: 12px;
  overflow: hidden;
  box-shadow: 0 10px 40px rgba(0, 0, 0, 0.2);
}

.case-product-screenshot img {
  width: 100%;
  height: auto;
  display: block;
}

/* Benefits List */
.case-benefits-list {
  list-style: none;
  padding: 0;
  margin: 1.5rem 0;
}

.case-benefits-list li {
  position: relative;
  padding-left: 1.25rem;
  margin-bottom: 0.6rem;
  color: var(--muted);
  line-height: 1.6;
}

.case-benefits-list li::before {
  content: "■";
  position: absolute;
  left: 0;
  color: var(--text);
  font-size: 0.5rem;
  top: 0.45rem;
}

/* Client Info Card */
.client-section {
  margin-top: 3rem;
}

.client-info-card {
  display: flex;
  gap: 2rem;
  align-items: flex-start;
  padding: 2rem;
  background: var(--bg-alt);
  border: 1px solid var(--border);
  border-radius: 12px;
}
@media (max-width: 768px) {
  .hero {
    padding: 5rem 0 3rem;
    min-height: 80vh;
  }
}

.client-logo-wrap {
  flex-shrink: 0;
  width: 100px;
  height: 100px;
  display: flex;
  align-items: center;
  justify-content: center;
}

.client-logo-wrap img {
  max-width: 100%;
  max-height: 100%;
  object-fit: contain;
}

.client-details p {
  color: var(--muted);
  line-height: 1.7;
  margin: 0 0 1rem;
}

.client-details strong {
  color: var(--primary);
}

.client-badge {
  display: inline-block;
  font-size: 0.7rem;
  font-weight: 600;
  color: var(--muted);
  text-transform: uppercase;
  letter-spacing: 1px;
  padding: 0.5rem 1rem;
  background: var(--card);
  border-radius: 4px;
}

@media (max-width: 576px) {
  .client-info-card {
    flex-direction: column;
    align-items: center;
    text-align: center;
  }
}

/* Responsive */
@media (max-width: 768px) {
  .case-meta-row {
    flex-wrap: wrap;
    gap: 1.5rem 2.5rem;
  }
  
  .tech-icons-grid {
    grid-template-columns: repeat(3, 1fr);
    gap: 1.5rem 1rem;
  }
  
  .case-article-title {
    font-size: 1.75rem;
  }
}

@media (max-width: 480px) {
  .tech-icons-grid {
    grid-template-columns: repeat(2, 1fr);
  }
  
  .case-meta-row {
    gap: 1.25rem 2rem;
  }
}

.back-link {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  color: var(--primary);
  font-size: 0.95rem;
  margin-bottom: 2rem;
  transition: color 0.2s;
}

.back-link:hover {
  color: var(--primary-2);
}

.case-study-hero h1 {
  font-size: clamp(2rem, 5vw, 3.5rem);
  font-weight: 700;
  margin-bottom: 2rem;
  line-height: 1.2;
}

.case-study-meta-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(150px, 1fr));
  gap: 1.5rem;
  margin-top: 2rem;
}

.meta-box {
  background: var(--card);
  padding: 1.5rem;
  border-radius: 12px;
  border: 1px solid var(--border);
}

.meta-box .meta-label {
  display: block;
  font-size: 0.85rem;
  color: var(--muted);
  margin-bottom: 0.5rem;
  text-transform: uppercase;
  letter-spacing: 0.5px;
}

.meta-box .meta-value {
  font-size: 1.1rem;
  font-weight: 600;
  color: var(--text);
}

.case-study-content-section {
  padding: 4rem 0;
}

.case-study-body {
  max-width: 800px;
  margin: 0 auto;
}

.content-block {
  margin-bottom: 3rem;
}

.content-block h2 {
  font-size: 1.75rem;
  font-weight: 700;
  margin-bottom: 1.25rem;
  color: var(--text);
  border-left: 4px solid var(--primary);
  padding-left: 1rem;
}

.content-block p {
  font-size: 1.05rem;
  line-height: 1.8;
  color: var(--muted);
  margin-bottom: 1rem;
}

.content-block ul {
  margin: 1rem 0 1.5rem 1.5rem;
  color: var(--muted);
}

.content-block ul li {
  margin-bottom: 0.5rem;
  line-height: 1.6;
}

.feature-item {
  background: var(--card);
  padding: 1.5rem 2rem;
  border-radius: 12px;
  margin-bottom: 1.5rem;
  border: 1px solid var(--border);
}

.feature-item h3 {
  font-size: 1.25rem;
  font-weight: 600;
  margin-bottom: 1rem;
  color: var(--primary);
}

.feature-item p,
.feature-item ul {
  color: var(--muted);
}

.tech-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem;
}

.tech-tag {
  background: var(--card);
  color: var(--text);
  padding: 0.5rem 1rem;
  border-radius: 20px;
  font-size: 0.9rem;
  border: 1px solid var(--border);
  transition: all 0.2s;
}

.tech-tag:hover {
  background: var(--primary);
  color: var(--bg);
  border-color: var(--primary);
}

.benefits-list {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
  gap: 0.75rem;
  list-style: none;
  margin: 1.5rem 0;
  padding: 0;
}

.benefits-list li {
  background: var(--card);
  padding: 1rem 1.25rem;
  border-radius: 8px;
  border-left: 3px solid var(--primary);
  font-size: 0.95rem;
}

.client-info-box {
  background: linear-gradient(135deg, var(--card) 0%, var(--bg-alt) 100%);
  padding: 2rem;
  border-radius: 16px;
  border: 1px solid var(--border);
  margin-top: 3rem;
  display: flex;
  gap: 2rem;
  align-items: center;
}

.client-info-box .client-logo {
  flex-shrink: 0;
  width: 120px;
  height: 120px;
  background: var(--bg);
  border-radius: 12px;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 1rem;
}

.client-info-box .client-logo img {
  max-width: 100%;
  max-height: 100%;
}

.client-info-box .client-description p {
  color: var(--muted);
  line-height: 1.7;
  margin: 0;
}

.client-info-box .client-description strong {
  color: var(--primary);
}

@media (max-width: 768px) {
  .case-study-hero {
    padding: 6rem 0 3rem;
  }
  
  .case-study-meta-grid {
    grid-template-columns: repeat(2, 1fr);
  }
  
  .client-info-box {
    flex-direction: column;
    text-align: center;
  }
  
  .benefits-list {
    grid-template-columns: 1fr;
  }
}

/* Case Study Link Styles for case-studies.html */
.case-study-link {
  display: block;
  text-decoration: none;
  color: inherit;
  transition: transform 0.3s ease;
}

.case-study-full:hover {
  transform: translateY(-5px);
}

.case-study-full:hover .view-case-btn {
  background: var(--primary);
  color: var(--bg);
}

.view-case-btn {
  display: inline-block;
  margin-top: 1.5rem;
  padding: 0.75rem 1.5rem;
  background: transparent;
  border: 2px solid var(--primary);
  color: var(--primary);
  border-radius: 8px;
  font-weight: 600;
  font-size: 0.9rem;
  transition: all 0.3s ease;
}

.view-case-btn:hover {
  background: var(--primary);
  color: var(--bg);
}
/* ===========================================
   PROFESSIONAL SERVICES PAGE STYLES
   =========================================== */

/* Services Hero Section */
.services-hero {
  padding: 8rem 0 5rem;
  background: linear-gradient(180deg, var(--bg-alt) 0%, var(--bg) 100%);
  position: relative;
  overflow: hidden;
}

.services-hero::before {
  content: "";
  position: absolute;
  top: -50%;
  right: -20%;
  width: 600px;
  height: 600px;
  background: radial-gradient(circle, rgba(155, 124, 255, 0.15) 0%, transparent 70%);
  border-radius: 50%;
  pointer-events: none;
}

.services-hero-content {
  max-width: 800px;
  text-align: center;
  margin: 0 auto;
  position: relative;
  z-index: 1;
}

.services-label {
  display: inline-block;
  padding: 0.5rem 1.25rem;
  background: rgba(155, 124, 255, 0.15);
  border: 1px solid rgba(155, 124, 255, 0.3);
  border-radius: 50px;
  font-size: 0.85rem;
  font-weight: 600;
  color: var(--primary);
  letter-spacing: 0.5px;
  margin-bottom: 1.5rem;
}

.services-hero-title {
  font-size: clamp(2.5rem, 5vw, 4rem);
  font-weight: 800;
  line-height: 1.1;
  margin: 0 0 1.5rem;
}

.gradient-text {
  background: linear-gradient(135deg, var(--primary) 0%, #3b82f6 100%);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}

.services-hero-desc {
  font-size: 1.15rem;
  color: var(--muted);
  line-height: 1.7;
  margin-bottom: 2rem;
}

.services-hero-badges {
  display: flex;
  justify-content: center;
  gap: 1rem;
  flex-wrap: wrap;
}

.hero-badge {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.75rem 1.25rem;
  background: var(--card);
  border: 1px solid var(--border);
  border-radius: 50px;
  font-size: 0.9rem;
  font-weight: 600;
  transition: all 0.3s ease;
}

.hero-badge:hover {
  border-color: var(--primary);
  transform: translateY(-2px);
}

.badge-icon {
  font-size: 1.1rem;
}

/* Services Grid Section */
.services-grid-section {
  padding: 5rem 0;
  background: var(--bg);
}

.services-main-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 2rem;
}

@media (max-width: 1024px) {
  .services-main-grid {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media (max-width: 640px) {
  .services-main-grid {
    grid-template-columns: 1fr;
  }
}

/* Service Card Pro */
.service-card-pro {
  display: flex;
  flex-direction: column;
  background: var(--bg-alt);
  border: 1px solid var(--border);
  border-radius: 20px;
  overflow: hidden;
  transition: all 0.3s ease;
  text-decoration: none;
}

.service-card-pro:hover {
  transform: translateY(-8px);
  border-color: rgba(155, 124, 255, 0.4);
  box-shadow: 0 20px 50px rgba(155, 124, 255, 0.15);
}

.service-card-media {
  height: 160px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: linear-gradient(135deg, rgba(155, 124, 255, 0.1) 0%, rgba(59, 130, 246, 0.1) 100%);
  padding: 2rem;
}

.service-card-media img {
  width: 80px;
  height: 80px;
  object-fit: contain;
  transition: transform 0.3s ease;
}

.service-card-pro:hover .service-card-media img {
  transform: scale(1.1);
}

.service-card-content {
  padding: 1.75rem;
  display: flex;
  flex-direction: column;
  flex: 1;
}

.service-card-content h3 {
  font-size: 1.25rem;
  font-weight: 700;
  margin: 0 0 0.75rem;
  color: var(--text);
}

.service-card-content p {
  font-size: 0.95rem;
  color: var(--muted);
  line-height: 1.6;
  margin: 0 0 1.25rem;
  flex: 1;
}

.service-card-link {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  font-weight: 600;
  color: var(--primary);
  font-size: 0.9rem;
}

.service-card-link .arrow {
  transition: transform 0.3s ease;
}

.service-card-pro:hover .service-card-link .arrow {
  transform: translateX(5px);
}

/* Services CTA Banner */
.services-cta-banner {
  padding: 4rem 0;
  background: linear-gradient(135deg, rgba(155, 124, 255, 0.1) 0%, rgba(59, 130, 246, 0.1) 100%);
  border-top: 1px solid var(--border);
  border-bottom: 1px solid var(--border);
}

.cta-banner-content {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 3rem;
}

@media (max-width: 768px) {
  .cta-banner-content {
    flex-direction: column;
    text-align: center;
  }
}

.cta-banner-text h2 {
  font-size: 2rem;
  font-weight: 700;
  margin: 0 0 0.75rem;
}

.cta-banner-text p {
  font-size: 1rem;
  color: var(--muted);
  margin: 0;
  max-width: 500px;
}

.cta-banner-actions {
  display: flex;
  gap: 1rem;
  flex-shrink: 0;
}

@media (max-width: 480px) {
  .cta-banner-actions {
    flex-direction: column;
    width: 100%;
  }
  
  .cta-banner-actions .btn {
    width: 100%;
  }
}

/* Trust Badges Section */
.trust-badges-section {
  padding: 5rem 0;
  background: var(--bg-alt);
}

.trust-header {
  text-align: center;
  margin-bottom: 3rem;
}

.trust-header h2 {
  font-size: 2rem;
  font-weight: 700;
  margin: 0 0 0.5rem;
}

.trust-header p {
  font-size: 1rem;
  color: var(--muted);
  margin: 0;
}

.trust-logos {
  display: flex;
  justify-content: center;
  align-items: center;
  gap: 4rem;
  flex-wrap: wrap;
  margin-bottom: 3rem;
}

.trust-logo-item img {
  height: 40px;
  width: auto;
  opacity: 1;
  filter: grayscale(0%);
  transition: transform 0.25s ease, box-shadow 0.25s ease, opacity 0.25s ease, filter 0.25s ease;
}

.trust-logo-item:hover img {
  opacity: 1;
  filter: grayscale(0%);
  transform: translateY(-2px);
  box-shadow: 0 10px 25px rgba(0, 0, 0, 0.35);
}

body.light .trust-logo-item img {
  filter: grayscale(0%) brightness(1);
}

/* ===========================================
   HIRE DEVELOPERS PAGE (PROFESSIONAL LAYOUT)
   =========================================== */

.developers-page .page-hero {
  padding: 6rem 0 4rem;
  background: linear-gradient(180deg, #2b1055 0%, #f2994a 100%);
  text-align: left;
  position: relative;
  overflow: hidden;
}

.developers-page .page-hero::before {
  content: "";
  position: absolute;
  inset: 0;
  pointer-events: none;
  z-index: 0;
  background-image:
    linear-gradient(to right, rgba(255, 255, 255, 0.9) 1px, transparent 1px),
    linear-gradient(to bottom, rgba(255, 255, 255, 0.9) 1px, transparent 1px);
  background-size: 22px 22px;
  opacity: 0;
}

body.light .developers-page .page-hero::before {
  background-image:
    linear-gradient(to right, rgba(0, 0, 0, 0.7) 1px, transparent 1px),
    linear-gradient(to bottom, rgba(0, 0, 0, 0.7) 1px, transparent 1px);
}

.developers-page .page-hero .container {
  position: relative;
  z-index: 1;
}

.developers-page .page-hero .container {
  max-width: 960px;
}

.developers-page .page-hero h1 {
  font-size: clamp(2.5rem, 5vw, 3.5rem);
  font-weight: 800;
  margin-bottom: 0.75rem;
}

.developers-page .hero-subtitle {
  font-size: 1.05rem;
  color: var(--muted);
  max-width: 640px;
}

.developers-page .hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem;
  margin: 2rem 0 1.5rem;
}

.developers-page .hero-actions .btn {
  min-width: 190px;
  justify-content: center;
}

.developers-page .hero-stats {
  margin-top: 1.5rem;
}

.developers-page .hero-stats div span {
  font-size: 0.85rem;
  color: var(--muted);
}

.developers-page #developer-categories {
  padding-top: 3.5rem;
}

.developers-page #developer-categories h2 {
  font-size: 2rem;
  margin-bottom: 0.75rem;
}

.developers-page .section-intro {
  max-width: 720px;
}

.developers-page .section-group {
  margin-top: 2.75rem;
}

.developers-page .section-group h3 {
  font-size: 1.3rem;
  margin-bottom: 1rem;
}

.developers-page .section-group .grid-3 {
  margin-top: 1.2rem;
}

.developers-page .card {
  position: relative;
  transition: transform 0.22s ease, box-shadow 0.22s ease, border-color 0.22s ease, background 0.22s ease;
  cursor: url("../icons/dev-card-cursor.svg"), pointer;
}

.developers-page .card:hover {
  transform: translateY(-6px);
  border-color: rgba(155, 124, 255, 0.5);
  box-shadow: 0 18px 40px rgba(0, 0, 0, 0.45);
  background: radial-gradient(circle at top left, rgba(155, 124, 255, 0.12), transparent 55%), var(--card);
}

.developers-page .card h4 {
  font-size: 1.05rem;
  margin-top: 0;
  margin-bottom: 0.6rem;
}

.developers-page .card p {
  font-size: 0.9rem;
  color: var(--muted);
}

.developers-page .card .link {
  margin-top: 0.75rem;
  font-size: 0.88rem;
}

.developers-page .developers-skill-icon {
  width: 42px;
  height: 42px;
  border-radius: 14px;
  background: rgba(155, 124, 255, 0.12);
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 0.9rem;
}

.developers-page .developers-skill-icon img {
  width: 26px;
  height: 26px;
  object-fit: contain;
}

.developers-page .card:hover .developers-skill-icon {
  background: rgba(155, 124, 255, 0.25);
}

.developers-page .developers-process {
  background: var(--bg);
}

.developers-page .developers-process-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 1.5rem;
  margin-bottom: 3rem;
}

.developers-page .developers-process-header h2 {
  font-size: 2rem;
  margin: 0;
}

.developers-page .developers-process-link {
  font-size: 0.9rem;
  white-space: nowrap;
}

.developers-page .developers-process-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 1.5rem;
}

.developers-page .developers-process-card {
  background: var(--bg-alt);
  border-radius: 18px;
  padding: 2.5rem 2rem;
  border: 1px solid var(--border);
  position: relative;
  overflow: hidden;
  cursor: url("../icons/dev-card-cursor.svg"), pointer;
}

.developers-page .developers-process-number {
  font-size: 2.75rem;
  font-weight: 800;
  color: rgba(184, 192, 217, 0.18);
  margin-bottom: 1.75rem;
}

.developers-page .developers-process-card h3 {
  font-size: 1.2rem;
  margin: 0 0 1rem;
}

.developers-page .developers-process-card p {
  font-size: 0.92rem;
  color: var(--muted);
  line-height: 1.7;
  margin: 0;
}

@media (max-width: 1024px) {
  .developers-page .developers-process-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

@media (max-width: 768px) {
  .developers-page .developers-process-header {
    flex-direction: column;
    align-items: flex-start;
  }

  .developers-page .developers-process-link {
    margin-top: 0.5rem;
  }

  .developers-page .developers-process-card {
    padding: 2rem 1.5rem;
  }
}

@media (max-width: 640px) {
  .developers-page .developers-process-grid {
    grid-template-columns: 1fr;
  }
}

/* Developers stats strip */
.developers-stats {
  padding: 0 0 3rem;
  background: var(--bg);
}

.developers-stats-inner {
  background: var(--bg-alt);
  border-radius: 24px;
  padding: 1.8rem 2.4rem;
  display: grid;
  grid-template-columns: repeat(5, minmax(0, 1fr));
  gap: 1.5rem;
  border: 1px solid var(--border);
}

.developers-stat {
  display: flex;
  flex-direction: column;
  justify-content: center;
}

.developers-stat + .developers-stat {
  border-left: 1px solid rgba(255, 255, 255, 0.06);
  padding-left: 1.5rem;
}

.developers-stat-main .stat-heading {
  display: block;
  font-size: 1.1rem;
  font-weight: 600;
}

.developers-stat-main .stat-subheading {
  display: block;
  font-size: 1.4rem;
  font-weight: 700;
}

.developers-stat .stat-number {
  font-size: 1.8rem;
  font-weight: 700;
  margin-bottom: 0.4rem;
  color: #ff3b3b;
}

.developers-stat .stat-label {
  font-size: 0.9rem;
  color: var(--muted);
}

@media (max-width: 1024px) {
  .developers-stats-inner {
    grid-template-columns: repeat(3, minmax(0, 1fr));
    row-gap: 1.5rem;
  }
}

@media (max-width: 768px) {
  .developers-stats-inner {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    padding: 1.5rem 1.8rem;
  }

  .developers-stat + .developers-stat {
    border-left: none;
    padding-left: 0;
    border-top: 1px solid rgba(255, 255, 255, 0.06);
    padding-top: 1rem;
  }
}

@media (max-width: 540px) {
  .developers-stats-inner {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 768px) {
  .developers-page .page-hero {
    text-align: left;
    padding-top: 5rem;
  }

  .developers-page .hero-actions {
    flex-direction: column;
    align-items: stretch;
  }

  .developers-page .hero-actions .btn {
    width: 100%;
  }
}

body.light .trust-logo-item:hover img {
  filter: grayscale(0%) brightness(1);
}

.trust-stats {
  display: flex;
  justify-content: center;
  gap: 4rem;
  flex-wrap: wrap;
}

.trust-stat {
  text-align: center;
}

.stat-number {
  display: block;
  font-size: 2.5rem;
  font-weight: 800;
  color: var(--primary);
  line-height: 1;
}

.stat-label {
  display: block;
  font-size: 0.9rem;
  color: var(--muted);
  margin-top: 0.5rem;
}

/* Engagement Section */
.engagement-section {
  padding: 5rem 0;
  background: var(--bg);
}

.engagement-header {
  text-align: center;
  margin-bottom: 4rem;
}

.engagement-header h2 {
  font-size: 2.25rem;
  font-weight: 700;
  margin: 0 0 0.75rem;
}

/* Engagement Block - Alternating Layout */
.engagement-block {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 4rem;
  align-items: center;
  margin-bottom: 5rem;
}

.engagement-block.reverse {
  direction: rtl;
}

.engagement-block.reverse > * {
  direction: ltr;
}

.engagement-content {
  padding: 1rem 0;
}

.engagement-content h3 {
  font-size: 2.5rem;
  font-weight: 700;
  margin: 0 0 1.5rem;
  color: var(--text);
}

.engagement-content p {
  font-size: 1.05rem;
  color: var(--muted);
  line-height: 1.8;
  margin: 0 0 2rem;
}

.read-more-link {
  display: inline-flex;
  align-items: center;
  gap: 0.75rem;
  font-size: 0.95rem;
  font-weight: 700;
  color: #3b82f6;
  text-decoration: none;
  text-transform: uppercase;
  letter-spacing: 0.5px;
  transition: all 0.3s ease;
}

.read-more-link:hover {
  color: var(--primary);
}

.read-more-link .arrows {
  font-size: 0.85rem;
  letter-spacing: 2px;
  transition: transform 0.3s ease;
}

.read-more-link:hover .arrows {
  transform: translateX(5px);
}

.engagement-image {
  display: flex;
  align-items: center;
  justify-content: center;
}

.engagement-image img {
  width: 100%;
  max-width: 550px;
  height: auto;
  border-radius: 12px;
  box-shadow: 0 20px 60px rgba(0, 0, 0, 0.15);
}

@media (max-width: 992px) {
  .engagement-block {
    grid-template-columns: 1fr;
    gap: 2rem;
  }
  
  .engagement-block.reverse {
    direction: ltr;
  }
  
  .engagement-content h3 {
    font-size: 2rem;
  }
  
  .engagement-image {
    order: -1;
  }
}

/* Keep old engagement cards for backward compatibility */
.engagement-cards {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 2rem;
  margin-bottom: 3rem;
}

@media (max-width: 768px) {
  .engagement-cards {
    grid-template-columns: 1fr;
  }
}

.engagement-card {
  background: var(--bg-alt);
  border: 1px solid var(--border);
  border-radius: 20px;
  padding: 2rem;
  transition: all 0.3s ease;
}

.engagement-card:hover {
  border-color: rgba(155, 124, 255, 0.4);
  transform: translateY(-5px);
}

.engagement-icon {
  font-size: 2.5rem;
  margin-bottom: 1rem;
}

.engagement-card h3 {
  font-size: 1.5rem;
  font-weight: 700;
  margin: 0 0 1rem;
}

.engagement-card p {
  font-size: 0.95rem;
  color: var(--muted);
  line-height: 1.7;
  margin: 0 0 1.5rem;
}

.engagement-features {
  list-style: none;
  padding: 0;
  margin: 0;
}

.engagement-features li {
  position: relative;
  padding-left: 1.5rem;
  margin-bottom: 0.75rem;
  font-size: 0.9rem;
  color: var(--text);
}

.engagement-features li::before {
  content: "✓";
  position: absolute;
  left: 0;
  color: var(--primary);
  font-weight: bold;
}

/* Comparison Table */
.comparison-table-wrapper {
  overflow-x: auto;
  border-radius: 16px;
  border: 1px solid var(--border);
}

.comparison-table {
  width: 100%;
  border-collapse: collapse;
  background: var(--bg-alt);
}

.comparison-table th,
.comparison-table td {
  padding: 1.25rem 1.5rem;
  text-align: left;
  border-bottom: 1px solid var(--border);
}

.comparison-table th {
  background: linear-gradient(135deg, rgba(155, 124, 255, 0.1) 0%, rgba(59, 130, 246, 0.1) 100%);
  font-weight: 700;
  font-size: 1rem;
}

.comparison-table th:first-child {
  width: 200px;
}

.comparison-table td {
  font-size: 0.9rem;
  color: var(--muted);
}

.comparison-table .row-label {
  font-weight: 600;
  color: var(--text);
  background: rgba(155, 124, 255, 0.05);
}

.comparison-table tr:last-child td {
  border-bottom: none;
}

.comparison-table tr:hover td {
  background: rgba(155, 124, 255, 0.03);
}

/* Process Section */
.process-section {
  padding: 5rem 0;
  background: var(--bg-alt);
}

.process-header {
  text-align: center;
  margin-bottom: 4rem;
}

.process-header h2 {
  font-size: 2.25rem;
  font-weight: 700;
  margin: 0 0 0.75rem;
}

.process-timeline {
  max-width: 800px;
  margin: 0 auto;
  position: relative;
}

.process-timeline::before {
  content: "";
  position: absolute;
  left: 40px;
  top: 0;
  bottom: 0;
  width: 2px;
  background: linear-gradient(180deg, var(--primary), transparent);
}

@media (max-width: 640px) {
  .process-timeline::before {
    left: 30px;
  }
}

.process-step {
  display: flex;
  gap: 2rem;
  margin-bottom: 2.5rem;
  position: relative;
}

.step-number {
  flex-shrink: 0;
  width: 80px;
  height: 80px;
  background: linear-gradient(135deg, var(--primary) 0%, var(--primary-2) 100%);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.5rem;
  font-weight: 800;
  color: #fff;
  position: relative;
  z-index: 1;
}

@media (max-width: 640px) {
  .step-number {
    width: 60px;
    height: 60px;
    font-size: 1.2rem;
  }
  
  .process-step {
    gap: 1.5rem;
  }
}

.step-content {
  flex: 1;
  padding-top: 0.5rem;
}

.step-content h3 {
  font-size: 1.35rem;
  font-weight: 700;
  margin: 0 0 0.75rem;
}

.step-content p {
  font-size: 0.95rem;
  color: var(--muted);
  line-height: 1.7;
  margin: 0;
}

/* Why Us Section - Interactive Slider */
.why-us-section {
  padding: 5rem 0;
  background: var(--bg);
}

.why-us-header {
  margin-bottom: 3rem;
}

.why-us-header h2 {
  font-size: 2.5rem;
  font-weight: 700;
  margin: 0;
}

/* Why Slider Container */
.why-slider {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  border: 1px solid var(--border);
  border-radius: 8px;
  overflow: hidden;
  background: var(--bg);
}

/* Individual Slide */
.why-slide {
  position: relative;
  padding: 1.5rem;
  border-right: 1px solid var(--border);
  cursor: pointer;
  transition: all 0.4s ease;
  display: flex;
  flex-direction: column;
  min-height: 420px;
  background: var(--bg);
}

.why-slide:last-child {
  border-right: none;
}

.why-slide .slide-header {
  margin-bottom: 1.5rem;
}

.why-slide .slide-number {
  font-size: 0.9rem;
  color: var(--muted);
  font-weight: 500;
}

.why-slide .slide-icon {
  flex: 1;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 2rem 0;
}

.why-slide .slide-icon img {
  width: 160px;
  height: 160px;
  object-fit: contain;
  opacity: 0.85;
  transition: all 0.3s ease;
}

.why-slide:hover .slide-icon img {
  opacity: 1;
  transform: scale(1.05);
}

.why-slide .slide-title {
  font-size: 1.5rem;
  font-weight: 700;
  color: var(--text);
  margin: 0;
  line-height: 1.3;
}

/* Slide Content - Hidden by default */
.why-slide .slide-content {
  display: none;
  flex-direction: column;
  height: 100%;
}

.why-slide .slide-text {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 1rem;
  margin-bottom: 1.5rem;
}

.why-slide .slide-text h3 {
  font-size: 1.5rem;
  font-weight: 700;
  color: #3b82f6;
  margin: 0;
  line-height: 1.3;
}

.why-slide .slide-icon-expanded {
  width: 100px;
  height: 100px;
  object-fit: contain;
  flex-shrink: 0;
}

.why-slide .slide-content p {
  font-size: 0.95rem;
  color: var(--muted);
  line-height: 1.75;
  margin: 0;
  flex: 1;
}

.why-slide .slide-nav {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-top: 2rem;
  padding-top: 1rem;
}

.why-slide .slide-counter {
  font-size: 0.9rem;
  color: var(--muted);
}

.why-slide .slide-counter strong {
  color: var(--text);
}

.why-slide .slide-arrows {
  display: flex;
  gap: 1rem;
}

.why-slide .slide-arrow {
  background: transparent;
  border: none;
  color: var(--muted);
  font-size: 1.25rem;
  cursor: pointer;
  padding: 0.25rem;
  transition: color 0.3s ease;
}

.why-slide .slide-arrow:hover {
  color: var(--text);
}

/* Active Slide State */
.why-slide.active {
  flex: 2;
  background: var(--bg-alt);
}

.why-slide.active .slide-icon,
.why-slide.active .slide-title {
  display: none;
}

.why-slide.active .slide-content {
  display: flex;
}

/* Responsive Design */
@media (max-width: 1200px) {
  .why-slider {
    grid-template-columns: repeat(2, 1fr);
  }
  
  .why-slide {
    border-bottom: 1px solid var(--border);
  }
  
  .why-slide:nth-child(2) {
    border-right: none;
  }
  
  .why-slide:nth-child(3),
  .why-slide:nth-child(4) {
    border-bottom: none;
  }
  
  .why-slide:nth-child(4) {
    border-right: none;
  }
}

@media (max-width: 768px) {
  .why-slider {
    grid-template-columns: 1fr;
  }
  
  .why-slide {
    min-height: auto;
    border-right: none;
    border-bottom: 1px solid var(--border);
  }
  
  .why-slide:last-child {
    border-bottom: none;
  }
  
  .why-slide .slide-icon img {
    width: 100px;
    height: 100px;
  }
  
  .why-slide.active {
    flex: 1;
  }
}

/* Button Large */
.btn-lg {
  padding: 1rem 2rem;
  font-size: 1rem;
}

/* Services Page Grid - Extended showcase styles */
.services-page-grid {
  padding-top: 0;
}

.services-page-grid .services-showcase-grid {
  grid-template-columns: repeat(3, 1fr);
}

@media (max-width: 1024px) {
  .services-page-grid .services-showcase-grid {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media (max-width: 640px) {
  .services-page-grid .services-showcase-grid {
    grid-template-columns: 1fr;
  }
}

/* Allow anchor tags to use service-showcase-card styles */
a.service-showcase-card {
  text-decoration: none;
  color: inherit;
  display: flex;
  flex-direction: column;
}

a.service-showcase-card:hover {
  transform: translateY(-4px);
  border-color: rgba(155, 124, 255, 0.35);
  box-shadow: 0 18px 36px rgba(15, 18, 32, 0.15);
}

/* ================================================
   COMPREHENSIVE MOBILE RESPONSIVENESS
   ================================================ */

/* Extra Small Devices (phones, 480px and below) */
@media (max-width: 480px) {
  /* Global */
  .container {
    padding: 0 1rem;
  }
  
  /* Typography */
  h1, .hero-content h1, .services-hero h1 {
    font-size: 1.75rem !important;
    line-height: 1.2 !important;
  }
  
  h2, .section-header h2 {
    font-size: 1.5rem !important;
  }
  
  h3 {
    font-size: 1.15rem !important;
  }
  
  p, .hero-content p {
    font-size: 0.9rem !important;
  }
  
  /* Hero Section */
  .services-hero {
    padding: 6rem 0 3rem !important;
    min-height: auto !important;
  }
  
  .services-hero .container {
    padding: 0 1rem;
  }
  
  .hero-badges {
    flex-direction: column;
    gap: 0.5rem !important;
  }
  
  .hero-badge {
    width: 100%;
    justify-content: center;
  }
  
  .hero-actions {
    flex-direction: column !important;
    gap: 0.75rem !important;
  }
  
  .hero-actions .btn {
    width: 100%;
    text-align: center;
  }
  
  /* Service Cards */
  .service-showcase-card {
    padding: 1.1rem !important;
  }
  
  .service-showcase-media {
    height: 140px !important;
    margin: -1.1rem -1.1rem 0 !important;
  }
  
  .service-showcase-media img {
    width: 100% !important;
    height: 100% !important;
    object-fit: cover !important;
  }

  .service-showcase-card h3 {
    font-size: 1.05rem !important;
  }

  .service-showcase-card p {
    font-size: 0.8rem !important;
  }
  
  /* CTA Banner */
  .services-cta-banner {
    padding: 2.5rem 0 !important;
  }
  
  .cta-banner-text h2 {
    font-size: 1.35rem !important;
  }
  
  .cta-banner-text p {
    font-size: 0.9rem !important;
  }
  
  /* Trust Section */
  .trust-badges-section {
    padding: 3rem 0 !important;
  }
  
  .trust-logos {
    gap: 1.5rem !important;
  }
  
  .trust-logo-item img {
    height: 28px !important;
  }
  
  .trust-stats {
    gap: 1.5rem !important;
  }
  
  .stat-number {
    font-size: 1.75rem !important;
  }
  
  /* Engagement Section */
  .engagement-section {
    padding: 3rem 0 !important;
  }
  
  .engagement-content h3 {
    font-size: 1.5rem !important;
  }
  
  .engagement-content p {
    font-size: 0.9rem !important;
  }
  
  .engagement-image img {
    max-width: 100% !important;
  }
  
  /* Comparison Table */
  .comparison-table th,
  .comparison-table td {
    padding: 0.75rem 0.5rem !important;
    font-size: 0.8rem !important;
  }
  
  .comparison-table th:first-child {
    width: 100px !important;
  }
  
  /* Process Section */
  .process-section {
    padding: 3rem 0 !important;
  }
  
  .process-timeline::before {
    left: 20px !important;
  }
  
  .step-number {
    width: 45px !important;
    height: 45px !important;
    font-size: 1rem !important;
  }
  
  .process-step {
    gap: 1rem !important;
  }
  
  .step-content h3 {
    font-size: 1.1rem !important;
  }
  
  .step-content p {
    font-size: 0.85rem !important;
  }
  
  /* Buttons */
  .btn {
    padding: 0.75rem 1.25rem !important;
    font-size: 0.9rem !important;
  }
  
  .btn-lg {
    padding: 0.85rem 1.5rem !important;
  }
  
  /* Footer */
  .site-footer {
    padding: 2.5rem 0 1.5rem !important;
  }
  
  .footer-grid {
    gap: 1.5rem !important;
  }
}

/* Small Devices (landscape phones, 576px and below) */
@media (max-width: 576px) {
  /* Hero */
  .services-hero {
    padding: 7rem 0 3rem;
  }
  
  .services-hero h1 {
    font-size: 2rem;
  }
  
  .hero-badges {
    flex-wrap: wrap;
    justify-content: center;
  }
  
  /* Service Grid */
  .services-showcase-grid,
  .services-main-grid {
    grid-template-columns: 1fr !important;
    gap: 1.25rem;
  }
  
  /* Trust Stats */
  .trust-stats {
    flex-direction: column;
    align-items: center;
    gap: 1.5rem;
  }
  
  /* Engagement */
  .engagement-block {
    gap: 1.5rem !important;
  }
  
  .read-more-link {
    font-size: 0.85rem !important;
  }
  
  /* CTA Section */
  .cta-section {
    padding: 3rem 0 !important;
  }
  
  .cta-section h2 {
    font-size: 1.5rem !important;
  }
}

/* Medium Devices (tablets, 768px and below) */
@media (max-width: 768px) {
  /* Global sections padding */
  section {
    padding: 3.5rem 0;
  }
  
  /* Header adjustments */
  .site-header {
    padding: 0.75rem 1rem;
  }
  
  /* Hero */
  .services-hero {
    padding: 8rem 0 4rem;
    text-align: center;
  }
  
  .hero-content {
    align-items: center;
  }
  
  .hero-actions {
    justify-content: center;
    flex-wrap: wrap;
  }
  
  /* Service Grid */
  .services-showcase-grid,
  .services-main-grid {
    grid-template-columns: 1fr;
    gap: 1.5rem;
  }
  
  /* CTA Banner */
  .cta-banner-content {
    flex-direction: column;
    text-align: center;
    gap: 2rem;
  }
  
  .cta-banner-actions {
    width: 100%;
    justify-content: center;
    flex-wrap: wrap;
  }
  
  /* Trust Badges */
  .trust-logos {
    gap: 2rem;
  }
  
  /* Engagement */
  .engagement-header {
    text-align: center;
  }
  
  .engagement-block {
    grid-template-columns: 1fr;
    text-align: center;
  }
  
  .engagement-content {
    order: 2;
  }
  
  .engagement-image {
    order: 1;
  }
  
  .engagement-block.reverse .engagement-content {
    order: 2;
  }
  
  .engagement-block.reverse .engagement-image {
    order: 1;
  }
  
  /* Process */
  .process-header {
    margin-bottom: 2.5rem;
  }
  
  /* Footer */
  .footer-grid {
    text-align: center;
  }
}

/* Large Devices (desktops, 992px and below) */
@media (max-width: 992px) {
  /* Service Grid */
  .services-showcase-grid,
  .services-main-grid {
    grid-template-columns: repeat(2, 1fr);
  }
  
  /* Engagement */
  .engagement-content h3 {
    font-size: 2rem;
  }
}

/* Touch Device Optimizations */
@media (hover: none) and (pointer: coarse) {
  /* Larger touch targets */
  .btn {
    min-height: 48px;
    padding: 0.85rem 1.5rem;
  }
  
  .nav-item a {
    padding: 0.75rem 1rem;
  }
  
  .dropdown-item {
    padding: 0.85rem 1rem;
  }
  
  /* Remove hover effects that don't work on touch */
  .service-showcase-card:hover,
  .service-card-pro:hover,
  .engagement-card:hover {
    transform: none;
  }
  
  /* Add active states for touch feedback */
  .btn:active {
    transform: scale(0.98);
  }
  
  .service-showcase-card:active,
  .service-card-pro:active {
    transform: scale(0.99);
    border-color: rgba(155, 124, 255, 0.4);
  }
}

/* Landscape Mobile */
@media (max-width: 812px) and (orientation: landscape) {
  .services-hero {
    padding: 5rem 0 2.5rem;
    min-height: auto;
  }
  
  .hero-badges {
    flex-direction: row;
    flex-wrap: wrap;
  }
}

/* Safe area for notched devices */
@supports (padding: max(0px)) {
  .site-header {
    padding-left: max(1rem, env(safe-area-inset-left));
    padding-right: max(1rem, env(safe-area-inset-right));
  }
  
  .site-footer {
    padding-bottom: max(1.5rem, env(safe-area-inset-bottom));
  }
}

/* Print styles */
@media print {
  .site-header,
  .site-footer,
  .services-cta-banner,
  .cta-section {
    display: none !important;
  }
  
  .services-hero {
    padding: 2rem 0;
  }
  
  * {
    background: white !important;
    color: black !important;
  }
}