:root {
  --primary-blue: #0c70ba;
  --light-blue: #1493f8;
  --accent-green: #38a3a5;
  --dark-grey: #2c3e50;
  --light-grey: #ecf0f1;
  --white: #ffffff;
}

* {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

html {
  scroll-behavior: smooth;
}

body {
  font-family: "Poppins", sans-serif;
  line-height: 1.6;
  color: var(--dark-grey);
  background-color: var(--white);
}

/* --- Header & Navigation --- */
.header {
  background-color: var(--light-grey);
  color: var(--white);
  padding: 1rem 2rem;
  display: flex;
  justify-content: space-between;
  align-items: center;
  position: sticky;
  top: 0;
  z-index: 1000;
  box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
}

.header .logo {
  font-size: 1.5rem;
  font-weight: 700;
  letter-spacing: 1px;
  min-width: 300px;
  min-height: 50px;
  background-image: url("./logo.png");
  /* mix-blend-mode: multiply; */
  background-size: contain;
  background-repeat: no-repeat;
  background-position: center;
}

.header nav a {
  color: var(--primary-blue);
  text-decoration: none;
  margin-left: 2.5rem;
  font-weight: 600;
  transition: color 0.3s ease;
}

.header nav a:hover {
  color: var(--accent-green);
}

/* background: linear-gradient(
            rgba(20, 147, 248, 0.3),
            rgba(20, 147, 248, 0.3),
            rgba(20, 147, 248, 0.3)
          ),
          url("./hero.png") no-repeat center
            center/cover; */

/* --- Hero Section --- */
.hero {
  background: linear-gradient(rgba(10, 61, 98, 0.9)),
    url("./hero.png") no-repeat center center/cover;
  height: 70vh;
  max-height: 600px;
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  text-align: center;
  color: var(--white);
  -webkit-text-stroke: 0.25px black;
  padding: 0 2rem;
  position: relative;
}
/* Note: For SEO, use a real image and add 'alt' text. Example: `<img src="path/to/image.jpg" alt="Aventric Technologies medical technician calibrating equipment" class="hero-image">` */
.hero::before {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background-color: rgba(0, 0, 0, 0.5);
  z-index: 1;
}

.hero-title {
  z-index: 2;
  opacity: 0;
  padding: 0;
  margin: 0;
  margin-bottom: 0 !important;
  transform: translateY(20px);
  animation: fadeInSlideUp 1s ease-out forwards;
}

.hero-content {
  z-index: 2;
  opacity: 0;
  transform: translateY(20px);
  animation: fadeInSlideUp 1s ease-out forwards;
}

.hero h1 {
  font-size: clamp(2rem, 5vw, 4rem);
  margin-bottom: 0.5rem;
  font-weight: 700;
}

.hero p {
  font-size: clamp(1rem, 2vw, 1.5rem);
  margin-bottom: 2rem;
  font-weight: 400;
}

.promo-underline {
  position: relative;
  display: inline-block;
  word-wrap: normal;
  line-height: 0.8;
  padding-bottom: 8px;
  background-image: url("./underline.svg");
  -webkit-background-size: 100%;
  background-size: 100%;
  background-repeat: no-repeat;
  -webkit-background-position: center bottom;
  background-position: center bottom;
  font-feature-settings: normal;
}

.btn {
  display: inline-block;
  background-color: var(--accent-green);
  color: var(--white);
  padding: 0.8rem 2rem;
  text-decoration: none;
  border-radius: 50px;
  font-weight: 600;
  letter-spacing: 0.5px;
  transition: transform 0.3s ease, background-color 0.3s ease;
}

.btn:hover {
  transform: translateY(-3px);
  background-color: #2f8d8f;
}

/* --- Services Section --- */
.services,
.about,
.contact,
.brands {
  padding: 5rem 2rem;
  margin: 0 auto;
  max-width: 1200px;
}

.section-title {
  text-align: center;
  font-size: 2.5rem;
  margin-bottom: 3rem;
  font-weight: 700;
  color: var(--primary-blue);
  position: relative;
}

.section-title::after {
  content: "";
  display: block;
  width: 60px;
  height: 4px;
  background-color: var(--accent-green);
  margin: 10px auto 0;
  border-radius: 2px;
}

.services-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 2rem;
  text-align: center;
}

.service-card {
  background-color: var(--light-grey);
  padding: 2.5rem;
  border-radius: 12px;
  box-shadow: 0 8px 16px rgba(0, 0, 0, 0.05);
  transition: transform 0.3s ease, box-shadow 0.3s ease;
  opacity: 0;
  transform: translateY(20px);
  animation: fadeInSlideUp 0.8s ease-out forwards;
}

