@import url("https://fonts.googleapis.com/css2?family=Roboto:ital,wght@0,100..900;1,100..900&display=swap");

@import url("https://fonts.googleapis.com/css2?family=Poppins:wght@300;400;500;600;700;800;900&display=swap");

:root {
  --background: rgb(17, 19, 23);
  /* --primary: 207, 61%, 40%; */
  /* --primary: hsl(207, 61%, 60%); */

  --primary: hsl(217, 91%, 60%);
  --primary-raw: 217, 91%, 60%;

  --primary2: hsl(220, 85%, 60%);

  --primary-foreground: hsl(0, 0%, 98%);

  --primary2-mid: hsl(220, 85%, 45%);

  --card-icon_bk-color: hsla(207, 61%, 60%, 0.1);

  --card-border: hsl(222 15% 16% / 1);

  --color-border: hsl(220, 10%, 22%);

  --font-sans: "Inter", system-ui, -apple-system, sans-serif;

  --header-background: rgba(24, 27, 34, 0.9);

  --body-background-color: hsl(220, 15%, 10%);

  /* --body-background-color: hsl(222 15% 8% / 1); */

  --muted-foreground: hsl(0, 0%, 70%);
  --opaque-button-border-intensity: -8;

  --border-color: hsl(217.2, 90.1%, 68.4%);

  --card-color: hsl(222 15% 10% / 1);
  --neon-blue: rgba(59, 130, 246, 0.8);

  --glow-primary: rgba(56, 189, 248, 0.7);
  --glow-secondary: rgba(94, 234, 212, 0.6);
  --neon-pink: rgba(236, 72, 153, 0.8);
  --neon-blue: rgba(59, 130, 246, 0.8);
  --neon-green: rgba(16, 185, 129, 0.8);

  --elevate-1: rgba(0, 0, 0, 0.03);

  --button-hover: #0056b3;

  --color-surface: hsl(220, 12%, 14%);

  /* hsl(222 15% 18% / 1) */
}
* {
  padding: 0px;
  margin: 0px;
  box-sizing: border-box;
  /* font-family: "Poppins", sans-serif; */
  /* font-family: "Roboto", sans-serif; */
  font-family: "Inter", system-ui, -apple-system, sans-serif;
}

body {
  background-color: var(--body-background-color);
}

body {
  overflow-x: hidden; /* prevent horizontal scroll */
}

html {
  scroll-behavior: smooth;
  scroll-padding-top: 80px; /* adjust to your header height */
}

/* THEME toggle starts */

.theme-toggle {
  background-color: transparent;
  border: none;
  color: var(--primary-foreground);
  transition-duration: 0.15s;
  display: grid;
  place-items: center;
}

.theme-toggle:hover {
  color: var(--primary2);
}

/* Hide the moon by default (in light mode) */
.theme-toggle .moon-icon {
  display: none;
}

/* When dark mode is active, swap visibility */
[data-theme="dark"] .theme-toggle .sun-icon {
  display: none;
}

[data-theme="dark"] .theme-toggle .moon-icon {
  display: inline;
}

/* THEME toggle ends */

.card-wrapper {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 2rem;
}

.card {
  position: relative;
  overflow: hidden;
  border-width: 1px;
  border-radius: 0.75rem;
  cursor: pointer;
  height: 400px;

  transition-duration: 0.3s;

  transition-property: all;
  transition-timing-function: cubic-bezier(0.4, 0, 0.2, 1);

  border: var(--card-border);
}

.card:hover {
  transform: translateY(-0.5rem);
  box-shadow: 0 8px 16px rgba(0, 0, 0, 0.2); /* Larger, more prominent shadow */
}

.card-img {
  position: absolute;
  background-size: cover;
  background-position: center;

  top: 0;
  right: 0;
  bottom: 0;
  left: 0;

  transition-property: transform;
  transition-timing-function: cubic-bezier(0.4, 0, 0.2, 1);
  transition-duration: 300ms;
}

.fill-gradient {
  position: absolute;

  top: 0;
  right: 0;
  bottom: 0;
  left: 0;

  background-image: linear-gradient(
    to top,
    var(--background),
    rgba(17, 19, 23, 0.8),
    rgba(17, 19, 23, 0.4)
  );
}

.card:hover .fill-gradient {
  background-image: linear-gradient(
    to top,
    var(--background),
    rgba(26, 27, 29, 0.8),
    rgba(48, 49, 53, 0.4)
  );
}

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

.card-content {
  position: relative;
  padding: 2rem;
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
  height: 100%;
}

.card-heading {
  margin-bottom: 0.75rem;
  font-size: 1.5rem;
  line-height: 2rem;
  font-weight: 600;
  color: white;
}

.header-wrapper {
  /* background-color: var(--header-background); */

  position: sticky;
  top: 0;
  z-index: 50;
  /* background-color: rgba(255, 255, 255, 0.9); */
  backdrop-filter: blur(12px);
  border-bottom: 1px solid var(--color-border);
  /* transition: background-color var(--transition-slow); */
}

.header {
  height: 4rem;
  display: flex;
  align-items: center;
  justify-content: space-between;
  background-color: rgba(24, 27, 34, 0.8);
  padding-left: 2rem;
  padding-right: 2rem;
  /* margin-top: 6px; */
}

.header-right {
  display: flex;
  gap: 2rem;
  align-items: center;
  /* margin-top: 4px; */
  overflow-x: hidden;
}

