/* 
Theme Name: Microspace Theme
Text Domain: microspaceengineering
Version: 2.0.7
Author: Bagaz Pattrya
*/

/* Reset default styles */
* {
  margin: 0;
  padding: 0;
  border: 0;
  box-sizing: border-box;
  text-decoration: none;
  list-style: none;
  font-family: "Montserrat", serif;
}

/* Hide scrollbar for WebKit-based browsers (Chrome, Safari) */
::-webkit-scrollbar {
  display: none;
}

.pd-button {
  display: flex;
  width: 50%;
}

.project-button {
  background-color: #7b00ce !important;
  border: none !important;
  color: white;
  padding: 5% 10%;
  font-size: 16px;
  border-radius: 6px;
  cursor: pointer;
  transition: all 0.3s ease-in-out;
  position: relative;
  overflow: hidden;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
}

/* Shine effect setup */
.project-button::before {
  content: "";
  position: absolute;
  top: 0;
  left: -75%;
  width: 50%;
  height: 100%;
  background: linear-gradient(
    120deg,
    rgba(255, 255, 255, 0.4) 0%,
    rgba(255, 255, 255, 0.1) 60%,
    transparent 100%
  );
  transform: skewX(-25deg);
  pointer-events: none;
}

/* Looping animation on hover */
.project-button:hover::before {
  animation: shine 1.5s infinite;
}

@keyframes shine {
  0% {
    left: -75%;
  }
  100% {
    left: 125%;
  }
}

/* Glow + slight move on hover */
.project-button:hover {
  box-shadow: 0 0 15px rgba(123, 0, 206, 0.8);
  transform: translateX(5px);
  font-weight: 600;
}

/* Arrow styling */
.project-button .material-symbols-outlined {
  font-size: 20px;
  opacity: 0;
  transform: translateX(-8px) rotate(-30deg);
  transition: all 0.3s ease-in-out;
}

/* Show arrow on hover */
.project-button:hover .material-symbols-outlined {
  opacity: 1;
  transform: translateX(0) rotate(0deg);
}

/* Hide scrollbar for Firefox */
html {
  scrollbar-width: none;
  overflow-x: hidden;
}

h5 {
  font-weight: 700 !important;
}

/* Modern WP Block Table Styling */
.wp-block-table {
  width: 100%;
  max-width: 100%;
  border-collapse: collapse;
  overflow: hidden;
  background: #f8f9fa00; /* Light background */
  box-shadow: 0px 4px 10px rgba(0, 0, 0, 0.1);
}

/* Table Header */
.wp-block-table th {
  background: #636363; /* WordPress blue */
  color: white;
  padding: 12px;
  text-align: left;
  font-size: 16px;
  font-weight: 600;
}

/* Table Body */
.wp-block-table td {
  padding: 12px;
  border-bottom: 1px solid #ddd;
  font-size: 15px;
  color: rgba(255, 255, 255, 0.678);
}

/* Alternating Row Colors */
.wp-block-table tbody tr:nth-child(even) {
  background: #2e2e2eef;
}

/* Hover Effect */
.wp-block-table tbody tr:hover {
  background: rgba(0, 115, 170, 0.1);
  transition: 0.3s;
}

/* Responsive Table */
.wp-block-table table {
  width: 100%;
}

ol {
  list-style: none; /* Removes default numbering */
  padding-left: 0;
  counter-reset: list-counter; /* Creates a custom counter */
}

ol li {
  position: relative;
  padding-left: 30px; /* Adds space for custom numbering */
  margin-bottom: 10px;
  font-size: 16px;
  font-weight: 500;
  color: rgba(255, 255, 255, 0.8); /* White with 0.8 opacity */
}

ol li::before {
  content: counter(list-counter) "."; /* Custom number */
  counter-increment: list-counter; /* Increments counter */
  position: absolute;
  left: 0;
  top: 0;
  color: rgba(255, 255, 255, 0.8); /* White with 0.8 opacity */
}

ul {
  list-style: none; /* Removes default bullets */
  padding-left: 0; /* Removes default padding */
}

ul li {
  position: relative;
  padding-left: 25px; /* Adds space for the custom bullet */
  margin-bottom: 8px; /* Adds spacing between list items */
  font-size: 16px;
  color: #ffffff; /* Adjust text color */
  font-weight: 500;
}

ul li::before {
  content: "•"; /* Custom bullet */
  color: #ffffff; /* Change to any color */
  font-size: 20px;
  position: absolute;
  left: 0;
  top: 0;
}

.post-meta {
  font-size: 14px;
  color: #666;
  display: flex;
  gap: 10px;
  flex-wrap: wrap;
}

.post-meta span {
  padding: 5px 10px;
  background: #f0f0f0;
  border-radius: 5px;
}

.post-meta .published {
  font-weight: bold;
}

.post-meta .tags,
.post-meta .category {
  color: #0073e6;
}

.post-meta .comments {
  color: #ff5722;
  font-weight: bold;
}

a {
  text-decoration: none !important;
  color: inherit;
  /* Optional: Keeps text color same as parent */
}

/* Hide scrollbar for IE and Edge */
body {
  background-color: #222222;
  padding: 0;
  margin: 0;
  -ms-overflow-style: none;
}

.about-us-container {
  background-color: rgb(34, 34, 34) !important;
  position: relative;
  color: white;
  min-height: calc(var(--vh) * 100);
  width: 100vw !important;
  padding: 10% 20%;
}

