/* ============================================
  eDatagain - MAIN STYLESHEET
  ============================================ */

/* -------------- CSS Custom Properties -------------- */
:root {
  /* Color Palette - Light Theme */
  --clr-primary: #1e40af;
  --clr-primary-dark: #1e3a8a;
  --clr-primary-light: #3b82f6;
  --clr-accent: #1e40af;
  --clr-accent-soft: #1e3a8a;
  --clr-accent-orange: #f97316;
  --clr-bg-dark: #ffffff;
  --clr-bg-card: rgba(255, 255, 255, 0.9);
  --clr-text-primary: #0f172a;
  --clr-text-secondary: #475569;
  --clr-text-muted: #64748b;

  /* Fluorescent Colors for About Section */
  --clr-fluorescent-pink: #ff0080;
  --clr-fluorescent-cyan: #00ffff;
  --clr-fluorescent-lime: #ccff00;
  --clr-fluorescent-purple: #bf00ff;
  --clr-fluorescent-orange: #ff6600;
  --clr-fluorescent-blue: #0099ff;

  /* Gradients */
  --grad-primary: linear-gradient(135deg, var(--clr-primary), var(--clr-primary-light));
  --grad-hero: linear-gradient(135deg, #ffffff 0%, #f0f9ff 50%, #ffffff 100%);
  --grad-accent: linear-gradient(135deg, var(--clr-accent), var(--clr-accent-soft));
  --grad-card: linear-gradient(135deg, rgba(255, 255, 255, 0.95), rgba(249, 250, 251, 0.9));

  /* Typography */
  --font-sans: ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, 'Helvetica Neue', Arial, 'Noto Sans', 'Inter', sans-serif, 'Apple Color Emoji', 'Segoe UI Emoji', 'Segoe UI Symbol', 'Noto Color Emoji';
  --font-serif: ui-serif, Georgia, Cambria, 'Times New Roman', Times, 'Lora', serif;
  --font-mono: ui-monospace, SFMono-Regular, Menlo, Monaco, Consolas, 'Liberation Mono', 'Space Mono', 'Courier New', monospace;
  --font-space-grotesk: 'Space Grotesk', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
  --font-base: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
  --font-size-xs: 0.75rem;
  /* 12px */
  --font-size-sm: 0.875rem;
  /* 14px */
  --font-size-base: 1rem;
  /* 16px */
  --font-size-lg: 1.125rem;
  /* 18px */
  --font-size-xl: 1.25rem;
  /* 20px */
  --font-size-2xl: 1.5rem;
  /* 24px */
  --font-size-3xl: 1.875rem;
  /* 30px */
  --font-size-4xl: 2.25rem;
  /* 36px */
  --font-size-5xl: 3rem;
  /* 48px */

  /* Spacing (8-point system) */
  --space-1: 0.5rem;
  /* 8px */
  --space-2: 1rem;
  /* 16px */
  --space-3: 1.5rem;
  /* 24px */
  --space-4: 2rem;
  /* 32px */
  --space-5: 2.5rem;
  /* 40px */
  --space-6: 3rem;
  /* 48px */
  --space-8: 4rem;
  /* 64px */
  --space-10: 5rem;
  /* 80px */

  /* Border Radius */
  --radius-sm: 0.375rem;
  /* 6px */
  --radius-md: 0.5rem;
  /* 8px */
  --radius-lg: 0.75rem;
  /* 12px */
  --radius-xl: 1rem;
  /* 16px */
  --radius-full: 9999px;

  /* Shadows */
  --shadow-sm: 0 1px 3px 0 rgba(0, 0, 0, 0.1);
  --shadow-md: 0 4px 6px -1px rgba(0, 0, 0, 0.15);
  --shadow-lg: 0 10px 20px -3px rgba(0, 0, 0, 0.2);
  --shadow-xl: 0 20px 30px -5px rgba(0, 0, 0, 0.25);
  --shadow-glow: 0 0 20px rgba(94, 234, 212, 0.5);
  --shadow-fluorescent-pink: 0 0 30px rgba(255, 0, 128, 0.6);
  --shadow-fluorescent-cyan: 0 0 30px rgba(0, 255, 255, 0.6);
  --shadow-fluorescent-lime: 0 0 30px rgba(204, 255, 0, 0.6);
  --shadow-fluorescent-purple: 0 0 30px rgba(191, 0, 255, 0.6);
  --shadow-fluorescent-pink-soft: 0 0 18px rgba(255, 0, 128, 0.18);
  --shadow-fluorescent-cyan-soft: 0 0 18px rgba(0, 255, 255, 0.18);
  --shadow-fluorescent-lime-soft: 0 0 18px rgba(204, 255, 0, 0.18);
  --shadow-fluorescent-purple-soft: 0 0 18px rgba(191, 0, 255, 0.18);

  /* Transitions */
  --transition-fast: 150ms ease-in-out;
  --transition-base: 250ms ease-in-out;
  --transition-slow: 400ms ease-in-out;

  /* Z-index */
  --z-dropdown: 1000;
  --z-sticky: 1020;
  --z-fixed: 1030;
  --z-modal: 1040;
  --z-toast: 1050;
}

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

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

body {
  font-family: var(--font-space-grotesk);
    /* font-family: var(--font-sans); */
  background: var(--clr-bg-dark);
  color: var(--clr-text-primary);
  line-height: 1.6;
  overflow-x: hidden;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

h1,
h2,
h3,
h4,
h5,
h6 {
  font-family: var(--font-space-grotesk);
  font-weight: 600;
}

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

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

button {
  font-family: inherit;
  cursor: pointer;
  border: none;
  background: none;
}

ul {
  list-style: none;
}

/* -------------- Utility Classes -------------- */
.section {
  min-height: auto;
  font-family: var(--font-space-grotesk);
  padding: 15px var(--space-4) 15px var(--space-4);
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  position: relative;
}

.section-container {
  font-family: var(--font-space-grotesk);
  width: 100%;
  max-width: 100%;
  margin: 0;
  padding-left: var(--space-4);
  padding-right: var(--space-4);
}

.section-title {
  font-family: var(--font-space-grotesk);
  font-size: var(--font-size-4xl);
  font-weight: 700;
  text-align: center;
  margin-bottom: var(--space-3);
  background: var(--grad-accent);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

.section-subtitle {
  font-family: var(--font-space-grotesk);
  font-size: var(--font-size-lg);
  color: var(--clr-text-secondary);
  text-align: center;
  margin-bottom: 15px;
  max-width: 1000px;
  margin-left: auto;
  margin-right: auto;
}

/* -------------- Navigation -------------- */
.navbar {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: var(--z-fixed);
  background: rgba(255, 255, 255, 0.7);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  transition: background var(--transition-base);
  border-bottom: 1px solid rgba(0, 0, 0, 0.1);
}

.navbar.scrolled {
  background: rgba(255, 255, 255, 0.95);
  box-shadow: var(--shadow-md);
}

.navbar-container {
  max-width: 100%;
  margin: 0;
  padding: var(--space-2) var(--space-4);
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.logo {
  display: flex;
  align-items: center;
  gap: var(--space-1);
  font-size: var(--font-size-xl);
  font-weight: 700;
}

.logo-icon {
  font-size: var(--font-size-2xl);
}

.nav-links {
  display: flex;
  gap: var(--space-4);
  align-items: center;
}

.nav-link {
  font-size: var(--font-size-base);
  font-weight: 500;
  padding: var(--space-1) var(--space-2);
  border-radius: var(--radius-md);
  transition: all var(--transition-base);
  position: relative;
  text-decoration-color: #e0e0e0;
}

/* Keep menu item text white on hover */
.nav-link:hover {
  color: #ffffff;
}

.nav-link::after {
  content: '';
  position: absolute;
  bottom: 0;
  left: 50%;
  width: 0;
  height: 2px;
  background: var(--grad-accent);
  transition: all var(--transition-base);
  transform: translateX(-50%);
}

.nav-link:hover::after {
  width: 80%;
  background: #ffffff;
}

.nav-link-cta {
  background: var(--grad-accent);
  padding: var(--space-1) var(--space-3);
  border-radius: var(--radius-lg);
}

.nav-link-cta::after {
  display: none;
}

.nav-link-cta:hover {
  transform: translateY(-2px);
  box-shadow: var(--shadow-glow);
  color: var(--clr-text-primary);
}

/* Highlight selected menu item */
.nav-link.active {
  color: #ffffff;
}

.nav-link.active::after {
  width: 80%;
  background: #ffffff;
}

.hamburger {
  display: none;
  flex-direction: column;
  gap: 4px;
  padding: var(--space-1);
}

.hamburger-line {
  width: 24px;
  height: 2px;
  background: var(--clr-text-primary);
  transition: all var(--transition-base);
  border-radius: var(--radius-full);
}

/* -------------- Hero Section -------------- */
.hero {
  background: linear-gradient(rgba(0, 0, 0, 0.7), rgba(0, 0, 0, 0.4)), url('../assets/images/hero-industrial-automation-ai.png') center/cover no-repeat;
  position: relative;
  overflow: hidden;
  text-align: center;
  display: flex;
  align-items: center;
  justify-content: center;
  min-height: 100vh;
  padding: 0;
}

.particles-canvas {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  opacity: 0.3;
  z-index: 1;
}

.hero-wrapper {
  position: absolute;
  z-index: 3;
  display: flex;
  align-items: center;
  gap: var(--space-8);
  width: 100%;
  max-width: 1400px;
  margin: 0 auto;
  padding-left: var(--space-4);
  padding-right: var(--space-4);
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
}

.hero-content {
  position: relative;
  z-index: 4;
  flex: 1;
  min-width: 0;
}

.hero-image {
  flex: 1;
  min-width: 0;
  display: none;
}

.hero-img {
  width: 100%;
  height: auto;
  aspect-ratio: 16 / 9;
  object-fit: cover;
  border-radius: var(--radius-xl);
  box-shadow: var(--shadow-xl);
  transition: transform var(--transition-slow);
}

.hero-img:hover {
  transform: scale(1.02);
}

.hero-title {
  font-family: var(--font-space-grotesk);
  font-size: var(--font-size-5xl);
  font-weight: 700;
  margin-bottom: var(--space-3);
  line-height: 1.1;
  color: #ffffff;
}

.hero-subtitle {
  font-family: var(--font-space-grotesk);
  font-size: var(--font-size-2xl);
  color: #ffffff;
  margin-bottom: var(--space-2);
  font-weight: 600;
}

.hero-description {
  font-family: var(--font-space-grotesk);
  font-size: var(--font-size-lg);
  color: #e0e0e0;
  margin-bottom: 15px;
  max-width: 700px;
  margin-left: auto;
  margin-right: auto;
}

.hero-animation {
  position: absolute;
  top: 50%;
  right: 5%;
  transform: translateY(-50%);
  width: 400px;
  height: 400px;
  opacity: 0.6;
  pointer-events: none;
}

/* -------------- Buttons -------------- */
.cta-btn {
  display: inline-flex;
  align-items: center;
  gap: var(--space-1);
  padding: var(--space-2) var(--space-5);
  font-size: var(--font-size-lg);
  font-weight: 600;
  border-radius: var(--radius-lg);
  transition: all var(--transition-base);
  position: relative;
  overflow: hidden;
  color: #ffffff;
}

.cta-btn::before {
  content: '';
  position: absolute;
  top: 0;
  left: -100%;
  width: 100%;
  height: 100%;
  text-align: center;
  background: rgba(255, 255, 255, 0.1);
  transition: left var(--transition-slow);
}

.cta-btn:hover::before {
  left: 100%;
}

.cta-btn-primary {
  background: var(--grad-accent);
  color: #ffffff;
  box-shadow: var(--shadow-lg);
}

.cta-btn-primary:hover {
  transform: translateY(-2px);
  box-shadow: var(--shadow-xl), var(--shadow-glow);
}

.cta-btn-secondary {
  background: var(--grad-primary);
  color: #ffffff;
  border: 2px solid var(--clr-accent-soft);
}

.cta-btn-secondary:hover {
  background: var(--grad-accent);
  transform: scale(1.05);
}

.cta-btn-accent {
  background: var(--clr-accent-orange);
  color: #ffffff;
}

.cta-btn-accent:hover {
  background: #ea580c;
  transform: scale(1.05);
}

.cta-icon {
  transition: transform var(--transition-base);
}

.cta-btn:hover .cta-icon {
  transform: translateX(4px);
}

/* -------------- Services Section -------------- */
.services-section {
  background: linear-gradient(135deg, rgba(255, 0, 128, 0.08) 0%, rgba(0, 255, 255, 0.08) 100%);
}

.cards-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 15px;
  margin-top: 15px;
}

.service-card {
  font-family: var(--font-space-grotesk);
  background: var(--grad-card);
  backdrop-filter: blur(10px);
  border: 2px solid rgba(30, 64, 175, 0.15);
  border-radius: var(--radius-xl);
  /* Reduced padding and height for a more compact card */
  padding: var(--space-2);
  transition: all var(--transition-base);
  position: relative;
  overflow: hidden;
  box-shadow: var(--shadow-sm);
  display: flex;
  flex-direction: column;
  min-height: 255px;
}

.service-card::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: var(--grad-accent);
  opacity: 0;
  transition: opacity var(--transition-base);
  z-index: -1;
}

.service-card:hover {
  transform: translateY(-8px);
  border-color: var(--clr-accent-soft);
  box-shadow: var(--shadow-xl), var(--shadow-glow);
}

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

.card-featured {
  border-color: var(--clr-accent);
  box-shadow: var(--shadow-lg);
  animation: pulse-highlight 3s ease-in-out infinite;
}

.card-badge {
  position: absolute;
  top: var(--space-2);
  right: var(--space-2);
  background: var(--clr-accent-orange);
  color: #ffffff;
  padding: var(--space-1) var(--space-2);
  border-radius: var(--radius-full);
  font-size: var(--font-size-xs);
  font-weight: 600;
  text-transform: uppercase;
}

.card-icon {
  width: 80px;
  height: 80px;
  margin: 0 auto var(--space-3);
  background: var(--grad-accent);
  border-radius: var(--radius-lg);
  display: flex;
  align-items: center;
  justify-content: center;
  color: #ffffff;
  font-size: 2.5rem;
  transition: all var(--transition-base);
}

.card-icon svg {
  width: 50px;
  height: 50px;
  stroke-width: 2.5;
  color: currentColor;
  transition: transform var(--transition-base);
}

.service-card:hover .card-icon svg {
  transform: scale(1.1) rotate(5deg);
}

.card-title {
  font-family: var(--font-space-grotesk);
  font-size: var(--font-size-2xl);
  font-weight: 700;
  margin-bottom: var(--space-2);
  text-align: center;
}

.card-description {
  color: var(--clr-text-secondary);
  margin-bottom: var(--space-3);
  text-align: center;
}

.card-features {
  margin-bottom: var(--space-4);
  flex: 1;
  font-size: var(--font-size-sm);
}

.card-features li {
  padding: var(--space-1) 0;
  color: var(--clr-text-secondary);
  position: relative;
  padding-left: var(--space-3);
  font-size: var(--font-size-sm);
}

.card-features li::before {
  content: '✓';
  position: absolute;
  left: 0;
  color: var(--clr-accent);
  font-weight: 700;
}

.card-btn {
  padding: var(--space-2) var(--space-4);
  margin-top: auto;
  font-size: var(--font-size-sm);
  color: #0E3B43;
}

.card-link {
  color: var(--clr-primary);
  font-weight: 600;
  display: flex;
  align-items: center;
  gap: var(--space-1);
  justify-content: center;
  transition: gap var(--transition-fast);
}

.card-link:hover {
  gap: var(--space-2);
  color: var(--clr-accent);
}

/* -------------- Training Section -------------- */
.training-section {
  background: linear-gradient(135deg, rgba(204, 255, 0, 0.08) 0%, rgba(191, 0, 255, 0.08) 100%);
}

.timeline {
  max-width: 800px;
  margin: var(--space-6) auto 0;
  position: relative;
}

.timeline::before {
  content: '';
  position: absolute;
  left: 30px;
  top: 0;
  bottom: 0;
  width: 2px;
  background: var(--grad-accent);
}

.timeline-item {
  display: flex;
  gap: var(--space-4);
  margin-bottom: 15px;
  position: relative;
}

.timeline-marker {
  width: 60px;
  height: 60px;
  background: var(--grad-accent);
  border-radius: var(--radius-full);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: var(--font-size-2xl);
  font-weight: 700;
  color: white;
  flex-shrink: 0;
  box-shadow: var(--shadow-glow);
  z-index: 2;
}

.timeline-content {
  font-family: var(--font-space-grotesk);
  background: #ffffff;
  border: 1px solid rgba(30, 64, 175, 0.1);
  border-radius: var(--radius-xl);
  padding: var(--space-4);
  flex: 1;
  transition: all var(--transition-base);
  box-shadow: var(--shadow-sm);
}

.timeline-content:hover {
  border-color: var(--clr-accent-soft);
  box-shadow: var(--shadow-lg);
  transform: translateX(8px);
}

.timeline-title {
  font-family: var(--font-space-grotesk);
  font-size: var(--font-size-xl);
  font-weight: 700;
  margin-bottom: var(--space-1);
}

.timeline-duration {
  color: var(--clr-accent-soft);
  font-size: var(--font-size-sm);
  margin-bottom: var(--space-2);
}

.timeline-description {
  color: var(--clr-text-secondary);
  margin-bottom: var(--space-3);
}

.timeline-topics {
  margin-bottom: var(--space-3);
}

.timeline-topics li {
  padding: var(--space-1) 0;
  color: var(--clr-text-secondary);
  position: relative;
  padding-left: var(--space-3);
  font-size: var(--font-size-sm);
}

.timeline-topics li::before {
  content: '→';
  position: absolute;
  left: 0;
  color: var(--clr-accent);
}

.timeline-btn {
  padding: var(--space-1) var(--space-3);
  background: var(--grad-accent);
  color: #ffffff;
  border-radius: var(--radius-md);
  font-weight: 600;
  transition: all var(--transition-base);
}

.timeline-btn:hover {
  transform: scale(1.05);
  box-shadow: var(--shadow-glow);
}

/* -------------- Recruiting Section -------------- */
.recruiting-section {
  background: linear-gradient(135deg, rgba(0, 255, 255, 0.08) 0%, rgba(0, 153, 255, 0.08) 100%);
}

.recruiting-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: var(--space-8);
  align-items: center;
  margin-top: 15px;
}

.recruiting-visual {
  position: relative;
}

.recruiting-animation {
  width: 100%;
  max-width: 500px;
  aspect-ratio: 1;
  background: var(--grad-card);
  border-radius: var(--radius-xl);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: var(--font-size-5xl);
}

.recruiting-content {
  text-align: left;
}

.recruiting-intro {
  color: var(--clr-text-secondary);
  margin-bottom: var(--space-4);
  font-size: var(--font-size-lg);
}

.recruiting-features {
  display: flex;
  flex-direction: column;
  gap: var(--space-3);
  margin-bottom: var(--space-5);
}

.feature-item {
  display: flex;
  gap: var(--space-3);
  padding: var(--space-3);
  background: #f8fafc;
  border-radius: var(--radius-lg);
  border: 1px solid rgba(30, 64, 175, 0.1);
  transition: all var(--transition-base);
}

.feature-item:hover {
  border-color: var(--clr-accent-soft);
  transform: translateX(8px);
}

.feature-icon {
  font-size: var(--font-size-3xl);
  flex-shrink: 0;
}

.feature-text h4 {
  font-size: var(--font-size-lg);
  margin-bottom: var(--space-1);
}

.feature-text p {
  color: var(--clr-text-secondary);
  font-size: var(--font-size-sm);
}

/* -------------- About Section -------------- */
.about-section {
  background: linear-gradient(135deg, rgba(191, 0, 255, 0.08) 0%, rgba(255, 102, 0, 0.08) 100%);
  /* keep sections comfortably spaced with fluorescent gradient */
  padding-top: var(--space-8);
  padding-bottom: var(--space-8);
}

.about-content {
  margin-top: 15px;
  display: flex;
  gap: var(--space-8);
  align-items: stretch;
}

.about-text-wrapper {
  flex: 1;
  min-width: 0;
  padding: var(--space-5);
  background: rgba(94, 234, 212, 0.03);
  background-color: rgba(94, 234, 212, 0.03);
  border: 4px solid rgba(94, 234, 212, 0.2);
  border-radius: var(--radius-xl);
  backdrop-filter: blur(10px);
  transition: all 0.6s ease-in-out;
  animation: borderGlow 3s ease-in-out infinite;
  display: flex;
  flex-direction: column;
  justify-content: flex-start;
}

.about-text-wrapper:hover {
  border-color: rgba(94, 234, 212, 0.4);
  background: rgba(94, 234, 212, 0.05);
  box-shadow: 0 0 20px rgba(94, 234, 212, 0.15);
}

.about-text {
  flex: 1;
  min-width: 0;
}

/* Infolets Grid Styling */
.about-infolets-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
  gap: var(--space-5);
  margin-bottom: 15px;
  width: 100%;
}

