/* ========== CSS Variables ========== */
:root {
  --primary-red: #FF2D2D;
  --dark-bg: #FFFFFF;
  --card-bg: #FFFFFF;
  --text-primary: #1F2937;
  --text-secondary: #6B7280;
  --font-display: 'Poppins', sans-serif;
  --font-body: 'Sora', sans-serif;
}

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

html {
  scroll-behavior: smooth;
}

body {
  font-family: var(--font-body);
  background: var(--dark-bg);
  color: var(--text-primary);
  line-height: 1.6;
}

.container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 2rem;
}

/* ========== Scroll Reveal (AOS) ========== */
/* Elements start hidden/offset and animate in when JS adds .aos-animate
   (wired via IntersectionObserver in script.js). */
[data-aos] {
  opacity: 0;
  transition: opacity 0.7s cubic-bezier(0.22, 1, 0.36, 1),
              transform 0.7s cubic-bezier(0.22, 1, 0.36, 1);
  will-change: opacity, transform;
}

[data-aos="fade-up"]    { transform: translateY(40px); }
[data-aos="fade-down"]  { transform: translateY(-40px); }
[data-aos="fade-right"] { transform: translateX(-40px); }
[data-aos="fade-left"]  { transform: translateX(40px); }
[data-aos="zoom-in"]    { transform: scale(0.9); }

[data-aos].aos-animate {
  opacity: 1;
  transform: translate(0, 0) scale(1);
}

@media (prefers-reduced-motion: reduce) {
  [data-aos] {
    opacity: 1 !important;
    transform: none !important;
    transition: none !important;
  }
}

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

@keyframes slideInLeft {
  from {
    opacity: 0;
    transform: translateX(-30px);
  }
  to {
    opacity: 1;
    transform: translateX(0);
  }
}

@keyframes slideInRight {
  from {
    opacity: 0;
    transform: translateX(30px);
  }
  to {
    opacity: 1;
    transform: translateX(0);
  }
}

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

@keyframes scaleIn {
  from {
    opacity: 0;
    transform: scale(0.95);
  }
  to {
    opacity: 1;
    transform: scale(1);
  }
}

@keyframes pulse {
  0%, 100% {
    opacity: 1;
  }
  50% {
    opacity: 0.7;
  }
}

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

@keyframes glow {
  0%, 100% {
    box-shadow: 0 0 0 0 rgba(255, 45, 45, 0.7);
  }
  50% {
    box-shadow: 0 0 0 10px rgba(255, 45, 45, 0);
  }
}

/* ========== Navigation ========== */
.navbar {
  background: #FFFFFF;
  padding: 1.5rem 2rem;
  position: sticky;
  top: 0;
  z-index: 1000;
  border-bottom: 1px solid #E5E7EB;
  animation: slideInDown 0.5s ease;
}

