/* Modern CSS Variables */
:root {
  /* Colors - Based on logo blue #3b82f6 */
  --primary: #3b82f6;
  --primary-dark: #1e40af;
  --primary-light: #60a5fa;
  --primary-lighter: #93bbfc;
  --accent: #06b6d4;
  --secondary: #6366f1;
  
  --gray-50: #F9FAFB;
  --gray-100: #F3F4F6;
  --gray-200: #E5E7EB;
  --gray-300: #D1D5DB;
  --gray-400: #9CA3AF;
  --gray-500: #6B7280;
  --gray-600: #4B5563;
  --gray-700: #374151;
  --gray-800: #1F2937;
  --gray-900: #111827;
  
  --white: #FFFFFF;
  --black: #000000;
  
  /* Gradients */
  --gradient-primary: linear-gradient(135deg, var(--primary) 0%, var(--secondary) 100%);
  --gradient-accent: linear-gradient(135deg, var(--accent) 0%, var(--primary) 100%);
  --gradient-dark: linear-gradient(135deg, var(--gray-900) 0%, var(--gray-800) 100%);
  
  /* Spacing */
  --container-max: 1200px;
  --container-padding: 1.5rem;
  --section-padding: 5rem 0;
  --header-height: 70px;
  
  /* Typography */
  --font-primary: 'Inter', system-ui, -apple-system, sans-serif;
  --font-mono: 'JetBrains Mono', monospace;
  
  /* Shadows */
  --shadow-sm: 0 1px 2px 0 rgb(0 0 0 / 0.05);
  --shadow: 0 1px 3px 0 rgb(0 0 0 / 0.1), 0 1px 2px -1px rgb(0 0 0 / 0.1);
  --shadow-md: 0 4px 6px -1px rgb(0 0 0 / 0.1), 0 2px 4px -2px rgb(0 0 0 / 0.1);
  --shadow-lg: 0 10px 15px -3px rgb(0 0 0 / 0.1), 0 4px 6px -4px rgb(0 0 0 / 0.1);
  --shadow-xl: 0 20px 25px -5px rgb(0 0 0 / 0.1), 0 8px 10px -6px rgb(0 0 0 / 0.1);
  
  /* Borders */
  --border-radius: 12px;
  --border-radius-lg: 16px;
  --border-radius-xl: 24px;
  
  /* Transitions */
  --transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
  --transition-fast: all 0.15s cubic-bezier(0.4, 0, 0.2, 1);
  --transition-slow: all 0.5s cubic-bezier(0.4, 0, 0.2, 1);
}

/* Reset & Base Styles */
* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

/* Reduce motion for users who prefer it */
@media (prefers-reduced-motion: reduce) {
  *,
  *::before,
  *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
    scroll-behavior: auto !important;
  }
  
  .bg-grid {
    animation: none;
  }
  
  .client-logos {
    animation: none;
  }
  
  .pulse {
    animation: none;
  }
  
  .code-window {
    transform: none !important;
  }
  
  .service-card:hover,
  .team-card:hover {
    transform: none !important;
  }

}

html {
  scroll-behavior: smooth;
  scroll-padding-top: var(--header-height);
}

body {
  font-family: var(--font-primary);
  font-size: 16px;
  line-height: 1.6;
  color: var(--gray-700);
  background: var(--white);
}

/* Typography */
h1, h2, h3, h4, h5, h6 {
  font-weight: 700;
  line-height: 1.2;
  color: var(--gray-900);
}

h1 { font-size: clamp(2.5rem, 5vw, 4rem); }
h2 { font-size: clamp(2rem, 4vw, 3rem); }
h3 { font-size: clamp(1.5rem, 3vw, 2rem); }
h4 { font-size: 1.5rem; }
h5 { font-size: 1.25rem; }
h6 { font-size: 1.125rem; }

p {
  margin-bottom: 1.5rem;
}

a {
  text-decoration: none;
  color: inherit;
  transition: var(--transition-fast);
}

a:focus-visible {
  outline: 2px solid var(--primary);
  outline-offset: 2px;
  border-radius: 4px;
}

img {
  max-width: 100%;
  height: auto;
}

/* Layout Components */
.container {
  max-width: var(--container-max);
  margin: 0 auto;
  padding: 0 var(--container-padding);
}

