@import url('https://fonts.googleapis.com/css2?family=Inter:wght@300;400;500;600;700&family=Plus+Jakarta+Sans:wght@400;500;600;700;800&display=swap');

/* --- CUSTOM PROPERTIES (DESIGN SYSTEM) --- */
:root {
  /* Fonts */
  --font-heading: 'Plus Jakarta Sans', 'Inter', -apple-system, sans-serif;
  --font-body: 'Inter', -apple-system, sans-serif;

  /* Transitions */
  --transition-smooth: all 0.4s cubic-bezier(0.16, 1, 0.3, 1);
  --transition-fast: all 0.2s ease;
  --transition-bounce: all 0.6s cubic-bezier(0.34, 1.56, 0.64, 1);

  /* Color Tokens - Dark Mode (Default) */
  --bg-base: #060911;
  --bg-surface: rgba(18, 24, 38, 0.6);
  --bg-surface-opaque: #0f1420;
  --bg-navbar: rgba(6, 9, 17, 0.75);
  
  --color-primary: #009fe3;
  --color-primary-rgb: 0, 159, 227;
  --color-primary-glow: rgba(0, 159, 227, 0.15);
  --color-secondary: #a0a0a0;
  --color-text-main: #f8fafc;
  --color-text-muted: #94a3b8;
  --color-border: rgba(255, 255, 255, 0.08);
  --color-border-active: rgba(0, 159, 227, 0.4);
  
  --gradient-hero: linear-gradient(135deg, #f8fafc 10%, #009fe3 100%);
  --gradient-accent: linear-gradient(135deg, #009fe3 0%, #00d2ff 100%);
  --gradient-radial-glow: radial-gradient(circle at 50% 50%, rgba(0, 159, 227, 0.15), transparent 60%);
  
  --shadow-premium: 0 10px 30px -10px rgba(0, 0, 0, 0.5), 0 1px 1px rgba(255, 255, 255, 0.05) inset;
  --shadow-glow: 0 0 30px rgba(0, 159, 227, 0.3);
  
  --grid-color: rgba(255, 255, 255, 0.02);
}

/* Light Theme overrides */
html.light-theme {
  --bg-base: #f4f7f6;
  --bg-surface: rgba(255, 255, 255, 0.7);
  --bg-surface-opaque: #ffffff;
  --bg-navbar: rgba(244, 247, 246, 0.8);
  
  --color-primary: #009fe3;
  --color-primary-rgb: 0, 159, 227;
  --color-primary-glow: rgba(0, 159, 227, 0.08);
  --color-secondary: #6b7280;
  --color-text-main: #0f172a;
  --color-text-muted: #475569;
  --color-border: rgba(0, 159, 227, 0.1);
  --color-border-active: rgba(0, 159, 227, 0.6);
  
  --gradient-hero: linear-gradient(135deg, #0f172a 30%, #009fe3 100%);
  --gradient-accent: linear-gradient(135deg, #009fe3 0%, #006097 100%);
  --gradient-radial-glow: radial-gradient(circle at 50% 50%, rgba(0, 159, 227, 0.06), transparent 60%);
  
  --shadow-premium: 0 10px 30px -10px rgba(0, 159, 227, 0.08), 0 1px 1px rgba(255, 255, 255, 0.8) inset;
  --shadow-glow: 0 0 25px rgba(0, 159, 227, 0.2);
  
  --grid-color: rgba(0, 159, 227, 0.025);
}

/* --- CORE RESET & UTILITIES --- */
* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
  outline: none;
}

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

body {
  font-family: var(--font-body);
  background-color: var(--bg-base);
  color: var(--color-text-main);
  line-height: 1.6;
  overflow-x: hidden;
  transition: background-color 0.5s ease, color 0.5s ease;
  position: relative;
}

/* Scrollbar */
::-webkit-scrollbar {
  width: 10px;
}
::-webkit-scrollbar-track {
  background: var(--bg-base);
}
::-webkit-scrollbar-thumb {
  background: var(--color-border);
  border-radius: 5px;
  border: 2px solid var(--bg-base);
}
::-webkit-scrollbar-thumb:hover {
  background: var(--color-primary);
}

/* Technical Tech-Grid Background Pattern */
body::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background-size: 40px 40px;
  background-image: 
    linear-gradient(to right, var(--grid-color) 1px, transparent 1px),
    linear-gradient(to bottom, var(--grid-color) 1px, transparent 1px);
  pointer-events: none;
  z-index: 0;
}

section {
  position: relative;
  padding: 100px 5% 80px 5%;
  max-width: 1400px;
  margin: 0 auto;
  z-index: 1;
}

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

h1, h2, h3, h4 {
  font-family: var(--font-heading);
  font-weight: 700;
  letter-spacing: -0.02em;
}

ul {
  list-style: none;
}

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

/* Glassmorphism Container Utility */
.glass {
  background: var(--bg-surface);
  backdrop-filter: blur(16px) saturate(120%);
  -webkit-backdrop-filter: blur(16px) saturate(120%);
  border: 1px solid var(--color-border);
  border-radius: 16px;
  box-shadow: var(--shadow-premium);
  transition: var(--transition-smooth);
}

.glass:hover {
  border-color: var(--color-border-active);
}

/* Gradient Button */
.btn-primary {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  padding: 14px 28px;
  background: var(--gradient-accent);
  color: #ffffff;
  border-radius: 30px;
  font-weight: 600;
  font-size: 0.95rem;
  border: none;
  cursor: pointer;
  box-shadow: 0 4px 15px rgba(0, 159, 227, 0.3);
  transition: var(--transition-bounce);
}

.btn-primary:hover {
  transform: translateY(-3px);
  box-shadow: 0 8px 25px rgba(0, 159, 227, 0.4), var(--shadow-glow);
}

.btn-primary:active {
  transform: translateY(-1px);
}

.btn-secondary {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  padding: 13px 27px;
  background: transparent;
  color: var(--color-text-main);
  border: 1.5px solid var(--color-border);
  border-radius: 30px;
  font-weight: 600;
  font-size: 0.95rem;
  cursor: pointer;
  transition: var(--transition-smooth);
}

.btn-secondary:hover {
  border-color: var(--color-primary);
  background: var(--color-primary-glow);
  transform: translateY(-2px);
}

/* Text Gradient */
.text-gradient {
  background-image: var(--gradient-hero);
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
}

/* Section Header */
.section-header {
  text-align: center;
  max-width: 700px;
  margin: 0 auto 60px auto;
}

.section-tag {
  display: inline-block;
  font-family: var(--font-heading);
  font-weight: 700;
  font-size: 0.8rem;
  text-transform: uppercase;
  color: var(--color-primary);
  letter-spacing: 0.15em;
  margin-bottom: 12px;
  padding: 6px 16px;
  background: var(--color-primary-glow);
  border: 1px solid var(--color-border-active);
  border-radius: 20px;
}

.section-title {
  font-size: 2.5rem;
  line-height: 1.2;
  margin-bottom: 20px;
  color: var(--color-text-main);
}

.section-subtitle {
  color: var(--color-text-muted);
  font-size: 1.1rem;
}

/* --- AMBIENT NEON GLOW NODES --- */
.ambient-glow {
  position: absolute;
  width: 40vw;
  height: 40vw;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(0, 159, 227, 0.08), transparent 70%);
  pointer-events: none;
  z-index: 0;
  filter: blur(80px);
}
.glow-1 { top: -10%; right: -10%; animation: glowPulse 12s infinite alternate ease-in-out; }
.glow-2 { bottom: 10%; left: -15%; animation: glowPulse 16s infinite alternate ease-in-out 2s; }
.glow-3 { top: 40%; right: -20%; animation: glowPulse 14s infinite alternate ease-in-out 4s; }


/* --- NAVIGATION BAR --- */
.header-nav {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  z-index: 100;
  padding: 15px 5%;
  background: var(--bg-navbar);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border-bottom: 1px solid var(--color-border);
  transition: var(--transition-smooth);
}

.header-nav.scrolled {
  padding: 10px 5%;
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.15);
}