.first-section {
  width: 100vw;
  height: calc(var(--vh) * 100);
  display: flex;
  background: linear-gradient(to left, #00115aa2, #000000e7);
  cursor: default;
  position: relative; /* Important for absolute grid child */
  overflow: hidden;
}
/* Grid Overlay */
.first-section::before {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: linear-gradient(to bottom, rgba(0, 0, 0, 0.6), transparent);
  background-image: linear-gradient(
      to right,
      rgba(255, 255, 255, 0.05) 1px,
      transparent 1px
    ),
    linear-gradient(to bottom, rgba(255, 255, 255, 0.05) 1px, transparent 1px);
  background-size: 70px 70px;
  z-index: 0;
  pointer-events: none;
  mask-image: linear-gradient(
    to bottom,
    rgba(0, 0, 0, 1) 10%,
    rgba(0, 0, 0, 0)
  );
  -webkit-mask-image: linear-gradient(
    to bottom,
    rgba(0, 0, 0, 1) 10%,
    rgba(0, 0, 0, 0)
  );
}

.main-about-title {
  font-weight: 700 !important;
  font-size: 3rem;
}

.wp-block-heading {
  color: rgb(255, 255, 255);
  font-weight: 700 !important;
  font-size: large;
  margin-top: 5%;
  padding-bottom: 1%;
  border-bottom: solid 1px rgba(255, 255, 255, 0.247);
}

.founder-container {
  background-color: rgba(199, 42, 42, 0);
  display: flex;
  justify-content: space-between;
  width: 100%;
}

/* .workspace-btn{
  background: red;
  padding: 1% 2%;
  border-radius: 8px;
} */

.founder {
  text-align: right;
}

.text-bold {
  font-weight: bold !important;
}

.cofounder-title {
  font-weight: 500;
  opacity: 0.5;
  font-size: small;
}

.founder-title {
  font-weight: 500;
  opacity: 0.5;
  font-size: small;
}

p {
  text-align: justify;
  font-weight: 300;
  opacity: 0.9;
}

.left-fs {
  width: 40%;
  height: 100%;
  color: white;
  display: flex;
  flex-direction: column;
  justify-content: center;
  padding: 3%;
}

.space-layer {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  overflow: hidden;
  pointer-events: none;
  z-index: 0;
}

.stars-container {
  position: absolute;
  width: 100%;
  height: 100%;
  overflow: hidden;
  z-index: 0;
  pointer-events: none;
}

.star {
  position: absolute;
  width: 2px;
  height: 2px;
  background-color: white;
  border-radius: 50%;
  opacity: 0.2;
  animation: twinkle 4s infinite ease-in-out;
  filter: drop-shadow(0 0 2px white);
}

@keyframes twinkle {
  0%,
  100% {
    opacity: 0.15;
    transform: scale(1);
  }
  50% {
    opacity: 0.4;
    transform: scale(1.2);
  }
}

.comet {
  position: absolute;
  width: 2px;
  height: 2px;
  background-color: white;
  border-radius: 50%;
  box-shadow: 0 0 12px 4px rgba(255, 255, 255, 0.5);
  opacity: 0;
  animation: cometFly 1.5s ease-in forwards;
  pointer-events: none;
}

@keyframes cometFly {
  0% {
    transform: translate(0, 0);
    opacity: 0;
  }
  20% {
    opacity: 1;
  }
  100% {
    transform: translate(600px, 400px);
    opacity: 0;
  }
}

.svg-bg {
  position: absolute;
  top: 20%;
  /* Moves it 20px above the parent’s bottom */
  left: 0;
  /* Moves it 50px to the right from the parent’s left */
  width: 100%;
  height: 100%;
  z-index: 0;
  /* Ensures it stays behind content */
}

.svg-rs {
  position: absolute;
  top: -20%;
  /* Moves it 20px above the parent’s bottom */
  left: 60%;
  /* Moves it 50px to the right from the parent’s left */
  width: 100%;
  height: 100%;
  z-index: 0;
  /* Ensures it stays behind content */
}

.right-fs {
  width: 60%;
  height: 100%;
  color: white;
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  position: relative;
  /* Added to contain absolutely positioned children */
}

.rfs-bg {
  width: 100%;
  height: 100%;
  display: flex;
  flex: 1;
}

.rfs-bg img {
  width: 100% !important;
  height: 100%;
  display: block;
  object-fit: cover;
}

.fs-title {
  font-size: 5rem;
  font-weight: 700;
  z-index: 999;
}

.fs-subtitle {
  font-size: 1rem;
  color: white;
  opacity: 0.9;
  align-self: flex-start; /* ✅ Aligns to left if inside flex */
  text-align: left; /* ✅ Ensures multiline stays left-aligned */
}

#typing-text::after {
  content: "|";
  animation: blink 1s step-end infinite;
  margin-left: 2px;
}

@keyframes blink {
  0%,
  100% {
    opacity: 1;
  }
  50% {
    opacity: 0;
  }
}

.cta-button {
  display: flex;
  width: 50%;
  height: 10%;
  background-color: #447ead;
  color: white;
  font-weight: bold;
  border-radius: 8px;
  justify-content: center;
  align-items: center;
  z-index: 10000;
  cursor: pointer;
  position: relative;
  overflow: hidden;
  transition: transform 0.3s ease, box-shadow 0.3s ease;
}

/* Hover Effects */
.cta-button:hover {
  transform: scale(1.07);
  box-shadow: 0 0 20px #447ead, 0 0 40px rgba(0, 191, 255, 0.3);
}

.cta-button:active {
  transform: scale(0.95);
}

/* Shimmer Effect */
.cta-button::before {
  content: "";
  position: absolute;
  top: 0;
  left: -100%;
  width: 100%;
  height: 100%;
  background: linear-gradient(
    120deg,
    rgba(255, 255, 255, 0) 0%,
    rgba(255, 255, 255, 0.4) 50%,
    rgba(255, 255, 255, 0) 100%
  );
  transform: skewX(-20deg);
  transition: left 0.7s ease-in-out;
  pointer-events: none;
}

.cta-button:hover::before {
  left: 120%;
}

/* === Looping Animated Border === */
.cta-button::after {
  content: "";
  position: absolute;
  top: -2px;
  left: -2px;
  right: -2px;
  bottom: -2px;
  border-radius: 10px;
  background: linear-gradient(270deg, #447ead, #ff00cc, #18a5af, #00bfff);
  background-size: 800% 800%;
  z-index: -1;
  animation: borderMove 6s ease infinite;
  filter: blur(2px);
}

@keyframes borderMove {
  0% {
    background-position: 0% 50%;
  }
  50% {
    background-position: 100% 50%;
  }
  100% {
    background-position: 0% 50%;
  }
}

.grid-container {
  width: 50vw;
  height: calc(var(--vh) * 80);
  position: absolute;
  padding: 10px;
  z-index: 1;
}

/* Base box styling */
.box {
  position: absolute;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  font-size: 20px;
  color: white;
  font-weight: bold;
  border-radius: 25px;
  transition: all 1s cubic-bezier(0.68, -0.55, 0.27, 1.55);
  /* Faster elastic transition */
  transform-origin: center;
  overflow: hidden;
}

.box-back-img {
  position: absolute;
  opacity: 0.1;
}

.box-back-img img {
  width: 150%;
}

.hover-box {
  width: 100px;
  height: 100px;
  display: inline-block;
  margin: 10px;
  background: lightblue;
  text-align: center;
  line-height: 100px;
  font-weight: bold;
}

#hover-info {
  margin-top: 20px;
  font-size: 18px;
  color: white;
  background: black;
  padding: 10px;
  display: inline-block;
}