.infolet-card {
  padding: var(--space-6);
  background: var(--clr-bg-card);
  border: 2px solid rgba(30, 64, 175, 0.1);
  border-radius: var(--radius-lg);
  text-align: center;
  transition: all var(--transition-base);
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: var(--space-3);
  cursor: pointer;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.05);
}

.infolet-card:hover {
  transform: translateY(-8px);
  border-color: var(--clr-accent);
  box-shadow: 0 12px 32px rgba(30, 64, 175, 0.15);
  background: linear-gradient(135deg, rgba(59, 130, 246, 0.02), rgba(94, 234, 212, 0.02));
}

.infolet-icon {
  font-size: 2.5rem;
  line-height: 1;
  transition: transform 0.3s ease-in-out;
}

.infolet-card:hover .infolet-icon {
  transform: scale(1.15);
}

.infolet-title {
  font-family: var(--font-space-grotesk);
  font-size: var(--font-size-lg);
  font-weight: 700;
  color: var(--clr-accent);
  margin: 0;
  line-height: 1.4;
}

.infolet-text {
  font-family: var(--font-space-grotesk);
  font-size: var(--font-size-sm);
  color: var(--clr-text-secondary);
  line-height: 1.6;
  margin: 0;
  flex-grow: 1;
}

.about-stats-container {
  flex: 1;
  min-width: 0;
  display: flex;
  flex-direction: column;
  justify-content: flex-start;
}

