/* ============================================================================
   ROOT & VARIABLES - Light & Dark Mode - iForth Brand Colors
   ============================================================================ */
:root {
  /* iForth Brand Colors */
  --iforth-primary: #2C2C57;
  --iforth-accent: #454587;

  /* Light Mode Colors */
  --bg: #f8f9fb;
  --surface: #ffffff;
  --primary: #2C2C57;
  --primary-light: #454587;
  --primary-hover: #3a3a6d;
  --primary-dark: #1f1f3d;
  --accent: #454587;
  --accent-light: #5656a0;
  --accent-hover: #5252a5;
  --text: #1e293b;
  --text-muted: #475569;
  --text-light: #64748b;
  --border: #cbd5e1;
  --border-light: #e2e8f0;
  --success: #10b981;
  --danger: #ef4444;
  --warning: #f59e0b;

  /* Shadows - using brand colors */
  --shadow-sm: 0 1px 3px rgba(44, 44, 87, 0.08), 0 1px 2px rgba(44, 44, 87, 0.05);
  --shadow-md: 0 4px 6px rgba(44, 44, 87, 0.1), 0 2px 4px rgba(44, 44, 87, 0.06);
  --shadow-lg: 0 10px 15px rgba(44, 44, 87, 0.12), 0 4px 6px rgba(44, 44, 87, 0.08);
  --shadow-xl: 0 20px 25px rgba(44, 44, 87, 0.15), 0 10px 10px rgba(44, 44, 87, 0.1);
  --shadow-glow: 0 0 20px rgba(69, 69, 135, 0.25);

  /* Transitions */
  --transition-fast: 150ms cubic-bezier(0.4, 0, 0.2, 1);
  --transition-base: 250ms cubic-bezier(0.4, 0, 0.2, 1);
  --transition-slow: 400ms cubic-bezier(0.4, 0, 0.2, 1);
}

/* Dark Mode */
[data-theme="dark"] {
  --bg: #0f172a;
  --surface: #1e293b;
  --primary: #454587;
  --primary-light: #5656a0;
  --primary-hover: #6363b5;
  --primary-dark: #2C2C57;
  --accent: #5656a0;
  --accent-light: #6868b8;
  --accent-hover: #7070c5;
  --text: #f1f5f9;
  --text-muted: #cbd5e1;
  --text-light: #94a3b8;
  --border: #334155;
  --border-light: #475569;
  --success: #34d399;
  --danger: #f87171;
  --warning: #fbbf24;

  --shadow-sm: 0 1px 3px rgba(0, 0, 0, 0.3), 0 1px 2px rgba(0, 0, 0, 0.2);
  --shadow-md: 0 4px 6px rgba(0, 0, 0, 0.4), 0 2px 4px rgba(0, 0, 0, 0.3);
  --shadow-lg: 0 10px 15px rgba(0, 0, 0, 0.5), 0 4px 6px rgba(0, 0, 0, 0.3);
  --shadow-xl: 0 20px 25px rgba(0, 0, 0, 0.6), 0 10px 10px rgba(0, 0, 0, 0.4);
  --shadow-glow: 0 0 30px rgba(69, 69, 135, 0.3);
}

/* ============================================================================
   GLOBAL STYLES
   ============================================================================ */
*,
*::before,
*::after {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  padding: 0;
  background: var(--bg);
  color: var(--text);
  font-family: 'Inter', -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  line-height: 1.6;
  font-size: 16px;
  font-weight: 400;
  transition: background-color var(--transition-slow), color var(--transition-slow);
}

/* ============================================================================
   SCROLL PROGRESS INDICATOR
   ============================================================================ */
.scroll-progress {
  position: fixed;
  top: 0;
  left: 0;
  height: 3px;
  background: var(--primary);
  z-index: 9999;
  transform-origin: left;
  transition: width var(--transition-fast);
  box-shadow: 0 0 10px rgba(44, 44, 87, 0.5);
}

/* ============================================================================
   BACK TO TOP BUTTON
   ============================================================================ */
.back-to-top {
  position: fixed;
  bottom: 32px;
  right: 32px;
  width: 48px;
  height: 48px;
  border-radius: 50%;
  background: var(--primary);
  color: white;
  border: none;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: var(--shadow-lg);
  opacity: 0;
  visibility: hidden;
  transform: translateY(20px);
  transition: all var(--transition-base);
  z-index: 999;
}

.back-to-top.visible {
  opacity: 1;
  visibility: visible;
  transform: translateY(0);
}

.back-to-top:hover {
  background: var(--primary-hover);
  transform: translateY(-4px);
  box-shadow: var(--shadow-xl), var(--shadow-glow);
}

.back-to-top:active {
  transform: translateY(0);
}

