/* reset default browser spacing */
* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

/* keeping all main spacing values here so i can tweak layout easily */
:root {
  --nav-h: 70px;
  /* navbar height */
  --section-pad-y: 90px;
  /* top & bottom space for sections */
  --page-pad-x: 20px;
  /* left & right padding */

  /* theme colors */
  --bg-color: #ffffff;
  --text-color: #111111;
  --text-muted: #444444;
  --nav-bg: #ffffff;
  --border-color: #e6e6e6;
  --section-bg-alt: #f5f7fb;
  --card-bg: #ffffff;
  --card-shadow: rgba(0, 0, 0, 0.08);
  --footer-bg: #ffffff;
  --modal-bg: #ffffff;
  --btn-light-bg: #ffffff;
  --btn-light-color: #111111;
  --btn-dark-bg: #111111;
  --btn-dark-color: #ffffff;
  --theme-transition:background-color 0.3s ease, color 0.3s ease, border-color 0.3s ease, box-shadow 0.3s ease;
  --bridge-bg: linear-gradient(to bottom,rgba(37, 99, 235, 0.08),rgba(34, 197, 94, 0.06),#f3f3f3);

  /* biotech palette */
  --bt-teal: #0d9488;
  --bt-teal-soft: rgba(13, 148, 136, 0.1);
  --bt-blue: #0ea5e9;
  --bt-green: #22c55e;
  --bt-gradient: linear-gradient(
    135deg,
    var(--bt-teal) 0%,
    var(--bt-blue) 100%
  );
  --bt-bg-gradient: linear-gradient(to bottom, #f8fafc, #ffffff);
}

body.dark-mode {
  --bridge-bg: linear-gradient(
    to bottom,
    rgba(37, 99, 235, 0.18),
    rgba(34, 197, 94, 0.14),
    #0f172a
  );

  --bg-color: #0f172a;
  --text-color: #f1f5f9;
  --text-muted: #94a3b8;
  --nav-bg: #0f172a;
  --border-color: #1e293b;
  --section-bg-alt: #1e293b;
  --card-bg: #1e293b;
  --card-shadow: rgba(0, 0, 0, 0.3);
  --footer-bg: #0f172a;
  --modal-bg: #1e293b;
  --btn-light-bg: #1e293b;
  --btn-light-color: #f1f5f9;
  --btn-dark-bg: #f1f5f9;
  --btn-dark-color: #0f172a;

  --bt-bg-gradient: linear-gradient(to bottom, #1e293b, #0f172a);
}

/* smooth scrolling + prevent sections hiding behind navbar */
html {
  scroll-behavior: smooth;
  scroll-padding-top: var(--nav-h);
}

body {
  font-family: Arial, sans-serif;
  color: var(--text-color);
  background-color: var(--bg-color);
  transition: var(--theme-transition);
}

/* common container so everything stays aligned */
.container {
  max-width: 1100px;
  margin: 0 auto;
  padding: 0 var(--page-pad-x);
}

/* i want every main section to feel like it fills the screen */
.section {
  min-height: calc(100vh - var(--nav-h));
  padding: var(--section-pad-y) 0;
  display: flex;
  align-items: center;
}

/* extra safety for anchor link scroll offset */
section {
  scroll-margin-top: var(--nav-h);
}

/* ---------------- navbar ---------------- */
.navbar {
  position: sticky;
  top: 0;
  z-index: 1000;
  height: var(--nav-h);
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 10px 26px;
  /* glass look (works in both themes because base colors are vars) */
  /* background: color-mix(in srgb, var(--nav-bg) 78%, transparent); */
  background: color-mix(in srgb, var(--nav-bg) 78%, transparent);
  backdrop-filter: blur(12px);
  border-bottom: 1px solid var(--border-color);
  transition:
    var(--theme-transition),
    box-shadow 200ms ease;
}

/* hide hamburger by default (desktop) */
.nav-toggle {
  display: none;
}

/* shadow only after i start scrolling */
.navbar.scrolled {
  box-shadow: 0 14px 40px rgba(0, 0, 0, 0.08);
}

/* logo sizing */
.logo img {
  height: 55px;
  width: 250px;
  display: block;
  border-top-left-radius: 10px;
  border-top-right-radius: 10px;
  border-bottom-left-radius: 10px;
}

/* desktop links */
.nav-links {
  display: flex;
  align-items: center;
  gap: 10px;
}

/* each link */
.nav-link {
  position: relative;
  text-decoration: none;
  color: var(--text-color);
  font-weight: 650;
  font-size: 15px;

  padding: 10px 14px;
  border-radius: 999px;

  transition:
    var(--theme-transition),
    background 160ms ease,
    transform 160ms ease;
}

/* pill highlight on hover */
.nav-link:hover {
  background: rgba(37, 99, 235, 0.12);
  transform: translateY(-1px);
}

/* active section highlight */
.nav-link.active {
  background: color-mix(in srgb, var(--text-color) 10%, transparent);
}

/* underline animation for nav links */
.nav-link::after {
  content: "";
  position: absolute;
  left: 14px;
  right: 14px;
  bottom: 7px;
  height: 2px;
  border-radius: 999px;

  background: rgba(37, 99, 235, 0.65);
  transform: scaleX(0);
  transform-origin: left;
  transition: transform 180ms ease;
}

.nav-link:hover::after {
  transform: scaleX(1);
}

/* keep underline visible for active section */
.nav-link.active::after {
  transform: scaleX(1);
  background: color-mix(in srgb, var(--text-color) 45%, transparent);
}

/* keyboard focus */
.nav-link:focus-visible {
  outline: none;
  box-shadow: 0 0 0 4px rgba(37, 99, 235, 0.18);
  background: rgba(37, 99, 235, 0.12);
}

/* ---------------- contact CTA ---------------- */
.nav-cta {
  background: linear-gradient(135deg, #2563eb, #1e40af);
  color: #fff !important;
  font-weight: 800;
  box-shadow: 0 6px 18px rgba(37, 99, 235, 0.35);
}

.nav-cta:visited {
  color: #fff !important;
}

.nav-cta:hover {
  background: linear-gradient(135deg, #1d4ed8, #1e3a8a);
  color: #fff !important;
  transform: translateY(-1px);
}

.nav-cta:active {
  background: linear-gradient(135deg, #1e3a8a, #172554);
  color: #fff !important;
}

.nav-cta.active {
  background: linear-gradient(135deg, #1e40af, #172554);
  color: #fff !important;
}

.nav-cta:focus-visible {
  box-shadow: 0 0 0 4px rgba(37, 99, 235, 0.45);
}

.nav-cta::after {
  content: none;
}

/* ---------------- hamburger button ---------------- */
.nav-toggle {
  width: 44px;
  height: 44px;

  background: #2563eb; /* solid blue */
  border: none;
  border-radius: 12px;

  cursor: pointer;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  gap: 6px;

  box-shadow: 0 6px 18px rgba(37, 99, 235, 0.35);
}

/* lines */
.nav-toggle span {
  width: 22px;
  height: 2px;
  background: #ffffff; /* white for contrast */
  border-radius: 999px;

  transition:
    transform 220ms ease,
    opacity 180ms ease;
}

/* ===== OPEN STATE (X animation) ===== */
.nav-toggle.open {
  background: #1e40af; /* slightly darker blue */
}

.nav-toggle.open span:nth-child(1) {
  transform: translateY(8px) rotate(45deg);
}

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

.nav-toggle.open span:nth-child(3) {
  transform: translateY(-8px) rotate(-45deg);
}

/* ---------------- mobile menu ---------------- */
.mobile-nav {
  position: fixed;
  inset: 0;
  background: rgba(0, 0, 0, 0.45);

  opacity: 0;
  pointer-events: none;
  transition: opacity 180ms ease;
  z-index: 2000;
}

.mobile-nav.open {
  opacity: 1;
  pointer-events: auto;
}

.mobile-nav-panel {
  position: absolute;
  top: calc(var(--nav-h) + 12px);
  right: 16px;
  left: 16px;

  background: color-mix(in srgb, var(--nav-bg) 92%, transparent);
  backdrop-filter: blur(12px);

  border-radius: 18px;
  padding: 14px;

  box-shadow: 0 20px 60px rgba(0, 0, 0, 0.18);
  border: 1px solid var(--border-color);

  transform: translateY(-10px);
  transition:
    transform 180ms ease,
    var(--theme-transition);
}

.mobile-nav.open .mobile-nav-panel {
  transform: translateY(0);
}

.mobile-nav-panel .nav-link {
  display: block;
  padding: 12px 14px;
  border-radius: 14px;
}

/* ---------------- responsive ---------------- */
@media (max-width: 900px) {
  .nav-links {
    display: none;
  }

  .nav-toggle {
    display: flex;
  }
}

/* ---------------- common headings ---------------- */
.section-title {
  font-size: 56px;
  font-weight: 800;
  color: var(--text-color);
  margin-bottom: 16px;
  text-align: center;
  transition: var(--theme-transition);
}

.section-subtitle {
  max-width: 850px;
  margin: 0 auto 55px;
  color: var(--text-muted);
  font-size: 18px;
  line-height: 1.6;
  text-align: center;
  transition: var(--theme-transition);
}

/* ---------------- hero section ---------------- */
.hero {
  display: flex;
  min-height: calc(100vh - var(--nav-h));
}

/* both IT and BT halves */
.hero-it,
.hero-bt {
  flex: 1;
  display: flex;
  flex-direction: column;
  color: #fff;
  position: relative;
}
/* IT background */
.hero-it {
  background: linear-gradient(135deg, #1e3b8acd, #2563eb);
}

/* BT background */
.hero-bt {
  background: linear-gradient(135deg, #15803d, #22c55e);
}

/* ---------------- hero slider arrows ---------------- */
/* arrow buttons to control slides */
.slider-arrow {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  z-index: 5;

  width: 60px; /* bigger */
  height: 60px;
  border-radius: 50%;

  border: 1px solid rgba(255, 255, 255, 0.4);
  background: rgba(255, 255, 255, 0.15);
  backdrop-filter: blur(8px);

  color: #fff;
  font-size: 24px;

  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  transition:
    transform 0.2s ease,
    background 0.2s ease;
}

.slider-arrow:hover {
  transform: translateY(-50%) scale(1.1);
  background: rgba(255, 255, 255, 0.25);
}

/* push them to TRUE edges of hero halves */
.hero-it .slider-arrow.prev,
.hero-bt .slider-arrow.prev {
  left: 20px;
}

.hero-it .slider-arrow.next,
.hero-bt .slider-arrow.next {
  right: 20px;
}

/* main hero content */
.hero-content {
  flex: 1;
  padding: 10px 0px 0px;
  text-align: center;
}

.hero-content h1 {
  font-size: 42px;
  margin-bottom: 10px;
}

/* slider container */
.slider {
  position: relative;
  max-width: 520px;
  min-height: 80px;
  margin: 0 auto;
}

/* mobile slightly smaller */
@media (max-width: 600px) {
  .slider-arrow {
    width: 46px;
    height: 46px;
    font-size: 18px;
  }

  .slider-arrow.prev {
    left: 10px;
  }

  .slider-arrow.next {
    right: 10px;
  }
}

/* hide all slides by default */
.slide {
  position: absolute;
  opacity: 0;
  transform: translateY(8px);
  transition:
    opacity 0.5s ease,
    transform 0.5s ease;
  font-size: 18px;
}

/* only active slide shows */
.slide.active {
  position: relative;
  opacity: 1;
  transform: translateY(0);
}

/* bottom strip with explore button */
.hero-action {
  padding: 22px;
  text-align: center;
  background: rgba(255, 255, 255, 0.12);
  border-top: 1px solid rgba(255, 255, 255, 0.3);
}

/* buttons */
.btn {
  padding: 12px 26px;
  font-weight: bold;
  border-radius: 6px;
  text-decoration: none;
  display: inline-block;
  transition:
    var(--theme-transition),
    transform 0.2s ease;
}

.btn-light {
  background: var(--btn-light-bg);
  color: var(--btn-light-color);
}

.btn-dark {
  background: var(--btn-dark-bg);
  color: var(--btn-dark-color);
}

/* ---------------- scroll reveal animation ---------------- */
/* starting hidden */
.reveal {
  opacity: 0;
  transform: translateY(70px);
  transition:
    opacity 0.8s ease,
    transform 0.8s ease;
}

/* becomes visible on scroll */
.reveal.active {
  opacity: 1;
  transform: translateY(0);
}

/* ---------------- bridge section ---------------- */

/* bridge: compact connector between hero and about */
.bridge {
  padding: 28px 20px 34px;
  text-align: center;

  /* this gradient visually ties hero → content */
  background: var(--bridge-bg);
  transition: var(--theme-transition);

  border-top: 1px solid rgba(0, 0, 0, 0.06);
}

/* heading here should be bold but not as big as About */
.bridge .section-title {
  font-size: 38px;
  font-weight: 800;
  margin-bottom: 12px;
  color: var(--text-color);
}

/* supporting line stays compact */
.bridge p {
  max-width: 780px;
  margin: 0 auto;
  font-size: 17px;
  line-height: 1.6;
  color: var(--text-muted);
}

/* image sliders */
/* Position the background container to fill the hero half */
.hero-bg {
  position: absolute;
  inset: 0;
  z-index: 0; /* Behind the content */
  overflow: hidden;
}

/* Individual slides */
.bg-slide {
  position: absolute;
  inset: 0;
  background-size: contain;
  background-position: center;
  background-repeat: no-repeat;
  opacity: 0;
  filter: brightness(0.4) grayscale(0.1); /* Dims the image and desaturates it slightly */
  transition: opacity 0.8s ease-in-out;
  z-index: 0;
}

/* Show the active background slide */
.bg-slide.active {
  opacity: 1;
  z-index: 1;
}

/* Ensure hero-content stays above the images */
.hero-content, .hero-action, .slider-arrow {
  position: relative;
  z-index: 10;
}

/* Container for the arrows needs to be the hero-it/hero-bt divs */
.hero-it, .hero-bt {
  position: relative; /* This is the anchor for the absolute arrows */
}

.slider-arrow {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  z-index: 20; /* Higher than images and text */
  
  width: 45px;
  height: 45px;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.1);
  backdrop-filter: blur(5px);
  border: 1px solid rgba(255, 255, 255, 0.3);
  color: #fff;
  
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  transition: all 0.3s ease;
}

.slider-arrow:hover {
  background: rgba(255, 255, 255, 0.3);
  transform: translateY(-50%) scale(1.1);
}

/* Specific placements for IT side */
.hero-it .prev { left: 15px; }
.hero-it .next { right: 15px; }

/* Specific placements for BT side */
.hero-bt .prev { left: 15px; }
.hero-bt .next { right: 15px; }

/* Hide arrows on mobile to prevent clutter */
@media (max-width: 768px) {
  .slider-arrow {
    display: none;
  }
}

/* ---------------- about section ---------------- */
.about {
  background: var(--bg-color);
  transition: var(--theme-transition);
}

.about-text {
  max-width: 720px;
  font-size: 18px;
  line-height: 1.6;
  color: var(--text-muted);
  margin: 0 auto 50px;
  text-align: center;
}

/* stats row */
.stats {
  display: flex;
  gap: 60px;
  flex-wrap: wrap;
  justify-content: center;
  text-align: center;
}

.stat {
  min-width: 220px;
}

.stat-number {
  font-size: 48px;
  font-weight: 800;
  margin-bottom: 10px;
  color: var(--text-color);
}

.stat-label {
  font-size: 16px;
  color: var(--text-muted);
}

/* ---------------- services section ---------------- */
.services-section {
  background: var(--section-bg-alt);
  transition: var(--theme-transition);
}

.services-wrap {
  text-align: center;
}

.services-subtitle {
  max-width: 820px;
  margin: 0 auto 55px;
  color: var(--text-muted);
  font-size: 18px;
  line-height: 1.6;
}

/* services grid layout */
.services-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 28px;
}

/* service card styling */
.service-card {
  background: var(--card-bg);
  border-radius: 18px;
  padding: 28px;
  text-align: left;

  box-shadow: 0 18px 45px var(--card-shadow);
  border: 1px solid var(--border-color);

  transition:
    var(--theme-transition),
    transform 220ms ease;
}

/* small pop on hover */
.service-card:hover,
.service-card:focus-within {
  transform: translateY(-8px) scale(1.02);
  box-shadow: 0 26px 70px rgba(0, 0, 0, 0.12);
}

.service-card h3 {
  font-size: 20px;
  margin-bottom: 12px;
  color: var(--text-color);
}

.service-card p {
  color: var(--text-muted);
  line-height: 1.6;
}

/* ---------------- work section ---------------- */
.work-section {
  background: var(--bg-color);
  transition: var(--theme-transition);
}

.work-wrap {
  text-align: center;
}

/* project grid */
.work-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 26px;
}

/* project card */
.work-card {
  position: relative;
  border-radius: 22px;
  overflow: hidden;
  cursor: pointer;
  background: var(--section-bg-alt);
  box-shadow: 0 18px 45px var(--card-shadow);
  transition:
    var(--theme-transition),
    transform 220ms ease;
}

.work-card:hover {
  transform: translateY(-6px);
  box-shadow: 0 26px 70px rgba(0, 0, 0, 0.12);
}

.work-img {
  width: 100%;
  height: 170px;
  object-fit: cover;
  display: block;
}

/* overlay stays hidden until card is active */
.work-overlay {
  position: absolute;
  inset: 0;
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
  gap: 6px;
  padding: 18px 20px;

  opacity: 0;
  transform: translateY(10px);
  pointer-events: none;

  background: linear-gradient(
    to top,
    rgba(0, 0, 0, 0.7),
    rgba(0, 0, 0, 0.25),
    rgba(0, 0, 0, 0.05)
  );

  transition:
    opacity 250ms ease,
    transform 250ms ease;
}

.work-overlay h3 {
  color: #fff;
  font-size: 22px;
  font-weight: 800;
}

.work-overlay p {
  color: rgba(255, 255, 255, 0.9);
  font-size: 14px;
  font-weight: 600;
}

/* overlay shows when i hover (desktop) */
.work-card:hover .work-overlay,
.work-card:focus-within .work-overlay {
  opacity: 1;
  transform: translateY(0);
  pointer-events: auto;
}

/* mobile: hover doesn't exist, so i show overlay when user taps the card */
.work-card.active .work-overlay {
  opacity: 1;
  transform: translateY(0);
  pointer-events: auto;
}

/* ---------------- testimonials ---------------- */
.testimonials-section {
  background: var(--bg-color);
  transition: var(--theme-transition);
}

.testimonials-wrap {
  text-align: center;
}

.testimonials-subtitle {
  max-width: 900px;
  margin: 0 auto 70px;
  color: var(--text-muted);
  font-size: 18px;
  line-height: 1.6;
}

/* desktop layout (3 cards like screenshot) */
.testimonials-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 26px;
}

/* testimonial card */
.testimonial-card {
  background: var(--section-bg-alt);
  border-radius: 22px;
  padding: 34px 28px;
  text-align: left;

  box-shadow: 0 18px 45px var(--card-shadow);
  border: 1px solid var(--border-color);

  transition:
    var(--theme-transition),
    transform 220ms ease;
}

/* pop effect (same vibe as services cards) */
.testimonial-card:hover,
.testimonial-card:focus-within {
  transform: translateY(-8px) scale(1.02);
  box-shadow: 0 26px 70px rgba(0, 0, 0, 0.12);
}

.testimonial-quote {
  font-size: 17px;
  line-height: 1.8;
  color: var(--text-color);
  margin-bottom: 28px;
  position: relative;
  padding-left: 18px;
}

/* quote mark on left */
.testimonial-quote::before {
  content: "“";
  position: absolute;
  left: 0;
  top: -4px;
  font-size: 38px;
  font-weight: 900;
  color: rgba(37, 99, 235, 0.25);
}

.testimonial-name {
  font-size: 18px;
  font-weight: 800;
  color: var(--text-color);
  margin-bottom: 6px;
}

.testimonial-role {
  font-size: 15px;
  color: var(--text-muted);
}

/* ---------------- mobile slider mode ---------------- */
.testimonials-carousel {
  width: 100%;
}

/* when mobile: show one card at a time */
@media (max-width: 900px) {
  .testimonials-carousel {
    overflow: hidden;
  }

  .testimonials-grid {
    display: flex;
    gap: 0;
    /* gap breaks slider math */
    transition: transform 450ms ease;
    will-change: transform;
  }

  .testimonial-card {
    flex: 0 0 100%;
    border-radius: 22px;
    margin: 0;
  }

  /* dots */
  .testimonials-dots {
    display: flex;
    justify-content: center;
    gap: 10px;
    margin-top: 18px;
  }

  .testimonials-dots button {
    width: 10px;
    height: 10px;
    border-radius: 999px;
    border: none;
    background: rgba(0, 0, 0, 0.18);
    cursor: pointer;
    padding: 0;
  }

  .testimonials-dots button.active {
    background: var(--text-color);
  }
}

/* ---------------- contact section ---------------- */
.contact-section {
  background: var(--section-bg-alt);
  transition: var(--theme-transition);
}

.contact-wrap {
  text-align: center;
}

/* small subtitle under heading */
.contact-subtitle {
  max-width: 850px;
  margin: 0 auto 70px;
  color: var(--text-muted);
  font-size: 18px;
  line-height: 1.6;
}

/* two-column layout */
.contact-grid {
  display: grid;
  grid-template-columns: 1fr 1.2fr;
  gap: 50px;
  align-items: center;
}

/* left info */
.contact-info {
  text-align: left;
}

.contact-heading {
  font-size: 32px;
  font-weight: 900;
  margin-bottom: 14px;
  color: var(--text-color);
}

.contact-text {
  color: var(--text-muted);
  margin-bottom: 22px;
  font-size: 16px;
  line-height: 1.6;
}

.contact-link {
  color: inherit; /* Keeps the text color the same as your theme */
  text-decoration: none;
  transition: color 0.3s ease;
}

.contact-link:hover {
  color: #2563eb; /* Changes to your brand blue on hover */
  text-decoration: underline;
}

/* Ensure the address doesn't look like a giant block of blue text */
.contact-lines p {
  line-height: 1.6;
  margin-bottom: 12px;
}

/* right form card */
.contact-form-card {
  background: var(--card-bg);
  border-radius: 18px;
  padding: 28px;
  box-shadow: 0 18px 45px var(--card-shadow);
  border: 1px solid var(--border-color);
  transition: var(--theme-transition);
}

/* form layout */
.contact-form {
  display: flex;
  flex-direction: column;
  gap: 18px;
}

/* inputs */
.contact-form input,
.contact-form textarea {
  width: 100%;
  padding: 14px 16px;
  border-radius: 14px;
  border: 1px solid var(--border-color);
  outline: none;
  font-size: 16px;
  font-family: inherit;
  background: var(--card-bg);
  color: var(--text-color);
  transition: var(--theme-transition);
}

/* focus effect */
.contact-form input:focus,
.contact-form textarea:focus {
  border-color: rgba(37, 99, 235, 0.55);
  box-shadow: 0 0 0 4px rgba(37, 99, 235, 0.14);
}

/* Placeholder text visibility */
.contact-form input::placeholder,
.contact-form textarea::placeholder {
  color: rgba(148, 163, 184, 0.7);
}

body.dark-mode .contact-form input::placeholder,
body.dark-mode .contact-form textarea::placeholder {
  color: rgba(203, 213, 225, 0.65);
}

/* Improve input visibility in dark mode */
body.dark-mode .contact-form input,
body.dark-mode .contact-form textarea {
  background: rgba(255, 255, 255, 0.04);
  border: 1px solid rgba(148, 163, 184, 0.35);
  color: var(--text-color);
}

/* button */
.contact-btn {
  width: 210px;
  padding: 14px 18px;
  border: none;
  border-radius: 14px;
  background: #2563eb;
  color: #fff;
  font-weight: 900;
  cursor: pointer;
  transition:
    transform 150ms ease,
    opacity 150ms ease;
}

/* button hover */
.contact-btn:hover {
  transform: translateY(-2px);
  opacity: 0.95;
}

/* responsive */
@media (max-width: 900px) {
  .contact-grid {
    grid-template-columns: 1fr;
  }

  .contact-info {
    text-align: center;
  }

  .contact-lines {
    text-align: left;
    max-width: 520px;
    margin: 0 auto;
  }

  .contact-btn {
    width: 100%;
  }
}

/* ---------------- modal (for work projects) ---------------- */

/* dark background behind modal */
.modal-backdrop {
  position: fixed;
  inset: 0;
  background: rgba(0, 0, 0, 0.55);

  display: flex;
  align-items: center;
  justify-content: center;

  opacity: 0;
  pointer-events: none;
  transition: opacity 200ms ease;
  z-index: 9999;
}

/* becomes visible when js adds .open */
.modal-backdrop.open {
  opacity: 1;
  pointer-events: auto;
}

/* modal container */
.modal-card {
  width: min(860px, 92vw);
  background: var(--modal-bg);
  border-radius: 18px;
  overflow: hidden;

  box-shadow: 0 30px 90px rgba(0, 0, 0, 0.25);

  display: grid;
  grid-template-columns: 1.1fr 1fr;

  transform: translateY(10px);
  transition:
    transform 200ms ease,
    var(--theme-transition);
  position: relative;
}

/* slide modal up a bit when open */
.modal-backdrop.open .modal-card {
  transform: translateY(0);
}

/* left side image */
.modal-media {
  background: var(--section-bg-alt);
  display: flex;
  align-items: center;
  justify-content: center;
  transition: var(--theme-transition);
}

.modal-media img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

/* right side content */
.modal-content {
  padding: 22px;
  text-align: left;
}

.modal-content h3 {
  margin-bottom: 6px;
  font-size: 26px;
  font-weight: 900;
  color: var(--text-color);
}

.modal-tags {
  margin-bottom: 14px;
  font-size: 14px;
  font-weight: 700;
  color: var(--text-muted);
}

.modal-desc {
  margin-bottom: 16px;
  font-size: 15px;
  line-height: 1.6;
  color: var(--text-color);
}

/* tech stack pill */
.modal-pill {
  display: inline-block;
  padding: 8px 12px;
  border-radius: 999px;
  background: var(--section-bg-alt);
  font-size: 12px;
  font-weight: 800;
  color: var(--text-color);
  transition: var(--theme-transition);
}

/* close button */
.modal-close {
  position: absolute;
  top: 10px;
  right: 10px;

  width: 38px;
  height: 38px;
  border-radius: 50%;
  border: none;

  background: rgba(17, 17, 17, 0.08);
  cursor: pointer;
  font-size: 16px;
  font-weight: 900;
}

.modal-close:hover {
  background: rgba(17, 17, 17, 0.14);
}

/* mobile modal layout */
@media (max-width: 800px) {
  .modal-card {
    grid-template-columns: 1fr;
  }

  .modal-media img {
    height: 220px;
  }
}

/* ---------------- footer ---------------- */
.footer {
  background: #111;
  color: #fff;
  padding: 20px;
  text-align: center;
}

/* ---------------- responsive tweaks ---------------- */
@media (max-width: 1100px) {
  .services-grid {
    grid-template-columns: repeat(2, 1fr);
  }
}

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

  .work-img {
    height: 200px;
  }
}

@media (max-width: 768px) {
  .nav-links {
    display: none;
  }

  .hero {
    flex-direction: column;
  }

  .hero-content h1 {
    font-size: 32px;
  }

  .section-title {
    font-size: 38px;
  }

  .stats {
    gap: 30px;
  }

  .stat-number {
    font-size: 40px;
  }
}

/* mobile responsiveness for slider buttons*/

@media (max-width: 768px) {
  .slider-arrow {
    display: none !important;
  }
}

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

/* ---------------- theme toggle button ---------------- */
.theme-toggle {
  position: fixed;
  bottom: 25px;
  right: 25px;
  width: 50px;
  height: 50px;
  border-radius: 50%;
  background: var(--card-bg);
  border: 1px solid var(--border-color);
  color: var(--text-color);
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.2rem;
  box-shadow: 0 4px 12px var(--card-shadow);
  z-index: 9999;
  transition:
    transform 0.3s ease,
    var(--theme-transition);
}

.theme-toggle:hover {
  transform: scale(1.1);
}

.theme-toggle:focus {
  outline: 2px solid var(--text-color);
  outline-offset: 2px;
}

.theme-toggle i {
  pointer-events: none;
}



/* ---------------------------------------------------- */
/*                    INFOTECH PAGE                      */
/* ---------------------------------------------------- */
.it-page {
  --it-blue: #2563eb;
  background-color: var(--bg-color);
}

.it-hero {
  height: 90vh;
  display: flex;
  align-items: center;
  justify-content: center;
  text-align: center;
  background: linear-gradient(135deg, rgba(30, 58, 138, 0.9), rgba(37, 99, 235, 0.8)), 
              url('assets/infotech/hero-bg.jpg'); /* Use one of your IT images here */
  background-size: cover;
  background-position: center;
  color: white;
}

.it-hero h1 {
  font-size: clamp(32px, 5vw, 64px);
  margin-bottom: 20px;
}

.icon-blue {
  color: var(--it-blue);
  font-size: 2.5rem;
  margin-bottom: 20px;
  display: block;
}

/* Process Section Styling */
.process-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 40px;
  margin-top: 50px;
}

.process-item {
  display: flex;
  gap: 20px;
  background: var(--card-bg);
  padding: 30px;
  border-radius: 20px;
  border: 1px solid var(--border-color);
  box-shadow: 0 10px 30px var(--card-shadow);
  transition: transform 0.3s ease;
}

.process-item:hover {
  transform: translateX(10px);
  border-color: #2563eb;
}

.process-number {
  font-size: 42px;
  font-weight: 900;
  color: rgba(37, 99, 235, 0.15); /* Faded blue number */
  line-height: 1;
}

.process-info h3 {
  margin-bottom: 10px;
  color: var(--text-color);
  font-size: 22px;
}

.process-info p {
  color: var(--text-muted);
  line-height: 1.6;
}

/* Mobile responsive for process */
@media (max-width: 768px) {
  .process-grid {
    grid-template-columns: 1fr;
  }
}

/* Tech Stack Styling */
.tech-grid {
  display: flex;
  flex-direction: column;
  gap: 50px;
  margin-top: 40px;
}

.tech-category h3 {
  font-size: 24px;
  margin-bottom: 25px;
  color: var(--text-color);
  text-align: center;
  position: relative;
}

.tech-category h3::after {
  content: "";
  display: block;
  width: 50px;
  height: 3px;
  background: #2563eb;
  margin: 10px auto 0;
  border-radius: 2px;
}

.tech-icons {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 30px;
}

.tech-item {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 10px;
  width: 100px;
  padding: 20px;
  background: var(--card-bg);
  border-radius: 15px;
  border: 1px solid var(--border-color);
  transition: all 0.3s ease;
}

.tech-item i {
  font-size: 40px;
  color: #2563eb; /* Theme Blue */
  transition: transform 0.3s ease;
}

.tech-item span {
  font-size: 14px;
  font-weight: 600;
  color: var(--text-muted);
}

.tech-item:hover {
  transform: translateY(-10px);
  border-color: #2563eb;
  box-shadow: 0 10px 25px rgba(37, 99, 235, 0.1);
}

.tech-item:hover i {
  transform: scale(1.1);
}


/* Why Choose Us Styling */
.why-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
  gap: 30px;
  margin-top: 50px;
}

.why-card {
  text-align: center;
  padding: 40px 30px;
  background: var(--card-bg);
  border-radius: 24px;
  border: 1px solid var(--border-color);
  transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

.why-icon-wrap {
  width: 70px;
  height: 70px;
  background: rgba(37, 99, 235, 0.1);
  color: #2563eb;
  border-radius: 18px;
  display: flex;
  align-items: center;
  justify-content: center;
  margin: 0 auto 25px;
  font-size: 30px;
  transition: all 0.3s ease;
}

.why-card h3 {
  font-size: 22px;
  margin-bottom: 15px;
  color: var(--text-color);
}

.why-card p {
  color: var(--text-muted);
  font-size: 15px;
  line-height: 1.6;
}

/* Hover Effects */
.why-card:hover {
  transform: translateY(-12px);
  background: #2563eb; /* Changes background to brand blue */
}

.why-card:hover .why-icon-wrap {
  background: rgba(255, 255, 255, 0.2);
  color: #ffffff;
  transform: rotate(10deg);
}

.why-card:hover h3,
.why-card:hover p {
  color: #ffffff; /* Text turns white on hover */
}

/* Work Card Specifics */
.work-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 30px;
  margin-top: 50px;
}

.work-card {
  position: relative;
  border-radius: 20px;
  overflow: hidden;
  height: 350px;
  cursor: pointer;
}

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

.work-overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(to top, rgba(15, 23, 42, 0.9), transparent);
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
  padding: 30px;
  opacity: 0;
  transform: translateY(20px);
  transition: all 0.4s ease;
}

.work-card:hover .work-overlay {
  opacity: 1;
  transform: translateY(0);
}

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

.work-overlay h3 { color: #fff; font-size: 24px; margin-bottom: 5px; }
.work-overlay p { color: rgba(255, 255, 255, 0.7); margin-bottom: 20px; }

.work-btn {
  align-self: flex-start;
  padding: 10px 20px;
  background: #2563eb;
  color: #fff;
  border: none;
  border-radius: 8px;
  font-weight: bold;
  cursor: pointer;
}

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


/* FAQ Accordion Styling */
.faq-accordion {
  max-width: 800px;
  margin: 50px auto 0;
  display: flex;
  flex-direction: column;
  gap: 15px;
}

.faq-item {
  border: 1px solid var(--border-color);
  border-radius: 12px;
  background: var(--card-bg);
  overflow: hidden;
}

.faq-question {
  width: 100%;
  padding: 20px 25px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  background: none;
  border: none;
  outline: none;
  font-size: 18px;
  font-weight: 700;
  color: var(--text-color);
  text-align: left;
  cursor: pointer;
  transition: background 0.3s ease;
}

.faq-question i {
  font-size: 14px;
  transition: transform 0.4s ease;
}

.faq-item.active .faq-question {
  background: rgba(37, 99, 235, 0.05);
  color: #2563eb;
}

.faq-item.active .faq-question i {
  transform: rotate(180deg);
}

.faq-answer {
  max-height: 0;
  overflow: hidden;
  transition: max-height 0.4s cubic-bezier(0, 1, 0, 1);
}

.faq-answer p {
  padding: 0 25px 20px;
  color: var(--text-muted);
  line-height: 1.6;
}

.faq-item.active .faq-answer {
  max-height: 1000px; /* Large enough height */
  transition: max-height 0.6s cubic-bezier(1, 0, 1, 0);
}

/* Final CTA Styling */
.it-final-cta {
  background: linear-gradient(135deg, #1e40af 0%, #2563eb 100%);
  padding: 80px 0;
  margin-top: 50px;
  color: #ffffff;
}

.cta-flex {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 40px;
}

.cta-title {
  font-size: 42px;
  font-weight: 800;
  margin-bottom: 15px;
}

.cta-text {
  font-size: 18px;
  opacity: 0.9;
  max-width: 600px;
}

.btn-white {
  background: #ffffff;
  color: #2563eb;
  padding: 16px 36px;
  font-size: 18px;
  border-radius: 12px;
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.15);
}

.btn-white:hover {
  transform: translateY(-5px);
  background: #f8fafc;
  box-shadow: 0 15px 40px rgba(0, 0, 0, 0.2);
}

/* Responsive CTA */
@media (max-width: 900px) {
  .cta-flex {
    flex-direction: column;
    text-align: center;
  }
  
  .cta-title {
    font-size: 32px;
  }
}


/* ---------------------------------------------------- */
/*                    BIOTECH PAGE                      */
/* ---------------------------------------------------- */

.bt-body {
  overflow-x: hidden;
}

/* Section 1: Hero Carousel */
.bt-hero {
  position: relative;
  height: 100vh;
  width: 100%;
  overflow: hidden;
}

.bt-carousel-slide {
  position: absolute;
  inset: 0;
  opacity: 0;
  transition: opacity 1.5s ease-in-out;
  display: flex;
  align-items: center;
  justify-content: center;
  text-align: center;
  padding: 0 20px;
}

.bt-carousel-slide.active {
  opacity: 1;
  z-index: 10;
}

.bt-slide-bg {
  position: absolute;
  inset: 0;
  z-index: -1;
  background-size: cover;
  background-position: center;
  filter: brightness(0.8);
}

.bt-slide-content {
  max-width: 900px;
  color: #fff;
}

.bt-slide-content h1 {
  font-size: clamp(3rem, 8vw, 5rem);
  font-weight: 800;
  margin-bottom: 20px;
  opacity: 0;
  transform: translateY(30px);
  transition: all 0.8s ease 0.4s;
}

.bt-slide-content p {
  font-size: clamp(1.1rem, 2.5vw, 1.5rem);
  font-weight: 300;
  opacity: 0;
  transform: translateY(20px);
  transition: all 0.8s ease 0.6s;
}

.bt-carousel-slide.active .bt-slide-content h1,
.bt-carousel-slide.active .bt-slide-content p {
  opacity: 1;
  transform: translateY(0);
}

/* Section 2: Insight Grid */
.bt-insight-section {
  padding: 100px 0;
  background: var(--bt-bg-gradient);
}

.bt-section-label {
  display: block;
  text-align: center;
  text-transform: uppercase;
  letter-spacing: 0.2em;
  font-size: 0.9rem;
  font-weight: 700;
  color: var(--bt-teal);
  margin-bottom: 12px;
}

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

.bt-card {
  position: relative;
  height: 400px;
  border-radius: 20px;
  overflow: hidden;
  background: var(--card-bg);
  border: 1px solid var(--border-color);
  box-shadow: 0 10px 30px var(--card-shadow);
  transition:
    transform 0.4s ease,
    box-shadow 0.4s ease;
  cursor: pointer;
}

.bt-card:hover {
  transform: translateY(-10px);
  box-shadow: 0 20px 40px rgba(13, 148, 136, 0.2);
}

.bt-card-bg {
  position: absolute;
  inset: 0;
  background-size: cover;
  background-position: center;
  transition: transform 0.8s ease;
}

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

.bt-card::after {
  position: absolute;
  inset: 0;
  background: linear-gradient(to top, rgba(0, 0, 0, 0.7), transparent);
}

.bt-card-content {
  position: absolute;
  bottom: 30px;
  left: 30px;
  right: 30px;
  z-index: 2;
  color: #fff;
}

/* Section 3: Infrastructure */
.bt-infra-section {
  padding: 100px 0;
  background: var(--bg-color);
}

.bt-infra-split {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 60px;
  align-items: center;
}

.bt-infra-list {
  list-style: none;
  margin-top: 30px;
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(200px, 1fr));
  gap: 20px;
}

.bt-infra-item {
  padding: 20px;
  background: var(--card-bg);
  border: 1px solid var(--border-color);
  border-radius: 12px;
  display: flex;
  align-items: center;
  gap: 15px;
  opacity: 0;
  transform: translateY(20px);
  transition: all 0.4s ease;
  box-shadow: 0 4px 6px rgba(0, 0, 0, 0.02);
  cursor: pointer;
  position: relative;
  overflow: hidden;
}

.bt-infra-item::before {
  content: "";
  position: absolute;
  left: 0;
  top: 0;
  bottom: 0;
  width: 4px;
  background: var(--bt-teal);
  opacity: 0;
  transition: opacity 0.3s ease;
}

.bt-infra-item:hover {
  transform: translateY(-5px);
  box-shadow: 0 10px 20px rgba(13, 148, 136, 0.15);
}

.bt-infra-item:hover::before {
  opacity: 1;
}

.bt-infra-item.animate {
  opacity: 1;
  transform: translateY(0);
}

.bt-infra-item {
  font-size: 1rem;
  font-weight: 600;
  color: var(--text-color);
}

.bt-infra-item i {
  color: var(--bt-teal);
  font-size: 1.2rem;
}

.bt-infra-map {
  height: 450px;
  background: var(--bt-teal-soft);
  border-radius: 24px;
  display: flex;
  align-items: center;
  justify-content: center;
  position: relative;
  overflow: hidden;
}

.bt-map-viz {
  width: 80%;
  height: 80%;
  opacity: 0.6;
  filter: grayscale(1);
}

/* Section 4: Major Crops */
.bt-crops-section {
  padding: 100px 0;
  background: var(--bt-bg-gradient);
  text-align: center;
}

.bt-crops-flex {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 40px;
  margin-top: 50px;
}

.bt-crop-item {
  background: var(--card-bg);
  padding: 30px;
  border-radius: 20px;
  width: 180px;
  box-shadow: 0 4px 15px var(--card-shadow);
  transition: transform 0.3s ease;
}

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

.bt-crop-item i {
  font-size: 2.5rem;
  color: var(--bt-teal);
  margin-bottom: 15px;
}

/* Section 5: Units Showcase */
.bt-units-section {
  padding: 100px 0;
  background: var(--bg-color);
  overflow: hidden;
}

.bt-units-carousel {
  margin-top: 50px;
  position: relative;
}

.bt-units-track {
  display: flex;
  gap: 30px;
  animation: bt-marquee 30s linear infinite;
  width: max-content;
}

@keyframes bt-marquee {
  0% {
    transform: translateX(0);
  }
  100% {
    transform: translateX(calc(-300px * 6 - 30px * 6));
  }
}

.bt-unit-card {
  width: 300px;
  background: var(--card-bg);
  padding: 25px;
  border-radius: 18px;
  border: 1px solid var(--border-color);
  text-align: center;
  box-shadow: 0 10px 20px var(--card-shadow);
}

.bt-unit-card h4 {
  color: var(--bt-teal);
}

/* Section 6: CTA */
.bt-cta {
  padding: 120px 0;
  background: var(--bt-gradient);
  color: #fff;
  text-align: center;
}

.bt-cta h2 {
  font-size: clamp(2rem, 5vw, 3.5rem);
  margin-bottom: 30px;
}

.bt-cta-btn {
  padding: 18px 45px;
  background: #fff;
  color: var(--bt-teal);
  border-radius: 50px;
  text-decoration: none;
  font-weight: 700;
  display: inline-block;
  transition: transform 0.3s ease;
}

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

/* Reveal Animation */
.bt-reveal {
  opacity: 0;
  transform: translateY(30px);
  transition: all 0.8s ease;
}

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

@media (max-width: 900px) {
  .bt-infra-split {
    grid-template-columns: 1fr;
  }
}

/* Regional Profiles Tabs */
.bt-tabs-section {
  padding: 80px 0;
  background: var(--section-bg-alt);
}

.bt-tabs-nav {
  display: flex;
  justify-content: center;
  gap: 10px;
  margin-bottom: 50px;
  flex-wrap: wrap;
}

.bt-tab-btn {
  padding: 15px 35px;
  border-radius: 50px;
  border: none;
  background: var(--card-bg);
  color: var(--text-muted);
  font-size: 1.1rem;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.3s ease;
  box-shadow: 0 4px 10px rgba(0, 0, 0, 0.05);
}

.bt-tab-btn.active,
.bt-tab-btn:hover {
  background: var(--bt-teal);
  color: #fff;
  transform: translateY(-2px);
  box-shadow: 0 10px 20px rgba(13, 148, 136, 0.2);
}

.bt-tab-panel {
  display: none;
  animation: fadeUp 0.6s ease;
}

.bt-tab-panel.active {
  display: block;
}

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

.bt-profile-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 50px;
  align-items: center;
}

