/* Custom Design System & Theme for ANTANI AI Solutions */

/* Google Fonts Import */
@import url('https://fonts.googleapis.com/css2?family=Inter:wght@300;400;500;600;700&family=Space+Grotesk:wght@400;500;600;700&display=swap');

/* CSS Variables */
:root {
  --font-heading: 'Space Grotesk', sans-serif;
  --font-body: 'Inter', sans-serif;

  /* Color Palette */
  --bg-deep: #0A0E17;
  --bg-darker: #06090F;
  --bg-card: rgba(255, 255, 255, 0.03);
  --bg-card-hover: rgba(255, 255, 255, 0.06);
  --border-light: rgba(255, 255, 255, 0.08);
  --border-glow: rgba(0, 210, 255, 0.3);
  
  --accent-blue: #00D2FF;
  --accent-purple: #9D00FF;
  --accent-glow: linear-gradient(135deg, var(--accent-blue) 0%, var(--accent-purple) 100%);
  
  --text-primary: #F3F4F6;
  --text-secondary: #9CA3AF;
  --text-muted: #6B7280;
  
  /* Layout */
  --max-width: 1200px;
  --nav-height: 80px;
  
  /* Transitions */
  --transition-fast: 0.2s ease;
  --transition-normal: 0.3s ease;
  --transition-slow: 0.5s ease;
}

/* Reset & Global Styles */
* {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

html, body {
  scroll-behavior: smooth;
  font-size: 16px;
  background-color: var(--bg-deep);
  color: var(--text-primary);
  font-family: var(--font-body);
  overflow-x: hidden;
  width: 100%;
}

body {
  background-color: var(--bg-deep);
  position: relative;
  overflow-x: hidden;
  width: 100%;
}

/* Responsive Images */
img {
  max-width: 100%;
  height: auto;
  display: block;
}

/* Custom Scrollbar */
::-webkit-scrollbar {
  width: 10px;
}
::-webkit-scrollbar-track {
  background: var(--bg-darker);
}
::-webkit-scrollbar-thumb {
  background: rgba(255, 255, 255, 0.1);
  border-radius: 5px;
}
::-webkit-scrollbar-thumb:hover {
  background: var(--accent-blue);
}

/* Typography Utility Classes */
h1, h2, h3, h4, h5, h6 {
  font-family: var(--font-heading);
  font-weight: 600;
  letter-spacing: -0.02em;
  line-height: 1.2;
}

p {
  color: var(--text-secondary);
  line-height: 1.6;
}

.gradient-text {
  background: var(--accent-glow);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  display: inline-block;
}

/* Layout Utilities */
.container {
  width: 100%;
  max-width: var(--max-width);
  margin: 0 auto;
  padding: 0 2rem;
}

.section {
  padding: 8rem 0;
  position: relative;
}

/* Glassmorphism Cards */
.glass-card {
  background: var(--bg-card);
  border: 1px solid var(--border-light);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border-radius: 16px;
  padding: 2.5rem;
  transition: all var(--transition-normal);
  box-shadow: 0 8px 32px 0 rgba(0, 0, 0, 0.3);
}

.glass-card:hover {
  background: var(--bg-card-hover);
  border-color: rgba(0, 210, 255, 0.25);
  box-shadow: 0 12px 40px 0 rgba(0, 210, 255, 0.1);
  transform: translateY(-5px);
}

/* Glowing Elements */
.glow-blob {
  position: absolute;
  width: 300px;
  height: 300px;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(0, 210, 255, 0.15) 0%, rgba(157, 0, 255, 0.05) 50%, rgba(0,0,0,0) 70%);
  filter: blur(40px);
  pointer-events: none;
  z-index: 0;
}

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

.btn-primary {
  background-color: var(--accent-blue);
  background-image: var(--accent-glow);
  color: #fff;
  border: none;
  box-shadow: 0 4px 20px rgba(0, 210, 255, 0.35);
  position: relative;
  overflow: hidden;
  z-index: 1;
}

.btn-primary::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: linear-gradient(135deg, var(--accent-purple) 0%, var(--accent-blue) 100%);
  opacity: 0;
  z-index: -1;
  transition: opacity var(--transition-normal);
}

