/* =================================
   CSS Variables & Reset
   ================================= */

:root {
  --primary: #2563eb;
  --primary-dark: #1e40af;
  --secondary: #10b981;
  --accent: #f59e0b;
  --dark: #0f172a;
  --dark-light: #1e293b;
  --text: #334155;
  --text-light: #64748b;
  --bg: #ffffff;
  --bg-gray: #f8fafc;
  --border: #e2e8f0;
  --success: #22c55e;
  --warning: #eab308;

  /* Mobile-first spacing scale */
  --space-xs: 0.5rem;
  --space-sm: 0.75rem;
  --space-md: 1rem;
  --space-lg: 1.5rem;
  --space-xl: 2rem;
  --space-2xl: 3rem;

  /* Mobile-first font sizes */
  --text-xs: 0.75rem;
  --text-sm: 0.875rem;
  --text-base: 1rem;
  --text-lg: 1.125rem;
  --text-xl: 1.25rem;
  --text-2xl: 1.5rem;
  --text-3xl: 1.875rem;
  --text-4xl: 2.25rem;
}

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

html {
  scroll-behavior: smooth;
  font-size: 16px;
}

body {
  font-family: "Plus Jakarta Sans", sans-serif;
  color: var(--text);
  line-height: 1.6;
  background: var(--bg);
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  overflow-x: hidden;
}

/* =================================
   Navigation - Professional & Clean
   ================================= */

.navbar {
  position: fixed;
  top: 0;
  width: 100%;
  background: rgba(255, 255, 255, 0.98);
  backdrop-filter: blur(10px);
  border-bottom: 1px solid var(--border);
  z-index: 1000;
  transition: all 0.3s ease;
}

.navbar.scrolled {
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.08);
  background: rgba(255, 255, 255, 1);
}

.nav-container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0.875rem 1.25rem;
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.logo {
  font-weight: 800;
  font-size: 1.15rem;
  color: var(--primary);
  text-decoration: none;
  white-space: nowrap;
  flex-shrink: 0;
  z-index: 1001;
  transition: transform 0.2s ease;
}

.logo:hover {
  transform: scale(1.02);
}

/* Desktop Navigation */
.nav-links {
  display: none;
  list-style: none;
  margin: 0;
  padding: 0;
  align-items: center;
  gap: 0.25rem;
}

.nav-links li {
  display: inline-block;
}

.nav-links a {
  color: var(--text);
  text-decoration: none;
  font-weight: 600;
  font-size: 0.9rem;
  padding: 0.5rem 0.875rem;
  border-radius: 8px;
  transition: all 0.2s ease;
  white-space: nowrap;
  display: inline-block;
}

.nav-links a:not(.cta-nav):hover {
  color: var(--primary);
  background: rgba(37, 99, 235, 0.08);
}

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

/* CTA Button in nav-links */
.nav-links .cta-nav {
  background: var(--primary);
  color: white !important;
  padding: 0.625rem 1.25rem;
  border-radius: 8px;
  font-weight: 600;
  font-size: 0.875rem;
  transition: all 0.3s ease;
  box-shadow: 0 2px 8px rgba(37, 99, 235, 0.25);
}

.nav-links .cta-nav:hover {
  background: var(--primary-dark);
  transform: translateY(-2px);
  box-shadow: 0 4px 15px rgba(37, 99, 235, 0.35);
}

/* Mobile Menu Button */
.hamburger {
  display: flex;
  flex-direction: column;
  justify-content: center;
  gap: 5px;
  width: 44px;
  height: 44px;
  background: none;
  border: none;
  padding: 10px;
  cursor: pointer;
  z-index: 1001;
  border-radius: 8px;
  transition: background 0.2s ease;
  flex-shrink: 0;
}

.hamburger:hover {
  background: rgba(37, 99, 235, 0.08);
}

.hamburger:active {
  transform: scale(0.95);
}

.hamburger span {
  display: block;
  width: 24px;
  height: 3px;
  background: var(--primary);
  border-radius: 3px;
  transition: all 0.3s cubic-bezier(0.68, -0.55, 0.265, 1.55);
}

.hamburger.active span:nth-child(1) {
  transform: translateY(8px) rotate(45deg);
}

.hamburger.active span:nth-child(2) {
  opacity: 0;
  transform: scaleX(0);
}

.hamburger.active span:nth-child(3) {
  transform: translateY(-8px) rotate(-45deg);
}

