:root {
  /* RELU Labs White & Light Blue Theme */
  --bg-primary: #ffffff;
  --bg-secondary: #f4f7f9;
  --bg-card: #ffffff;
  --bg-card-hover: #f8fafc;

  --text-primary: #1e293b;
  --text-secondary: #475569;
  --text-muted: #94a3b8;

  /* Blue accents */
  --accent-primary: #0284c7;
  /* Light Blue */
  --accent-secondary: #38bdf8;
  --accent-glow: rgba(2, 132, 199, 0.3);

  --border-color: rgba(0, 0, 0, 0.08);
  --border-hover: rgba(2, 132, 199, 0.3);

  --transition-fast: 0.2s ease;
  --transition-normal: 0.4s cubic-bezier(0.16, 1, 0.3, 1);
  --transition-slow: 0.8s cubic-bezier(0.16, 1, 0.3, 1);
}

/* Lightning Highlight Animation */
.lightning-text {
  background: linear-gradient(90deg,
      var(--accent-primary) 0%,
      var(--accent-primary) 30%,
      #7dd3fc 50%,
      var(--accent-primary) 70%,
      var(--accent-primary) 100%);
  background-size: 200% auto;
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  animation: lightning-sweep 6s linear infinite;
}

@keyframes lightning-sweep {
  0% {
    background-position: 200% center;
  }

  100% {
    background-position: 0% center;
  }
}

* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
  font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Helvetica, Arial, sans-serif;
}

/* Hide mobile specific elements on desktop */
.mobile-menu-btn,
.mobile-cta-wrapper {
  display: none;
}

html,
body {
  overflow-x: hidden;
}

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

body.menu-open {
  overflow: hidden;
}

/* Glassmorphism Navigation */
.navbar {
  position: fixed;
  top: 0;
  width: 100%;
  padding: 1.5rem 5%;
  display: flex;
  justify-content: space-between;
  align-items: center;
  z-index: 1000;
  background: rgba(255, 255, 255, 0.85);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border-bottom: 1px solid var(--border-color);
  transition: padding var(--transition-normal), background var(--transition-normal), box-shadow var(--transition-normal);
  animation: navbarSlideDown 1s cubic-bezier(0.16, 1, 0.3, 1) forwards;
}

.navbar.scrolled {
  padding: 0.5rem 5%;
  background: rgba(255, 255, 255, 0.98);
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.05);
}

@keyframes navbarSlideDown {
  from {
    transform: translateY(-100%);
  }

  to {
    transform: translateY(0);
  }
}

.logo {
  font-size: 1.8rem;
  font-weight: 800;
  letter-spacing: -1px;
  color: var(--text-primary);
  text-decoration: none;
  display: flex;
  align-items: center;
  gap: 0.5rem;
}

.logo span {
  color: var(--accent-primary);
}

.logo-icon {
  width: 24px;
  height: 24px;
}

.nav-links {
  display: flex;
  gap: 2.5rem;
  list-style: none;
}

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

.nav-links a::after {
  content: '';
  position: absolute;
  width: 0;
  height: 2px;
  bottom: -4px;
  left: 0;
  background-color: var(--accent-primary);
  transition: var(--transition-normal);
  box-shadow: 0 0 8px var(--accent-glow);
}

.nav-links a:hover,
.nav-links a.active {
  color: var(--text-primary);
}

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

.btn-primary {
  background: transparent;
  color: var(--accent-primary);
  border: 1px solid var(--accent-primary);
  padding: 0.7rem 1.5rem;
  border-radius: 4px;
  font-weight: 600;
  font-size: 0.9rem;
  cursor: pointer;
  transition: var(--transition-normal);
  position: relative;
  overflow: hidden;
  text-decoration: none;
  display: inline-block;
  box-shadow: 0 0 10px rgba(0, 240, 255, 0.1);
}

.btn-primary:hover {
  background: rgba(0, 240, 255, 0.1);
  box-shadow: 0 0 20px var(--accent-glow), inset 0 0 10px var(--accent-glow);
  text-shadow: 0 0 5px var(--accent-primary);
}

.btn-pill {
  display: inline-flex;
  align-items: center;
  padding: 0.8rem 1.8rem;
  border-radius: 50px;
  font-weight: 600;
  font-size: 0.95rem;
  text-decoration: none;
  transition: var(--transition-normal);
  cursor: pointer;
}