.header-right a {
  text-decoration: none;
  color: white;

  transition-property: color, background-color, border-color,
    text-decoration-color, fill, stroke;
  transition-timing-function: cubic-bezier(0.4, 0, 0.2, 1);
  transition-duration: 0.15s;
}

.header-right a:hover {
  color: var(--primary2);
}

.header-left .logo {
  display: flex;
  align-items: center;
  color: var(--primary2);
  text-decoration: none;
}

/* --- Responsive --- */
.menu-toggle {
  display: none;
  background: none;
  border: none;
  color: inherit;
  cursor: pointer;
}

.services-div {
  padding: 2rem;
}

.our-services {
  color: var(--primary-foreground);
  margin-bottom: 4rem;
}

.our-services h1 {
  text-align: center;
  margin-bottom: 1rem;
  font-size: 2.25rem;
  line-height: 2.5rem;
  font-weight: 700;
}

.our-services h3 {
  text-align: center;
  color: var(--muted-foreground);
  font-weight: 400;
}

.card-icon {
  padding: 1rem;
  margin-bottom: 1rem;
  border-radius: 0.375rem;
  width: fit-content;
  backdrop-filter: blur(4px);
  color: var(--primary);
  height: 64px;
  width: 64px;
  /* background-color: hsl(var(--primary) / 0.1); */

  /* background-color: rgba(var(--primary), 0.6); */
  background-color: var(--card-icon_bk-color); /* Adds 50% opacity */

  width: fit-content;
}

.card-svg {
  width: 2rem;
  height: 2rem;
  margin-left: 0.25rem;
}

.card-link-svg {
  margin-left: 0.25rem;
  width: 1rem;
  height: 1rem;
}

.card-description p {
  color: rgb(199, 199, 199);
  margin-bottom: 1rem;
}

.card-link {
  color: var(--primary);
  display: flex;
  align-items: center;
  font-weight: 500;
}

.card-link-arrow {
  color: var(--primary);
  width: 1rem;
  height: 1rem;

  transition-property: transform;
  transition-timing-function: cubic-bezier(0.4, 0, 0.2, 1);
  transition-duration: 0.15s;
}

.card:hover .card-link-arrow {
  transform: translateX(0.5rem);
}

.company-name {
  margin-left: 0.5rem;
  color: var(--primary-foreground);
  font-size: 1.25rem;
  font-weight: 700;

  transition-property: color, background-color, border-color,
    text-decoration-color, fill, stroke;
  transition-timing-function: cubic-bezier(0.4, 0, 0.2, 1);
  transition-duration: 0.15s;
}

.company-name:hover {
  color: var(--primary2);
}

.hero {
  position: relative;
  height: 100vh;
  width: 100%;
  background-image: url("/images/feature/Dark_tech_hero_background_c1a8b9f8-1200w.webp");
  /* background-image: url("./images/hero.jpg"); */
  background-repeat: no-repeat;
  background-size: cover; /* ✅ fills area, keeps aspect ratio */
  background-position: center; /* ✅ centers image nicely */
}

.line-1 {
  font-size: 3.75rem;
  line-height: 1;
  color: white;
  letter-spacing: -0.025em;
  font-weight: 700;
  z-index: 100;
  font-family: "Poppins", sans-serif;
}

.line-2 {
  font-size: 3.75rem;
  line-height: 1;
  /* color: white; */
  letter-spacing: -0.025em;
  font-weight: 700;
  z-index: 100;
  font-family: "Poppins", sans-serif;
  color: transparent;
  animation: pulse 2s cubic-bezier(0.4, 0, 0.6, 1) infinite;
  background-clip: text;
  margin-bottom: 1.5rem;
  background-image: linear-gradient(
    to right,
    hsl(218, 87%, 60%),
    hsl(218, 87%, 60%),
    hsl(266, 72%, 67%),
    hsl(218, 87%, 60%),
    hsl(218, 87%, 60%)
  );
}

@keyframes pulse {
  50% {
    opacity: 0.5;
  }
}

.line-3 {
  font-size: 1.25rem;
  line-height: 1.75rem;
  font-family: "Poppins", sans-serif;
  /* color: var(--muted-foreground); */
  color: rgb(199, 198, 198);
  max-width: 48rem;
  margin-left: auto;
  margin-right: auto;
  margin-bottom: 3rem;
}

.hero-buttons {
  display: flex;
  flex-direction: column;
  gap: 1rem;
  justify-content: center;
  align-items: center;
}

@media (min-width: 640px) {
  .hero-buttons {
    flex-direction: row;
  }
}

.add_6rem_gap > * + * {
  margin-top: 6rem;
}

.hero-get-quote-button {
  position: relative;
  z-index: 0;
  color: var(--primary-foreground);
  font-weight: 500;
  font-size: 0.875rem;
  line-height: 1.25rem;
  padding-left: 2rem;
  padding-right: 2rem;
  background-color: var(--primary);
  border-radius: 0.375rem;
  border-width: 1px;
  min-height: 2.5rem;
  cursor: pointer;
  min-width: 200px;
  border-color: var(--border-color);
}

.hero-get-quote-button:hover {
  background-color: var(--button-hover);
}

.float_button {
  animation: float 3s ease-in-out infinite;
}

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

