/* ----------------------------------------------------
   SPMAI INFOTECH Design System & Premium CSS Architecture
   ---------------------------------------------------- */

:root {
  /* Harmonious Dark-Space Color Palette (HSL) */
  --color-bg-darker: hsl(222, 47%, 6%);
  --color-bg-dark: hsl(222, 47%, 9%);
  --color-bg-light: hsl(223, 40%, 14%);
  --color-accent-dark: hsl(222, 47%, 12%);
  
  --color-cyan: hsl(180, 100%, 50%);
  --color-cyan-glow: hsla(180, 100%, 50%, 0.15);
  --color-purple: hsl(263, 90%, 60%);
  --color-purple-glow: hsla(263, 90%, 60%, 0.15);
  --color-emerald: hsl(150, 80%, 50%);
  --color-emerald-glow: hsla(150, 80%, 50%, 0.15);
  
  --color-text-main: hsl(210, 40%, 98%);
  --color-text-sub: hsl(215, 20%, 70%);
  --color-text-dim: hsl(215, 15%, 50%);
  
  --border-glass: 1px solid rgba(255, 255, 255, 0.08);
  --bg-glass: rgba(10, 15, 30, 0.55);
  
  --font-heading: 'Outfit', sans-serif;
  --font-body: 'Inter', sans-serif;
  
  --transition-smooth: all 0.3s cubic-bezier(0.25, 0.8, 0.25, 1);
  --transition-slow: all 0.6s cubic-bezier(0.25, 0.8, 0.25, 1);
}

/* Base Styles & Resets */
*, *::before, *::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

html {
  scroll-behavior: smooth;
  font-size: 16px;
  background-color: var(--color-bg-darker);
  color: var(--color-text-main);
  font-family: var(--font-body);
  overflow-x: hidden;
}

body {
  line-height: 1.6;
  position: relative;
  overflow-x: hidden;
  min-height: 100vh;
}

/* Ambient Ambient Glow Layers */
.ambient-glow {
  position: absolute;
  border-radius: 50%;
  filter: blur(140px);
  z-index: -1;
  pointer-events: none;
  opacity: 0.25;
  transition: var(--transition-slow);
}

.glow-1 {
  width: 500px;
  height: 500px;
  top: -100px;
  right: -100px;
  background: radial-gradient(circle, var(--color-cyan) 0%, transparent 70%);
}

.glow-2 {
  width: 600px;
  height: 600px;
  top: 40%;
  left: -200px;
  background: radial-gradient(circle, var(--color-purple) 0%, transparent 70%);
}

.glow-3 {
  width: 450px;
  height: 450px;
  bottom: 10%;
  right: -50px;
  background: radial-gradient(circle, var(--color-emerald) 0%, transparent 70%);
}

/* Typography Utilities */
h1, h2, h3, h4, h5, h6 {
  font-family: var(--font-heading);
  font-weight: 600;
  line-height: 1.25;
}