.btn-pill.outline {
  background: #ffffff;
  color: #000000;
  border: 1px solid rgba(0, 0, 0, 0.1);
  box-shadow: 0 4px 6px rgba(0, 0, 0, 0.02);
}

.btn-pill.outline:hover {
  border-color: rgba(0, 0, 0, 0.2);
  transform: translateY(-2px);
  box-shadow: 0 6px 15px rgba(0, 0, 0, 0.05);
}

.btn-pill.solid {
  background: #000000;
  color: #ffffff;
  border: 1px solid #000000;
  box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
}

.btn-pill.solid:hover {
  background: #1e293b;
  border-color: #1e293b;
  transform: translateY(-2px);
  box-shadow: 0 6px 15px rgba(0, 0, 0, 0.15);
}

/* Mobile Hamburger Button */
.mobile-menu-btn {
  display: none;
  flex-direction: column;
  gap: 6px;
  cursor: pointer;
  z-index: 1001;
  background: none;
  border: none;
  padding: 5px;
}

.mobile-menu-btn span {
  width: 25px;
  height: 2px;
  background-color: var(--text-primary);
  transition: 0.3s cubic-bezier(0.16, 1, 0.3, 1);
  transform-origin: left center;
}

.mobile-menu-btn.active span:nth-child(1) {
  transform: rotate(45deg);
}

.mobile-menu-btn.active span:nth-child(2) {
  opacity: 0;
}

.mobile-menu-btn.active span:nth-child(3) {
  transform: rotate(-45deg);
}

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

/* Sections Global */
section {
  padding: 8rem 5% 4rem;
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  justify-content: center;
  position: relative;
  z-index: 1;
}

/* Hero Section */
#hero {
  align-items: flex-start;
  overflow: hidden;
}

.hero-content {
  max-width: 800px;
  z-index: 2;
}

.badge {
  display: inline-block;
  padding: 0.4rem 1rem;
  background: rgba(0, 240, 255, 0.05);
  border: 1px solid rgba(0, 240, 255, 0.2);
  color: var(--accent-primary);
  border-radius: 50px;
  font-size: 0.8rem;
  font-weight: 600;
  letter-spacing: 1px;
  margin-bottom: 1.5rem;
  text-transform: uppercase;
}

h1 {
  font-size: 4.5rem;
  font-weight: 800;
  line-height: 1.1;
  margin-bottom: 1.5rem;
  background: linear-gradient(to right, #1e293b, #64748b);
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
  letter-spacing: -2px;
}

h1 .accent-gradient {
  background: linear-gradient(135deg, var(--accent-primary), var(--accent-secondary));
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
}

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

/* Background Animation */
.bg-animation {
  position: absolute;
  top: 0;
  right: 0;
  width: 60%;
  height: 100%;
  z-index: 0;
  opacity: 0.7;
  pointer-events: none;
}





/* Container for Page Content */
.container {
  max-width: 1200px;
  margin: 0 auto;
}

/* Section Titles */
.section-title {
  font-size: 3rem;
  font-weight: 700;
  margin-bottom: 1rem;
  margin-top: 2rem;
  letter-spacing: -1px;
}

.section-title span {
  color: var(--accent-primary);
}

.section-subtitle {
  color: var(--text-secondary);
  font-size: 1.1rem;
  max-width: 600px;
  margin-bottom: 4rem;
}

/* Cards / Services */
.grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
  gap: 2rem;
}

.card {
  background: var(--bg-card);
  border: 1px solid var(--border-color);
  padding: 2.5rem;
  border-radius: 12px;
  transition: var(--transition-normal);
  position: relative;
  overflow: hidden;
  backdrop-filter: blur(10px);
}

.card::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: radial-gradient(circle at top right, rgba(2, 132, 199, 0.05), transparent 50%);
  opacity: 0;
  transition: var(--transition-normal);
}

.card:hover {
  transform: translateY(-5px);
  border-color: var(--border-hover);
  background: var(--bg-card-hover);
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.05), 0 0 20px rgba(2, 132, 199, 0.05);
}

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