/* Mobile Menu Overlay */
.nav-overlay {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: rgba(0, 0, 0, 0.5);
  backdrop-filter: blur(4px);
  opacity: 0;
  visibility: hidden;
  transition: all 0.3s ease;
  z-index: 999;
}

.nav-overlay.active {
  opacity: 1;
  visibility: visible;
}

/* Mobile Menu Panel */
.nav-links.mobile-menu {
  position: fixed;
  top: 0;
  right: -100%;
  width: 280px;
  max-width: 85vw;
  height: 100vh;
  background: white;
  flex-direction: column;
  align-items: stretch;
  gap: 0;
  padding: 5rem 0 2rem;
  transition: right 0.4s cubic-bezier(0.68, -0.55, 0.265, 1.55);
  box-shadow: -5px 0 30px rgba(0, 0, 0, 0.15);
  z-index: 1000;
  display: flex;
  overflow-y: auto;
}

.nav-links.mobile-menu.active {
  right: 0;
}

.nav-links.mobile-menu li {
  width: 100%;
  border-bottom: 1px solid var(--border);
  padding: 0;
}

.nav-links.mobile-menu li:last-child {
  border-bottom: none;
}

/* Mobile nav CTA item - special treatment */
.nav-links.mobile-menu li.nav-cta-item {
  border-bottom: none;
  padding: 1.5rem 1.5rem 0.5rem;
}

.nav-links.mobile-menu a {
  padding: 1rem 1.5rem;
  font-size: 1rem;
  border-radius: 0;
  width: 100%;
  display: block;
  transition: all 0.2s ease;
  color: var(--text);
}

.nav-links.mobile-menu a:hover {
  background: rgba(37, 99, 235, 0.04);
  color: var(--primary);
  padding-left: 1.75rem;
}

.nav-links.mobile-menu .cta-nav {
  display: block;
  padding: 0.875rem 1.5rem;
  text-align: center;
  width: 100%;
  font-size: 0.95rem;
  border-radius: 10px;
  background: var(--primary);
  color: white !important;
  box-shadow: 0 4px 12px rgba(37, 99, 235, 0.3);
}

.nav-links.mobile-menu .cta-nav:hover {
  background: var(--primary-dark);
  padding-left: 1.5rem;
  transform: translateY(-1px);
  box-shadow: 0 6px 16px rgba(37, 99, 235, 0.4);
}

/* Tablet & Desktop (768px+) */
@media (min-width: 768px) {
  .hamburger {
    display: none;
  }

  .nav-overlay {
    display: none;
  }

  .nav-container {
    padding: 0.875rem 2rem;
  }

  .logo {
    font-size: 1.25rem;
  }

  .nav-links,
  .nav-links.mobile-menu {
    display: flex;
    position: static;
    width: auto;
    height: auto;
    flex-direction: row;
    background: transparent;
    box-shadow: none;
    padding: 0;
    margin: 0;
    gap: 0.125rem;
    overflow-y: visible;
    right: auto;
  }

  .nav-links li,
  .nav-links.mobile-menu li {
    padding: 0;
    border: none;
    width: auto;
  }

  .nav-links li.nav-cta-item,
  .nav-links.mobile-menu li.nav-cta-item {
    padding: 0;
    margin-left: 0.5rem;
  }

  .nav-links a,
  .nav-links.mobile-menu a {
    font-size: 0.825rem;
    padding: 0.5rem 0.625rem;
    color: var(--text);
    display: inline-block;
    width: auto;
  }

  .nav-links a:hover,
  .nav-links.mobile-menu a:hover {
    padding-left: 0.625rem;
    background: rgba(37, 99, 235, 0.08);
  }

  .nav-links .cta-nav,
  .nav-links.mobile-menu .cta-nav {
    font-size: 0.8rem;
    padding: 0.5rem 1rem;
    width: auto;
    display: inline-block;
    border-radius: 8px;
  }
}

/* Desktop (1024px+) */
@media (min-width: 1024px) {
  .nav-container {
    padding: 1rem 2rem;
  }

  .logo {
    font-size: 1.35rem;
  }

  .nav-links {
    gap: 0.25rem;
  }

  .nav-links li.nav-cta-item {
    margin-left: 0.75rem;
  }

  .nav-links a {
    font-size: 0.9rem;
    padding: 0.5rem 0.875rem;
  }

  .nav-links .cta-nav {
    font-size: 0.875rem;
    padding: 0.625rem 1.25rem;
  }
}