.nav-container {
  max-width: 1300px;
  margin: 0 auto;
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.nav-logo {
  height: 46px;
  display: flex;
  align-items: center;
}
.nav-logo svg {
  height: 100%;
  width: auto;
}

.nav-menu {
  display: flex;
  align-items: center;
  gap: 35px;
}

.nav-link {
  font-size: 0.95rem;
  font-weight: 500;
  color: var(--color-text-muted);
  position: relative;
  padding: 5px 0;
}

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

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

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

.nav-actions {
  display: flex;
  align-items: center;
  gap: 20px;
}

/* Theme Switcher Button */
.theme-toggle-btn {
  background: transparent;
  border: 1px solid var(--color-border);
  width: 42px;
  height: 42px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  color: var(--color-text-main);
  transition: var(--transition-smooth);
}

.theme-toggle-btn:hover {
  border-color: var(--color-primary);
  background-color: var(--color-primary-glow);
  color: var(--color-primary);
}

.theme-toggle-btn svg {
  width: 20px;
  height: 20px;
  transition: transform 0.6s cubic-bezier(0.34, 1.56, 0.64, 1);
}

.theme-toggle-btn:hover svg {
  transform: rotate(30deg);
}

/* Hamburger Menu */
.hamburger {
  display: none;
  flex-direction: column;
  gap: 6px;
  background: transparent;
  border: none;
  cursor: pointer;
  z-index: 110;
}

.hamburger span {
  display: block;
  width: 28px;
  height: 2px;
  background-color: var(--color-text-main);
  border-radius: 2px;
  transition: var(--transition-smooth);
}


/* --- HERO SECTION --- */
.hero {
  min-height: 100vh;
  display: flex;
  align-items: center;
  padding-top: 130px;
  overflow: hidden;
}

.hero-grid {
  display: grid;
  grid-template-columns: 1.1fr 0.9fr;
  gap: 50px;
  align-items: center;
  width: 100%;
}

.hero-tagline {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 6px 14px;
  background: var(--color-primary-glow);
  border: 1px solid var(--color-border-active);
  border-radius: 20px;
  font-size: 0.85rem;
  font-weight: 600;
  color: var(--color-primary);
  margin-bottom: 25px;
}

.hero-tagline .pulse {
  display: inline-block;
  width: 8px;
  height: 8px;
  background-color: var(--color-primary);
  border-radius: 50%;
  box-shadow: 0 0 10px var(--color-primary);
  animation: glowPulse 2s infinite alternate ease-in-out;
}

.hero-title {
  font-size: 3.8rem;
  line-height: 1.1;
  font-weight: 800;
  margin-bottom: 25px;
  letter-spacing: -0.03em;
}

.hero-description {
  font-size: 1.15rem;
  color: var(--color-text-muted);
  margin-bottom: 35px;
  max-width: 580px;
}

.hero-btns {
  display: flex;
  gap: 20px;
  margin-bottom: 45px;
}

/* Partners / Trust Metrics */
.hero-partners {
  border-top: 1px solid var(--color-border);
  padding-top: 25px;
}

.hero-partners-title {
  font-size: 0.75rem;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  color: var(--color-text-muted);
  margin-bottom: 15px;
  font-weight: 600;
}

.partner-logos {
  display: flex;
  gap: 30px;
  align-items: center;
}

.partner-logo {
  font-size: 1.1rem;
  font-weight: 800;
  color: var(--color-text-muted);
  opacity: 0.5;
  letter-spacing: 0.05em;
  transition: var(--transition-fast);
  cursor: default;
}

.partner-logo:hover {
  opacity: 0.9;
  color: var(--color-primary);
}

/* Floating Code / Mockup Canvas */
.hero-visual {
  position: relative;
  display: flex;
  justify-content: center;
  align-items: center;
}

.visual-canvas {
  width: 100%;
  max-width: 500px;
  aspect-ratio: 1;
  position: relative;
  border-radius: 24px;
  display: flex;
  align-items: center;
  justify-content: center;
}

.floating-mesh {
  position: absolute;
  width: 80%;
  height: 80%;
  background: radial-gradient(circle, var(--color-primary-glow), transparent 70%);
  filter: blur(40px);
  z-index: 1;
}

.mockup-code-card {
  position: absolute;
  width: 85%;
  padding: 25px;
  z-index: 3;
  transform: rotate(-3deg);
  animation: float 6s infinite ease-in-out;
}

.code-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  border-bottom: 1px solid var(--color-border);
  padding-bottom: 12px;
  margin-bottom: 15px;
}