.box-img-container {
  display: flex;
  width: 50%;
  /* background-color: white; */
  justify-content: center;
  align-items: center;
}

.box-img-container img {
  width: 50%;
  filter: brightness(0) invert(1); /* Makes black appear white */
}

/* Specific sizes and initial positions */
.left-1 {
  width: calc(50% - 15px);
  height: calc(50% - 15px);
  background: rgb(104, 76, 206);
  left: 10px;
  top: 10px;
  animation: shuffleLeft1 15s infinite cubic-bezier(0.68, -0.55, 0.27, 1.55);
}

.left-2 {
  width: calc(50% - 15px);
  height: calc(50% - 15px);
  background: rgb(89, 128, 255);
  left: 10px;
  top: calc(50% + 5px);
  animation: shuffleLeft2 15s infinite cubic-bezier(0.68, -0.55, 0.27, 1.55);
}

.right-fs .right {
  width: calc(50% - 15px);
  height: calc(100% - 20px);
  background: rgb(153, 0, 255);
  left: calc(50% + 5px);
  top: 10px;
  animation: shuffleRight 15s infinite cubic-bezier(0.68, -0.55, 0.27, 1.55);
}

/* Animation for Software Development (top-left → bottom-left → right → top-left) */
@keyframes shuffleLeft1 {
  0%,
  25% {
    /* Top-left (0–2.5s) */
    left: 10px;
    top: 10px;
    width: calc(50% - 15px);
    height: calc(50% - 15px);
    transform: scale(1) rotate(0deg);
    opacity: 1;
    filter: blur(0px);
    box-shadow: 0 0 10px rgba(0, 0, 0, 0.2);
    z-index: 3;
  }

  28% {
    /* Transitioning to bottom-left (3s) */
    left: 10px;
    top: calc(50% + 5px);
    width: calc(50% - 15px);
    height: calc(50% - 15px);
    transform: scale(1.08) rotate(3deg);
    opacity: 0.85;
    filter: blur(1px);
    box-shadow: 0 0 15px rgba(0, 0, 0, 0.3);
    z-index: 2;
  }

  30%,
  58% {
    /* Bottom-left (4–6.5s) */
    left: 10px;
    top: calc(50% + 5px);
    width: calc(50% - 15px);
    height: calc(50% - 15px);
    transform: scale(1) rotate(0deg);
    opacity: 1;
    filter: blur(0px);
    box-shadow: 0 0 10px rgba(0, 0, 0, 0.2);
    z-index: 2;
  }

  62% {
    /* Transitioning to right (7s) */
    left: calc(50% + 5px);
    top: 10px;
    width: calc(50% - 15px);
    height: calc(100% - 20px);
    transform: scale(1.08) rotate(-3deg);
    opacity: 0.85;
    filter: blur(1px);
    box-shadow: 0 0 15px rgba(0, 0, 0, 0.3);
    z-index: 1;
  }

  65%,
  88% {
    /* Right (8–10.5s) */
    left: calc(50% + 5px);
    top: 10px;
    width: calc(50% - 15px);
    height: calc(100% - 20px);
    transform: scale(1) rotate(0deg);
    opacity: 1;
    filter: blur(0px);
    box-shadow: 0 0 10px rgba(0, 0, 0, 0.2);
    z-index: 1;
  }

  92% {
    /* Transitioning back to top-left (11s) */
    left: 10px;
    top: 10px;
    width: calc(50% - 15px);
    height: calc(50% - 15px);
    transform: scale(1.08) rotate(3deg);
    opacity: 0.85;
    filter: blur(1px);
    box-shadow: 0 0 15px rgba(0, 0, 0, 0.3);
    z-index: 3;
  }

  95%,
  100% {
    /* Back to top-left (12s) */
    left: 10px;
    top: 10px;
    width: calc(50% - 15px);
    height: calc(50% - 15px);
    transform: scale(1) rotate(0deg);
    opacity: 1;
    filter: blur(0px);
    box-shadow: 0 0 10px rgba(0, 0, 0, 0.2);
    z-index: 3;
  }
}

/* Animation for Hardware Solutions (bottom-left → right → top-left → bottom-left) */
@keyframes shuffleLeft2 {
  0%,
  25% {
    /* Bottom-left (0–2.5s) */
    left: 10px;
    top: calc(50% + 5px);
    width: calc(50% - 15px);
    height: calc(50% - 15px);
    transform: scale(1) rotate(0deg);
    opacity: 1;
    filter: blur(0px);
    box-shadow: 0 0 10px rgba(0, 0, 0, 0.2);
    z-index: 2;
  }

  28% {
    /* Transitioning to right (3s) */
    left: calc(50% + 5px);
    top: 10px;
    width: calc(50% - 15px);
    height: calc(100% - 20px);
    transform: scale(1.08) rotate(-3deg);
    opacity: 0.85;
    filter: blur(1px);
    box-shadow: 0 0 15px rgba(0, 0, 0, 0.3);
    z-index: 1;
  }

  30%,
  58% {
    /* Right (4–6.5s) */
    left: calc(50% + 5px);
    top: 10px;
    width: calc(50% - 15px);
    height: calc(100% - 20px);
    transform: scale(1) rotate(0deg);
    opacity: 1;
    filter: blur(0px);
    box-shadow: 0 0 10px rgba(0, 0, 0, 0.2);
    z-index: 1;
  }

  62% {
    /* Transitioning to top-left (7s) */
    left: 10px;
    top: 10px;
    width: calc(50% - 15px);
    height: calc(50% - 15px);
    transform: scale(1.08) rotate(3deg);
    opacity: 0.85;
    filter: blur(1px);
    box-shadow: 0 0 15px rgba(0, 0, 0, 0.3);
    z-index: 3;
  }

  65%,
  88% {
    /* Top-left (8–10.5s) */
    left: 10px;
    top: 10px;
    width: calc(50% - 15px);
    height: calc(50% - 15px);
    transform: scale(1) rotate(0deg);
    opacity: 1;
    filter: blur(0px);
    box-shadow: 0 0 10px rgba(0, 0, 0, 0.2);
    z-index: 3;
  }

  92% {
    /* Transitioning back to bottom-left (11s) */
    left: 10px;
    top: calc(50% + 5px);
    width: calc(50% - 15px);
    height: calc(50% - 15px);
    transform: scale(1.08) rotate(-3deg);
    opacity: 0.85;
    filter: blur(1px);
    box-shadow: 0 0 15px rgba(0, 0, 0, 0.3);
    z-index: 2;
  }

  95%,
  100% {
    /* Back to bottom-left (12s) */
    left: 10px;
    top: calc(50% + 5px);
    width: calc(50% - 15px);
    height: calc(50% - 15px);
    transform: scale(1) rotate(0deg);
    opacity: 1;
    filter: blur(0px);
    box-shadow: 0 0 10px rgba(0, 0, 0, 0.2);
    z-index: 2;
  }
}