.hero-view-services-button {
  position: relative;
  z-index: 0;
  color: var(--primary-foreground);
  font-weight: 500;
  font-size: 0.875rem;
  line-height: 1.25rem;
  padding-left: 2rem;
  padding-right: 2rem;
  /* background-color: var(--body-background-color); */
  /* background-color: hsla(var(--body-background-color), 0.9); */
  background-color: color-mix(
    in srgb,
    var(--body-background-color),
    transparent 30%
  );

  border-radius: 0.375rem;
  border-width: 1px;
  min-height: 2.5rem;
  cursor: pointer;
  min-width: 200px;
  border-color: rgba(255, 255, 255, 0.1);
  backdrop-filter: blur(24px);
}

.hero-view-services-button:hover {
  background-color: color-mix(
    in srgb,
    var(--body-background-color),
    transparent 80%
  );
}

.hero-content {
  position: relative;
  z-index: 10;
  padding-left: 1rem;
  padding-right: 1rem;
  padding-top: 8rem;
  padding-bottom: 8rem;
  /* max-width: 80rem; */
  text-align: center;
}

.hero-fill-gradient {
  position: absolute;

  top: 0;
  right: 0;
  bottom: 0;
  left: 0;

  /* background-image: linear-gradient(
    to top,
    var(--background),
    rgba(17, 19, 23, 0.8),
    rgba(17, 19, 23, 0.4)
  ); */

  background-image: radial-gradient(
    circle,
    rgba(17, 19, 23, 0.4),
    var(--background) /* rgba(17, 19, 23, 0.8), */
  );
}

button.arrow-down-hero-button {
  position: absolute;
  bottom: 1rem;
  left: 50%;

  /* transition-property: color, background-color, border-color, */
  /* text-decoration-color, fill, stroke; */
  transition-timing-function: cubic-bezier(0.4, 0, 0.2, 1);
  transition-duration: 0.15s;
  animation: bounce 1s infinite;
  background-color: transparent;
  border: none;
  color: var(--primary-foreground);
  cursor: pointer;
}

@keyframes bounce {
  0%,
  100% {
    transform: translateY(-25%);
    /* animationtimingfunction: cubic-bezier(0.8, 0, 1, 1); */
  }
  50% {
    transform: translateY(0);
    /* animationtimingfunction: cubic-bezier(0, 0, 0.2, 1); */
  }
}
button.arrow-down-hero-button svg {
  width: 2rem;
  height: 2rem;
}

.about-wrapper {
  padding-left: 2rem;
  padding-right: 2rem;
  padding-top: 6rem;
  padding-bottom: 6rem;
}

.about {
  max-width: 80rem;
  margin-left: auto;
  margin-right: auto;
}

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

.service-detail {
  display: flex;
  gap: 3rem;
  align-items: center;
  width: 100%;
  padding-top: 4rem;
  padding-bottom: 4rem;
}

.service-detail-image-inline {
  display: none;
  width: 100%;
  overflow: hidden;
  margin-bottom: 1rem;
}

.service-detail-image-inline > img {
  object-fit: cover;
  width: 100%;
}

.service-detail-image {
  width: 50%;
  overflow: hidden;
}

.service-detail-image:hover > img {
  transform: scale(1.05);
}

.service-detail-image img {
  object-fit: cover;
  width: 100%;
  transition-duration: 0.3s;
  transition-property: all;
  transition-timing-function: cubic-bezier(0.4, 0, 0.2, 1);
}

.service-detail-content {
  width: 50%;
}

.service-detail-head {
  display: flex;
  align-items: center;
  gap: 1rem;
}

.service-detail-head > .card-heading {
  font-size: 2.5rem;
  line-height: 1.1;
}

.service-detail-text p {
  color: var(--muted-foreground);
  font-size: 1.2rem;
  margin-bottom: 2rem;
}

.service-detail-items {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  margin-bottom: 1rem;
}

.sd-item {
  display: flex;
  gap: 1rem;
  align-items: center;
  margin-bottom: 1rem;
}

.check-icon {
  /* background-color: hsl(var(--primary-raw) / 0.1); */

  border-radius: 9999px;
  padding: 0.25rem;
  height: 24px;
  width: 24px;
  display: grid;
  place-content: center;
  background-color: color-mix(in srgb, var(--primary), transparent 90%);
}

.check-icon svg {
  color: var(--primary);
  height: 16px;
  width: 16px;
}

.check-text {
  color: var(--primary-foreground);
}

.footer {
  background-color: var(--card-color);
  border-top: 1px solid var(--color-border);
}

.footer-content {
  max-width: 80rem;
  margin-left: auto;
  margin-right: auto;
  padding: 0 1rem; /* optional, for spacing on small screens */
}

.footer-banner {
  padding-top: 4rem;

  display: grid;
  /* grid-template-columns: repeat(5, minmax(0, 1fr)); */
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 2rem;
  color: var(--muted-foreground);
  padding-bottom: 4rem;
}

/* .footer-banner > div {
  background: rgba(255, 255, 255, 0.1);
  padding: 1rem;
  border-radius: 8px;
} */

.footer-banner h3 {
  color: var(--primary);
  margin-bottom: 1rem;
  font-weight: 600;
}
.footer-banner h4 {
  color: var(--primary-foreground);
  margin-bottom: 1rem;
  font-weight: 600;
}