.text-gradient {
  background: var(--gradient-primary);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

.accent {
  color: var(--accent);
}

/* Animated Background */
.bg-animation {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  z-index: -1;
  overflow: hidden;
}

.bg-gradient {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: radial-gradient(600px circle at 50% 0%, rgba(59, 130, 246, 0.05), transparent 50%);
}

.bg-grid {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background-image: 
    linear-gradient(rgba(59, 130, 246, 0.03) 1px, transparent 1px),
    linear-gradient(90deg, rgba(59, 130, 246, 0.03) 1px, transparent 1px);
  background-size: 50px 50px;
  animation: grid-move 20s ease-in-out infinite;
}

@keyframes grid-move {
  0%, 100% { transform: translate(0, 0); }
  50% { transform: translate(10px, 10px); }
}

/* Header */
.header {
  position: fixed;
  top: 0;
  width: 100%;
  height: var(--header-height);
  background: rgba(255, 255, 255, 0.95);
  backdrop-filter: blur(10px);
  border-bottom: 1px solid var(--gray-200);
  z-index: 1000;
  transition: var(--transition);
}

.header-content {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 100%;
  padding-top: 8px;
  padding-bottom: 4px;
}

.logo {
  display: flex;
  align-items: center;
  transition: var(--transition);
}

.logo:hover {
  transform: translateY(-2px);
}

.logo-img {
  width: clamp(140px, 25vw, 200px);
  height: auto;
  transition: var(--transition);
  max-height: 50px;
}

.nav {
  display: flex;
  align-items: center;
  gap: 2rem;
}

.nav-link {
  position: relative;
  font-weight: 500;
  color: var(--gray-600);
  padding: 0.5rem 0;
  transition: var(--transition-fast);
}

.nav-link:hover {
  color: var(--primary);
}

.nav-link::after {
  content: '';
  position: absolute;
  bottom: 0;
  left: 0;
  width: 0;
  height: 2px;
  background: var(--gradient-primary);
  transition: var(--transition-fast);
}

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

.nav-toggle {
  display: none;
  flex-direction: column;
  gap: 4px;
  background: none;
  border: none;
  cursor: pointer;
  padding: 0.5rem;
}

.nav-toggle span {
  width: 24px;
  height: 2px;
  background: var(--gray-700);
  transition: var(--transition-fast);
}

.nav-toggle.active span:nth-child(1) {
  transform: rotate(45deg) translate(5px, 5px);
}

.nav-toggle.active span:nth-child(2) {
  opacity: 0;
}

.nav-toggle.active span:nth-child(3) {
  transform: rotate(-45deg) translate(7px, -6px);
}

/* Mobile Navigation Menu */
@media (max-width: 768px) {
  .nav {
    position: fixed;
    top: var(--header-height);
    left: 0;
    width: 100%;
    height: calc(100vh - var(--header-height));
    background: rgba(255, 255, 255, 0.98);
    backdrop-filter: blur(10px);
    flex-direction: column;
    justify-content: flex-start;
    align-items: center;
    padding: 2rem 0;
    transform: translateX(-100%);
    transition: var(--transition);
    z-index: 999;
    gap: 0;
  }
  
  .nav.active {
    transform: translateX(0);
  }
  
  .nav-link {
    padding: 1rem 2rem;
    font-size: 1.125rem;
    width: 100%;
    text-align: center;
    border-bottom: 1px solid var(--gray-200);
  }
  
  .nav-link:last-child {
    border-bottom: none;
  }
  
  .nav-link::after {
    display: none;
  }
  
  .nav-link:focus-visible {
    background: var(--gray-100);
    outline: 2px solid var(--primary);
    outline-offset: -2px;
  }
  
  .nav-toggle:focus-visible {
    outline: 2px solid var(--primary);
    outline-offset: 2px;
  }
}

/* Button System */
.btn {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.75rem 1.5rem;
  font-weight: 600;
  font-size: 0.875rem;
  text-align: center;
  border: none;
  border-radius: var(--border-radius);
  cursor: pointer;
  transition: var(--transition);
  text-decoration: none;
  white-space: nowrap;
}

.btn-large {
  padding: 1rem 2rem;
  font-size: 1rem;
}

.btn-primary {
  background: var(--gradient-primary);
  color: var(--white);
  box-shadow: var(--shadow);
}

.btn-primary:hover {
  transform: translateY(-2px);
  box-shadow: var(--shadow-lg);
}

.btn:focus-visible {
  outline: 2px solid var(--primary);
  outline-offset: 2px;
}

.btn-secondary {
  background: var(--gray-100);
  color: var(--gray-700);
  border: 1px solid var(--gray-300);
}

.btn-secondary:hover {
  background: var(--gray-200);
  border-color: var(--gray-400);
}

.btn-ghost {
  background: transparent;
  color: var(--primary);
  border: 1px solid var(--primary);
}

.btn-ghost:hover {
  background: var(--primary);
  color: var(--white);
}

.btn-white {
  background: var(--white);
  color: var(--primary);
  box-shadow: var(--shadow);
}

.btn-white:hover {
  transform: translateY(-2px);
  box-shadow: var(--shadow-lg);
}

.btn-ghost-white {
  background: transparent;
  color: var(--white);
  border: 1px solid rgba(255, 255, 255, 0.3);
}

.btn-ghost-white:hover {
  background: rgba(255, 255, 255, 0.1);
  border-color: rgba(255, 255, 255, 0.5);
}

.btn-nav {
  padding: 0.5rem 1rem;
  font-size: 0.875rem;
}

.full {
  width: 100%;
}

/* Utility Classes */
.sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}

.skip-link {
  position: absolute;
  top: -100px;
  left: -100px;
  background: var(--primary);
  color: var(--white);
  padding: 8px;
  text-decoration: none;
  border-radius: 4px;
  z-index: 10000;
  opacity: 0;
  transform: translateY(-100px);
}

.skip-link:focus {
  top: 6px;
  left: 6px;
  opacity: 1;
  transform: translateY(0);
}

/* Hero Section */
.hero {
  padding: calc(var(--header-height) + 2rem) 0 5rem;
  background: var(--white);
  position: relative;
  overflow: hidden;
}

.hero-grid {
  display: flex;
  flex-direction: column;
  gap: 0;
  min-height: auto;
  overflow: hidden;
}

/* Ensure proper spacing between hero content and visual */
@media (max-width: 980px) {
  .hero-visual {
    max-width: 100%;
  }

  .code-window {
    width: 480px;
    max-width: 100%;
  }
}

.hero-content {
  z-index: 2;
  width: 100%;
  max-width: 100%;
  overflow: hidden;
  display: flex;
  flex-direction: column;
  gap: 0;
}

.hero-badge {
  align-self: flex-start;
  margin-bottom: 1.5rem;
}

.hero-description-section {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 3rem;
  align-items: center;
  margin-bottom: 2.5rem;
  margin-right: 40px;
}

.hero-badge {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.75rem 1.5rem;
  background: var(--gradient-primary);
  color: var(--white);
  border: none;
  border-radius: 50px;
  font-size: 0.875rem;
  font-weight: 600;
  box-shadow: var(--shadow);
  align-self: center;
}

.pulse {
  width: 10px;
  height: 10px;
  background: #10b981;
  border-radius: 50%;
  animation: pulse 2s infinite;
  box-shadow: 0 0 0 0 rgba(16, 185, 129, 0.7);
}

@keyframes pulse {
  0% {
    transform: scale(0.95);
    box-shadow: 0 0 0 0 rgba(16, 185, 129, 0.7);
  }
  
  70% {
    transform: scale(1);
    box-shadow: 0 0 0 10px rgba(16, 185, 129, 0);
  }
  
  100% {
    transform: scale(0.95);
    box-shadow: 0 0 0 0 rgba(16, 185, 129, 0);
  }
}

.hero-title {
  margin-bottom: 1.5rem;
  font-weight: 900;
  align-self: flex-start;
}