/* ============================================================================
   CONTAINER
   ============================================================================ */
.container {
  width: 100%;
  max-width: 1280px;
  margin: 0 auto;
  padding: 0 24px;
}

.container-nav {
  width: 100%;
  max-width: 1280px;
  margin: 0 auto;
  padding: 0 24px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: auto;
  min-height: 70px;
  padding: 12px 24px;
}

/* ============================================================================
   NAVBAR / HEADER
   ============================================================================ */
header {
  position: sticky;
  top: 0;
  z-index: 100;
  background: rgba(255, 255, 255, 0.8);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border-bottom: 1px solid var(--border-light);
  box-shadow: var(--shadow-sm);
  transition: all var(--transition-base);
}

[data-theme="dark"] header {
  background: rgba(30, 41, 59, 0.8);
}

.navbar {
  width: 100%;
}

.logo {
  font-weight: 700;
  font-size: 22px;
  letter-spacing: -0.5px;
  color: var(--primary);
  text-decoration: none;
  display: flex;
  align-items: center;
  gap: 8px;
  height: auto;
  transition: transform var(--transition-fast);
}

.logo:hover {
  transform: scale(1.05);
}

.logo-image {
  height: 60px;
  width: auto;
  max-width: 200px;
}

.logo-image-footer {
  height: 32px;
  width: auto;
  max-width: 140px;
}

.nav-menu {
  display: flex;
  gap: 32px;
  list-style: none;
  padding: 0;
  margin: 0;
  align-items: center;
}

.nav-menu a {
  color: var(--text);
  text-decoration: none;
  font-size: 15px;
  font-weight: 500;
  padding: 8px 0;
  border-bottom: 2px solid transparent;
  transition: all var(--transition-base);
  position: relative;
}

.nav-menu a:not(.nav-cta)::after {
  content: '';
  position: absolute;
  bottom: 0;
  left: 50%;
  width: 0;
  height: 2px;
  background: var(--primary);
  transition: all var(--transition-base);
  transform: translateX(-50%);
  pointer-events: none;
}

.nav-menu a:not(.nav-cta):hover::after,
.nav-menu a:not(.nav-cta).active::after {
  width: 100%;
}

.nav-menu a:not(.nav-cta):hover {
  color: var(--primary);
}

.nav-menu .nav-cta {
  background: var(--primary);
  color: white;
  border-radius: 8px;
  padding: 10px 20px;
  border-bottom-color: transparent;
  font-weight: 600;
  position: relative;
  overflow: hidden;
  z-index: 10;
}

.nav-menu .nav-cta::before {
  content: '';
  position: absolute;
  top: 0;
  left: -100%;
  width: 100%;
  height: 100%;
  background: rgba(255, 255, 255, 0.1);
  transition: left var(--transition-slow);
}

.nav-menu .nav-cta:hover::before {
  left: 100%;
}

.nav-menu .nav-cta:hover {
  background: var(--primary-hover);
  transform: translateY(-2px);
  box-shadow: var(--shadow-md);
}

.nav-menu .nav-cta::after {
  display: none;
}

/* Separated CTA Button */
.nav-actions {
  display: flex;
  align-items: center;
  gap: 16px;
}

.nav-cta-button {
  background: var(--primary);
  color: white;
  border-radius: 8px;
  padding: 10px 20px;
  font-weight: 600;
  text-decoration: none;
  transition: all var(--transition-base);
  white-space: nowrap;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  position: relative;
  overflow: hidden;
}

.nav-cta-button::before {
  content: '';
  position: absolute;
  top: 0;
  left: -100%;
  width: 100%;
  height: 100%;
  background: rgba(255, 255, 255, 0.1);
  transition: left var(--transition-slow);
}

.nav-cta-button:hover::before {
  left: 100%;
}

.nav-cta-button:hover {
  background: var(--primary-hover);
  transform: translateY(-2px);
  box-shadow: var(--shadow-md);
}

/* Theme Toggle Button */
.theme-toggle {
  background: transparent;
  border: 2px solid var(--border);
  border-radius: 50%;
  width: 40px;
  height: 40px;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: all var(--transition-base);
  font-size: 18px;
}

.theme-toggle:hover {
  background: var(--border-light);
  border-color: var(--primary);
  transform: rotate(20deg) scale(1.1);
}

.theme-icon {
  transition: transform var(--transition-base);
}

.nav-toggle {
  display: none;
  background: transparent;
  border: 0;
  color: var(--text);
  font-size: 24px;
  padding: 8px;
  cursor: pointer;
  transition: color var(--transition-base);
}

.nav-toggle:hover {
  color: var(--primary);
}

/* ============================================================================
   HERO SECTION
   ============================================================================ */