/* Large Desktop (1200px+) */
@media (min-width: 1200px) {
  .nav-container {
    padding: 1rem 0;
  }

  .nav-links {
    gap: 0.375rem;
  }

  .nav-links li.nav-cta-item {
    margin-left: 1rem;
  }

  .nav-links a {
    font-size: 0.95rem;
    padding: 0.625rem 1rem;
  }

  .nav-links .cta-nav {
    padding: 0.75rem 1.5rem;
  }
}

/* =================================
   Hero Section - Mobile First
   ================================= */

.hero {
  padding: 6rem var(--space-md) var(--space-xl);
  background: linear-gradient(135deg, #eff6ff 0%, #f0f9ff 50%, #ffffff 100%);
  position: relative;
  overflow: hidden;
}

.hero::before {
  content: "";
  position: absolute;
  top: -100px;
  right: -100px;
  width: 300px;
  height: 300px;
  background: radial-gradient(
    circle,
    rgba(37, 99, 235, 0.1) 0%,
    transparent 70%
  );
  border-radius: 50%;
  animation: pulse 8s ease-in-out infinite;
}

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

.hero-container {
  max-width: 1200px;
  margin: 0 auto;
  display: flex;
  flex-direction: column;
  gap: var(--space-xl);
  position: relative;
  z-index: 1;
}

.hero-content h1 {
  font-size: var(--text-3xl);
  font-weight: 800;
  line-height: 1.2;
  margin-bottom: var(--space-md);
  color: var(--dark);
}

.highlight {
  background: linear-gradient(135deg, var(--primary), var(--secondary));
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

.hero-content p {
  font-size: var(--text-lg);
  color: var(--text-light);
  margin-bottom: var(--space-lg);
  line-height: 1.7;
}

.cta-buttons {
  display: flex;
  flex-direction: column;
  gap: var(--space-sm);
}

.btn {
  padding: 0.875rem 1.25rem;
  border-radius: 10px;
  font-weight: 600;
  text-decoration: none;
  transition: all 0.3s;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  font-size: var(--text-base);
  border: none;
  cursor: pointer;
  width: 100%;
  text-align: center;
}

.btn-primary {
  background: var(--primary);
  color: white;
  box-shadow: 0 4px 15px rgba(37, 99, 235, 0.3);
}

.btn-primary:hover {
  background: var(--primary-dark);
  transform: translateY(-2px);
  box-shadow: 0 8px 25px rgba(37, 99, 235, 0.4);
}

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

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

.trust-badges {
  margin-top: var(--space-lg);
  display: flex;
  flex-direction: column;
  gap: var(--space-sm);
}

.trust-item {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  color: var(--text-light);
  font-size: var(--text-sm);
}

.trust-icon {
  width: 20px;
  height: 20px;
  background: var(--success);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  color: white;
  font-size: 0.7rem;
  flex-shrink: 0;
}

.stats-card {
  background: white;
  border-radius: 16px;
  padding: var(--space-lg);
  box-shadow: 0 10px 40px rgba(0, 0, 0, 0.1);
  border: 1px solid var(--border);
  animation: fadeInUp 1s ease-out 0.5s backwards;
}

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

.stats-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: var(--space-md);
}

.stat-item {
  text-align: center;
  padding: var(--space-md);
  background: var(--bg-gray);
  border-radius: 12px;
}

.stat-number {
  font-size: 1.75rem;
  font-weight: 800;
  color: var(--primary);
  display: block;
  margin-bottom: 0.25rem;
}

.stat-label {
  font-size: var(--text-xs);
  color: var(--text-light);
  font-weight: 600;
  line-height: 1.3;
}

/* Tablet Hero */
@media (min-width: 640px) {
  .hero {
    padding: 7rem var(--space-lg) var(--space-2xl);
  }

  .hero-content h1 {
    font-size: 2.5rem;
  }

  .cta-buttons {
    flex-direction: row;
    flex-wrap: wrap;
  }

  .btn {
    width: auto;
  }

  .trust-badges {
    flex-direction: row;
    flex-wrap: wrap;
    gap: var(--space-md);
  }

  .stats-grid {
    grid-template-columns: repeat(2, 1fr);
    gap: var(--space-lg);
  }

  .stat-number {
    font-size: 2rem;
  }
}

/* Desktop Hero */
@media (min-width: 1024px) {
  .hero {
    padding: 8rem var(--space-xl) 5rem;
  }

  .hero-container {
    flex-direction: row;
    gap: 4rem;
    align-items: center;
  }

  .hero-content {
    flex: 1;
  }

  .hero-visual {
    flex: 1;
  }

  .hero-content h1 {
    font-size: var(--text-4xl);
  }

  .stats-card {
    padding: 2rem;
  }

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

  .stat-number {
    font-size: 2.5rem;
  }

  .stat-label {
    font-size: var(--text-sm);
  }
}

/* =================================
   Section Styles - Mobile First
   ================================= */

section {
  padding: var(--space-2xl) var(--space-md);
}

.container {
  max-width: 1200px;
  margin: 0 auto;
  width: 100%;
}

.section-header {
  text-align: center;
  margin-bottom: var(--space-xl);
}

.section-header h2 {
  font-size: var(--text-2xl);
  font-weight: 800;
  margin-bottom: var(--space-sm);
  color: var(--dark);
  line-height: 1.3;
}

.section-header p {
  font-size: var(--text-base);
  color: var(--text-light);
  max-width: 600px;
  margin: 0 auto;
  line-height: 1.6;
}

@media (min-width: 768px) {
  section {
    padding: 5rem var(--space-lg);
  }

  .section-header h2 {
    font-size: 2.25rem;
  }

  .section-header p {
    font-size: var(--text-lg);
  }
}

@media (min-width: 1024px) {
  section {
    padding: 5rem var(--space-xl);
  }

  .section-header h2 {
    font-size: var(--text-3xl);
  }
}

/* =================================
   Value Proposition - Mobile First
   ================================= */

.value-prop {
  background: var(--bg-gray);
}

.benefits-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: var(--space-lg);
}