.btn-primary:hover::before {
  opacity: 1;
}

.btn-primary:hover {
  transform: translateY(-2px);
  box-shadow: 0 6px 24px rgba(157, 0, 255, 0.5);
}

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

.btn-secondary:hover {
  background: rgba(255, 255, 255, 0.05);
  border-color: var(--accent-blue);
  color: var(--accent-blue);
  transform: translateY(-2px);
}

/* Navbar */
header {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: var(--nav-height);
  background: rgba(10, 14, 23, 0.7);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border-bottom: 1px solid var(--border-light);
  z-index: 1000;
  display: flex;
  align-items: center;
  transition: all var(--transition-normal);
}

header.scrolled {
  background: rgba(6, 9, 15, 0.9);
  height: 70px;
}

.nav-container {
  display: flex;
  justify-content: space-between;
  align-items: center;
  width: 100%;
}

.logo-link {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  text-decoration: none;
  color: var(--text-primary);
}

.logo-img {
  height: 40px;
  width: auto;
  object-fit: contain;
}

.brand-name {
  font-family: var(--font-heading);
  font-size: 1.3rem;
  font-weight: 700;
  letter-spacing: -0.01em;
}

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

.nav-links a {
  text-decoration: none;
  color: var(--text-secondary);
  font-size: 0.95rem;
  font-weight: 500;
  transition: color var(--transition-fast);
  position: relative;
}

.nav-links a:hover {
  color: var(--accent-blue);
}

.nav-links a::after {
  content: '';
  position: absolute;
  bottom: -4px;
  left: 0;
  width: 0;
  height: 2px;
  background: var(--accent-blue);
  transition: width var(--transition-fast);
}

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

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

.nav-cta {
  display: flex;
  align-items: center;
}

.nav-cta-mobile {
  display: none;
}

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

.hamburger span {
  display: block;
  width: 25px;
  height: 2px;
  background-color: var(--text-primary);
  transition: all var(--transition-normal);
}

/* Hero Section */
.hero-section {
  min-height: 100vh;
  display: flex;
  align-items: center;
  padding-top: var(--nav-height);
  position: relative;
  overflow: hidden;
}

.hero-canvas {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  z-index: 1;
  pointer-events: all;
}

.hero-content {
  position: relative;
  z-index: 2;
  max-width: 750px;
  pointer-events: none; /* Let clicks pass through to the canvas */
}

.hero-content a, .hero-content button {
  pointer-events: auto; /* Re-enable pointer events for buttons */
}

.hero-badge {
  background: rgba(0, 210, 255, 0.07);
  border: 1px solid rgba(0, 210, 255, 0.2);
  color: var(--accent-blue);
  padding: 0.5rem 1rem;
  border-radius: 100px;
  font-size: 0.85rem;
  font-weight: 500;
  letter-spacing: 0.05em;
  text-transform: uppercase;
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  margin-bottom: 1.5rem;
}

.hero-badge::before {
  content: '';
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: var(--accent-blue);
  box-shadow: 0 0 8px var(--accent-blue);
  display: inline-block;
  animation: pulse 2s infinite;
}

@keyframes pulse {
  0% { transform: scale(0.9); opacity: 0.6; }
  50% { transform: scale(1.2); opacity: 1; }
  100% { transform: scale(0.9); opacity: 0.6; }
}

.hero-title {
  font-size: 4rem;
  line-height: 1.1;
  margin-bottom: 1.5rem;
  font-weight: 700;
}

.hero-subtitle {
  font-size: 1.25rem;
  margin-bottom: 2.5rem;
  color: var(--text-secondary);
  max-width: 600px;
}

.hero-ctas {
  display: flex;
  gap: 1.2rem;
}

/* Services Grid */
.section-header {
  text-align: center;
  max-width: 650px;
  margin: 0 auto 5rem;
  z-index: 1;
  position: relative;
}

.section-subtitle {
  color: var(--accent-blue);
  text-transform: uppercase;
  font-size: 0.9rem;
  letter-spacing: 0.15em;
  font-weight: 600;
  margin-bottom: 0.75rem;
  display: block;
}

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