.bt-profile-visual {
  height: 400px;
  border-radius: 20px;
  background-size: cover;
  background-position: center;
  position: relative;
  overflow: hidden;
  box-shadow: 0 20px 50px rgba(0, 0, 0, 0.1);
}

.bt-profile-content h3 {
  font-size: 2rem;
  margin-bottom: 25px;
  color: var(--text-color);
}

.bt-check-list {
  display: flex;
  flex-direction: column;
  gap: 15px;
}

.bt-check-item {
  display: flex;
  align-items: center;
  gap: 15px;
  padding: 15px;
  background: var(--card-bg);
  border-radius: 12px;
  transition: transform 0.2s ease;
  box-shadow: 0 2px 5px rgba(0, 0, 0, 0.03);
}

.bt-check-item:hover {
  transform: translateX(10px);
  background: #f0fdfa; /* light teal tint */
}

.bt-check-item i {
  color: var(--bt-teal);
  font-size: 1.2rem;
}

/* Enhanced Units Carousel */
.bt-units-track:hover {
  animation-play-state: paused;
}

.bt-unit-card {
  transition:
    transform 0.3s ease,
    box-shadow 0.3s ease;
  overflow: hidden;
  padding: 0; /* remove padding to let image fill */
  height: 320px;
  display: flex;
  flex-direction: column;
}