.benefit-card {
  background: white;
  padding: var(--space-lg);
  border-radius: 16px;
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.08);
  transition: all 0.3s;
  border: 2px solid transparent;
}

.benefit-card:hover {
  transform: translateY(-5px);
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.12);
  border-color: var(--primary);
}

.benefit-icon {
  width: 50px;
  height: 50px;
  background: linear-gradient(135deg, var(--primary), var(--secondary));
  border-radius: 12px;
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: var(--space-md);
  font-size: 1.5rem;
}

.benefit-card h3 {
  font-size: var(--text-xl);
  font-weight: 700;
  margin-bottom: var(--space-sm);
  color: var(--dark);
}

.benefit-card p {
  color: var(--text-light);
  line-height: 1.7;
  font-size: var(--text-base);
}

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

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

  .benefit-card {
    padding: 2.5rem;
  }

  .benefit-icon {
    width: 60px;
    height: 60px;
    font-size: 1.8rem;
  }
}

/* =================================
   Services Catalog - Mobile First
   ================================= */

.services-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: var(--space-lg);
}

.service-card {
  background: white;
  border-radius: 16px;
  padding: var(--space-lg);
  border: 2px solid var(--border);
  transition: all 0.3s;
  position: relative;
  overflow: hidden;
}

.service-card::before {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  width: 4px;
  height: 0;
  background: linear-gradient(180deg, var(--primary), var(--secondary));
  transition: height 0.3s;
}

.service-card:hover {
  border-color: var(--primary);
  box-shadow: 0 8px 30px rgba(37, 99, 235, 0.15);
}

.service-card:hover::before {
  height: 100%;
}

.service-card h3 {
  font-size: var(--text-lg);
  font-weight: 700;
  margin-bottom: var(--space-sm);
  color: var(--dark);
  line-height: 1.3;
}

.service-benefit {
  color: var(--text);
  margin-bottom: var(--space-md);
  line-height: 1.6;
  font-weight: 500;
  font-size: var(--text-base);
}

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

.tech-badge {
  background: var(--bg-gray);
  padding: 0.375rem 0.625rem;
  border-radius: 6px;
  font-size: var(--text-xs);
  font-family: "JetBrains Mono", monospace;
  color: var(--primary);
  font-weight: 500;
}

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

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

/* =================================
   Portfolio Projects - Mobile First
   ================================= */

.portfolio {
  background: var(--bg-gray);
}

.projects-grid {
  display: grid;
  gap: var(--space-lg);
}

.project-card {
  background: white;
  border-radius: 20px;
  overflow: hidden;
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.08);
  transition: all 0.3s;
  border: 2px solid transparent;
}

.project-card:hover {
  transform: translateY(-5px);
  box-shadow: 0 12px 40px rgba(0, 0, 0, 0.12);
  border-color: var(--primary);
}