.hero {
  position: relative;
  min-height: 84vh;
  display: flex;
  align-items: center;
  overflow: hidden;
  background: var(--bg);
}

.hero-bg-gradient {
  position: absolute;
  inset: 0;
  background:
    repeating-linear-gradient(90deg,
      transparent,
      transparent 2px,
      rgba(44, 44, 87, 0.015) 2px,
      rgba(44, 44, 87, 0.015) 4px),
    repeating-linear-gradient(0deg,
      transparent,
      transparent 2px,
      rgba(44, 44, 87, 0.01) 2px,
      rgba(44, 44, 87, 0.01) 4px);
  pointer-events: none;
  opacity: 0.6;
}

.hero-wrapper {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 60px;
  align-items: center;
  position: relative;
  z-index: 1;
}

.hero-content {
  max-width: 500px;
  animation: fadeInUp 0.8s ease-out;
}

@keyframes fadeInUp {
  from {
    opacity: 0;
    transform: translateY(30px);
  }

  to {
    opacity: 1;
    transform: translateY(0);
  }
}

.hero-badge {
  display: inline-block;
  background: rgba(69, 69, 135, 0.08);
  border: 1px solid rgba(69, 69, 135, 0.25);
  border-radius: 20px;
  padding: 8px 16px;
  font-size: 13px;
  font-weight: 600;
  color: var(--accent);
  margin-bottom: 24px;
  backdrop-filter: blur(10px);
  animation: pulse 3s ease-in-out infinite;
}

@keyframes pulse {

  0%,
  100% {
    transform: scale(1);
  }

  50% {
    transform: scale(1.02);
  }
}

.hero-content h1 {
  margin: 0 0 16px;
  font-size: 52px;
  line-height: 1.15;
  font-weight: 800;
  color: var(--text);
  letter-spacing: -1px;
}

.hero-content>p {
  margin: 0 0 32px;
  font-size: 18px;
  line-height: 1.7;
  color: var(--text-muted);
}

.hero-actions {
  display: flex;
  gap: 16px;
  align-items: center;
  margin-bottom: 48px;
  flex-wrap: wrap;
}

.hero-stats {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
  padding-top: 32px;
  border-top: 1px solid var(--border-light);
}

.stat-item {
  display: flex;
  flex-direction: column;
  gap: 4px;
}

.stat-value {
  font-size: 24px;
  font-weight: 700;
  color: var(--primary);
  filter: drop-shadow(0 0 8px rgba(44, 44, 87, 0.25));
}

.stat-label {
  font-size: 15px;
  font-weight: 600;
  color: var(--text);
  line-height: 1.4;
}

.stat-sublabel {
  font-size: 13px;
  color: var(--text-light);
  line-height: 1.4;
}

.hero-image {
  position: relative;
  display: flex;
  align-items: center;
  justify-content: center;
  max-width: 600px;
  width: 100%;
  animation: fadeInUp 0.8s ease-out 0.2s both;
}

/* Dashboard Mockup Styles */
.dashboard-mockup {
  position: relative;
  width: 100%;
  min-height: 500px;
  perspective: 1000px;
}

.dashboard-card {
  background: rgba(255, 255, 255, 0.95);
  backdrop-filter: blur(20px);
  border-radius: 20px;
  padding: 28px;
  box-shadow: var(--shadow-xl);
  border: 1px solid rgba(255, 255, 255, 0.3);
  transition: all var(--transition-slow);
  animation: dashboardFloat 6s ease-in-out infinite;
}

[data-theme="dark"] .dashboard-card {
  background: rgba(30, 41, 59, 0.95);
  border: 1px solid rgba(148, 163, 184, 0.2);
}

@keyframes dashboardFloat {

  0%,
  100% {
    transform: translateY(0) rotateX(0);
  }

  50% {
    transform: translateY(-10px) rotateX(2deg);
  }
}

.card-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 24px;
  padding-bottom: 16px;
  border-bottom: 2px solid var(--border-light);
}

.card-title {
  font-size: 20px;
  font-weight: 800;
  color: var(--primary);
  letter-spacing: -0.5px;
}

.card-status {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 13px;
  font-weight: 600;
  color: var(--text-muted);
}

.status-dot {
  width: 8px;
  height: 8px;
  background: #10b981;
  border-radius: 50%;
  animation: pulse 2s ease-in-out infinite;
}

@keyframes pulse {

  0%,
  100% {
    opacity: 1;
    transform: scale(1);
  }

  50% {
    opacity: 0.6;
    transform: scale(1.2);
  }
}

/* Metrics Grid */
.metrics-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 16px;
  margin-bottom: 24px;
}

.metric-card {
  background: rgba(69, 69, 135, 0.05);
  padding: 16px;
  border-radius: 12px;
  border: 1px solid var(--border-light);
  transition: all var(--transition-base);
}

