/* Reset and base layout */
body {
  margin: 0;
  font-family: 'Segoe UI', sans-serif;
  width: 100%;
  overflow-x: hidden;
}

/* Ensure responsive scaling */
html {
  scroll-behavior: smooth;
}

/* Viewport fix (important for mobile scaling) */
@viewport {
  width: device-width;
  zoom: 1.0;
}

/* Toggle Button & Header Container */
header {
  position: fixed;
  top: 50%;
  right: 0;
  transform: translateY(-50%);
  background-color: #111;
  padding: 10px;
  border-radius: 8px 0 0 8px;
  z-index: 1001;
  pointer-events: none; /* Prevent layout interference */
}

.menu_toggle {
  display: block;
  width: 30px;
  height: 24px;
  position: relative;
  cursor: pointer;
  pointer-events: auto; /* Enable interaction */
}

/* Toggle icon lines */
.menu_toggle span {
  position: absolute;
  left: 0;
  width: 100%;
  height: 3px;
  background-color: #ffffff;
  border-radius: 2px;
  transition: all 0.4s ease-in-out;
}

.menu_toggle span:nth-child(1) { top: 0; }
.menu_toggle span:nth-child(2) {
  top: 50%;
  transform: translateY(-50%);
}
.menu_toggle span:nth-child(3) { bottom: 0; }

/* Toggle open animation */
.menu_toggle.open span:nth-child(1) {
  top: 50%;
  transform: translateY(-50%) rotate(45deg);
}
.menu_toggle.open span:nth-child(2) {
  opacity: 0;
}
.menu_toggle.open span:nth-child(3) {
  bottom: auto;
  top: 50%;
  transform: translateY(-50%) rotate(-45deg);
}

/* Sidebar menu */
.menu_sidebar {
  position: fixed;
  top: 0;
  right: -100%;
  height: 100%;
  width: 250px;
  background-color: #222;
  color: white;
  transition: right 0.7s ease-in-out;
  z-index: 1000;
  display: flex;
  justify-content: center;
  align-items: center;
}

.menu_sidebar.open { right: 0; }