.card-icon {
  width: 50px;
  height: 50px;
  background: rgba(2, 132, 199, 0.1);
  border-radius: 12px;
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 1.5rem;
  color: var(--accent-primary);
}

.card-icon svg {
  width: 24px;
  height: 24px;
}

.card h3 {
  font-size: 1.5rem;
  margin-bottom: 1rem;
  font-weight: 600;
}

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

.card .tech-list {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
  margin-top: 1.5rem;
}

.card .tech-tag {
  font-size: 0.75rem;
  padding: 0.2rem 0.6rem;
  background: rgba(0, 0, 0, 0.02);
  border: 1px solid rgba(0, 0, 0, 0.05);
  border-radius: 4px;
  color: var(--text-secondary);
}

/* Footer */
footer {
  padding: 4rem 5% 2rem;
  border-top: 1px solid rgba(0, 0, 0, 0.1);
  margin-top: 4rem;
  background: #e2e8f0;
}

.footer-content {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  flex-wrap: wrap;
  gap: 3rem;
  margin-bottom: 3rem;
}

.footer-brand {
  flex: 2;
  min-width: 250px;
}

.footer-brand .logo {
  margin-bottom: 1rem;
}

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

.footer-links {
  flex: 1;
  min-width: 150px;
}

.footer-links h4 {
  font-size: 1.1rem;
  margin-bottom: 1.2rem;
  font-weight: 600;
  color: var(--text-primary);
}

.footer-links ul {
  list-style: none;
}

.footer-links li {
  margin-bottom: 0.8rem;
}

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

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

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

.footer-bottom-links {
  display: flex;
  gap: 1.5rem;
  list-style: none;
}

.footer-bottom-links a {
  color: var(--text-muted);
  text-decoration: none;
  transition: var(--transition-fast);
}

.footer-bottom-links a:hover {
  color: var(--text-primary);
}

/* Contact Form */
.contact-container {
  display: flex;
  gap: 4rem;
  flex-wrap: wrap;
}

.contact-info {
  flex: 1;
  min-width: 300px;
}

.contact-form,
.contact-details {
  flex: 1;
  min-width: 300px;
  background: var(--bg-card);
  padding: 3rem;
  border-radius: 12px;
  border: 1px solid var(--border-color);
}

.form-group {
  margin-bottom: 1.5rem;
}

.form-group label {
  display: block;
  margin-bottom: 0.5rem;
  color: var(--text-secondary);
  font-size: 0.9rem;
}

.form-group input,
.form-group textarea {
  width: 100%;
  padding: 1rem;
  background: #ffffff;
  border: 1px solid var(--border-color);
  border-radius: 8px;
  color: var(--text-primary);
  font-family: inherit;
  transition: var(--transition-fast);
}

.form-group input:focus,
.form-group textarea:focus {
  outline: none;
  border-color: var(--accent-primary);
  box-shadow: 0 0 10px rgba(2, 132, 199, 0.1);
}

/* =========================================
   About Page Specific Styles
   ========================================= */

/* Content Section (remove 100vh gap) */
.content-section {
  min-height: auto !important;
  padding: 5rem 5% !important;
}

/* Stats */
.stats-grid {
  display: flex;
  justify-content: space-around;
  flex-wrap: wrap;
  gap: 2rem;
}
.stats-grid > div {
  flex: 1;
  min-width: 150px;
}
.stat-number {
  font-size: 4rem;
  font-weight: 800;
  line-height: 1;
  margin-bottom: 0.5rem;
}
.stat-label {
  font-size: 1.1rem;
  color: var(--text-secondary);
  font-weight: 500;
}

/* Team */
.team-card {
  text-align: center;
}
.team-avatar {
  width: 150px;
  height: 150px;
  border-radius: 50%;
  background: var(--bg-card);
  border: 1px solid var(--border-color);
  margin: 0 auto 1.5rem;
  background-image: linear-gradient(135deg, rgba(2, 132, 199, 0.1), rgba(56, 189, 248, 0.1));
}