.bt-unit-img {
  height: 220px;
  width: 100%;
  background-size: cover;
  background-position: center;
  position: relative;
}

.bt-unit-img::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(to top, rgba(0, 0, 0, 0.6), transparent);
}

.bt-unit-info {
  flex: 1;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 15px;
  background: var(--card-bg);
}

.bt-unit-card:hover {
  transform: scale(1.05);
  box-shadow: 0 15px 40px rgba(0, 0, 0, 0.15);
  z-index: 10;
}

@media (max-width: 900px) {
  .bt-profile-grid {
    grid-template-columns: 1fr;
  }
}

/* ---------------------------------------------------- */
/*               MOBILE RESPONSIVE FIXES                */
/*  Should be at the bottom
/* ---------------------------------------------------- */

body {
  overflow-x: hidden; /* i don't want any horizontal scroll on mobile */
}

/* on mobile, my "full screen sections" rule causes weird centering + cutoffs */
@media (max-width: 900px) {
  .section {
    min-height: auto; /* stop forcing every section to be screen height */
    display: block; /* remove flex centering */
    padding: 70px 0; /* slightly tighter padding for mobile */
  }

  /* make sure every main wrapper actually takes full width */
  .container,
  .about-wrap,
  .services-wrap,
  .work-wrap,
  .testimonials-wrap,
  .contact-wrap {
    width: 100%;
  }

  /* navbar spacing */
  .navbar {
    padding: 5px 5px; /* smaller padding */
  }

  /* hero text sizing + padding */
  .hero-content {
    padding: 50px 18px 18px;
  }

  .hero-content h1 {
    font-size: clamp(28px, 7vw, 38px); /* auto scales */
    line-height: 1.15;
  }

  .slide {
    font-size: 16px;
  }

  /* make buttons look better on mobile */
  .btn {
    width: min(260px, 92%);
    text-align: center;
  }

  /* bridge should stay compact */
  .bridge {
    padding: 22px 16px 26px;
  }

  .bridge .section-title {
    font-size: 30px;
  }

  /* contact section: force clean stacking */
  .contact-grid {
    grid-template-columns: 1fr !important;
    gap: 26px;
    width: 100%;
  }

  .contact-info {
    text-align: center;
  }

  .contact-form-card {
    width: 100%;
  }
}