/* Animation for Website Development (right → top-left → bottom-left → right) */
@keyframes shuffleRight {
  0%,
  25% {
    /* Right (0–2.5s) */
    left: calc(50% + 5px);
    top: 10px;
    width: calc(50% - 15px);
    height: calc(100% - 20px);
    transform: scale(1) rotate(0deg);
    opacity: 1;
    filter: blur(0px);
    box-shadow: 0 0 10px rgba(0, 0, 0, 0.2);
    z-index: 1;
  }

  28% {
    /* Transitioning to top-left (3s) */
    left: 10px;
    top: 10px;
    width: calc(50% - 15px);
    height: calc(50% - 15px);
    transform: scale(1.08) rotate(3deg);
    opacity: 0.85;
    filter: blur(1px);
    box-shadow: 0 0 15px rgba(0, 0, 0, 0.3);
    z-index: 3;
  }

  30%,
  58% {
    /* Top-left (4–6.5s) */
    left: 10px;
    top: 10px;
    width: calc(50% - 15px);
    height: calc(50% - 15px);
    transform: scale(1) rotate(0deg);
    opacity: 1;
    filter: blur(0px);
    box-shadow: 0 0 10px rgba(0, 0, 0, 0.2);
    z-index: 3;
  }

  62% {
    /* Transitioning to bottom-left (7s) */
    left: 10px;
    top: calc(50% + 5px);
    width: calc(50% - 15px);
    height: calc(50% - 15px);
    transform: scale(1.08) rotate(-3deg);
    opacity: 0.85;
    filter: blur(1px);
    box-shadow: 0 0 15px rgba(0, 0, 0, 0.3);
    z-index: 2;
  }

  65%,
  88% {
    /* Bottom-left (8–10.5s) */
    left: 10px;
    top: calc(50% + 5px);
    width: calc(50% - 15px);
    height: calc(50% - 15px);
    transform: scale(1) rotate(0deg);
    opacity: 1;
    filter: blur(0px);
    box-shadow: 0 0 10px rgba(0, 0, 0, 0.2);
    z-index: 2;
  }

  92% {
    /* Transitioning back to right (11s) */
    left: calc(50% + 5px);
    top: 10px;
    width: calc(50% - 15px);
    height: calc(100% - 20px);
    transform: scale(1.08) rotate(3deg);
    opacity: 0.85;
    filter: blur(1px);
    box-shadow: 0 0 15px rgba(0, 0, 0, 0.3);
    z-index: 1;
  }

  95%,
  100% {
    /* Back to right (12s) */
    left: calc(50% + 5px);
    top: 10px;
    width: calc(50% - 15px);
    height: calc(100% - 20px);
    transform: scale(1) rotate(0deg);
    opacity: 1;
    filter: blur(0px);
    box-shadow: 0 0 10px rgba(0, 0, 0, 0.2);
    z-index: 1;
  }
}

.left-gc {
  width: 50%;
  height: 100%;
  display: flex;
  background: #25d366;
}

.right-gc {
  width: 50%;
  height: 100%;
  display: flex;
  background: #25d366;
}

.second-section {
  width: 100vw;
  height: calc(var(--vh) * 100);
  display: flex;
  flex-direction: column;
  background-color: rgb(24, 24, 24);
  align-items: center;
}

.title {
  font-size: 2rem;
  font-weight: 700;
}

.subtitle {
  opacity: 0.7;
}

@keyframes shimmerAnimation {
  0% {
    left: -100%;
  }

  100% {
    left: 100%;
  }
}