.footer-banner ul {
  list-style: none;
}
.footer-banner ul li {
  margin-bottom: 0.5rem;
}

.footer-banner svg {
  color: var(--primary);
  width: 16px;
  height: 16px;
}

.banner-contact li {
  display: flex;
  gap: 0.5rem;
  text-align: left;
}

.footer-links {
  display: flex;
  justify-content: space-between;
  color: var(--muted-foreground);
  border-top: 1px solid var(--color-border);
  /* border-top: 1px solid white; */
  padding-top: 2rem;
  padding-bottom: 4rem;
}

.footer-links p {
  font-size: 14px;
}

.socials {
  display: flex;
  gap: 1rem;
}

.socials a {
  text-decoration: none;
  color: var(--muted-foreground);
}

.socials svg {
  width: 20px;
  height: 20px;
}

.hero2 {
  position: relative;
  height: 50vh;
  width: 100%;
  background-image: url("/images/feature/Dark_tech_hero_background_c1a8b9f8-1200w.webp");
  /* background-image: url("./images/hero.jpg"); */
  background-repeat: no-repeat;
  background-size: cover; /* ✅ fills area, keeps aspect ratio */
  background-position: center; /* ✅ centers image nicely */
}

/* .hero2-image img {
  width: 100%;
  height: 50%;
  object-fit: cover;
  display: block;
} */

/* Carousel Overlay */
.hero2-carousel {
  position: absolute;
  inset: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 5;
  overflow: hidden;
}

/* Base style for slides */
.carousel-slide {
  position: absolute;
  top: 50%;
  left: 50%;
  width: 30%; /*sets width of the carousel */
  /* max-width: 250px; */
  transform: translate(-50%, -50%) translateX(100%);
  transition: transform 1s ease-in-out, opacity 1s ease-in-out,
    left 1s ease-in-out;
  opacity: 0;
  z-index: 1;
}

.carousel-slide img {
  width: 100%;
  border-radius: 12px;
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.4);
  border: 3px solid rgba(255, 255, 255, 0.2);
}

/* Active (centered) slide */
.carousel-slide.active {
  transform: translate(-50%, -50%) translateX(0);
  opacity: 1;
  z-index: 2;
  left: 50%;
}

.carousel-slide.exit-left {
  transform: translate(-50%, -50%) translateX(-100%);
  opacity: 0;
  z-index: 1;
  left: 0%;
}

.carousel-slide.exit-right {
  transform: translate(-50%, -50%) translateX(100%);
  opacity: 0;
  z-index: 1;
  left: 100%;
}

.carousel-slide.enter-right {
  transform: translate(-50%, -50%) translateX(0);
  opacity: 1;
  z-index: 2;
  left: 100%;
}

.carousel-slide.enter-left {
  transform: translate(-50%, -50%) translateX(0);
  opacity: 1;
  z-index: 2;
  left: 0%;
}

/* Futuristic navigation buttons */
.carousel-button {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  background: rgba(12, 74, 110, 0.3);
  color: #38bdf8;
  border: 1px solid rgba(14, 165, 233, 0.4);
  border-radius: 50%;
  width: 48px;
  height: 48px;
  display: flex;
  justify-content: center;
  align-items: center;
  cursor: pointer;
  z-index: 20;
  transition: all 0.3s ease;
  /* backdrop-filter: blur(5px); */
  box-shadow: 0 0 15px rgba(56, 189, 248, 0.2);
}

.carousel-button:hover {
  background-color: rgba(14, 165, 233, 0.3);
  color: #e0f2fe;
  transform: translateY(-50%) scale(1.1);
  box-shadow: 0 0 20px rgba(56, 189, 248, 0.4);
}

.carousel-button:active {
  transform: translateY(-50%) scale(0.95);
}

/* Button hover effect */
.carousel-button::before {
  content: "";
  position: absolute;
  inset: -2px;
  background: radial-gradient(circle, var(--neon-blue), transparent 70%);
  border-radius: 50%;
  opacity: 0;
  z-index: -1;
  transition: opacity 0.3s ease;
}

.carousel-button:hover::before {
  opacity: 0.7;
  animation: pulseGlow 2s infinite;
}

.carousel-button.prev {
  right: 30px;
}

.carousel-button.next {
  left: 30px;
}

/* Indicator dots */
.carousel-indicators {
  position: absolute;
  /* top: 85%; */
  bottom: 10%;
  display: flex;
  justify-content: center;
  gap: 10px;
  margin-top: 2rem;
  z-index: 100;
}

.indicator {
  width: 24px;
  height: 4px;
  background: rgba(56, 189, 248, 0.2);
  border-radius: 2px;
  cursor: pointer;
  transition: all 0.3s ease;
}

.indicator.active {
  background: #38bdf8;
  box-shadow: 0 0 10px #38bdf8;
}

.carousel-slide-title {
  text-align: center;
  color: var(--main-bg-light-color);
  font-size: 2rem;
  font-weight: 500;
}

.carousel-card {
  /* min-width: 320px;
  max-width: 320px; */
  margin: 0 25px;
  background: linear-gradient(
    135deg,
    rgba(30, 41, 59, 0.85),
    rgba(15, 23, 42, 0.9)
  );
  border-radius: 5px;
  overflow: hidden;
  /* backdrop-filter: blur(10px); */
  box-shadow: 0 15px 25px rgba(0, 0, 0, 0.5), 0 0 30px rgba(56, 189, 248, 0.2);
  transition: all 0.6s cubic-bezier(0.21, 0.61, 0.35, 1);
  transform-origin: center center;
  position: relative;
  border: 1px solid rgba(94, 234, 212, 0.2);
}

