/* 
   FLEXNET Digital - Premium Design Stylesheet
   Created with HSL-based dark mode, glassmorphism, and smooth micro-animations.
*/

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

:root {
  /* Color Palette */
  --bg-dark: #08090d;
  --bg-panel: rgba(17, 20, 30, 0.65);
  --bg-panel-solid: #11141e;
  --text-main: #f3f4f6;
  --text-muted: #9ca3af;
  --text-dim: #6b7280;
  
  --color-primary: #8b5cf6; /* Electric Violet */
  --color-primary-rgb: 139, 92, 246;
  --color-secondary: #06b6d4; /* Neon Teal */
  --color-secondary-rgb: 6, 182, 212;
  --color-accent: #f43f5e; /* Rose Pink */
  
  --grad-main: linear-gradient(135deg, var(--color-primary), var(--color-secondary));
  --grad-hover: linear-gradient(135deg, var(--color-secondary), var(--color-primary));
  --grad-dark: linear-gradient(180deg, #090a0f 0%, #0c0e15 100%);
  
  --border-glass: rgba(255, 255, 255, 0.08);
  --border-glass-active: rgba(255, 255, 255, 0.16);
  --shadow-glow: 0 0 30px rgba(139, 92, 246, 0.15);
  --shadow-card: 0 10px 30px -10px rgba(0, 0, 0, 0.5);
  
  /* Fonts */
  --font-heading: 'Outfit', sans-serif;
  --font-body: 'Inter', sans-serif;
  
  /* Transitions */
  --transition-smooth: all 0.4s cubic-bezier(0.16, 1, 0.3, 1);
  --transition-fast: all 0.2s ease;
}

/* --- Base & Reset --- */
* {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
  scroll-behavior: smooth;
}

body {
  background-color: var(--bg-dark);
  background-image: var(--grad-dark);
  color: var(--text-main);
  font-family: var(--font-body);
  line-height: 1.6;
  overflow-x: hidden;
  -webkit-font-smoothing: antialiased;
}

/* Custom Scrollbar */
::-webkit-scrollbar {
  width: 8px;
}
::-webkit-scrollbar-track {
  background: var(--bg-dark);
}
::-webkit-scrollbar-thumb {
  background: rgba(255, 255, 255, 0.1);
  border-radius: 4px;
}
::-webkit-scrollbar-thumb:hover {
  background: var(--color-primary);
}

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

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

/* --- Layout Containers --- */
.container {
  max-width: 1280px;
  margin: 0 auto;
  padding: 0 24px;
}

.section {
  padding: 100px 0;
  position: relative;
}

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

.section-subtitle {
  font-family: var(--font-heading);
  text-transform: uppercase;
  letter-spacing: 0.1em;
  font-size: 0.85rem;
  font-weight: 600;
  color: var(--color-secondary);
  margin-bottom: 12px;
  display: block;
}

.section-title {
  font-size: 2.5rem;
  margin-bottom: 16px;
}

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

/* --- Glow Background Elements --- */
.glow-mesh {
  position: absolute;
  width: 500px;
  height: 500px;
  border-radius: 50%;
  filter: blur(140px);
  z-index: 0;
  pointer-events: none;
  opacity: 0.15;
}

.glow-mesh-1 {
  background: var(--color-primary);
  top: 10%;
  left: -10%;
}

.glow-mesh-2 {
  background: var(--color-secondary);
  bottom: 20%;
  right: -10%;
}

/* --- Glassmorphism UI Components --- */
.glass-panel {
  background: var(--bg-panel);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  border: 1px solid var(--border-glass);
  border-radius: 20px;
  box-shadow: var(--shadow-card);
  transition: var(--transition-smooth);
}

.glass-panel:hover {
  border-color: var(--border-glass-active);
  box-shadow: 0 15px 35px -5px rgba(0, 0, 0, 0.6), var(--shadow-glow);
}

/* --- Buttons --- */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 12px 28px;
  border-radius: 12px;
  font-family: var(--font-heading);
  font-weight: 600;
  font-size: 0.95rem;
  cursor: pointer;
  transition: var(--transition-smooth);
  border: none;
  gap: 8px;
  position: relative;
  overflow: hidden;
}