/* Delivery Steps */
.delivery-steps {
  display: flex;
  flex-direction: column;
  gap: 2rem;
  margin-top: 3rem;
  max-width: 800px;
  margin-left: auto;
  margin-right: auto;
}
.step-card {
  display: flex;
  gap: 2rem;
  align-items: flex-start;
  background: var(--bg-card);
  padding: 2rem;
  border-radius: 12px;
  border: 1px solid var(--border-color);
  transition: var(--transition-normal);
  text-align: left;
}
.step-card:hover {
  transform: translateX(10px);
  border-color: var(--accent-primary);
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.05);
}
.step-number {
  font-size: 4rem;
  font-weight: 800;
  color: var(--accent-primary);
  line-height: 1;
  opacity: 0.2;
}

/* Why List */
.why-list {
  list-style: none;
  text-align: left;
  max-width: 800px;
  margin: 3rem auto;
}
.why-list li {
  font-size: 1.15rem;
  padding: 1rem 0;
  border-bottom: 1px solid var(--border-color);
  display: flex;
  align-items: center;
  gap: 1rem;
}
.why-list li::before {
  content: '✓';
  color: var(--accent-primary);
  font-weight: bold;
}

/* Animations Handled by IntersectionObserver via JS */

/* ReLU Function Specific Animation Class */
.relu-graph {
  stroke-dasharray: 1000;
  stroke-dashoffset: 1000;
  animation: drawRelu 2.5s cubic-bezier(0.16, 1, 0.3, 1) forwards;
}

@keyframes drawRelu {
  to {
    stroke-dashoffset: 0;
  }
}

.relu-point {
  opacity: 0;
  animation: fadeIn 0.5s 2s forwards;
}

@keyframes fadeIn {
  to {
    opacity: 1;
  }
}

@media (max-width: 768px) {

  /* Hide desktop buttons */
  .desktop-cta {
    display: none;
  }

  .mobile-cta-wrapper {
    display: block;
    margin-top: 1rem;
    width: 100%;
    text-align: center;
  }

  /* Sidebar Mobile Navbar */
  .mobile-menu-btn {
    display: flex;
  }

  .navbar {
    display: flex;
    flex-direction: row;
    padding: 1.2rem 5%;
    justify-content: space-between;
    align-items: center;
  }

  .nav-links {
    position: fixed;
    top: 0;
    right: 0;
    transform: translateX(100%);
    width: 280px;
    height: 100vh;
    background: rgba(255, 255, 255, 0.98);
    backdrop-filter: blur(15px);
    -webkit-backdrop-filter: blur(15px);
    flex-direction: column;
    justify-content: flex-start;
    align-items: center;
    /* Center the links */
    padding: 100px 2rem 2rem;
    /* Add horizontal padding */
    gap: 2rem;
    box-shadow: -5px 0 20px rgba(0, 0, 0, 0.05);
    visibility: hidden;
    opacity: 0;
    pointer-events: none;
    transition: transform 0.4s cubic-bezier(0.16, 1, 0.3, 1), opacity 0.4s, visibility 0.4s;
    z-index: 1000;
    display: flex;
    /* Override grid styles if bleeding */
  }

  .nav-links.active {
    transform: translateX(0);
    visibility: visible;
    opacity: 1;
    pointer-events: auto;
  }

  .nav-links a {
    font-size: 1.2rem;
    width: 100%;
    text-align: center;
    display: block;
    color: var(--text-primary);
  }

  .nav-links a.active {
    font-size: 1.8rem;
    font-weight: 800;
    color: var(--accent-primary);
  }

  .navbar .logo {
    font-size: 1.4rem;
  }

  /* Fix Hero Formatting */
  section {
    padding: 9rem 5% 4rem;
    overflow-x: hidden;
  }

  h1 {
    font-size: clamp(1.9rem, 9vw, 2.5rem) !important;
    letter-spacing: -1px;
    line-height: 1.25;
  }

  .hero-desc {
    font-size: 1.05rem !important;
  }

  /* Buttons */
  .btn-primary {
    padding: 0.6rem 1rem;
    font-size: 0.85rem;
  }

  /* Shrink enormous fonts for mobile */
  .stat-number {
    font-size: 3.5rem;
  }

  /* Service Cards */
  .card {
    padding: 1.5rem;
  }

  .grid {
    gap: 1.5rem;
  }

  /* Form block */
  .contact-container {
    flex-direction: column;
    gap: 2rem;
  }

  .contact-form,
  .contact-details {
    padding: 1.5rem;
  }

  /* Footer */
  .footer-content {
    flex-direction: column;
    gap: 2rem;
  }

  .footer-bottom {
    flex-direction: column;
    text-align: center;
    gap: 1rem;
  }

  /* Animation */
  .bg-animation {
    width: 100%;
    opacity: 0.15;
  }
}