.metric-card:hover {
  transform: translateY(-4px);
  box-shadow: var(--shadow-md);
  border-color: var(--primary);
}

.metric-label {
  font-size: 12px;
  font-weight: 600;
  color: var(--text-light);
  margin-bottom: 8px;
  text-transform: uppercase;
  letter-spacing: 0.5px;
}

.metric-value {
  font-size: 28px;
  font-weight: 800;
  color: var(--text);
  margin-bottom: 4px;
  animation: countUp 1s ease-out;
}

@keyframes countUp {
  from {
    opacity: 0;
    transform: translateY(10px);
  }

  to {
    opacity: 1;
    transform: translateY(0);
  }
}

.metric-trend {
  font-size: 13px;
  font-weight: 700;
  display: inline-flex;
  align-items: center;
  gap: 2px;
}

.metric-trend.positive {
  color: #10b981;
}

.metric-trend.negative {
  color: #ef4444;
}

/* Chart Area */
.chart-area {
  margin-top: 24px;
}

.chart-header {
  font-size: 14px;
  font-weight: 700;
  color: var(--text-muted);
  margin-bottom: 16px;
  text-transform: uppercase;
  letter-spacing: 0.5px;
}

.bar-chart {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 12px;
  height: 120px;
  padding: 8px 0;
}

.bar {
  flex: 1;
  background: var(--primary);
  border-radius: 6px 6px 0 0;
  height: var(--height);
  opacity: 0.6;
  transition: all var(--transition-base);
  position: relative;
  animation: barGrow 0.8s ease-out backwards;
}

.bar:nth-child(1) {
  animation-delay: 0.1s;
}

.bar:nth-child(2) {
  animation-delay: 0.2s;
}

.bar:nth-child(3) {
  animation-delay: 0.3s;
}

.bar:nth-child(4) {
  animation-delay: 0.4s;
}

.bar:nth-child(5) {
  animation-delay: 0.5s;
}

.bar:nth-child(6) {
  animation-delay: 0.6s;
}

.bar:nth-child(7) {
  animation-delay: 0.7s;
}

@keyframes barGrow {
  from {
    height: 0;
  }

  to {
    height: var(--height);
  }
}

.bar.active {
  background: var(--accent);
  opacity: 1;
  box-shadow: 0 0 20px rgba(69, 69, 135, 0.4);
}

.bar:hover {
  opacity: 1;
  transform: scaleY(1.05);
}

/* Mini Floating Cards */
.mini-card {
  position: absolute;
  background: rgba(255, 255, 255, 0.98);
  backdrop-filter: blur(20px);
  padding: 16px;
  border-radius: 12px;
  box-shadow: var(--shadow-lg);
  border: 1px solid rgba(255, 255, 255, 0.5);
  display: flex;
  align-items: center;
  gap: 12px;
  transition: all var(--transition-base);
  animation: miniCardFloat 4s ease-in-out infinite;
}

[data-theme="dark"] .mini-card {
  background: rgba(30, 41, 59, 0.98);
  border: 1px solid rgba(148, 163, 184, 0.3);
}

.card-1 {
  top: 12%;
  right: -8%;
  animation-delay: 0s;
}

.card-2 {
  top: 48%;
  right: -10%;
  animation-delay: 1.3s;
}

.card-3 {
  bottom: 12%;
  right: -8%;
  animation-delay: 2.6s;
}

@keyframes miniCardFloat {

  0%,
  100% {
    transform: translateY(0) rotateZ(0);
  }

  33% {
    transform: translateY(-8px) rotateZ(1deg);
  }

  66% {
    transform: translateY(8px) rotateZ(-1deg);
  }
}

.mini-card:hover {
  transform: translateY(-8px) scale(1.05);
  box-shadow: var(--shadow-xl);
  cursor: pointer;
}

.mini-icon {
  font-size: 28px;
  filter: drop-shadow(0 2px 4px rgba(0, 0, 0, 0.1));
}

.mini-text {
  display: flex;
  flex-direction: column;
  gap: 2px;
}

.mini-label {
  font-size: 11px;
  font-weight: 600;
  color: var(--text-light);
  text-transform: uppercase;
  letter-spacing: 0.5px;
}

.mini-value {
  font-size: 20px;
  font-weight: 800;
  color: var(--text);
}

/* ============================================================================
   SECTIONS
   ============================================================================ */
.section {
  padding: 80px 0;
  position: relative;
}

.section-header {
  text-align: center;
  margin-bottom: 64px;
  max-width: 600px;
  margin-left: auto;
  margin-right: auto;
  animation: fadeInUp 0.6s ease-out;
}

.section-header h2 {
  margin: 0 0 12px;
  font-size: 40px;
  line-height: 1.2;
  font-weight: 800;
  color: var(--text);
  letter-spacing: -0.5px;
}

