/* Techgrid Innovation Limited - Static Site Styles */

/* CSS Variables - Techgrid Innovation Brand Colors */
/* Primary: Navy Blue (#0d3b66), Secondary: Teal/Cyan (#00b4d8), Accent: Orange/Amber (#f59a1b) */
:root {
  --primary: hsl(212, 75%, 23%);
  --primary-foreground: hsl(0, 0%, 100%);
  --secondary: hsl(191, 100%, 42%);
  --secondary-foreground: hsl(0, 0%, 100%);
  --accent: hsl(36, 92%, 53%);
  --accent-foreground: hsl(0, 0%, 100%);
  --background: hsl(0, 0%, 100%);
  --foreground: hsl(212, 40%, 15%);
  --card: hsl(210, 20%, 97%);
  --card-foreground: hsl(212, 40%, 15%);
  --border: hsl(210, 15%, 88%);
  --muted: hsl(210, 15%, 94%);
  --muted-foreground: hsl(210, 12%, 45%);
  --radius: 0.5rem;
  --font-sans: 'Inter', 'Open Sans', -apple-system, BlinkMacSystemFont, sans-serif;
}

.dark {
  --primary: hsl(212, 70%, 50%);
  --primary-foreground: hsl(0, 0%, 100%);
  --secondary: hsl(191, 100%, 50%);
  --secondary-foreground: hsl(0, 0%, 10%);
  --accent: hsl(36, 92%, 58%);
  --accent-foreground: hsl(0, 0%, 10%);
  --background: hsl(212, 35%, 10%);
  --foreground: hsl(210, 15%, 95%);
  --card: hsl(212, 30%, 14%);
  --card-foreground: hsl(210, 15%, 95%);
  --border: hsl(212, 25%, 25%);
  --muted: hsl(212, 25%, 20%);
  --muted-foreground: hsl(210, 15%, 60%);
}

/* Reset */
*, *::before, *::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

/* Base */
html {
  scroll-behavior: smooth;
}

body {
  font-family: var(--font-sans);
  background-color: var(--background);
  color: var(--foreground);
  line-height: 1.6;
  min-height: 100vh;
}

a {
  color: inherit;
  text-decoration: none;
}

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

/* Typography */
h1, h2, h3, h4, h5, h6 {
  font-weight: 600;
  line-height: 1.2;
}

h1 { font-size: 2.5rem; }
h2 { font-size: 2rem; }
h3 { font-size: 1.5rem; }
h4 { font-size: 1.25rem; }

@media (min-width: 768px) {
  h1 { font-size: 3.5rem; }
  h2 { font-size: 2.5rem; }
  h3 { font-size: 1.75rem; }
}

/* Container */
.container {
  width: 100%;
  max-width: 1280px;
  margin: 0 auto;
  padding: 0 1rem;
}

@media (min-width: 640px) {
  .container { padding: 0 1.5rem; }
}

@media (min-width: 1024px) {
  .container { padding: 0 2rem; }
}

/* Button */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  padding: 0.75rem 1.5rem;
  font-size: 1rem;
  font-weight: 500;
  border-radius: var(--radius);
  border: none;
  cursor: pointer;
  transition: all 0.2s ease;
}

.btn-primary {
  background-color: var(--primary);
  color: var(--primary-foreground);
}

.btn-primary:hover {
  opacity: 0.9;
  transform: translateY(-1px);
}

.btn-secondary {
  background-color: var(--secondary);
  color: var(--secondary-foreground);
}

.btn-secondary:hover {
  opacity: 0.9;
  transform: translateY(-1px);
}

.btn-accent {
  background-color: var(--accent);
  color: var(--accent-foreground);
}

.btn-accent:hover {
  opacity: 0.9;
  transform: translateY(-1px);
}

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

.btn-outline:hover {
  background-color: var(--muted);
}

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