/* Sidebar menu items */
.menu_items {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  height: 100%;
  width: 100%;
  text-align: center;
  opacity: 0.6;
  transition: opacity 0.5s ease-in-out;
  background: linear-gradient(50deg, #001893, #ff0000);
}
.menu_items.visible { opacity: 1; }

.menu_items a {
  margin: 20px 0;
  color: white;
  text-decoration: none;
  font-size: 1.5em;
  opacity: 0;
  transform: translateY(10px);
  transition: opacity 0.5s ease, transform 0.5s ease;
  position: relative;
  display: inline-flex;
  align-items: center;
  gap: 10px;
}

.menu_items.visible a {
  opacity: 1;
  transform: translateY(0);
}

.menu_items a:hover {
  transform: scale(1.2);
}

/* Hover effect lines */
.menu_items a::before,
.menu_items a::after {
  content: "";
  width: 30px;
  height: 2px;
  background-color: white;
  opacity: 0;
  transform: scaleX(0);
  transition: transform 0.4s ease, opacity 0.4s ease;
  transition-delay: 0s;
}
.menu_items a::before { transform-origin: right center; }
.menu_items a::after { transform-origin: left center; }

.menu_items a:hover::before,
.menu_items a:hover::after {
  transform: scaleX(1);
  opacity: 1;
  transition-delay: 0.175s;
}

/* Sidebar social icons */
.menu_social {
  position: absolute;
  bottom: 20px;
  left: 50%;
  transform: translateX(-50%);
  display: flex;
  justify-content: space-between;
  width: 80%;
}

.menu_social a {
  color: white;
  font-size: 24px;
  text-decoration: none;
  transition: transform 0.3s ease;
}

.menu_social a:hover {
  transform: scale(1.2);
  background: linear-gradient(50deg, #001893, #ff0000);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  color: transparent;
}

/* Gradient text style */
.eightainment-gradient-style {
  background: linear-gradient(50deg, #001893, #ff0000);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  font-weight: 600;
  letter-spacing: 1px;
  font-size: 1.05em;
}

/* Footer section */
.menu_footer {
  background-color: #000;
  color: #fff;
  padding: 30px 20px 15px;
}

.menu_footer-content {
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  border-bottom: 1px solid #444;
  padding-bottom: 20px;
}

.menu_footer-logo img {
  height: 40px;
}

.menu_footer-links {
  display: flex;
  gap: 20px;
  flex-wrap: wrap;
}

.menu_footer-links a {
  color: #fff;
  text-decoration: none;
  font-size: 0.95em;
  transition: all 0.4s ease;
}

.menu_footer-links a:hover {
  background: linear-gradient(50deg, #001893, #ff0000);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

.menu_footer-bottom {
  text-align: center;
  margin-top: 15px;
  font-size: 0.85em;
  color: #aaa;
}

/* Topbar styles */
.menu_topbar {
  width: 100%;
  padding: 10px 20px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  background-color: #000;
  color: #fff;
  position: relative;
  z-index: 1002;
}

.menu_logo img {
  height: 50px;
}

.menu_contact {
  display: flex;
  flex-direction: column;
  text-align: right;
  padding-right: 30px;
  font-size: 0.95em;
  gap: 4px;
}

/* ============ RESPONSIVE FIXES ============ */
@media (max-width: 768px) {
  header {
    top: 50%;
    right: 13%; /* Adjust only if visually off */
    transform: none;
  }

  .menu_toggle {
    width: 26px;
    height: 20px;
  }

  .menu_toggle span {
    height: 2px;
  }

  .menu_footer-content {
    flex-direction: column;
    align-items: flex-start;
  }

  .menu_contact {
    text-align: left;
    margin-top: 10px;
  }

  .menu_logo img {
    height: 40px;
  }
}


/* ===== Intro Grid Start ===== */
.intro-grid-section {
  display: grid;
  place-items: center;
  height: 100vh;
  width: 100%;
  position: relative;
  overflow: hidden;
  background-color: #000;
  z-index: 0;
}


/* ===== Background Image Scroll ===== */
.background-scroll {
  position: absolute;
  top: 0;
  left: 0;
  display: flex;
  width: 400%;
  height: 100%;
  z-index: 1;
  opacity: 0.6;
  animation: scrollImages 80s linear infinite !important;
  pointer-events: none;
}


.background-blur {
  display: flex;
  width: 400vw;
  height: 100%;
  filter: blur(6px);
}

.background-blur img {
  width: 100vw;
  height: 100%;
  object-fit: cover;
  flex-shrink: 0;
}

@keyframes scrollImages {
  0% { transform: translateX(0); }
  100% { transform: translateX(-75%); }
}

/* ===== Foreground Text ===== */
.intro-content {
  position: relative;
  z-index: 2;
  text-align: center;
  color: #fff;
  padding: 1rem 2rem;
  animation: fadeIn 1.5s ease-in-out forwards !important;
}



.intro-title {
  font-size: 3.5rem; /* Adjust size as needed */
  font-weight: 800;
  color: transparent;
  background: inherit;
  background-clip: text;
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  -webkit-text-stroke: 1px white;
}

.intro-subtitle {
  font-size: 1.5rem;
  margin-top: 1rem;
  opacity: 0;
  transform: translateY(20px);
  animation: slideUp 1s ease-out 1s forwards;
}


@keyframes slideUp {
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

@keyframes fadeIn {
  0% { opacity: 0; }
  100% { opacity: 1; }
}

/* ===== Tech Icons Start===== */
.intro-icons {
  display: flex;
  justify-content: center;
  gap: 1rem;
  margin-top: 1.5rem;
  flex-wrap: wrap;
}

.icon-circle {
  width: 60px;
  height: 60px;
  border-radius: 50%;
  background-color: rgba(255, 255, 255, 0.05); /* ultra-transparent to allow bg to show */
  display: flex;
  justify-content: center;
  align-items: center;
  backdrop-filter: blur(2px); /* optional for glassy feel */
  border: 1px solid rgba(255, 255, 255, 0.2);
  transition: transform 0.3s ease;
}



.icon-circle i {
  font-size: 1.5rem;
  color: #fff;
  transition: all 0.3s ease-in-out;
}

.icon-circle:hover {
  transform: scale(1.1);
}

.icon-circle:hover i {
  transform: scale(1.2);
  background: linear-gradient(50deg, #001893, #ff0000);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  color: transparent;
  transition: all 0.3s ease-in-out;
}


/* Responsive Adjustments */
@media (max-width: 768px) {
  .icon-circle {
    width: 48px;
    height: 48px;
  }

  .icon-circle i {
    font-size: 1.2rem;
  }
}

@media (max-width: 480px) {
  .intro-icons {
    gap: 0.75rem;
    margin-top: 1rem;
  }

  .icon-circle {
    width: 44px;
    height: 44px;
  }

  .icon-circle i {
    font-size: 1rem;
  }
}

/* ===== Tech Icons End===== */

/* ===== Responsive Styles ===== */
@media (max-width: 1024px) {
  .intro-title {
    font-size: 2.5rem;
    letter-spacing: 0.05em;
  }

  .intro-subtitle {
    font-size: 1.2rem;
  }
}

@media (max-width: 768px) {
  .intro-title {
    font-size: 2rem;
  }

  .intro-subtitle {
    font-size: 1rem;
  }

  .background-scroll {
    animation-duration: 60s; /* slow down on mobile for better UX */
  }
}

@media (max-width: 480px) {
  .intro-content {
    padding: 1rem;
  }

  .intro-title {
    font-size: 1.6rem;
  }

  .intro-subtitle {
    font-size: 0.9rem;
  }
}


/* ===== Intro Grid End ===== */

/* ===== Benefits Grid Section Start ===== */
.benefits-grid-section {
  padding: 4rem 2rem;
  background: linear-gradient(to bottom, #000000, #3e3e3e); /* Black to Ash */
}

.benefits-grid {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 1.5rem;
}

.benefit-box {
  --border-angle: 0deg;
  border-radius: 12px;
  width: 260px;
  padding: 2rem;
  color: #fff;
  display: flex;
  justify-content: center;
  align-items: center;
  border-radius: 1rem;
  box-shadow: 0px 2px 4px hsl(0 0% 0% / 25%);
  border: 1.2px solid transparent;
  position: relative;
  overflow: hidden;
  background: var(--bg);
  transition: color 0.5s ease;
  z-index: 0;
  flex-direction: column;
  text-align: center;
  gap: 0.75rem;
  padding: 2rem;
}

.benefit-box::before {
  content: "";
  position: absolute;
  inset: 0;
  background-image:
    linear-gradient(50deg, #001893, #ff0000),
    conic-gradient(
      from 0deg,
      #001893 0deg,
      #1b158d 10deg,
      #391079 20deg,
      #750b48 30deg,
      #a0052b 40deg,
      #ff0000 50deg,
      rgba(255, 255, 255, 0.1) 60deg 360deg
    );
  z-index: 0;
  top: -100%;
  opacity: 0;
  transition:
    top 0.6s ease-in-out,
    opacity 0.6s ease-in-out;
  border-radius: inherit;
}

.benefit-box:hover::before {
  top: 0;
  opacity: 0.4; /* Reduced from 1 to 0.4 for a more elegant look */
  transition:
    top 0.6s ease-in-out,
    opacity 0.6s ease-in-out;
}

.benefit-box:hover {
  color: #fff;
}

.benefit-box > * {
  position: relative;
  z-index: 1;
}


.benefit-box.b {
  background: linear-gradient(rgb(2, 0, 0), rgb(0, 0, 0)) padding-box,
    conic-gradient(
      from var(--border-angle),
      #001893 0deg,
      #1b158d 5deg,
      #391079 10deg,
      #750b48 15deg,
      #a0052b 20deg,
      #ff0000 25deg,
      rgba(103, 103, 103, 1) 30deg 360deg
    )
    border-box;
}


@keyframes border-angle-rotate {
  from {
    --border-angle: 0deg;
  }
  to {
    --border-angle: 360deg;
  }
}

@property --border-angle {
  syntax: "<angle>";
  initial-value: 0deg;
  inherits: false;
}

.rotate-clockwise {
  animation: border-angle-rotate-clockwise 4s infinite linear;
}

.rotate-counterclockwise {
  animation: border-angle-rotate-counterclockwise 4s infinite linear;
}

@keyframes border-angle-rotate-clockwise {
  from {
    --border-angle: 0deg;
  }
  to {
    --border-angle: 360deg;
  }
}

@keyframes border-angle-rotate-counterclockwise {
  from {
    --border-angle: 0deg;
  }
  to {
    --border-angle: -360deg;
  }
}


/* Responsive for mobile */
@media (max-width: 768px) {
  .benefits-grid {
    flex-direction: column;
    align-items: center;
  }
}


.benefit-icon {
  font-size: 2rem; /* adjust as needed */
  margin-bottom: 0.75rem;
  color: #fff; /* or any brand-accent color */
}

.benefit-title {
  font-size: 1.25rem;
  font-weight: 600;
  margin: 0;
  color: #ffffff;
  z-index: 1;
}

.benefit-description {
  font-size: 0.95rem;
  line-height: 1.5;
  color: rgba(255, 255, 255, 0.85);
  margin: 0;
  z-index: 1;
}

.benefit-box:hover .benefit-icon,
.benefit-box:hover .benefit-title,
.benefit-box:hover .benefit-description {
  transform: scale(1.1); /* Slightly larger */
  transition: transform 0.3s ease-in-out; /* Smooth transition */
}

/* Optional: You can add a slight delay or adjust the scale factor for a more dynamic effect */
.benefit-box .benefit-icon,
.benefit-box .benefit-title,
.benefit-box .benefit-description {
  transition: transform 0.3s ease-in-out;
}
/* ===== Benefits Grid Section End ===== */

/* ===== Service Grid Section Start ===== */
.service-grid-section {
  position: relative;
  overflow: hidden;
  padding: 3rem 1rem;
  background: linear-gradient(to bottom, #3e3e3e, #ffffff);
  z-index: 0;
}

.rotating-image-background {
  position: absolute;
  top: 50%;
  left: 50%;
  width: 80vw;
  height: 80vw;
  transform: translate(-50%, -50%);
  overflow: hidden;
  z-index: -1;
  pointer-events: none;
}

.rotating-image-background video {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);

  width: auto;
  height: auto;
  max-width: none;
  opacity: 0.6;
}

@keyframes rotateVideo {
  from {
    transform: translate(-50%, -50%) rotate(0deg);
  }
  to {
    transform: translate(-50%, -50%) rotate(-360deg);
  }
}

/* The static container with hidden overflow 
.rotating-image-background {
  position: absolute;
  top: 50%;
  left: 50%;
  width: 80vw;
  height: 80vw;
  transform: translate(-50%, -50%);
  overflow: hidden;
  z-index: -1;
  pointer-events: none;
}


.rotating-image-background img {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  animation: rotateImage 60s linear infinite reverse;
  width: auto;
  height: auto;
  max-width: none;
}

@keyframes rotateImage {
  from {
    transform: translate(-50%, -50%) rotate(0deg);
  }
  to {
    transform: translate(-50%, -50%) rotate(-360deg);
  }
} */

.service-list {
  position: relative;
  display: flex;
  flex-wrap: wrap;
  gap: 2rem;
  justify-content: center;
  text-align: center;
  max-width: 1200px;
  margin: 0 auto;
  z-index: 1;
}

/* Main item styles */
.service-item {
  flex: 1 1 300px;
  max-width: 350px;
  padding: 2rem;
  background-color: rgba(255, 255, 255, 0.05);
  backdrop-filter: blur(6px);
  border: 1px solid rgba(255, 255, 255, 0.2);
  border-radius: 16px;
  color: #000;
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.1);
  position: relative;
  z-index: 1;
  
  /* Apply transition only for transform, box-shadow for smoother animation */
  transition: transform 25s ease-out, box-shadow 0.3s ease;
}

/* Hover effect */
.service-item:hover {
  transform: scale(1.15) translateY(-8px);  /* Slight zoom-in and small lift */
  box-shadow: 0 8px 50px rgba(0, 0, 0, 0.2);  /* Enhanced shadow */
  animation: floatingWave 2.5s ease-in-out infinite;  /* Slow, smooth floating effect */
  z-index: 10;  /* Bring hovered item to the front */
}

/* Keyframes for gentle floating wave effect */
@keyframes floatingWave {
  0% {
    transform: scale(1.15) translateY(-8px);  /* Start at original position */
  }
  50% {
    transform: scale(1.15) translateY(-12px); /* Slightly higher during float */
  }
  100% {
    transform: scale(1.15) translateY(-8px); /* Return to initial position */
  }
}

/* Icon Styling */
.service-item .icon {
  font-size: 3rem;
  margin-bottom: 1rem;
  transition: transform 0.3s ease, color 0.3s ease;  /* Smooth transition for transform and color */
}

/* Title Styling */
.service-item .title {
  font-size: 1.5rem;
  margin-bottom: 0.5rem;
  transition: transform 0.3s ease, color 0.3s ease;  /* Smooth transition for transform and color */
}

/* Description Styling */
.service-item .desc {
  font-size: 1rem;
  opacity: 0.9;
  color: #000000;
  transition: transform 0.3s ease, color 0.3s ease;  /* Smooth transition for transform and color */
}

/* Hover effect for icon, title, and description */
.service-item:hover .icon {
  transform: scale(1.1);  /* Slight zoom effect on hover */

}

.service-item:hover .title {
  transform: translateY(-5px);  /* Slight upward movement for title */

}

.service-item:hover .desc {
  transform: translateY(-3px);  /* Slight upward movement for description */

}

@media (max-width: 768px) {
  .rotating-image-background {
    position: absolute;
    top: 0;
    left: 0;
    width: 100vw;
    height: 100%;
    overflow: hidden;
    z-index: -1;
    pointer-events: none;
  }
  
  .rotating-image-background video {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%) rotate(90deg);
    height: 180vw; /* This ensures it fully covers the vertical height when rotated */
    width: auto;
    opacity: 0.6;
    object-fit: cover;
    pointer-events: none;
  }
  
  


  .service-list {
    position: relative;
    display: flex;
    flex-direction: column;
    gap: 1.5rem;
    z-index: 1;
    padding-bottom: 3rem; /* Ensure last item has space */
  }

  .service-item {
    position: relative;
    z-index: 2;
  }
}



/* ===== Service Grid Section End ===== */

/* ===== Extra Grid Section Start ===== */
.extra-grid-section {
  position: relative;
  overflow: hidden;
  padding: 3rem 1rem;
  background: linear-gradient(to bottom, #ffffff, #ffffff);
  z-index: 0;
}

/* ===== Extra Grid Section End ===== */