.project-content {
  padding: var(--space-lg);
}

.project-header {
  display: flex;
  justify-content: space-between;
  align-items: start;
  margin-bottom: var(--space-md);
  flex-wrap: wrap;
  gap: var(--space-sm);
}

.project-tag {
  background: linear-gradient(135deg, var(--primary), var(--secondary));
  color: white;
  padding: 0.375rem 0.875rem;
  border-radius: 20px;
  font-size: var(--text-xs);
  font-weight: 600;
}

.project-card h3 {
  font-size: var(--text-xl);
  font-weight: 800;
  margin-bottom: var(--space-sm);
  color: var(--dark);
  line-height: 1.3;
}

.project-meta {
  display: flex;
  flex-direction: column;
  gap: var(--space-xs);
  margin-bottom: var(--space-md);
}

.meta-item {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  color: var(--text-light);
  font-size: var(--text-sm);
}

.project-summary {
  color: var(--text);
  margin-bottom: var(--space-sm);
  line-height: 1.7;
  font-size: var(--text-base);
}

.project-impact {
  background: var(--bg-gray);
  padding: var(--space-md);
  border-radius: 12px;
  border-left: 4px solid var(--success);
  margin-bottom: var(--space-md);
  font-size: var(--text-sm);
  line-height: 1.6;
}

.project-impact strong {
  color: var(--success);
  font-weight: 700;
}

.project-links {
  display: flex;
  gap: var(--space-sm);
  flex-wrap: wrap;
}

.project-link {
  padding: 0.625rem 1.25rem;
  border-radius: 8px;
  text-decoration: none;
  font-weight: 600;
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  transition: all 0.3s;
  font-size: var(--text-sm);
  justify-content: center;
  flex: 1;
}

.project-link.primary {
  background: var(--primary);
  color: white;
}

.project-link.secondary {
  background: var(--bg-gray);
  color: var(--primary);
  border: 2px solid var(--border);
}

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

@media (min-width: 640px) {
  .project-meta {
    flex-direction: row;
    gap: var(--space-md);
  }

  .project-link {
    flex: 0 0 auto;
  }
}

@media (min-width: 768px) {
  .project-content {
    padding: 2rem;
  }

  .project-card h3 {
    font-size: 1.5rem;
  }
}

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

/* =================================
   Live Demo Dashboard - Mobile First
   ================================= */

.live-demo {
  background: linear-gradient(135deg, var(--dark) 0%, var(--dark-light) 100%);
  color: white;
  padding: var(--space-2xl) var(--space-md);
}

.live-demo h2 {
  color: white;
  text-align: center;
  margin-bottom: var(--space-xs);
  font-size: var(--text-2xl);
}

.live-demo > .container > p {
  text-align: center;
  color: rgba(255, 255, 255, 0.7);
  margin-bottom: var(--space-xl);
  font-size: var(--text-base);
}

.demo-dashboard {
  background: rgba(255, 255, 255, 0.05);
  backdrop-filter: blur(10px);
  border-radius: 16px;
  border: 1px solid rgba(255, 255, 255, 0.1);
  overflow: hidden;
  max-width: 1000px;
  margin: 0 auto;
  box-shadow: 0 25px 50px -12px rgba(0, 0, 0, 0.5);
}

.demo-header {
  background: rgba(255, 255, 255, 0.1);
  padding: var(--space-md);
  border-bottom: 1px solid rgba(255, 255, 255, 0.1);
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: var(--space-sm);
}

.demo-title {
  font-weight: 700;
  font-size: var(--text-base);
  display: flex;
  align-items: center;
  gap: 0.5rem;
}

.demo-status {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  font-size: var(--text-xs);
  color: var(--success);
}

.status-dot {
  width: 6px;
  height: 6px;
  background: var(--success);
  border-radius: 50%;
  animation: pulse-dot 2s infinite;
}

@keyframes pulse-dot {
  0%,
  100% {
    opacity: 1;
  }
  50% {
    opacity: 0.5;
  }
}

.demo-body {
  display: flex;
  flex-direction: column;
}

.demo-sidebar {
  background: rgba(255, 255, 255, 0.03);
  padding: var(--space-md);
  border-bottom: 1px solid rgba(255, 255, 255, 0.1);
}

.demo-filter {
  margin-bottom: var(--space-md);
}

.demo-filter:last-child {
  margin-bottom: 0;
}

.demo-filter label {
  display: block;
  font-size: var(--text-xs);
  color: rgba(255, 255, 255, 0.6);
  margin-bottom: 0.375rem;
  font-weight: 500;
}