.btn-primary {
  background: var(--grad-main);
  color: #fff;
  box-shadow: 0 4px 15px rgba(139, 92, 246, 0.3);
}

.btn-primary:hover {
  transform: translateY(-2px);
  box-shadow: 0 6px 20px rgba(139, 92, 246, 0.5), 0 0 10px rgba(6, 182, 212, 0.4);
}

.btn-primary::after {
  content: '';
  position: absolute;
  top: 0;
  left: -50%;
  width: 200%;
  height: 100%;
  background: linear-gradient(to right, transparent, rgba(255,255,255,0.15), transparent);
  transform: skewX(-25deg);
  transition: 0.75s ease;
}

.btn-primary:hover::after {
  left: 125%;
}

.btn-secondary {
  background: rgba(255, 255, 255, 0.05);
  border: 1px solid var(--border-glass);
  color: var(--text-main);
}

.btn-secondary:hover {
  background: rgba(255, 255, 255, 0.1);
  border-color: var(--border-glass-active);
  transform: translateY(-2px);
}

/* --- Header / Navigation --- */
.header {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  z-index: 100;
  background: rgba(8, 9, 13, 0.7);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border-b: 1px solid var(--border-glass);
  transition: var(--transition-smooth);
}

.header-scrolled {
  padding: 8px 0;
  background: rgba(8, 9, 13, 0.9);
  border-color: var(--border-glass-active);
}

.nav-container {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 80px;
  transition: var(--transition-smooth);
}

.header-scrolled .nav-container {
  height: 64px;
}

.logo {
  font-family: var(--font-heading);
  font-weight: 800;
  font-size: 1.6rem;
  letter-spacing: -0.03em;
  background: var(--grad-main);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  display: flex;
  align-items: center;
  gap: 8px;
}

.nav-links {
  display: flex;
  align-items: center;
  gap: 32px;
  list-style: none;
}

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

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

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

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

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

.menu-toggle {
  display: none;
  background: none;
  border: none;
  color: var(--text-main);
  font-size: 1.5rem;
  cursor: pointer;
}

/* --- Hero Section --- */
.hero {
  min-height: 100vh;
  display: flex;
  align-items: center;
  padding-top: 120px;
  position: relative;
  overflow: hidden;
}

.hero-grid {
  display: grid;
  grid-template-columns: 1.2fr 0.8fr;
  gap: 40px;
  align-items: center;
}

.hero-content {
  position: relative;
  z-index: 10;
}

.hero-badge {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 6px 16px;
  border-radius: 30px;
  background: rgba(139, 92, 246, 0.1);
  border: 1px solid rgba(139, 92, 246, 0.2);
  color: var(--color-primary);
  font-family: var(--font-heading);
  font-weight: 600;
  font-size: 0.85rem;
  margin-bottom: 24px;
  box-shadow: 0 0 15px rgba(139, 92, 246, 0.1);
}

.hero-title {
  font-size: 4rem;
  line-height: 1.1;
  margin-bottom: 24px;
  font-weight: 800;
}

.hero-title span {
  background: var(--grad-main);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  display: inline-block;
}

.hero-desc {
  font-size: 1.25rem;
  color: var(--text-muted);
  margin-bottom: 40px;
  max-width: 600px;
}

.hero-actions {
  display: flex;
  gap: 16px;
  flex-wrap: wrap;
  margin-bottom: 60px;
}

.hero-stats {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
  border-top: 1px solid var(--border-glass);
  padding-top: 40px;
}

.stat-item h4 {
  font-size: 2.2rem;
  background: var(--grad-main);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  margin-bottom: 4px;
}

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

/* Hero Interactive Visuals */
.hero-visual {
  position: relative;
  display: flex;
  justify-content: center;
  align-items: center;
  height: 450px;
}

.visual-orbit {
  position: absolute;
  border: 1px dashed rgba(255, 255, 255, 0.15);
  border-radius: 50%;
  animation: rotate 20s linear infinite;
}