.service-card:nth-child(1) {
  animation-delay: 0.2s;
}
.service-card:nth-child(2) {
  animation-delay: 0.4s;
}

.service-card:hover {
  transform: translateY(-10px);
  box-shadow: 0 12px 24px rgba(0, 0, 0, 0.1);
}

.service-card h3 {
  font-size: 1.8rem;
  color: var(--primary-blue);
  margin-bottom: 1rem;
}

/* --- About Section --- */
.about-content {
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
}

.about-content p {
  font-size: 1.1rem;
  max-width: 800px;
  margin-bottom: 1.5rem;
  line-height: 1.8;
  opacity: 0;
  transform: translateY(20px);
  animation: fadeInSlideUp 1s ease-out forwards;
  animation-delay: 0.5s;
}

.highlight {
  font-size: 3rem;
  font-weight: 700;
  color: var(--accent-green);
  opacity: 0;
  transform: translateY(20px);
  animation: fadeInSlideUp 1s ease-out forwards;
  animation-delay: 0.8s;
}

/* --- Contact Section --- */
.contact {
  background-color: var(--light-grey);
}

.contact-info {
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
}

.contact-info p {
  font-size: 1.1rem;
  margin-bottom: 0.5rem;
}

.contact-info a {
  color: var(--primary-blue);
  text-decoration: none;
  font-weight: 600;
  transition: color 0.3s ease;
}

.contact-info a:hover {
  color: var(--accent-green);
}

/* --- Contact Section --- */
.contact-container {
  display: flex;
  gap: 3rem;
  margin-top: 3rem;
  text-align: left;
}
.contact-info,
.contact-map {
  flex: 1;
}
.contact-info p {
  line-height: 1.8;
  font-size: 1.1rem;
}
.contact-info a {
  color: var(--primary-color);
  text-decoration: none;
}
.contact-info a:hover {
  text-decoration: underline;
}
.contact-info .sincerely {
  margin-top: 2rem;
  line-height: 1.5;
}
.contact-map iframe {
  border-radius: 10px;
}

/* --- Footer --- */
.footer {
  background-color: var(--dark-grey);
  color: var(--light-grey);
  text-align: center;
  padding: 2rem;
  font-size: 0.9rem;
}

.footer p {
  margin-bottom: 0.5rem;
}


.disclaimer {
  font-size: 0.7rem;
  max-width: 800px;
  margin: 0.5rem auto 0;
  line-height: 1.4;
  opacity: 0.7;
}

/* --- Animations --- */
@keyframes fadeInSlideUp {
  from {
    opacity: 0;
    transform: translateY(20px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

/* Intersection Observer for scroll animations */
.hidden {
  opacity: 0;
  transform: translateY(50px);
  transition: opacity 0.6s ease-out, transform 0.6s ease-out;
}
.visible {
  opacity: 1;
  transform: translateY(0);
}

/* --- Responsive Design --- */
@media (max-width: 992px) {
  .navbar {
    flex-direction: column;
    gap: 1rem;
  }
  .hero-title {
    font-size: 2.8rem;
  }
  .about-container,
  .contact-container {
    flex-direction: column;
  }
}

@media (max-width: 768px) {
  .header {
    flex-direction: column;
    padding: 1rem;
  }

  .header nav {
    margin-top: 1rem;
  }

  .header nav a {
    margin: 0 0.5rem;
    font-size: 0.9rem;
  }

  .services,
  .about,
  .contact {
    padding: 3rem 1.5rem;
  }

  .section-title {
    font-size: 2rem;
  }

  .hero {
    height: 60vh;
  }
}

/* --- Brands Section --- */
#brands {
  background-color: var(--light-text); /* White background */
}

.brands-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
  align-items: center;
  justify-content: center;
  gap: 2rem;
  margin-top: 3rem;
  max-width: 1200px;
  margin-left: auto;
  margin-right: auto;
}

.brand-card {
  border: 1px solid #e2e8f0;
  border-radius: 12px;
  padding: 2rem 1rem;
  transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.brand-card:hover {
  transform: translateY(-8px);
  box-shadow: 0 10px 30px rgba(0, 90, 156, 0.1);
}

.brand-card a {
  text-decoration: none;
  color: inherit;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 1rem;
}

.brand-card h4 {
  margin: 0;
  font-size: 1.2rem;
  font-weight: 600;
  color: var(--dark-text);
}

.brand-card svg,
.brand-card img {
  max-width: 150px;
  height: 60px; /* Set a fixed height for alignment */
  object-fit: contain; /* Ensures logos aren't stretched */
  filter: grayscale(100%);
  opacity: 0.7;
  transition: filter 0.3s ease, opacity 0.3s ease;
}

.brand-card:hover svg,
.brand-card:hover img {
  filter: grayscale(0%);
  opacity: 1;
}