.demo-filter select {
  width: 100%;
  padding: 0.625rem;
  border-radius: 8px;
  border: 1px solid rgba(255, 255, 255, 0.2);
  background: rgba(255, 255, 255, 0.1);
  color: white;
  font-size: var(--text-sm);
  cursor: pointer;
  transition: all 0.3s;
}

.demo-filter select:hover {
  background: rgba(255, 255, 255, 0.15);
  border-color: rgba(255, 255, 255, 0.3);
}

.demo-filter select:focus {
  outline: none;
  border-color: var(--primary);
}

.demo-filter select option {
  background: var(--dark);
  color: white;
}

.demo-content {
  padding: var(--space-md);
}

.demo-kpi-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: var(--space-md);
  margin-bottom: var(--space-lg);
}

.demo-kpi {
  background: rgba(255, 255, 255, 0.05);
  border-radius: 12px;
  padding: var(--space-md);
  border: 1px solid rgba(255, 255, 255, 0.1);
  transition: all 0.3s;
}

.demo-kpi:hover {
  background: rgba(255, 255, 255, 0.08);
  transform: translateY(-2px);
}

.kpi-label {
  display: block;
  font-size: var(--text-xs);
  color: rgba(255, 255, 255, 0.6);
  margin-bottom: 0.375rem;
}

.kpi-value {
  display: block;
  font-size: var(--text-xl);
  font-weight: 700;
  color: white;
  margin-bottom: 0.375rem;
}

.kpi-change {
  font-size: var(--text-xs);
  font-weight: 600;
  display: inline-flex;
  align-items: center;
  gap: 0.25rem;
}

.kpi-change.positive {
  color: var(--success);
}

.kpi-change.negative {
  color: #ef4444;
}

.demo-chart-container {
  background: rgba(255, 255, 255, 0.03);
  border-radius: 12px;
  padding: var(--space-md);
  border: 1px solid rgba(255, 255, 255, 0.1);
  height: 200px;
  position: relative;
  overflow: hidden;
}

.chart-title {
  font-size: var(--text-sm);
  color: rgba(255, 255, 255, 0.6);
  margin-bottom: var(--space-sm);
}

.demo-chart {
  display: flex;
  align-items: end;
  justify-content: space-around;
  height: calc(100% - 30px);
  gap: 0.25rem;
}

.chart-bar {
  flex: 1;
  background: linear-gradient(180deg, var(--primary), var(--secondary));
  border-radius: 4px 4px 0 0;
  min-width: 20px;
  transition: all 0.5s ease;
  position: relative;
  opacity: 0.8;
}

.chart-bar:hover {
  opacity: 1;
}

.chart-bar::after {
  content: attr(data-value);
  position: absolute;
  top: -20px;
  left: 50%;
  transform: translateX(-50%);
  font-size: var(--text-xs);
  color: rgba(255, 255, 255, 0.8);
  opacity: 0;
  transition: opacity 0.3s;
  white-space: nowrap;
}

.chart-bar:hover::after {
  opacity: 1;
}

.demo-cta {
  background: rgba(255, 255, 255, 0.05);
  padding: var(--space-lg) var(--space-md);
  border-top: 1px solid rgba(255, 255, 255, 0.1);
  text-align: center;
}

.demo-cta p {
  color: rgba(255, 255, 255, 0.8);
  margin-bottom: var(--space-md);
  font-size: var(--text-base);
}

.demo-features {
  display: flex;
  flex-direction: column;
  gap: var(--space-sm);
  margin-bottom: var(--space-lg);
  align-items: center;
}

.demo-feature {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  font-size: var(--text-sm);
  color: rgba(255, 255, 255, 0.7);
}

.demo-feature::before {
  content: "✓";
  color: var(--success);
  font-weight: 700;
  flex-shrink: 0;
}

.demo-cta .btn {
  width: 100%;
  max-width: 280px;
}

/* Tablet Live Demo */
@media (min-width: 640px) {
  .demo-kpi-grid {
    grid-template-columns: repeat(3, 1fr);
  }

  .demo-features {
    flex-direction: row;
    flex-wrap: wrap;
    justify-content: center;
  }
}