.orbit-1 {
  width: 400px;
  height: 400px;
}

.orbit-2 {
  width: 280px;
  height: 280px;
  animation-duration: 12s;
  animation-direction: reverse;
}

.visual-core {
  width: 140px;
  height: 140px;
  border-radius: 50%;
  background: var(--grad-main);
  box-shadow: 0 0 60px rgba(139, 92, 246, 0.6);
  position: relative;
  display: flex;
  align-items: center;
  justify-content: center;
  animation: pulse-grow 4s ease-in-out infinite alternate;
}

.visual-core::after {
  content: 'F';
  font-family: var(--font-heading);
  font-size: 4rem;
  font-weight: 800;
  color: #fff;
  text-shadow: 0 2px 10px rgba(0,0,0,0.2);
}

.floating-node {
  position: absolute;
  width: 16px;
  height: 16px;
  border-radius: 50%;
  background: var(--color-secondary);
  box-shadow: 0 0 15px var(--color-secondary);
}

.node-1 { top: 10%; left: 20%; animation: float-y 6s ease-in-out infinite; }
.node-2 { bottom: 15%; right: 25%; animation: float-y 8s ease-in-out infinite 1s; }
.node-3 { top: 40%; right: 5%; animation: float-y 7s ease-in-out infinite 2s; }

/* --- Services Section --- */
.services-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(360px, 1fr));
  gap: 32px;
}

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

.service-card::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 4px;
  background: var(--grad-main);
  opacity: 0;
  transition: var(--transition-smooth);
}

.service-card:hover::before {
  opacity: 1;
}

.service-icon {
  width: 60px;
  height: 60px;
  border-radius: 14px;
  background: rgba(139, 92, 246, 0.1);
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 24px;
  color: var(--color-primary);
  border: 1px solid rgba(139, 92, 246, 0.15);
  transition: var(--transition-smooth);
}

.service-card:hover .service-icon {
  background: var(--grad-main);
  color: #fff;
  border-color: transparent;
  box-shadow: 0 0 20px rgba(139, 92, 246, 0.4);
}

.service-card h3 {
  font-size: 1.5rem;
  margin-bottom: 12px;
}

.service-card p {
  color: var(--text-muted);
  font-size: 0.95rem;
  margin-bottom: 24px;
  flex-grow: 1;
}

.service-price {
  font-family: var(--font-heading);
  font-size: 1.25rem;
  font-weight: 700;
  color: var(--color-secondary);
  margin-bottom: 20px;
}

.service-features {
  list-style: none;
  border-top: 1px solid var(--border-glass);
  padding-top: 20px;
}

.service-features li {
  font-size: 0.9rem;
  color: var(--text-muted);
  margin-bottom: 10px;
  display: flex;
  align-items: center;
  gap: 10px;
}

.service-features li::before {
  content: "✓";
  color: var(--color-secondary);
  font-weight: 800;
}

/* --- Portfolio Section --- */
.portfolio-filters {
  display: flex;
  justify-content: center;
  gap: 12px;
  margin-bottom: 48px;
  list-style: none;
  flex-wrap: wrap;
}

.filter-btn {
  padding: 10px 24px;
  border-radius: 30px;
  background: rgba(255,255,255,0.03);
  border: 1px solid var(--border-glass);
  font-family: var(--font-heading);
  font-weight: 600;
  font-size: 0.9rem;
  color: var(--text-muted);
  cursor: pointer;
  transition: var(--transition-smooth);
}

.filter-btn:hover, .filter-btn.active {
  background: var(--grad-main);
  border-color: transparent;
  color: #fff;
  box-shadow: 0 4px 15px rgba(139, 92, 246, 0.3);
  transform: translateY(-1px);
}

.portfolio-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(380px, 1fr));
  gap: 32px;
}

.portfolio-item {
  overflow: hidden;
  border-radius: 20px;
  position: relative;
  cursor: pointer;
}

.portfolio-img-wrapper {
  position: relative;
  overflow: hidden;
  padding-top: 60%; /* 5:3 Aspect Ratio */
}