.section-header p {
  margin: 0;
  font-size: 18px;
  color: var(--text-muted);
}

/* About Section */
.about-section {
  background: var(--surface);
  transition: background-color var(--transition-slow);
}

.about-content {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 40px;
}

.about-card {
  text-align: center;
  padding: 48px 40px;
  border-radius: 20px;
  background: rgba(69, 69, 135, 0.03);
  border: 1px solid var(--border-light);
  backdrop-filter: blur(10px);
  transition: all var(--transition-slow);
  position: relative;
  overflow: hidden;
}

.about-card::before {
  content: '';
  position: absolute;
  top: -50%;
  left: -50%;
  width: 200%;
  height: 200%;
  background: rgba(69, 69, 135, 0.04);
  transform: rotate(45deg);
  transition: all var(--transition-slow);
  opacity: 0;
}

.about-card:hover::before {
  opacity: 1;
  animation: shine 1.5s ease-in-out;
}

@keyframes shine {
  0% {
    transform: translateX(-100%) rotate(45deg);
  }

  100% {
    transform: translateX(100%) rotate(45deg);
  }
}

.about-card:hover {
  border-color: var(--accent);
  box-shadow: var(--shadow-xl), 0 0 30px rgba(69, 69, 135, 0.2);
  transform: translateY(-8px) scale(1.02);
}

.card-icon {
  font-size: 48px;
  margin-bottom: 20px;
  display: inline-block;
  filter: drop-shadow(0 4px 8px rgba(0, 0, 0, 0.1));
  transition: transform var(--transition-base);
}

.about-card:hover .card-icon {
  transform: scale(1.2) rotate(5deg);
}

.about-card h3 {
  margin: 0 0 12px;
  font-size: 22px;
  font-weight: 700;
  color: var(--text);
}

.about-card p {
  margin: 0;
  font-size: 15px;
  line-height: 1.7;
  color: var(--text-muted);
}

/* Solutions Section */
.solutions-section {
  background: var(--bg);
}

.solutions-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 24px;
}

.solution-card {
  background: var(--surface);
  border: 1px solid var(--border-light);
  border-radius: 20px;
  padding: 40px;
  transition: all var(--transition-slow);
  display: flex;
  flex-direction: column;
  position: relative;
  overflow: hidden;
  backdrop-filter: blur(10px);
}

.solution-card::after {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 4px;
  background: var(--primary);
  transform: scaleX(0);
  transition: transform var(--transition-base);
}

.solution-card:hover::after {
  transform: scaleX(1);
}

.solution-card:hover {
  border-color: var(--primary);
  box-shadow: var(--shadow-xl), var(--shadow-glow);
  transform: translateY(-12px);
}

.card-number {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 48px;
  height: 48px;
  background: var(--primary);
  color: white;
  border-radius: 12px;
  font-weight: 800;
  font-size: 18px;
  margin-bottom: 20px;
  box-shadow: var(--shadow-md);
  transition: transform var(--transition-base);
}

.solution-card:hover .card-number {
  background: var(--primary-hover);
  transform: rotate(360deg) scale(1.1);
}

.solution-card h3 {
  margin: 0 0 12px;
  font-size: 22px;
  font-weight: 700;
  color: var(--text);
}

.solution-card>p {
  margin: 0 0 20px;
  font-size: 15px;
  line-height: 1.7;
  color: var(--text-muted);
  flex-grow: 1;
}

.feature-list {
  list-style: none;
  padding: 0;
  margin: 0 0 24px;
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.feature-list li {
  font-size: 14px;
  color: var(--text-light);
  padding-left: 28px;
  position: relative;
}

.feature-list li::before {
  content: "✓";
  position: absolute;
  left: 0;
  color: var(--primary);
  font-weight: 700;
  font-size: 16px;
}

.cta-link {
  color: var(--primary);
  text-decoration: none;
  font-weight: 600;
  font-size: 15px;
  transition: all var(--transition-base);
  display: inline-flex;
  align-items: center;
  gap: 4px;
}

.cta-link:hover {
  gap: 12px;
  color: var(--accent);
}

/* Features Section */
.features-section {
  background: var(--surface);
  transition: background-color var(--transition-slow);
}

.features-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 40px;
}

.feature-item {
  text-align: center;
  padding: 48px 40px;
  border-radius: 20px;
  background: rgba(44, 44, 87, 0.03);
  border: 1px solid var(--border-light);
  backdrop-filter: blur(10px);
  transition: all var(--transition-slow);
  position: relative;
  overflow: hidden;
}

.feature-item::before {
  content: '';
  position: absolute;
  inset: 0;
  background: rgba(69, 69, 135, 0.06);
  opacity: 0;
  transition: opacity var(--transition-slow);
}

