html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  font-family: 'Segoe UI', sans-serif;
  color: #fff;
  background-color: #0a1b2a;
}

/* HERO Section */
.hero {
  position: relative;
  width: 100%;
  height: 600px;
  background-image: url('image.png'); /* Replace with actual path */
  background-size: cover;
  background-position: center 20%; /* Crop image downward */
  padding: 40px;
  box-sizing: border-box;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  color: white;
}

.hero::after {
  content: "";
  position: absolute;
  inset: 0;
  background-color: rgba(0, 0, 0, 0.4);
  z-index: 1;
}

/* Navbar */
.navbar {
  position: absolute;
  top: 20px;
  right: 40px;
  z-index: 3;
}

.navbar a {
  color: white;
  margin-left: 25px;
  text-decoration: none;
  font-weight: 600;
}

/* Headline (center top) */
.hero h1 {
  position: absolute;
  top: 20px;
  left: 50%;
  transform: translateX(-50%);
  font-size: 24px;
  font-weight: bold;
  margin: 0;
  z-index: 3;
  text-align: center;
  white-space: nowrap;
}

/* Hero Content Right Side */
.hero-layer {
  position: relative;
  z-index: 2;
  display: flex;
  justify-content: flex-end;
  align-items: flex-end;
  height: 100%;
  width: 100%;
  padding-bottom: 40px;
  box-sizing: border-box;
}