/* Card */
.card {
  background-color: var(--card);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 1.5rem;
  transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.card:hover {
  transform: translateY(-2px);
  box-shadow: 0 4px 12px rgba(0,0,0,0.1);
}

/* Navigation */
.navbar {
  position: sticky;
  top: 0;
  z-index: 100;
  background-color: var(--background);
  border-bottom: 1px solid var(--border);
  padding: 1rem 0;
}

.navbar .container {
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.nav-brand {
  display: flex;
  align-items: center;
}

.brand-text {
  font-family: 'Inter', sans-serif;
  font-size: 1.25rem;
  font-weight: 700;
  color: var(--primary);
  letter-spacing: -0.02em;
}

@media (max-width: 768px) {
  .brand-text {
    font-size: 1rem;
  }
}

.nav-links {
  display: none;
  list-style: none;
  gap: 2rem;
}

.nav-links a {
  font-weight: 500;
  transition: color 0.2s;
}

.nav-links a:hover,
.nav-links a.active {
  color: var(--primary);
}

@media (min-width: 768px) {
  .nav-links {
    display: flex;
  }
}

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

.mobile-menu-btn {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 40px;
  height: 40px;
  background: none;
  border: none;
  cursor: pointer;
  color: var(--foreground);
}

@media (min-width: 768px) {
  .mobile-menu-btn {
    display: none;
  }
}

.mobile-menu {
  display: none;
  position: absolute;
  top: 100%;
  left: 0;
  right: 0;
  background-color: var(--background);
  border-bottom: 1px solid var(--border);
  padding: 1rem;
}

.mobile-menu.open {
  display: block;
}

.mobile-menu a {
  display: block;
  padding: 0.75rem 1rem;
  border-radius: var(--radius);
}

.mobile-menu a:hover {
  background-color: var(--muted);
}

/* Theme Toggle */
.theme-toggle {
  width: 40px;
  height: 40px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: none;
  border: 1px solid var(--border);
  border-radius: var(--radius);
  cursor: pointer;
  color: var(--foreground);
  transition: background-color 0.2s;
}

.theme-toggle:hover {
  background-color: var(--muted);
}

/* Hero Section */
.hero {
  padding: 5rem 0;
  background: linear-gradient(135deg, var(--primary) 0%, var(--secondary) 100%);
  color: white;
  text-align: center;
}

.hero h1 {
  margin-bottom: 1.5rem;
}

.hero p {
  font-size: 1.25rem;
  opacity: 0.9;
  max-width: 600px;
  margin: 0 auto 2rem;
}

.hero-buttons {
  display: flex;
  flex-wrap: wrap;
  gap: 1rem;
  justify-content: center;
}

@media (min-width: 768px) {
  .hero {
    padding: 6rem 0 4rem;
  }
}

/* Hero Slideshow */
.hero-slideshow {
  margin-top: 3rem;
  position: relative;
}

.slideshow-container {
  position: relative;
  width: 100%;
  max-width: 800px;
  margin: 0 auto;
  height: 250px;
  border-radius: var(--radius);
  overflow: hidden;
  box-shadow: 0 20px 40px rgba(0, 0, 0, 0.3);
}

@media (min-width: 768px) {
  .slideshow-container {
    height: 350px;
  }
}

@media (min-width: 1024px) {
  .slideshow-container {
    height: 400px;
    max-width: 900px;
  }
}

.slide {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  opacity: 0;
  transform: scale(1.05);
  transition: opacity 0.8s cubic-bezier(0.4, 0, 0.2, 1), transform 0.8s cubic-bezier(0.4, 0, 0.2, 1);
}

.slide.active {
  opacity: 1;
  transform: scale(1);
  z-index: 1;
}

.slide img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.slide-label {
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
  padding: 1rem 1.5rem;
  background: linear-gradient(transparent, rgba(0, 0, 0, 0.7));
  font-size: 1.1rem;
  font-weight: 600;
  color: white;
  text-align: left;
}

@media (min-width: 768px) {
  .slide-label {
    font-size: 1.25rem;
    padding: 1.5rem 2rem;
  }
}

.slideshow-dots {
  display: flex;
  justify-content: center;
  gap: 0.5rem;
  margin-top: 1.5rem;
}

.slideshow-dot {
  width: 10px;
  height: 10px;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.4);
  border: none;
  cursor: pointer;
  transition: all 0.3s ease;
  padding: 0;
}

.slideshow-dot:hover {
  background: rgba(255, 255, 255, 0.7);
}

.slideshow-dot.active {
  background: white;
  transform: scale(1.2);
}

.slideshow-dot:focus-visible {
  outline: 2px solid white;
  outline-offset: 2px;
}

/* Services Slideshow Variant */
.services-slideshow {
  margin-top: 0;
  margin-bottom: 3rem;
}

.services-slideshow .slideshow-dot {
  background: rgba(0, 0, 0, 0.2);
}

.services-slideshow .slideshow-dot:hover {
  background: rgba(0, 0, 0, 0.4);
}

.services-slideshow .slideshow-dot.active {
  background: var(--primary);
}

.services-slideshow .slideshow-dot:focus-visible {
  outline-color: var(--primary);
}

/* Section */
.section {
  padding: 4rem 0;
}

.section-alt {
  background-color: var(--card);
}

.section-title {
  text-align: center;
  margin-bottom: 3rem;
}

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

.section-title p {
  color: var(--muted-foreground);
  max-width: 600px;
  margin: 0 auto;
}

/* Grid */
.grid {
  display: grid;
  gap: 1.5rem;
}

.grid-2 {
  grid-template-columns: repeat(1, 1fr);
}

.grid-3 {
  grid-template-columns: repeat(1, 1fr);
}

.grid-4 {
  grid-template-columns: repeat(1, 1fr);
}

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

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

/* Service Card */
.service-card {
  text-align: center;
  padding: 2rem;
}

.service-card .icon {
  width: 64px;
  height: 64px;
  margin: 0 auto 1rem;
  display: flex;
  align-items: center;
  justify-content: center;
  background-color: var(--secondary);
  color: white;
  border-radius: var(--radius);
}

.service-card h3 {
  margin-bottom: 0.75rem;
}

.service-card p {
  color: var(--muted-foreground);
  font-size: 0.95rem;
}

/* Service Detail */
.service-detail {
  padding: 3rem 0;
  border-bottom: 1px solid var(--border);
}

.service-detail:last-child {
  border-bottom: none;
}

.service-detail .content {
  display: grid;
  gap: 2rem;
  align-items: center;
}

@media (min-width: 768px) {
  .service-detail .content {
    grid-template-columns: 1fr 1fr;
  }
  
  .service-detail:nth-child(even) .content {
    direction: rtl;
  }
  
  .service-detail:nth-child(even) .content > * {
    direction: ltr;
  }
}

.service-detail h3 {
  margin-bottom: 1rem;
  color: var(--primary);
}

.service-detail p {
  color: var(--muted-foreground);
  margin-bottom: 1.5rem;
}

.feature-list {
  list-style: none;
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 0.75rem;
}

.feature-list li {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  font-size: 0.95rem;
}

.feature-list li::before {
  content: "✓";
  color: var(--accent);
  font-weight: bold;
}

.service-image {
  width: 100%;
  height: 250px;
  border-radius: var(--radius);
  overflow: hidden;
  position: relative;
}

.service-image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.3s ease;
}

