/* 
   ZINCO ROOFING SOLUTIONS 
   Core Stylesheet (Static Version)
*/

:root {
  /* Primary Colors */
  --bg-primary: #ffffff;
  --bg-secondary: #f8fafc;
  --surface: #ffffff;
  --white: #ffffff;

  /* Text Colors */
  --text-primary: #0f172a;
  --text-secondary: #475569;
  --text-muted: #94a3b8;
  --text-inverse: #ffffff;

  /* Accent - Professional Blue */
  --accent-50: #eff6ff;
  --accent-100: #dbeafe;
  --accent-400: #60a5fa;
  --accent-500: #2563eb;
  --accent-600: #1d4ed8;
  --accent-700: #1e40af;
  --accent-800: #1e3a8a;
  --accent-900: #172554;

  /* Neutrals */
  --gray-50: #f8fafc;
  --gray-100: #f1f5f9;
  --gray-200: #e2e8f0;
  --gray-300: #cbd5e1;
  --gray-400: #94a3b8;
  --gray-500: #64748b;
  --gray-700: #334155;
  --gray-800: #1e293b;
  --gray-900: #0f172a;

  /* Gradients */
  --gradient-hero: linear-gradient(135deg, #f8fafc 0%, #ffffff 100%);
  --gradient-accent: linear-gradient(135deg, #2563eb 0%, #1d4ed8 100%);
  --gradient-secondary: linear-gradient(135deg, #0f172a 0%, #334155 100%);

  /* Spacing */
  --spacing-xs: 0.25rem;
  --spacing-sm: 0.5rem;
  --spacing-md: 1rem;
  --spacing-lg: 1.5rem;
  --spacing-xl: 2rem;
  --spacing-2xl: 2.5rem;
  --spacing-3xl: 3rem;
  --spacing-4xl: 4rem;
  --spacing-5xl: 5rem;

  /* Typography */
  --font-heading: 'Outfit', 'Montserrat', sans-serif;
  --font-body: 'Inter', sans-serif;

  /* Font Sizes */
  /* Font Sizes - Upgraded for Premium Readability */
  /* Font Sizes - Responsive Scaling */
  --text-xs: 0.75rem;
  --text-sm: 0.875rem;
  --text-base: 1rem;
  --text-lg: 1.125rem;
  --text-xl: 1.25rem;
  --text-2xl: 1.5rem;
  --text-3xl: 1.875rem;
  --text-4xl: 2.25rem;
  --text-5xl: 3rem;
  --text-6xl: 3.75rem;
  --text-7xl: 4.5rem;

  @media (max-width: 768px) {
    --text-3xl: 1.5rem;
    --text-4xl: 1.75rem;
    --text-5xl: 2rem;
    --text-6xl: 2.5rem;
    --text-7xl: 3rem;
    --spacing-xl: 1rem;
    --spacing-2xl: 1.5rem;
    --spacing-3xl: 2.5rem;
    --spacing-4xl: 4rem;
    --spacing-5xl: 6rem;
  }

  @media (max-width: 480px) {
    --spacing-xl: 0.75rem;
    --spacing-2xl: 1.25rem;
    --spacing-lg: 0.75rem;
  }

  /* Shadows */
  --shadow-sm: 0 1px 2px 0 rgb(0 0 0 / 0.05);
  --shadow-md: 0 4px 6px -1px rgb(0 0 0 / 0.1);
  --shadow-lg: 0 10px 15px -3px rgb(0 0 0 / 0.1);
  --shadow-xl: 0 20px 25px -5px rgb(0 0 0 / 0.1);
  --shadow-2xl: 0 25px 50px -12px rgb(0 0 0 / 0.25);

  /* Border Radius */
  --radius-sm: 0.375rem;
  --radius-md: 0.5rem;
  --radius-lg: 0.75rem;
  --radius-xl: 1rem;
  --radius-2xl: 1.5rem;
  --radius-full: 9999px;

  /* Transitions */
  --transition-fast: 150ms cubic-bezier(0.4, 0, 0.2, 1);
  --transition-base: 300ms cubic-bezier(0.4, 0, 0.2, 1);
  --transition-slow: 500ms cubic-bezier(0.4, 0, 0.2, 1);

  /* Z-Index */
  --z-sticky: 1020;
}

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

html {
  scroll-behavior: smooth;
  font-family: var(--font-body);
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  -webkit-tap-highlight-color: transparent;
}

body {
  background-color: var(--bg-primary);
  color: var(--text-primary);
  line-height: 1.6;
  overflow-x: hidden;
}

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

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

img {
  max-width: 100%;
  height: auto;
  display: block; /* Speed: avoid layout shifts */
}

section {
  content-visibility: auto; /* Speed: defer off-screen rendering */
  contain-intrinsic-size: 1px 500px;
}

/* Buttons */
.btn-primary {
  background: var(--gradient-accent);
  color: #ffffff;
  padding: 0.75rem 2rem;
  border-radius: var(--radius-md);
  font-weight: 700;
  font-family: var(--font-heading);
  border: none;
  cursor: pointer;
  transition: var(--transition-base);
  display: inline-block;
  text-align: center;
}

/* Utility Classes */
.text-center { text-align: center !important; }
.mx-auto { margin-left: auto !important; margin-right: auto !important; }
.display-block { display: block !important; }
.display-inline-block { display: inline-block !important; }

/* ═══════════════════════════════════════════════════════════════
   PREMIUM ANIMATION KEYFRAMES
   ═══════════════════════════════════════════════════════════════ */

@keyframes kenBurns {
  0% { transform: scale(1); }
  100% { transform: scale(1.08); }
}

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

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

@keyframes glowPulse {
  0%, 100% { box-shadow: 0 0 5px rgba(37, 99, 235, 0.3); }
  50% { box-shadow: 0 0 20px rgba(37, 99, 235, 0.6), 0 0 40px rgba(37, 99, 235, 0.2); }
}

@keyframes shimmer {
  0% { background-position: -200% center; }
  100% { background-position: 200% center; }
}

@keyframes breathe {
  0%, 100% { transform: scale(1); }
  50% { transform: scale(1.06); }
}

@keyframes gradientShift {
  0% { background-position: 0% 50%; }
  50% { background-position: 100% 50%; }
  100% { background-position: 0% 50%; }
}

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

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

@keyframes dotProgress {
  from { width: 0%; }
  to { width: 100%; }
}

@keyframes float {
  0%, 100% { transform: translateY(0) rotate(0deg); }
  50% { transform: translateY(-20px) rotate(5deg); }
}

@keyframes typingDots {
  0%, 80%, 100% { opacity: 0.3; transform: scale(0.8); }
  40% { opacity: 1; transform: scale(1); }
}

@keyframes ringPulse {
  0% { transform: scale(1); opacity: 1; }
  100% { transform: scale(1.8); opacity: 0; }
}

/* ═══════════════════════════════════════════════════════════════
   SCROLL REVEAL SYSTEM
   ═══════════════════════════════════════════════════════════════ */

.reveal {
  opacity: 0;
  transform: translateY(40px);
  transition: opacity 0.8s cubic-bezier(0.16, 1, 0.3, 1), transform 0.8s cubic-bezier(0.16, 1, 0.3, 1);
}

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

.reveal-child {
  opacity: 0;
  transform: translateY(25px);
  transition: opacity 0.6s cubic-bezier(0.16, 1, 0.3, 1), transform 0.6s cubic-bezier(0.16, 1, 0.3, 1);
}

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

.reveal.active .reveal-child:nth-child(1) { transition-delay: 0.05s; }
.reveal.active .reveal-child:nth-child(2) { transition-delay: 0.15s; }
.reveal.active .reveal-child:nth-child(3) { transition-delay: 0.25s; }
.reveal.active .reveal-child:nth-child(4) { transition-delay: 0.35s; }
.reveal.active .reveal-child:nth-child(5) { transition-delay: 0.45s; }
.reveal.active .reveal-child:nth-child(6) { transition-delay: 0.55s; }

.btn-primary:hover {
  transform: translateY(-2px);
  box-shadow: var(--shadow-lg);
  filter: brightness(1.1);
}

.btn-outline {
  background: transparent;
  color: var(--accent-600);
  border: 2px solid var(--accent-600);
  padding: 0.75rem 2rem;
  border-radius: var(--radius-md);
  font-weight: 700;
  font-family: var(--font-heading);
  cursor: pointer;
  transition: var(--transition-base);
  display: inline-block;
}

.btn-outline:hover {
  background: var(--accent-50);
}

/* Container */
.container {
  max-width: 1280px;
  margin: 0 auto;
  padding: 0 var(--spacing-lg);
}

/* Navbar — Premium Frosted Glass */
.navbar {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: var(--z-sticky);
  background: rgba(255, 255, 255, 0.96);
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
  border-bottom: 1px solid rgba(226, 232, 240, 0.6);
  box-shadow: 0 1px 3px rgba(0,0,0,0.04);
  height: 80px;
  display: flex;
  align-items: center;
  transition: height 0.3s ease, box-shadow 0.3s ease, background 0.3s ease;
  will-change: height;
  transform: translateZ(0);
  contain: layout; /* Speed optimization */
}

.navbar.scrolled {
  height: 70px;
  background: rgba(255, 255, 255, 0.98);
  box-shadow: 0 4px 20px rgba(0,0,0,0.1);
}

.navbar.scrolled .logo img {
  height: 42px;
}

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

.logo {
  display: flex;
  align-items: center;
}

.logo img {
  height: 55px;
  width: auto;
}

.nav-links {
  display: flex;
  gap: var(--spacing-lg);
  list-style: none;
}

.nav-link {
  color: var(--text-primary);
  font-family: var(--font-heading);
  font-weight: 700;
  font-size: 0.85rem;
  position: relative;
  padding-bottom: 4px;
}

.nav-link::after {
  content: '';
  position: absolute;
  bottom: 0;
  left: 0;
  width: 0;
  height: 2px;
  background: var(--gradient-accent);
  transition: width 0.3s cubic-bezier(0.16, 1, 0.3, 1);
  border-radius: 2px;
}

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

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

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

.nav-actions .btn-outline, 
.nav-actions .btn-primary {
  padding: 0.5rem 1.25rem;
  font-size: 0.8rem;
  border-radius: 8px;
}

.menu-toggle {
  display: none;
  font-size: 2rem;
  background: none;
  border: none;
  cursor: pointer;
}

/* Mobile Menu Full-Screen Overlay */
.mobile-menu {
  position: fixed;
  top: 70px;
  left: 0;
  right: 0;
  height: calc(100vh - 70px);
  height: calc(100dvh - 70px);
  background: rgba(255, 255, 255, 0.98);
  backdrop-filter: blur(25px);
  -webkit-backdrop-filter: blur(25px);
  padding: 1rem var(--spacing-md) 2rem; /* Reduced padding to fit more links */
  display: flex;
  flex-direction: column;
  gap: var(--spacing-xs); /* Tighter gap */
  z-index: 1010;
  overflow-y: auto;
  
  /* Smooth animation */
  opacity: 0;
  visibility: hidden;
  transform: translateY(-20px);
  transition: all 0.4s cubic-bezier(0.16, 1, 0.3, 1);
}

@media (min-width: 1025px) {
  .mobile-menu { display: none; }
}

.mobile-menu.active {
  opacity: 1;
  visibility: visible;
  transform: translateY(0);
}

.mobile-menu .nav-link, .mobile-menu a {
  font-size: 1.1rem; /* Slightly smaller */
  font-weight: 700;
  padding: 12px 16px; /* Reduced padding */ 
  color: var(--text-primary);
  text-align: center;
  transition: color 0.3s ease, background 0.3s ease;
  width: 100%;
  border-radius: var(--radius-md);
  -webkit-tap-highlight-color: transparent;
  display: block;
}

.mobile-menu .nav-link:hover, .mobile-menu a:hover, .mobile-menu a:active {
  color: var(--accent-600);
  background: var(--accent-50);
}

/* Hero */
.hero {
  position: relative;
  min-height: 100vh;
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
  padding-top: 40px;
  background: #000;
}

.hero-background {
  position: absolute;
  inset: 0;
}

.hero-overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(to bottom, rgba(0,0,0,0.4) 0%, rgba(0,0,0,0.7) 100%);
  z-index: 1;
}

.hero-content {
  position: relative;
  z-index: 2;
  text-align: center;
  color: #ffffff;
  max-width: 1000px;
}

.hero-title {
  font-size: clamp(2.5rem, 8vw, 5rem);
  margin-bottom: var(--spacing-md);
  margin-inline: auto;
  text-align: center;
}

.hero-title span {
  font-weight: 800;
  color: inherit;
}

.hero-description {
  font-size: clamp(1rem, 2vw, 1.25rem);
  margin-bottom: var(--spacing-xl);
  max-width: 700px;
  margin-inline: auto;
  text-align: center;
}

.hero-cta {
  display: flex;
  gap: 20px;
  justify-content: center;
  flex-wrap: wrap;
}

/* Footer */
.footer {
  background: var(--bg-secondary);
  padding: var(--spacing-4xl) 0 var(--spacing-xl);
  border-top: 3px solid transparent;
  border-image: linear-gradient(90deg, var(--accent-500), var(--accent-700), transparent) 1;
  margin-top: var(--spacing-4xl);
  position: relative;
}

.footer-grid {
  display: grid;
  grid-template-columns: 1.5fr repeat(4, 1fr);
  gap: var(--spacing-xl);
  margin-bottom: var(--spacing-3xl);
}

.footer-brand p {
  margin-top: 15px;
  font-size: 0.9rem;
  color: var(--text-secondary);
  max-width: 300px;
}

.footer-social {
  display: flex;
  gap: 12px;
  margin-top: 20px;
}

.footer-social-icon {
  width: 36px;
  height: 36px;
  background: #fff;
  border: 1px solid var(--gray-200);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--text-primary);
  transition: all 0.3s ease;
}

.footer-social-icon:hover {
  background: var(--accent-500);
  color: #fff;
  transform: translateY(-3px);
  border-color: var(--accent-500);
}

.footer-title {
  font-size: var(--text-sm);
  font-weight: 800;
  color: var(--text-primary);
  text-transform: uppercase;
  letter-spacing: 0.05em;
  margin-bottom: var(--spacing-md);
}

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

.footer-link {
  color: var(--text-secondary);
  font-weight: 500;
  font-size: 0.9rem;
  transition: all 0.3s cubic-bezier(0.16, 1, 0.3, 1);
  display: block;
  padding: 4px 0;
}

.footer-link:hover {
  color: var(--accent-600);
  padding-left: 8px;
}

.footer-link:hover::after {
  content: ' →';
}

/* Responsive */
@media (max-width: 1200px) {
  .footer-grid {
    grid-template-columns: 1fr 1fr 1fr;
  }
}

@media (max-width: 1024px) {
  .nav-links {
    display: none;
  }
  .nav-actions a.btn-outline, .nav-actions a.btn-primary {
    display: none;
  }
  .nav-actions {
    gap: 12px;
  }
  .menu-toggle {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 44px;
    height: 44px;
    margin-left: 5px;
    font-size: 1.5rem;
    color: var(--text-primary);
  }
}

@media (max-width: 768px) {
  .hero-title {
    font-size: clamp(2rem, 10vw, 3rem);
    line-height: 1.1;
  }
  .hero-description {
    font-size: 0.95rem;
    padding: 0 15px;
  }
  .container {
    padding: 0 1.25rem;
  }
  
  /* Grid Force Stack */
  .services-grid, .footer-grid, .areas-grid, .projects-grid,
  .benefit-grid, .stats-grid, .faq-grid, .form-grid {
    grid-template-columns: 1fr !important;
    gap: 1.5rem;
  }
  
  .navbar {
    height: 70px;
  }
  
  .logo img {
    height: 48px; /* Slightly larger for visibility */
  }

  /* Chatbot Mobile Polish */
  .chatbot-bubble {
    width: 50px;
    height: 50px;
    bottom: 15px;
    right: 15px;
    font-size: 1.2rem;
  }
  
  .chatbot-window {
    width: calc(100% - 30px);
    right: 15px;
    bottom: 80px;
    max-height: 60vh;
  }
}

@media (max-width: 480px) {
  .hero-title {
    font-size: clamp(2rem, 8vw, 2.5rem);
  }
  .footer-grid {
    grid-template-columns: 1fr;
  }
  .navbar {
    height: 70px;
  }
  .logo img {
    height: 45px;
  }
  .hero {
      padding-top: 70px;
  }
}

/* Services Showcase */
.services-section {
  padding: 40px 0;
  background: #ffffff;
}

.services-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: var(--spacing-xl);
  margin-top: var(--spacing-2xl);
}