/* =========================================
   Preloader (Slow Connection Fallback)
   ========================================= */
#preloader {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: var(--bg-primary);
  z-index: 999999;
  display: flex;
  justify-content: center;
  align-items: center;
  transition: opacity 0.6s cubic-bezier(0.16, 1, 0.3, 1), visibility 0.6s cubic-bezier(0.16, 1, 0.3, 1);
}

#preloader.fade-out {
  opacity: 0;
  visibility: hidden;
}

.loader-content {
  text-align: center;
  display: flex;
  flex-direction: column;
  align-items: center;
}

.spinner {
  width: 40px;
  height: 40px;
  border: 3px solid rgba(2, 132, 199, 0.1);
  border-radius: 50%;
  border-top-color: var(--accent-primary);
  animation: spin 1s cubic-bezier(0.5, 0.1, 0.4, 0.9) infinite;
}

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

/* Scroll Loading Animations */
.fade-up {
  opacity: 0;
  filter: blur(15px);
  transform: perspective(800px) translateY(80px) rotateX(-25deg) scale(0.9);
  transform-origin: top center;
  will-change: transform, opacity, filter;
  transition: opacity 0.4s cubic-bezier(0.2, 0.8, 0.2, 1),
    transform 0.5s cubic-bezier(0.16, 1, 0.3, 1),
    filter 0.4s ease-out;
}

.fade-up.in-view {
  opacity: 1;
  filter: blur(0);
  transform: perspective(800px) translateY(0) rotateX(0deg) scale(1);
}

.delay-1 {
  transition-delay: 0.15s;
}

.delay-2 {
  transition-delay: 0.3s;
}

/* Custom Cursor styles */
@media (pointer: fine) {

  body,
  a,
  button,
  input,
  textarea,
  .card {
    cursor: none !important;
  }

  .custom-cursor-dot,
  .custom-cursor-ring {
    position: fixed;
    top: 0;
    left: 0;
    pointer-events: none;
    z-index: 9999;
    border-radius: 50%;
    transform: translate3d(var(--x, -100px), var(--y, -100px), 0) translate(-50%, -50%);
    will-change: transform;
  }

  .custom-cursor-dot {
    width: 8px;
    height: 8px;
    background-color: var(--accent-primary);
    transition: background-color 0.2s ease-out, width 0.2s, height 0.2s;
  }

  .custom-cursor-ring {
    width: 36px;
    height: 36px;
    border: 1px solid var(--accent-primary);
    transition: width 0.2s ease-out, height 0.2s ease-out, background-color 0.2s ease-out, border-color 0.2s;
  }

  /* Hover states for the cursor */
  .custom-cursor-dot.hover {
    background-color: transparent;
  }

  .custom-cursor-ring.hover {
    width: 50px;
    height: 50px;
    background-color: rgba(2, 132, 199, 0.1);
    border-color: var(--accent-secondary);
  }
}

/* =========================================
   Intelligence Suite Section
   ========================================= */
.suite-grid {
  display: grid;
  grid-template-columns: 1fr 300px 1fr;
  gap: 1.5rem;
  align-items: center;
  max-width: 1100px;
  margin: 0 auto;
}

.suite-col {
  display: flex;
  flex-direction: column;
  gap: 2.5rem;
}

.suite-item {
  display: flex;
  align-items: flex-start;
  gap: 1.5rem;
}

.suite-item.right-align,
.suite-item.left-align {
  text-align: left;
  flex-direction: row;
}

.suite-item.left-align {
  text-align: left;
  flex-direction: row;
}

.suite-num {
  font-size: 1.2rem;
  font-weight: 800;
  color: #94a3b8;
  display: block;
  margin-bottom: 0.25rem;
}

.suite-content h3 {
  font-size: 1.2rem;
  font-weight: 700;
  color: var(--accent-primary);
  margin-bottom: 0.4rem;
}

.suite-content p {
  font-size: 0.88rem;
  color: var(--text-secondary);
  line-height: 1.5;
}