.feature-item:hover::before {
  opacity: 1;
}

.feature-item:hover {
  border-color: var(--accent);
  box-shadow: var(--shadow-xl), 0 0 30px rgba(69, 69, 135, 0.2);
  transform: translateY(-8px);
}

.feature-icon {
  font-size: 48px;
  margin-bottom: 20px;
  display: inline-block;
  filter: drop-shadow(0 4px 8px rgba(0, 0, 0, 0.1));
  transition: transform var(--transition-base);
}

.feature-item:hover .feature-icon {
  transform: scale(1.2);
  filter: drop-shadow(0 8px 16px rgba(69, 69, 135, 0.3));
}

.feature-item h3 {
  margin: 0 0 12px;
  font-size: 20px;
  font-weight: 700;
  color: var(--text);
  position: relative;
}

.feature-item p {
  margin: 0;
  font-size: 15px;
  line-height: 1.7;
  color: var(--text-muted);
  position: relative;
}

/* Contact Section */
.contact-section {
  background: var(--primary);
  color: white;
  position: relative;
  overflow: hidden;
}

.contact-section::before {
  content: '';
  position: absolute;
  inset: 0;
  background: repeating-linear-gradient(45deg,
      transparent,
      transparent 10px,
      rgba(255, 255, 255, 0.02) 10px,
      rgba(255, 255, 255, 0.02) 20px);
  pointer-events: none;
}

.contact-wrapper {
  display: grid;
  grid-template-columns: 1fr 1.1fr;
  gap: 80px;
  align-items: start;
  position: relative;
  z-index: 1;
}

.contact-info h2 {
  margin: 0 0 16px;
  font-size: 40px;
  font-weight: 800;
  color: white;
}

.contact-info>p {
  margin: 0 0 40px;
  font-size: 17px;
  line-height: 1.7;
  color: rgba(255, 255, 255, 0.95);
}

.contact-details {
  display: flex;
  flex-direction: column;
  gap: 32px;
}

.detail-item {
  display: flex;
  gap: 16px;
  align-items: flex-start;
  padding: 20px;
  border-radius: 12px;
  background: rgba(255, 255, 255, 0.1);
  backdrop-filter: blur(10px);
  transition: all var(--transition-base);
}

.detail-item:hover {
  background: rgba(255, 255, 255, 0.15);
  transform: translateX(8px);
}

.detail-icon {
  font-size: 28px;
  min-width: 36px;
  text-align: center;
  margin-top: 4px;
}

.detail-item h4 {
  margin: 0 0 4px;
  font-size: 16px;
  font-weight: 700;
  color: white;
}

.detail-item p {
  margin: 0;
  font-size: 15px;
  color: rgba(255, 255, 255, 0.9);
}

.contact-form {
  background: rgba(255, 255, 255, 0.95);
  backdrop-filter: blur(20px);
  padding: 48px;
  border-radius: 20px;
  box-shadow: var(--shadow-xl);
  transition: all var(--transition-base);
}

[data-theme="dark"] .contact-form {
  background: rgba(30, 41, 59, 0.95);
}

.contact-form:hover {
  box-shadow: var(--shadow-xl), 0 0 40px rgba(0, 0, 0, 0.2);
}

.form-row {
  display: grid;
  gap: 8px;
  margin-bottom: 24px;
}

.contact-form label {
  font-size: 14px;
  font-weight: 600;
  color: var(--text);
}

.contact-form input,
.contact-form textarea {
  width: 100%;
  padding: 14px 16px;
  border-radius: 10px;
  border: 2px solid var(--border-light);
  background: white;
  color: var(--text);
  font-family: inherit;
  font-size: 15px;
  transition: all var(--transition-base);
}

[data-theme="dark"] .contact-form input,
[data-theme="dark"] .contact-form textarea {
  background: var(--bg);
}

.contact-form input:focus,
.contact-form textarea:focus {
  outline: none;
  border-color: var(--primary);
  box-shadow: 0 0 0 4px rgba(44, 44, 87, 0.1);
  transform: translateY(-2px);
}

.contact-form input::placeholder,
.contact-form textarea::placeholder {
  color: var(--text-light);
}

.contact-form button {
  margin-top: 8px;
}

.form-feedback {
  margin-top: 16px;
  font-size: 14px;
  font-weight: 600;
  text-align: center;
  padding: 12px;
  border-radius: 8px;
  transition: all var(--transition-base);
}

.form-feedback.success {
  color: var(--success);
  background: rgba(16, 185, 129, 0.1);
  border: 1px solid var(--success);
}

.form-feedback.error {
  color: var(--danger);
  background: rgba(239, 68, 68, 0.1);
  border: 1px solid var(--danger);
}