.top-container {
  margin-top: 5%;
  width: 90%;
  height: 50%;
  background: linear-gradient(135deg, #7b00ce, #4a00e0, #240046);
  color: white;
  border-radius: 20px;
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  padding: 3%;
  position: relative;
  overflow: hidden;
}

/* Continuous Shimmer Effect */
.top-container::before {
  content: "";
  position: absolute;
  top: 0;
  left: -100%;
  width: 150%;
  height: 100%;
  background: linear-gradient(
    120deg,
    transparent,
    rgba(255, 255, 255, 0.3),
    transparent
  );
  transform: skewX(-30deg);
  animation: shimmerAnimation 3s infinite linear;
  z-index: 2;
}

.top-container::after {
  content: "";
  position: absolute;
  width: 500px;
  height: 500px;
  background: radial-gradient(circle, rgba(255, 0, 0, 0.205), transparent 50%);
  border-radius: 50%;
  top: -150px;
  right: -150px;
  animation: floatCircle 8s ease-in-out infinite alternate;
  z-index: 1;
}

@keyframes floatCircle {
  from {
    transform: translateY(0px) translateX(0px);
  }
  to {
    transform: translateY(30px) translateX(-30px);
  }
}

.top-container .subtitle {
  width: 60%;
  position: relative;
  z-index: 3;
}

.title {
  position: relative;
  z-index: 3;
}

.bottom-card-container {
  width: 90%;
  margin-top: -12%;
  height: calc(var(--vh) * 55);
  background-color: rgba(255, 0, 0, 0);
  display: flex;
  justify-content: space-around;
  z-index: 1000;
}



.card-service {
  position: relative;
  width: 25%;
  height: 100%;
  display: flex;
  flex-direction: column;
  background: linear-gradient(
    to bottom,
    rgb(14, 0, 41) 0%,
    rgb(89, 52, 158) 100%
  );
  border-radius: 8px;
  color: white;
  box-shadow: 0 8px 15px rgba(12, 12, 12, 0.678);
  /* Initial shadow */
  cursor: pointer;
  transition: transform 0.3s ease, box-shadow 0.3s ease;
  overflow: hidden;
  z-index: -1;
}

/* Hover Effects */
.card-service:hover {
  transform: translateY(-10px) scale(1.05) rotate(1deg);
  box-shadow: 0 15px 45px rgba(0, 0, 0, 0.3);
}

/* Glow Effect */
.card-service::before {
  content: "";
  position: absolute;
  top: 50%;
  left: 50%;
  width: 100%;
  height: 100%;
  background: radial-gradient(circle, rgba(0, 132, 255, 0.2), transparent);
  transform: translate(-50%, -50%);
  opacity: 0;
  transition: opacity 0.3s ease-in-out;
}

.card-service:hover::before {
  opacity: 1;
}

/* Click Effect - Bounce */
.card-service:active {
  transform: scale(0.98);
}

.card-service .text-container {
  display: flex;
  height: 40%;
  flex-direction: column;
  padding: 3%;
  justify-content: space-around;
}

.card-title {
  font-size: large;
  font-weight: 700;
}

.card-text {
  opacity: 0.7;
  font-size: normal;
  width: 100%;
  text-align: right;
}

.photo-container {
  width: 100%;
  height: 60%;
  border-radius: 5px;
  display: flex;
  justify-content: center;
  align-items: center;
  /* background: rgb(102, 102, 102); */
}

.photo-container img {
  width: 40%;
  display: flex;
  justify-content: center;
  align-items: center;
}

.third-section {
  color: white;
  position: relative;
  width: 100vw;
  height: calc(var(--vh) * 310);
  display: flex;
  flex-direction: column;
  justify-content: flex-start;
  /* Center .right-box */
  background-color: #222222;
}

.ts-title {
  width: 100%;
  padding: 3%;
  margin-left: 2%;
  height: 5%;
  display: flex;
  font-weight: 700;
  font-size: 3.2rem;
}

.project {
  display: flex;
  width: 100%;
  height: calc(var(--vh) * 100);
  /* background-color: rgba(255, 0, 0, 0.201); */
}

.project-photo {
  display: flex;
  width: 40%;
  height: 100%;
  justify-content: center;
  align-items: center;
}

.slider-wrapper {
  position: relative;
  width: 75%;
  height: 80%;
  overflow: hidden;
  border-radius: 10px;
  box-shadow: 5px 5px 15px rgba(255, 255, 255, 0.2);
}

.project-slider {
  display: flex;
  width: 200%; /* two slides side-by-side */
  height: 100%;
  transition: transform 0.5s ease-in-out;
}

.slide {
  flex: 0 0 50%;
  height: 100%;
}

.slide img {
  width: 100%;
  height: 100%;
  object-fit: fill;
}

/* Arrow button */
.slide-arrow {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  font-size: 24px;
  background-color: rgba(255, 255, 255, 0.6);
  border: none;
  padding: 10px;
  cursor: pointer;
  opacity: 0;
  transition: opacity 0.3s;
  z-index: 2;
}

/* Show on hover */
.slider-wrapper:hover .slide-arrow {
  opacity: 1;
}

/* Left/right position based on class */
.slide-arrow.left {
  left: 10px;
}

.slide-arrow.right {
  right: 10px;
}

/* Dots */
.dots {
  position: absolute;
  bottom: 10px;
  left: 50%;
  transform: translateX(-50%);
  display: flex;
  gap: 10px;
  z-index: 2;
}

.dot {
  width: 12px;
  height: 12px;
  background-color: rgba(255, 255, 255, 0.5);
  border-radius: 50%;
  cursor: pointer;
  transition: background-color 0.3s;
}

.dot.active {
  background-color: white;
}

.project-desc {
  display: flex;
  flex-direction: column;
  width: 60%;
  height: 100%;
  /* background-color: #2579d32d; */
  padding: 5%;
}

.pd-title {
  width: 100%;
  display: flex;
  justify-content: space-between;
  font-size: large;
  opacity: 0.8;
}

.pd-title-right {
  font-weight: 700;
}

.pd-main-title {
  margin-top: 2%;
  font-weight: 700;
  font-size: 2rem;
}

.project-detail {
  opacity: 0.7;
}

.left-box {
  width: 30vw;
  height: 25vw;
  border-radius: 30px;
  background-color: #1f043b;
  display: flex;
  flex-direction: column;
  padding: 5%;
  margin-left: 5%;
}

.lb-subtitle {
  color: white;
  opacity: 0.6;
}

.right-box {
  height: 25vw;
  width: 70vw;
  background: #1f043b;
  border-radius: 30px 0px 0px 30px;
  display: flex;
  flex-wrap: wrap;
  padding: 10px;
  margin-left: 5%;
  padding-left: 5%;
  column-gap: 5%;
}

.main-title {
  font-size: 2rem;
  font-weight: 700;
  color: white;
}

.right-box-item {
  height: calc(var(--vh) * 35);
  width: 25vw;
  border-radius: 8px;
  display: flex;
  justify-content: center;
  /* background: rgba(255, 99, 71, 0.192); */
}

.real-box {
  width: 65%;
  height: 100%;
  background-color: rgb(255, 255, 255);
  border-radius: 8px;
  box-shadow: 0 4px 10px rgba(0, 0, 0, 0.2);
  border: solid 1px black;
  padding: 2.5%;
}

.real-box-inside {
  display: flex;
  width: 100%;
  height: 100%;
  border-radius: 5px;
  align-items: flex-end;
  position: relative;
  overflow: hidden;
  /* Ensures the image doesn't overflow */
}

.real-box-inside img {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  /* Ensures the image covers the entire area */
  z-index: 1;
  /* Moves the image to the background */
}

.real-box-title {
  color: white;
  font-weight: 900;
}

.real-box-subtitle {
  color: white;
  font-size: small;
  opacity: 0.7;
}

.real-box-text-container {
  padding: 3%;
  background: linear-gradient(to top, #1f043b, transparent);
  display: flex;
  flex-direction: column;
  width: 100%;
  height: 40%;
  position: relative;
  /* Keeps text above the image */
  z-index: 1;
}

.right-box-item:nth-child(1) {
  margin-top: -20%;
}

.right-box-item:nth-child(2) {
  margin-top: -20%;
}

.right-box-item:nth-child(3) {
  margin-top: 2%;
}

.right-box-item:nth-child(4) {
  margin-top: 2%;
}

.fourth-section {
  width: 100vw;
  height: calc(var(--vh) * 100);
  display: flex;
  background-color: rgb(20, 20, 20);
  position: relative;
}

.left-fourth-section {
  /* background-color: #ffcc00; */
  color: #ffffff;
  display: flex;
  flex-direction: column;
  justify-content: center;
  width: 40%;
  padding: 2%;
  padding-left: 5%;
  height: 100%;
}

.right-fourth-section {
  display: flex;
  flex-direction: column;
  justify-content: center;
  width: 70%;
  padding: 2%;
  height: 100%;
}

.right-fbox {
  height: 20vw;
  width: 60vw;
  background: #6005c0;
  border-radius: 30px;
  display: flex;
  flex-wrap: wrap;
  padding: 10px;
  padding-left: 5%;
  column-gap: 5%;
}

.right-fbox-item {
  height: calc(var(--vh) * 30);
  width: 25vw;
  border-radius: 8px;
  display: flex;
  justify-content: center;
  /* background: rgba(255, 99, 71, 0.192); */
}

.real-fbox {
  width: 100%;
  height: 70%;
  background-color: #9c72ff;
  border-radius: 8px;
  box-shadow: 0 4px 10px rgba(0, 0, 0, 0.2);
  /* Subtle base shadow */
  padding: 5%;
  display: flex;
  position: relative;
  /* Needed for the highlight pseudo-element */
  overflow: hidden;
  /* Keeps the highlight within bounds */
  animation: highlight 4s infinite ease-in-out;
  transition: all 0.3s ease;
  /* Smooth transition for hover */
  cursor: pointer;
  /* Indicates interactivity */
}

/* Define the highlight effect using a pseudo-element */
.real-fbox::before {
  content: "";
  position: absolute;
  top: 0;
  left: -100%;
  /* Starts off-screen */
  width: 50%;
  /* Width of the highlight */
  height: 100%;
  background: linear-gradient(
    to right,
    rgba(255, 255, 255, 0) 0%,
    rgba(255, 255, 255, 0.4) 50%,
    rgba(255, 255, 255, 0) 100%
  );
  transform: skewX(-20deg);
  /* Slight angle for style */
  animation: sweep 4s infinite ease-in-out;
}

/* Hover effect */
.real-fbox:hover {
  background-color: rgb(180, 140, 255);
  /* Slightly brighter on hover */
  box-shadow: 0 6px 15px rgba(0, 0, 0, 0.25);
  /* Elevated shadow */
  transform: translateY(-3px);
  /* Slight lift for a "pop" effect */
}

/* Highlight sweep animation */
@keyframes sweep {
  0% {
    left: -100%;
    /* Starts off-screen to the left */
  }

  20% {
    left: 100%;
    /* Moves across to the right */
  }

  100% {
    left: 100%;
    /* Stays off-screen until the next cycle */
  }
}

/* Base animation to keep timing consistent (optional subtle background shift) */
@keyframes highlight {
  0%,
  25%,
  100% {
    background-color: rgb(156, 114, 255);
  }

  10% {
    background-color: rgb(170, 130, 255);
    /* Subtle brighten */
  }
}

/* Staggered delays for sequential highlighting */
.right-fbox-item:nth-child(1) .real-fbox,
.right-fbox-item:nth-child(1) .real-fbox::before {
  animation-delay: 0s;
}

.right-fbox-item:nth-child(2) .real-fbox,
.right-fbox-item:nth-child(2) .real-fbox::before {
  animation-delay: 1s;
}

.right-fbox-item:nth-child(4) .real-fbox,
.right-fbox-item:nth-child(4) .real-fbox::before {
  animation-delay: 3s;
}

.right-fbox-item:nth-child(3) .real-fbox,
.right-fbox-item:nth-child(3) .real-fbox::before {
  animation-delay: 2s;
}

.right-fbox-item:nth-child(1) {
  margin-top: -3%;
}

.right-fbox-item:nth-child(2) {
  margin-top: -3%;
}

.right-fbox-item:nth-child(3) {
  margin-top: -5%;
}

.right-fbox-item:nth-child(4) {
  margin-top: -5%;
}

.fbox-image-container {
  width: 30%;
  height: 100%;
  display: flex;
  overflow: hidden;
  /* Prevents overflow */
}

.fbox-image-container img {
  max-width: 100%;
  /* Ensures the image doesn't exceed the container's width */
  height: auto;
  /* Maintains aspect ratio */
  object-fit: contain;
  /* Ensures the image fits within the container */
}

.fbox-text-container {
  color: white;
  width: 68%;
  height: 100%;
  display: flex;
  flex-direction: column;
  /*background-color: plum;*/
  margin-left: 2%;
}

.fbox-title {
  font-size: 1.2rem;
}

.fbox-subtitle {
  font-size: small;
  text-align: left;
  opacity: 0.8;
}

.lfs-bold {
  font-size: 4rem;
  font-weight: 600;
  color: #9c72ff;
}

.lfs-normal {
  font-size: 2rem;
}

.down-text {
  /* background-color: red; */
  display: flex;
}

.client-list {
  width: 100vw;
  min-height: calc(var(--vh) * 40);
  background-color: #141414;
  display: flex;
  flex-direction: column;
  justify-content: center;
  position: relative;
}

.client-title {
  width: 100%;
  max-height: 10%;
  display: flex;
  justify-content: center;
  align-items: center;
  color: white;
  font-weight: 700;
}

.client-section {
  display: flex;
  justify-content: center;
  width: 100%;
  height: 30%;
  column-gap: 5%;
  /* background: white; */
}

.client {
  display: flex;
  margin-top: 2%;
  justify-content: center;
  align-items: center;
  width: 10%;
  max-height: 20%;
  /* background-color: red; */
}

.client img {
  object-fit: contain;
  width: 40%;
}


.grid-overlay-top {
  position: absolute;
  bottom: 0;
  left: 0;
  width: 100%;
  height: 100%;
  z-index: 0;
  pointer-events: none;

  background-image: linear-gradient(
      to right,
      rgba(255, 255, 255, 0.05) 1px,
      transparent 1px
    ),
    linear-gradient(to bottom, rgba(255, 255, 255, 0.1) 1px, transparent 1px);
  background-size: 50px 50px;

  /* Fading out from bottom to bottom */
  mask-image: linear-gradient(to bottom, rgba(0, 0, 0, 1), transparent);
  -webkit-mask-image: linear-gradient(to bottom, rgba(0, 0, 0, 1), transparent);
}

.grid-overlay {
  position: absolute;
  bottom: 0;
  left: 0;
  width: 100%;
  height: 100%;
  z-index: 0;
  pointer-events: none;

  background-image: linear-gradient(
      to right,
      rgba(255, 255, 255, 0.05) 1px,
      transparent 1px
    ),
    linear-gradient(to top, rgba(255, 255, 255, 0.1) 1px, transparent 1px);
  background-size: 50px 50px;

  /* Fading out from bottom to top */
  mask-image: linear-gradient(to top, rgba(0, 0, 0, 1), transparent);
  -webkit-mask-image: linear-gradient(to top, rgba(0, 0, 0, 1), transparent);
}


.bold {
  font-weight: 700 !important;
}

.mobile-only {
  display: none !important;
}

.video-section {
  position: relative;
  width: 100%;
  height: 100vh;
  overflow: hidden;
}

#bg-video {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  z-index: 1000;

  filter: blur(2px); /* adjust px value to increase/decrease blur */
}

/* Gradient overlays */
.video-section::before,
.video-section::after {
  content: "";
  position: absolute;
  left: 0;
  width: 100%;
  height: 15%; /* adjust height for stronger effect */
  pointer-events: none; /* so it doesn’t block clicks */
  z-index: 1;
}

.video-section::before {
  top: 0;
  background: linear-gradient(to bottom, rgba(0, 0, 0, 0.6), transparent);
}

.video-section::after {
  bottom: 0;
  background: linear-gradient(to top, rgba(0, 0, 0, 0.6), transparent);
}

.video-overlay {
  position: absolute;
  top: 50%;
  left: 5%;
  transform: translateY(-50%);
  color: white;
  z-index: 2; /* above gradients */
}

.video-overlay h1,
.video-overlay p {
  text-shadow: 0 2px 6px rgba(0, 0, 0, 0.7);
}

.video-overlay h1 {
  font-size: clamp(1.8rem, 2vw + 2rem, 3.5rem);
  font-weight: 700;
  margin: 0 0 0.5rem;
}

.video-overlay p {
  font-size: clamp(1rem, 1.2vw + 0.5rem, 1.5rem);
  font-weight: 400;
  margin: 0;
}

@media (max-width: 768px) {
  #bg-video {
    object-fit: cover;
    object-position: 40% center; /* fine-tuned shift */
  }

  .big-screen {
    display: none !important;
  }

  .first-section {
    background: linear-gradient(to top, #0c001fa2, #000000e7);
  }

  .about-us-container {
    width: 100vw !important;
    padding: 10% 10%;
  }

  .main-about-title {
    margin-top: calc(var(--vh) * 7);
    font-weight: 700 !important;
    font-size: 2.5rem;
  }

  .hamburger {
    display: none;
    /* Hidden on desktop */
    cursor: pointer;
    flex-direction: column;
    gap: 5px;
    color: white;
    z-index: 100001;
  }

  

  .left-fs {
    width: 100%;
    height: 100%;
    color: white;
    display: flex;
    flex-direction: column;
    justify-content: center;
    padding: 5%;
  }

  .fs-title {
    font-size: 3rem;
  }

  .mobile-only {
    display: flex !important;
  }

  .top-container {
    margin-top: 20%;
    width: 90%;
    height: 25%;
    margin-bottom: 5%;
  }

  .top-container .subtitle {
    width: 100%;
    font-size: smaller;
  }

  .bottom-card-container {
    width: 90%;
    margin-top: 0%;
    background-color: rgba(255, 0, 0, 0);
    display: flex;
    flex-direction: column;
    justify-content: space-around;
    z-index: 1000;
  }

  .pd-button {
    display: flex;
    width: 100%;
  }

  .project-button::before {
    width: 100% !important;
  }

  @keyframes float {
    0% {
      transform: translateY(0);
    }

    50% {
      transform: translateY(-5px);
    }

    100% {
      transform: translateY(0);
    }
  }

  @keyframes shimmerAnimation {
    0% {
      left: -100%;
    }

    100% {
      left: 100%;
    }
  }

  .cta-button {
    display: flex;
    width: 70%;
    height: 7%;
    background-color: #7b00ce;
    color: white;
    border-radius: 8px;
    justify-content: center;
    align-items: center;
    z-index: 99999;
    position: relative;
    overflow: hidden;
    /* Ensures shimmer effect stays inside */
  }

  /* Continuous Shimmer Effect */
  .cta-button::before {
    content: "";
    position: absolute;
    top: 0;
    left: -100%;
    width: 150%;
    height: 100%;
    background: linear-gradient(
      120deg,
      transparent,
      rgba(255, 255, 255, 0.4),
      transparent
    );
    transform: skewX(-30deg);
    animation: shimmerAnimation 2.5s infinite linear;
  }

  .card-service {
    color: rgba(255, 255, 255, 0.897);
    width: 100%;
    height: 30%;
    display: flex;
    flex-direction: row;
    gap: 2%;
    background: linear-gradient(135deg, #7c00ce9d, #4b00e07c, #240046);
    border-radius: 8px;
    box-shadow: 0 8px 15px rgba(0, 0, 0, 0.795);
    /* Shadow effect */
    padding: 2%;
    z-index: -1;
  }

  .card-title {
    font-size: 1rem;
  }

  .card-text {
    display: none;
  }

  .photo-container {
    width: 30%;
    height: 100%;
    border-radius: 5px;
    justify-content: center;
    align-items: center;
  }

  .photo-container img {
    width: 70%;
    display: flex;
    justify-content: center;
    align-items: center;
  }

  .card-service .text-container {
    width: 70%;
    padding-right: 2%;
  }

  /* Mobile Menu */
  .mobile-menu {
    position: absolute;
    top: 60px;
    right: 0;
    background-color: #333;
    width: 200px;
    display: none;
    flex-direction: column;
    text-align: left;
    padding: 10px;
  }

  .mobile-menu a {
    color: white;
    text-decoration: none;
    padding: 10px;
    display: block;
  }

  /* Show the menu when active */
  .mobile-menu.active {
    display: flex;
  }

  

  .third-section {
    display: flex;
    flex-direction: column;
    justify-content: flex-start;
    height: auto;
    /* Center .right-box */
    /* background-color: #d9d9d9; */
  }


  .project {
    display: flex;
    width: 100%;
    height: auto;
    flex-direction: column;
    /* background-color: rgba(255, 0, 0, 0.201); */
  }

  .mobile-spacer {
    height: calc(var(--vh) * 8);
  }

  .project-photo {
    display: flex;
    width: 100%;
    height: 100%;
    /* background-color: #25d36512; */
    justify-content: center;
    align-items: center;
  }

  .project-img {
    width: 70%;
    height: 90%;
    display: flex;
    /* background-color: rgba(255, 0, 0, 0); */
    overflow: hidden;
    border-radius: 10px;
    box-shadow: 5px 5px 15px rgba(255, 255, 255, 0.2);
  }

  .project-img img {
    object-fit: cover;
    width: 100%;
  }

  .pd-title {
    font-size: small;
  }

  .pd-main-title {
    margin-top: 2%;
    font-weight: 700;
    font-size: 1.2rem;
  }

  .project-detail {
    font-size: smaller;
    text-align: justify;
  }

  .project-desc {
    display: flex;
    flex-direction: column;
    width: 100%;
    height: 100%;
    /* background-color: #2579d32d; */
    padding: 5%;
  }

  .left-box {
    margin-top: calc(var(--vh) * 3);
    width: 90vw;
    height: calc(var(--vh) * 30);
    border-radius: 10px;
    background-color: #1f043b;
    display: flex;
    flex-direction: column;
    padding: 5%;
    margin-left: 0%;
  }

  .lb-subtitle {
    color: white;
    font-size: smaller;
    opacity: 0.6;
  }

  .fourth-section {
    flex-direction: column;
    align-items: center;
    padding-top: 5%;
  }

  .upper-section-fs {
    background-color: #5800b6;
    width: 90%;
    height: 25%;
    display: flex;
    flex-direction: column;
    border-radius: 10px;
    color: white;
    padding: 5%;
  }

  .upper-section-title {
    font-size: 1.8rem;
  }

  .upper-section-subtitle {
    opacity: 0.7;
    font-size: small;
  }

  .lower-section-fs {
    width: 100%;
    height: 100%;
    align-items: center;
    display: flex;
    flex-direction: column;
    row-gap: 10px;
  }

  .right-fbox-item {
    height: calc(var(--vh) * 16);
    width: 90vw;
    border-radius: 8px;
    display: flex;
    justify-content: center;
    /* background: rgba(255, 99, 71, 0.192); */
  }

  .real-fbox {
    width: 100%;
    height: 100%;
    background-color: rgb(255, 255, 255);
    border-radius: 8px;
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.2);
    border: solid 1px rgba(0, 0, 0, 0.39);
    padding: 2.5%;
    display: flex;
  }

  /* Staggered delays for sequential highlighting */
  .right-fbox-item:nth-child(1) .real-fbox,
  .right-fbox-item:nth-child(1) .real-fbox::before {
    animation-delay: 0s;
  }

  .right-fbox-item:nth-child(2) .real-fbox,
  .right-fbox-item:nth-child(2) .real-fbox::before {
    animation-delay: 1s;
  }

  .right-fbox-item:nth-child(3) .real-fbox,
  .right-fbox-item:nth-child(3) .real-fbox::before {
    animation-delay: 2s;
  }

  .right-fbox-item:nth-child(4) .real-fbox,
  .right-fbox-item:nth-child(4) .real-fbox::before {
    animation-delay: 3s;
  }

  .right-fbox-item:nth-child(1) {
    margin-top: 0%;
  }

  .right-fbox-item:nth-child(2) {
    margin-top: 0%;
  }

  .right-fbox-item:nth-child(3) {
    margin-top: 0%;
  }

  .right-fbox-item:nth-child(4) {
    margin-top: 0%;
  }

  

  .ts-title {
    font-size: 2.5rem;
    margin-top: 5%;
    width: 100%;
    padding: 3%;
    height: 5%;
    display: flex;
    flex-direction: column;
    align-items: center;
  }

  .lower-ts-section {
    width: 100%;
    height: 60%;
    padding: 2%;
    display: flex;
    flex-wrap: wrap;
    row-gap: 2%;
    gap: 2%;
    align-items: center;
    justify-content: center;
    /* background-color: #620606; */
  }

  .real-box {
    width: 100%;
    height: 100%;
    background-color: rgb(255, 255, 255);
    border-radius: 8px;
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.2);
    border: solid 1px rgba(0, 0, 0, 0.438);
    padding: 2.5%;
  }

  .right-box-item {
    height: calc(var(--vh) * 30);
    width: 40vw;
    border-radius: 8px;
    display: flex;
    justify-content: center;
    background: rgba(255, 99, 71, 0.4);
  }

  .right-box-item:nth-child(1) {
    margin-top: 0%;
  }

  .right-box-item:nth-child(2) {
    margin-top: 0%;
  }

  .right-box-item:nth-child(3) {
    margin-top: 0%;
  }

  .right-box-item:nth-child(4) {
    margin-top: 0%;
  }

  .client-section {
    /* background-color: red; */
    height: 80%;
    flex-wrap: wrap;
  }

  .client {
    width: 20%;
    height: 40%;
    /* background-color: red; */
  }

  .client img {
    object-fit: contain;
    width: 60%;
    height: 90%;
  }
}