.service-detail:hover .service-image img {
  transform: scale(1.05);
}

/* Service Detail Scroll Reveal Animation */
.service-detail {
  opacity: 0;
  transform: translateY(30px);
  transition: opacity 0.6s ease-out, transform 0.6s ease-out;
}

.service-detail.reveal-visible {
  opacity: 1;
  transform: translateY(0);
}

/* Staggered delays for sequential reveal */
.service-detail:nth-child(1) { transition-delay: 0ms; }
.service-detail:nth-child(2) { transition-delay: 100ms; }
.service-detail:nth-child(3) { transition-delay: 200ms; }
.service-detail:nth-child(4) { transition-delay: 300ms; }
.service-detail:nth-child(5) { transition-delay: 400ms; }
.service-detail:nth-child(6) { transition-delay: 500ms; }
.service-detail:nth-child(7) { transition-delay: 600ms; }

/* Respect reduced motion preference */
@media (prefers-reduced-motion: reduce) {
  .service-detail {
    opacity: 1;
    transform: none;
    transition: none;
  }
  
  .service-detail.reveal-visible {
    opacity: 1;
    transform: none;
  }
}

/* About */
.about-content {
  display: grid;
  gap: 3rem;
  align-items: center;
}

@media (min-width: 768px) {
  .about-content {
    grid-template-columns: 1fr 1fr;
  }
}