.text-gradient {
  background: linear-gradient(135deg, var(--color-cyan) 0%, var(--color-purple) 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

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

/* Buttons & Interactive Elements */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 0.8rem 1.6rem;
  border-radius: 8px;
  font-family: var(--font-heading);
  font-weight: 500;
  cursor: pointer;
  text-decoration: none;
  transition: var(--transition-smooth);
  font-size: 0.95rem;
  border: none;
}

.btn-primary {
  background: linear-gradient(135deg, var(--color-cyan) 0%, var(--color-purple) 100%);
  color: hsl(222, 47%, 6%);
  font-weight: 600;
  box-shadow: 0 4px 20px rgba(0, 242, 254, 0.25);
}

.btn-primary:hover {
  transform: translateY(-2px);
  box-shadow: 0 6px 25px rgba(157, 78, 221, 0.4);
  color: white;
}

.btn-secondary {
  background: rgba(255, 255, 255, 0.08);
  border: var(--border-glass);
  color: var(--color-text-main);
  backdrop-filter: blur(8px);
}

.btn-secondary:hover {
  background: rgba(255, 255, 255, 0.15);
  transform: translateY(-2px);
}

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

.btn-outline:hover {
  background: var(--color-cyan-glow);
  transform: translateY(-2px);
  box-shadow: 0 0 15px var(--color-cyan-glow);
}

.w-full { width: 100%; }

.badge {
  display: inline-block;
  padding: 0.35rem 0.85rem;
  border-radius: 50px;
  background: rgba(0, 242, 254, 0.06);
  border: 1px solid rgba(0, 242, 254, 0.2);
  color: var(--color-cyan);
  font-size: 0.8rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  margin-bottom: 1.5rem;
}

/* Glassmorphism Styles */
.glass {
  background: var(--bg-glass);
  backdrop-filter: blur(12px) saturate(180%);
  -webkit-backdrop-filter: blur(12px) saturate(180%);
  border: var(--border-glass);
  box-shadow: 0 8px 32px 0 rgba(0, 0, 0, 0.37);
  transition: var(--transition-smooth);
}

/* ----------------------------------------------------
   Header & Shrinking Navigation
   ---------------------------------------------------- */
header {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  height: 90px;
  z-index: 1000;
  display: flex;
  align-items: center;
  transition: var(--transition-smooth); /* Serves as smooth fallback base */
  border-bottom: 1px solid transparent;
}

.header-container {
  width: 90%;
  max-width: 1200px;
  margin: 0 auto;
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.logo {
  display: flex;
  align-items: center;
  gap: 12px;
  text-decoration: none;
}

.logo-img {
  height: 44px;
  width: 44px;
  object-fit: contain;
  border-radius: 8px;
  border: 1px solid rgba(255,255,255,0.1);
  background: rgba(0, 0, 0, 0.2);
  padding: 2px;
}

.logo-text {
  font-family: var(--font-heading);
  font-weight: 700;
  font-size: 1.4rem;
  color: var(--color-text-main);
  letter-spacing: -0.02em;
}

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

.nav-link {
  text-decoration: none;
  color: var(--color-text-sub);
  font-weight: 500;
  font-size: 0.95rem;
  transition: var(--transition-smooth);
}

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

.mobile-toggle {
  display: none;
  background: none;
  border: none;
  cursor: pointer;
  flex-direction: column;
  gap: 6px;
}

.mobile-toggle span {
  display: block;
  width: 25px;
  height: 2px;
  background: var(--color-text-main);
  transition: var(--transition-smooth);
}

/* Scroll-driven shrink keyframes */
@keyframes shrink {
  to {
    height: 65px;
    background: rgba(6, 10, 22, 0.85);
    backdrop-filter: blur(16px);
    border-bottom: 1px solid rgba(255, 255, 255, 0.08);
    box-shadow: 0 4px 30px rgba(0, 0, 0, 0.4);
  }
}

/* Target browsers supporting native Scroll-driven animations */
@supports ((animation-timeline: scroll()) and (animation-range: 0% 100%)) {
  header {
    animation: shrink auto linear both;
    animation-timeline: scroll(block root);
    animation-range: 0px 150px;
  }
}

/* ----------------------------------------------------
   Hero Section
   ---------------------------------------------------- */
.hero {
  padding: 160px 0 100px 0;
  min-height: 100vh;
  display: flex;
  align-items: center;
}

.hero-container {
  width: 90%;
  max-width: 1200px;
  margin: 0 auto;
  display: grid;
  grid-template-columns: 1.2fr 0.8fr;
  gap: 60px;
  align-items: center;
}

.hero-content {
  max-width: 680px;
}

.hero-title {
  font-size: 3.5rem;
  font-weight: 800;
  letter-spacing: -0.03em;
  margin-bottom: 1.5rem;
}

.hero-subtitle {
  font-size: 1.15rem;
  color: var(--color-text-sub);
  margin-bottom: 2.5rem;
  line-height: 1.7;
}

.hero-ctas {
  display: flex;
  gap: 20px;
}

/* Hero visual & custom banner image graphics */
.hero-visual {
  display: flex;
  justify-content: center;
  position: relative;
}

.visual-wrapper {
  position: relative;
  width: 100%;
  max-width: 480px;
  display: flex;
  align-items: center;
  justify-content: center;
}

.visual-circle {
  position: absolute;
  border-radius: 50%;
  border: 1px solid rgba(255, 255, 255, 0.04);
  pointer-events: none;
}

.circle-1 {
  width: 110%;
  height: 110%;
  animation: rotateClockwise 25s linear infinite;
  border-image: linear-gradient(to right, rgba(0,242,254,0.1), transparent) 1;
}

.circle-2 {
  width: 85%;
  height: 85%;
  animation: rotateCounter 20s linear infinite;
  border-image: linear-gradient(to left, rgba(157,78,221,0.1), transparent) 1;
}

.hero-interactive-card {
  width: 100%;
  height: 280px;
  border-radius: 16px;
  overflow: hidden;
  z-index: 10;
  box-shadow: 0 20px 50px rgba(0, 0, 0, 0.5);
  position: relative;
}

.banner-img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center;
  display: block;
}

.banner-overlay {
  position: absolute;
  bottom: 16px;
  left: 16px;
  background: rgba(10, 15, 30, 0.75);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  border: var(--border-glass);
  padding: 6px 14px;
  border-radius: 8px;
  display: flex;
  align-items: center;
  gap: 10px;
  font-family: var(--font-heading);
  font-weight: 500;
  font-size: 0.75rem;
  color: var(--color-text-main);
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.3);
}