.card-image-container {
  position: relative;
  height: 150px;
  overflow: hidden;
  border-bottom: 1px solid rgba(94, 234, 212, 0.3);
}

.card-image {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 1.5s ease;
}

.carousel-card.is-active .card-image {
  transform: scale(1.05);
}

.carousel-card.is-active {
  transform: scale(1) rotateY(0) translateZ(0);
  opacity: 1;
  z-index: 20;
  box-shadow: 0 25px 50px rgba(0, 0, 0, 0.5), 0 0 40px var(--glow-primary),
    inset 0 0 20px rgba(56, 189, 248, 0.1);
  filter: saturate(1.2) brightness(1.1);
}

.card-content {
  padding: 1rem;
  color: #f1f5f9;
}

.card-title {
  /* font-family: "Orbitron", sans-serif; */
  /* margin-bottom: 0.75rem; */
  letter-spacing: 1px;
  /* position: relative;
  display: inline-block; */
}

.card-progress {
  height: 3px;
  background: rgba(56, 189, 248, 0.15);
  margin-top: 0.5rem;
  position: relative;
  border-radius: 4px;
  overflow: hidden;
}

.progress-value {
  position: absolute;
  height: 100%;
  background: linear-gradient(90deg, var(--neon-blue), var(--neon-green));
  border-radius: 4px;
  width: 75%;
}

.category-wrapper {
  display: grid;
  /* grid-template-columns: repeat(3, minmax(0, 1fr)); */
  grid-template-columns: repeat(3, 1fr);
  gap: 2rem;
  /* max-width: 64rem; */
  max-width: 70rem;
  margin: 0 auto;
  margin-top: 1rem;
}

/* .category-image {
  width: 100%;
  aspect-ratio: 16 / 9;
  object-fit: cover;
} */

.category-image img {
  width: 100%;
  aspect-ratio: 16 / 9;
  object-fit: cover;
}

.category-card-link {
  border-radius: 1rem;
  overflow: hidden;

  border: 1px solid var(--color-border);

  transition: all 200ms ease;
  text-decoration: none;
  color: var(--primary-foreground);

  position: relative;
}

.category-card-link:hover {
  /* box-shadow: var(--shadow-md); */
  transform: translateY(-6px);
}

.category-heading {
  color: var(--primary-foreground);
  max-width: 40rem;
  margin: 0 auto;
  margin-top: 4rem;
}

.category-heading-icon {
  display: grid;
  place-items: center;
  color: var(--primary);
  margin-bottom: 1rem;
}

.category-heading-icon svg {
  height: 40px;
  width: 40px;
}

.category-heading-title {
  text-align: center;
  font-size: 3rem;
  font-weight: 700;
  margin-bottom: 1rem;
}

.category-heading-description {
  text-align: center;
  font-size: 1.125rem;
  color: var(--muted-foreground);
  margin-bottom: 4rem;
  line-height: 1.6;
}

.category-topic h2 {
  font-size: 1.5rem;
  font-weight: 600;
  line-height: 1.6;
}

.category-heading-content {
  padding: 1.5rem;
  margin-bottom: 1.5rem;
}

.category-heading-content-text {
  color: var(--muted-foreground);
  font-size: 1rem;
  line-height: 1.6;
}

.category-heading-content-badge {
  display: inline-block;
  padding: 0.25rem 0.75rem;
  font-size: 0.875rem;
  font-weight: 500;
  border-radius: 9999px;
  background-color: var(--body-background-color);
  color: var(--primary-foreground);
  border: 1px solid var(--color-border);
  line-height: 1.6;

  position: absolute;
  bottom: 1rem;
  right: 1rem;
}

/* .breadcrumbs {
  display: flex;
  flex-wrap: wrap;
  margin-bottom: -1rem;

  max-width: 80rem;
  margin-left: auto;
  margin-right: auto;
  margin-top: 2rem;
} */

.breadcrumbs {
  display: flex;
  flex-wrap: wrap;
  margin-bottom: -1rem;
  margin-top: 2rem;
  margin-left: 1rem;
}

.breadcrumbs ul {
  display: flex;
  flex-wrap: wrap;
  list-style: none;
  padding: 0;
  font-size: 0.9rem;
  /* color: var(--primary-foreground); */
}

.breadcrumbs li + li::before {
  content: ">";
  /* content: "/"; */
  margin: 0 0.5rem;
  color: var(--primary);
}

.breadcrumbs a {
  text-decoration: none;
  /* color: var(--main-bg-light-color); */
  color: var(--primary-foreground);
}

.breadcrumbs a:hover {
  text-decoration: underline;
  color: var(--primary);
}

.main {
  margin-bottom: 8rem;
}

.topic-head-listing {
  display: flex;
  justify-content: center;
  font-size: 2.5rem;
  color: var(--primary-foreground);
  padding-bottom: 0.5em;
  margin-top: 0.5em;
  margin-bottom: 1rem;
  /* border-bottom: 1px solid var(--color-border); */
}

.blog-cards {
  display: grid;
  place-content: center;
  gap: 1rem;
  margin-left: 1rem;
  margin-right: 1rem;
}