.stat-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 1.5rem;
  margin-top: 2rem;
}

.stat {
  text-align: center;
  padding: 1.5rem;
  background-color: var(--card);
  border-radius: var(--radius);
}

.stat-number {
  font-size: 2.5rem;
  font-weight: 700;
  color: var(--primary);
}

.stat-label {
  color: var(--muted-foreground);
  font-size: 0.9rem;
}

/* Team */
.team-card {
  text-align: center;
}

.team-card img {
  width: 120px;
  height: 120px;
  border-radius: 50%;
  margin: 0 auto 1rem;
  object-fit: cover;
  background-color: var(--muted);
}

.team-card h4 {
  margin-bottom: 0.25rem;
}

.team-card .role {
  color: var(--primary);
  font-size: 0.9rem;
}

/* Contact */
.contact-grid {
  display: grid;
  gap: 3rem;
}

@media (min-width: 768px) {
  .contact-grid {
    grid-template-columns: 1fr 1fr;
  }
}

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

.contact-item {
  display: flex;
  gap: 1rem;
  align-items: flex-start;
}

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

.contact-item h4 {
  margin-bottom: 0.25rem;
}

.contact-item p {
  color: var(--muted-foreground);
  font-size: 0.95rem;
}

.contact-form {
  background-color: var(--card);
  padding: 2rem;
  border-radius: var(--radius);
  border: 1px solid var(--border);
}

.form-group {
  margin-bottom: 1.5rem;
}

.form-group label {
  display: block;
  margin-bottom: 0.5rem;
  font-weight: 500;
}

.form-group input,
.form-group textarea,
.form-group select {
  width: 100%;
  padding: 0.75rem 1rem;
  border: 1px solid var(--border);
  border-radius: var(--radius);
  background-color: var(--background);
  color: var(--foreground);
  font-family: inherit;
  font-size: 1rem;
}

.form-group input:focus,
.form-group textarea:focus,
.form-group select:focus {
  outline: none;
  border-color: var(--primary);
}

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

/* Footer */
.footer {
  background-color: var(--primary);
  color: white;
  border-top: none;
  padding: 4rem 0 2rem;
}

.footer-grid {
  display: grid;
  gap: 2rem;
  margin-bottom: 3rem;
}

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

@media (min-width: 1024px) {
  .footer-grid {
    grid-template-columns: 2fr 1fr 1fr 1fr;
  }
}

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

.footer p {
  color: rgba(255, 255, 255, 0.8);
  font-size: 0.9rem;
}

.footer-links {
  list-style: none;
}

.footer-links li {
  margin-bottom: 0.5rem;
  color: rgba(255, 255, 255, 0.8);
}

.footer-links a {
  color: rgba(255, 255, 255, 0.8);
  font-size: 0.9rem;
  transition: color 0.2s;
}

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

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

.social-links a {
  width: 36px;
  height: 36px;
  display: flex;
  align-items: center;
  justify-content: center;
  border: 1px solid rgba(255, 255, 255, 0.3);
  border-radius: var(--radius);
  color: rgba(255, 255, 255, 0.8);
  transition: all 0.2s;
}

.social-links a:hover {
  background-color: var(--secondary);
  border-color: var(--secondary);
  color: white;
}

.footer-bottom {
  text-align: center;
  padding-top: 2rem;
  border-top: 1px solid rgba(255, 255, 255, 0.2);
  color: rgba(255, 255, 255, 0.7);
  font-size: 0.9rem;
}

/* Utilities */
.text-center { text-align: center; }
.text-primary { color: var(--primary); }
.text-secondary { color: var(--secondary); }
.text-accent { color: var(--accent); }
.text-muted { color: var(--muted-foreground); }
.mb-1 { margin-bottom: 0.5rem; }
.mb-2 { margin-bottom: 1rem; }
.mb-3 { margin-bottom: 1.5rem; }
.mb-4 { margin-bottom: 2rem; }
.mt-4 { margin-top: 2rem; }