/* ============================================================================
   BUTTONS
   ============================================================================ */
.cta-button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 14px 28px;
  font-size: 15px;
  font-weight: 700;
  border-radius: 10px;
  text-decoration: none;
  border: 0;
  cursor: pointer;
  transition: all var(--transition-base);
  gap: 8px;
  position: relative;
  overflow: hidden;
}

.cta-button.primary {
  background: var(--primary);
  color: white;
  box-shadow: var(--shadow-md);
}

.cta-button.primary::before {
  content: '';
  position: absolute;
  top: 0;
  left: -100%;
  width: 100%;
  height: 100%;
  background: rgba(255, 255, 255, 0.1);
  transition: left 0.5s ease;
}

.cta-button.primary:hover::before {
  left: 100%;
}

.cta-button.primary:hover {
  background: var(--primary-hover);
  box-shadow: var(--shadow-xl), var(--shadow-glow);
  transform: translateY(-3px);
}

.cta-button.secondary {
  background: white;
  color: var(--primary);
  border: 2px solid white;
  font-weight: 700;
  box-shadow: var(--shadow-md);
}

.cta-button.secondary:hover {
  background: rgba(255, 255, 255, 0.95);
  transform: translateY(-3px);
  box-shadow: var(--shadow-xl);
}

.cta-button:active {
  transform: translateY(-1px);
}

/* ============================================================================
   FOOTER
   ============================================================================ */
.footer {
  border-top: 1px solid var(--border-light);
  background: var(--surface);
  padding: 40px 0;
  margin-top: 80px;
  transition: all var(--transition-slow);
}

.footer-content {
  display: flex;
  align-items: center;
  justify-content: space-between;
  max-width: 1280px;
  margin: 0 auto;
  padding: 0 24px;
}

.footer-brand {
  font-weight: 700;
  color: var(--primary);
  font-size: 18px;
}

.footer-meta {
  color: var(--text-light);
  font-size: 14px;
}

/* ============================================================================
   ANIMATIONS - Scroll Reveal
   ============================================================================ */
.animate-on-scroll {
  opacity: 0;
  transform: translateY(30px);
  transition: opacity 0.8s ease-out, transform 0.8s ease-out;
}

.animate-on-scroll.animated {
  opacity: 1;
  transform: translateY(0);
}

/* ============================================================================
   RESPONSIVE DESIGN
   ============================================================================ */
@media (max-width: 1024px) {
  .solutions-grid {
    grid-template-columns: repeat(2, 1fr);
  }

  .features-grid {
    grid-template-columns: repeat(2, 1fr);
  }

  .hero-wrapper {
    grid-template-columns: 1fr;
    gap: 40px;
  }

  .contact-wrapper {
    grid-template-columns: 1fr;
    gap: 40px;
  }

  .about-content {
    grid-template-columns: repeat(3, 1fr);
  }

  .hero-content h1 {
    font-size: 44px;
  }

  .section-header h2 {
    font-size: 36px;
  }
}

@media (max-width: 768px) {

  /* Navigation */
  .nav-menu {
    display: none;
    position: absolute;
    top: 64px;
    left: 0;
    right: 0;
    flex-direction: column;
    gap: 0;
    padding: 16px 24px;
    background: rgba(255, 255, 255, 0.95);
    backdrop-filter: blur(20px);
    border-bottom: 1px solid var(--border-light);
    border-radius: 0 0 16px 16px;
    box-shadow: var(--shadow-lg);
    animation: slideDown 0.3s ease-out;
  }

  [data-theme="dark"] .nav-menu {
    background: rgba(30, 41, 59, 0.95);
  }

  @keyframes slideDown {
    from {
      opacity: 0;
      transform: translateY(-10px);
    }

    to {
      opacity: 1;
      transform: translateY(0);
    }
  }

  .nav-menu.active {
    display: flex;
  }

  .nav-toggle {
    display: inline-block;
  }

  .nav-menu li {
    width: 100%;
    border-bottom: 1px solid var(--border-light);
  }

  .nav-menu li:last-child {
    border-bottom: none;
  }

  .nav-menu a {
    padding: 16px 0;
    display: block;
    width: 100%;
  }

  /* Separated CTA button and theme toggle on mobile */
  .nav-actions {
    display: none;
    flex-direction: column;
    gap: 12px;
    width: 100%;
    padding: 16px 24px;
  }

  .nav-menu.active~.nav-actions {
    display: flex;
  }

  .nav-cta-button {
    width: 100%;
  }

  .theme-toggle {
    margin: 0 auto;
  }

  /* Hero */
  .hero {
    min-height: auto;
    padding: 60px 0;
  }

  .hero-wrapper {
    grid-template-columns: 1fr;
  }

  .hero-content h1 {
    font-size: 36px;
  }

  .hero-content>p {
    font-size: 16px;
  }

  .hero-stats {
    grid-template-columns: 1fr;
    gap: 20px;
    border-top: none;
    padding-top: 0;
    padding: 24px 0 0;
  }

  .hero-image-placeholder {
    max-width: 100%;
  }

  /* Sections */
  .section {
    padding: 60px 0;
  }

  .section-header {
    margin-bottom: 40px;
  }

  .section-header h2 {
    font-size: 32px;
  }

  /* About */
  .about-content {
    grid-template-columns: 1fr;
  }

  .about-card {
    padding: 40px 32px;
  }

  /* Solutions */
  .solutions-grid {
    grid-template-columns: 1fr;
  }

  /* Features */
  .features-grid {
    grid-template-columns: 1fr;
  }

  /* Contact */
  .contact-wrapper {
    grid-template-columns: 1fr;
    gap: 40px;
  }

  .contact-info h2 {
    font-size: 32px;
  }

  .contact-form {
    padding: 40px 32px;
  }

  /* Footer */
  .footer-content {
    flex-direction: column;
    gap: 16px;
    text-align: center;
  }

  /* Back to top */
  .back-to-top {
    bottom: 24px;
    right: 24px;
    width: 44px;
    height: 44px;
  }
}