@keyframes slideInDown {
  from {
    opacity: 0;
    transform: translateY(-20px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

.nav-container {
  max-width: 1200px;
  margin: 0 auto;
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: nowrap;
  gap: 2rem;
}

.nav-logo {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  font-weight: 700;
  font-size: 1.5rem;
  animation: slideInLeft 0.6s ease;
  flex-shrink: 0;
}

.nav-logo img {
  width: 32px;
  height: 32px;
}

.nav-menu {
  display: flex;
  gap: 2rem;
  flex-wrap: nowrap;
  justify-content: flex-end;
  align-items: center;
}

.nav-link {
  text-decoration: none;
  color: var(--text-primary);
  font-size: 0.95rem;
  transition: all 0.3s ease;
  position: relative;
  padding-bottom: 0.25rem;
}

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

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

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

/* ========== Hero Section ========== */
.hero {
  padding: 6rem 2rem;
  background: #FFFFFF;
}

.hero-content {
  max-width: 1200px;
  margin: 0 auto;
}

.hero-title {
  font-size: 3.5rem;
  font-weight: 800;
  font-family: var(--font-display);
  margin-bottom: 1.5rem;
  color: var(--text-primary);
  animation: slideInUp 0.8s ease 0.2s both;
}

.hero-subtitle {
  font-size: 1.25rem;
  color: var(--text-secondary);
  margin-bottom: 2rem;
  max-width: 600px;
  animation: slideInUp 0.8s ease 0.4s both;
}

.hero-cta {
  display: flex;
  gap: 1rem;
  margin-bottom: 4rem;
  animation: slideInUp 0.8s ease 0.6s both;
}

.btn {
  padding: 0.75rem 2rem;
  border: none;
  border-radius: 0.5rem;
  font-size: 1rem;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.3s;
}

.btn-primary {
  background: var(--primary-red);
  color: white;
}

.btn-primary {
  position: relative;
  overflow: hidden;
}

.btn-primary::before {
  content: '';
  position: absolute;
  top: 0;
  left: -100%;
  width: 100%;
  height: 100%;
  background: rgba(255, 255, 255, 0.1);
  transition: left 0.3s ease;
}

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

.btn-primary:hover {
  background: #E61F1F;
  transform: translateY(-2px);
  box-shadow: 0 10px 20px rgba(255, 45, 45, 0.3);
}

.btn-secondary {
  background: #F3F4F6;
  color: var(--text-primary);
  border: 1px solid #E5E7EB;
  transition: all 0.3s ease;
}

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

.hero-stats {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
  gap: 2rem;
  margin-top: 3rem;
}

.hero-stat {
  padding: 2rem;
  background: #F8F8F8;
  border-radius: 1rem;
  border: 1px solid #E5E7EB;
  text-align: center;
  transition: all 0.3s ease;
}

.hero-stat:hover {
  border-color: var(--primary-red);
  background: rgba(255, 45, 45, 0.05);
  transform: translateY(-4px);
}

.stat-value {
  font-size: 2.5rem;
  font-weight: 800;
  color: var(--primary-red);
  margin-bottom: 0.5rem;
}

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

/* ========== Section Styles ========== */
section {
  padding: 5rem 2rem;
  background: #FFFFFF;
}

.section-title {
  font-size: 2.5rem;
  font-weight: 800;
  font-family: var(--font-display);
  margin-bottom: 1rem;
  color: var(--text-primary);
  animation: slideInUp 0.6s ease;
  position: relative;
}

.section-title::after {
  content: '';
  position: absolute;
  bottom: -0.5rem;
  left: 0;
  width: 60px;
  height: 4px;
  background: var(--primary-red);
  border-radius: 2px;
  animation: slideInLeft 0.6s ease 0.2s both;
}

.section-subtitle {
  font-size: 1.1rem;
  color: var(--text-secondary);
  margin-bottom: 3rem;
}

/* ========== Methodology ========== */
.methodology-grid {
  display: grid;
  grid-template-columns: repeat(5, 1fr);
  gap: 1.5rem;
  margin-top: 3rem;
}

.methodology-card {
  padding: 1.5rem;
  background: #F8F8F8;
  border-radius: 1rem;
  border: 1px solid #E5E7EB;
  transition: all 0.3s ease;
  position: relative;
  overflow: hidden;
}

.methodology-card::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 4px;
  background: var(--primary-red);
  transform: scaleX(0);
  transition: transform 0.3s ease;
  transform-origin: left;
}

.methodology-card:hover {
  border-color: var(--primary-red);
  background: rgba(255, 45, 45, 0.05);
  transform: translateY(-4px);
}

.methodology-card:hover::before {
  transform: scaleX(1);
}

.methodology-number {
  font-size: 2rem;
  font-weight: 800;
  color: var(--primary-red);
  margin-bottom: 0.75rem;
  letter-spacing: 2px;
}

.methodology-card h3 {
  font-size: 1.1rem;
  font-weight: 700;
  margin-bottom: 0.75rem;
  color: var(--text-primary);
}

.methodology-card p {
  color: var(--text-secondary);
  font-size: 0.85rem;
  line-height: 1.5;
}

/* ========== Case Studies ========== */
.case-studies-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 2rem;
  margin-top: 3rem;
}

.case-study-card {
  padding: 2rem;
  background: #F8F8F8;
  border-radius: 1rem;
  border: 1px solid #E5E7EB;
  transition: all 0.3s ease;
  position: relative;
}

.case-study-card:hover {
  border-color: var(--primary-red);
  background: rgba(255, 45, 45, 0.05);
  transform: translateY(-4px);
}

.case-study-card h3 {
  font-size: 1.3rem;
  font-weight: 700;
  margin-bottom: 0.5rem;
  color: var(--text-primary);
}

.case-study-tag {
  display: inline-block;
  background: rgba(255, 45, 45, 0.1);
  color: var(--primary-red);
  padding: 0.4rem 0.9rem;
  border-radius: 0.3rem;
  font-size: 0.75rem;
  font-weight: 600;
  margin-bottom: 1rem;
}

.case-study-description {
  color: var(--text-secondary);
  font-size: 0.95rem;
  margin-bottom: 1.5rem;
  line-height: 1.6;
}

.case-study-metrics {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 1.25rem;
  margin-bottom: 1.5rem;
  padding: 1.5rem 0;
  border-top: 1px solid #E5E7EB;
  border-bottom: 1px solid #E5E7EB;
}

.metric {
  font-size: 0.9rem;
}

.metric-value {
  font-weight: 800;
  font-size: 1.3rem;
  color: var(--primary-red);
  display: block;
  margin-bottom: 0.25rem;
}

.metric-label {
  color: var(--text-secondary);
  font-size: 0.85rem;
  font-weight: 500;
}

.case-study-tech {
  display: flex;
  gap: 0.5rem;
  flex-wrap: wrap;
}

.tech-tag {
  background: #FFFFFF;
  border: 1px solid #E5E7EB;
  padding: 0.3rem 0.7rem;
  border-radius: 0.3rem;
  font-size: 0.8rem;
  color: var(--text-secondary);
  font-weight: 500;
}

/* ========== Case Studies CTA ========== */
.case-studies-cta {
  text-align: center;
  padding: 3rem 2rem;
  margin-top: 3rem;
}

.case-studies-cta p {
  font-size: 1.1rem;
  color: var(--text-secondary);
  margin-bottom: 2rem;
}

/* ========== Comparison ========== */
.comparison-section {
  background: #FFFFFF;
}

.comparison-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 0;
  margin-top: 3rem;
  border: 1px solid #E5E7EB;
  border-radius: 1rem;
  overflow: hidden;
}