/* Animations */
@keyframes fadeIn {
  from { opacity: 0; transform: translateY(20px); }
  to { opacity: 1; transform: translateY(0); }
}

.fade-in {
  animation: fadeIn 0.6s ease forwards;
}

/* SVG Icons inline */
.icon-svg {
  width: 24px;
  height: 24px;
  stroke: currentColor;
  stroke-width: 2;
  fill: none;
  stroke-linecap: round;
  stroke-linejoin: round;
}

/* WhatsApp Floating Widget */
.whatsapp-widget {
  position: fixed;
  bottom: 24px;
  right: 24px;
  z-index: 9999;
}

.whatsapp-btn {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 60px;
  height: 60px;
  background-color: #25D366;
  border-radius: 50%;
  box-shadow: 0 4px 12px rgba(37, 211, 102, 0.4);
  transition: all 0.3s ease;
  text-decoration: none;
}

.whatsapp-btn:hover {
  transform: scale(1.1);
  box-shadow: 0 6px 20px rgba(37, 211, 102, 0.5);
}

.whatsapp-btn svg {
  width: 32px;
  height: 32px;
  fill: #ffffff;
}

.whatsapp-tooltip {
  position: absolute;
  right: 70px;
  top: 50%;
  transform: translateY(-50%);
  background-color: var(--card);
  color: var(--foreground);
  padding: 8px 14px;
  border-radius: var(--radius);
  font-size: 0.875rem;
  font-weight: 500;
  white-space: nowrap;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.15);
  opacity: 0;
  visibility: hidden;
  transition: all 0.3s ease;
}

.whatsapp-widget:hover .whatsapp-tooltip {
  opacity: 1;
  visibility: visible;
}

@media (max-width: 640px) {
  .whatsapp-widget {
    bottom: 16px;
    right: 16px;
  }
  
  .whatsapp-btn {
    width: 54px;
    height: 54px;
  }
  
  .whatsapp-btn svg {
    width: 28px;
    height: 28px;
  }
  
  .whatsapp-tooltip {
    display: none;
  }
}

/* Services Carousel */
.services-carousel {
  position: relative;
  width: 100%;
  overflow: hidden;
  padding: 1rem 0 3rem;
}

.carousel-track-container {
  overflow: hidden;
  margin: 0 auto;
  max-width: 100%;
}

.carousel-track {
  display: flex;
  transition: transform 0.6s cubic-bezier(0.4, 0, 0.2, 1);
  will-change: transform;
}

.carousel-slide {
  flex: 0 0 100%;
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 1.5rem;
  padding: 0 1rem;
}

@media (min-width: 768px) {
  .carousel-slide {
    flex: 0 0 50%;
  }
}

@media (min-width: 1024px) {
  .carousel-slide {
    flex: 0 0 33.333%;
  }
}

.carousel-card {
  background: var(--card);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 2rem;
  text-align: center;
  width: 100%;
  max-width: 320px;
  opacity: 0;
  transform: translateY(30px) scale(0.95);
  animation: cardReveal 0.8s cubic-bezier(0.4, 0, 0.2, 1) forwards;
  transition: transform 0.4s cubic-bezier(0.4, 0, 0.2, 1), 
              box-shadow 0.4s cubic-bezier(0.4, 0, 0.2, 1);
}

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

.dark .carousel-card:hover {
  box-shadow: 0 20px 40px rgba(0, 0, 0, 0.3);
}

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

.carousel-card .icon {
  width: 64px;
  height: 64px;
  margin: 0 auto 1.25rem;
  background: linear-gradient(135deg, var(--primary), var(--secondary));
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  opacity: 0;
  transform: scale(0.5) rotate(-10deg);
  animation: iconPop 0.6s cubic-bezier(0.34, 1.56, 0.64, 1) 0.2s forwards;
}

@keyframes iconPop {
  to {
    opacity: 1;
    transform: scale(1) rotate(0deg);
  }
}