.article-card-link {
  border-radius: 1rem;
  overflow: hidden;
  border: 1px solid var(--color-border);
  transition: all 200ms ease;
  text-decoration: none;
  color: var(--primary-foreground);
  background-color: var(--color-surface);
  position: relative;
  max-width: 500px;
}

.article-card-link:hover {
  transform: scale(1.05);
}

.article-card {
  display: flex;
  flex-direction: column;

  gap: 1rem;

  background-color: var(--main-bg-light-color);
  /* margin: 1rem; */
  padding: 1rem;
  width: 100%;
  border-radius: 10px;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.3);
  color: var(--main-bg-color);
}

.article-card h2 {
  /* border-bottom: 1px solid var(--main-bg-color); */
  text-decoration: underline;
}

.card-link {
  text-decoration: none;
}

.article-card-image {
  width: 200px;
  margin-right: auto;
  margin-left: auto;
  border-radius: 10px;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.2);
  background-color: var(--primary-foreground);
  padding: 0.25rem;
  /* transition: all 200ms ease; */
}

figcaption {
  text-align: center;
}

.pagination-container {
  position: relative;
  width: 100%;
  display: flex;
  align-items: center;
  justify-content: center;
}

.pagination {
  margin: 1rem;
  padding: 1rem;
  position: relative;
  height: 60px;

  background: rgba(255, 255, 255, 0.05);
  box-shadow: 5px 5px 30px rgba(0, 0, 0, 0.3);
  display: flex;
  align-items: center;
  justify-content: center;
  /* backdrop-filter: blur(3px); */
  border-radius: 5px;
}
.pagination li {
  list-style-type: none;
  display: inline-block;
}
.pagination li a {
  position: relative;
  padding: 20px 25px;
  text-decoration: none;
  color: #fff;
  font-weight: 500;
}
.pagination li a:hover,
.pagination li.pagination-active a {
  background: rgba(255, 255, 255, 0.2);
  border-radius: 5px;
}

.article-meta {
  display: flex;
  align-items: center;
  justify-content: end;
  gap: 0.75rem;
  margin-bottom: 0.75rem;
  font-size: 0.875rem;
  color: var(--muted-foreground);
}

.article-meta-badge {
  display: inline-block;
  padding: 0.25rem 0.75rem;
  font-size: 0.875rem;
  font-weight: 500;
  border-radius: 9999px;
  background-color: var(--body-background-color);
  color: var(--muted-foreground);
  /* color: var(--primary); */
  border: 1px solid var(--color-border);
  line-height: 1.6;
}

.topic {
  border-radius: 5px;
  padding: 2rem;
  background-color: var(--main-bg-light-color);
  margin: 2em;
  box-shadow: 0 4px 10px hsl(var(--main-bg-color) / 0.9);
  max-width: 70rem;
  margin-left: auto;
  margin-right: auto;
}

.topic-container {
  display: flex;
  justify-content: center;
  gap: 2rem; /* Optional spacing between cards */
  align-items: top;
}

.topic-head {
  display: flex;
  justify-content: center;
  align-items: center;
  font-size: 2.5rem;
  font-weight: 500;

  color: var(--primary-foreground);
  padding-bottom: 0.5em;
  margin-bottom: 0.5em;
  /* border-bottom: 1px solid var(--primary); */
  border-bottom: 1px solid var(--color-border);
}

.topic-head span {
  margin-left: 7px;
  font-size: 1.5rem;
  /* font-weight: 100; */
}

.article-content {
  /* flex: 3;  */
  min-width: 300px;
  padding-left: 1rem;
  padding-right: 1rem;
  color: var(--muted-foreground);
  line-height: 1.6;
  font-size: 1.1rem;
}

.circuit-sub-title {
  font-size: 1.7rem;
  font-weight: 500;
  color: var(--main-bg-color);
  margin-top: 1rem;
  /* text-decoration: underline;
  text-decoration-color: var(--primary);
  text-underline-offset: 4px;  */

  display: inline-block;
  border-bottom: 1px solid var(--primary);
  /* padding-bottom: 2px;  */
}

.article-content p {
  margin-top: 20px;
}

.center_align_image {
  display: grid;
  place-content: center;
  margin: 1rem;
}

.center_align_image img {
  border-radius: 10px;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.2);
  position: relative;
  width: 100%;
  height: auto;
  background-color: var(--primary-foreground);
}

/* .center_align_image_nb {
  display: flex;
  place-content: center;
  margin: 1rem;
}
  */

.center_align_image_nb {
  /* width: 100%; */
  overflow: hidden; /* Prevent image from overflowing on small screens */
  text-align: center; /* Optional: center image if it's smaller */
  margin: 1rem;
}

.center_align_image_nb img {
  width: auto;
  max-width: none;
  border-radius: 10px;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.2);
}

.no-stretch-image {
  display: grid;
  /* place-content: center; */
  justify-content: center;
}

.center_align_image table th,
td {
  padding: 0.5rem;
}

ol.points {
  margin-left: 1rem;
}

.myanswers {
  display: grid;
  place-content: center;
  background-color: var(--main-bg-color);
  border-radius: 10px;
  padding-top: 1rem;
  padding-bottom: 1rem;
  color: var(--main-bg-light-color);
}

.center_align_image_nb i {
  color: var(--main-bg-color);
  font-size: 1.5rem;
}