.comparison-item {
  padding: 2rem;
  background: #FFFFFF;
  border-bottom: 1px solid #E5E7EB;
  transition: all 0.3s ease;
}

.comparison-item:last-child {
  border-bottom: none;
}

.comparison-item:hover {
  background: rgba(255, 45, 45, 0.02);
}

.comparison-item h4 {
  font-size: 1.1rem;
  font-weight: 700;
  margin-bottom: 1.5rem;
  color: var(--text-primary);
}

.comparison-list {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1.5rem;
}

.comparison-point {
  display: flex;
  gap: 0.75rem;
  font-size: 0.95rem;
  color: var(--text-secondary);
  align-items: flex-start;
}

.comparison-point.positive {
  color: #059669;
}

.comparison-point.negative {
  color: var(--primary-red);
}

.comparison-point svg {
  width: 20px;
  height: 20px;
  flex-shrink: 0;
  margin-top: 2px;
}

/* ========== Services ========== */
.services-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 2rem;
  margin-top: 3rem;
}

.service-card {
  padding: 2rem;
  background: #F8F8F8;
  border-radius: 1rem;
  border: 1px solid #E5E7EB;
  transition: all 0.3s ease;
  position: relative;
  animation: slideInUp 0.6s ease;
  overflow: hidden;
}

.service-card::before {
  content: '';
  position: absolute;
  top: 0;
  left: -100%;
  width: 100%;
  height: 100%;
  background: linear-gradient(90deg, transparent, rgba(255, 45, 45, 0.1), transparent);
  transition: left 0.6s ease;
}

.service-card:hover::before {
  left: 100%;
}

.service-card:hover {
  border-color: var(--primary-red);
  background: rgba(255, 45, 45, 0.05);
  transform: translateY(-4px);
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.1);
}

.service-icon {
  width: 48px;
  height: 48px;
  background: rgba(255, 45, 45, 0.1);
  border-radius: 0.5rem;
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 1rem;
  transition: all 0.3s ease;
}

.service-card:hover .service-icon {
  transform: scale(1.1) rotate(5deg);
  background: rgba(255, 45, 45, 0.2);
}

.service-icon svg {
  width: 32px;
  height: 32px;
  stroke: var(--primary-red);
}

.service-card h3 {
  font-size: 1.2rem;
  font-weight: 700;
  margin-bottom: 0.75rem;
  color: var(--text-primary);
}

.service-card p {
  color: var(--text-secondary);
  font-size: 0.95rem;
  line-height: 1.6;
}

/* ========== Testimonials ========== */
.testimonials-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 2rem;
  margin-top: 3rem;
}

.testimonial-card {
  padding: 2rem;
  background: #F8F8F8;
  border-radius: 1rem;
  border: 1px solid #E5E7EB;
  animation: slideInUp 0.6s ease;
  transition: all 0.3s ease;
}

.testimonial-card:hover {
  border-color: var(--primary-red);
  transform: translateY(-4px);
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.1);
}

.testimonial-rating {
  display: flex;
  gap: 0.5rem;
  margin-bottom: 1rem;
  align-items: center;
}

.rating-star {
  color: var(--primary-red);
}

.rating-text {
  font-weight: 700;
  color: var(--text-primary);
}

.testimonial-text {
  color: var(--text-secondary);
  font-size: 0.95rem;
  margin-bottom: 1.5rem;
  line-height: 1.6;
  font-style: italic;
}

.testimonial-author {
  display: flex;
  gap: 1rem;
}

.author-info strong {
  display: block;
  color: var(--text-primary);
  font-size: 0.95rem;
}