.service-card {
  background: #ffffff;
  border-radius: var(--radius-xl);
  border: 1px solid var(--gray-200);
  overflow: hidden;
  transition: all 0.5s cubic-bezier(0.16, 1, 0.3, 1);
  height: 100%;
  display: flex;
  flex-direction: column;
  box-shadow: var(--shadow-md);
  position: relative;
}

.service-card::before {
  content: '';
  position: absolute;
  top: 0; right: 0;
  width: 60px; height: 60px;
  background: linear-gradient(135deg, transparent 50%, rgba(37,99,235,0.06) 50%);
  transition: all 0.4s ease;
  z-index: 1;
}

.service-card:hover {
  transform: translateY(-8px) scale(1.01);
  box-shadow: 0 20px 40px -10px rgba(37, 99, 235, 0.15), 0 8px 16px -6px rgba(0,0,0,0.08);
  border-color: var(--accent-400);
}

.service-card:hover::before {
  width: 80px; height: 80px;
}

.service-image-box {
  height: 200px;
  overflow: hidden;
}

@media (max-width: 768px) {
  .service-image-box { height: 160px; }
  .service-content { padding: 1.25rem; }
}

.service-image-box img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.5s ease;
}

.service-card:hover .service-image-box img {
  transform: scale(1.1);
}

.service-content {
  padding: var(--spacing-lg);
  flex-grow: 1;
}

.service-content h3 {
  font-size: var(--text-xl);
  margin-bottom: var(--spacing-sm);
  color: var(--text-primary);
}

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

/* Quote Form */
.quote-section {
  padding: 40px 0;
  background: var(--bg-secondary);
  border-top: 1px solid var(--gray-200);
}