.about-stats {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: var(--space-4);
  margin-top: 15px;
  min-height: 140px;

}

.stat-item {
  text-align: center;
  padding: var(--space-4);
  transition: all var(--transition-base);
  position: relative;
  background: rgba(30, 64, 175, 0.05);
  border: 2px solid rgba(30, 64, 175, 0.1);
  border-radius: var(--radius-lg);
  backdrop-filter: blur(10px);
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  min-height: 140px;
}

.stat-item:hover {
  transform: translateY(-4px);
  background: rgba(30, 64, 175, 0.08);
  border-color: rgba(94, 234, 212, 0.3);
  box-shadow: 0 8px 24px rgba(30, 64, 175, 0.1);
}

.stat-icon {
  font-size: var(--font-size-3xl);
  display: block;
  margin-bottom: var(--space-2);
  animation: float 3s ease-in-out infinite;
}

.stat-item:nth-child(1) .stat-icon {
  animation-delay: 0s;
}

.stat-item:nth-child(2) .stat-icon {
  animation-delay: 0.3s;
}

.stat-item:nth-child(3) .stat-icon {
  animation-delay: 0.6s;
}

.stat-item:nth-child(4) .stat-icon {
  animation-delay: 0.9s;
}

@keyframes float {

  0%,
  100% {
    transform: translateY(0px);
  }

  50% {
    transform: translateY(-10px);
  }
}