.author-info span {
  display: block;
  color: var(--text-secondary);
  font-size: 0.85rem;
}

/* ========== Contact ========== */
.contact-section {
  background: var(--primary-red);
  color: white;
  padding: 4rem 2rem;
  animation: fadeIn 0.8s ease;
}

.contact-content {
  max-width: 600px;
  margin: 0 auto;
  text-align: center;
}

.contact-content h2 {
  font-size: 2.5rem;
  font-weight: 800;
  margin-bottom: 1rem;
  animation: slideInUp 0.6s ease;
  color: white;
}

.contact-content h2 span {
  color: white;
  font-weight: 800;
}

.contact-content p {
  font-size: 1.1rem;
  margin-bottom: 2rem;
  color: rgba(255, 255, 255, 0.9);
  animation: slideInUp 0.6s ease 0.2s both;
}

.contact-form {
  display: flex;
  flex-direction: column;
  gap: 1rem;
  animation: slideInUp 0.6s ease 0.4s both;
}

.contact-form input,
.contact-form select,
.contact-form textarea {
  padding: 1rem;
  border: 2px solid #FF2D2D;
  border-radius: 0.5rem;
  background: white;
  color: var(--primary-red);
  font-family: var(--font-body);
  font-size: 1rem;
  transition: all 0.3s ease;
}

.contact-form input::placeholder,
.contact-form textarea::placeholder {
  color: #1F2937;
  opacity: 1;
}

.contact-form select {
  color: #1F2937;
}

.contact-form input:focus,
.contact-form select:focus,
.contact-form textarea:focus {
  outline: none;
  border-color: #FF2D2D;
  background: white;
  box-shadow: 0 0 0 3px rgba(255, 45, 45, 0.1);
}


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

.contact-form button {
  padding: 1rem;
  background: white;
  color: var(--primary-red);
  border: none;
  border-radius: 0.5rem;
  font-weight: 700;
  font-size: 1rem;
  cursor: pointer;
  transition: all 0.3s;
}

.contact-form button:hover {
  background: rgba(255, 255, 255, 0.9);
  transform: translateY(-2px);
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
}

/* ========== CHATBOT STYLES ========== */
.chatbot-container {
  position: fixed;
  bottom: 0;
  right: 0;
  z-index: 9999;
  font-family: var(--font-body);
}

.chatbot-widget {
  position: fixed;
  bottom: 90px;
  right: 20px;
  width: 420px;
  height: 580px;
  background: var(--card-bg);
  border-radius: 1.2rem;
  border: 1px solid rgba(255, 45, 45, 0.15);
  box-shadow: 0 10px 40px rgba(0, 0, 0, 0.4), 0 0 60px rgba(255, 45, 45, 0.1);
  display: flex;
  flex-direction: column;
  opacity: 0;
  transform: scale(0.9) translateY(20px);
  transition: all 0.4s cubic-bezier(0.34, 1.56, 0.64, 1);
  pointer-events: none;
}

.chatbot-widget.active {
  opacity: 1;
  transform: scale(1) translateY(0);
  pointer-events: auto;
}