.form-header {
  text-align: center;
  margin-bottom: var(--spacing-3xl);
}

.form-header h2 {
  font-size: 2.25rem;
  font-weight: 800;
  color: var(--text-primary);
  margin-bottom: 10px;
}

.form-header p {
  color: var(--text-secondary);
  font-size: 1.1rem;
}

.form-card {
  background: #ffffff;
  padding: var(--spacing-4xl);
  border-radius: 24px;
  box-shadow: 0 20px 50px rgba(0, 0, 0, 0.05);
  border: 1px solid var(--gray-100);
  max-width: 900px;
  margin: 0 auto;
  transition: transform 0.3s ease;
}

.form-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: var(--spacing-xl);
}

.form-group {
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.form-group-full {
  grid-column: span 2;
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.form-group label {
  font-size: 0.9rem;
  font-weight: 700;
  color: var(--text-primary);
  margin-left: 4px;
}

.form-group input, .form-group-full input, .form-group select, .form-group-full select, .form-group textarea, .form-group-full textarea {
  width: 100%;
  padding: 1rem 1.25rem;
  border: 1.5px solid var(--gray-200);
  border-radius: 12px;
  font-family: inherit;
  font-size: 1rem;
  transition: all 0.3s ease;
  background: #fff;
  display: block;
}

.form-group input::placeholder {
  color: var(--gray-400);
}

.form-group input:focus, .form-group select:focus, .form-group textarea:focus {
  outline: none;
  border-color: var(--accent-600);
  box-shadow: 0 0 0 4px rgba(37, 99, 235, 0.1);
  background: #fff;
}

.btn-form-submit {
  width: 100%;
  padding: 1.25rem;
  background: var(--accent-600);
  color: #fff;
  border: none;
  border-radius: 12px;
  font-weight: 800;
  font-size: 1.1rem;
  cursor: pointer;
  transition: all 0.3s ease;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
}

.btn-form-submit:hover {
  background: var(--accent-700);
  transform: translateY(-2px);
  box-shadow: 0 10px 20px rgba(37, 99, 235, 0.2);
}

.btn-form-submit i {
  transition: transform 0.3s ease;
}

.btn-form-submit:hover i {
  transform: translateX(5px);
}

@media (max-width: 768px) {
  .form-grid {
    grid-template-columns: 1fr;
  }
  .form-group-full {
    grid-column: span 1;
  }
  .form-header h2 {
    font-size: 1.75rem;
  }
  .form-card {
    padding: 1.5rem;
  }
}

/* Home Page Background Carousel (Hero) */
.hero {
  position: relative;
  height: 100vh;
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
  background: #000;
  color: #fff;
  text-align: center;
}

.hero-carousel-bg {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  display: flex;
  transition: transform 1s cubic-bezier(0.4, 0, 0.2, 1);
  z-index: 1;
  will-change: transform;
  transform: translateZ(0);
}

.hero-slide {
  min-width: 100%;
  height: 100%;
  background-size: cover;
  background-position: center;
  will-change: auto;
  transform: translateZ(0);
}

.hero-overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(135deg, rgba(15, 23, 42, 0.7) 0%, rgba(30, 58, 138, 0.5) 50%, rgba(15, 23, 42, 0.75) 100%);
  z-index: 2;
}

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

.hero-dots {
  position: absolute;
  bottom: 30px;
  left: 50%;
  transform: translateX(-50%);
  display: flex;
  gap: 15px;
  z-index: 20;
}

.hero-dot {
  width: 12px;
  height: 12px;
  background: rgba(255,255,255,0.25);
  border-radius: 50%;
  cursor: pointer;
  transition: all 0.4s cubic-bezier(0.16, 1, 0.3, 1);
  position: relative;
}

.hero-dot.active {
  background: #fff;
  width: 40px;
  border-radius: 10px;
  box-shadow: 0 0 12px rgba(255,255,255,0.4);
}

.hero-dot:hover:not(.active) {
  background: rgba(255,255,255,0.5);
  transform: scale(1.2);
}

/* Darken text ONLY for the video hero with overlay */
.hero:has(.hero-overlay) {
  color: #ffffff;
}

.hero .container {
  position: relative;
  z-index: 3;
}

/* Sub-page Heroes (Plain White Minimalist - No Background) */
.services-hero, .projects-hero, .location-hero, .contact-hero, .products-hero {
  padding: clamp(140px, 20vh, 180px) 0 60px;
  background: var(--bg-primary); /* Absolute Plain White */
  position: relative;
  color: #334155; /* Premium Dark Grey */
  text-align: center;
  display: flex;
  align-items: center;
  justify-content: center;
  border-bottom: 1px solid var(--gray-100);
}

.services-hero .container, .projects-hero .container, .location-hero .container, .contact-hero .container, .products-hero .container {
  max-width: 1000px;
  position: relative;
  z-index: 2;
}

.services-hero h1, .projects-hero h1, .location-hero h1, .contact-hero h1, .products-hero h1 {
  font-size: clamp(2.2rem, 5vw, 3.5rem);
  font-weight: 800;
  color: #1e293b; /* Darkest Grey */
  margin-bottom: 20px;
  text-shadow: none !important;
}

/* Force ALL hero text including spans to be dark grey */
.text-gradient {
  color: var(--gray-700);
  font-weight: 700;
}

.services-hero p, .projects-hero p, .location-hero p, .contact-hero p, .products-hero p {
  font-size: 1.15rem;
  color: #475569; /* Soft grey for descriptions */
  max-width: 800px;
  margin: 0 auto;
  text-shadow: none !important;
}

.projects-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
  gap: var(--spacing-xl);
  padding: var(--spacing-3xl) 0;
}

.project-card {
  text-align: center;
  background: #fff;
  border-radius: var(--radius-xl);
  border: 1px solid var(--gray-200);
  overflow: hidden;
  transition: all 0.5s cubic-bezier(0.16, 1, 0.3, 1);
  display: flex;
  flex-direction: column;
  position: relative;
}

.project-card:hover {
  transform: translateY(-8px) scale(1.01);
  box-shadow: 0 20px 40px -10px rgba(37, 99, 235, 0.15), 0 8px 16px -6px rgba(0,0,0,0.08);
  border-color: var(--accent-400);
}

.project-image-wrapper {
  position: relative;
}

.project-image-wrapper::after {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(to top, rgba(37,99,235,0.08) 0%, transparent 50%);
  opacity: 0;
  transition: opacity 0.4s ease;
}

.project-card:hover .project-image-wrapper::after {
  opacity: 1;
}

.project-image-wrapper {
  height: 200px;
  overflow: hidden;
  border-bottom: 2px solid var(--accent-500);
}

@media (max-width: 768px) {
  .project-image-wrapper { height: 160px; }
  .project-content { padding: 1.25rem; }
}

.project-image-wrapper img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.project-content {
  padding: var(--spacing-lg);
  flex-grow: 1;
}

.project-header-row {
  display: flex;
  align-items: center;
  gap: 10px;
  margin-bottom: 10px;
}

.project-header-row i {
  color: var(--accent-500);
}

.project-category {
  font-size: 0.7rem;
  text-transform: uppercase;
  font-weight: 800;
  color: var(--accent-600);
  letter-spacing: 0.1em;
}

.project-title {
  font-size: 1.1rem;
  font-weight: 800;
  margin-bottom: 15px;
}

.project-footer {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding-top: 10px;
  border-top: 1px solid var(--gray-100);
}

.project-location {
  font-size: 0.8rem;
  color: var(--text-secondary);
  display: flex;
  align-items: center;
  gap: 5px;
}

.status-badge {
  font-size: 10px;
  padding: 3px 10px;
  background: #dcfce7;
  color: #166534;
  border-radius: 50px;
  font-weight: 700;
}

.narrative-block {
    margin-bottom: 40px;
}

.narrative-block h2, .narrative-block h3 {
    margin-bottom: 15px;
}

.narrative-block p {
    margin-bottom: 15px;
    color: var(--text-secondary);
    line-height: 1.8;
}

@media (max-width: 640px) {
  .projects-grid {
    grid-template-columns: 1fr;
  }
}

/* Removed trailing legacy .services-hero background rules */

.service-row {
  display: flex;
  align-items: center;
  gap: var(--spacing-3xl);
  padding: 40px 0;
}

.service-row.reverse {
  flex-direction: row-reverse;
}

.service-text {
  flex: 1;
}

.service-visual {
  flex: 0 0 320px;
  width: 320px;
  height: 320px;
  display: flex;
}

.service-visual img {
  border-radius: var(--radius-2xl);
  box-shadow: var(--shadow-2xl);
  width: 100%;
  height: 100%;
  object-fit: cover;
}

@media (max-width: 768px) {
  .service-row,
  .service-row.reverse {
    flex-direction: column;
  }
  .service-visual {
    flex: 0 0 auto;
    width: 100%;
    height: 280px;
  }
}

.image-card-container {
  width: 100%;
  height: 100%;
  display: flex;
}

.matching-image {
  width: 100%;
  height: 100%;
  object-fit: cover;
  border-radius: var(--radius-2xl);
  box-shadow: var(--shadow-2xl);
}

.icon-circle {
  width: 60px;
  height: 60px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.5rem;
  margin-bottom: 20px;
  margin-inline: auto; /* Ensure centering in block containers */
}