.dot-controls {
  display: flex;
  gap: 6px;
}
.dot-controls span {
  width: 8px;
  height: 8px;
  border-radius: 50%;
}
.dot-controls span:nth-child(1) { background-color: #ef4444; }
.dot-controls span:nth-child(2) { background-color: #f59e0b; }
.dot-controls span:nth-child(3) { background-color: #10b981; }

.code-tab {
  font-size: 0.75rem;
  color: var(--color-primary);
  font-family: monospace;
}

.code-body {
  font-family: monospace;
  font-size: 0.85rem;
  line-height: 1.5;
  color: var(--color-text-muted);
}
.code-body .keyword { color: #f43f5e; }
.code-body .string { color: #10b981; }
.code-body .property { color: #3b82f6; }
.code-body .number { color: #f59e0b; }

.mockup-app-stats {
  position: absolute;
  width: 60%;
  bottom: 0px;
  right: -20px;
  padding: 20px;
  z-index: 4;
  transform: rotate(4deg);
  animation: float 8s infinite ease-in-out reverse;
}

.stats-card-title {
  font-size: 0.85rem;
  color: var(--color-text-muted);
  margin-bottom: 10px;
}
.stats-metric {
  font-size: 1.7rem;
  font-weight: 800;
  color: var(--color-primary);
  line-height: 1.1;
  margin-bottom: 8px;
}
.stats-sparkline {
  height: 35px;
  display: flex;
  align-items: flex-end;
  gap: 3px;
  margin-top: 15px;
}
.stats-sparkline span {
  flex: 1;
  background: var(--gradient-accent);
  border-radius: 1px;
}


/* --- STATISTICS SECTIONS --- */
.stats {
  padding-top: 20px;
  padding-bottom: 50px;
}

.stats-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 30px;
  padding: 40px;
}

.stat-item {
  text-align: center;
}

.stat-number {
  font-size: 3rem;
  font-weight: 800;
  color: var(--color-primary);
  margin-bottom: 5px;
  line-height: 1.1;
  font-family: var(--font-heading);
}

.stat-label {
  font-size: 0.95rem;
  color: var(--color-text-muted);
  font-weight: 500;
}


/* --- SERVICES SECTION (TABS DESIGN) --- */
.services-tabs-container {
  display: grid;
  grid-template-columns: 0.8fr 1.2fr;
  gap: 50px;
  margin-top: 20px;
}

.services-list {
  display: flex;
  flex-direction: column;
  gap: 15px;
}

.service-tab-btn {
  display: flex;
  align-items: center;
  gap: 18px;
  padding: 24px;
  background: transparent;
  border: 1px solid var(--color-border);
  border-radius: 16px;
  text-align: left;
  cursor: pointer;
  transition: var(--transition-smooth);
  width: 100%;
}

.service-tab-btn.active {
  background: var(--bg-surface-opaque);
  border-color: var(--color-primary);
  box-shadow: 0 10px 25px -5px rgba(0, 159, 227, 0.15);
  transform: translateX(10px);
}

.tab-icon {
  width: 48px;
  height: 48px;
  border-radius: 12px;
  background: var(--color-primary-glow);
  color: var(--color-primary);
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  transition: var(--transition-smooth);
}

.service-tab-btn.active .tab-icon {
  background: var(--color-primary);
  color: #ffffff;
  box-shadow: 0 0 15px var(--color-primary);
}

.tab-btn-title {
  font-size: 1.1rem;
  font-weight: 700;
  color: var(--color-text-main);
  margin-bottom: 4px;
}

.tab-btn-desc {
  font-size: 0.85rem;
  color: var(--color-text-muted);
}

/* Service Content Display */
.service-content-display {
  padding: 40px;
  display: flex;
  flex-direction: column;
  justify-content: center;
}

.service-display-pane {
  display: none;
  animation: fadeIn 0.5s ease forwards;
}

.service-display-pane.active {
  display: block;
}

.service-display-title {
  font-size: 2.2rem;
  font-weight: 800;
  color: var(--color-text-main);
  margin-bottom: 20px;
}

.service-display-text {
  font-size: 1.05rem;
  color: var(--color-text-muted);
  margin-bottom: 30px;
}

.service-features-list {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 15px;
  margin-bottom: 35px;
}

.service-feature {
  display: flex;
  align-items: center;
  gap: 10px;
  font-size: 0.95rem;
  font-weight: 500;
}

.service-feature svg {
  color: var(--color-primary);
  flex-shrink: 0;
}

.tech-badges {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
}

.tech-badge {
  font-size: 0.75rem;
  font-weight: 600;
  padding: 6px 14px;
  background: rgba(255, 255, 255, 0.04);
  border: 1px solid var(--color-border);
  border-radius: 20px;
  color: var(--color-text-muted);
}


/* --- PRODUCTS SECTION --- */
.products-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 30px;
}

.product-card {
  padding: 30px;
  display: flex;
  flex-direction: column;
  height: 100%;
}

.product-icon {
  width: 60px;
  height: 60px;
  border-radius: 16px;
  background: var(--gradient-accent);
  color: #ffffff;
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 25px;
  box-shadow: 0 5px 15px rgba(0, 159, 227, 0.3);
}

.product-title {
  font-size: 1.4rem;
  font-weight: 800;
  margin-bottom: 12px;
}

.product-description {
  font-size: 0.95rem;
  color: var(--color-text-muted);
  margin-bottom: 25px;
  flex-grow: 1;
}

.product-features {
  margin-bottom: 30px;
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.product-feature-item {
  display: flex;
  align-items: center;
  gap: 10px;
  font-size: 0.85rem;
  color: var(--color-text-muted);
}
.product-feature-item svg {
  color: var(--color-primary);
}

.product-card .btn-secondary {
  width: 100%;
  justify-content: center;
}


/* --- TECH STACK ECOSYSTEM --- */
.tech-filters {
  display: flex;
  justify-content: center;
  gap: 15px;
  margin-bottom: 45px;
}

.tech-filter-btn {
  padding: 10px 22px;
  background: transparent;
  border: 1px solid var(--color-border);
  border-radius: 25px;
  font-weight: 600;
  color: var(--color-text-muted);
  cursor: pointer;
  transition: var(--transition-smooth);
}

.tech-filter-btn:hover,
.tech-filter-btn.active {
  border-color: var(--color-primary);
  background: var(--color-primary-glow);
  color: var(--color-primary);
}

.tech-grid {
  display: grid;
  grid-template-columns: repeat(6, 1fr);
  gap: 20px;
}

.tech-card {
  padding: 25px;
  text-align: center;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  transition: var(--transition-smooth);
}

.tech-card svg {
  width: 44px;
  height: 44px;
  margin-bottom: 12px;
  color: var(--color-text-muted);
  transition: var(--transition-smooth);
}

.tech-card span {
  font-size: 0.85rem;
  font-weight: 600;
  color: var(--color-text-muted);
}

.tech-card:hover {
  border-color: var(--color-primary-glow);
  transform: translateY(-5px);
}

.tech-card:hover svg,
.tech-card.highlight svg {
  color: var(--color-primary);
  filter: drop-shadow(0 0 8px rgba(0, 159, 227, 0.4));
}

.tech-card:hover span,
.tech-card.highlight span {
  color: var(--color-text-main);
}

.tech-card.dimmed {
  opacity: 0.25;
  transform: scale(0.95);
  pointer-events: none;
}


/* --- PROJECT ESTIMATOR SECTION --- */
.estimator-layout {
  display: grid;
  grid-template-columns: 1.1fr 0.9fr;
  gap: 50px;
  align-items: start;
}

.estimator-controls {
  padding: 40px;
}

.estimator-group {
  margin-bottom: 35px;
}

.estimator-label {
  font-size: 1.1rem;
  font-weight: 700;
  margin-bottom: 15px;
  display: flex;
  justify-content: space-between;
}

.estimator-value {
  color: var(--color-primary);
  font-weight: 800;
}

/* Service Toggles Grid */
.estimator-services-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 15px;
}

.est-service-checkbox {
  display: none;
}

.est-service-card {
  border: 1px solid var(--color-border);
  border-radius: 12px;
  padding: 18px;
  cursor: pointer;
  display: flex;
  align-items: center;
  gap: 12px;
  font-weight: 600;
  font-size: 0.95rem;
  transition: var(--transition-smooth);
}

.est-service-card svg {
  color: var(--color-text-muted);
  flex-shrink: 0;
}

.est-service-checkbox:checked + .est-service-card {
  border-color: var(--color-primary);
  background: var(--color-primary-glow);
  color: var(--color-primary);
  box-shadow: 0 0 15px rgba(0, 159, 227, 0.1);
}

.est-service-checkbox:checked + .est-service-card svg {
  color: var(--color-primary);
}

/* Custom Range Input */
.range-slider-container {
  position: relative;
  margin-top: 15px;
}

.range-slider {
  -webkit-appearance: none;
  width: 100%;
  height: 6px;
  background: var(--color-border);
  border-radius: 3px;
  outline: none;
}

.range-slider::-webkit-slider-thumb {
  -webkit-appearance: none;
  width: 20px;
  height: 20px;
  border-radius: 50%;
  background: var(--color-primary);
  box-shadow: 0 0 10px rgba(0, 159, 227, 0.5);
  cursor: pointer;
  transition: var(--transition-fast);
}

.range-slider::-webkit-slider-thumb:hover {
  transform: scale(1.2);
}

/* Toggle Switch Group */
.toggle-switch-container {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 15px 20px;
  border: 1px solid var(--color-border);
  border-radius: 12px;
  background: rgba(255, 255, 255, 0.01);
}

.switch-desc {
  font-weight: 600;
  font-size: 0.95rem;
}

.switch {
  position: relative;
  display: inline-block;
  width: 50px;
  height: 26px;
}

.switch input {
  opacity: 0;
  width: 0;
  height: 0;
}

.slider {
  position: absolute;
  cursor: pointer;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background-color: var(--color-border);
  transition: .4s;
  border-radius: 34px;
}

.slider:before {
  position: absolute;
  content: "";
  height: 18px;
  width: 18px;
  left: 4px;
  bottom: 4px;
  background-color: var(--color-text-main);
  transition: .4s;
  border-radius: 50%;
}

input:checked + .slider {
  background-color: var(--color-primary);
}

input:checked + .slider:before {
  transform: translateX(24px);
}

/* Estimator Results Card */
.estimator-result-card {
  padding: 40px;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  min-height: 400px;
  position: sticky;
  top: 120px;
}

.result-header {
  border-bottom: 1px solid var(--color-border);
  padding-bottom: 25px;
  margin-bottom: 25px;
}

.result-title {
  font-size: 1.15rem;
  color: var(--color-text-muted);
  margin-bottom: 8px;
}

.result-price {
  font-size: 3.5rem;
  font-weight: 800;
  color: var(--color-primary);
  line-height: 1.1;
  display: flex;
  align-items: baseline;
}

.result-price span {
  font-size: 1rem;
  color: var(--color-text-muted);
  font-weight: 500;
  margin-left: 5px;
}

.result-details {
  margin-bottom: 30px;
}

.result-detail-row {
  display: flex;
  justify-content: space-between;
  margin-bottom: 12px;
  font-size: 0.95rem;
  color: var(--color-text-muted);
}

.result-detail-row strong {
  color: var(--color-text-main);
}

.estimator-result-card .btn-primary {
  width: 100%;
  justify-content: center;
}


/* --- TESTIMONIALS --- */
.testimonials-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 30px;
}

.testimonial-card {
  padding: 30px;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
}

.testimonial-text {
  font-size: 1rem;
  color: var(--color-text-muted);
  font-style: italic;
  line-height: 1.7;
  margin-bottom: 25px;
}

.testimonial-author {
  display: flex;
  align-items: center;
  gap: 15px;
}

.author-avatar {
  width: 46px;
  height: 46px;
  border-radius: 50%;
  background: var(--color-primary-glow);
  border: 1px solid var(--color-primary);
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: 700;
  color: var(--color-primary);
}

.author-info h4 {
  font-size: 0.95rem;
  font-weight: 700;
  color: var(--color-text-main);
}
.author-info span {
  font-size: 0.8rem;
  color: var(--color-text-muted);
}


/* --- CONTACT & CONSULTATION --- */
.contact-grid {
  display: grid;
  grid-template-columns: 0.8fr 1.2fr;
  gap: 50px;
}

.contact-info {
  display: flex;
  flex-direction: column;
  justify-content: space-between;
}

.contact-methods {
  display: flex;
  flex-direction: column;
  gap: 25px;
  margin-bottom: 40px;
}

.contact-method-card {
  display: flex;
  align-items: flex-start;
  gap: 20px;
}

.method-icon {
  width: 44px;
  height: 44px;
  border-radius: 12px;
  background: var(--color-primary-glow);
  color: var(--color-primary);
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}

.method-details h3 {
  font-size: 1rem;
  font-weight: 700;
  margin-bottom: 5px;
}

.method-details p {
  font-size: 0.9rem;
  color: var(--color-text-muted);
}

/* Contact Form */
.contact-form-container {
  padding: 40px;
}

.contact-form-title {
  font-size: 1.6rem;
  font-weight: 800;
  margin-bottom: 8px;
}

.contact-form-subtitle {
  font-size: 0.95rem;
  color: var(--color-text-muted);
  margin-bottom: 30px;
}

.form-group {
  margin-bottom: 20px;
  position: relative;
}

.form-input {
  width: 100%;
  padding: 14px 20px;
  background: rgba(255, 255, 255, 0.02);
  border: 1px solid var(--color-border);
  border-radius: 12px;
  color: var(--color-text-main);
  font-family: var(--font-body);
  font-size: 0.95rem;
  transition: var(--transition-smooth);
}

.form-input:focus {
  border-color: var(--color-primary);
  background: rgba(0, 159, 227, 0.02);
  box-shadow: 0 0 10px rgba(0, 159, 227, 0.1);
}

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

.form-input::placeholder {
  color: var(--color-text-muted);
  opacity: 0.6;
}

.contact-form-container .btn-primary {
  width: 100%;
  justify-content: center;
}

/* Confetti success screen */
.form-success-overlay {
  display: none;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  text-align: center;
  padding: 40px;
  animation: fadeIn 0.5s ease forwards;
}

.form-success-overlay.active {
  display: flex;
}

.success-icon {
  width: 70px;
  height: 70px;
  border-radius: 50%;
  background: rgba(16, 185, 129, 0.1);
  color: #10b981;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 2rem;
  margin-bottom: 20px;
  box-shadow: 0 0 20px rgba(16, 185, 129, 0.2);
}


/* --- FOOTER --- */
.footer {
  background: var(--bg-surface-opaque);
  border-top: 1px solid var(--color-border);
  padding: 80px 5% 40px 5%;
}

.footer-grid {
  max-width: 1300px;
  margin: 0 auto 50px auto;
  display: grid;
  grid-template-columns: 1.2fr 0.8fr 0.8fr 1.2fr;
  gap: 50px;
}

.footer-logo {
  height: 48px;
  margin-bottom: 20px;
}
.footer-logo svg {
  height: 100%;
}

.footer-about-text {
  font-size: 0.9rem;
  color: var(--color-text-muted);
  margin-bottom: 20px;
}

.footer-socials {
  display: flex;
  gap: 15px;
}

.social-link {
  width: 36px;
  height: 36px;
  border-radius: 50%;
  background: var(--color-border);
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--color-text-muted);
  transition: var(--transition-smooth);
}

.social-link:hover {
  background: var(--color-primary);
  color: #ffffff;
  transform: translateY(-3px);
  box-shadow: 0 0 10px var(--color-primary);
}

.footer-title {
  font-size: 1rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  margin-bottom: 20px;
}

.footer-links {
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.footer-links a {
  font-size: 0.9rem;
  color: var(--color-text-muted);
}

.footer-links a:hover {
  color: var(--color-primary);
  padding-left: 5px;
}

.footer-newsletter-text {
  font-size: 0.9rem;
  color: var(--color-text-muted);
  margin-bottom: 20px;
}

.newsletter-form {
  display: flex;
  gap: 10px;
}

.newsletter-form .form-input {
  padding: 10px 15px;
}

.newsletter-form .btn-primary {
  padding: 10px 20px;
  border-radius: 12px;
}

.footer-bottom {
  max-width: 1300px;
  margin: 0 auto;
  border-top: 1px solid var(--color-border);
  padding-top: 30px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  font-size: 0.85rem;
  color: var(--color-text-muted);
}


/* --- ANIMATION KEYFRAMES & INTERACTION TRIGGERS --- */

/* Scroll Reveal Fade-Up Effect */
.reveal {
  opacity: 0;
  transform: translateY(40px);
  transition: opacity 0.8s cubic-bezier(0.16, 1, 0.3, 1), transform 0.8s cubic-bezier(0.16, 1, 0.3, 1);
}

.reveal.revealed {
  opacity: 1;
  transform: translateY(0);
}

/* Delays for children elements */
.reveal-delay-1 { transition-delay: 0.1s; }
.reveal-delay-2 { transition-delay: 0.2s; }
.reveal-delay-3 { transition-delay: 0.3s; }
.reveal-delay-4 { transition-delay: 0.4s; }

@keyframes glowPulse {
  0% {
    transform: scale(0.95);
    opacity: 0.8;
    filter: drop-shadow(0 0 10px rgba(0, 159, 227, 0.2));
  }
  100% {
    transform: scale(1.05);
    opacity: 1;
    filter: drop-shadow(0 0 25px rgba(0, 159, 227, 0.5));
  }
}

@keyframes float {
  0% {
    transform: translateY(0px) rotate(-3deg);
  }
  50% {
    transform: translateY(-15px) rotate(-1deg);
  }
  100% {
    transform: translateY(0px) rotate(-3deg);
  }
}

@keyframes floatReverse {
  0% {
    transform: translateY(0px) rotate(4deg);
  }
  50% {
    transform: translateY(12px) rotate(2deg);
  }
  100% {
    transform: translateY(0px) rotate(4deg);
  }
}

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


/* --- RESPONSIVE MEDIA QUERIES --- */

/* Laptops & Desktops smaller screens */
@media (max-width: 1024px) {
  .hero-title {
    font-size: 3rem;
  }
  .services-tabs-container {
    grid-template-columns: 1fr;
    gap: 30px;
  }
  .service-tab-btn.active {
    transform: none;
  }
  .estimator-layout {
    grid-template-columns: 1fr;
  }
  .estimator-result-card {
    position: static;
    min-height: auto;
  }
  .footer-grid {
    grid-template-columns: repeat(2, 1fr);
  }
}

/* Tablets (Portrait) */
@media (max-width: 768px) {
  section {
    padding: 60px 4% 50px 4%;
  }
  
  .hamburger {
    display: flex;
  }
  
  .nav-menu {
    position: fixed;
    top: 0;
    right: -100%;
    width: 280px;
    height: 100vh;
    background: var(--bg-surface-opaque);
    backdrop-filter: blur(20px);
    border-left: 1px solid var(--color-border);
    flex-direction: column;
    align-items: flex-start;
    padding: 100px 40px;
    gap: 30px;
    z-index: 105;
    transition: var(--transition-smooth);
  }
  
  .nav-menu.open {
    right: 0;
  }
  
  .nav-actions {
    margin-right: 45px;
  }
  
  .hero-grid {
    grid-template-columns: 1fr;
    text-align: center;
    gap: 40px;
  }
  
  .hero-description {
    margin-left: auto;
    margin-right: auto;
  }
  
  .hero-btns {
    justify-content: center;
  }
  
  .partner-logos {
    justify-content: center;
  }
  
  .stats-grid {
    grid-template-columns: repeat(2, 1fr);
    gap: 20px;
  }
  
  .products-grid {
    grid-template-columns: 1fr;
  }
  
  .tech-grid {
    grid-template-columns: repeat(3, 1fr);
  }
  
  .contact-grid {
    grid-template-columns: 1fr;
  }
}

/* Mobile Screens */
@media (max-width: 480px) {
  .hero-title {
    font-size: 2.2rem;
  }
  .hero-btns {
    flex-direction: column;
    width: 100%;
  }
  .hero-btns button,
  .hero-btns a {
    width: 100%;
    justify-content: center;
  }
  .stats-grid {
    grid-template-columns: 1fr;
    padding: 20px;
  }
  .tech-grid {
    grid-template-columns: repeat(2, 1fr);
  }
  .estimator-services-grid {
    grid-template-columns: 1fr;
  }
  .footer-grid {
    grid-template-columns: 1fr;
    gap: 30px;
  }
  .footer-bottom {
    flex-direction: column;
    text-align: center;
    gap: 15px;
  }
}