.portfolio-img {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: var(--transition-smooth);
  z-index: 1;
}

.portfolio-item:hover .portfolio-img {
  transform: scale(1.08);
}


.portfolio-content {
  padding: 30px;
}

.portfolio-meta {
  display: flex;
  align-items: center;
  gap: 12px;
  margin-bottom: 12px;
}

.portfolio-tag {
  font-size: 0.75rem;
  font-weight: 600;
  text-transform: uppercase;
  color: var(--color-secondary);
  background: rgba(6, 182, 212, 0.1);
  padding: 4px 10px;
  border-radius: 4px;
}

.portfolio-item h3 {
  font-size: 1.35rem;
  margin-bottom: 8px;
  transition: var(--transition-fast);
}

.portfolio-item:hover h3 {
  color: var(--color-primary);
}

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

.portfolio-metrics {
  display: flex;
  gap: 16px;
  border-top: 1px solid var(--border-glass);
  padding-top: 16px;
}

.metric-badge {
  display: flex;
  flex-direction: column;
}

.metric-val {
  font-family: var(--font-heading);
  font-size: 1.15rem;
  font-weight: 700;
  color: var(--text-main);
}

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

/* --- Reviews Section --- */
.reviews-carousel {
  position: relative;
  max-width: 850px;
  margin: 0 auto;
  overflow: hidden;
}

.reviews-track {
  display: flex;
  transition: transform 0.6s cubic-bezier(0.16, 1, 0.3, 1);
}

.review-slide {
  min-width: 100%;
  padding: 20px;
  box-sizing: border-box;
}

.review-card {
  padding: 48px;
  position: relative;
  text-align: center;
}

.review-quote-icon {
  font-size: 4rem;
  background: var(--grad-main);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  line-height: 1;
  position: absolute;
  top: 24px;
  left: 40px;
  opacity: 0.15;
}

.review-text {
  font-size: 1.25rem;
  color: var(--text-main);
  font-style: italic;
  margin-bottom: 32px;
  position: relative;
  z-index: 2;
}

.review-author {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 12px;
}

.author-avatar {
  width: 64px;
  height: 64px;
  border-radius: 50%;
  background: var(--grad-main);
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: 700;
  color: #fff;
  font-family: var(--font-heading);
  font-size: 1.25rem;
  box-shadow: 0 0 15px rgba(139, 92, 246, 0.3);
}

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

.author-title {
  font-size: 0.85rem;
  color: var(--color-secondary);
}

/* Carousel Controls */
.carousel-controls {
  display: flex;
  justify-content: center;
  align-items: center;
  gap: 20px;
  margin-top: 30px;
}

.control-btn {
  width: 48px;
  height: 48px;
  border-radius: 50%;
  background: rgba(255,255,255,0.03);
  border: 1px solid var(--border-glass);
  color: var(--text-main);
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  transition: var(--transition-smooth);
}

.control-btn:hover {
  background: var(--grad-main);
  border-color: transparent;
  transform: scale(1.05);
}

.carousel-dots {
  display: flex;
  gap: 8px;
}

.dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: rgba(255,255,255,0.2);
  cursor: pointer;
  transition: var(--transition-smooth);
}

.dot.active {
  background: var(--color-primary);
  width: 24px;
  border-radius: 4px;
}

/* --- Contact & Lead Form Section --- */
.contact-grid {
  display: grid;
  grid-template-columns: 0.9fr 1.1fr;
  gap: 50px;
  align-items: start;
}

.contact-info {
  display: flex;
  flex-direction: column;
  gap: 32px;
}

.contact-info-title {
  font-size: 2.2rem;
  margin-bottom: 8px;
}

.contact-info-desc {
  color: var(--text-muted);
  margin-bottom: 12px;
}

.contact-methods {
  display: flex;
  flex-direction: column;
  gap: 24px;
}

.method-card {
  display: flex;
  align-items: center;
  gap: 20px;
  padding: 24px;
}

.method-icon {
  width: 52px;
  height: 52px;
  border-radius: 12px;
  background: rgba(6, 182, 212, 0.1);
  border: 1px solid rgba(6, 182, 212, 0.15);
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--color-secondary);
  font-size: 1.25rem;
}