.hero-box-right {
  width: 45%;
  max-width: 500px;
  text-align: right;
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.hero-box-right h2 {
  font-size: 28px;
  margin: 0;
  margin-bottom: 0;
  position: relative;
  top: -150px; /* move h2 up */
  animation: textFadeIn 0.8s ease-out forwards;
  animation-delay: 1s;
}

.hero-box-right p {
  margin: -5px 0 0 0;
  font-size: 19px;
  top: -150px;
  position: relative;
   animation: textFadeIn 0.8s ease-out forwards;
  animation-delay: 1.3s;
}

.subtext {
  font-size: 16px;
  max-width: 500px;
  text-align: right;
  margin: 0;
  padding-top: 40px; /* ✅ This pushes it downward */
}

.hero-buttons {
  margin-top: 20px;
  display: flex;
  justify-content: flex-end;
  gap: 15px;
}

/* Buttons */
.btn-1 {
  background: white;
  color: black;
  border: 2px solid black;
  padding: 10px 20px;
  border-radius: 5px;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.2s ease;
}

.btn-2 {
  background: black;
  color: white;
  border: 2px solid white;
  padding: 10px 20px;
  border-radius: 5px;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.2s ease;
}

.btn-1:hover {
  background: #eee;
  transform: scale(1.05);
}

.btn-2:hover {
  background: #222;
  transform: scale(1.05);
}

/* Other Sections – Keep As Is */
.why-choose {
  background: #005b93;
  padding: 60px 20px;
  text-align: center;
}

.why-choose h2 {
  font-size: 28px;
  color: #ffffff;
  margin-bottom: 40px;
  letter-spacing: 1px;
}

.features {
  display: flex;
  justify-content: space-around;
  flex-wrap: wrap;
  gap: 0px; /* reduced from 30px to 16px */
}


.feature-box {
  background: #003b62;
  border: 1px solid #70bff8;
  padding: 20px;
  border-radius: 10px;
  width: 300px;
  box-sizing: border-box;
  text-align: center;
  color: #ffffff;
}

.feature-box img {
  width: 100%;
  height: 180px;
  object-fit: cover;
  border-radius: 8px;
  margin-bottom: 20px;
}

.feature-box h3 {
  color: #f6c744;
  font-size: 18px;
  margin-bottom: 10px;
}

.feature-box p {
  font-size: 14px;
  line-height: 1.6;
}


.xray-section {
  background: #0a2c47;
  padding: 60px 20px;
  color: #fff;
  border-top: 2px solid #1f5067;
}

.xray-container {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-around;
  max-width: 1200px;
  margin: 0 auto;
  gap: 30px;
}

.xray-image img {
  max-width: 450px;
  width: 100%;
  border-radius: 20px;
  box-shadow: 0 0 20px rgba(0, 0, 0, 0.3);
}

.xray-content {
  max-width: 600px;
  display: flex;
  flex-direction: column;
  gap: 20px;
}

.xray-content h2 {
  font-size: 28px;
  margin: 0;
}

.tagline {
  font-style: italic;
  font-size: 16px;
  color: #ccc;
  margin-bottom: 10px;
}

.xray-lists {
  display: flex;
  flex-wrap: wrap;
  gap: 40px;
}

.xray-list-block h3 {
  font-size: 18px;
  margin-bottom: 10px;
  color: #ffffff;
}

.xray-list-block ul {
  list-style: none;
  padding: 0;
  margin: 0;
}

.xray-list-block li {
  margin-bottom: 8px;
  font-size: 15px;
  line-height: 1.5;
}

.xray-btn {
  align-self: flex-start;
  margin-top: 20px;
  background-color: #e0e0e0;
  color: #000;
  border: none;
  padding: 10px 20px;
  border-radius: 6px;
  font-weight: bold;
  cursor: pointer;
  transition: all 0.3s ease;
}

.xray-btn:hover {
 
  background: #eee;
  transform: scale(1.05);

}
.xray-section {
  background: #005b93;
  padding: 60px 20px;
  border-top: 2px solid #1f5067;
  color: white;
}

.xray-container {
  display: flex;
  align-items: center;
  justify-content: space-between;
  max-width: 1200px;
  margin: 0 auto;
  gap: 40px;
  flex-wrap: wrap;
}

.xray-text {
  flex: 1;
  min-width: 300px;
}

.xray-text h2 {
  font-size: 28px;
  margin-bottom: 8px;
}

.tagline {
  font-style: italic;
  margin-bottom: 20px;
  font-size: 16px;
}

.xray-content {
  display: flex;
  gap: 30px;
  flex-wrap: wrap;
}

.xray-content h3 {
  font-size: 18px;
  margin-bottom: 10px;
}

.xray-content ul {
  list-style: none;
  padding: 0;
  font-size: 15px;
  line-height: 1.6;
}

.xray-content li::before {

  margin-right: 8px;
}

.cta-button {
  margin-top: 30px;
  background: #fff;
  color: #000;
  padding: 12px 24px;
  border: none;
  font-weight: 600;
  border-radius: 6px;
  cursor: pointer;
  transition: all 0.3s ease;
}

.cta-button:hover {
   background: #eee;
  transform: scale(1.05);
}


.xray-image {
  flex: 1;
  min-width: 300px;
  text-align: center;
}

.xray-image img {
  width: 100%;
  max-width: 500px;
  border-radius: 12px;
}

.xray-section {
  background: #0a2c47;
  padding: 60px 20px;
  border-top: 2px solid #1f5067;
  color: white;
}

.xray-container {
  display: flex;
  align-items: center;
  justify-content: space-between;
  max-width: 1200px;
  margin: 0 auto;
  gap: 40px;
  flex-wrap: wrap;
}

.xray-text {
  flex: 1;
  min-width: 300px;
}

.xray-text h2 {
  font-size: 28px;
  margin-bottom: 8px;
}

.tagline {
  font-style: italic;
  margin-bottom: 20px;
  font-size: 16px;
}

.xray-content {
  display: flex;
  gap: 30px;
  flex-wrap: wrap;
}

.xray-content h3 {
  font-size: 18px;
  margin-bottom: 10px;
}

.xray-content ul {
  list-style: none;
  padding: 0;
  font-size: 15px;
  line-height: 1.6;
}

.xray-content li::before {
 
  margin-right: 8px;
}

.cta-button {
  margin-top: 30px;
  background: #fff;
  color: #000;
  padding: 12px 24px;
  border: none;
  font-weight: 600;
  border-radius: 6px;
  cursor: pointer;
  transition: all 0.3s ease;
}

.cta-button:hover {
  background: #e0e0e0;
}

.xray-image {
  flex: 1;
  min-width: 300px;
  text-align: center;
}

.xray-image img {
  width: 100%;
  max-width: 500px;
  border-radius: 12px;
}

.footer {
  position: relative;
  background-image: url('footer.png'); /* if you're using an image */
  background-size: cover;
  background-position: center;
  padding: 60px 20px;
  color: #fff;
  text-align: center;
  overflow: hidden;
}

.footer-overlay {
  background-color: rgba(0, 0, 0, 0.6); /* <-- this is the shadow effect */
  padding: 60px 20px;
}

.footer h2 {
  margin-bottom: 10px;
  font-size: 28px;
}

.footer-columns {
  display: flex;
  justify-content: space-around;
  flex-wrap: wrap;
  margin-top: 30px;
}

.footer p {
  margin: 5px 0;
  font-size: 14px;
}

.footer-social {
  margin-bottom: 20px;
}

.footer-social a {
  color: white;
  margin: 0 10px;
  font-size: 20px;
  transition: color 0.3s ease;
}

.footer-social a:hover {
  color: #00bfff;
}


/* Animation setup */
.fade-in {
  opacity: 0;
  transform: translateY(30px);
  transition: opacity 0.8s ease-out, transform 0.8s ease-out;
}

.fade-in.show {
  opacity: 1;
  transform: translateY(0);
}

.animate-on-scroll {
  opacity: 0;
  transform: translateY(30px);
  transition: opacity 0.8s ease-out, transform 0.8s ease-out;
}

.animate-on-scroll.visible {
  opacity: 1;
  transform: translateY(0);
}

.btn-1:hover,
.btn-2:hover {
  transform: scale(1.05);
  transition: all 0.3s ease;
}
.text-slide {
  opacity: 0;
  transform: translateX(-50px);
  transition: opacity 0.8s ease-out, transform 0.8s ease-out;
}

.text-slide.visible {
  opacity: 1;
  transform: translateX(0);
}
/* Why Choose */
section:nth-of-type(1) {
  background: #005b93;
}

/* Industrial X-ray Inspection */
section:nth-of-type(2) {
  background: #005b93;
}

/* Food X-ray Inspection */
section:nth-of-type(3) {
  background: #005b93;
}

/* Machine Vision Systems */
section:nth-of-type(4) {
  background: #005b93;
}

.text-fade {
  opacity: 0;
  transform: translateY(40px);
  transition: opacity 0.8s ease-out, transform 0.8s ease-out;
}
.text-fade.show {
  opacity: 1;
  transform: translateY(0);
}


@keyframes textFadeIn {
  to {
    opacity: 1;
    transform: translateY(0);
  }
}
.slide-in-left {
  opacity: 0;
  transform: translateX(-50px);
 transition: opacity 0.8s ease-out, transform 0.8s ease-out;
}

.slide-in-left.visible {
  opacity: 1;
  transform: translateX(0);
}



@keyframes slideLeftFade {
  to {
    opacity: 1;
    transform: translateX(0);
  }
}
.slide-in-right {
  opacity: 0;
  transform: translateX(50px);
  transition: opacity 0.8s ease-out, transform 0.8s ease-out;
}

.slide-in-right.visible {
  opacity: 1;
  transform: translateX(0);
}

@keyframes slideRightFade {
  to {
    opacity: 1;
    transform: translateX(0);
  }
}
.video-section {
  position: relative;
  overflow: hidden;
}

.video-section .bg-video {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  z-index: 0;
}

.video-section .video-overlay {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: rgba(0, 0, 0, 0.5); /* Overlay darkness */
  z-index: 1;
}

.video-section .xray-container {
  position: relative;
  z-index: 2;
  color: white; /* Text color over video */
}

@media (max-width: 768px) {
  .bg-video {
    display: flex;
  }

  .video-section {
    background: url('assets/bg_video.mp4') no-repeat center center/cover;
  }
}
@media (max-width: 768px) {
  h2, h3 {
    font-size: 20px;
  }
  p {
    font-size: 14px;
  }
}

@media (max-width: 768px) {
   /* Navbar styling */
  .navbar {
    position: absolute;
    top: 0;
    left: 0; right: 0;
    display: flex;
    justify-content: center;
    padding: 10px 0;
    background-color: rgba(0,0,0,0.5); /* semi-transparent */
    z-index: 10;
  }
  .navbar a {
    margin: 0 12px;
    font-size: 16px;
  }
  .hero-box-left {
    margin-top: 80px; /* Push text down from navbar */
  }


}
@media (max-width: 768px) {
  /* Center hero text & buttons nicely */
  .hero {
    height: 600px;
    padding: 60px 20px;
    text-align: center;
    display: flex;
    flex-direction: column;
    align-items: center;
  }

  .hero h1 {
    margin-top: 60px;
    font-size: 20px;
    white-space: normal;
    line-height: 1.3;
  }

  .hero-box-right {
    position: static;
    top: auto;
    width: 100%;
    max-width: none;
    margin: 0 auto;
    padding: 0;
  }

  .hero-box-right h2 {
    position: static;
    top: auto;
    margin-bottom: 05px;
    font-size: 18px;
    text-align: center;
  }

  .hero-box-right p,
  .subtext {
    position: static;
    top: auto;
    font-size: 14px;
    margin-bottom: 10px;
    padding: 0;
    text-align: center;
  }

 .hero-buttons {
  flex-direction: column;
  align-items: center;
  width: 100%;
  gap: 12px;
  margin-top: 20px;
}

.btn-1, .btn-2 {
  width: 80%;
  max-width: 280px;
  padding: 12px 0;
}

}

.floating-icons {
  position: fixed;
  bottom: 20px;
  right: 20px;
  display: flex;
  flex-direction: row;
  gap: 15px;
  z-index: 999;
}

/* WhatsApp Icon */
.whatsapp-float,
.call-float {
  width: 55px;
  height: 55px;
  background-color: #25d366; /* WhatsApp green */
  color: white;
  border-radius: 50%;
  font-size: 24px;
  text-align: center;
  line-height: 55px;
  box-shadow: 0 0 12px #25d366, 0 0 25px #25d366;
  animation: pulse-glow 2s infinite;
  transition: transform 0.3s ease;
}

.call-float {
  background-color: #007bff; /* Blue for call */
  box-shadow: 0 0 12px #007bff, 0 0 25px #007bff;
}

/* Hover effect */
.whatsapp-float:hover,
.call-float:hover {
  transform: scale(1.1);
}

/* Glow animation */
@keyframes pulse-glow {
  0% {
    box-shadow: 0 0 10px currentColor, 0 0 20px currentColor;
  }
  50% {
    box-shadow: 0 0 25px currentColor, 0 0 45px currentColor;
  }
  100% {
    box-shadow: 0 0 10px currentColor, 0 0 20px currentColor;
  }
}

a {
  text-decoration: none;
  color: inherit; /* Optional: makes the link text inherit parent color */
}
.feature-box {
  transition: transform 0.2s ease, box-shadow 0.2s ease;
  cursor: pointer;
  border-radius: 12px;
}

.feature-box:active {
  transform: scale(0.97);
  box-shadow: 0 6px 12px rgba(0, 0, 0, 0.3);
}
.feature-box:hover {
  transform: scale(1.03);
  box-shadow: 0 12px 20px rgba(0, 0, 0, 0.3);
  background-color: rgba(255, 255, 255, 0.05);
}

.feature-box:active {
  transform: scale(0.97);
}