.pulse-dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: var(--color-cyan);
  box-shadow: 0 0 8px var(--color-cyan);
  animation: pulseCyan 1.8s infinite;
}

@keyframes pulseCyan {
  0% { transform: scale(0.9); opacity: 0.5; }
  50% { transform: scale(1.1); opacity: 1; }
  100% { transform: scale(0.9); opacity: 0.5; }
}

/* Animations Definitions */
@keyframes rotateClockwise {
  from { transform: rotate(0deg); }
  to { transform: rotate(360deg); }
}

@keyframes rotateCounter {
  from { transform: rotate(360deg); }
  to { transform: rotate(0deg); }
}

/* ----------------------------------------------------
   Services Grid
   ---------------------------------------------------- */
.services {
  padding: 100px 0;
  position: relative;
}

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

.section-header {
  max-width: 650px;
  margin: 0 auto 60px auto;
}

.section-title {
  font-size: 2.5rem;
  font-weight: 700;
  letter-spacing: -0.02em;
  margin-bottom: 1rem;
}

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

.services-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(340px, 1fr));
  gap: 30px;
}

.service-card {
  padding: 40px;
  border-radius: 16px;
  height: 100%;
  display: flex;
  flex-direction: column;
  position: relative;
  overflow: hidden;
}

.service-card::after {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: radial-gradient(circle 120px at var(--mouse-x, -999px) var(--mouse-y, -999px), rgba(0, 242, 254, 0.08), transparent 70%);
  pointer-events: none;
}

.service-card:hover {
  transform: translateY(-8px);
  border-color: rgba(0, 242, 254, 0.25);
  box-shadow: 0 12px 40px rgba(0, 242, 254, 0.05);
}

.service-icon-wrapper {
  width: 56px;
  height: 56px;
  border-radius: 12px;
  background: rgba(255, 255, 255, 0.03);
  border: var(--border-glass);
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 24px;
  color: var(--color-cyan);
}

.service-card:hover .service-icon-wrapper {
  background: var(--color-cyan-glow);
  color: white;
  box-shadow: 0 0 15px var(--color-cyan-glow);
}

.service-title {
  font-size: 1.4rem;
  margin-bottom: 1rem;
}

.service-desc {
  color: var(--color-text-sub);
  font-size: 0.95rem;
  margin-bottom: 1.5rem;
  line-height: 1.6;
  flex-grow: 1;
}

.service-bullets {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 8px;
  border-top: 1px solid rgba(255, 255, 255, 0.05);
  padding-top: 16px;
}

.service-bullets li {
  font-size: 0.85rem;
  color: var(--color-text-dim);
  display: flex;
  align-items: center;
  gap: 8px;
}

.service-bullets li::before {
  content: '✦';
  color: var(--color-purple);
  font-size: 0.75rem;
}

/* ----------------------------------------------------
   Interactive AI Agent Lab
   ---------------------------------------------------- */
.simulator-section {
  padding: 100px 0;
  background: rgba(0, 0, 0, 0.2);
}