.services-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
  gap: 2rem;
  z-index: 1;
  position: relative;
}

.service-icon {
  width: 50px;
  height: 50px;
  background: linear-gradient(135deg, rgba(0, 210, 255, 0.1) 0%, rgba(157, 0, 255, 0.1) 100%);
  border: 1px solid rgba(0, 210, 255, 0.2);
  border-radius: 12px;
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 1.5rem;
  color: var(--accent-blue);
  font-size: 1.5rem;
  transition: all var(--transition-normal);
}

.glass-card:hover .service-icon {
  background: var(--accent-glow);
  color: white;
  border-color: transparent;
  transform: scale(1.1);
  box-shadow: 0 4px 15px rgba(0, 210, 255, 0.3);
}

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

.service-description {
  font-size: 0.95rem;
  color: var(--text-secondary);
}

/* Why Choose Us Section */
.why-us-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
  gap: 2rem;
  z-index: 1;
  position: relative;
}

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

.why-icon {
  width: 60px;
  height: 60px;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.02);
  border: 1px solid var(--border-light);
  display: flex;
  align-items: center;
  justify-content: center;
  margin: 0 auto 1.5rem;
  font-size: 1.75rem;
  color: var(--accent-blue);
  transition: all var(--transition-normal);
}

.why-card:hover .why-icon {
  border-color: var(--accent-purple);
  color: var(--accent-purple);
  box-shadow: 0 0 15px rgba(157, 0, 255, 0.2);
}

.why-title {
  font-size: 1.25rem;
  margin-bottom: 0.75rem;
}

/* Our Process Section */
.process-timeline {
  position: relative;
  max-width: 900px;
  margin: 0 auto;
  padding: 2rem 0;
}

.process-timeline::before {
  content: '';
  position: absolute;
  top: 0;
  left: 50%;
  width: 2px;
  height: 100%;
  background: var(--border-light);
  transform: translateX(-50%);
  z-index: 1;
}

.timeline-progress {
  position: absolute;
  top: 0;
  left: 50%;
  width: 2px;
  height: 0%;
  background: var(--accent-glow);
  transform: translateX(-50%);
  z-index: 2;
  transition: height var(--transition-slow);
}

.process-step {
  position: relative;
  width: 50%;
  padding: 2rem 3rem;
  box-sizing: border-box;
  z-index: 3;
}

.process-step:nth-child(odd) {
  left: 0;
  text-align: right;
}

.process-step:nth-child(even) {
  left: 50%;
  text-align: left;
}

.process-node {
  position: absolute;
  top: 2.5rem;
  width: 20px;
  height: 20px;
  border-radius: 50%;
  background: var(--bg-deep);
  border: 3px solid var(--border-light);
  z-index: 4;
  transition: all var(--transition-normal);
}

.process-step:nth-child(odd) .process-node {
  right: -10px;
}

.process-step:nth-child(even) .process-node {
  left: -10px;
}

.process-step.active .process-node {
  border-color: var(--accent-blue);
  box-shadow: 0 0 10px var(--accent-blue);
  background: var(--accent-blue);
}

.process-step:nth-child(odd) .glass-card {
  transform-origin: right center;
}

.process-step:nth-child(even) .glass-card {
  transform-origin: left center;
}

.process-step.active .glass-card {
  border-color: rgba(0, 210, 255, 0.2);
}

.process-num {
  font-family: var(--font-heading);
  font-size: 2.5rem;
  font-weight: 700;
  margin-bottom: 0.5rem;
  opacity: 0.15;
  transition: opacity var(--transition-normal);
}

.process-step.active .process-num {
  opacity: 1;
  background: var(--accent-glow);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

/* About Section */
.about-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 4rem;
  align-items: center;
  z-index: 1;
  position: relative;
}

.about-visual {
  position: relative;
  display: flex;
  justify-content: center;
  align-items: center;
}

.about-glow {
  position: absolute;
  width: 80%;
  height: 80%;
  background: radial-gradient(circle, rgba(157, 0, 255, 0.2) 0%, transparent 60%);
  filter: blur(20px);
}