.chatbot-header {
  background: linear-gradient(135deg, #FF2D2D 0%, #E61F1F 100%);
  color: white;
  padding: 1.2rem;
  border-radius: 1.2rem 1.2rem 0 0;
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  box-shadow: 0 4px 15px rgba(255, 45, 45, 0.2);
}

.chatbot-info h3 {
  margin: 0;
  font-size: 1rem;
  font-weight: 700;
}

.status-text {
  margin: 0.3rem 0 0 0;
  font-size: 0.8rem;
  opacity: 0.9;
  display: flex;
  align-items: center;
  gap: 0.4rem;
}

.status-dot {
  width: 8px;
  height: 8px;
  background: #4ade80;
  border-radius: 50%;
  animation: pulse 2s ease-in-out infinite;
}

.chatbot-minimize {
  background: rgba(255, 255, 255, 0.2);
  border: none;
  color: white;
  font-size: 1.5rem;
  cursor: pointer;
  width: 32px;
  height: 32px;
  border-radius: 50%;
  transition: all 0.3s ease;
  display: flex;
  align-items: center;
  justify-content: center;
  line-height: 1;
}

.chatbot-minimize:hover {
  background: rgba(255, 255, 255, 0.3);
  transform: scale(1.1);
}

.chatbot-messages {
  flex: 1;
  overflow-y: auto;
  padding: 1.4rem;
  display: flex;
  flex-direction: column;
  gap: 1rem;
  background: linear-gradient(to bottom, #ffffff, #fafafa);
}

.chatbot-messages::-webkit-scrollbar {
  width: 6px;
}

.chatbot-messages::-webkit-scrollbar-track {
  background: transparent;
}

.chatbot-messages::-webkit-scrollbar-thumb {
  background: #FF2D2D;
  border-radius: 3px;
  opacity: 0.3;
}

.message {
  display: flex;
  animation: messageSlide 0.4s ease-out;
}

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

.message.bot-message {
  justify-content: flex-start;
}

.message.user-message {
  justify-content: flex-end;
}

.message-bubble {
  max-width: 80%;
  padding: 0.9rem 1.1rem;
  border-radius: 1.1rem;
  line-height: 1.5;
  word-wrap: break-word;
}

.bot-message .message-bubble {
  background: #f0f0f0;
  color: #1f2937;
  border-radius: 1.1rem 1.1rem 1.1rem 0.2rem;
}

.user-message .message-bubble {
  background: #FF2D2D;
  color: white;
  border-radius: 1.1rem 1.1rem 0.2rem 1.1rem;
  box-shadow: 0 3px 12px rgba(255, 45, 45, 0.2);
}

.message-bubble p {
  margin: 0;
  font-size: 0.95rem;
}

.suggestions-container {
  padding: 0 1.5rem 1rem;
  display: grid;
  grid-template-columns: 1fr;
  gap: 0.7rem;
  max-height: 200px;
  overflow-y: auto;
}

.suggestions-container::-webkit-scrollbar {
  width: 4px;
}

.suggestions-container::-webkit-scrollbar-thumb {
  background: #FF2D2D;
  border-radius: 2px;
  opacity: 0.2;
}

.suggestion-btn {
  background: rgba(255, 45, 45, 0.08);
  border: 1.5px solid rgba(255, 45, 45, 0.2);
  color: var(--text-primary);
  padding: 0.8rem 1rem;
  border-radius: 0.8rem;
  font-size: 0.9rem;
  cursor: pointer;
  transition: all 0.3s ease;
  text-align: left;
  font-weight: 500;
}

.suggestion-btn:hover {
  background: #FF2D2D;
  color: white;
  border-color: #FF2D2D;
  transform: translateX(4px);
  box-shadow: 0 4px 12px rgba(255, 45, 45, 0.2);
}

.chatbot-input-area {
  display: flex;
  gap: 0.8rem;
  padding: 1.2rem 1.4rem;
  background: var(--card-bg);
  border-top: 1px solid rgba(0, 0, 0, 0.08);
  border-radius: 0 0 1.2rem 1.2rem;
}

.chatbot-input {
  flex: 1;
  border: 1.5px solid rgba(0, 0, 0, 0.12);
  padding: 0.8rem 1.1rem;
  border-radius: 0.8rem;
  font-size: 0.95rem;
  font-family: var(--font-body);
  transition: all 0.3s ease;
  color: var(--text-primary);
  background: #ffffff;
}

.chatbot-input:focus {
  outline: none;
  border-color: #FF2D2D;
  box-shadow: 0 0 0 3px rgba(255, 45, 45, 0.1);
}

.chatbot-input::placeholder {
  color: #9ca3af;
}

.send-btn {
  background: #FF2D2D;
  border: none;
  color: white;
  width: 40px;
  height: 40px;
  border-radius: 0.8rem;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: all 0.3s cubic-bezier(0.34, 1.56, 0.64, 1);
  box-shadow: 0 4px 12px rgba(255, 45, 45, 0.2);
}

.send-btn:hover {
  transform: translateY(-2px);
  box-shadow: 0 6px 20px rgba(255, 45, 45, 0.3);
}

.send-btn:active {
  transform: translateY(0);
}

/* Chatbot Toggle Button */
.chatbot-toggle {
  position: fixed;
  bottom: 30px;
  right: 30px;
  width: 56px;
  height: 56px;
  background: linear-gradient(135deg, #FF2D2D, #E61F1F);
  border: none;
  color: white;
  border-radius: 50%;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 9998;
  box-shadow: 0 8px 25px rgba(255, 45, 45, 0.3);
  transition: all 0.3s cubic-bezier(0.34, 1.56, 0.64, 1);
}

.chatbot-toggle:hover {
  transform: scale(1.1);
  box-shadow: 0 12px 35px rgba(255, 45, 45, 0.4);
}

.chatbot-toggle:active {
  transform: scale(0.95);
}

.pulse-ring {
  position: absolute;
  width: 100%;
  height: 100%;
  border-radius: 50%;
  border: 2px solid #FF2D2D;
  animation: pulseBorder 2s ease-out infinite;
}

@keyframes pulseBorder {
  from {
    transform: scale(1);
    opacity: 0.8;
  }
  to {
    transform: scale(1.4);
    opacity: 0;
  }
}

@media (max-width: 768px) {
  .chatbot-widget {
    width: 100%;
    height: 80vh;
    height: 80dvh;
    max-height: 100dvh;
    bottom: 0;
    right: 0;
    left: 0;
    border-radius: 1.2rem 1.2rem 0 0;
    /* Respect notches / home indicator */
    padding-bottom: env(safe-area-inset-bottom);
  }

  .chatbot-header {
    padding: 1rem 1.2rem calc(1rem + env(safe-area-inset-top, 0px));
    border-radius: 1.2rem 1.2rem 0 0;
  }

  .chatbot-minimize {
    width: 38px;
    height: 38px;
    font-size: 1.7rem;
  }

  .chatbot-messages {
    padding: 1.1rem;
    gap: 0.8rem;
  }

  .message-bubble {
    max-width: 85%;
  }

  .suggestions-container {
    padding: 0 1.1rem 0.8rem;
    gap: 0.55rem;
  }

  .suggestion-btn {
    padding: 0.75rem 0.9rem;
  }

  /* Disable the horizontal nudge on touch (no hover) so taps feel stable */
  .suggestion-btn:hover {
    transform: none;
  }

  .chatbot-input-area {
    padding: 0.9rem 1.1rem;
  }

  .chatbot-input {
    /* 16px prevents iOS Safari from auto-zooming on focus */
    font-size: 16px;
    padding: 0.75rem 1rem;
  }

  .send-btn {
    width: 46px;
    height: 46px;
    flex-shrink: 0;
  }

  .chatbot-toggle {
    bottom: calc(18px + env(safe-area-inset-bottom));
    right: 18px;
    width: 54px;
    height: 54px;
  }

  /* Hide the floating launcher while the chat sheet is open so it
     doesn't overlap the header / minimize button */
  body.chatbot-open .chatbot-toggle {
    opacity: 0;
    pointer-events: none;
    transform: scale(0.8);
  }
}

@media (max-width: 380px) {
  .chatbot-header h3 {
    font-size: 0.95rem;
  }

  .message-bubble {
    padding: 0.8rem 0.95rem;
  }

  .message-bubble p {
    font-size: 0.9rem;
  }
}

/* ========== Footer ========== */
footer {
  background: var(--primary-red);
  color: white;
  padding: 3rem 2rem;
  text-align: center;
  border-top: none;
}

footer p {
  font-size: 0.9rem;
  color: white;
}

footer a {
  color: white;
  text-decoration: none;
  transition: color 0.3s ease, opacity 0.3s ease;
  border-bottom: 1px solid transparent;
}

footer a:hover {
  color: white;
  opacity: 0.85;
  border-bottom: 1px solid white;
}

.footer-content {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 3rem;
  margin-bottom: 2rem;
  align-items: start;
}

.footer-content > div {
  text-align: center;
}

.footer-content h3 {
  font-size: 1.3rem;
  font-weight: 800;
  margin-bottom: 0.5rem;
}

.footer-content h4 {
  font-size: 1rem;
  font-weight: 700;
  margin-bottom: 1rem;
}

.footer-links a,
.footer-contact a {
  margin: 0 0.5rem;
}

.footer-bottom {
  padding-top: 1.5rem;
  border-top: 1px solid rgba(255, 255, 255, 0.2);
  font-size: 0.85rem;
}

/* ========== Back to Top Button ========== */
#backToTop {
  position: fixed;
  bottom: 2rem;
  right: 2rem;
  width: 48px;
  height: 48px;
  background: var(--primary-red);
  color: white;
  border: none;
  border-radius: 50%;
  cursor: pointer;
  display: none;
  align-items: center;
  justify-content: center;
  font-size: 1.5rem;
  z-index: 999;
  transition: all 0.3s;
}

#backToTop.show {
  display: flex;
}

#backToTop:hover {
  background: #E61F1F;
  transform: translateY(-2px);
}