/* smaller phones */
@media (max-width: 600px) {
  .hero-content {
    padding: 5px 0px 0px 0px;
  }

  .hero-action {
    padding: 16px;
  }

  .work-img {
    height: 100%;
    width: 100%;
  }
}


/* Clients Section Styling */
.clients-grid {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  align-items: center;
  gap: 60px;
  margin-top: 50px;
}

.client-logo {
  flex: 0 1 180px; /* Logos won't grow too large */
  text-align: center;
  filter: grayscale(100%); /* Elegant grayscale by default */
  opacity: 0.6;
  transition: all 0.4s ease;
}

.client-logo img {
  max-width: 100%;
  height: auto;
  max-height: 60px; /* Keeps all logos uniform in height */
  object-fit: contain;
}

.client-logo:hover {
  filter: grayscale(0%); /* Full color on hover */
  opacity: 1;
  transform: scale(1.05);
}

/* Mobile responsive layout */
@media (max-width: 768px) {
  .clients-grid {
    gap: 30px;
  }
  .client-logo {
    flex: 0 1 120px;
  }
}

.floating-cta {
  position: fixed;
  bottom: 25px;
  left: 5px; /* Bottom left as requested */
  display: flex;
  flex-direction: column;
  gap: 8px;
  z-index: 999;
  opacity: 0.6;
  /* pointer-events: none; */
  transform: translateY(20px);
  transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
}