.about-graphic {
  border: 1px solid var(--border-light);
  background: rgba(255,255,255,0.02);
  border-radius: 24px;
  padding: 3rem;
  backdrop-filter: blur(10px);
  width: 100%;
  max-width: 450px;
  position: relative;
  box-shadow: 0 20px 50px rgba(0,0,0,0.4);
}

.about-badge-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1.5rem;
}

.about-stat {
  text-align: center;
  padding: 1.5rem;
  background: rgba(255,255,255,0.02);
  border: 1px solid var(--border-light);
  border-radius: 12px;
  transition: all var(--transition-normal);
}

.about-stat:hover {
  background: rgba(0, 210, 255, 0.05);
  border-color: var(--accent-blue);
  transform: translateY(-2px);
}

.stat-num {
  font-family: var(--font-heading);
  font-size: 2.2rem;
  font-weight: 700;
  color: var(--accent-blue);
  margin-bottom: 0.25rem;
}

.stat-label {
  font-size: 0.8rem;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  color: var(--text-secondary);
}

.about-text h3 {
  font-size: 1.8rem;
  margin-bottom: 1.5rem;
}

.about-text p {
  margin-bottom: 1.5rem;
}

/* Contact Section */
.contact-grid {
  display: grid;
  grid-template-columns: 1.2fr 1.8fr;
  gap: 4rem;
  z-index: 1;
  position: relative;
}

.contact-info {
  display: flex;
  flex-direction: column;
  gap: 2.5rem;
}

.contact-card {
  display: flex;
  align-items: flex-start;
  gap: 1.5rem;
}

.contact-card-icon {
  width: 45px;
  height: 45px;
  background: rgba(0, 210, 255, 0.07);
  border: 1px solid rgba(0, 210, 255, 0.15);
  border-radius: 10px;
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--accent-blue);
  font-size: 1.25rem;
  flex-shrink: 0;
}

.contact-card-content h4 {
  font-size: 1.05rem;
  margin-bottom: 0.35rem;
}

.contact-card-content p, .contact-card-content a {
  color: var(--text-secondary);
  font-size: 0.95rem;
  text-decoration: none;
  transition: color var(--transition-fast);
}

.contact-card-content a:hover {
  color: var(--accent-blue);
}

.social-links {
  display: flex;
  gap: 1rem;
  margin-top: 1rem;
}

.social-icon {
  width: 40px;
  height: 40px;
  background: rgba(255,255,255,0.02);
  border: 1px solid var(--border-light);
  border-radius: 8px;
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--text-secondary);
  text-decoration: none;
  transition: all var(--transition-normal);
  font-size: 1.1rem;
}

.social-icon:hover {
  background: var(--accent-purple);
  color: white;
  border-color: transparent;
  transform: translateY(-3px);
  box-shadow: 0 4px 12px rgba(157, 0, 255, 0.3);
}

/* Form Styles */
.contact-form {
  display: flex;
  flex-direction: column;
  gap: 1.5rem;
}

.form-group-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1.5rem;
}

.form-group {
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
}

.form-group label {
  font-size: 0.85rem;
  font-weight: 500;
  color: var(--text-secondary);
  letter-spacing: 0.03em;
}

.form-input {
  background: rgba(255, 255, 255, 0.02);
  border: 1px solid var(--border-light);
  border-radius: 8px;
  padding: 1rem;
  color: var(--text-primary);
  font-family: var(--font-body);
  font-size: 0.95rem;
  transition: all var(--transition-normal);
}

.form-input:focus {
  outline: none;
  background: rgba(255, 255, 255, 0.04);
  border-color: var(--accent-blue);
  box-shadow: 0 0 10px rgba(0, 210, 255, 0.15);
}

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

/* Mock Success Notification */
.form-feedback {
  padding: 1rem;
  border-radius: 8px;
  font-size: 0.95rem;
  display: none;
  align-items: center;
  gap: 0.75rem;
  margin-top: 1rem;
}

.form-feedback.success {
  display: flex;
  background: rgba(16, 185, 129, 0.1);
  border: 1px solid rgba(16, 185, 129, 0.3);
  color: #34d399;
}