.feature-list {
  list-style: none;
  margin-top: 20px;
}

.feature-item {
  display: flex;
  align-items: center;
  gap: 10px;
  margin-bottom: 10px;
  font-weight: 600;
  font-size: 0.9rem;
}

.feature-item i {
  color: var(--accent-500);
}

.specialized-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
  gap: var(--spacing-lg);
  padding: 40px 0;
}

.category-card {
  text-align: center;
  background: #fff;
  padding: var(--spacing-xl);
  border-radius: var(--radius-xl);
  border: 1px solid var(--gray-200);
  transition: all 0.3s ease;
  height: 100%;
}

.category-card:hover {
  transform: translateY(-5px);
  border-color: var(--accent-500);
}

@media (max-width: 768px) {
  .service-row, .service-row.reverse {
    flex-direction: column;
    text-align: center;
    gap: var(--spacing-xl);
  }
}

.clickable-card {
    position: relative;
    cursor: pointer;
    transition: transform var(--transition-base), box-shadow var(--transition-base) !important;
}

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

.clickable-card .explore-link::after,
.clickable-card .area-link::after,
.clickable-card .category-card-link::after,
.sub-product-card .view-details-link::after,
.service-card .btn-outline::after,
.project-card .project-link-overlay::after {
    content: '';
    position: absolute;
    inset: 0;
    z-index: 10;
}

/* Category Selection Grid - Fixed Professional Alignment */
.category-selection-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr); /* Sleek 3-Column Layout */
    gap: 40px;
    padding: 60px 0;
    max-width: 1300px;
    margin: 0 auto;
    width: 100%;
}

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

@media (max-width: 768px) {
    .category-selection-grid {
        grid-template-columns: 1fr;
    }
}

/* Advanced Electric Lightning Border Effect */
.category-selection-card {
    background: #0f172a; /* Deeper Navy for high contrast */
    border-radius: 20px;
    overflow: hidden;
    transition: all 0.5s cubic-bezier(0.19, 1, 0.22, 1);
    position: relative;
    display: flex;
    flex-direction: column;
    padding: 3px; /* Space for the electric border */
    isolation: isolate;
    border: none;
}