.suite-icon-gif {
  width: 50px;
  height: 50px;
  min-width: 50px;
  border-radius: 50%;
  object-fit: cover;
  background: rgba(2, 132, 199, 0.05);
  border: 1px dashed rgba(2, 132, 199, 0.3);
  padding: 4px;
}

/* Center Box */
.suite-center-col {
  display: flex;
  justify-content: center;
}

.suite-core-box {
  background: #ffffff;
  border: 1px solid rgba(0, 0, 0, 0.05);
  border-radius: 12px;
  box-shadow: 0 4px 60px rgba(0, 0, 0, 0.03);
  padding: 1.5rem;
  text-align: center;
  width: 100%;
  max-width: 260px;
  aspect-ratio: 1;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
}

.core-animation-placeholder {
  flex-grow: 1;
  display: flex;
  align-items: center;
  justify-content: center;
}

.wireframe-sphere {
  width: 90px;
  height: 90px;
  border: 1px dashed var(--accent-primary);
  border-radius: 50%;
  background: radial-gradient(circle, transparent 40%, rgba(2, 132, 199, 0.05) 100%);
  animation: pulse-sphere 4s infinite alternate ease-in-out;
}

@keyframes pulse-sphere {
  0% {
    transform: scale(0.95);
    box-shadow: 0 0 0 0 rgba(2, 132, 199, 0.1);
  }

  100% {
    transform: scale(1.05);
    box-shadow: 0 0 40px 10px rgba(2, 132, 199, 0.15);
  }
}

.core-label {
  margin-top: 1.5rem;
  font-size: 0.85rem;
  font-weight: 600;
  color: var(--accent-primary);
  text-transform: uppercase;
  letter-spacing: 1.5px;
}

/* Mobile Responsiveness */
@media (max-width: 992px) {
  .suite-grid {
    grid-template-columns: 1fr;
    gap: 4rem;
  }

  .suite-center-col {
    order: -1;
  }

  .suite-item.right-align,
  .suite-item.left-align {
    text-align: left;
    flex-direction: row;
  }
}

/* =========================================
   Let's Connect CTA Section
   ========================================= */
#lets-connect {
  min-height: auto;
  padding: clamp(3rem, 8vh, 6rem) 5%;
  background: #ffffff;
}

.connect-inner {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 4rem;
  align-items: center;
  max-width: 1100px;
}

/* Left Side */
.connect-left {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 0;
}

.connect-label {
  display: inline-block;
  font-size: 0.75rem;
  font-weight: 600;
  letter-spacing: 1.5px;
  text-transform: uppercase;
  color: var(--text-muted);
  border: 1px solid var(--border-color);
  padding: 0.3rem 0.8rem;
  border-radius: 50px;
  margin-bottom: 1.2rem;
}

.connect-heading {
  font-size: clamp(2rem, 4vw, 3rem);
  font-weight: 700;
  line-height: 1.15;
  color: #000000;
  letter-spacing: -1.5px;
  margin-bottom: 1.8rem;
  -webkit-text-fill-color: unset;
  background: none;
  -webkit-background-clip: unset;
  background-clip: unset;
}

.connect-heading .lightning-text {
  font-size: inherit;
  font-weight: inherit;
  letter-spacing: inherit;
  line-height: inherit;
}

.connect-cta {
  display: inline-flex;
  align-items: center;
  margin-bottom: 1.8rem;
  font-size: 0.9rem;
}

/* Social Icon Row */
.connect-socials {
  display: flex;
  align-items: center;
  gap: 0.8rem;
}

.social-icon {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 38px;
  height: 38px;
  border-radius: 50%;
  border: 1px solid var(--border-color);
  color: var(--text-secondary);
  text-decoration: none;
  transition: var(--transition-normal);
  background: #ffffff;
}

.social-icon:hover {
  border-color: var(--accent-primary);
  color: var(--accent-primary);
  background: rgba(2, 132, 199, 0.05);
  transform: translateY(-2px);
  box-shadow: 0 4px 12px rgba(2, 132, 199, 0.12);
}

/* Right Side – Robo Image */
.connect-right {
  display: flex;
  align-items: center;
  justify-content: flex-end;
}

