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

:root {
  --primary-color: #ee1b24;
  --primary-dark: #a0131a;
  --secondary-color: #0172c0;
  --accent-color: #000000;
  --text-primary: #242424;
  --text-secondary: #232323;
  --text-extra: #d1d1d1;
  --bg-primary: #ffffff;
  --bg-secondary: #f9fafb;
  --bg-dark: #1a1a1a;
  --border-color: #e5e7eb;
  --gradient-1: linear-gradient(135deg, #ff222d 0%, #cc1d26 100%);
  --gradient-2: linear-gradient(135deg, #004e89 0%, #0066cc 100%);
  --gradient-3: linear-gradient(135deg, #000000 0%, #6f6f6f 100%);
  --shadow-sm: 0 1px 3px 0 rgba(0, 0, 0, 0.04);
  --shadow-md: 0 4px 8px -2px rgba(0, 0, 0, 0.08);
  --shadow-lg: 0 10px 20px -5px rgba(0, 0, 0, 0.08);
  --shadow-xl: 0 20px 30px -8px rgba(0, 0, 0, 0.08);
}

html {
  scroll-behavior: smooth;
}

body {
  font-family: "Inter", -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto,
    sans-serif;
  color: var(--text-primary);
  background-color: var(--bg-primary);
  line-height: 1.6;
  overflow-x: hidden;
}

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

/* Slight spacing between sections to improve visual separation */
section {
  margin: 1rem 0;
}

/* Navigation */
.navbar {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  background: rgba(255, 255, 255, 0.7);
  backdrop-filter: blur(20px) saturate(180%);
  -webkit-backdrop-filter: blur(20px) saturate(180%);
  box-shadow: 0 8px 32px 0 rgba(31, 38, 135, 0.15);
  border-bottom: 1px solid rgba(255, 255, 255, 0.15);
  z-index: 1000;
  transition: all 0.3s ease;
}

.navbar.scrolled {
  box-shadow: var(--shadow-md);
}

.nav-wrapper {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 0 0;
}

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

.logo-img {
  height: 100%;
  width: auto;
  max-height: 60px;
  object-fit: contain;
}

.nav-cta {
  padding: 0.5rem 1.5rem;
  font-size: 0.9rem;
  display: none;
}

@media (min-width: 769px) {
  .nav-cta {
    display: block;
  }
}

.nav-menu {
  display: flex;
  list-style: none;
  gap: 2rem;
}

.nav-menu a {
  text-decoration: none;
  color: var(--text-primary);
  font-weight: 500;
  transition: color 0.3s ease;
  position: relative;
}

.nav-menu a::after {
  content: "";
  position: absolute;
  bottom: -5px;
  left: 0;
  width: 0;
  height: 2px;
  background: var(--gradient-1);
  transition: width 0.3s ease;
}

.nav-menu a:hover {
  color: var(--primary-color);
}

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

.nav-toggle {
  display: none;
  flex-direction: column;
  background: none;
  border: none;
  cursor: pointer;
  gap: 4px;
}

.nav-toggle span {
  width: 25px;
  height: 3px;
  background: var(--text-primary);
  border-radius: 2px;
  transition: all 0.3s ease;
}

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

.hero-background {
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background-size: cover;
  background-position: center;
  background-repeat: no-repeat;
  z-index: -3;
}

.hero-overlay {
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: #171717e7;
  z-index: -1;
}

/* Video used as animated hero background */
.hero-video {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  z-index: -2;
}

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

/* Optimized Canvas Breathing Circles */
.breathing-circles {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  z-index: 1;
  pointer-events: none;
}

.hero-content {
  animation: fadeInUp 1s ease;
}

.hero-grid {
  display: grid;
  grid-template-columns: minmax(0, 1.6fr) minmax(0, 1.1fr);
  gap: 2.5rem;
  align-items: center;
}

.hero-main {
  text-align: left;
  color: white;
  position: relative;
  z-index: 1;
  margin-top: 50px;
}

.hero-main h1,
.hero-main p,
.hero-main ul {
  text-shadow: 0 2px 10px rgba(0, 0, 0, 0.3);
}

.hero-aside {
  display: flex;
  justify-content: flex-end;
}

.hero-quote-card {
  background: rgba(255, 255, 255, 0.85);
  backdrop-filter: blur(20px) saturate(180%);
  -webkit-backdrop-filter: blur(20px) saturate(180%);
  border-radius: 1.5rem;
  padding: 2rem;
  box-shadow: 0 8px 32px 0 rgba(31, 38, 135, 0.25);
  border: 1px solid rgba(255, 255, 255, 0.2);
  max-width: 360px;
}

.hero-quote-card h3 {
  font-size: 1.4rem;
  font-weight: 600;
  margin-bottom: 0.75rem;
}

.hero-quote-card p {
  font-size: 0.95rem;
  color: var(--text-secondary);
  margin-bottom: 1.25rem;
}

.hero-contact-row {
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
  margin-bottom: 1.5rem;
}

.hero-contact-item {
  display: flex;
  flex-direction: column;
}

.hero-contact-label {
  font-size: 0.75rem;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: var(--text-secondary);
}

.hero-contact-value {
  font-size: 0.95rem;
  font-weight: 600;
  color: var(--text-primary);
}

.hero-quote-btn {
  width: 100%;
  margin-bottom: 0.75rem;
}

.hero-note {
  font-size: 0.8rem;
  color: var(--text-secondary);
}

.hero-badge {
  display: inline-block;
  padding: 0.5rem 1.5rem;
  background: var(--gradient-2);
  color: white;
  border-radius: 2rem;
  font-size: 0.875rem;
  font-weight: 600;
  margin-bottom: 1.5rem;
  animation: fadeInUp 1s ease 0.2s both;
}

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

.hero-title {
  font-size: clamp(2.58rem, 5.16vw, 3.87rem);
  font-weight: 700;
  margin-bottom: 1.5rem;
  line-height: 1.2;
  font-family: "Poppins", "Inter", -apple-system, BlinkMacSystemFont, "Segoe UI",
    Roboto, sans-serif;
  color: rgba(255, 255, 255, 0.95);
}

/* Small hero pretitle/kicker above the main headline */
.hero-kicker {
  font-family: "Poppins", "Inter", -apple-system, BlinkMacSystemFont, "Segoe UI",
    Roboto, sans-serif;
  font-weight: 600;
  font-size: clamp(0.85rem, 1.6vw, 1rem);
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--primary-color);
  margin-bottom: 0.5rem;
}

/* Hero emphasized color combo like reference */
.hero-title-line {
  display: block;
}
.hero-title-line.secondary {
  color: rgba(255, 255, 255, 0.85);
  font-weight: 400;
}
.hero-strong {
  color: #ffffff;
  font-weight: 700;
}
.hero-highlight {
  color: var(--primary-color);
  font-weight: 700;
}

/* Sliding text marquee after hero */
.sliding-text {
  background: #0f0f10;
  color: #f5f5f7;
  overflow: hidden;
  padding: 1rem 0;
  border-top: 1px solid rgba(255, 255, 255, 0.08);
  border-bottom: 1px solid rgba(255, 255, 255, 0.08);
}

.sliding-track {
  display: flex;
  gap: 2rem;
  width: max-content;
  animation: slideLeft 18s linear infinite;
  will-change: transform;
  transition: filter 0.3s ease;
}

.sliding-item {
  font-family: "Poppins", "Inter", -apple-system, BlinkMacSystemFont, "Segoe UI",
    Roboto, sans-serif;
  font-weight: 600;
  font-size: clamp(1rem, 2.4vw, 1.25rem);
  letter-spacing: 0.05em;
  white-space: nowrap;
  padding: 0 1rem;
  word-spacing: 0.35rem;
  background: linear-gradient(90deg, #ffffff, #ff7378, #ffd166, #9be7ff);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  text-shadow: 0 0 12px rgba(255, 255, 255, 0.08);
}

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

/* Pause on hover and add a subtle glow/scale */
.sliding-text:hover .sliding-track {
  animation-play-state: paused;
  filter: drop-shadow(0 0 12px rgba(255, 82, 82, 0.18));
}

.sliding-text:hover .sliding-item {
  text-shadow: 0 0 14px rgba(255, 255, 255, 0.2);
}

.gradient-text {
  background: var(--gradient-1);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

.hero-subtitle {
  font-size: clamp(0.95rem, 1.8vw, 1.1rem);
  color: var(--text-extra);
  margin-bottom: 2.5rem;
  line-height: 1.8;
}

.hero-buttons {
  display: flex;
  gap: 1rem;
  justify-content: flex-start;
  margin-bottom: 4rem;
  flex-wrap: wrap;
}

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

/* Compact variant for primary CTAs that should be smaller */
.btn-compact {
  padding: 0.55rem 1rem;
  font-size: 0.95rem;
  font-weight: 600;
  border-radius: 0.45rem;
}

.btn-primary {
  background: var(--gradient-1);
  color: white;
  box-shadow: 0 4px 16px 0 rgba(255, 107, 53, 0.4);
  border: 1px solid rgba(255, 255, 255, 0.2);
}

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

.btn-secondary {
  background: rgba(255, 255, 255, 0.9);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  color: var(--primary-color);
  border: 2px solid rgba(255, 255, 255, 0.4);
  box-shadow: 0 4px 16px 0 rgba(31, 38, 135, 0.2);
}

.btn-secondary:hover {
  background: var(--primary-color);
  color: white;
  transform: translateY(-2px);
  box-shadow: 0 6px 24px 0 rgba(255, 107, 53, 0.4);
}

.hero-stats {
  display: flex;
  flex-direction: row;
  gap: 1.5rem;
  flex-wrap: wrap;
}

.stat-item {
  text-align: center;
  display: flex;
  flex-direction: column;
  gap: 0.25rem;
}

.stat-number {
  font-size: 1.3rem;
  font-weight: 700;
  background: var(--gradient-1);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  margin-bottom: 0;
}

.stat-label {
  color: var(--text-extra);
  font-size: 0.75rem;
  text-transform: uppercase;
  letter-spacing: 0.04em;
}

.scroll-indicator {
  position: absolute;
  bottom: 2rem;
  left: 50%;
  transform: translateX(-50%);
  animation: bounce 2s infinite;
}

@keyframes bounce {
  0%,
  20%,
  50%,
  80%,
  100% {
    transform: translateX(-50%) translateY(0);
  }
  40% {
    transform: translateX(-50%) translateY(-10px);
  }
  60% {
    transform: translateX(-50%) translateY(-5px);
  }
}

.mouse {
  width: 24px;
  height: 40px;
  border: 2px solid var(--text-secondary);
  border-radius: 12px;
  position: relative;
}

.wheel {
  width: 4px;
  height: 8px;
  background: var(--text-secondary);
  border-radius: 2px;
  position: absolute;
  top: 8px;
  left: 50%;
  transform: translateX(-50%);
  animation: scroll 2s infinite;
}

@keyframes scroll {
  0% {
    opacity: 1;
    transform: translateX(-50%) translateY(0);
  }
  100% {
    opacity: 0;
    transform: translateX(-50%) translateY(12px);
  }
}

/* Benefits Section */
.benefits {
  padding: 6rem 0;
  background: var(--bg-secondary);
}

.benefits-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 2rem;
}

.benefit-card {
  background: rgba(255, 255, 255, 0.8);
  backdrop-filter: blur(15px) saturate(180%);
  -webkit-backdrop-filter: blur(15px) saturate(180%);
  padding: 2.5rem;
  border-radius: 1.5rem;
  box-shadow: 0 8px 32px 0 rgba(31, 38, 135, 0.15);
  transition: all 0.3s ease;
  border: 1px solid rgba(255, 255, 255, 0.15);
  text-align: center;
}

.benefit-card:hover {
  transform: translateY(-5px);
  box-shadow: 0 12px 40px 0 rgba(31, 38, 135, 0.3);
  border-color: rgba(255, 107, 53, 0.5);
  background: rgba(255, 255, 255, 0.95);
}

.benefit-icon {
  width: 70px;
  height: 70px;
  background: var(--gradient-1);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  margin: 0 auto 1.5rem;
  color: white;
}

.benefit-icon svg {
  width: 35px;
  height: 35px;
}

.benefit-title {
  font-size: 1.1rem;
  font-weight: 600;
  margin-bottom: 0.75rem;
  color: var(--text-primary);
}

.benefit-description {
  color: var(--text-secondary);
  line-height: 1.7;
}

/* Services Section */
.services {
  padding: 6rem 0;
  background: white;
}

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

.service-card {
  position: relative;
  border-radius: 1.5rem;
  overflow: hidden;
  box-shadow: 0 10px 40px rgba(0, 0, 0, 0.1);
  transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
  cursor: pointer;
  background: white;
  display: flex;
  flex-direction: column;
}

.service-card:hover {
  transform: translateY(-10px);
  box-shadow: 0 20px 60px rgba(238, 27, 36, 0.2);
}

.service-image {
  width: 100%;
  height: 240px;
  overflow: hidden;
  position: relative;
}

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

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

.service-content {
  padding: 2rem;
  flex: 1;
  display: flex;
  flex-direction: column;
}

.service-title {
  font-size: 1.4rem;
  font-weight: 700;
  margin-bottom: 1rem;
  color: var(--text-primary);
  transition: color 0.3s ease;
}

.service-card:hover .service-title {
  color: var(--primary-color);
}

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

.section-header {
  text-align: center;
  margin-bottom: 4rem;
}

.section-title {
  font-size: clamp(1.75rem, 3.5vw, 2.2rem);
  font-weight: 700;
  margin-bottom: 1rem;
}

.section-subtitle {
  font-size: 1rem;
  color: var(--text-secondary);
}

.features-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 2rem;
}

.feature-card {
  background: white;
  padding: 2.5rem;
  border-radius: 1rem;
  box-shadow: var(--shadow-sm);
  transition: all 0.3s ease;
  border: 1px solid var(--border-color);
}

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

.feature-icon {
  width: 60px;
  height: 60px;
  background: var(--gradient-1);
  border-radius: 0.75rem;
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 1.5rem;
  color: white;
}

.feature-icon svg {
  width: 30px;
  height: 30px;
}

.feature-title {
  font-size: 1.25rem;
  font-weight: 600;
  margin-bottom: 0.75rem;
}

.feature-description {
  color: var(--text-secondary);
  line-height: 1.7;
}

/* About Section */
.about {
  padding: 6rem 0;
}

/* Testimonial Section */
.testimonial {
  padding: 4rem 0;
  background: var(--bg-secondary);
}
.testimonial-grid {
  display: flex;
  justify-content: center;
  gap: 1.5rem;
  align-items: center;
  max-width: 1000px;
  margin: 0 auto;
}
.testimonial-card {
  background: rgba(255, 255, 255, 0.9);
  padding: 1.5rem 1.75rem;
  border-radius: 1rem;
  box-shadow: var(--shadow-md);
  border: 1px solid rgba(255, 255, 255, 0.35);
  display: flex;
  gap: 1rem;
  align-items: flex-start;
}
.testimonial-avatar {
  width: 72px;
  height: 72px;
  border-radius: 50%;
  background-size: cover;
  background-position: center;
  flex-shrink: 0;
  box-shadow: var(--shadow-sm);
}
.testimonial-quote {
  color: var(--text-primary);
  font-style: italic;
  line-height: 1.6;
}
.testimonial-author {
  margin-top: 0.6rem;
  font-weight: 700;
  color: var(--text-secondary);
  font-size: 0.95rem;
}

/* Slider styles for testimonial carousel */
.testimonial-slider {
  position: relative;
  overflow: hidden; /* ensure only one slide visible */
}
.testimonial-slider .slides {
  display: flex;
  gap: 0; /* no gap so slides align exactly */
  transition: transform 0.3s ease;
  will-change: transform;
}
.testimonial-slider .slide {
  min-width: 100%;
  flex: 0 0 100%;
}

/* Subtle animations and modern polish */
.testimonial-card {
  transition: transform 0.45s cubic-bezier(0.2, 0.9, 0.2, 1),
    box-shadow 0.35s ease, opacity 0.45s ease;
  transform-origin: center;
}
.testimonial-card:hover {
  box-shadow: 0 16px 40px rgba(16, 24, 40, 0.12);
}

.slide .testimonial-content {
  transform: translateY(12px);
  opacity: 0;
  transition: transform 0.3s cubic-bezier(0.2, 0.9, 0.2, 1), opacity 0.45s ease;
}
.slide.active .testimonial-content {
  transform: translateY(0);
  opacity: 1;
}

.slide {
  opacity: 0.98;
}
.slide.active {
  opacity: 1;
}

.slider-controls button {
  transition: transform 0.18s ease, background 0.18s ease, box-shadow 0.18s ease;
}
.slider-controls button:hover {
  transform: translateY(-3px) scale(1.04);
  background: var(--primary-color);
}
.slider-controls button:focus-visible {
  outline: 3px solid rgba(0, 0, 0, 0.08);
}

.slider-dots .dot {
  transition: background 0.22s ease, transform 0.22s ease, box-shadow 0.22s ease;
}
.slider-dots .dot.active {
  transform: scale(1.18);
  box-shadow: 0 6px 18px rgba(16, 24, 40, 0.08);
}

/* Respect user's reduced motion preference */
@media (prefers-reduced-motion: reduce) {
  .testimonial-slider .slides,
  .testimonial-card,
  .slider-controls button,
  .slide .testimonial-content {
    transition: none !important;
    animation: none !important;
  }
}
.slider-controls {
  position: absolute;
  top: 50%;
  left: 0;
  right: 0;
  display: flex;
  justify-content: space-between;
  transform: translateY(-50%);
  pointer-events: none;
}
.slider-controls button {
  pointer-events: auto;
  background: rgba(0, 0, 0, 0.6);
  color: white;
  border: none;
  width: 42px;
  height: 42px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.25rem;
  cursor: pointer;
  box-shadow: var(--shadow-sm);
}
.slider-dots {
  display: flex;
  gap: 0.5rem;
  justify-content: center;
  margin-top: 1.25rem;
}
.slider-dots .dot {
  width: 10px;
  height: 10px;
  border-radius: 50%;
  background: rgba(0, 0, 0, 0.15);
  border: none;
  cursor: pointer;
}
.slider-dots .dot.active {
  background: var(--primary-color);
}

/* Make testimonial card center nicely */
.testimonial-card {
  max-width: 940px;
  margin: 0 auto;
}

/* Always show a single testimonial slide at a time */

.about-content {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 4rem;
  align-items: center;
}

.about-text {
  animation: fadeInLeft 1s ease;
}

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

.about-description {
  color: var(--text-secondary);
  margin-bottom: 1.5rem;
  line-height: 1.8;
}

.about-visual {
  position: relative;
  height: 520px;
  animation: fadeInRight 1s ease;
}

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

.visual-card {
  position: absolute;
  border-radius: 1.5rem;
  box-shadow: 0 8px 32px 0 rgba(31, 38, 135, 0.3);
  background-size: cover;
  background-position: center;
  background-repeat: no-repeat;
  overflow: hidden;
  border: 1px solid rgba(255, 255, 255, 0.15);
}

.card-overlay {
  position: absolute;
  /* extend slightly to cover rounded border and 1px card border */
  top: -1px;
  left: -1px;
  right: -1px;
  bottom: -1px;
  border-radius: inherit;
  background: linear-gradient(
    135deg,
    rgba(255, 107, 53, 0.8) 0%,
    rgba(0, 78, 137, 0.8) 100%
  );
  backdrop-filter: blur(1px);
  -webkit-backdrop-filter: blur(1px);
  z-index: 1;
  pointer-events: none;
}

.card-1 {
  width: 240px;
  height: 320px;
  top: 0;
  left: 0;
  z-index: 3;
  animation: float 3s ease-in-out infinite;
}

.card-2 {
  width: 240px;
  height: 320px;
  top: 40px;
  left: 180px; /* more separation */
  z-index: 2;
  animation: float 3s ease-in-out infinite 0.45s;
}

.card-3 {
  width: 240px;
  height: 320px;
  top: 80px;
  left: 380px; /* more separation */
  z-index: 1;
  animation: float 3s ease-in-out infinite 0.9s;
}

.card-content {
  position: relative;
  z-index: 2;
  text-align: center;
  color: white;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  height: 100%;
  padding: 1.5rem;
}

.card-content h4 {
  font-size: 2rem;
  font-weight: 700;
  margin-bottom: 0.5rem;
  text-shadow: 0 2px 10px rgba(0, 0, 0, 0.3);
}

.card-content p {
  font-size: 1rem;
  opacity: 0.95;
  text-shadow: 0 2px 10px rgba(0, 0, 0, 0.3);
}

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

/* Responsive fallback: stack visual cards on narrow screens to avoid overlap */
@media (max-width: 900px) {
  .about-content {
    grid-template-columns: 1fr;
    gap: 2rem;
  }
  .about-visual {
    height: auto;
    display: flex;
    flex-direction: column;
    gap: 1rem;
  }
  .visual-card,
  .card-1,
  .card-2,
  .card-3 {
    position: relative;
    width: 100%;
    height: 220px;
    left: 0 !important;
    top: 0 !important;
    transform: none !important;
  }
  .card-content h4 {
    font-size: 1.6rem;
  }
}

/* Innovations Section */
.innovations {
  padding: 6rem 0;
  background: white;
}

.innovations-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
  gap: 2rem;
}

.innovation-card {
  background: rgba(255, 255, 255, 0.8);
  backdrop-filter: blur(15px) saturate(180%);
  -webkit-backdrop-filter: blur(15px) saturate(180%);
  padding: 2.5rem;
  border-radius: 1.5rem;
  box-shadow: 0 8px 32px 0 rgba(31, 38, 135, 0.15);
  border: 1px solid rgba(255, 255, 255, 0.15);
  transition: all 0.3s ease;
}

.innovation-card:hover {
  transform: translateY(-5px);
  box-shadow: 0 12px 40px 0 rgba(31, 38, 135, 0.3);
  border-color: rgba(255, 107, 53, 0.5);
  background: rgba(255, 255, 255, 0.95);
}

.innovation-icon {
  width: 60px;
  height: 60px;
  background: var(--gradient-3);
  border-radius: 0.75rem;
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 1.5rem;
  color: white;
}

.innovation-icon svg {
  width: 30px;
  height: 30px;
}

.innovation-title {
  font-size: 1.25rem;
  font-weight: 600;
  margin-bottom: 0.75rem;
  color: var(--text-primary);
}

.innovation-description {
  color: var(--text-secondary);
  line-height: 1.7;
}

/* FAQ Section */
.faq {
  padding: 6rem 0;
  background: var(--bg-secondary);
}

.faq-container {
  max-width: 800px;
  margin: 0 auto;
}

.faq-item {
  background: rgba(255, 255, 255, 0.8);
  backdrop-filter: blur(15px) saturate(180%);
  -webkit-backdrop-filter: blur(15px) saturate(180%);
  border-radius: 1.5rem;
  margin-bottom: 1rem;
  border: 1px solid rgba(255, 255, 255, 0.3);
  box-shadow: 0 4px 16px 0 rgba(31, 38, 135, 0.15);
  overflow: hidden;
  transition: all 0.3s ease;
}

.faq-item:hover {
  box-shadow: 0 8px 24px 0 rgba(31, 38, 135, 0.25);
}

.faq-question {
  padding: 1.5rem;
  display: flex;
  justify-content: space-between;
  align-items: center;
  cursor: pointer;
  transition: all 0.3s ease;
}

.faq-question h3 {
  font-size: 1.1rem;
  font-weight: 600;
  color: var(--text-primary);
  margin: 0;
}

.faq-icon {
  font-size: 1.5rem;
  font-weight: 300;
  color: var(--primary-color);
  transition: transform 0.3s ease;
}

.faq-item.active .faq-icon {
  transform: rotate(45deg);
}

.faq-answer {
  max-height: 0;
  overflow: hidden;
  transition: max-height 0.3s ease, padding 0.3s ease;
  padding: 0 1.5rem;
}

.faq-item.active .faq-answer {
  max-height: 500px;
  padding: 0 1.5rem 1.5rem;
}

.faq-answer p {
  color: var(--text-secondary);
  line-height: 1.7;
  margin: 0;
}

/* Contact Section */
.contact {
  padding: 6rem 0;
  background: var(--bg-secondary);
}

.contact-wrapper {
  max-width: 1100px;
  margin: 0 auto;
  display: grid;
  grid-template-columns: minmax(0, 1.1fr) minmax(0, 1.3fr);
  gap: 1.25rem;
  align-items: flex-start;
}

.contact-form {
  background: rgba(255, 255, 255, 0.85);
  backdrop-filter: blur(20px) saturate(180%);
  -webkit-backdrop-filter: blur(20px) saturate(180%);
  padding: 1rem;
  border-radius: 1.3rem;
  box-shadow: 0 6px 20px 0 rgba(31, 38, 135, 0.18);
  border: 1px solid rgba(255, 255, 255, 0.35);
}

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

/* Floating label styles */
.form-group {
  position: relative;
}
.form-group input,
.form-group textarea {
  padding-top: 1.6rem; /* create room so label doesn't overlap input text */
}
.form-group label {
  position: absolute;
  left: 0.9rem;
  top: 50%;
  transform: translateY(-50%);
  font-size: 0.92rem;
  color: var(--text-secondary);
  pointer-events: none;
  opacity: 0;
  transition: all 0.18s cubic-bezier(0.2, 0.9, 0.2, 1);
  background: transparent;
  padding: 0 6px;
}

/* When input has value or is focused, show label and move it to top */
.form-group input:focus + label,
.form-group textarea:focus + label,
.form-group input:not(:placeholder-shown) + label,
.form-group textarea:not(:placeholder-shown) + label,
.form-group input.has-value + label,
.form-group textarea.has-value + label {
  top: 6px; /* move label above the input field without overlapping content */
  transform: translateY(0);
  font-size: 0.78rem;
  opacity: 1;
  color: var(--secondary-color);
  background: var(--bg-primary);
}

/* Ensure label is visible when JavaScript toggles .has-value on the input element itself */
.form-group input.has-value + label,
.form-group textarea.has-value + label {
  top: 6px;
  transform: translateY(0);
  font-size: 0.78rem;
  opacity: 1;
}

@media (prefers-reduced-motion: reduce) {
  .form-group label {
    transition: none !important;
  }
}

.form-group input,
.form-group textarea {
  width: 100%;
  padding: 0.6rem 0.9rem;
  padding-top: 1.6rem; /* ensure space for floating label */
  border: 1.5px solid rgba(255, 255, 255, 0.3);
  border-radius: 0.6rem;
  font-family: inherit;
  font-size: 0.95rem;
  transition: all 0.18s ease;
  background: rgba(255, 255, 255, 0.92);
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
}

.form-group input:focus,
.form-group textarea:focus {
  outline: none;
  border-color: var(--secondary-color);
  box-shadow: 0 0 0 3px rgba(158, 158, 158, 0.071);
  background: rgba(255, 255, 255, 0.95);
}

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

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

.info-item {
  display: flex;
  gap: 1rem;
  align-items: flex-start;
}

.info-icon {
  width: 44px;
  height: 44px;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.85);
  backdrop-filter: blur(10px) saturate(180%);
  -webkit-backdrop-filter: blur(10px) saturate(180%);
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 4px 16px 0 rgba(31, 38, 135, 0.2);
  border: 1px solid rgba(255, 255, 255, 0.3);
  color: var(--primary-color);
  flex-shrink: 0;
}