/* Class to trigger visibility */
.floating-cta.visible {
  opacity: 1;
  pointer-events: auto;
  transform: translateY(0);
}

.f-btn {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 12px 18px;
  border-radius: 50px;
  text-decoration: none;
  color: white;
  font-weight: bold;
  font-size: 14px;
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.2);
  transition: transform 0.2s ease;
}

.f-btn:hover {
  transform: scale(1.05) translateX(5px);
}

/* Colors matching your brand */
.f-it { background: linear-gradient(135deg, #1e3a8a, #2563eb); }
.f-bt { background: linear-gradient(135deg, #15803d, #22c55e); }

/* Move them up slightly if they overlap with your theme toggle on mobile */
@media (max-width: 600px) {
  .floating-cta {
    bottom: 85px; /* Adjust if needed */
  }
}


/* Social Media Section */
.social-section {
  padding: 40px 0;
  background: var(--bg-color);
  border-top: 1px solid var(--border-color);
  text-align: center;
}

.social-links {
  display: flex;
  justify-content: center;
  gap: 25px;
  flex-wrap: wrap;
}

.social-icon {
  width: 50px;
  height: 50px;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 50%;
  background: var(--section-bg-alt);
  color: var(--text-muted);
  font-size: 20px;
  text-decoration: none;
  transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
  border: 1px solid var(--border-color);
}

/* Brand Colors on Hover */
.social-icon.whatsapp:hover { background: #25D366; color: white; border-color: #25D366; }
.social-icon.facebook:hover { background: #1877F2; color: white; border-color: #1877F2; }
.social-icon.instagram:hover { background: radial-gradient(circle at 30% 107%, #fdf497 0%, #fdf497 5%, #fd5949 45%,#d6249f 60%,#285AEB 90%); color: white; border-color: transparent; }
.social-icon.linkedin:hover { background: #0077B5; color: white; border-color: #0077B5; }
.social-icon.youtube:hover { background: #FF0000; color: white; border-color: #FF0000; }
.social-icon.x-twitter:hover { background: #000000; color: white; border-color: #000000; }

.social-icon:hover {
  transform: translateY(-5px);
  box-shadow: 0 10px 20px rgba(0, 0, 0, 0.1);
}