/* ========== Notifications ========== */
.notification {
  position: fixed;
  bottom: 2rem;
  right: 2rem;
  padding: 1.5rem;
  background: #FFFFFF;
  border-radius: 0.5rem;
  box-shadow: 0 10px 15px -3px rgba(0, 0, 0, 0.1);
  max-width: 400px;
  z-index: 1000;
  transform: translateY(100px);
  opacity: 0;
  transition: all 0.3s ease;
}

.notification.show {
  transform: translateY(0);
  opacity: 1;
}

.notification-success {
  border-left: 4px solid #10B981;
}

.notification-error {
  border-left: 4px solid var(--primary-red);
}

/* ========== Share Link Section ========== */
.share-link-section {
  background: #FFFFFF;
  padding: 4rem 2rem;
  border-top: 1px solid #E5E7EB;
}

.share-link-container {
  max-width: 600px;
  margin: 0 auto;
}

.share-link-container h3 {
  font-size: 1.8rem;
  font-weight: 700;
  color: var(--text-primary);
  margin-bottom: 2rem;
  text-align: center;
}

.link-input-wrapper {
  display: flex;
  gap: 0.5rem;
  align-items: center;
  background: #F3F4F6;
  border-radius: 0.5rem;
  padding: 0.75rem;
  border: 2px solid transparent;
  transition: all 0.3s ease;
}