/* Footer */
footer {
  background-color: var(--bg-darker);
  border-top: 1px solid var(--border-light);
  padding: 5rem 0 2.5rem;
  position: relative;
  z-index: 10;
}

.footer-grid {
  display: grid;
  grid-template-columns: 2fr 1fr 1.5fr;
  gap: 4rem;
  margin-bottom: 4rem;
}

.footer-info {
  display: flex;
  flex-direction: column;
  gap: 1.5rem;
}

.footer-logo {
  display: flex;
  align-items: center;
  gap: 0.75rem;
}

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

.footer-links h4, .footer-newsletter h4 {
  font-size: 1.1rem;
  margin-bottom: 1.5rem;
  position: relative;
}

.footer-links ul {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 0.85rem;
}

.footer-links a {
  text-decoration: none;
  color: var(--text-secondary);
  font-size: 0.95rem;
  transition: color var(--transition-fast);
}

.footer-links a:hover {
  color: var(--accent-blue);
}

.footer-newsletter p {
  font-size: 0.95rem;
  margin-bottom: 1.25rem;
}

.newsletter-form {
  display: flex;
  gap: 0.5rem;
}

.newsletter-form .form-input {
  flex: 1;
  padding: 0.75rem 1rem;
}

.newsletter-form .btn {
  padding: 0.75rem 1.25rem;
}

.footer-bottom {
  border-top: 1px solid var(--border-light);
  padding-top: 2rem;
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: 1.5rem;
}

.footer-bottom p {
  font-size: 0.85rem;
}

.footer-legal {
  display: flex;
  gap: 1.5rem;
}

.footer-legal a {
  color: var(--text-secondary);
  font-size: 0.85rem;
  text-decoration: none;
  transition: color var(--transition-fast);
}

.footer-legal a:hover {
  color: var(--accent-blue);
}

/* Animations & Scroll Transitions */
.reveal {
  opacity: 0;
  transform: translateY(30px);
  transition: opacity 0.8s ease, transform 0.8s ease;
}

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

/* Responsive Adjustments */
@media (max-width: 1024px) {
  .brand-name {
    font-size: 1.2rem;
  }
  .nav-links {
    gap: 1.5rem;
  }
  .nav-links a {
    font-size: 0.9rem;
  }
  .hero-title {
    font-size: 3.2rem;
  }
  .about-grid, .contact-grid {
    gap: 3rem;
  }
  .footer-grid {
    grid-template-columns: 1.2fr 0.8fr 1fr;
    gap: 2.5rem;
  }
}

@media (max-width: 900px) {
  /* Timeline Responsive to standard vertical flow */
  .process-timeline::before, .timeline-progress {
    left: 20px;
  }
  .process-step {
    width: 100%;
    padding: 1.5rem 1.5rem 1.5rem 3.5rem;
  }
  .process-step:nth-child(odd) {
    text-align: left;
    left: 0;
  }
  .process-step:nth-child(even) {
    left: 0;
  }
  .process-node {
    left: 10px !important;
    right: auto !important;
  }
  .process-step.active .process-node {
    left: 10px !important;
  }
}

@media (max-width: 768px) {
  .container {
    padding: 0 1.5rem;
  }
  .section {
    padding: 5rem 0;
  }
  
  /* Mobile Nav styles */
  .hamburger {
    display: flex;
  }
  
  .nav-links {
    position: fixed;
    top: var(--nav-height);
    right: 0;
    width: 100%;
    height: calc(100vh - var(--nav-height));
    background: var(--bg-darker);
    flex-direction: column;
    justify-content: flex-start;
    padding: 3rem 1.5rem;
    gap: 2.5rem;
    transform: translateX(100%);
    transition: transform var(--transition-normal), visibility var(--transition-normal);
    border-top: 1px solid var(--border-light);
    overflow-y: auto;
    visibility: hidden;
    pointer-events: none;
  }
  
  .nav-links.mobile-active {
    transform: translateX(0);
    visibility: visible;
    pointer-events: auto;
  }
  
  header.scrolled .nav-links {
    top: 70px;
    height: calc(100vh - 70px);
  }
  
  .nav-cta {
    display: none;
  }
  
  .nav-cta-mobile {
    display: block;
  }
  
  .hero-content {
    text-align: center;
    margin: 0 auto;
  }

  .hero-badge {
    margin: 0 auto 1.5rem;
  }
  
  .hero-title {
    font-size: 2.5rem;
  }
  
  .hero-subtitle {
    font-size: 1.1rem;
    margin: 0 auto 2.5rem;
  }
  
  .hero-ctas {
    flex-direction: column;
    width: 100%;
  }
  
  .hero-ctas .btn {
    width: 100%;
  }
  
  .about-grid, .contact-grid {
    grid-template-columns: 1fr;
    gap: 3rem;
  }
  
  .about-visual {
    order: 2;
  }
  
  .about-text {
    order: 1;
  }
  
  .footer-grid {
    grid-template-columns: 1fr;
    gap: 2.5rem;
  }
  
  .form-group-row {
    grid-template-columns: 1fr;
    gap: 1.5rem;
  }
  
  .form-input,
  .chatbot-input-area input {
    font-size: 16px !important;
  }
}