/* The Glow Border Layer (CSS-only, no SVG filter) */
.category-selection-card::before {
    content: "";
    position: absolute;
    inset: 0;
    padding: 3px;
    border-radius: 20px;
    background: linear-gradient(135deg, transparent 30%, #3b82f633 50%, transparent 70%);
    mask: linear-gradient(#fff 0 0) content-box, linear-gradient(#fff 0 0);
    -webkit-mask: linear-gradient(#fff 0 0) content-box, linear-gradient(#fff 0 0);
    mask-composite: exclude;
    -webkit-mask-composite: destination-out;
    opacity: 0.5;
    transition: opacity 0.3s ease;
}

/* Glow Animation on Hover (pure CSS, no SVG filter) */
.category-selection-card:hover::before {
    background: linear-gradient(135deg, #3b82f6 0%, #60a5fa 50%, #3b82f6 100%);
    opacity: 1;
    animation: rotateGlow 3s linear infinite;
}

@keyframes rotateGlow {
  0%   { background: linear-gradient(0deg,   #3b82f6 0%, #60a5fa 50%, #3b82f6 100%); }
  25%  { background: linear-gradient(90deg,  #3b82f6 0%, #60a5fa 50%, #3b82f6 100%); }
  50%  { background: linear-gradient(180deg, #3b82f6 0%, #60a5fa 50%, #3b82f6 100%); }
  75%  { background: linear-gradient(270deg, #3b82f6 0%, #60a5fa 50%, #3b82f6 100%); }
  100% { background: linear-gradient(360deg, #3b82f6 0%, #60a5fa 50%, #3b82f6 100%); }
}

.category-selection-card:hover {
    transform: translateY(-8px) scale(1.01);
    box-shadow: 0 0 45px rgba(59, 130, 246, 0.2);
    cursor: pointer;
}

.category-selection-card .card-image-container {
    height: 220px;
    width: 100%;
    overflow: hidden;
    position: relative;
    border-top-left-radius: 17px;
    border-top-right-radius: 17px;
}

@media (max-width: 768px) {
    .category-selection-card .card-image-container { height: 160px; }
    .category-selection-card .card-inner-content { padding: 25px 20px; }
    .category-selection-card .selection-title { font-size: 1.35rem; }
}

.category-selection-card .card-image-container img {
    height: 100%;
    width: 100%;
    object-fit: cover;
    transition: transform 0.8s ease;
    filter: brightness(0.8);
}

.category-selection-card:hover .card-image-container img {
    transform: scale(1.1);
    filter: brightness(1.15) contrast(1.1);
}

.category-selection-card .card-inner-content {
    padding: 35px 30px;
    background: #1e293b;
    border-bottom-left-radius: 17px;
    border-bottom-right-radius: 17px;
    flex-grow: 1;
    display: flex;
    flex-direction: column;
    position: relative;
    z-index: 1;
}

.category-selection-card .selection-title {
    color: #fff;
    font-size: 1.6rem;
    font-weight: 900;
    margin-bottom: 15px;
    background: linear-gradient(135deg, #fff, #94a3b8);
    -webkit-background-clip: text;
    background-clip: text;
    -webkit-text-fill-color: transparent;
    letter-spacing: -0.03em;
}

.category-selection-card p {
    color: #94a3b8;
    font-size: 1rem;
    line-height: 1.7;
    margin-bottom: 25px;
    flex-grow: 1;
    font-weight: 400;
}

.category-selection-card .explore-link {
    color: #3b82f6;
    font-weight: 800;
    font-size: 0.9rem;
    text-transform: uppercase;
    letter-spacing: 0.15em;
    display: flex;
    align-items: center;
    justify-content: flex-start;
    gap: 12px;
}

.category-selection-card:hover .explore-link {
    color: #60a5fa;
}

.category-selection-card .explore-link span {
    transition: transform 0.3s ease;
}

.category-selection-card:hover .explore-link span {
    transform: translateX(8px);
}

.product-content .service-row {
    margin-bottom: 40px !important;
}

.product-content section, .product-content .reveal {
    margin-bottom: 40px !important;
}

/* Sub-Product Layout (Within a Category) */
.category-view {
    display: none;
    padding-top: 40px;
}



.category-view.active {
    display: block;
    animation: fadeIn 0.6s ease-out;
}

.category-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 50px;
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
    padding-bottom: 25px;
}

.category-header h1 {
    font-size: 2.2rem;
    font-weight: 900;
    margin: 0;
    background: linear-gradient(135deg, #fff, #3b82f6);
    -webkit-background-clip: text;
    background-clip: text;
    -webkit-text-fill-color: transparent;
}

.btn-back {
    background: rgba(37, 99, 235, 0.1);
    border: 1px solid rgba(37, 99, 235, 0.2);
    color: #3b82f6;
    padding: 10px 20px;
    border-radius: 30px;
    font-weight: 700;
    cursor: pointer;
    transition: all 0.3s ease;
}

.btn-back:hover {
    background: #3b82f6;
    color: #fff;
    transform: translateX(-5px);
}

.sub-products-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr); /* 3x2 Grid consistency */
    gap: 35px;
    padding-bottom: 80px;
    max-width: 1300px;
    margin: 0 auto;
}

/* Inherit Electric Card Logic for Sub-Products */
.sub-product-card {
    background: #0f172a;
    border-radius: 20px;
    padding: 3px;
    position: relative;
    display: flex;
    flex-direction: column;
    isolation: isolate;
    transition: transform 0.5s cubic-bezier(0.19, 1, 0.22, 1);
}

.sub-product-card::before {
    content: "";
    position: absolute;
    inset: 0;
    padding: 3px;
    border-radius: 20px;
    background: linear-gradient(135deg, transparent 30%, #3b82f633 50%, transparent 70%);
    mask: linear-gradient(#fff 0 0) content-box, linear-gradient(#fff 0 0);
    -webkit-mask: linear-gradient(#fff 0 0) content-box, linear-gradient(#fff 0 0);
    mask-composite: exclude;
    -webkit-mask-composite: destination-out;
    opacity: 0.4;
    transition: opacity 0.3s ease;
}

.sub-product-card:hover::before {
    background: linear-gradient(135deg, #3b82f6 0%, #60a5fa 50%, #3b82f6 100%);
    opacity: 1;
    animation: rotateGlow 3s linear infinite;
}

.sub-product-card:hover {
    transform: translateY(-8px);
}

.sub-product-card .product-img-box {
    height: 180px;
    border-radius: 17px 17px 0 0;
    overflow: hidden;
}

@media (max-width: 768px) {
    .sub-product-card .product-img-box { height: 140px; }
    .sub-product-card .card-content { padding: 1.25rem; }
    .sub-product-card h3 { font-size: 1.15rem; }
}

.sub-product-card .product-img-box img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.6s ease;
}

.sub-product-card:hover .product-img-box img {
    transform: scale(1.1);
}

.sub-product-card .card-content {
    padding: 25px;
    background: #1e293b;
    border-radius: 0 0 17px 17px;
    flex-grow: 1;
    display: flex;
    flex-direction: column;
    z-index: 1;
}

.sub-product-card h3 {
    color: #fff;
    font-size: 1.3rem;
    font-weight: 800;
    margin-bottom: 12px;
}

.sub-product-card p {
    color: #94a3b8;
    font-size: 0.9rem;
    line-height: 1.6;
    margin-bottom: 20px;
    flex-grow: 1;
}

.sub-product-card .view-details-link {
    color: #3b82f6;
    font-weight: 800;
    font-size: 0.8rem;
    text-transform: uppercase;
    letter-spacing: 0.1em;
    display: inline-flex;
    align-items: center;
    gap: 8px;
}

.sub-product-card:hover .view-details-link {
    color: #60a5fa;
}

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

@media (max-width: 600px) {
    .sub-products-grid {
        grid-template-columns: 1fr;
    }
}

.sub-product-icon {
    font-size: 3rem;
    margin-bottom: 25px;
    display: block;
}

.sub-product-card img {
    height: 80px;
    width: auto;
    margin-bottom: 25px;
    object-fit: contain;
}

.sub-product-card h3 {
    font-size: 1.5rem;
    margin-bottom: 15px;
    color: #fff;
}

.sub-product-card p {
    color: #94a3b8;
    font-size: 1rem;
    line-height: 1.6;
    margin-bottom: 25px;
}

.view-details-link {
    color: #3b82f6;
    font-weight: 700;
    font-size: 1rem;
    text-transform: uppercase;
    display: inline-flex;
    align-items: center;
    gap: 8px;
}

/* Removed trailing legacy .contact-hero background rules */

.contact-info-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: var(--spacing-xl);
  margin-top: 60px;
  position: relative;
  z-index: 3;
}

.info-card {
  background: #fff;
  padding: var(--spacing-3xl) var(--spacing-xl);
  border-radius: var(--radius-xl);
  box-shadow: var(--shadow-xl);
  text-align: center;
  border: 1px solid var(--gray-100);
  transition: transform 0.3s ease, box-shadow 0.3s ease;
  position: relative;
}

.info-card:hover {
  transform: translateY(-5px);
  box-shadow: var(--shadow-2xl);
}

.info-card i {
  font-size: 2rem;
  color: var(--accent-600);
  margin-bottom: 20px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 64px;
  height: 64px;
  background: var(--accent-50);
  border-radius: 50%;
  transition: all 0.3s ease;
}

.info-card:hover i {
  background: var(--accent-600);
  color: #fff;
  transform: rotate(10deg);
}

.info-card h3 {
  margin-bottom: 10px;
  color: var(--text-primary);
}

.info-card p, .info-card a {
  color: var(--text-secondary);
  font-size: 0.9rem;
  text-decoration: none;
}

.info-card a:hover {
  color: var(--accent-600);
}

/* Gallery Page Styles */
.gallery-filters {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  justify-content: center;
  margin-bottom: 40px;
}

.filter-btn {
  padding: 8px 20px;
  border-radius: 50px;
  border: 1px solid var(--gray-200);
  background: #fff;
  cursor: pointer;
  font-weight: 600;
  transition: all 0.3s ease;
}

.filter-btn.active, .filter-btn:hover {
  background: var(--accent-500);
  color: #fff;
  border-color: var(--accent-500);
}

.gallery-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
  gap: 20px;
}

.gallery-item {
  position: relative;
  border-radius: var(--radius-xl);
  overflow: hidden;
  aspect-ratio: 1;
  cursor: pointer;
}

.gallery-item img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.5s ease;
}

.gallery-item:hover img {
  transform: scale(1.1);
}

.gallery-overlay {
  position: absolute;
  inset: 0;
  background: rgba(0,0,0,0.6);
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
  padding: 20px;
  opacity: 0;
  transition: opacity 0.3s ease;
  color: #fff;
}

.gallery-item:hover .gallery-overlay {
  opacity: 1;
}

.gallery-overlay h3 {
  font-size: 1rem;
  margin-bottom: 5px;
}

.gallery-overlay span {
  font-size: 0.75rem;
  text-transform: uppercase;
  color: var(--accent-400);
}

/* Areas & Calculator Page Styles */
.areas-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(320px, 1fr));
  gap: 25px;
  padding: 40px 0;
}

.area-card {
  text-align: center;
  background: var(--bg-card);
  border-radius: var(--radius-xl);
  overflow: hidden;
  border: 1px solid var(--gray-200);
  transition: transform 0.3s ease;
  text-decoration: none;
  color: inherit;
  display: block;
}

.area-card:hover {
  transform: translateY(-10px);
  border-color: var(--accent-500);
}

.area-thumbnail {
  height: 200px;
  position: relative;
}

.area-thumbnail img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.area-icon-badge {
  position: absolute;
  bottom: -20px;
  left: 50%;
  transform: translateX(-50%);
  width: 50px;
  height: 50px;
  border-radius: 12px;
  display: flex;
  align-items: center;
  justify-content: center;
  color: #fff;
  box-shadow: var(--shadow-lg);
}

.area-info {
  padding: 30px 20px 20px;
}

/* Calculator Styles */
.calculator-card {
  background: #fff;
  border-radius: var(--radius-2xl);
  padding: var(--spacing-3xl);
  box-shadow: var(--shadow-2xl);
  max-width: 900px;
  margin: 0 auto;
}

.calc-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 40px;
}

.calc-results {
  background: var(--bg-secondary);
  padding: 30px;
  border-radius: var(--radius-xl);
  text-align: center;
}

.price-display {
  font-size: 2rem;
  font-weight: 800;
  color: var(--accent-600);
  margin: 15px 0;
}

.range-input {
  width: 100%;
  margin: 20px 0;
}

@media (max-width: 768px) {
  .calc-grid {
    grid-template-columns: 1fr;
  }
}

/* Product Sub-page Styles */
.product-content {
  padding: 60px 0;
}

.product-card-dark {
  background: var(--gray-900);
  color: #fff;
  padding: 40px;
  border-radius: var(--radius-2xl);
  margin-bottom: 40px;
  border: 1px solid var(--gray-800);
}

.product-card-dark h2, .product-card-dark h3 {
  color: #fff;
  margin-bottom: 20px;
}

.product-card-dark p {
  color: var(--gray-300);
}

.benefits-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
  gap: 20px;
  margin-bottom: 40px;
}

.benefit-card-glass {
  background: var(--bg-secondary);
  padding: 30px;
  border-radius: var(--radius-xl);
  border: 1px solid var(--gray-200);
  text-align: center;
  box-shadow: var(--shadow-sm);
  transition: all 0.3s ease;
}

.benefit-card-glass:hover {
  transform: translateY(-5px);
  box-shadow: var(--shadow-md);
  border-color: var(--accent-100);
}

.benefit-card-glass i {
  font-size: 2.2rem;
  color: var(--accent-500);
}

.benefit-card-glass h4 {
  color: var(--text-primary);
  margin-bottom: 12px;
  font-size: 1.1rem;
}

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

.specs-table {
  width: 100%;
  margin: 30px 0;
}

.spec-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  padding: 15px;
  border-bottom: 1px solid var(--gray-200);
}

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

.tech-table-wrapper {
  overflow-x: auto;
  margin: 30px 0;
}

.tech-table {
  width: 100%;
  border-collapse: collapse;
  min-width: 600px;
}

.tech-table th {
  background: var(--bg-secondary);
  padding: 15px;
  text-align: center;
  border-bottom: 2px solid var(--accent-500);
}

.tech-table td {
  padding: 15px;
  text-align: center;
  border-bottom: 1px solid var(--gray-100);
}

.faq-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 20px;
  margin-top: 40px;
}

.faq-item {
  background: var(--bg-secondary);
  padding: 25px;
  border-radius: var(--radius-xl);
}

.faq-item h4 {
  margin-bottom: 10px;
  color: var(--text-primary);
}

.cta-banner {
  background: var(--accent-gradient);
  padding: 60px;
  border-radius: var(--radius-2xl);
  text-align: center;
  color: #fff;
  margin-top: 60px;
}

.cta-banner h3 {
  font-size: 2rem;
  margin-bottom: 15px;
}

.cta-banner p {
  margin-bottom: 30px;
  opacity: 0.9;
}

/* Location Page Styles */
/* Combined Hero Standards into Global Section (Lines 652-685) */
/* Old .location-hero styles removed to fix grey background issue */

/* Location Service Cards (Keywords) */
.keyword-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 25px;
  margin: 60px 0;
}

.keyword-card {
  background: #fff;
  padding: 30px;
  border-radius: var(--radius-2xl);
  border: 1px solid var(--gray-200);
  transition: all 0.3s ease;
  position: relative;
  overflow: hidden;
}

.keyword-card:hover {
  transform: translateY(-5px);
  border-color: var(--accent-500);
  box-shadow: var(--shadow-xl);
}

.card-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 20px;
}

.icon-wrapper {
  width: 60px;
  height: 60px;
  border-radius: 15px;
  display: flex;
  align-items: center;
  justify-content: center;
}

.trend-badge {
  background: var(--bg-secondary);
  padding: 4px 10px;
  border-radius: 20px;
  font-size: 0.75rem;
  font-weight: 700;
  display: flex;
  align-items: center;
}

.keyword-card h3 {
  font-size: 1.25rem;
  margin-bottom: 15px;
  line-height: 1.4;
}

.keyword-card .category {
  font-size: 0.75rem;
  text-transform: uppercase;
  color: var(--text-secondary);
  letter-spacing: 0.1em;
  font-weight: 700;
}

/* Location Content Sections */
.location-section {
  padding: 80px 0;
}

.location-section img {
  border-radius: var(--radius-2xl);
  box-shadow: var(--shadow-xl);
  width: 100%;
}

@media (max-width: 768px) {
  .location-hero {
    height: auto;
    padding: 100px 0 60px;
  }
}

/* Industrial Calculator - Premium Large Layout */
.calc-ultra-wrapper {
  padding: 100px 0;
  background: var(--bg-primary);
}

/* Showcase Carousel & Gallery Components */
.showcase-section {
    padding: 60px 0;
    background: #fff;
    overflow: hidden;
}

.carousel-container {
    position: relative;
    max-width: 1200px;
    margin: 0 auto;
    border-radius: var(--radius-2xl);
    overflow: hidden;
    box-shadow: var(--shadow-2xl);
}

.carousel-track {
    display: flex;
    transition: transform 0.6s cubic-bezier(0.4, 0, 0.2, 1);
}

.carousel-slide {
    min-width: 100%;
    position: relative;
}

.carousel-slide img {
    width: 100%;
    height: 600px;
    object-fit: cover;
    display: block;
}

.carousel-caption {
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    padding: 40px;
    background: linear-gradient(transparent, rgba(0,0,0,0.7));
    color: #fff;
    text-align: left;
}

.carousel-caption h3 {
    font-size: 1.5rem;
    margin-bottom: 10px;
    color: #fff;
}

.carousel-btn {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    width: 50px;
    height: 50px;
    background: rgba(255,255,255,0.3);
    border: 1px solid rgba(255,255,255,0.3);
    color: #fff;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    z-index: 10;
    transition: all 0.3s ease;
}

.carousel-btn:hover {
    background: rgba(255,255,255,0.4);
    transform: translateY(-50%) scale(1.1);
}

.carousel-btn.prev { left: 20px; }
.carousel-btn.next { right: 20px; }

.carousel-dots {
    position: absolute;
    bottom: 20px;
    left: 50%;
    transform: translateX(-50%);
    display: flex;
    gap: 10px;
    z-index: 10;
}

.dot {
    width: 10px;
    height: 10px;
    background: rgba(255,255,255,0.3);
    border-radius: 50%;
    cursor: pointer;
    transition: all 0.3s ease;
}

.dot.active {
    background: #fff;
    width: 30px;
    border-radius: 10px;
}

@media (max-width: 768px) {
    .carousel-slide img {
        height: 400px;
    }
}

.benefit-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
    gap: 30px;
}

.card {
    background: white;
    border-radius: var(--radius-xl);
    border: 1px solid var(--gray-200);
    transition: all 0.3s ease;
    text-align: center;
}

.card i {
    margin: 0 auto 15px;
    display: block;
}

.benefit-item {
    text-align: center;
    padding: 30px;
    background: var(--bg-secondary);
    border-radius: var(--radius-xl);
    border: 1px solid var(--gray-200);
    transition: all 0.5s cubic-bezier(0.16, 1, 0.3, 1);
    position: relative;
    overflow: hidden;
}

.benefit-item::before {
    content: '';
    position: absolute;
    top: 0; left: 0; right: 0;
    height: 3px;
    background: var(--gradient-accent);
    transform: scaleX(0);
    transition: transform 0.5s cubic-bezier(0.16, 1, 0.3, 1);
    transform-origin: left;
}

.benefit-item:hover {
    transform: translateY(-8px);
    border-color: var(--accent-400);
    box-shadow: 0 20px 40px -10px rgba(37, 99, 235, 0.12);
}

.benefit-item:hover::before {
    transform: scaleX(1);
}

.benefit-icon {
    width: 56px;
    height: 56px;
    background: linear-gradient(135deg, var(--accent-500), var(--accent-700));
    color: white;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.25rem;
    margin: 0 auto 20px;
    transition: transform 0.4s cubic-bezier(0.16, 1, 0.3, 1);
    box-shadow: 0 8px 20px -4px rgba(37, 99, 235, 0.3);
}

.benefit-item:hover .benefit-icon {
    animation: iconBounce 0.6s ease;
}

.process-section {
    padding: 80px 0;
    background: var(--bg-secondary);
    position: relative;
    overflow: hidden;
}

.process-section::before {
    content: '';
    position: absolute;
    top: 50%;
    left: 50%;
    width: 400px;
    height: 400px;
    background: radial-gradient(circle, rgba(37,99,235,0.04) 0%, transparent 70%);
    transform: translate(-50%, -50%);
    pointer-events: none;
}

.process-steps {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 40px;
    position: relative;
}

.step-card {
    text-align: center;
    position: relative;
    z-index: 2;
}

.step-number {
    width: 64px;
    height: 64px;
    background: white;
    color: var(--accent-600);
    border: 3px solid var(--accent-500);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.5rem;
    font-weight: 800;
    margin: 0 auto 24px;
    box-shadow: 0 4px 10px rgba(0,0,0,0.05);
    position: relative;
    transition: all 0.4s cubic-bezier(0.16, 1, 0.3, 1);
}

.step-number::after {
    content: '';
    position: absolute;
    inset: -6px;
    border-radius: 50%;
    border: 2px solid var(--accent-400);
    opacity: 0;
    transition: opacity 0.4s ease;
}

.step-card:hover .step-number {
    background: var(--accent-600);
    color: white;
    border-color: var(--accent-600);
    box-shadow: 0 8px 25px rgba(37,99,235,0.3);
}

.step-card:hover .step-number::after {
    opacity: 0.4;
    animation: ringPulse 1.5s ease-out infinite;
}

.step-card h4 {
    margin-bottom: 10px;
    font-size: 1.2rem;
}

.step-card p {
    color: var(--text-secondary);
    font-size: 0.95rem;
}

@media (min-width: 992px) {
    .process-steps::after {
        content: '';
        position: absolute;
        top: 30px;
        left: 10%;
        right: 10%;
        height: 2px;
        background: dashed var(--gray-300);
        z-index: 1;
    }
}

.calculator-card {
  background: #ffffff;
  box-shadow: 0 40px 100px -20px rgba(0, 0, 0, 0.08);
  border: 1px solid var(--gray-100);
  overflow: hidden;
  display: grid;
  grid-template-columns: 1.2fr 1fr;
  min-height: 600px;
  max-width: 1100px;
  margin: 0 auto;
}

.calc-inputs {
  padding: 60px;
  background: #ffffff;
}

.calc-display {
  padding: 60px;
  background: #f8fafc;
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  text-align: center;
  border-left: 1px solid var(--gray-100);
}

.calc-field {
  margin-bottom: 35px;
}

.calc-field label {
  display: block;
  font-size: 1rem;
  font-weight: 700;
  color: var(--text-primary);
  margin-bottom: 12px;
}

.calc-input-group {
  position: relative;
  display: flex;
  align-items: center;
}

.calc-input-group i {
  position: absolute;
  left: 20px;
  color: var(--accent-500);
  font-size: 1.2rem;
}

.calc-control {
  width: 100%;
  padding: 1.2rem 1.5rem 1.2rem 55px;
  border: 2px solid var(--gray-200);
  border-radius: 16px;
  font-size: 1.1rem;
  font-family: var(--font-body);
  transition: all 0.3s ease;
  background: var(--gray-50);
}

.calc-control:focus {
  outline: none;
  border-color: var(--accent-500);
  background: #fff;
  box-shadow: 0 0 0 5px rgba(37, 99, 235, 0.1);
}

.calc-preset-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 10px;
  margin-top: 15px;
}

.preset-btn {
  padding: 8px;
  background: #fff;
  border: 1px solid var(--gray-200);
  border-radius: 8px;
  font-size: 0.8rem;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.2s ease;
}

.preset-btn:hover {
  border-color: var(--accent-500);
  color: var(--accent-500);
}

.result-label {
  font-size: 1.1rem;
  font-weight: 700;
  color: var(--text-secondary);
  text-transform: uppercase;
  letter-spacing: 0.1em;
  margin-bottom: 10px;
}

.result-amount {
  font-size: 4rem;
  font-weight: 800;
  color: var(--text-primary);
  font-family: var(--font-heading);
  line-height: 1;
}

.result-currency {
  font-size: 1.5rem;
  vertical-align: super;
  color: var(--accent-600);
  margin-right: 5px;
}

.result-sqft {
  font-size: 1rem;
  color: var(--text-muted);
  margin-top: 5px;
}

.calc-cta {
  margin-top: 40px;
  width: 100%;
}

@media (max-width: 992px) {
  .calculator-card {
    grid-template-columns: 1fr;
  }
  .calc-display {
    border-left: none;
    border-top: 1px solid var(--gray-100);
    padding: 60px 40px;
  }
  .calc-inputs {
    padding: 40px;
  }
}

/* Infinite Scrolling Marquee (Dark Band) */
.marquee-container {
  overflow: hidden;
  background: #0f172a; /* Dark Blue-Black Band */
  padding: 30px 0;
  position: relative;
  white-space: nowrap;
  transform: translateZ(0);
}

.marquee-content {
  display: inline-flex;
  gap: 80px;
  animation: marquee 40s linear infinite;
  will-change: transform;
  transform: translateZ(0);
}

.marquee-item {
  font-family: var(--font-heading);
  font-size: 1.5rem;
  font-weight: 800;
  color: #ffffff; /* Contrast White Text */
  text-transform: uppercase;
  letter-spacing: 0.1em;
  display: flex;
  align-items: center;
  gap: 20px;
  user-select: none;
  opacity: 0.9;
}

.marquee-item i {
  font-size: 1.25rem;
  color: var(--accent-400);
}

@keyframes marquee {
  0% { transform: translateX(0); }
  100% { transform: translateX(-50%); }
}

.marquee-container:hover .marquee-content {
  animation-play-state: paused;
}

/* Card Typography Fix for Larger Fonts */
.service-card p, .project-card p, .benefit-card-glass p {
  line-height: 1.7;
  color: var(--text-secondary);
}

.service-card h3, .project-title {
  margin-bottom: 15px;
  color: var(--text-primary);
}

/* Light Marquee Variant */
.marquee-container.light {
  background: var(--bg-primary);
  border-top: 1px solid var(--gray-200);
  border-bottom: 1px solid var(--gray-200);
}

.marquee-container.light .marquee-item {
  color: var(--gray-500);
}

.marquee-container.light .marquee-item i {
  color: var(--accent-500);
}

/* Chatbot Styles — Premium */
.chatbot-bubble {
  position: fixed;
  bottom: 30px; /* Lower on desktop */
  right: 20px;
  width: 60px;
  height: 60px;
  background: linear-gradient(135deg, var(--accent-500), var(--accent-700));
  color: white;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 24px;
  cursor: pointer;
  z-index: 9999;
  animation: breathe 4s ease-in-out infinite;
  box-shadow: 0 4px 12px rgba(0,0,0,0.15);
}

@media (max-width: 768px) {
  .chatbot-bubble {
    bottom: 15px;
    right: 15px;
    width: 50px;
    height: 50px;
    font-size: 20px;
  }
}

.chatbot-bubble::before {
  content: '';
  position: absolute;
  top: -3px; right: -3px;
  width: 14px; height: 14px;
  background: #22c55e;
  border-radius: 50%;
  border: 2px solid white;
  animation: glowPulse 2s ease-in-out infinite;
}

.chatbot-bubble:hover {
  animation: none;
  transform: scale(1.1);
}

.chatbot-window {
  position: fixed;
  bottom: 100px;
  right: 30px;
  width: 370px;
  height: 480px;
  background: white;
  border-radius: 20px;
  box-shadow: 0 20px 60px rgba(0,0,0,0.15), 0 0 0 1px rgba(0,0,0,0.05);
  display: flex;
  flex-direction: column;
  z-index: 9998;
  opacity: 0;
  visibility: hidden;
  transform: translateY(20px) scale(0.95);
  transition: all 0.4s cubic-bezier(0.16, 1, 0.3, 1);
  overflow: hidden;
}

.chatbot-window.active {
  opacity: 1;
  visibility: visible;
  transform: translateY(0) scale(1);
}

.chatbot-header {
  background: linear-gradient(135deg, var(--accent-600), var(--accent-800));
  color: white;
  padding: 18px 20px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  font-weight: 600;
}

.chatbot-close {
  cursor: pointer;
  font-size: 1.2rem;
  opacity: 0.8;
}

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

.chatbot-messages {
  flex-grow: 1;
  padding: 20px;
  overflow-y: auto;
  display: flex;
  flex-direction: column;
  gap: 15px;
  background: var(--bg-secondary);
}

.chat-msg {
  max-width: 80%;
  padding: 10px 15px;
  border-radius: 12px;
  font-size: 0.95rem;
  line-height: 1.5;
}

.chat-msg.bot {
  background: white;
  color: var(--text-primary);
  align-self: flex-start;
  border-bottom-left-radius: 2px;
  box-shadow: 0 1px 4px rgba(0,0,0,0.06);
  animation: fadeInUp 0.3s ease-out;
}

.chat-msg.user {
  background: linear-gradient(135deg, var(--accent-500), var(--accent-700));
  color: white;
  align-self: flex-end;
  border-bottom-right-radius: 2px;
  animation: slideInRight 0.3s ease-out;
}

.chat-msg a {
  color: var(--accent-600);
  text-decoration: underline;
  font-weight: 600;
}

.chat-msg.user a {
  color: white;
}

.chatbot-input {
  display: flex;
  padding: 15px;
  background: white;
  border-top: 1px solid var(--gray-200);
}

.chatbot-input input {
  flex-grow: 1;
  border: 1px solid var(--gray-300);
  padding: 10px 15px;
  border-radius: 20px;
  outline: none;
  font-size: 0.95rem;
}

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

.chatbot-input button {
  background: var(--accent-600);
  color: white;
  border: none;
  width: 40px;
  height: 40px;
  border-radius: 50%;
  margin-left: 10px;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: background 0.2s;
}

.chatbot-input button:hover {
  background: var(--accent-700);
}
@media (max-width: 480px) {
  .chatbot-window {
    width: 90vw;
    right: 5vw;
    bottom: 90px;
  }
}

/* ═══════════════════════════════════════════════════════════════
   ANIMATED STATS COUNTER BAR
   ═══════════════════════════════════════════════════════════════ */

.stats-bar {
    background: linear-gradient(135deg, #0f172a 0%, #1e3a8a 50%, #0f172a 100%);
    padding: 50px 0;
    position: relative;
    overflow: hidden;
}

.stats-bar::before {
    content: '';
    position: absolute;
    top: 0; left: 0; right: 0; bottom: 0;
    background: url("data:image/svg+xml,%3Csvg width='60' height='60' viewBox='0 0 60 60' xmlns='http://www.w3.org/2000/svg'%3E%3Cg fill='none' fill-rule='evenodd'%3E%3Cg fill='%23ffffff' fill-opacity='0.03'%3E%3Cpath d='M36 34v-4h-2v4h-4v2h4v4h2v-4h4v-2h-4zm0-30V0h-2v4h-4v2h4v4h2V6h4V4h-4zM6 34v-4H4v4H0v2h4v4h2v-4h4v-2H6zM6 4V0H4v4H0v2h4v4h2V6h4V4H6z'/%3E%3C/g%3E%3C/g%3E%3C/svg%3E");
    pointer-events: none;
}

.stats-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 30px;
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 var(--spacing-lg);
    position: relative;
    z-index: 2;
}

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

.stat-number {
    font-family: var(--font-heading);
    font-size: clamp(1.75rem, 5vw, 3.5rem);
    font-weight: 800;
    color: #fff;
    line-height: 1.1;
    margin-bottom: 8px;
    display: flex;
    justify-content: center;
    align-items: baseline;
    gap: 2px;
}

.stat-suffix {
    color: var(--accent-400);
}

.stat-label {
    font-size: 0.9rem;
    color: rgba(255,255,255,0.6);
    text-transform: uppercase;
    letter-spacing: 0.1em;
    font-weight: 600;
}

@media (max-width: 768px) {
    .stats-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 30px;
    }
}

@media (max-width: 480px) {
    .stats-grid {
        grid-template-columns: 1fr 1fr;
    }
}

/* ═══════════════════════════════════════════════════════════════
   GRADIENT MESH CTA BANNER
   ═══════════════════════════════════════════════════════════════ */

.cta-gradient {
    background: linear-gradient(135deg, #1d4ed8 0%, #1e40af 30%, #2563eb 60%, #1d4ed8 100%);
    position: relative;
    overflow: hidden;
}

.cta-gradient::before {
    content: '';
    position: absolute;
    top: -50%;
    right: -20%;
    width: 300px;
    height: 300px;
    background: rgba(255,255,255,0.06);
    border-radius: 50%;
    animation: float 8s ease-in-out infinite;
}

.cta-gradient::after {
    content: '';
    position: absolute;
    bottom: -30%;
    left: -10%;
    width: 200px;
    height: 200px;
    background: rgba(255,255,255,0.04);
    border-radius: 50%;
    animation: float 6s ease-in-out infinite reverse;
}

/* ═══════════════════════════════════════════════════════════════
   SHIMMER BUTTON
   ═══════════════════════════════════════════════════════════════ */

.btn-shimmer {
    background: linear-gradient(135deg, #2563eb 0%, #1d4ed8 100%);
    color: #ffffff;
    padding: 0.75rem 2rem;
    border-radius: var(--radius-md);
    font-weight: 700;
    font-family: var(--font-heading);
    border: none;
    cursor: pointer;
    display: inline-block;
    text-align: center;
    position: relative;
    overflow: hidden;
    transition: all 0.3s ease;
}

.btn-shimmer::after {
    content: '';
    position: absolute;
    top: 0; left: -100%;
    width: 100%; height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255,255,255,0.2), transparent);
    animation: shimmer 3s ease-in-out infinite;
}

.btn-shimmer:hover {
    transform: translateY(-2px);
    box-shadow: 0 10px 30px rgba(37, 99, 235, 0.3);
}

/* ═══════════════════════════════════════════════════════════════
   HERO TEXT ANIMATIONS
   ═══════════════════════════════════════════════════════════════ */

.hero-animate {
    animation: fadeInUp 0.8s cubic-bezier(0.16, 1, 0.3, 1) both;
}

.hero-animate-delay-1 {
    animation: fadeInUp 0.8s cubic-bezier(0.16, 1, 0.3, 1) 0.2s both;
}

.hero-animate-delay-2 {
    animation: fadeInUp 0.8s cubic-bezier(0.16, 1, 0.3, 1) 0.4s both;
}

.hero-animate-delay-3 {
    animation: fadeInUp 0.8s cubic-bezier(0.16, 1, 0.3, 1) 0.6s both;
}

/* Badge glow */
.hero .badge {
    animation: fadeInDown 0.8s cubic-bezier(0.16, 1, 0.3, 1) 0.1s both, glowPulse 3s ease-in-out 1s infinite;
}

/* ═══════════════════════════════════════════════════════════════
   BENEFITS SECTION BACKGROUND
   ═══════════════════════════════════════════════════════════════ */

.benefits-section {
    position: relative;
    padding: 50px 0;
    overflow: hidden;
}

.benefits-section::before {
    content: '';
    position: absolute;
    top: -100px;
    right: -100px;
    width: 400px;
    height: 400px;
    background: radial-gradient(circle, rgba(37,99,235,0.05) 0%, transparent 70%);
    border-radius: 50%;
    pointer-events: none;
}

.benefits-section::after {
    content: '';
    position: absolute;
    bottom: -80px;
    left: -80px;
    width: 300px;
    height: 300px;
    background: radial-gradient(circle, rgba(37,99,235,0.04) 0%, transparent 70%);
    border-radius: 50%;
    pointer-events: none;
}

/* Technical Table Styles */
.tech-table-wrapper {
    overflow-x: auto;
    background: #ffffff;
    border-radius: var(--radius-xl);
    padding: var(--spacing-md);
    border: 1px solid var(--gray-200);
    margin: 40px auto;
    box-shadow: var(--shadow-sm);
}

.tech-table {
    width: 100%;
    border-collapse: collapse;
    text-align: center;
}

.tech-table th, .tech-table td {
    padding: var(--spacing-sm) var(--spacing-md);
    border-bottom: 1px solid var(--gray-100);
    text-align: center;
}

.tech-table th {
    font-weight: 700;
    color: var(--text-primary);
    background: var(--accent-50);
    text-transform: uppercase;
    font-size: 0.85rem;
    letter-spacing: 0.05em;
    border-bottom: 2px solid var(--accent-500);
}

.tech-table td {
    color: var(--text-secondary);
    font-family: inherit;
    font-size: 0.95rem;
}

.tech-table tbody tr:hover {
    background: var(--gray-50);
}

/* ═══════════════════════════════════════════════════════════════
   SPECS TABLE (Product Cards)
   ═══════════════════════════════════════════════════════════════ */
.specs-table {
    display: flex;
    flex-direction: column;
    width: 100%;
}

.spec-row {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 12px 0;
    border-bottom: 1px solid var(--gray-100);
}

.spec-row:last-child {
    border-bottom: none;
    padding-bottom: 0;
}

.spec-label {
    font-weight: 600;
    color: var(--text-primary);
    text-align: left;
    flex: 1;
}

.spec-value {
    color: var(--text-secondary);
    text-align: right;
    flex: 1;
}

/* WhatsApp Floating Button */
.whatsapp-float {
  position: fixed;
  bottom: 105px;
  right: 20px;
  width: 60px;
  height: 60px;
  background-color: #25d366;
  color: #fff;
  border-radius: 50px;
  text-align: center;
  font-size: 30px;
  box-shadow: 0 4px 15px rgba(0,0,0,0.2);
  z-index: 1000;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: all 0.3s ease;
  animation: pulse-whatsapp 2s infinite;
}

.whatsapp-float:hover {
  background-color: #128c7e;
  transform: scale(1.1);
  color: #fff;
}

@media (max-width: 768px) {
  .whatsapp-float {
    width: 50px;
    height: 50px;
    bottom: 80px;
    right: 15px;
    font-size: 26px;
  }
}

@keyframes pulse-whatsapp {
  0% { box-shadow: 0 0 0 0 rgba(37, 211, 102, 0.7); }
  70% { box-shadow: 0 0 0 15px rgba(37, 211, 102, 0); }
  100% { box-shadow: 0 0 0 0 rgba(37, 211, 102, 0); }
}

/* ========================================
   CHATBOT WIDGET STYLES
   ======================================== */

/* Chatbot Floating Bubble Trigger */
.chatbot-bubble {
  position: fixed;
  bottom: 30px;
  right: 90px;
  width: 60px;
  height: 60px;
  background: var(--accent-gradient, linear-gradient(135deg, #2563eb, #1d4ed8));
  color: #fff;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 26px;
  cursor: pointer;
  z-index: 1000;
  box-shadow: 0 4px 20px rgba(37, 99, 235, 0.4);
  transition: all 0.3s ease;
  animation: pulse-chat 2s infinite;
}

.chatbot-bubble:hover {
  transform: scale(1.1);
  box-shadow: 0 6px 25px rgba(37, 99, 235, 0.55);
}

@keyframes pulse-chat {
  0% { box-shadow: 0 0 0 0 rgba(37, 99, 235, 0.5); }
  70% { box-shadow: 0 0 0 15px rgba(37, 99, 235, 0); }
  100% { box-shadow: 0 0 0 0 rgba(37, 99, 235, 0); }
}

/* Chatbot Window */
.chatbot-window {
  position: fixed;
  bottom: 100px;
  right: 20px;
  width: 370px;
  max-height: 500px;
  background: #fff;
  border-radius: 16px;
  box-shadow: 0 10px 50px rgba(0, 0, 0, 0.2);
  display: none;
  flex-direction: column;
  z-index: 1001;
  overflow: hidden;
  border: 1px solid var(--gray-200, #e5e7eb);
  animation: chatSlideUp 0.35s ease-out;
}

.chatbot-window.active {
  display: flex;
}

@keyframes chatSlideUp {
  from {
    opacity: 0;
    transform: translateY(20px) scale(0.95);
  }
  to {
    opacity: 1;
    transform: translateY(0) scale(1);
  }
}

/* Chatbot Header */
.chatbot-header {
  background: var(--accent-gradient, linear-gradient(135deg, #2563eb, #1d4ed8));
  color: #fff;
  padding: 16px 20px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  font-weight: 600;
  font-size: 0.95rem;
}

.chatbot-header i {
  margin-right: 8px;
}

.chatbot-close {
  cursor: pointer;
  width: 30px;
  height: 30px;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.15);
  transition: background 0.2s ease;
}

.chatbot-close:hover {
  background: rgba(255, 255, 255, 0.3);
}

/* Chatbot Messages Area */
.chatbot-messages {
  flex: 1;
  padding: 20px;
  overflow-y: auto;
  display: flex;
  flex-direction: column;
  gap: 12px;
  max-height: 340px;
  min-height: 200px;
  background: #f8fafc;
}

/* Individual Chat Messages */
.chat-msg {
  padding: 12px 16px;
  border-radius: 14px;
  font-size: 0.88rem;
  line-height: 1.55;
  max-width: 85%;
  word-wrap: break-word;
  animation: msgFadeIn 0.3s ease-out;
}

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

.chat-msg.bot {
  background: #e8f0fe;
  color: #1e293b;
  align-self: flex-start;
  border-bottom-left-radius: 4px;
}

.chat-msg.user {
  background: var(--accent-600, #2563eb);
  color: #fff;
  align-self: flex-end;
  border-bottom-right-radius: 4px;
}

/* Quick Action Buttons inside bot messages */
.chat-msg .chat-quick-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-top: 10px;
}

.chat-msg .chat-quick-actions button {
  padding: 6px 14px;
  border-radius: 20px;
  border: 1px solid var(--accent-500, #3b82f6);
  background: #fff;
  color: var(--accent-600, #2563eb);
  font-size: 0.78rem;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.2s ease;
}

.chat-msg .chat-quick-actions button:hover {
  background: var(--accent-500, #3b82f6);
  color: #fff;
}

/* Chatbot Input Form */
.chatbot-input {
  display: flex;
  border-top: 1px solid var(--gray-200, #e5e7eb);
  background: #fff;
}

.chatbot-input input {
  flex: 1;
  padding: 14px 16px;
  border: none;
  outline: none;
  font-size: 0.88rem;
  font-family: inherit;
  background: transparent;
}

.chatbot-input input::placeholder {
  color: #94a3b8;
}

.chatbot-input button {
  padding: 14px 18px;
  background: var(--accent-600, #2563eb);
  color: #fff;
  border: none;
  cursor: pointer;
  font-size: 1rem;
  transition: background 0.2s ease;
}

.chatbot-input button:hover {
  background: var(--accent-700, #1d4ed8);
}

/* Mobile Responsive Chatbot */
@media (max-width: 768px) {
  .chatbot-bubble {
    width: 50px;
    height: 50px;
    bottom: 80px;
    right: 75px;
    font-size: 22px;
  }

  .chatbot-window {
    width: calc(100vw - 20px);
    right: 10px;
    bottom: 80px;
    max-height: 420px;
  }
}