.info-icon svg {
  width: 22px;
  height: 22px;
}

.info-content h4 {
  font-size: 1rem;
  font-weight: 600;
  margin-bottom: 0.25rem;
  color: var(--text-primary);
}

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

/* Footer */
.footer {
  background: var(--bg-dark);
  color: white;
  padding: 4rem 0 2rem;
}

.footer-content {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
  gap: 2rem;
  margin-bottom: 2rem;
}

.footer-title {
  font-size: 1.5rem;
  font-weight: 700;
  margin-bottom: 1rem;
  background: var(--gradient-1);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

.footer-text {
  color: rgba(255, 255, 255, 0.7);
  line-height: 1.7;
}

.footer-heading {
  font-size: 1.125rem;
  font-weight: 600;
  margin-bottom: 1rem;
}

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

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

.footer-links a {
  color: rgba(255, 255, 255, 0.7);
  text-decoration: none;
  transition: color 0.3s ease;
}

.footer-links a:hover {
  color: white;
}

/* Footer contact details list */
.footer-contact {
  list-style: none;
  padding: 0;
  margin: 0;
}
.footer-contact li {
  color: rgba(255, 255, 255, 0.7);
  margin-bottom: 0.5rem;
}

.social-links {
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
}

.social-links a {
  color: rgba(255, 255, 255, 0.7);
  text-decoration: none;
  transition: color 0.3s ease;
}

.social-icons {
  display: flex;
  gap: 1rem;
  flex-wrap: nowrap;
  margin-top: 1rem;
  justify-content: flex-start;
}

.social-icons a {
  width: 45px;
  height: 45px;
  display: flex;
  align-items: center;
  justify-content: center;
  color: rgba(255, 255, 255, 0.7);
  transition: all 0.3s ease;
  border-radius: 50%;
  border: 2px solid rgba(255, 255, 255, 0.2);
}

.social-icons a:hover {
  color: var(--primary-color);
  border-color: var(--primary-color);
  transform: scale(1.15);
  box-shadow: 0 0 16px rgba(238, 27, 36, 0.3);
}

.social-icons svg {
  width: 22px;
  height: 22px;
}

.social-links a:hover {
  color: white;
}

.footer-bottom {
  text-align: center;
  padding-top: 2rem;
  border-top: 1px solid rgba(255, 255, 255, 0.1);
  color: rgba(255, 255, 255, 0.7);
}

/* Responsive Design */
@media (max-width: 768px) {
  .nav-menu {
    position: fixed;
    top: 70px;
    left: -100%;
    flex-direction: column;
    background: white;
    width: 100%;
    text-align: center;
    transition: left 0.3s ease;
    box-shadow: var(--shadow-lg);
    padding: 2rem 0;
  }

  .nav-menu.active {
    left: 0;
  }

  .nav-toggle {
    display: flex;
  }

  .nav-toggle.active span:nth-child(1) {
    transform: rotate(45deg) translate(5px, 5px);
  }

  .nav-toggle.active span:nth-child(2) {
    opacity: 0;
  }

  .nav-toggle.active span:nth-child(3) {
    transform: rotate(-45deg) translate(7px, -6px);
  }

  .hero-grid {
    grid-template-columns: 1fr;
  }
  .hero-aside {
    justify-content: center;
    order: 2;
    margin-bottom: 1.5rem;
  }

  .hero-main {
    order: 1;
  }

  .hero-quote-card {
    max-width: 100%;
  }

  .hero-buttons {
    flex-direction: column;
    align-items: center;
  }

  .btn {
    width: 100%;
    max-width: 300px;
  }

  .hero-stats {
    gap: 2rem;
  }

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

  .about-visual {
    height: 300px;
  }

  .visual-card {
    /* On narrower screens stack and center cards */
    position: static;
    width: 100%;
    max-width: 480px;
    height: auto;
    margin: 0 auto 1rem;
    border-radius: 14px;
    box-shadow: var(--shadow-md);
  }

  .card-2 {
    left: 75px;
  }

  .card-3 {
    left: 150px;
  }

  .contact-wrapper {
    grid-template-columns: 1fr;
  }

  .contact-form {
    padding: 2rem;
  }
}

@media (max-width: 480px) {
  .hero-title {
    font-size: 2rem;
  }

  .stat-number {
    font-size: 2rem;
  }

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

  .about-visual {
    height: 600px;
  }

  .visual-card {
    /* Mobile: full-width visual cards for readability */
    position: static;
    width: 100%;
    max-width: 420px;
    height: auto;
    margin: 0 auto 1rem;
    border-radius: 12px;
    box-shadow: var(--shadow-md);
  }
  /* Reduce visual card text size on narrow screens */
  .card-content h4 {
    font-size: 1.1rem;
  }

  .card-content p {
    font-size: 0.95rem;
  }
}

/* Additional responsive polish for medium and small screens */
@media (max-width: 900px) {
  .hero {
    min-height: 70vh;
    padding-top: 70px;
  }
  .testimonial-card {
    padding: 1rem 1.25rem;
    max-width: 100%;
  }
  .testimonial-slider .slides {
    gap: 0;
  }
  .slider-controls button {
    width: 38px;
    height: 38px;
    font-size: 1rem;
  }
  .slider-dots .dot {
    width: 9px;
    height: 9px;
  }
  .hero-stats {
    justify-content: center;
    gap: 1rem;
  }
}

@media (max-width: 768px) {
  .container {
    padding: 0 16px;
  }
  .hero {
    min-height: auto;
    /* Add space equal to navbar height plus a small gap so content isn't hidden */
    padding: calc(60px + 1rem) 0 2.5rem;
  }
  .hero-title {
    font-size: 1.8rem;
  }
  .hero-subtitle {
    font-size: 0.95rem;
  }
  /* Reduce visual card text size on smaller screens */
  .card-content h4 {
    font-size: 1.25rem;
  }

  .card-content p {
    font-size: 0.95rem;
  }
  .hero-quote-card {
    padding: 1.25rem;
    max-width: 420px;
  }
  .testimonial-card {
    padding: 1rem;
    margin: 0 0.5rem;
  }
  .testimonial-avatar {
    width: 56px;
    height: 56px;
  }
  .slider-controls button {
    width: 36px;
    height: 36px;
  }
  .slider-dots {
    margin-top: 1rem;
  }
  .contact-wrapper {
    grid-template-columns: 1fr;
    gap: 1.5rem;
  }
  .contact-form {
    padding: 1.25rem;
  }
  .footer {
    padding: 2.5rem 0 1.5rem;
  }
}

@media (max-width: 480px) {
  .nav-menu {
    top: 60px;
    padding: 1.5rem 0;
  }
  .hero-title {
    font-size: 1.6rem;
  }
  .hero-subtitle {
    font-size: 0.9rem;
  }
  .hero-buttons {
    gap: 0.75rem;
  }
  .btn {
    padding: 0.6rem 1rem;
    font-size: 0.95rem;
  }
  .stat-number {
    font-size: 1.2rem;
  }
  .testimonial-avatar {
    width: 48px;
    height: 48px;
  }
  .visual-card,
  .card-1,
  .card-2,
  .card-3 {
    height: 180px;
  }
  .card-content h4 {
    font-size: 1.25rem;
  }
}

/* EmailJS Form Loading & Message Styles */
.form-loading {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 12px;
  padding: 16px 20px;
  margin-top: 16px;
  background-color: #e3f2fd;
  border: 1px solid #90caf9;
  border-radius: 8px;
  color: #1976d2;
  font-size: 14px;
  font-weight: 500;
  animation: fadeIn 0.3s ease;
}

.spinner {
  width: 16px;
  height: 16px;
  border: 2px solid #90caf9;
  border-top-color: #1976d2;
  border-radius: 50%;
  animation: spin 0.8s linear infinite;
}

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

.form-message {
  padding: 16px 20px;
  margin-top: 16px;
  border-radius: 8px;
  font-size: 14px;
  font-weight: 500;
  animation: fadeIn 0.3s ease;
  border-left: 4px solid;
}

.form-message.success {
  background-color: #f1f8e9;
  color: #558b2f;
  border-left-color: #558b2f;
}

.form-message.error {
  background-color: #ffebee;
  color: #c62828;
  border-left-color: #c62828;
}

.form-message strong {
  display: block;
  margin-bottom: 4px;
  font-weight: 600;
}

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