.robo-wrap {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 100%;
  max-width: 420px;
}

.robo-img {
  width: 100%;
  max-width: 380px;
  height: auto;
  object-fit: contain;
  animation: robo-float 4s ease-in-out infinite;
  filter: drop-shadow(0 20px 40px rgba(2, 132, 199, 0.18));
  will-change: transform;
}

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

/* Responsive */
@media (max-width: 768px) {
  #lets-connect {
    padding: clamp(2.5rem, 6vh, 4rem) 5%;
  }

  .connect-inner {
    grid-template-columns: 1fr;
    gap: 2.5rem;
  }

  .connect-right {
    justify-content: center;
  }

  .world-map-wrap {
    max-width: 100%;
  }

  .connect-heading {
    font-size: clamp(1.8rem, 7vw, 2.4rem);
  }
}
/* =========================================
   Mobile Fixes
   ========================================= */
@media (max-width: 768px) {

  /* Sections no longer forced to full viewport height —
     this was creating huge empty gaps between blocks. */
  section {
    min-height: auto;
    padding: 5rem 5% 3.5rem;
  }

  /* The navbar is fixed (~76px tall), so the first section on every
     page needs clearance or the heading sits right under it. */
  .navbar + section,
  body > section:first-of-type {
    padding-top: 9rem;
    /* Centred flex content overflows upward when it is taller than the
       box, sliding under the fixed navbar. Anchor it to the top instead
       so padding-top is actually honoured. */
    justify-content: flex-start;
    min-height: 0;
  }

  #hero {
    min-height: 88vh;
    padding-top: 9rem;
    justify-content: center;
  }

  /* Grid was locked to a 320px minimum, which overflowed
     narrow phones. Let cards take the full width. */
  .grid {
    grid-template-columns: 1fr;
  }

  /* Mobile drawer: use dynamic viewport height so the
     browser toolbar doesn't cut off the last link. */
  .nav-links {
    width: min(80vw, 300px);
    height: 100vh;
    height: 100dvh;
    overflow-y: auto;
    gap: 1.5rem;
  }

  /* Intelligence Suite: consistent left-aligned stack */
  .suite-grid {
    gap: 2.5rem;
  }

  .suite-col {
    gap: 2rem;
  }

  .suite-item,
  .suite-item.right-align,
  .suite-item.left-align {
    flex-direction: row;
    text-align: left;
    align-items: flex-start;
    gap: 1rem;
  }

  .suite-icon-gif {
    width: 44px;
    height: 44px;
    min-width: 44px;
  }

  .suite-core-box {
    margin: 0 auto;
  }

  /* Hero CTA full width and comfortably tappable */
  #hero .btn-primary {
    display: block;
    width: 100%;
    max-width: 320px;
    text-align: center;
    padding: 0.85rem 1.2rem;
    font-size: 0.95rem;
  }

  /* Pill buttons stack instead of squeezing side by side */
  .btn-pill {
    width: 100%;
    max-width: 320px;
    justify-content: center;
  }

  /* Long emails/URLs were pushing the layout sideways */
  .contact-details a,
  .contact-info address,
  .footer-links a {
    word-break: break-word;
    overflow-wrap: anywhere;
  }

  /* Footer: readable two-column instead of one long ribbon */
  .footer-content {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 2rem 1.5rem;
    text-align: left;
  }

  .footer-brand {
    grid-column: 1 / -1;
  }

  /* Robot image shouldn't dominate the screen */
  .robo-img {
    max-width: 240px;
  }

  .connect-left {
    align-items: flex-start;
  }

  /* Larger tap targets */
  .social-icon {
    width: 44px;
    height: 44px;
  }

  /* Centre the social icon row on mobile */
  .connect-socials {
    width: 100%;
    justify-content: center;
  }

  /* Disable the floating animation - saves battery, avoids jitter */
  .robo-img {
    animation: none;
  }
}

@media (max-width: 480px) {
  section {
    padding: 4.5rem 5% 3rem;
  }

  .footer-content {
    grid-template-columns: 1fr;
  }

  .suite-content p {
    font-size: 0.85rem;
  }
}

/* Respect reduced-motion preferences */
@media (prefers-reduced-motion: reduce) {
  *,
  *::before,
  *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
  }
}