.carousel-card .icon svg {
  width: 28px;
  height: 28px;
  stroke: white;
  stroke-width: 2;
  fill: none;
}

.carousel-card h3 {
  font-size: 1.25rem;
  margin-bottom: 0.75rem;
  color: var(--foreground);
  opacity: 0;
  transform: translateY(15px);
  animation: textSlideUp 0.5s cubic-bezier(0.4, 0, 0.2, 1) 0.35s forwards;
}

.carousel-card p {
  font-size: 0.95rem;
  color: var(--muted-foreground);
  line-height: 1.6;
  opacity: 0;
  transform: translateY(15px);
  animation: textSlideUp 0.5s cubic-bezier(0.4, 0, 0.2, 1) 0.45s forwards;
}

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

/* Carousel Navigation Arrows */
.carousel-nav {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  width: 48px;
  height: 48px;
  background: var(--card);
  border: 1px solid var(--border);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  z-index: 10;
  transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
}

.carousel-nav:hover {
  background: var(--muted);
  border-color: var(--border);
  transform: translateY(-50%) scale(1.05);
}

.carousel-nav:focus-visible {
  outline: 2px solid var(--secondary);
  outline-offset: 2px;
}

.carousel-nav svg {
  width: 24px;
  height: 24px;
  stroke: var(--foreground);
  stroke-width: 2;
  fill: none;
  transition: stroke 0.3s ease;
}

.carousel-nav.prev {
  left: 0.5rem;
}

.carousel-nav.next {
  right: 0.5rem;
}

@media (min-width: 768px) {
  .carousel-nav.prev { left: 1rem; }
  .carousel-nav.next { right: 1rem; }
}

@media (min-width: 1024px) {
  .carousel-nav.prev { left: 2rem; }
  .carousel-nav.next { right: 2rem; }
}

/* Carousel Dots */
.carousel-dots {
  display: flex;
  justify-content: center;
  gap: 0.75rem;
  margin-top: 2rem;
}

.carousel-dot {
  width: 12px;
  height: 12px;
  border-radius: 50%;
  background: var(--border);
  border: none;
  cursor: pointer;
  transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
  position: relative;
}

.carousel-dot::before {
  content: '';
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%) scale(0);
  width: 24px;
  height: 24px;
  border: 2px solid var(--secondary);
  border-radius: 50%;
  opacity: 0;
  transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
}

.carousel-dot.active {
  background: linear-gradient(135deg, var(--primary), var(--secondary));
  transform: scale(1.2);
}

.carousel-dot.active::before {
  transform: translate(-50%, -50%) scale(1);
  opacity: 0.5;
}

.carousel-dot:hover:not(.active) {
  background: var(--muted-foreground);
  transform: scale(1.1);
}

.carousel-dot:focus-visible {
  outline: 2px solid var(--secondary);
  outline-offset: 2px;
}

/* Pause indicator */
.carousel-pause-indicator {
  position: absolute;
  top: 1rem;
  right: 1rem;
  background: var(--card);
  border: 1px solid var(--border);
  padding: 0.5rem 1rem;
  border-radius: var(--radius);
  font-size: 0.75rem;
  color: var(--muted-foreground);
  opacity: 0;
  transform: translateY(-10px);
  transition: all 0.3s ease;
  pointer-events: none;
}

.services-carousel:hover .carousel-pause-indicator {
  opacity: 1;
  transform: translateY(0);
}

/* Mobile adjustments */
@media (max-width: 640px) {
  .carousel-nav {
    width: 40px;
    height: 40px;
  }
  
  .carousel-nav svg {
    width: 20px;
    height: 20px;
  }
  
  .carousel-nav.prev { left: 0.25rem; }
  .carousel-nav.next { right: 0.25rem; }
  
  .carousel-card {
    padding: 1.5rem;
  }
  
  .carousel-card .icon {
    width: 56px;
    height: 56px;
  }
  
  .carousel-card .icon svg {
    width: 24px;
    height: 24px;
  }
  
  .carousel-dot {
    width: 10px;
    height: 10px;
  }
  
  .carousel-pause-indicator {
    display: none;
  }
}