.hero-description {
  font-size: 1.25rem;
  color: var(--gray-600);
  margin-bottom: 2rem;
  line-height: 1.7;
}

.hero-stats {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 2rem;
  margin: 2rem 0;
  padding: 2rem 0;
  border-top: 1px solid var(--gray-200);
  border-bottom: 1px solid var(--gray-200);
}

.stat {
  text-align: center;
}

.stat-value {
  display: block;
  font-size: 2rem;
  font-weight: 900;
  color: var(--primary);
}

.stat-label {
  font-size: 0.875rem;
  color: var(--gray-600);
  font-weight: 500;
}

.hero-actions {
  display: flex;
  gap: 1rem;
  margin-bottom: 1.5rem;
  flex-wrap: wrap;
  align-items: center;
}

.hero-clients {
  position: relative;
  overflow: hidden;
  width: 100%;
  max-width: 100%;
  margin-top: 3rem;
}

.hero-clients p {
  font-size: 0.875rem;
  color: var(--gray-500);
  margin-bottom: 1rem;
  text-align: center;
}

/* Mobile: keep logos within container but with consistent styling */
@media (max-width: 768px) {
  .hero-clients {
    width: 100%;
    margin-left: 0;
    padding: 1.5rem 0;
    background: var(--white);
  }
}

/* Desktop: make logos section follow hero-grid layout exactly */
@media (min-width: 769px) {
  .hero-clients {
    margin-top: 0;
    padding: 1.5rem 0;
    background: var(--white);
  }
  
  .hero-clients p {
    text-align: center;
    margin-bottom: 1.5rem;
  }
  
  .client-logos {
    margin: 0 auto;
  }
  
  .hero-visual {
    display: flex;
    justify-content: center;
    align-items: center;
  }
  
  /* Ensure hero actions don't overlap with visual */
  .hero-actions {
    margin-bottom: 3rem;
  }
}

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

.client-logos {
  display: flex;
  gap: 3rem;
  align-items: center;
  animation: scrollBanner 20s linear infinite;
  width: max-content;
  margin: 0 auto;
  contain: layout style;
  cursor: grab;
  user-select: none;
  overflow: hidden;
}

.client-logos:active {
  cursor: grabbing;
}

.client-logos.dragging {
  animation: none !important;
}

.client-logos.manual {
  animation: none !important;
}

/* Adjust gap for mobile but keep same scroll speed */
@media (max-width: 768px) {
  .client-logos {
    gap: 2rem;
    animation-duration: 25s;
  }
}

.client-logos:hover {
  animation-play-state: paused;
  transform: scale(1.02);
  transition: transform 0.3s ease;
}

.client-logo {
  height: 40px;
  width: auto;
  filter: grayscale(100%) brightness(0.8);
  opacity: 0.7;
  transition: all 0.3s ease;
}

.client-logo:hover {
  filter: grayscale(0%) brightness(1);
  opacity: 1;
}

/* Individual logo size adjustments */
.client-logo-samsung {
  height: 45px;
}

.client-logo-flyr {
  height: 35px;
}

.client-logo-wirex {
  height: 80px;
}

.client-logo-onet {
  height: 70px;
}

/* Keep duplicates visible for seamless scrolling */

/* Code Window */
.hero-visual {
  position: relative;
  z-index: 1;
  overflow: visible;
  display: flex;
  justify-content: center;
  align-items: center;
}

/* Code Window - Rebuilt from scratch */
.code-window {
  background: var(--gray-900);
  border-radius: 12px;
  box-shadow: 0 20px 40px rgba(0, 0, 0, 0.3);
  transform: perspective(1000px) rotateY(-10deg) rotateX(3deg);
  transition: transform 0.3s ease;
  width: 100%;
  max-width: 480px;
  margin: 0 auto;
  overflow: hidden;
  border: 1px solid var(--gray-800);
  backface-visibility: hidden;
}

.code-window:hover {
  transform: perspective(1000px) rotateY(-5deg) rotateX(1deg);
}

.code-header {
  background: var(--gray-800);
  padding: 12px 16px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  border-bottom: 1px solid var(--gray-700);
  min-height: 40px;
}

.code-dots {
  display: flex;
  gap: 6px;
  align-items: center;
}

.code-dots span {
  width: 12px;
  height: 12px;
  border-radius: 50%;
  display: block;
}