.simulator-wrapper {
  display: grid;
  grid-template-columns: 0.9fr 1.1fr;
  border-radius: 20px;
  overflow: hidden;
  height: auto;
  min-height: 550px;
}

/* Sidebar navigation */
.simulator-sidebar {
  padding: 40px;
  border-right: var(--border-glass);
  display: flex;
  flex-direction: column;
}

/* Robot Mascot Avatar Frame */
.robot-frame-container {
  width: 100%;
  max-width: 200px;
  margin: 0 auto 30px auto;
  border-radius: 16px;
  overflow: hidden;
  position: relative;
  border: var(--border-glass);
  aspect-ratio: 257/375;
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.4);
  background: rgba(0, 0, 0, 0.3);
}

.robot-avatar-img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center;
  transition: var(--transition-slow);
  display: block;
}

.robot-frame-container:hover .robot-avatar-img {
  transform: scale(1.05);
}

/* Pulsing border animation instead of rotation to prevent non-square warping */
@keyframes borderPulse {
  0% { border-color: rgba(0, 242, 254, 0.25); box-shadow: inset 0 0 5px rgba(0, 242, 254, 0.1); }
  50% { border-color: rgba(0, 242, 254, 0.7); box-shadow: inset 0 0 15px rgba(0, 242, 254, 0.3); }
  100% { border-color: rgba(0, 242, 254, 0.25); box-shadow: inset 0 0 5px rgba(0, 242, 254, 0.1); }
}

.robot-glow-border {
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  pointer-events: none;
  border: 1.5px solid rgba(0, 242, 254, 0.3);
  border-radius: 16px;
  animation: borderPulse 3s ease-in-out infinite;
}

.robot-status-tag {
  position: absolute;
  bottom: 8px;
  left: 50%;
  transform: translateX(-50%);
  background: rgba(10, 15, 30, 0.9);
  backdrop-filter: blur(6px);
  -webkit-backdrop-filter: blur(6px);
  border: 1px solid rgba(0, 242, 254, 0.3);
  color: var(--color-cyan);
  padding: 3px 8px;
  font-size: 0.65rem;
  font-weight: 700;
  border-radius: 4px;
  white-space: nowrap;
  letter-spacing: 0.05em;
}

.sidebar-title {
  font-size: 0.85rem;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  color: var(--color-text-dim);
  margin-bottom: 20px;
  font-family: var(--font-heading);
}

.agent-select-btn {
  background: transparent;
  border: var(--border-glass);
  border-radius: 12px;
  padding: 16px;
  display: flex;
  align-items: center;
  gap: 16px;
  text-align: left;
  cursor: pointer;
  color: var(--color-text-sub);
  transition: var(--transition-smooth);
  margin-bottom: 12px;
  width: 100%;
}

.agent-select-btn:hover {
  background: rgba(255, 255, 255, 0.03);
  color: var(--color-text-main);
}

.agent-select-btn.active {
  background: rgba(0, 242, 254, 0.05);
  border-color: rgba(0, 242, 254, 0.3);
  color: var(--color-text-main);
}

.btn-icon {
  font-size: 1.5rem;
  width: 44px;
  height: 44px;
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.03);
  display: flex;
  align-items: center;
  justify-content: center;
}

.agent-select-btn.active .btn-icon {
  background: var(--color-cyan-glow);
}

.btn-details {
  display: flex;
  flex-direction: column;
}

.agent-name {
  font-family: var(--font-heading);
  font-weight: 600;
  font-size: 0.95rem;
}

.agent-type {
  font-size: 0.75rem;
  color: var(--color-text-dim);
}

.run-control {
  margin-top: auto;
  padding-top: 20px;
}

/* Console window styles */
.simulator-console {
  background: #030712;
  display: flex;
  flex-direction: column;
  height: 100%;
}