.link-input-wrapper:focus-within {
  border-color: var(--primary-red);
  background: #FFFFFF;
}

.link-icon {
  width: 32px;
  height: 32px;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}

.link-icon img {
  width: 24px;
  height: 24px;
  object-fit: contain;
}

.link-input {
  flex: 1;
  border: none;
  background: transparent;
  font-family: var(--font-body);
  font-size: 0.95rem;
  color: var(--text-primary);
  outline: none;
}

.link-input::placeholder {
  color: var(--text-secondary);
}

.share-btn {
  padding: 0.75rem 1.5rem;
  background: var(--primary-red);
  color: white;
  border: none;
  border-radius: 0.375rem;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.3s ease;
  font-size: 0.9rem;
}

.share-btn:hover {
  background: #E61F1F;
  transform: translateY(-2px);
}

.link-preview {
  margin-top: 1.5rem;
  padding: 1.5rem;
  background: #F3F4F6;
  border-radius: 0.5rem;
  border-left: 4px solid var(--primary-red);
}

.preview-content {
  display: flex;
  gap: 1rem;
  align-items: flex-start;
}

.preview-content img {
  width: 40px;
  height: 40px;
  border-radius: 0.25rem;
  object-fit: contain;
  flex-shrink: 0;
}

.preview-text {
  flex: 1;
}

.preview-text p {
  margin: 0;
  padding: 0;
}

.preview-text p:first-child {
  font-weight: 600;
  color: var(--text-primary);
  margin-bottom: 0.25rem;
}

.preview-text p:last-child {
  font-size: 0.85rem;
  color: var(--text-secondary);
}

/* ========== Responsive ========== */
@media (max-width: 1024px) {
  .container {
    padding: 0 1.5rem;
  }

  .hero-title {
    font-size: 2.5rem;
  }

  .section-title {
    font-size: 2rem;
  }

  .nav-menu {
    gap: 1.5rem;
  }
}