/* Desktop Live Demo */
@media (min-width: 768px) {
  .demo-body {
    flex-direction: row;
  }

  .demo-sidebar {
    width: 220px;
    border-bottom: none;
    border-right: 1px solid rgba(255, 255, 255, 0.1);
    padding: var(--space-lg);
  }

  .demo-content {
    flex: 1;
    padding: var(--space-lg);
  }

  .demo-chart-container {
    height: 250px;
  }

  .chart-bar {
    border-radius: 6px 6px 0 0;
    min-width: 30px;
  }

  .demo-cta {
    padding: 2rem;
  }
}

@media (min-width: 1024px) {
  .live-demo {
    padding: 5rem var(--space-xl);
  }

  .live-demo h2 {
    font-size: 2.5rem;
  }

  .demo-sidebar {
    width: 250px;
  }
}

/* =================================
   Free Audit Section - Mobile First
   ================================= */

.free-audit {
  background: var(--bg-gray);
}

.audit-container {
  max-width: 800px;
  margin: 0 auto;
  background: white;
  border-radius: 20px;
  padding: var(--space-xl) var(--space-md);
  box-shadow: 0 10px 40px rgba(0, 0, 0, 0.1);
  border: 2px solid var(--border);
}

.audit-container h2 {
  text-align: center;
  margin-bottom: var(--space-sm);
  font-size: var(--text-2xl);
}

.audit-container .subtitle {
  text-align: center;
  color: var(--text-light);
  margin-bottom: var(--space-lg);
  font-size: var(--text-base);
  line-height: 1.6;
}

.audit-features {
  display: grid;
  gap: var(--space-sm);
  margin-bottom: var(--space-lg);
}

.audit-feature {
  display: flex;
  align-items: flex-start;
  gap: var(--space-sm);
  padding: var(--space-md);
  background: var(--bg-gray);
  border-radius: 10px;
}

.check-icon {
  width: 24px;
  height: 24px;
  background: var(--success);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  color: white;
  font-weight: 700;
  flex-shrink: 0;
  font-size: var(--text-sm);
}

.audit-feature span:last-child {
  font-size: var(--text-sm);
  line-height: 1.5;
  padding-top: 0.125rem;
}

.audit-cta {
  text-align: center;
  margin-top: var(--space-lg);
}

.audit-cta .btn {
  width: 100%;
}

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

  .audit-cta .btn {
    width: auto;
  }
}

/* =================================
   Before/After Section - Mobile First
   ================================= */

.before-after {
  background: white;
}

.comparison-container {
  display: grid;
  grid-template-columns: 1fr;
  gap: var(--space-lg);
  margin-top: var(--space-xl);
}

.comparison-side {
  border-radius: 16px;
  padding: var(--space-lg) var(--space-md);
  position: relative;
}

.comparison-side.before {
  background: #fee;
  border: 2px solid #fcc;
}

.comparison-side.after {
  background: #efe;
  border: 2px solid #cfc;
}

.comparison-label {
  position: absolute;
  top: -12px;
  left: 50%;
  transform: translateX(-50%);
  padding: 0.375rem 1rem;
  border-radius: 20px;
  font-weight: 700;
  font-size: var(--text-xs);
  white-space: nowrap;
}

.comparison-side.before .comparison-label {
  background: #dc2626;
  color: white;
}

.comparison-side.after .comparison-label {
  background: var(--success);
  color: white;
}

.comparison-content {
  margin-top: var(--space-sm);
}

.comparison-content h4 {
  font-size: var(--text-lg);
  margin-bottom: var(--space-sm);
  color: var(--dark);
  text-align: center;
}

.comparison-list {
  list-style: none;
}

.comparison-list li {
  padding: 0.5rem 0;
  color: var(--text);
  display: flex;
  align-items: flex-start;
  gap: 0.5rem;
  font-size: var(--text-sm);
  line-height: 1.5;
}

.comparison-list li::before {
  content: "×";
  color: #dc2626;
  font-weight: 700;
  font-size: 1.25rem;
  line-height: 1;
  flex-shrink: 0;
}

.comparison-side.after .comparison-list li::before {
  content: "✓";
  color: var(--success);
  font-size: 1rem;
}

@media (min-width: 768px) {
  .comparison-container {
    grid-template-columns: 1fr 1fr;
    gap: 2rem;
  }

  .comparison-side {
    padding: 2rem;
  }

  .comparison-content h4 {
    text-align: left;
  }
}

/* =================================
   FAQ Section - Mobile First
   ================================= */

.faq {
  background: var(--bg-gray);
}

.faq-list {
  max-width: 800px;
  margin: 0 auto;
}