.method-details h4 {
  font-size: 0.95rem;
  color: var(--text-dim);
  text-transform: uppercase;
  margin-bottom: 4px;
  letter-spacing: 0.05em;
}

.method-details a, .method-details p {
  font-size: 1.1rem;
  font-weight: 500;
}

.method-details a:hover {
  color: var(--color-secondary);
}

/* Lead Form Styling */
.lead-form {
  padding: 50px;
}

.form-title {
  font-size: 1.8rem;
  margin-bottom: 30px;
}

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

.form-label {
  display: block;
  font-size: 0.85rem;
  font-weight: 600;
  color: var(--text-muted);
  margin-bottom: 8px;
  text-transform: uppercase;
  letter-spacing: 0.02em;
}

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

.form-input:focus {
  outline: none;
  background: rgba(255, 255, 255, 0.06);
  border-color: var(--color-primary);
  box-shadow: 0 0 10px rgba(139, 92, 246, 0.2);
}

.form-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 20px;
}

.form-budget-select {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 12px;
}

.budget-btn {
  padding: 12px;
  border-radius: 8px;
  background: rgba(255,255,255,0.02);
  border: 1px solid var(--border-glass);
  color: var(--text-muted);
  font-family: var(--font-heading);
  font-weight: 600;
  font-size: 0.85rem;
  text-align: center;
  cursor: pointer;
  transition: var(--transition-fast);
}

.budget-btn:hover {
  background: rgba(255,255,255,0.05);
  border-color: var(--border-glass-active);
}

.budget-btn.active {
  background: rgba(139, 92, 246, 0.1);
  border-color: var(--color-primary);
  color: var(--color-primary);
}

.submit-btn {
  width: 100%;
  padding: 16px;
  margin-top: 10px;
}

/* Form success notification state */
.form-success-overlay {
  position: absolute;
  inset: 0;
  background: var(--bg-panel-solid);
  border-radius: 20px;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  padding: 40px;
  text-align: center;
  z-index: 10;
  opacity: 0;
  pointer-events: none;
  transition: var(--transition-smooth);
}

.form-success-overlay.show {
  opacity: 1;
  pointer-events: auto;
}

.success-icon {
  width: 80px;
  height: 80px;
  border-radius: 50%;
  background: rgba(6, 182, 212, 0.1);
  color: var(--color-secondary);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 2.5rem;
  margin-bottom: 24px;
  animation: pulse-grow 2s infinite alternate;
}

.success-title {
  font-size: 2rem;
  margin-bottom: 12px;
}

.success-text {
  color: var(--text-muted);
  max-width: 400px;
  font-size: 0.95rem;
}

/* --- Footer --- */
.footer {
  background: #06070a;
  border-top: 1px solid var(--border-glass);
  padding: 80px 0 30px 0;
}

.footer-grid {
  display: grid;
  grid-template-columns: 1.5fr repeat(3, 1fr);
  gap: 40px;
  margin-bottom: 60px;
}

.footer-brand {
  display: flex;
  flex-direction: column;
  gap: 20px;
}

.footer-logo {
  font-size: 2rem;
  font-weight: 800;
  background: var(--grad-main);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
}

.footer-desc {
  color: var(--text-muted);
  font-size: 0.95rem;
  max-width: 320px;
}

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

.social-link {
  width: 40px;
  height: 40px;
  border-radius: 8px;
  background: rgba(255,255,255,0.03);
  border: 1px solid var(--border-glass);
  display: flex;
  align-items: center;
  justify-content: center;
  transition: var(--transition-smooth);
}

.social-link:hover {
  background: var(--grad-main);
  border-color: transparent;
  color: #fff;
  transform: translateY(-2px);
}

.footer-col h4 {
  font-size: 1.05rem;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  margin-bottom: 24px;
  color: var(--text-main);
}

.footer-links {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 14px;
}

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

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

.footer-bottom {
  border-top: 1px solid var(--border-glass);
  padding-top: 30px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: 20px;
  font-size: 0.85rem;
  color: var(--text-dim);
}