.stat-number {
  font-size: var(--font-size-5xl);
  font-weight: 700;
  margin-bottom: var(--space-2);
  color: var(--clr-accent);
  font-variant-numeric: tabular-nums;
  min-height: 60px;
  display: flex;
  align-items: center;
  justify-content: center;
}

.stat-label {
  color: var(--clr-text-secondary);
  font-size: var(--font-size-base);
  font-weight: 600;
}

.clients-section {
  margin-bottom: 15px;
}

.clients-title {
  font-family: var(--font-space-grotesk);
  text-align: center;
  font-size: var(--font-size-xl);
  margin-bottom: var(--space-4);
  color: var(--clr-text-secondary);
}

.clients-carousel {
  display: flex;
  justify-content: center;
  gap: var(--space-6);
  flex-wrap: wrap;
}

.client-logo {
  padding: var(--space-3) var(--space-5);
  background: linear-gradient(135deg, rgba(0, 153, 255, 0.04), rgba(255, 0, 128, 0.03)), var(--grad-card);
  border-radius: var(--radius-lg);
  font-weight: 600;
  font-size: var(--font-size-lg);
  color: var(--clr-text-secondary);
  transition: all var(--transition-base);
  box-shadow: var(--shadow-md), var(--shadow-fluorescent-cyan-soft);
}