@media (max-width: 480px) {
  .hero-badge {
    font-size: 12px;
    padding: 6px 14px;
  }

  .hero-content h1 {
    font-size: 28px;
    line-height: 1.3;
  }

  .hero-content>p {
    font-size: 15px;
    margin-bottom: 24px;
  }

  .hero-actions {
    gap: 12px;
    margin-bottom: 32px;
    flex-direction: column;
    width: 100%;
  }

  .hero-actions .cta-button {
    width: 100%;
  }

  .hero-stats {
    margin-top: 24px;
  }

  .stat-value {
    font-size: 20px;
  }

  .stat-label {
    font-size: 14px;
  }

  .section {
    padding: 48px 0;
  }

  .section-header h2 {
    font-size: 28px;
  }

  .section-header p {
    font-size: 16px;
  }

  .section-header {
    margin-bottom: 32px;
  }

  .about-card,
  .solution-card,
  .feature-item {
    padding: 32px 24px;
  }

  .solution-card h3,
  .about-card h3,
  .feature-item h3 {
    font-size: 20px;
  }

  .solution-card>p,
  .about-card p,
  .feature-item p {
    font-size: 14px;
  }

  .cta-button {
    padding: 12px 24px;
    font-size: 14px;
    border-radius: 8px;
  }

  .contact-info h2 {
    font-size: 28px;
  }

  .contact-info>p {
    font-size: 15px;
  }

  .contact-form {
    padding: 32px 24px;
  }

  .form-row {
    margin-bottom: 20px;
  }

  .contact-form input,
  .contact-form textarea {
    padding: 12px 14px;
    font-size: 14px;
  }

  .footer {
    padding: 32px 0;
  }

  .footer-content {
    padding: 0 24px;
  }

  .footer-brand {
    font-size: 16px;
  }

  .footer-meta {
    font-size: 13px;
  }
}

/* ============================================================================
   WHATSAPP FLOATING BUTTON
   ============================================================================ */
.whatsapp-button {
  position: fixed;
  bottom: 30px;
  right: 30px;
  width: 60px;
  height: 60px;
  background: linear-gradient(135deg, #25d366, #20ba5d);
  color: white;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  text-decoration: none;
  box-shadow: 0 8px 24px rgba(37, 211, 102, 0.4);
  transition: all var(--transition-base);
  z-index: 999;
  border: none;
  cursor: pointer;
  font-size: 28px;
}

.whatsapp-button i {
  color: white;
}

.whatsapp-button:hover {
  transform: translateY(-8px) scale(1.1);
  box-shadow: 0 12px 32px rgba(37, 211, 102, 0.5);
  background: linear-gradient(135deg, #20ba5d, #1a9e52);
}

.whatsapp-button:active {
  transform: translateY(-4px) scale(1.05);
}

/* Dark mode adjustment */
[data-theme="dark"] .whatsapp-button {
  box-shadow: 0 8px 24px rgba(37, 211, 102, 0.3);
}

[data-theme="dark"] .whatsapp-button:hover {
  box-shadow: 0 12px 32px rgba(37, 211, 102, 0.4);
}

/* Mobile responsiveness */
@media (max-width: 768px) {
  .whatsapp-button {
    bottom: 20px;
    right: 20px;
    width: 55px;
    height: 55px;
    font-size: 24px;
  }

  .whatsapp-button:hover {
    transform: translateY(-6px) scale(1.08);
  }
}