.article-content ol li {
  margin: 1rem;
}

.component_req_style ul {
  list-style-type: square;
}

.component_req_style > li::marker {
  color: var(--primary);
  /* font-weight: bold; 
  font-size: 1.3rem;  */
}

pre {
  font-family: Consolas, monospace;
  margin-top: 1rem;
}

.publish-date {
  /* style="display: flex; align-items: center; gap: 0.25rem;" */
  display: flex;
  align-items: center;
  gap: 0.25rem;
}

.publish-date svg {
  color: var(--primary);
}

.quote-button-div {
  display: flex;
  justify-content: center;
  margin-top: 1rem;
}

.quote-button {
  background-color: var(--main-bg-color);
  border: none;
  color: white;
  padding: 15px 40px;
  text-align: center;
  text-decoration: none;
  display: inline-block;
  font-size: 1rem;
  cursor: pointer;
  border-radius: 4px;
  box-shadow: 0 8px 16px 0 rgba(0, 0, 0, 0.6);
}

.quote-button:hover {
  background-color: var(--hero-text-color);
}

.form-body {
  max-width: 50rem;
  margin-left: auto;
  margin-right: auto;
  color: var(--primary-foreground);
  border: 1px solid var(--color-border);
  padding: 2rem;
  border-radius: 10px;
}

.form-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1rem;
  margin-bottom: 1em;
}

.one-col-element {
  display: flex;
  flex-direction: column;
}

.two-col-element {
  grid-column: span 2;
}

input,
select,
textarea {
  padding: 0.5rem;
  font-size: 1rem;
  border-radius: 5px;
}

.heading {
  font-weight: bold;
  font-size: 2rem;
  /* margin-top: 0.5rem; */
  margin-bottom: 1rem;
  text-align: center;
  /* color: var(--main-bg-color); */
}

/* .file-type {
  border: 2px solid var(--main-bg-color);
} */

input,
textarea {
  /* outline: 1px solid grey; */
  /* border: 2px solid transparent; */
  border: 1px solid var(--color-border);
  background-color: var(--body-background-color);
  color: var(--primary-foreground);
}

input:focus,
textarea:focus {
  outline: none;

  /* outline: transparent; */
  /* border: 2px solid var(--primary); */
  border-color: var(--primary);
}

input::placeholder,
textarea::placeholder {
  opacity: 0.5;
  /* font-style: italic; */
}

/* For Chrome, Safari, Edge, and Opera */
input[type="number"]::-webkit-inner-spin-button,
input[type="number"]::-webkit-outer-spin-button {
  -webkit-appearance: none;
  margin: 0;
}

/* For Firefox */
input[type="number"] {
  -moz-appearance: textfield;
}

label {
  margin-bottom: 0.2rem;
  color: var(--primary-foreground);
}

input[type="file"] {
  color: var(--primary-foreground);
}

input[type="file"]::file-selector-button {
  color: var(--primary-foreground);
  background-color: var(--primary);
  border: 1px solid var(--color-border);

  /* border: none; */
  padding: 8px 16px;
  border-radius: 5px;
  cursor: pointer;
  transition: background-color 0.2s ease;
}

/* input[type="file"]::file-selector-button {
  background-color: #007bff;
  color: white;
  border: none;
  padding: 8px 16px;
  border-radius: 4px;
  cursor: pointer;

  transition: background-color 0.2s ease;
} */

input[type="file"]::file-selector-button:hover {
  background-color: var(--button-hover);
}

.about-us {
  display: flex;
  align-items: center;
  padding-top: 1rem;
  text-align: center;
  line-height: 1.6; /* better readability */
  /* margin-top: 2rem; */
  /* color: var(--muted-foreground); */
  margin-bottom: 4rem;
}

.about-us a {
  text-decoration: none;
  font-weight: bold;
  color: var(--main-bg-color);
}

.about-us a:hover {
  text-decoration: underline;
}

.contact-us {
  display: flex;
  align-items: center;
  margin-top: 2rem;
  padding-bottom: 24rem;
}

.contact-list {
  display: flex;
  flex-direction: column;
  gap: 10px;
  color: var(--main-bg-color);
  margin-left: 1rem;
}

.contact-item {
  display: flex;
  gap: 10px;
  align-items: center;
}

.contact-item i {
  font-size: 16px;
  color: var(--primary);
}

.contact-map img {
  width: 70%;
  height: auto;
  border-radius: 10px;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.3);
  margin-bottom: 2rem;
  margin-top: 1rem;
}

.form-message {
  text-align: center;
  margin-top: 2rem;
  margin-bottom: 2rem;
  color: var(--muted-foreground);
}

.optional {
  font-size: 0.7rem;
  font-style: italic;
}

/* Control width proportions on larger screens */
.topic-image {
  flex: 2; /* 60% if total = 5 */
  min-width: 300px;
  overflow: hidden;
  border-radius: 5px; /* Optional: match image border */
  position: relative; /* helps contain absolutely positioned elements */
  aspect-ratio: 16 / 9; /* keeps a fixed ratio */
  /* box-shadow: 0 4px 20px rgba(255, 255, 255, 0.08);  */

  /* box-shadow: 0 4px 8px rgba(0, 0, 0, 0.6), 0 0 10px rgba(255, 255, 255, 0.1); */
  /* box-shadow: 0 0 20px rgba(255, 255, 255, 0.2); */
  box-shadow: 0 0 25px rgba(100, 150, 255, 0.25);
}