.client-logo:hover {
  color: var(--clr-accent-soft);
  transform: scale(1.05);
}

.testimonials {
  display: flex;
  gap: var(--space-4);
  animation: autoScroll 40s linear infinite;
  will-change: transform;
}

.testimonials:hover {
  animation-play-state: paused;
}

.testimonials-carousel {
  overflow: visible;
  width: 100%;
  padding: var(--space-4) 0;
  margin: var(--space-4) 0;
}

.testimonials-wrapper {
  margin-top: 50px;
  margin-bottom: 30px;
  padding: var(--space-8) var(--space-4);
  border-top: 2px solid rgba(30, 64, 175, 0.1);
  border-radius: var(--radius-lg);
}

.testimonials-title {
  font-family: var(--font-space-grotesk);
  font-size: var(--font-size-2xl);
  font-weight: 700;
  margin-bottom: var(--space-6);
  text-align: center;
}

.testimonial-card {
  background: linear-gradient(135deg, rgba(255, 255, 255, 0.99), rgba(250, 250, 255, 0.98));
  border: 1px solid rgba(30, 64, 175, 0.06);
  border-radius: var(--radius-xl);
  padding: var(--space-5);
  transition: all var(--transition-base);
  box-shadow: var(--shadow-md), var(--shadow-fluorescent-purple-soft);
  min-width: 250px;
  flex-shrink: 0;
}

.testimonial-card:hover {
  border-color: var(--clr-accent-soft);
  transform: translateY(-4px);
}

.testimonial-text {
  font-family: var(--font-space-grotesk);
  font-size: var(--font-size-lg);
  color: var(--clr-text-secondary);
  margin-bottom: var(--space-3);
  font-style: italic;
  line-height: 1.7;
}

.testimonial-author {
  display: flex;
  flex-direction: column;
  gap: var(--space-1);
}

.testimonial-author strong {
  color: var(--clr-text-primary);
  font-size: var(--font-size-base);
}

.testimonial-author span {
  color: var(--clr-text-muted);
  font-size: var(--font-size-sm);
}

/* -------------- Contact Section -------------- */
.contact-section {
  background: linear-gradient(135deg, rgba(255, 102, 0, 0.08) 0%, rgba(255, 0, 128, 0.08) 100%);
}

.contact-form {
  font-family: var(--font-space-grotesk);
  max-width: 700px;
  margin: var(--space-6) auto 0;
}

.form-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: var(--space-3);
  margin-bottom: var(--space-3);
}

.form-group {
  display: flex;
  flex-direction: column;
  gap: var(--space-1);
}

.form-label {
  font-size: var(--font-size-sm);
  font-weight: 600;
  color: var(--clr-text-secondary);
}

.form-input,
.form-select,
.form-textarea {
  padding: var(--space-2);
  background: #ffffff;
  border: 1px solid rgba(30, 64, 175, 0.2);
  border-radius: var(--radius-md);
  color: var(--clr-text-primary);
  font-size: var(--font-size-base);
  transition: all var(--transition-base);
}

.form-input:focus,
.form-select:focus,
.form-textarea:focus {
  outline: none;
  border-color: var(--clr-accent-soft);
  box-shadow: 0 0 0 3px rgba(94, 234, 212, 0.1);
}

.form-input::placeholder,
.form-textarea::placeholder {
  color: var(--clr-text-muted);
}

.form-select {
  cursor: pointer;
}

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

.form-error {
  font-size: var(--font-size-xs);
  color: #ef4444;
  min-height: 18px;
}

.form-submit {
  width: 100%;
  margin-top: var(--space-3);
}

.btn-loader {
  display: inline-flex;
  align-items: center;
}

.spinner {
  animation: spin 1s linear infinite;
}

@keyframes spin {
  to {
    transform: rotate(360deg);
  }
}

/* -------------- Blog Section -------------- */
.blog-section {
  background: linear-gradient(135deg, rgba(255, 153, 0, 0.08) 0%, rgba(204, 255, 0, 0.08) 100%);
}

.blog-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
  gap: var(--space-4);
  margin-top: 15px;
}

.blog-card {
  background: #ffffff;
  border-radius: var(--radius-xl);
  overflow: hidden;
  transition: all var(--transition-base);
  box-shadow: var(--shadow-md);
  display: flex;
  flex-direction: column;
}

.blog-card:hover {
  transform: translateY(-8px);
  box-shadow: var(--shadow-lg);
}

.blog-image {
  width: 100%;
  height: 200px;
  background-size: cover;
  background-position: center;
}

.blog-content {
  padding: var(--space-4);
  display: flex;
  flex-direction: column;
  flex: 1;
}

.blog-meta {
  display: flex;
  gap: var(--space-2);
  margin-bottom: var(--space-2);
  font-size: var(--font-size-sm);
}

.blog-date {
  color: var(--clr-accent-soft);
  font-weight: 600;
}

.blog-category {
  background: var(--clr-primary);
  color: #ffffff;
  padding: 0.25rem var(--space-1);
  border-radius: var(--radius-md);
  font-weight: 600;
}

.blog-title {
  font-family: var(--font-space-grotesk);
  font-size: var(--font-size-xl);
  font-weight: 700;
  margin-bottom: var(--space-2);
  color: var(--clr-text-primary);
  line-height: 1.3;
}

.blog-excerpt {
  color: var(--clr-text-secondary);
  margin-bottom: var(--space-3);
  flex: 1;
  font-size: var(--font-size-sm);
  line-height: 1.6;
}

.blog-link {
  color: var(--clr-primary);
  font-weight: 600;
  transition: all var(--transition-base);
  display: inline-block;
}

.blog-link:hover {
  color: var(--clr-accent-soft);
  transform: translateX(4px);
}

/* -------------- Newsletter Section -------------- */
.newsletter-section {
  background: linear-gradient(135deg, rgba(204, 255, 0, 0.08) 0%, rgba(0, 255, 255, 0.08) 100%);
  min-height: auto;
  padding: 15px var(--space-4);
  border-top: 1px solid rgba(30, 64, 175, 0.05);
  border-bottom: 1px solid rgba(30, 64, 175, 0.05);
}