.code-dots span:nth-child(1) { background: #ff5f57; }
.code-dots span:nth-child(2) { background: #ffbd2e; }
.code-dots span:nth-child(3) { background: #28ca42; }

.code-title {
  font-family: var(--font-mono);
  font-size: 13px;
  color: var(--gray-300);
  font-weight: 500;
}

.code-content {
  padding: 20px 24px 24px 24px;
  font-family: var(--font-mono);
  font-size: 14px;
  line-height: 1.5;
  color: var(--gray-300);
  background: var(--gray-900);
  margin: 0;
  white-space: pre;
  overflow-x: auto;
  overflow-y: visible;
}

.keyword { color: #C792EA; }
.class { color: #FFCB6B; }
.function { color: #82AAFF; }
.param { color: #FFCB6B; }
.property { color: #F78C6C; }
.string { color: #C3E88D; }

/* Section Styles */
section {
  padding: var(--section-padding);
  position: relative;
}

.section-header {
  text-align: center;
  max-width: 700px;
  margin: 0 auto 4rem;
  padding: 0 1rem;
}

.section-label {
  display: inline-block;
  padding: 0.5rem 1rem;
  background: rgba(59, 130, 246, 0.1);
  color: var(--primary);
  border-radius: 50px;
  font-size: 0.875rem;
  font-weight: 600;
  margin-bottom: 1rem;
  text-transform: uppercase;
  letter-spacing: 0.05em;
}

.section-title {
  margin-bottom: 1rem;
}

.section-description {
  font-size: 1.125rem;
  color: var(--gray-600);
  line-height: 1.7;
}

/* Services Section */
.services {
  background: var(--gray-50);
}

.services-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(min(320px, 100%), 1fr));
  gap: 2rem;
  margin-top: 4rem;
  justify-items: center;
  align-items: start;
}

@media (min-width: 768px) {
  .services-grid {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media (min-width: 1200px) {
  .services-grid {
    grid-template-columns: repeat(3, 1fr);
  }
}

.service-card {
  background: var(--white);
  padding: 2.5rem;
  border-radius: var(--border-radius-lg);
  box-shadow: var(--shadow);
  transition: var(--transition);
  position: relative;
  overflow: hidden;
}

.service-card::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 4px;
  background: var(--gradient-primary);
  transform: scaleX(0);
  transform-origin: left;
  transition: var(--transition);
}

.service-card:hover::before {
  transform: scaleX(1);
}

.service-card:hover {
  transform: translateY(-8px);
  box-shadow: var(--shadow-xl);
}

.service-card.featured {
  border: 2px solid var(--primary);
  transform: translateY(-8px);
}

.service-card.featured::before {
  transform: scaleX(1);
}

.service-icon {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 80px;
  height: 80px;
  background: var(--gradient-primary);
  border-radius: var(--border-radius);
  margin-bottom: 1.5rem;
  color: var(--white);
}

.service-card h3 {
  margin-bottom: 1rem;
  font-size: 1.5rem;
}

.service-card p {
  color: var(--gray-600);
  margin-bottom: 2rem;
  line-height: 1.7;
}

.service-features {
  list-style: none;
  margin-bottom: 2rem;
}

.service-features li {
  position: relative;
  padding-left: 1.5rem;
  margin-bottom: 0.5rem;
  color: var(--gray-600);
}

.service-features li::before {
  content: '✓';
  position: absolute;
  left: 0;
  color: var(--accent);
  font-weight: bold;
}

.service-link {
  color: var(--primary);
  font-weight: 600;
  transition: var(--transition-fast);
}

.service-link:hover {
  color: var(--primary-dark);
}

/* Expertise Section */
.expertise {
  background: var(--white);
  padding-bottom: 6rem;
}

@media (min-width: 1200px) {
  .expertise {
    padding-bottom: 3rem;
  }
}

.expertise-tabs {
  max-width: 1000px;
  margin: 0 auto;
}

.tab-nav {
  display: flex;
  justify-content: center;
  gap: 1rem;
  margin-bottom: 0;
  border-bottom: 1px solid var(--gray-200);
  overflow-x: auto;
  padding-bottom: 0;
  scrollbar-width: none;
  -ms-overflow-style: none;
}

.tab-nav::-webkit-scrollbar {
  display: none;
}

.tab-btn {
  background: none;
  border: none;
  padding: 1rem 2rem;
  font-weight: 600;
  color: var(--gray-500);
  cursor: pointer;
  border-bottom: 2px solid transparent;
  transition: var(--transition-fast);
  white-space: nowrap;
  flex-shrink: 0;
  min-width: fit-content;
}

.tab-btn.active {
  color: var(--primary);
  border-bottom-color: var(--primary);
}

.tab-btn:hover {
  color: var(--primary);
}

.tab-content {
  position: relative;
  min-height: 550px;
  padding: 2rem 0;
  background: var(--gray-50);
  border-radius: var(--border-radius-lg);
  margin-top: 0;
}

.tab-pane {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  opacity: 0;
  visibility: hidden;
  transform: translateY(10px);
  transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

.tab-pane.active {
  opacity: 1;
  visibility: visible;
  transform: translateY(0);
}

.tech-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(140px, 1fr));
  gap: 1.5rem;
  justify-items: center;
  align-items: start;
  max-width: 900px;
  margin: 0 auto;
  padding: 1rem;
  width: 100%;
}

@media (min-width: 600px) {
  .tech-grid {
    grid-template-columns: repeat(auto-fill, minmax(140px, 1fr));
    gap: 1.75rem;
    max-width: 850px;
    padding: 1rem;
  }

  .tech-card {
    min-width: 130px;
    max-width: 140px;
    padding: 1.25rem 1rem;
  }
}

@media (min-width: 768px) {
  .tech-grid {
    gap: 2rem;
    max-width: 900px;
    padding: 1.5rem;
  }

  .tech-card {
    min-width: 135px;
    max-width: 145px;
    padding: 1.5rem 1rem;
  }
}

@media (min-width: 1100px) {
  .tech-grid {
    grid-template-columns: repeat(6, 1fr);
    gap: 2rem;
    max-width: 1000px;
  }

  .tech-card {
    min-width: 140px;
    max-width: 160px;
  }
}

.tech-card {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 0.75rem;
  padding: 1.5rem 1rem;
  background: var(--gray-50);
  border: 1px solid var(--gray-200);
  border-radius: var(--border-radius);
  transition: var(--transition);
  cursor: pointer;
  width: 100%;
  min-width: 120px;
  max-width: 150px;
  height: 140px;
  position: relative;
  overflow: hidden;
}

.tech-card:hover {
  background: var(--white);
  border-color: var(--primary);
  box-shadow: var(--shadow-lg);
  transform: translateY(-4px);
}

.tech-card::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 3px;
  background: var(--gradient-primary);
  transform: scaleX(0);
  transition: transform 0.3s ease;
}

.tech-card:hover::before {
  transform: scaleX(1);
}

.tech-card img {
  width: 40px;
  height: 40px;
  filter: grayscale(20%);
  transition: filter 0.3s ease;
}

.tech-card:hover img {
  filter: grayscale(0%);
}

.tech-card span {
  font-weight: 600;
  font-size: 0.875rem;
  color: var(--gray-700);
  text-align: center;
  line-height: 1.2;
}


/* Case Studies Section */
.case-studies {
  background: var(--white);
  scroll-margin-top: var(--header-height);
}

.case-studies .section-header {
  margin-bottom: 6rem;
}

/* Portfolio Section */
.portfolio {
  background: var(--white);
}

.carousel {
  position: relative;
  padding: 0 40px 8rem 40px;
  max-width: 1400px;
  margin-left: auto;
  margin-right: auto;
  display: flex;
  flex-direction: column;
  align-items: center;
}

.carousel-grid {
  position: relative;
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: visible;
  perspective: 1200px;
  min-height: 500px;
  width: 100%;
}

.carousel-arrow {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  background: var(--white);
  border: 2px solid var(--primary);
  border-radius: 50%;
  width: 50px;
  height: 50px;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  transition: var(--transition);
  z-index: 10;
  color: var(--primary);
  font-size: 1.2rem;
  box-shadow: var(--shadow);
  line-height: 1;
}

.carousel-arrow svg {
  display: block;
  margin: 0 auto;
}

.carousel-arrow:hover {
  background: var(--primary);
  color: var(--white);
  transform: translateY(-50%) scale(1.1);
  box-shadow: var(--shadow-lg);
}

.carousel-arrow.prev {
  left: 20px;
}

.carousel-arrow.next {
  right: 20px;
}

.carousel-pagination {
  position: relative;
  margin-top: 2rem;
  display: flex;
  justify-content: center;
  gap: 12px;
  z-index: 10;
}

.pagination-dot {
  width: 12px;
  height: 12px;
  border-radius: 50%;
  background: var(--gray-300);
  cursor: pointer;
  transition: all 0.3s ease;
  border: 2px solid transparent;
}

.pagination-dot:hover {
  background: var(--gray-400);
  transform: scale(1.1);
}

.pagination-dot.active {
  background: var(--primary);
  border-color: var(--white);
  box-shadow: 0 0 0 2px var(--primary);
  transform: scale(1.2);
}

.carousel-card {
  position: absolute;
  background: var(--white);
  border-radius: var(--border-radius-lg);
  overflow: hidden;
  box-shadow: var(--shadow);
  transition: all 0.6s cubic-bezier(0.25, 0.1, 0.25, 1);
  width: min(350px, 80vw);
  opacity: 0.6;
  transform: rotateY(30deg) scale(0.8);
  transform-origin: center;
  filter: blur(1px);
  left: 50%;
  top: 50%;
  transform: translateX(-50%) translateY(-50%) rotateY(30deg) scale(0.8);
  will-change: transform, opacity, filter;
  backface-visibility: hidden;
}

.carousel-card.active {
  position: absolute;
  width: min(450px, 90vw);
  opacity: 1;
  transform: translateX(-50%) translateY(-50%) rotateY(0deg) scale(1);
  z-index: 5;
  box-shadow: var(--shadow-xl);
  filter: blur(0px);
  left: 50%;
  top: 50%;
}

.carousel-card.prev {
  transform: translateX(-50%) translateY(-50%) rotateY(-15deg) scale(0.85) translateX(-280px);
  opacity: 0.7;
  filter: blur(0.5px);
  z-index: 2;
  transition: all 0.6s cubic-bezier(0.25, 0.1, 0.25, 1);
}

.carousel-card.next {
  transform: translateX(-50%) translateY(-50%) rotateY(15deg) scale(0.85) translateX(280px);
  opacity: 0.7;
  filter: blur(0.5px);
  z-index: 2;
  transition: all 0.6s cubic-bezier(0.25, 0.1, 0.25, 1);
}

.carousel-card.entering-left {
  transform: translateX(-50%) translateY(-50%) rotateY(-30deg) scale(0.7) translateX(-100px);
  opacity: 0;
  transition: all 0.6s cubic-bezier(0.25, 0.1, 0.25, 1);
}

.carousel-card.entering-right {
  transform: translateX(-50%) translateY(-50%) rotateY(30deg) scale(0.7) translateX(100px);
  opacity: 0;
  transition: all 0.6s cubic-bezier(0.25, 0.1, 0.25, 1);
}

.carousel-card.entering-center {
  transform: translateX(-50%) translateY(-50%) rotateY(0deg) scale(1);
  opacity: 1;
  transition: all 0.6s cubic-bezier(0.25, 0.1, 0.25, 1);
}

.carousel-card.exiting-left {
  transform: translateX(-50%) translateY(-50%) rotateY(-30deg) scale(0.7) translateX(-100px);
  opacity: 0;
  transition: all 0.6s cubic-bezier(0.25, 0.1, 0.25, 1);
}

.carousel-card.exiting-right {
  transform: translateX(-50%) translateY(-50%) rotateY(30deg) scale(0.7) translateX(100px);
  opacity: 0;
  transition: all 0.6s cubic-bezier(0.25, 0.1, 0.25, 1);
}

.carousel-card.hidden {
  opacity: 0;
  transform: translateX(-50%) translateY(-50%) scale(0.3) rotateY(60deg) translateX(200px);
  pointer-events: none;
}

.carousel-card.active:hover {
  transform: translateX(-50%) translateY(-50%) rotateY(0deg) scale(1.05);
  box-shadow: 0 25px 50px rgba(0, 0, 0, 0.25);
  transition: all 0.3s ease;
}

.carousel-card.prev:hover,
.carousel-card.next:hover {
  opacity: 0.9;
}

.case-studies-image {
  position: relative;
  height: 200px;
  background: var(--gradient-primary);
  overflow: hidden;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: var(--border-radius-lg) var(--border-radius-lg) 0 0;
}

.case-studies-overlay {
  position: absolute;
  bottom: 1rem;
  left: 1rem;
  background: rgba(0, 0, 0, 0.8);
  color: var(--white);
  padding: 0.5rem 1rem;
  border-radius: var(--border-radius);
  font-size: 0.875rem;
  font-weight: 600;
}

.case-studies-content {
  padding: 2rem;
}

.case-studies-content h3 {
  margin-bottom: 1rem;
  font-size: 1.25rem;
  color: var(--gray-900);
  font-weight: 700;
}

.case-studies-content p {
  color: var(--gray-600);
  margin-bottom: 1.5rem;
  line-height: 1.7;
}

.case-studies-tech {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
}

.case-studies-tech span {
  padding: 0.25rem 0.75rem;
  background: var(--gray-100);
  color: var(--gray-700);
  border-radius: 20px;
  font-size: 0.75rem;
  font-weight: 600;
  transition: var(--transition-fast);
}

.case-studies-tech span:hover {
  background: var(--primary);
  color: var(--white);
  transform: translateY(-1px);
}


/* Team Section */
.team {
  background: var(--gray-50);
}

.team-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 2rem;
  margin-top: 4rem;
  max-width: 800px;
  margin-left: auto;
  margin-right: auto;
  justify-items: center;
  align-items: start;
}

.team-card {
  background: var(--white);
  border-radius: var(--border-radius-lg);
  overflow: hidden;
  box-shadow: var(--shadow);
  transition: var(--transition);
  text-align: center;
}

.team-card:hover {
  transform: translateY(-8px);
  box-shadow: var(--shadow-xl);
}

.team-image {
  position: relative;
  overflow: hidden;
}

.team-image img {
  width: 100%;
  height: 300px;
  object-fit: cover;
  transition: var(--transition);
}

.team-card:hover .team-image img {
  transform: scale(1.05);
}

.team-social {
  position: absolute;
  top: 1rem;
  right: 1rem;
  display: flex;
  gap: 0.5rem;
  opacity: 0;
  transition: var(--transition);
}

.team-card:hover .team-social {
  opacity: 1;
}

.team-social a {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 36px;
  height: 36px;
  background: rgba(0, 0, 0, 0.8);
  color: var(--white);
  border-radius: 50%;
  font-size: 0.875rem;
  font-weight: 600;
  transition: var(--transition-fast);
}

.team-social a:hover {
  background: var(--primary);
  transform: scale(1.1);
}

.team-content {
  padding: 2rem;
}

.team-content h3 {
  margin-bottom: 0.5rem;
  font-size: 1.5rem;
}

.team-role {
  color: var(--primary);
  font-weight: 600;
  margin-bottom: 1rem;
}

.team-bio {
  color: var(--gray-600);
  margin-bottom: 1.5rem;
  line-height: 1.7;
}

.team-skills {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
  justify-content: center;
}

.team-skills span {
  padding: 0.25rem 0.75rem;
  background: var(--gray-100);
  color: var(--gray-700);
  border-radius: 20px;
  font-size: 0.75rem;
  font-weight: 600;
}

/* CTA Section */
.cta {
  background: var(--gradient-dark);
  color: var(--white);
  text-align: center;
  padding: var(--section-padding);
}

.cta-content h2 {
  color: var(--white);
  margin-bottom: 1rem;
  font-size: 2.5rem;
}

.cta-content p {
  font-size: 1.25rem;
  color: rgba(255, 255, 255, 0.8);
  margin-bottom: 2rem;
}

.cta-actions {
  display: flex;
  gap: 1rem;
  justify-content: center;
}

/* FAQ Section */
.faq {
  background: var(--gray-50);
  padding: var(--section-padding);
}

.faq-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(min(350px, 100%), 1fr));
  gap: 2rem;
  margin-top: 3rem;
  justify-items: center;
  align-items: start;
}

.faq-item {
  background: var(--white);
  padding: 2rem;
  border-radius: var(--border-radius);
  border-left: 4px solid var(--primary);
  box-shadow: var(--shadow);
  transition: var(--transition);
}

.faq-item:hover {
  transform: translateY(-2px);
  box-shadow: var(--shadow-lg);
}

.faq-item h3 {
  color: var(--gray-900);
  font-size: 1.125rem;
  font-weight: 600;
  margin-bottom: 1rem;
}

.faq-item p {
  color: var(--gray-600);
  line-height: 1.7;
  margin: 0;
}

@media (max-width: 768px) {
  .faq-grid {
    grid-template-columns: 1fr;
    gap: 1.5rem;
    justify-items: center;
  }
  
  .faq-item {
    padding: 1.5rem;
  }
}

/* Contact Section */
.contact {
  background: var(--white);
}

.contact-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 4rem;
  margin-top: 4rem;
  align-items: start;
}

.contact-info {
  display: flex;
  flex-direction: column;
  gap: 2rem;
}

.info-card {
  display: flex;
  align-items: flex-start;
  gap: 1rem;
  padding: 1.5rem;
  background: var(--gray-50);
  border-radius: var(--border-radius);
}

.info-icon {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 48px;
  height: 48px;
  background: var(--gradient-primary);
  color: var(--white);
  border-radius: var(--border-radius);
  flex-shrink: 0;
}

.info-card h3 {
  margin-bottom: 0.5rem;
  font-size: 1.125rem;
}

.info-card p {
  color: var(--gray-600);
  margin-bottom: 0;
  line-height: 1.6;
}

.info-card a {
  color: var(--primary);
  text-decoration: underline;
}

.info-card a:hover {
  text-decoration: none;
}

/* Contact Form */
.contact-form {
  display: grid;
  gap: 1.5rem;
}

.form-group {
  position: relative;
}

.form-group.full {
  grid-column: 1 / -1;
}

.contact-form input,
.contact-form select,
.contact-form textarea {
  width: 100%;
  padding: 1rem;
  border: 2px solid var(--gray-200);
  border-radius: var(--border-radius);
  font-size: 1rem;
  background: var(--white);
  transition: var(--transition-fast);
}

.contact-form input:focus,
.contact-form select:focus,
.contact-form textarea:focus {
  outline: none;
  border-color: var(--primary);
  box-shadow: 0 0 0 3px rgba(59, 130, 246, 0.1);
}

.form-group label {
  position: absolute;
  top: 1rem;
  left: 1rem;
  color: var(--gray-500);
  font-size: 0.875rem;
  pointer-events: none;
  transition: var(--transition-fast);
  opacity: 0;
  transform: translateY(0);
}

.contact-form input:focus + label,
.contact-form input:not(:placeholder-shown) + label,
.contact-form select:focus + label,
.contact-form select:not([value=""]) + label,
.contact-form textarea:focus + label,
.contact-form textarea:not(:placeholder-shown) + label {
  top: -0.5rem;
  left: 0.75rem;
  background: var(--white);
  padding: 0 0.5rem;
  color: var(--primary);
  font-size: 0.75rem;
  font-weight: 600;
  opacity: 1;
  transform: translateY(0);
}

.contact-form textarea {
  resize: vertical;
  min-height: 120px;
}

.contact-form button {
  justify-self: start;
}

.error-message {
  color: #dc2626;
  font-size: 0.875rem;
  margin-top: 0.25rem;
  display: none;
}

.error-message.show {
  display: block;
}

.form-group.error input,
.form-group.error select,
.form-group.error textarea {
  border-color: #dc2626;
  box-shadow: 0 0 0 3px rgba(220, 38, 38, 0.1);
}

.character-counter {
  font-size: 0.75rem;
  margin-top: 0.5rem;
  color: var(--gray-500);
  text-align: right;
  transition: color var(--transition-fast);
}

.form-buttons {
  display: flex;
  gap: 1rem;
  align-items: center;
  grid-column: 1 / -1;
}

.btn-secondary {
  background: transparent;
  color: var(--gray-600);
  border: 1px solid var(--gray-300);
  padding: 0.75rem 1.5rem;
  font-size: 0.875rem;
}

.btn-secondary:hover {
  background: var(--gray-100);
  color: var(--gray-700);
  border-color: var(--gray-400);
}

/* Footer */
.footer {
  background: var(--gray-900);
  color: var(--gray-300);
}

.footer-top {
  display: grid;
  grid-template-columns: 2fr 1fr 1fr 1fr;
  gap: 3rem;
  padding: 4rem 0;
  border-bottom: 1px solid var(--gray-800);
}

.footer-brand {
  display: flex;
  flex-direction: column;
  gap: 1rem;
}

.footer-logo {
  width: 160px;
  height: auto;
  max-height: 50px;
  filter: brightness(0) invert(1);
}

.footer-brand p {
  color: var(--gray-400);
  line-height: 1.7;
  margin: 0;
}

.footer-social {
  display: flex;
  gap: 1rem;
  margin-top: 1rem;
}

.footer-social a {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 40px;
  height: 40px;
  background: var(--gray-800);
  border-radius: 50%;
  transition: var(--transition-fast);
}

.footer-social a:hover {
  background: var(--primary);
  transform: translateY(-2px);
}

.footer-links h4 {
  color: var(--white);
  margin-bottom: 1rem;
  font-size: 1rem;
}

.footer-links {
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
}

.footer-links a {
  color: var(--gray-400);
  transition: var(--transition-fast);
}

.footer-links a:hover {
  color: var(--white);
}

.footer-bottom {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 2rem 0;
  color: var(--gray-500);
}

.footer-bottom p {
  margin: 0;
}

/* Responsive Design */
@media (max-width: 980px) {
  .hero-stats {
    grid-template-columns: repeat(3, 1fr);
  }
  
  .contact-grid {
    grid-template-columns: 1fr;
    gap: 3rem;
  }
  
  .footer-top {
    grid-template-columns: 1fr 1fr;
    gap: 2rem;
  }
}

@media (max-width: 768px) {
  :root {
    --container-padding: 1rem;
    --section-padding: 3rem 0;
  }

  .nav {
    display: none;
  }

  .nav-toggle {
    display: flex;
  }

  .code-window {
    width: 480px;
    max-width: 100%;
  }

  /* Mobile carousel adjustments */
  .carousel {
    padding: 2rem 20px 4.5rem 20px;
    overflow: hidden;
  }

  .carousel-pagination {
    bottom: -55px;
    gap: 10px;
  }

  .pagination-dot {
    width: 10px;
    height: 10px;
  }
  
  .hero-grid {
    display: flex;
    flex-direction: column;
    gap: 0;
    min-height: auto;
  }
  
  .hero-content {
    display: flex;
    flex-direction: column;
    gap: 0;
  }
  
  .hero-description-section {
    display: flex;
    flex-direction: column;
    gap: 0;
    margin-right: 20px;
  }
  
  .hero-clients {
    order: 5;
    margin-top: 0;
  }
  
  .hero-actions .btn {
    flex: 1;
    min-width: 120px;
    font-size: 0.75rem;
    padding: 0.5rem 0.6rem;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
  }
  
  /* Better sizing for very small screens */
  @media (max-width: 400px) {
    .hero-actions .btn {
      min-width: 80px;
      font-size: 0.7rem;
      padding: 0.4rem 0.5rem;
    }

    .logo-img {
      width: clamp(100px, 30vw, 140px);
      max-height: 40px;
    }

    .code-window {
      max-width: 100%;
      width: 100%;
      margin: 0.5rem auto;
    }
  }
  
  .hero-badge {
    order: 1;
    margin-bottom: 1.5rem;
    align-self: center;
  }
  
  .hero-title {
    order: 2;
    margin-bottom: 1.5rem;
  }
  
  .hero-description-section {
    order: 3;
    margin-bottom: 2.5rem;
  }
  
  .hero-actions {
    order: 4;
    margin-bottom: 1.5rem;
  }
  
  .hero-content {
    text-align: left;
    max-width: none;
  }
  
  .hero-stats {
    grid-template-columns: 1fr;
    gap: 1rem;
  }
  
  .client-logos {
    justify-content: flex-start;
    gap: 1.5rem;
    flex-wrap: wrap;
  }
  
  .client-logo {
    height: 35px;
  }
  
  .client-logo-samsung {
    height: 40px;
  }
  
  .client-logo-flyr {
    height: 30px;
  }
  
  .client-logo-wirex {
    height: 60px;
  }
  
  .client-logo-onet {
    height: 55px;
  }
  
  .client-logo-duplicate {
    display: none;
  }
  
  .hero-clients {
    text-align: left;
  }
  
  .services-grid,
  .team-grid {
    grid-template-columns: 1fr;
    justify-items: center;
  }

  /* Switch to simple single-card layout below 980px */
  .carousel {
    min-width: auto;
    max-width: 100%;
    padding: 2rem 40px 5rem 40px;
  }

  .carousel-grid {
    min-width: auto;
    min-height: auto;
    height: auto;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 20px 0;
    position: relative;
  }

  .carousel-arrow {
    width: 45px;
    height: 45px;
    font-size: 1.1rem;
  }

  .carousel-arrow.prev {
    left: 5px;
  }

  .carousel-arrow.next {
    right: 5px;
  }

  .carousel-pagination {
    margin-top: 1.5rem;
    gap: 8px;
  }

  .carousel-card {
    position: relative;
    width: 100%;
    max-width: min(600px, calc(100vw - 40px));
    margin: 0 auto;
    opacity: 0;
    z-index: 1;
    transition: opacity 0.3s ease;
    box-shadow: var(--shadow-lg);
    will-change: opacity;
  }

  .carousel-card.active {
    position: relative;
    width: 100%;
    max-width: min(600px, calc(100vw - 40px));
    margin: 0 auto;
    opacity: 1;
    z-index: 5;
    transition: opacity 0.3s ease;
  }

  .carousel-card.active:hover {
    transform: translateY(-8px) scale(1.02);
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.15);
  }

  .carousel-card.prev,
  .carousel-card.next,
  .carousel-card.hidden {
    display: none;
  }
  
  
  .tab-nav {
    flex-wrap: wrap;
    gap: 0.5rem;
  }
  
  .tab-btn {
    padding: 0.75rem 1rem;
    font-size: 0.875rem;
  }
  
  .tech-grid {
    grid-template-columns: repeat(auto-fill, minmax(110px, 1fr));
    gap: 1rem;
    max-width: 350px;
    padding: 1.5rem 0.5rem;
  }

  .tech-card {
    min-width: 100px;
    max-width: 120px;
    padding: 1rem;
    gap: 0.75rem;
  }
  
  .expertise {
    padding-bottom: 4rem;
  }
  
  .tab-content {
    min-height: 400px;
    padding: 0;
    margin-top: 0;
  }
  
  .cta-actions {
    flex-direction: column;
  }
  
  .footer-top {
    grid-template-columns: 1fr;
    gap: 2rem;
    text-align: center;
  }
  
  .footer-bottom {
    flex-direction: column;
    gap: 1rem;
    text-align: center;
  }
}

/* Additional breakpoint for better mobile experience */
@media (max-width: 520px) {

  .carousel-card {
    max-width: calc(100vw - 20px);
  }

  .carousel-card.active {
    max-width: calc(100vw - 20px);
  }

  .case-studies-content {
    padding: 1rem;
  }

  .case-studies-content h3 {
    font-size: 1rem;
    line-height: 1.2;
  }

  .case-studies-content p {
    font-size: 0.85rem;
    line-height: 1.4;
  }
}

@media (max-width: 480px) {
  :root {
    --container-padding: 0.75rem;
    --section-padding: 2rem 0;
    --header-height: 60px;
  }
  
  .header {
    height: var(--header-height);
  }
  
  .logo-img {
    width: clamp(120px, 35vw, 160px);
    max-height: 45px;
  }
  
  .hero {
    padding: calc(var(--header-height) + 1rem) 0 3rem;
    min-height: 70vh;
  }
  
  .hero-title {
    font-size: clamp(1.75rem, 8vw, 2.5rem);
    line-height: 1.1;
  }
  
  .hero-description {
    font-size: 1rem;
  }
  
  .hero-stats {
    grid-template-columns: 1fr;
    gap: 1rem;
    margin: 1.5rem 0;
  }
  
  .hero-visual {
    padding-right: 0;
    padding: 0 10px;
  }
  
  .code-window {
    transform: none;
    margin: 1rem auto;
    max-width: 100%;
    width: 100%;
    overflow: hidden;
    box-shadow: 0 10px 25px rgba(0, 0, 0, 0.3);
    display: block;
  }
  
  .code-header {
    padding: 10px 14px;
    min-height: 36px;
  }
  
  .code-title {
    font-size: 12px;
  }
  
  .code-content {
    font-size: 11px;
    padding: 16px 18px 20px 18px;
    line-height: 1.4;
    overflow-x: auto;
    overflow-y: visible;
  }
  
  .service-card,
  .team-card,
  .carousel-card {
    padding: 1.5rem;
  }
  
  .services-grid,
  .team-grid {
    gap: 1rem;
    justify-items: center;
  }

  .carousel-grid {
    gap: 1rem;
  }

  
  .expertise {
    padding-bottom: 3rem;
  }

  .tab-content {
    min-height: 320px;
    padding: 0;
  }

  .tech-grid {
    grid-template-columns: repeat(auto-fill, minmax(90px, 1fr));
    gap: 0.75rem;
    max-width: 300px;
    padding: 0 0.25rem;
  }

  .tech-card {
    min-width: 80px;
    max-width: 100px;
    padding: 0.75rem;
    gap: 0.5rem;
  }

  .tech-card img {
    width: 36px;
    height: 36px;
  }

  .tech-card span {
    font-size: 0.75rem;
    line-height: 1.2;
  }

  /* Small mobile carousel adjustments */
  .carousel {
    padding: 2rem 50px 4rem 50px;
  }

  .carousel-arrow {
    width: 40px;
    height: 40px;
    font-size: 1rem;
    top: 50%;
    transform: translateY(-50%);
  }

  .carousel-arrow.prev {
    left: 2px;
  }

  .carousel-arrow.next {
    right: 2px;
  }

  .carousel-pagination {
    margin-top: 1.5rem;
    gap: 8px;
  }

  .pagination-dot {
    width: 8px;
    height: 8px;
  }


  .carousel-card.active {
    max-width: calc(100vw - 20px);
  }

  .carousel-card.active:hover {
    transform: translateY(-6px) scale(1.01);
    box-shadow: 0 15px 30px rgba(0, 0, 0, 0.12);
  }

  .case-studies-content {
    padding: 1.25rem;
  }

  .case-studies-content h3 {
    font-size: 1.125rem;
    line-height: 1.3;
    margin-bottom: 0.75rem;
  }

  .case-studies-content p {
    font-size: 0.875rem;
    line-height: 1.5;
  }
  
  .section-title {
    font-size: clamp(1.5rem, 6vw, 2rem);
  }
  
  .btn {
    padding: 0.75rem 1.5rem;
    font-size: 0.875rem;
  }
  
  .btn-large {
    padding: 1rem 1.5rem;
    font-size: 1rem;
  }
}