.footer-bottom-links {
  display: flex;
  gap: 24px;
}

/* --- Floating AI Assistant Widget --- */
.ai-widget {
  position: fixed;
  bottom: 30px;
  right: 30px;
  z-index: 1000;
  display: flex;
  flex-direction: column;
  align-items: flex-end;
}

.ai-toggle-btn {
  width: 60px;
  height: 60px;
  border-radius: 50%;
  background: var(--grad-main);
  color: #fff;
  border: none;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  box-shadow: 0 6px 20px rgba(139, 92, 246, 0.4);
  font-size: 1.5rem;
  transition: var(--transition-smooth);
  position: relative;
}

.ai-toggle-btn:hover {
  transform: scale(1.08) rotate(15deg);
  box-shadow: 0 8px 25px rgba(139, 92, 246, 0.6), 0 0 15px rgba(6, 182, 212, 0.4);
}

/* Notification badge for widget */
.ai-badge {
  position: absolute;
  top: -2px;
  right: -2px;
  width: 14px;
  height: 14px;
  border-radius: 50%;
  background: var(--color-accent);
  border: 2px solid var(--bg-dark);
  animation: pulse 1.5s infinite;
}

.ai-chat-window {
  width: 380px;
  height: 500px;
  margin-bottom: 20px;
  display: flex;
  flex-direction: column;
  overflow: hidden;
  opacity: 0;
  transform: translateY(40px) scale(0.95);
  pointer-events: none;
  transform-origin: bottom right;
  transition: var(--transition-smooth);
}

.ai-chat-window.open {
  opacity: 1;
  transform: translateY(0) scale(1);
  pointer-events: auto;
}