.newsletter-container {
  max-width: 100%;
  margin: 0;
  padding-left: var(--space-4);
  padding-right: var(--space-4);
  text-align: center;
}

.newsletter-title {
  font-family: var(--font-space-grotesk);
  font-size: var(--font-size-3xl);
  font-weight: 700;
  margin-bottom: var(--space-2);
}

.newsletter-subtitle {
  font-family: var(--font-space-grotesk);
  color: var(--clr-text-secondary);
  margin-bottom: var(--space-4);
}

.newsletter-form {
  max-width: 600px;
  margin: 0 auto;
}

.newsletter-input-group {
  display: flex;
  gap: var(--space-2);
}

.newsletter-input {
  flex: 1;
  padding: var(--space-2) var(--space-3);
  background: #ffffff;
  border: 1px solid rgba(30, 64, 175, 0.1);
  border-radius: var(--radius-lg);
  color: var(--clr-text-primary);
  font-size: var(--font-size-base);
  transition: all var(--transition-base);
}

.newsletter-input:focus {
  outline: none;
  border-color: var(--clr-accent-soft);
  box-shadow: 0 0 0 3px rgba(94, 234, 212, 0.1);
}

/* -------------- Footer -------------- */
.footer {
  font-family: var(--font-space-grotesk);
  background: #ffffff;
  padding: var(--space-8) var(--space-4) var(--space-4);
  border-top: 1px solid rgba(30, 64, 175, 0.1);
}

.footer-container {
  max-width: 100%;
  margin: 0;
  padding-left: var(--space-4);
  padding-right: var(--space-4);
}

.footer-grid {
  display: grid;
  grid-template-columns: 2fr 1fr 1fr 1fr 1fr;
  gap: var(--space-6);
  margin-bottom: 15px;
}

.footer-brand {
  display: flex;
  flex-direction: column;
  gap: var(--space-2);
}

.footer-tagline {
  color: var(--clr-text-secondary);
  font-size: var(--font-size-sm);
  max-width: 600px;
}

.social-links {
  display: flex;
  gap: var(--space-2);
  margin-top: var(--space-2);
}

.social-link {
  width: 40px;
  height: 40px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: #f1f5f9;
  border-radius: var(--radius-md);
  transition: all var(--transition-base);
  color: var(--clr-primary);
}

.social-link:hover {
  background: var(--clr-accent-soft);
  color: var(--clr-primary);
  transform: translateY(-2px);
}

.footer-heading {
  font-family: var(--font-space-grotesk);
  font-size: var(--font-size-base);
  font-weight: 600;
  margin-bottom: var(--space-2);
  color: var(--clr-primary);
}

.footer-links ul {
  display: flex;
  flex-direction: column;
  gap: var(--space-1);
}

.footer-links a {
  color: var(--clr-text-secondary);
  font-size: var(--font-size-sm);
  transition: color var(--transition-base);
}

.footer-links a:hover {
  color: var(--clr-accent-soft);
  padding-left: var(--space-1);
}

.footer-bottom {
  text-align: center;
  padding-top: var(--space-4);
  border-top: 1px solid rgba(30, 64, 175, 0.1);
  color: var(--clr-text-muted);
  font-size: var(--font-size-sm);
}

/* -------------- Back to Top -------------- */
/* -------------- Back to Top -------------- */
.back-to-top {
  position: fixed;
  bottom: 2rem;
    right: 2rem;
    width: 56px;
    height: 56px;
    background: #ffffff;
    border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  opacity: 0;
  visibility: hidden;
  transition: all 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275);
    z-index: var(--z-fixed);
    box-shadow: 0 10px 25px rgba(0, 0, 0, 0.1);
    cursor: pointer;
    border: none;
}

.back-to-top.visible {
  opacity: 1;
  visibility: visible;
}

.progress-ring {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  transform: rotate(-90deg);
}

.progress-ring__circle {
  transition: stroke-dashoffset 0.1s;
  transform-origin: 50% 50%;
  stroke: var(--clr-primary);
  stroke-linecap: round;
}

.back-to-top-icon {
  position: relative;
  z-index: 1;
  color: var(--clr-primary);
  transition: transform 0.3s ease;
}

.rocket-icon {
  width: 24px;
  height: 24px;
}
.back-to-top:hover {
  transform: translateY(-8px);
    box-shadow: 0 15px 30px rgba(30, 64, 175, 0.2);
  }
  
  .back-to-top:hover .back-to-top-icon {
    transform: scale(1.1);
  }
  
  .back-to-top.launching .back-to-top-icon {
    animation: rocketLaunch 0.6s ease-in forwards;
  }
  
  @keyframes rocketLaunch {
    0% {
      transform: translateY(0);
      opacity: 1;
    }
  
    30% {
      transform: translateY(5px);
    }
  
    100% {
      transform: translateY(-50px);
      opacity: 0;
    }
  }
  
  /* Glassmorphism effect for the button */
  .back-to-top {
    background: rgba(255, 255, 255, 0.8);
    backdrop-filter: blur(8px);
    border: 1px solid rgba(255, 255, 255, 0.3);
  }
  
  .back-to-top:hover::after {
    content: '';
    position: absolute;
    width: 40px;
    height: 40px;
    background: radial-gradient(circle, var(--clr-primary-light) 0%, transparent 70%);
    opacity: 0.2;
    filter: blur(5px);
}

/* -------------- Toast Notifications -------------- */
.toast-container {
  position: fixed;
  bottom: var(--space-4);
  right: var(--space-4);
  z-index: var(--z-toast);
  display: flex;
  flex-direction: column;
  gap: var(--space-2);
  max-width: 400px;
}

.toast {
  background: #ffffff;
  border: 1px solid var(--clr-primary);
  border-radius: var(--radius-lg);
  padding: var(--space-3);
  box-shadow: var(--shadow-xl);
  animation: slideIn 0.3s ease-out;
  display: flex;
  align-items: center;
  gap: var(--space-2);
  color: var(--clr-text-primary);
}

.toast.success {
  border-color: var(--clr-accent);
}

.toast.error {
  border-color: #ef4444;
}

@keyframes slideIn {
  from {
    transform: translateX(400px);
    opacity: 0;
  }

  to {
    transform: translateX(0);
    opacity: 1;
  }
}