@media (max-width: 768px) {
  .container {
    padding: 0 1rem;
  }

  /* ===== Navigation ===== */
  .navbar {
    padding: 0.75rem 1rem;
  }

  .nav-container {
    gap: 0.5rem;
  }

  .nav-logo {
    font-size: 1rem;
    animation: none;
    order: 1;
    flex-shrink: 0;
  }

  .nav-logo img {
    width: 28px;
    height: 28px;
  }

  .nav-menu {
    gap: 0.5rem;
    font-size: 0.75rem;
    order: 3;
    width: 100%;
    justify-content: flex-start;
    flex-wrap: nowrap;
    overflow-x: auto;
    padding: 0.5rem 0;
    -webkit-overflow-scrolling: touch;
  }

  .nav-menu::-webkit-scrollbar {
    height: 2px;
  }

  .nav-menu::-webkit-scrollbar-track {
    background: #F3F4F6;
  }

  .nav-menu::-webkit-scrollbar-thumb {
    background: var(--primary-red);
    border-radius: 1px;
  }

  .nav-link {
    font-size: 0.75rem;
    white-space: nowrap;
    padding: 0.5rem 0.75rem;
  }

  /* ===== Hero Section ===== */
  .hero {
    padding: 3rem 1rem;
  }

  .hero-title {
    font-size: 1.75rem;
    line-height: 1.3;
    margin-bottom: 1rem;
  }

  .hero-subtitle {
    font-size: 0.95rem;
    line-height: 1.5;
  }

  .hero-cta {
    flex-direction: column;
    gap: 1rem;
    margin-top: 2rem;
  }

  .hero-cta button,
  .hero-cta a {
    width: 100%;
    padding: 0.75rem 1.5rem;
  }

  .hero-stats {
    flex-direction: column;
    gap: 1.5rem;
    margin-top: 2rem;
  }

  /* ===== Sections ===== */
  section {
    padding: 2.5rem 1rem !important;
  }

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

  /* ===== Grids ===== */
  .services-grid,
  .case-studies-grid,
  .testimonials-grid,
  .methodology-grid,
  .nav-container {
    grid-template-columns: 1fr;
    flex-direction: column;
  }

  .service-card,
  .project-card,
  .testimonial-card,
  .process-card,
  .stat-card {
    padding: 1.5rem 1rem;
  }

  .service-icon {
    width: 48px;
    height: 48px;
    font-size: 1.5rem;
  }

  /* ===== Contact Section ===== */
  .contact-section {
    padding: 3rem 1rem;
  }

  .contact-content h2 {
    font-size: 1.8rem;
    margin-bottom: 0.75rem;
  }

  .contact-content p {
    font-size: 0.95rem;
    margin-bottom: 1.5rem;
  }

  /* ===== Contact Form ===== */
  .contact-form {
    gap: 1rem;
  }

  .contact-form input,
  .contact-form textarea,
  .contact-form select {
    padding: 0.75rem;
    font-size: 1rem;
  }

  .contact-form button {
    width: 100%;
    padding: 0.75rem;
  }

  /* ===== Footer ===== */
  footer {
    padding: 2rem 1rem;
  }

  footer p {
    font-size: 0.85rem;
  }

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

  .footer-content > div {
    text-align: center;
  }

  .footer-links h4,
  .footer-contact h4 {
    font-size: 1rem;
    margin-bottom: 0.75rem;
  }

  .footer-links a,
  .footer-contact a {
    display: inline;
    margin: 0 0.25rem;
    font-size: 0.8rem;
  }

  .footer-bottom {
    font-size: 0.8rem;
  }

  /* ===== Back to Top Button ===== */
  #backToTop {
    width: 40px;
    height: 40px;
    bottom: 1.5rem;
    right: 1.5rem;
    font-size: 1.2rem;
  }

  /* ===== Share Link Section ===== */
  .share-link-section {
    padding: 2rem 1rem;
  }

  .share-link-container h3 {
    font-size: 1.3rem;
    margin-bottom: 1.5rem;
  }

  .link-input-wrapper {
    flex-wrap: wrap;
    gap: 0.5rem;
    padding: 0.5rem;
  }

  .link-input {
    width: 100%;
    order: 2;
    font-size: 0.9rem;
  }

  .link-icon {
    order: 1;
  }

  .share-btn {
    width: 100%;
    order: 3;
    padding: 0.75rem 1rem;
    font-size: 0.9rem;
  }

  .link-preview {
    margin-top: 1rem;
    padding: 1rem;
  }

  .preview-content {
    gap: 0.75rem;
  }

  .preview-content img {
    width: 32px;
    height: 32px;
  }

  .preview-text p:first-child {
    font-size: 0.9rem;
  }

  .preview-text p:last-child {
    font-size: 0.75rem;
    word-break: break-all;
  }
}

@media (max-width: 480px) {
  .container {
    padding: 0 0.75rem;
  }

  .hero-title {
    font-size: 1.4rem;
  }

  .section-title {
    font-size: 1.2rem;
  }

  .hero {
    padding: 2rem 0.75rem;
  }

  section {
    padding: 1.5rem 0.75rem !important;
  }

  .nav-menu {
    gap: 0.5rem;
    font-size: 0.75rem;
  }

  .nav-link {
    font-size: 0.7rem;
  }

  .hero-cta {
    gap: 0.75rem;
    margin-top: 1.5rem;
  }

  .hero-cta button,
  .hero-cta a {
    padding: 0.65rem 1.2rem;
    font-size: 0.9rem;
  }

  .service-card,
  .project-card,
  .testimonial-card {
    padding: 1.2rem 0.75rem;
  }

  .service-icon {
    width: 40px;
    height: 40px;
    font-size: 1.2rem;
  }

  h3 {
    font-size: 1rem;
  }

  h4 {
    font-size: 0.95rem;
  }

  /* ===== Contact Section ===== */
  .contact-section {
    padding: 2rem 0.75rem;
  }

  .contact-content h2 {
    font-size: 1.4rem;
    margin-bottom: 0.5rem;
  }

  .contact-content p {
    font-size: 0.9rem;
    margin-bottom: 1.25rem;
  }

  .contact-form input,
  .contact-form textarea {
    padding: 0.65rem;
    font-size: 0.95rem;
  }

  .contact-form button {
    padding: 0.7rem;
    font-size: 0.95rem;
  }

  footer {
    padding: 1.5rem 0.75rem;
  }

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

  .footer-links a,
  .footer-contact a {
    font-size: 0.75rem;
    margin: 0 0.2rem;
  }

  .footer-bottom {
    font-size: 0.75rem;
  }

  .share-link-container h3 {
    font-size: 1.1rem;
  }

  #backToTop {
    width: 36px;
    height: 36px;
    bottom: 1rem;
    right: 1rem;
    font-size: 1rem;
  }
}
