.header {
  background-color: transparent;
  transition: background-color 0.3s ease, box-shadow 0.3s ease;
}

.header.scrolled {
  background-color: rgba(40, 40, 40, 0.9); /* Dark background */
  box-shadow: 0 2px 12px rgba(0, 0, 0, 0.05);
}

.animated-bg {
  position: absolute;
  inset: 0;
  z-index: 0;
  overflow: hidden;
}

.animated-line {
  position: absolute;
  width: 1.5px;
  height: 200%;
  background: linear-gradient(
    to bottom,
    rgba(255, 255, 255, 0.1),
    rgba(255, 255, 255, 0)
  );
  animation: moveLines 8s linear infinite;
  box-shadow: 0 0 10px rgba(255, 255, 255, 0.1);
}

.animated-line:nth-child(1) {
  left: 10%;
  animation-delay: 0s;
}

.animated-line:nth-child(2) {
  left: 30%;
  animation-delay: 2s;
}

.animated-line:nth-child(3) {
  left: 50%;
  animation-delay: 4s;
}

.animated-line:nth-child(4) {
  left: 70%;
  animation-delay: 6s;
}

.animated-line:nth-child(5) {
  left: 90%;
  animation-delay: 8s;
}

@keyframes moveLines {
  0% {
    transform: translateY(0);
  }
  100% {
    transform: translateY(-50%);
  }
}

.hero-animated {
  min-height: 100vh;
  position: relative;
  overflow: hidden;
  background: radial-gradient(ellipse at 40% 30%, #0077b6, #002b23);
  animation: pulseBackground 20s ease-in-out infinite;
}

@keyframes pulseBackground {
  0% {
    background-position: 40% 30%;
    filter: brightness(1);
  }
  50% {
    background-position: 60% 70%;
    filter: brightness(1.2);
  }
  100% {
    background-position: 40% 30%;
    filter: brightness(1);
  }
}
.about-img-wrapper {
  perspective: 1000px;
  display: inline-block;
}

.about-img {
  width: 80%;
  height: auto;
  border-radius: 20px;
  box-shadow: 0 20px 40px rgba(194, 228, 2, 0.2), 0 0 30px rgba(3, 107, 65, 0.1);
  transform-style: preserve-3d;
  transform: rotateY(-10deg) rotateX(5deg);
  animation: float3D 6s ease-in-out infinite;
  transition: transform 0.3s ease;
}

.about-img:hover {
  transform: rotateY(0deg) rotateX(0deg) scale(1.03);
}
@keyframes float3D {
  0% {
    transform: rotateY(-10deg) rotateX(5deg) translateY(0);
  }
  50% {
    transform: rotateY(-5deg) rotateX(8deg) translateY(-10px);
  }
  100% {
    transform: rotateY(-10deg) rotateX(5deg) translateY(0);
  }
}
.scroll-down-indicator {
  position: absolute;
  bottom: 40px;
  left: 50%;
  transform: translateX(-50%);
  z-index: 10;
}

.scroll-down-indicator .arrow {
  display: inline-block;
  width: 24px;
  height: 24px;
  border-left: 3px solid white;
  border-bottom: 3px solid white;
  transform: rotate(-45deg);
  animation: bounce 2s infinite;
  opacity: 0.8;
}

@keyframes bounce {
  0%, 100% {
    transform: translateY(0) rotate(-45deg);
  }
  50% {
    transform: translateY(10px) rotate(-45deg);
  }
}

.vision-mission .card-hover {
  transition: transform 0.4s ease, box-shadow 0.4s ease;
  cursor: pointer;
}

.vision-mission .card-hover:hover {
  transform: translateY(-5px) scale(1.02);
  box-shadow: 0 20px 40px rgba(41, 202, 227, 0.2);
  border: 1px solid rgba(9, 142, 213, 0.2);
}
.timeline {
  position: relative;
  margin-left: 30px;
  padding-left: 20px;
}

.timeline::before {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  width: 3px;
  height: 100%;
  background-color: #00b4d8;
}


.timeline-item {
  position: relative;
  margin-bottom: 40px;
  padding-left: 20px;
}

.timeline-dot {
  position: absolute;
  left: -26px; /* Default desktop */
  top: 40px;
  width: 16px;
  height: 16px;
  background: #00b4d8;
  border-radius: 50%;
  border: 2px solid white;
  box-shadow: 0 0 0 2px #00b4d8;
}

/* Responsive correction for smaller screens */
@media (max-width: 768px) {
  .timeline-dot {
    left: -22px !important; /* Shift closer to the timeline on mobile */
  }
}

@media (max-width: 480px) {
  .timeline-dot {
    left: -14px ; /* Even closer on very small screens */
  }
}
@media (width: 768px) {
  .timeline-dot {
    left: -26px !important;
  }
}


.timeline-content {
  background: #f8f9fa;
  padding: 15px 20px;
  border-radius: 8px;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.05);
}

/* 📱 Responsive Adjustments */
@media (max-width: 767px) {
  .timeline {
    margin-left: 10px;
    padding-left: 15px;
    border-left-width: 2px;
  }

  .timeline::before {
    left: -1px;
    width: 2px;
  }

  .timeline-dot {
    left: -22.8px;
    width: 14px;
    height: 14px;
    box-shadow: 0 0 0 1.5px #00b4d8;
  }

  .timeline-content {
    padding: 13px 16px;
    font-size: 14px;
  }
}

.pill-shape {
  position: absolute;
  width: 60px;
  height: 25px;
  background: linear-gradient(135deg, #ffffff22, #ffffff55);
  border-radius: 50px;
  transform: rotate(45deg);
  animation: float 5s infinite ease-in-out;
}
.pill-2-shape {
  position: absolute;
  width: 60px;
  height: 25px;
  background: linear-gradient(135deg, #ffffff22, #ffffff55);
  border-radius: 50px;
  transform: rotate(120deg);
  animation: floatRotate 6s infinite ease-in-out;
}

@keyframes rotate180 {
  0% {
    transform: rotate(120deg);
  }
  50% {
    transform: rotate(140deg);
  }
  100% {
    transform: rotate(120deg);
  }
}

.pill-2 {
  width: 40px;
  height: 18px;
  top: 60%;
  left: 20%;
  animation-delay: 3s;
}

.pill-3 {
  width: 50px;
  height: 22px;
  top: 40%;
  left: 80%;
  animation-delay: 3s;
}

.pill-4 {
  width: 30px;
  height: 15px;
  top: 80%;
  left: 80%;
  animation-delay: 3s;
}

@keyframes float {
  0% {
    transform: translateY(0) rotate(45deg);
  }
  50% {
    transform: translateY(-20px) rotate(60deg);
  }
  100% {
    transform: translateY(0) rotate(45deg);
  }
}
@keyframes floatRotate {
  0% {
    transform: translateY(0) rotate(120deg);
  }
  50% {
    transform: translateY(-20px) rotate(140deg);
  }
  100% {
    transform: translateY(0) rotate(120deg);
  }
}