@keyframes pulse-highlight {
  0% {
    box-shadow: var(--shadow-lg);
  }

  50% {
    box-shadow: var(--shadow-lg), 0 0 20px rgba(94, 234, 212, 0.4);
  }

  100% {
    box-shadow: var(--shadow-lg);
  }
}

@keyframes borderGlow {
  0% {
    border-color: rgba(94, 234, 212, 0.2);
    box-shadow: 0 0 10px rgba(94, 234, 212, 0.1);
  }

  50% {
    border-color: rgba(94, 234, 212, 0.4);
    box-shadow: 0 0 20px rgba(94, 234, 212, 0.2);
  }

  100% {
    border-color: rgba(94, 234, 212, 0.2);
    box-shadow: 0 0 10px rgba(94, 234, 212, 0.1);
  }
}

@keyframes autoScroll {
  0% {
    transform: translateX(0);
  }

  50% {
    transform: translateX(calc(-6 * (320px + 16px)));
  }

  100% {
    transform: translateX(calc(-6 * (320px + 16px)));
  }
}

/* -------------- Responsive Design -------------- */
@media (max-width: 1024px) {
  .hero-wrapper {
    flex-direction: column;
    gap: var(--space-6);
  }

  .hero-image {
    width: 100%;
    max-width: 600px;
  }

  .hero-animation {
    width: 300px;
    height: 300px;
  }

  .cards-grid {
    grid-template-columns: repeat(2, 1fr);
  }

  .about-content {
    flex-direction: column;
  }

  .recruiting-grid {
    grid-template-columns: 1fr;
    gap: var(--space-6);
  }

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

  .feature-item {
    flex-direction: column;
    text-align: center;
  }
}

@media (max-width: 768px) {
  .nav-links {
    position: fixed;
    top: 70px;
    left: 0;
    right: 0;
    background: rgba(255, 255, 255, 0.98);
    flex-direction: column;
    padding: var(--space-4);
    gap: var(--space-2);
    transform: translateY(-100%);
    opacity: 0;
    visibility: hidden;
    transition: all var(--transition-base);
    box-shadow: var(--shadow-lg);
  }

  .nav-links.active {
    transform: translateY(0);
    opacity: 1;
    visibility: visible;
  
.nav-link {
    color: var(--clr-text-primary) !important;
    width: 100%;
    text-align: center;
    padding: var(--space-2);
  }

  .nav-link:hover {
    color: var(--clr-primary) !important;
    background: rgba(30, 64, 175, 0.05);
  }

  .hamburger-line {
    background: #ffffff;
  }

  .hamburger {
    display: flex;
  }

  .hero-title {
    font-size: var(--font-size-3xl);
  }

  .hero-subtitle {
    font-size: var(--font-size-xl);
  }

  .hero-animation {
    display: none;
  }

  .section-title {
    font-size: var(--font-size-3xl);
  }

  .cards-grid {
    grid-template-columns: 1fr;
  }

  .about-content {
    flex-direction: column;
  }

  .about-stats {
    grid-template-columns: repeat(2, 1fr);
  }

  .about-mission {
    text-align: left;
  }

  .testimonial-card {
    min-width: 280px;
  }

  .timeline::before {
    left: 20px;
  }

  .timeline-marker {
    width: 40px;
    height: 40px;
    font-size: var(--font-size-lg);
  }

  .form-row {
    grid-template-columns: 1fr;
  }

  .footer-grid {
    grid-template-columns: 1fr;
    text-align: center;
  }

  .footer-brand {
    align-items: center;
  }

  .social-links {
    justify-content: center;
  }

  .newsletter-input-group {
    flex-direction: column;
  }

  .blog-grid {
    grid-template-columns: 1fr;
  }

  .blog-image {
    height: 250px;
  }
}
}

@media (max-width: 1024px) {
  .blog-grid {
    grid-template-columns: repeat(2, 1fr);
  }
}

/* -------------- Animation Fallback -------------- */
/* Ensure content is visible even if GSAP doesn't load */
.service-card,
.timeline-item,
.feature-item,
.stat-item,
.testimonial-card,
.section-title,
.hero-title,
.hero-subtitle,
.hero-description,
.cta-btn-primary {
  opacity: 1 !important;
  visibility: visible !important;
}

/* -------------- Accessibility -------------- */
@media (prefers-reduced-motion: reduce) {

  *,
  *::before,
  *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
  }

  html {
    scroll-behavior: auto;
  }
}

/* Focus styles for keyboard navigation */
a:focus-visible,
button:focus-visible,
input:focus-visible,
select:focus-visible,
textarea:focus-visible {
  outline: 2px solid var(--clr-accent-soft);
  outline-offset: 2px;
}

/* -------------- Print Styles -------------- */
@media print {

  .navbar,
  .back-to-top,
  .toast-container {
    display: none;
  }
}

/* -------------- New Animation Classes -------------- */
@keyframes float {
  0% {
    transform: translateY(0);
  }

  50% {
    transform: translateY(-10px);
  }

  100% {
    transform: translateY(0);
  }
}

@keyframes rotate-float {
  0% {
    transform: translateY(0) rotate(0deg);
  }

  50% {
    transform: translateY(-10px) rotate(10deg);
  }

  100% {
    transform: translateY(0) rotate(0deg);
  }
}

@keyframes pulse-line {
  0% {
    opacity: 0.3;
    stroke-width: 1px;
  }

  50% {
    opacity: 1;
    stroke-width: 2px;
  }

  100% {
    opacity: 0.3;
    stroke-width: 1px;
  }
}

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

  to {
    transform: rotate(360deg);
  }
}