.ai-chat-header {
  padding: 20px;
  background: linear-gradient(135deg, rgba(139, 92, 246, 0.25), rgba(6, 182, 212, 0.25));
  border-bottom: 1px solid var(--border-glass);
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.ai-chat-profile {
  display: flex;
  align-items: center;
  gap: 12px;
}

.ai-avatar {
  width: 40px;
  height: 40px;
  border-radius: 50%;
  background: var(--grad-main);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.1rem;
  color: #fff;
  box-shadow: 0 0 10px rgba(139, 92, 246, 0.4);
}

.ai-chat-title h3 {
  font-size: 0.95rem;
}

.ai-chat-title span {
  font-size: 0.75rem;
  color: var(--color-secondary);
  display: flex;
  align-items: center;
  gap: 4px;
}

.ai-chat-title span::before {
  content: '';
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: var(--color-secondary);
  display: inline-block;
  animation: pulse 1.5s infinite;
}

.ai-chat-close {
  background: none;
  border: none;
  color: var(--text-muted);
  cursor: pointer;
  font-size: 1.25rem;
  transition: var(--transition-fast);
}

.ai-chat-close:hover {
  color: var(--text-main);
}

.ai-chat-messages {
  flex-grow: 1;
  padding: 20px;
  overflow-y: auto;
  display: flex;
  flex-direction: column;
  gap: 16px;
}

/* Chat Message Bubbles */
.chat-msg {
  max-width: 80%;
  padding: 12px 16px;
  border-radius: 14px;
  font-size: 0.9rem;
  line-height: 1.4;
  animation: slideUp 0.3s cubic-bezier(0.16, 1, 0.3, 1) forwards;
}

.chat-msg-ai {
  background: rgba(255,255,255,0.04);
  border: 1px solid var(--border-glass);
  align-self: flex-start;
  border-bottom-left-radius: 2px;
}

.chat-msg-user {
  background: var(--grad-main);
  color: #fff;
  align-self: flex-end;
  border-bottom-right-radius: 2px;
  box-shadow: 0 4px 10px rgba(139, 92, 246, 0.2);
}

.ai-chat-input-area {
  padding: 16px;
  border-top: 1px solid var(--border-glass);
  display: flex;
  gap: 10px;
  align-items: center;
}

.ai-input {
  flex-grow: 1;
  padding: 10px 16px;
  background: rgba(255,255,255,0.03);
  border: 1px solid var(--border-glass);
  border-radius: 30px;
  color: var(--text-main);
  font-size: 0.9rem;
  transition: var(--transition-fast);
}

.ai-input:focus {
  outline: none;
  border-color: var(--color-primary);
}

.ai-send-btn {
  width: 36px;
  height: 36px;
  border-radius: 50%;
  background: var(--grad-main);
  color: #fff;
  border: none;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  transition: var(--transition-fast);
}

.ai-send-btn:hover {
  transform: scale(1.05);
}

/* Chatbot Suggestion chips */
.chat-suggestions {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-top: 8px;
}

.suggest-chip {
  padding: 6px 12px;
  background: rgba(139, 92, 246, 0.08);
  border: 1px solid rgba(139, 92, 246, 0.15);
  border-radius: 20px;
  font-size: 0.75rem;
  font-weight: 500;
  color: var(--color-primary);
  cursor: pointer;
  transition: var(--transition-fast);
}

.suggest-chip:hover {
  background: var(--grad-main);
  color: #fff;
  border-color: transparent;
}

/* --- Scroll Animation Reveals --- */
.reveal {
  position: relative;
  opacity: 0;
  transform: translateY(30px);
  transition: opacity 0.8s ease, transform 0.8s cubic-bezier(0.16, 1, 0.3, 1);
}

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

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

@keyframes pulse {
  0% { transform: scale(1); box-shadow: 0 0 0 0 rgba(244, 63, 94, 0.4); }
  70% { transform: scale(1.1); box-shadow: 0 0 0 6px rgba(244, 63, 94, 0); }
  100% { transform: scale(1); box-shadow: 0 0 0 0 rgba(244, 63, 94, 0); }
}

@keyframes pulse-grow {
  0% { transform: scale(1); }
  100% { transform: scale(1.08); }
}

@keyframes float-y {
  0% { transform: translateY(0px); }
  50% { transform: translateY(-15px); }
  100% { transform: translateY(0px); }
}

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

/* Hero Chat Card */
.hero-chat {
  width: 100%;
  max-width: 400px;
  height: 420px;
  display: flex;
  flex-direction: column;
  overflow: hidden;
  position: relative;
  z-index: 5;
  box-shadow: 0 20px 40px rgba(0, 0, 0, 0.4);
}

/* --- Responsive Adaptability --- */
@media (max-width: 1024px) {
  .hero-grid {
    grid-template-columns: 1fr;
    text-align: center;
    gap: 60px;
  }
  .hero-desc {
    margin-left: auto;
    margin-right: auto;
  }
  .hero-actions {
    justify-content: center;
  }
  .hero-stats {
    max-width: 500px;
    margin: 0 auto;
  }
  .hero-visual {
    height: 460px;
  }
  .hero-chat {
    margin: 0 auto;
  }
  .contact-grid {
    grid-template-columns: 1fr;
    gap: 60px;
  }
}

@media (max-width: 768px) {
  .section {
    padding: 70px 0;
  }
  .section-title {
    font-size: 2rem;
  }
  .hero-title {
    font-size: 2.8rem;
  }
  .nav-links {
    display: none;
    position: fixed;
    top: 80px;
    left: 0;
    width: 100%;
    height: calc(100vh - 80px);
    background: var(--bg-panel-solid);
    flex-direction: column;
    padding: 40px;
    gap: 24px;
    z-index: 99;
    border-top: 1px solid var(--border-glass);
    overflow-y: auto;
  }
  .nav-links.active {
    display: flex;
  }
  .menu-toggle {
    display: block;
  }
  .nav-actions {
    display: none;
  }
  .lead-form {
    padding: 30px;
  }
  .form-row {
    grid-template-columns: 1fr;
    gap: 0;
  }
  .form-budget-select {
    grid-template-columns: 1fr;
  }
  .footer-grid {
    grid-template-columns: 1fr;
    gap: 30px;
  }
  .ai-chat-window {
    width: calc(100vw - 40px);
    right: 20px;
    bottom: 90px;
  }
}