.console-header {
  padding: 16px 24px;
  background: #0b0f19;
  border-bottom: 1px solid rgba(255, 255, 255, 0.04);
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.console-dots {
  display: flex;
  gap: 6px;
}

.console-title {
  font-family: monospace;
  font-size: 0.8rem;
  color: var(--color-text-dim);
}

.console-status {
  font-size: 0.75rem;
  color: var(--color-text-dim);
  font-family: var(--font-heading);
  display: flex;
  align-items: center;
  gap: 8px;
}

.pulse-dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: var(--color-emerald);
  box-shadow: 0 0 8px var(--color-emerald);
  animation: pulseEmerald 1.8s infinite;
}

@keyframes pulseEmerald {
  0% { transform: scale(0.9); opacity: 0.5; }
  50% { transform: scale(1.1); opacity: 1; }
  100% { transform: scale(0.9); opacity: 0.5; }
}

.console-body {
  padding: 24px;
  flex-grow: 1;
  overflow-y: auto;
  font-family: 'Courier New', Courier, monospace;
  font-size: 0.85rem;
  line-height: 1.5;
  display: flex;
  flex-direction: column;
  gap: 12px;
  min-height: 350px;
}

/* Console log themes */
.log-line {
  opacity: 0;
  transform: translateY(8px);
  animation: logReveal 0.3s ease-out forwards;
}

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