@keyframes fadeIn {
  from {
    opacity: 0;
    transform: translateY(20px);
  }

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

@keyframes slideIn {
  from {
    opacity: 0;
    transform: translateX(-20px);
  }

  to {
    opacity: 1;
    transform: translateX(0);
  }
}

@keyframes pulse-slow {

  0%,
  100% {
    opacity: 1;
    transform: scale(1);
  }

  50% {
    opacity: 0.8;
    transform: scale(1.05);
  }
}

.animation-delay-100 {
  animation-delay: 100ms !important;
}

.animation-delay-200 {
  animation-delay: 200ms !important;
}

.animation-delay-300 {
  animation-delay: 300ms !important;
}

.animation-delay-400 {
  animation-delay: 400ms !important;
}

.animation-delay-500 {
  animation-delay: 500ms !important;
}

.animate-float {
  animation: float 6s ease-in-out infinite;
}

.animate-circle {
  animation: float 6s ease-in-out infinite;
}

.animate-line {
  animation: pulse-line 4s ease-in-out infinite;
}

.animate-rotate {
  animation: rotate 20s linear infinite;
}

.animate-fade-in {
  animation: fadeIn 0.8s ease-out forwards;
}

.animate-slide-in {
  animation: slideIn 0.6s ease-out forwards;
}

.animate-pulse-slow {
  animation: pulse-slow 4s ease-in-out infinite;
}

/* -------------- Hover Animation Classes -------------- */
.hover-lift {
  transition: transform 300ms ease-in-out;
}

.hover-lift:hover {
  transform: translateY(-4px);
}

.hover-underline {
  position: relative;
}

.hover-underline:after {
  content: '';
  position: absolute;
  width: 0;
  height: 2px;
  bottom: -2px;
  left: 0;
  background-color: currentColor;
  transition: width 0.3s ease;
}

.hover-underline:hover:after {
  width: 100%;
}

.hover-scale {
  transition: transform 0.3s ease;
}

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

/* -------------- Utility Classes -------------- */
.smooth-scroll {
  scroll-behavior: smooth;
}

.section-container {
  font-family: var(--font-space-grotesk);
  width: 100%;
  padding-left: 1rem;
  padding-right: 1rem;
  padding-top: 3rem;
  padding-bottom: 3rem;
}

@media (min-width: 640px) {
  .section-container {
    padding-left: 1.5rem;
    padding-right: 1.5rem;
  }
}

@media (min-width: 1024px) {
  .section-container {
    padding-left: 2rem;
    padding-right: 2rem;
  }
}
/* -------------- AI Chatbot -------------- */
.chatbot-widget {
  position: fixed;
  bottom: 2rem;
  right: 6.5rem;
  z-index: var(--z-fixed);
  font-family: var(--font-space-grotesk);
}

.chatbot-toggle {
  width: 56px;
  height: 56px;
  background: var(--grad-accent);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  border: none;
  box-shadow: 0 10px 25px rgba(30, 64, 175, 0.3);
  transition: all 0.3s cubic-bezier(0.175, 0.885, 0.32, 1.275);
  color: #ffffff;
  font-size: 1.5rem;
}

.chatbot-toggle:hover {
  transform: scale(1.1) rotate(5deg);
  box-shadow: 0 15px 30px rgba(30, 64, 175, 0.4);
}

.chatbot-toggle .chatbot-close-icon {
  display: none;
  font-size: 2rem;
}

.chatbot-widget.active .chatbot-icon {
  display: none;
}

.chatbot-icon svg {
  width: 28px;
  height: 28px;
  display: block;
}

.chatbot-widget.active .chatbot-close-icon {
  display: block;
}

.chatbot-window {
  position: absolute;
  bottom: 80px;
  right: 0;
  width: 350px;
  height: 500px;
  background: #ffffff;
  border-radius: var(--radius-xl);
  box-shadow: 0 20px 40px rgba(0, 0, 0, 0.15);
  display: none;
  flex-direction: column;
  overflow: hidden;
  opacity: 0;
  visibility: hidden;
  transform: translateY(20px) scale(0.95);
  transition: all 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275);
  border: 1px solid rgba(30, 64, 175, 0.1);
}

/* .chatbot-widget.active .chatbot-window removed because display flex is handled via JS */

.chatbot-header {
  background: var(--grad-accent);
  color: #ffffff;
  padding: 1.2rem;
  display: flex;
  justify-content: space-between;
  align-items: center;
}

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

.chatbot-avatar {
  width: 40px;
  height: 40px;
  background: rgba(255, 255, 255, 0.2);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.2rem;
}

.chatbot-avatar svg {
  width: 22px;
  height: 22px;
  display: block;
}

.chatbot-header h3 {
  font-size: 1rem;
  margin: 0;
}

.chatbot-header p {
  font-size: 0.75rem;
  margin: 0;
  opacity: 0.8;
}

.chatbot-close {
  background: none;
  border: none;
  color: #ffffff;
  font-size: 1.5rem;
  cursor: pointer;
  opacity: 0.7;
  transition: opacity 0.2s;
}

.chatbot-close:hover {
  opacity: 1;
}

.chatbot-messages {
  flex: 1;
  padding: 1rem;
  overflow-y: auto;
  display: flex;
  flex-direction: column;
  gap: 0.8rem;
  background: #f8fafc;
}

.chat-message {
  max-width: 85%;
  padding: 0.8rem 1rem;
  border-radius: 1rem;
  font-size: 0.9rem;
  line-height: 1.4;
  position: relative;
  animation: chatbotFadeIn 0.3s ease-out;
}

.message-bot {
  align-self: flex-start;
  background: #ffffff;
  color: var(--clr-text-primary);
  border-bottom-left-radius: 0.2rem;
  box-shadow: 0 2px 5px rgba(0, 0, 0, 0.05);
  border: 1px solid rgba(0, 0, 0, 0.05);
}

.message-user {
  align-self: flex-end;
  background: var(--grad-accent);
  color: #ffffff;
  border-bottom-right-radius: 0.2rem;
  box-shadow: 0 4px 10px rgba(30, 64, 175, 0.2);
}

.chatbot-input-area {
  padding: 1rem;
  background: #ffffff;
  border-top: 1px solid rgba(0, 0, 0, 0.05);
  display: flex;
  gap: 0.5rem;
}

.chatbot-input-area input {
  flex: 1;
  border: 1px solid #e2e8f0;
  padding: 0.6rem 1rem;
  border-radius: var(--radius-full);
  outline: none;
  font-size: 0.9rem;
  transition: border-color 0.2s;
}

.chatbot-input-area input:focus {
  border-color: var(--clr-primary);
}

.chatbot-input-area button {
  width: 40px;
  height: 40px;
  background: var(--grad-accent);
  color: #ffffff;
  border: none;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  transition: transform 0.2s;
}

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

@keyframes chatbotFadeIn {
  from {
    opacity: 0;
    transform: translateY(5px);
  }

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

/* Mobile adjustment for chatbot */
@media (max-width: 480px) {
  .chatbot-window {
    width: calc(100vw - 40px);
    height: 400px;
    right: -10px;
  }

  .chatbot-widget {
    right: 1.5rem;
    bottom: 1.5rem;
  }
}