/* Make image responsive */
.topic-image img {
  width: 100%;
  height: 100%;
  object-fit: cover; /* ensures the image covers container without changing aspect ratio */
  border-radius: 5px;
  /* transform-origin: center center; */
  /* box-shadow: 0 4px 12px rgba(0, 0, 0, 0.3); */
  /* box-shadow: 0 4px 20px rgba(255, 255, 255, 0.08); */
  transition: transform 0.3s ease; /* Smooth zoom effect */
}

.topic-image img:hover {
  transform: scale(1.05);
}

.topic-content {
  flex: 3; /* 40% if total = 5 */
  min-width: 300px;
  padding-left: 1rem;
  padding-right: 1rem;
  line-height: 1.6;
  font-size: 1.1rem;
  color: var(--muted-foreground);
}

.header-right a {
  /* display: block; 
  box-sizing: border-box; */
  padding-bottom: 4px;
  border-bottom: 4px solid transparent;
}

.header-right a.active {
  padding-bottom: 4px;
  border-bottom: 4px solid var(--primary);
}

/* HAMBURGER MENU STYLES */
.menu-toggle {
  display: none;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  gap: 5px;
  width: 25px;
  height: 25px;
  background: none;
  border: none;
  cursor: pointer;
  padding: 0;
  z-index: 100;
}

.menu-toggle .bar {
  width: 100%;
  height: 3px;
  background-color: var(--primary);
  border-radius: 2px;
  transition: all 0.3s ease;
}

/* Animate hamburger → X */
.menu-toggle.open .bar:nth-child(1) {
  transform: rotate(45deg) translateY(11px);
}
.menu-toggle.open .bar:nth-child(2) {
  opacity: 0;
}
.menu-toggle.open .bar:nth-child(3) {
  transform: rotate(-45deg) translateY(-11px);
}

.no-decoration-link {
  text-decoration: none;
}

.hover-link {
  text-decoration: none;
  color: var(--muted-foreground);
  transition-property: color, background-color, border-color,
    text-decoration-color, fill, stroke;
  transition-timing-function: cubic-bezier(0.4, 0, 0.2, 1);
  transition-duration: 0.15s;
}

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

.under-construction {
  width: 500px;
  margin-left: auto;
  margin-right: auto;
}

@media (width < 900px) {
  .card-wrapper {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
  .service-detail-image {
    width: 30%;
  }
  .service-detail-content {
    width: 70%;
  }

  .service-detail {
    padding: 0 1rem;
  }
}

/* Stack on small screens */
@media (width < 768px) {
  html {
    font-size: 110%;
  }

  .main-section {
    flex-direction: column;
  }

  .line-1 {
    font-size: 3.25rem;
    margin-bottom: 1rem;
  }

  .line-2 {
    font-size: 3.25rem;
  }

  .card-wrapper {
    grid-template-columns: repeat(1, minmax(0, 1fr));
  }

  .service-detail-image {
    display: none;
  }

  .service-detail-image-inline {
    display: block;
  }

  .service-detail-items {
    grid-template-columns: repeat(1, minmax(0, 1fr));
  }

  .service-detail-content {
    width: 90%;
    margin-left: auto;
    margin-right: auto;
  }

  .service-detail-head > .card-heading {
    font-size: 2rem;
    line-height: 1.1;
  }

  .topic {
    padding: 1rem;
  }

  .form-body {
    padding: 1rem;
  }

  .topic_image,
  .topic-content {
    flex: 1 1 100%;
  }

  .container {
    width: 100%;
  }

  .topic-content {
    padding-left: 0rem;
  }

  .topic-container {
    gap: 0.5rem;
    flex-wrap: wrap;
  }

  .hero-image {
    min-width: 800px;
  }

  .carousel-slide {
    width: 80%;
  }

  .topic-head-listing {
    margin-top: 1.5rem;
  }

  .category-wrapper {
    grid-template-columns: repeat(1, 1fr);
    padding-right: 2rem;
    padding-left: 2rem;
  }

  /* Small screens: make image shrink to fit container */
  .center_align_image_nb img {
    width: 100%;
    height: auto;
    border-radius: 10px;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.2);
  }

  .footer-banner {
    grid-template-columns: repeat(1, minmax(0, 1fr));
    margin-left: 2rem;
  }

  .menu-toggle {
    display: flex;
  }

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

  .two-col-element {
    grid-column: span 1;
  }

  .header-right {
    position: absolute;
    top: 4rem;
    right: 0;
    background-color: rgba(24, 27, 34, 0.95);
    flex-direction: column;
    /* align-items: flex-start; */
    align-items: center;
    /* width: 200px; */
    width: 100%;

    padding: 1rem;
    gap: 1rem;
    border-left: 1px solid var(--color-border);
    /* transform: translateX(100%); */
    opacity: 0;
    /* transition: transform 0.3s ease-in-out; */
    /* transition: transform 0.3s ease-in-out, opacity 0.3s ease-in-out; */
    transition: opacity 0.3s ease-in-out, opacity 0.3s ease-in-out;
    pointer-events: none; /* prevents clicks when hidden */
  }

  .header-right.open {
    /* transform: translateX(0); */
    opacity: 1;
    pointer-events: auto; /* enable clicks */
  }
}