.log-line.system { color: #6b7280; }
.log-line.thinking { color: #a78bfa; font-weight: 500; }
.log-line.tool { color: #67e8f9; }
.log-line.response { color: #f472b6; }
.log-line.success { color: #34d399; font-weight: bold; }
.log-line.output {
  color: var(--color-text-main);
  background: rgba(255,255,255,0.03);
  padding: 12px;
  border-radius: 8px;
  border-left: 3px solid var(--color-cyan);
  margin-top: 6px;
}

/* Custom Scrollbar for Terminal */
.console-body::-webkit-scrollbar {
  width: 6px;
}
.console-body::-webkit-scrollbar-track {
  background: #030712;
}
.console-body::-webkit-scrollbar-thumb {
  background: rgba(255, 255, 255, 0.1);
  border-radius: 10px;
}

/* ----------------------------------------------------
   Tech Stack Tabs
   ---------------------------------------------------- */
.tech-stack {
  padding: 100px 0;
}

.tab-container {
  max-width: 800px;
  margin: 0 auto;
}

.tabs {
  display: flex;
  justify-content: center;
  gap: 16px;
  margin-bottom: 40px;
  border-bottom: 1px solid rgba(255, 255, 255, 0.05);
  padding-bottom: 12px;
}

.tab-btn {
  background: transparent;
  border: none;
  font-family: var(--font-heading);
  font-weight: 500;
  font-size: 1.1rem;
  color: var(--color-text-dim);
  cursor: pointer;
  padding: 8px 16px;
  position: relative;
  transition: var(--transition-smooth);
}

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

.tab-btn.active {
  color: var(--color-cyan);
}

.tab-btn.active::after {
  content: '';
  position: absolute;
  bottom: -13px;
  left: 0;
  right: 0;
  height: 2px;
  background: linear-gradient(to right, var(--color-cyan), var(--color-purple));
}

.tab-content {
  position: relative;
}

.tab-panel {
  display: none;
  animation: panelFadeIn 0.5s ease;
}

.tab-panel.active {
  display: block;
}

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

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

.tech-item {
  background: rgba(255, 255, 255, 0.02);
  border: var(--border-glass);
  border-radius: 12px;
  padding: 20px;
  display: flex;
  align-items: center;
  gap: 16px;
  font-size: 0.95rem;
  transition: var(--transition-smooth);
}

.tech-item:hover {
  background: rgba(255, 255, 255, 0.05);
  border-color: rgba(255, 255, 255, 0.15);
  transform: scale(1.02);
}

.tech-icon {
  font-size: 1.4rem;
}

/* ----------------------------------------------------
   Impact & Metrics (Stats)
   ---------------------------------------------------- */
.stats {
  padding: 80px 0;
  background: rgba(10, 15, 30, 0.4);
  border-top: var(--border-glass);
  border-bottom: var(--border-glass);
}

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

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

.stat-number {
  font-family: var(--font-heading);
  font-weight: 800;
  font-size: 3.2rem;
  background: linear-gradient(135deg, var(--color-cyan) 0%, var(--color-emerald) 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  line-height: 1.1;
  margin-bottom: 8px;
}

.stat-label {
  font-size: 0.95rem;
  color: var(--color-text-sub);
  font-weight: 500;
  margin-bottom: 12px;
}

.stat-bar {
  height: 4px;
  background: rgba(255, 255, 255, 0.05);
  border-radius: 10px;
  overflow: hidden;
  max-width: 140px;
  margin: 0 auto;
}

.stat-progress {
  height: 100%;
  background: var(--color-cyan);
  transition: width 1.5s cubic-bezier(0.1, 0.8, 0.1, 1);
}

/* ----------------------------------------------------
   Contact Section & Project Form
   ---------------------------------------------------- */
.contact {
  padding: 100px 0;
}

.contact-grid {
  display: grid;
  grid-template-columns: 0.9fr 1.1fr;
  gap: 60px;
  align-items: center;
}

.contact-lead {
  font-size: 1.1rem;
  color: var(--color-text-sub);
  margin-bottom: 40px;
  line-height: 1.6;
}

.info-blocks {
  display: flex;
  flex-direction: column;
  gap: 24px;
}

.info-block {
  display: flex;
  align-items: flex-start;
  gap: 16px;
}

.info-icon {
  width: 44px;
  height: 44px;
  border-radius: 8px;
  background: var(--color-accent-dark);
  border: var(--border-glass);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.2rem;
}

.info-details h5 {
  font-size: 0.95rem;
  color: var(--color-text-dim);
  margin-bottom: 4px;
}

.info-details p {
  font-size: 1.05rem;
  color: var(--color-text-main);
  font-weight: 500;
}

/* Form Styles */
.contact-form-card {
  padding: 40px;
  border-radius: 20px;
}

.form-title {
  font-size: 1.3rem;
  margin-bottom: 24px;
}

.input-group {
  position: relative;
  margin-bottom: 24px;
}

.input-group input,
.input-group select,
.input-group textarea {
  width: 100%;
  padding: 14px 16px;
  background: rgba(255, 255, 255, 0.02);
  border: var(--border-glass);
  border-radius: 8px;
  outline: none;
  font-family: var(--font-body);
  font-size: 0.95rem;
  color: var(--color-text-main);
  transition: var(--transition-smooth);
}

.input-group select {
  cursor: pointer;
  appearance: none;
}

.input-group input:focus,
.input-group textarea:focus,
.input-group select:focus {
  border-color: var(--color-cyan);
  background: rgba(255, 255, 255, 0.04);
  box-shadow: 0 0 10px var(--color-cyan-glow);
}

.input-group label {
  position: absolute;
  left: 16px;
  top: 14px;
  color: var(--color-text-dim);
  transition: var(--transition-smooth);
  pointer-events: none;
  font-size: 0.95rem;
}

/* Floating Label Animation */
.input-group input:focus ~ label,
.input-group input:not(:placeholder-shown) ~ label,
.input-group textarea:focus ~ label,
.input-group textarea:not(:placeholder-shown) ~ label {
  top: -10px;
  left: 12px;
  font-size: 0.75rem;
  color: var(--color-cyan);
  background: var(--color-bg-dark);
  padding: 0 6px;
  border-radius: 4px;
  border: 1px solid rgba(255,255,255,0.05);
}

/* Modern Validation highlight using user-valid */
.input-group input:user-valid,
.input-group textarea:user-valid {
  border-color: var(--color-emerald);
}

/* ----------------------------------------------------
   Footer
   ---------------------------------------------------- */
.footer {
  padding: 40px 0;
  border-top: var(--border-glass);
  background: var(--color-bg-darker);
}

.footer-container {
  width: 90%;
  max-width: 1200px;
  margin: 0 auto;
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.footer-brand {
  display: flex;
  align-items: center;
  gap: 12px;
}

.footer-logo-img {
  height: 34px;
  width: 34px;
  object-fit: contain;
  border-radius: 6px;
  border: 1px solid rgba(255,255,255,0.1);
  background: rgba(0, 0, 0, 0.2);
  padding: 2px;
}

.brand-name {
  font-family: var(--font-heading);
  font-weight: 600;
  font-size: 1.15rem;
}

.copyright {
  font-size: 0.85rem;
  color: var(--color-text-dim);
}

/* ----------------------------------------------------
   Interactive Dialog Modal
   ---------------------------------------------------- */
.dialog-modal {
  position: fixed;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  border-radius: 20px;
  padding: 40px;
  max-width: 480px;
  width: 90%;
  text-align: center;
  box-shadow: 0 25px 60px rgba(0, 0, 0, 0.7);
  outline: none;
}

.dialog-modal::backdrop {
  background: rgba(6, 10, 22, 0.85);
  backdrop-filter: blur(8px);
}

.dialog-content {
  display: flex;
  flex-direction: column;
  align-items: center;
}

.success-icon {
  width: 64px;
  height: 64px;
  border-radius: 50%;
  background: rgba(52, 211, 153, 0.1);
  border: 2px solid var(--color-emerald);
  color: var(--color-emerald);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 2rem;
  margin-bottom: 24px;
}

.dialog-modal h3 {
  font-size: 1.8rem;
  margin-bottom: 1rem;
}

.dialog-modal p {
  color: var(--color-text-sub);
  font-size: 0.95rem;
  line-height: 1.6;
  margin-bottom: 28px;
}

/* ----------------------------------------------------
   Responsive Layout Media Queries
   ---------------------------------------------------- */

@media (max-width: 1024px) {
  .hero-container,
  .contact-grid {
    grid-template-columns: 1fr;
    gap: 40px;
  }
  
  .hero {
    padding-top: 130px;
  }
  
  .hero-visual {
    margin-top: 20px;
  }
  
  .stats-grid {
    grid-template-columns: repeat(2, 1fr);
    gap: 30px;
  }
}

@media (max-width: 768px) {
  .hero-title {
    font-size: 2.6rem;
  }
  
  .section-title {
    font-size: 2rem;
  }
  
  header {
    height: 70px;
  }
  
  /* Mobile Navigation Menu Toggle */
  .mobile-toggle {
    display: flex;
  }
  
  .nav-menu {
    position: fixed;
    top: 70px;
    left: 0;
    right: 0;
    height: calc(100vh - 70px);
    background: rgba(6, 10, 22, 0.95);
    backdrop-filter: blur(20px);
    flex-direction: column;
    padding: 60px 40px;
    gap: 40px;
    transform: translateX(100%);
    transition: transform 0.4s ease;
    border-top: 1px solid rgba(255, 255, 255, 0.05);
  }
  
  .nav-menu.active {
    transform: translateX(0);
  }
  
  .nav-menu.active ~ .mobile-toggle span:nth-child(1) {
    transform: rotate(45deg) translate(6px, 6px);
  }
  
  .nav-menu.active ~ .mobile-toggle span:nth-child(2) {
    opacity: 0;
  }
  
  .nav-menu.active ~ .mobile-toggle span:nth-child(3) {
    transform: rotate(-45deg) translate(5px, -5px);
  }
  
  .simulator-wrapper {
    grid-template-columns: 1fr;
    height: auto;
  }
  
  .simulator-sidebar {
    border-right: none;
    border-bottom: var(--border-glass);
    padding: 30px;
  }
  
  .simulator-console {
    height: 380px;
  }
  
  .footer-container {
    flex-direction: column;
    gap: 16px;
    text-align: center;
  }
}

@media (max-width: 480px) {
  .hero-title {
    font-size: 2.2rem;
  }
  
  .hero-subtitle {
    font-size: 1rem;
  }
  
  .hero-ctas {
    flex-direction: column;
    gap: 12px;
  }
  
  .stats-grid {
    grid-template-columns: 1fr;
  }
  
  .service-card {
    padding: 24px;
  }
}

/* Reduced Motion Override for Accessibility */
@media (prefers-reduced-motion: reduce) {
  * {
    animation-delay: -1ms !important;
    animation-duration: 1ms !important;
    animation-iteration-count: 1 !important;
    background-attachment: initial !important;
    scroll-behavior: auto !important;
    transition-duration: 0s !important;
    transition-delay: 0s !important;
  }
  
  .visual-circle, .active-ping, .pulse-dot {
    animation: none !important;
  }
  
  header {
    animation: none !important;
  }
}