.faq-item {
  background: white;
  border-radius: 12px;
  margin-bottom: var(--space-sm);
  overflow: hidden;
  border: 2px solid var(--border);
  transition: all 0.3s;
}

.faq-item:hover {
  border-color: var(--primary);
}

.faq-question {
  padding: var(--space-md);
  cursor: pointer;
  display: flex;
  justify-content: space-between;
  align-items: center;
  font-weight: 600;
  font-size: var(--text-base);
  color: var(--dark);
  gap: var(--space-sm);
}

.faq-question span:first-child {
  line-height: 1.4;
  padding-right: var(--space-sm);
}

.faq-toggle {
  font-size: 1.5rem;
  color: var(--primary);
  transition: transform 0.3s;
  flex-shrink: 0;
  line-height: 1;
}

.faq-item.active .faq-toggle {
  transform: rotate(45deg);
}

.faq-answer {
  max-height: 0;
  overflow: hidden;
  transition: max-height 0.3s ease-out;
}

.faq-item.active .faq-answer {
  max-height: 500px;
}

.faq-answer-content {
  padding: 0 var(--space-md) var(--space-md);
  color: var(--text-light);
  line-height: 1.7;
  font-size: var(--text-base);
}

@media (min-width: 768px) {
  .faq-question {
    padding: 1.5rem;
    font-size: 1.1rem;
  }

  .faq-answer-content {
    padding: 0 1.5rem 1.5rem;
  }
}

/* =================================
   Contact/Footer - Mobile First
   ================================= */

.contact {
  background: var(--dark);
  color: white;
  padding: var(--space-2xl) var(--space-md);
}

.contact h2 {
  color: white;
  font-size: var(--text-2xl);
}

.contact-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: var(--space-xl);
  margin-top: var(--space-xl);
}

.contact-method {
  text-align: center;
}

.contact-icon {
  width: 60px;
  height: 60px;
  background: linear-gradient(135deg, var(--primary), var(--secondary));
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  margin: 0 auto var(--space-md);
  font-size: 1.5rem;
}

.contact-method h3 {
  margin-bottom: var(--space-xs);
  font-size: var(--text-lg);
}

.contact-method p {
  color: rgba(255, 255, 255, 0.7);
  margin-bottom: var(--space-xs);
  font-size: var(--text-sm);
}

.contact-method a {
  color: var(--secondary);
  text-decoration: none;
  font-weight: 600;
  transition: color 0.3s;
  font-size: var(--text-base);
  word-break: break-all;
}

.contact-method a:hover {
  color: white;
}

.social-links {
  display: flex;
  justify-content: center;
  gap: var(--space-md);
  margin-top: var(--space-xl);
}

.social-link {
  width: 44px;
  height: 44px;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.1);
  display: flex;
  align-items: center;
  justify-content: center;
  color: white;
  text-decoration: none;
  transition: all 0.3s;
  font-size: 1.25rem;
}

.social-link:hover {
  background: var(--primary);
  transform: translateY(-3px);
}

.footer-bottom {
  text-align: center;
  margin-top: var(--space-xl);
  padding-top: var(--space-lg);
  border-top: 1px solid rgba(255, 255, 255, 0.1);
  color: rgba(255, 255, 255, 0.6);
  font-size: var(--text-sm);
}

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

  .contact-icon {
    width: 70px;
    height: 70px;
    font-size: 1.75rem;
  }
}

@media (min-width: 768px) {
  .contact h2 {
    font-size: 2.5rem;
  }
}

/* =================================
   Animation Classes
   ================================= */

.animate-on-scroll {
  opacity: 0;
  transform: translateY(30px);
  transition: all 0.6s ease-out;
}

.animate-on-scroll.animated {
  opacity: 1;
  transform: translateY(0);
}

/* Reduced motion preference */
@media (prefers-reduced-motion: reduce) {
  * {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
  }

  html {
    scroll-behavior: auto;
  }
}

/* =================================
   Touch Device Optimizations
   ================================= */

@media (hover: none) {
  .btn:hover,
  .project-card:hover,
  .service-card:hover,
  .benefit-card:hover {
    transform: none;
  }

  .chart-bar:hover::after {
    opacity: 1;
  }
}

/* =================================
   High DPI / Retina Display
   ================================= */

@media (-webkit-min-device-pixel-ratio: 2), (min-resolution: 192dpi) {
  .logo,
  .btn,
  .project-tag {
    -webkit-font-smoothing: antialiased;
  }
}