@media (max-width: 480px) {
  .section {
    padding: 4rem 0;
  }
  .section-title {
    font-size: 2rem;
  }
  .hero-title {
    font-size: 2.1rem;
  }
  .hero-subtitle {
    font-size: 1rem;
    margin-bottom: 2rem;
  }
  .about-text h3 {
    font-size: 1.5rem;
  }
  .about-graphic {
    padding: 1.5rem;
  }
  .about-badge-grid {
    grid-template-columns: 1fr;
    gap: 1rem;
  }
}

/* AI Chatbot Styles */
.chatbot-wrapper {
  position: fixed;
  bottom: 30px;
  right: 30px;
  z-index: 9999;
  display: flex;
  flex-direction: column;
  align-items: flex-end;
  font-family: var(--font-body);
}

.chatbot-toggle {
  width: 60px;
  height: 60px;
  border-radius: 50%;
  background-color: var(--accent-blue);
  background-image: var(--accent-glow);
  color: white;
  border: none;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 4px 25px rgba(0, 210, 255, 0.4);
  transition: all var(--transition-normal);
  position: relative;
  z-index: 2;
}

.chatbot-toggle:hover {
  transform: scale(1.08) rotate(5deg);
  box-shadow: 0 6px 30px rgba(157, 0, 255, 0.5);
}

.chatbot-toggle svg {
  transition: transform 0.3s ease;
}

.chatbot-container {
  position: absolute;
  bottom: 80px;
  right: 0;
  width: 380px;
  height: 520px;
  max-height: calc(100vh - 120px);
  background: rgba(10, 14, 23, 0.95);
  border: 1px solid var(--border-light);
  border-radius: 16px;
  box-shadow: 0 12px 50px rgba(0, 0, 0, 0.5);
  display: flex;
  flex-direction: column;
  overflow: hidden;
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  opacity: 0;
  pointer-events: none;
  transform: translateY(20px);
  transition: all 0.3s cubic-bezier(0.16, 1, 0.3, 1);
  z-index: 1;
}

.chatbot-container.open {
  opacity: 1;
  pointer-events: all;
  transform: translateY(0);
}

.chatbot-header {
  padding: 1.2rem 1.5rem;
  background: rgba(255, 255, 255, 0.02);
  border-bottom: 1px solid var(--border-light);
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.chatbot-header-info {
  display: flex;
  align-items: center;
  gap: 0.75rem;
}

.chatbot-avatar {
  width: 36px;
  height: 36px;
  border-radius: 50%;
  background-color: var(--accent-blue);
  background-image: var(--accent-glow);
  color: white;
  font-family: var(--font-heading);
  font-weight: 700;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.1rem;
}

.chatbot-header-info h4 {
  font-size: 0.95rem;
  margin: 0;
  font-family: var(--font-heading);
}

.chatbot-status {
  font-size: 0.75rem;
  color: var(--text-secondary);
  display: flex;
  align-items: center;
  gap: 0.35rem;
  margin-top: 0.1rem;
}

.status-dot {
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: #10B981;
  box-shadow: 0 0 6px #10B981;
  display: inline-block;
  animation: pulse 2s infinite;
}

.chatbot-close-btn {
  background: none;
  border: none;
  color: var(--text-secondary);
  cursor: pointer;
  padding: 0.5rem;
  transition: color var(--transition-fast);
  min-width: 44px;
  min-height: 44px;
  display: flex;
  align-items: center;
  justify-content: center;
}

.chatbot-close-btn:hover {
  color: var(--accent-blue);
}

.chatbot-messages {
  flex: 1;
  padding: 1.5rem;
  overflow-y: auto;
  display: flex;
  flex-direction: column;
  gap: 1rem;
}

/* Chat Bubbles */
.chat-bubble {
  max-width: 80%;
  padding: 0.85rem 1.1rem;
  border-radius: 12px;
  font-size: 0.9rem;
  line-height: 1.5;
  word-wrap: break-word;
}

.bot-message {
  align-self: flex-start;
  background: rgba(255, 255, 255, 0.03);
  border: 1px solid var(--border-light);
  color: var(--text-primary);
  border-bottom-left-radius: 2px;
}

.user-message {
  align-self: flex-end;
  background-color: var(--accent-blue);
  background-image: var(--accent-glow);
  color: white;
  border-bottom-right-radius: 2px;
  box-shadow: 0 2px 10px rgba(0, 210, 255, 0.15);
}

.chatbot-input-area {
  padding: 1rem 1.25rem;
  background: rgba(255, 255, 255, 0.01);
  border-top: 1px solid var(--border-light);
  display: flex;
  gap: 0.75rem;
}

.chatbot-input-area input {
  flex: 1;
  background: rgba(255, 255, 255, 0.02);
  border: 1px solid var(--border-light);
  border-radius: 8px;
  padding: 0.75rem 1rem;
  color: var(--text-primary);
  font-family: var(--font-body);
  font-size: 0.9rem;
  outline: none;
  transition: border-color var(--transition-fast);
}

.chatbot-input-area input:focus {
  border-color: var(--accent-blue);
}

.chatbot-input-area button {
  background-color: var(--accent-blue);
  background-image: var(--accent-glow);
  color: white;
  border: none;
  border-radius: 8px;
  width: 40px;
  height: 40px;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  transition: transform var(--transition-fast);
}

.chatbot-input-area button:hover {
  transform: scale(1.05);
}

/* Typing Loading Dots */
.typing-indicator {
  display: flex;
  gap: 4px;
  padding: 0.5rem 0.25rem;
  align-items: center;
}

.typing-indicator span {
  width: 6px;
  height: 6px;
  background: var(--text-secondary);
  border-radius: 50%;
  animation: typingBounce 1.4s infinite ease-in-out both;
}

.typing-indicator span:nth-child(1) { animation-delay: -0.32s; }
.typing-indicator span:nth-child(2) { animation-delay: -0.16s; }

@keyframes typingBounce {
  0%, 80%, 100% { transform: scale(0); }
  40% { transform: scale(1); }
}

/* Custom Scrollbar for Messages */
.chatbot-messages::-webkit-scrollbar {
  width: 6px;
}
.chatbot-messages::-webkit-scrollbar-track {
  background: transparent;
}
.chatbot-messages::-webkit-scrollbar-thumb {
  background: rgba(255, 255, 255, 0.05);
  border-radius: 3px;
}
.chatbot-messages::-webkit-scrollbar-thumb:hover {
  background: rgba(255, 255, 255, 0.15);
}

/* Responsive adjustment for Mobile view */
@media (max-width: 768px) {
  .chatbot-wrapper {
    bottom: 15px;
    right: 15px;
  }
  .chatbot-container {
    bottom: 70px;
    width: calc(100vw - 30px);
    height: 450px;
    max-height: calc(100vh - 100px);
  }
  .chatbot-wrapper.open {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    width: 100vw;
    height: 100vh;
    z-index: 10000;
  }
  .chatbot-wrapper.open .chatbot-toggle {
    display: none !important;
  }
  .chatbot-wrapper.open .chatbot-container {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    width: 100vw;
    height: 100vh;
    max-height: 100vh;
    border-radius: 0;
    border: none;
    z-index: 10001;
  }
}

