/* Stats Cards Styling */
.stats-card {
  background: white;
  padding: 1rem;
  border-radius: 0.5rem;
  box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
  text-align: center;
  border: 1px solid #e5e7eb;
}

.stats-card h4 {
  margin-bottom: 0.5rem;
  color: #6b7280;
  font-size: 0.875rem;
  font-weight: 500;
}

.stats-card p {
  margin: 0;
  font-weight: bold;
  font-size: 1.5rem;
}

/* Responsive adjustments */
@media (max-width: 768px) {
  .stats-card {
    padding: 0.75rem;
  }

  .stats-card p {
    font-size: 1.25rem;
  }
}

@keyframes move {
  0% {
    left: 0%;
  }
  25% {
    left: 50%;
  }
  50% {
    left: 0%;
  }
  75% {
    left: -50%;
  }
  100% {
    left: 0%;
  }
}
a[aria-label="LeetCode"] {
  position: relative;
  animation-name: move;
  animation-duration: 6s;
  animation-fill-mode: forwards;
  /* animation-iteration-count: 2; */
  animation-iteration-count: infinite;
}

/* Multi About Me Section Styles */
.about-scroll-container {
  overflow: hidden;
  width: 100%;
  position: relative;
  background: linear-gradient(
    90deg,
    rgba(255, 255, 255, 1) 0%,
    rgba(255, 255, 255, 0) 5%,
    rgba(255, 255, 255, 0) 95%,
    rgba(255, 255, 255, 1) 100%
  );
  padding: 20px 0;
}

.about-scroll-content {
  display: flex;
  animation: scroll-left 30s linear infinite;
  gap: 2rem;
  width: fit-content;
}

.about-card {
  flex-shrink: 0;
  background: white;
  border-radius: 12px;
  padding: 2rem;
  box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
  border: 1px solid #e5e7eb;
  text-align: center;
  min-width: 280px;
  max-width: 300px;
  transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.about-card:hover {
  transform: translateY(-5px);
  box-shadow: 0 8px 25px rgba(0, 0, 0, 0.15);
}

.about-icon {
  font-size: 3rem;
  color: #3b82f6;
  margin-bottom: 1rem;
  display: flex;
  justify-content: center;
  align-items: center;
}

.about-card h3 {
  font-size: 1.25rem;
  font-weight: 600;
  color: #1f2937;
  margin-bottom: 0.75rem;
}

.about-card p {
  color: #6b7280;
  font-size: 0.95rem;
  line-height: 1.5;
  margin: 0;
}

@keyframes scroll-left {
  0% {
    transform: translateX(0);
  }
  100% {
    transform: translateX(-100%);
  }
}

/* Pause animation on hover */
.about-scroll-container:hover .about-scroll-content {
  animation-play-state: paused;
}

/* Responsive adjustments */
@media (max-width: 768px) {
  .about-card {
    min-width: 250px;
    max-width: 270px;
    padding: 1.5rem;
  }

  .about-icon {
    font-size: 2.5rem;
  }

  .about-card h3 {
    font-size: 1.125rem;
  }

  .about-card p {
    font-size: 0.875rem;
  }
}

/* Video iframe styles */
.video-iframe {
  width: 100%;
  min-height: 180px;
}

/* Rain Animation - Only in margins outside content */
.rain-container {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  pointer-events: none;
  z-index: 1;
  overflow: hidden;
}

/* Rain zones - only in margins around content */
.rain-zone-left {
  position: absolute;
  left: 0;
  top: 0;
  width: 10%;
  height: 100%;
  overflow: hidden;
}

.rain-zone-right {
  position: absolute;
  right: 0;
  top: 0;
  width: 10%;
  height: 100%;
  overflow: hidden;
}

.rain-drop {
  position: absolute;
  width: 3px;
  height: 30px;
  background: linear-gradient(
    to bottom,
    transparent,
    rgba(59, 130, 246, 0.6),
    transparent
  );
  border-radius: 1px;
  box-shadow: 0 0 2px rgba(59, 130, 246, 0.4);
  animation: rain-fall linear infinite;
}

.rain-drop:nth-child(odd) {
  background: linear-gradient(
    to bottom,
    transparent,
    rgba(147, 51, 234, 0.6),
    transparent
  );
  box-shadow: 0 0 2px rgba(147, 51, 234, 0.4);
}

.rain-drop:nth-child(3n) {
  background: linear-gradient(
    to bottom,
    transparent,
    rgba(16, 185, 129, 0.6),
    transparent
  );
  box-shadow: 0 0 2px rgba(16, 185, 129, 0.4);
}

@keyframes rain-fall {
  0% {
    transform: translateY(-100vh);
    opacity: 1;
  }
  100% {
    transform: translateY(100vh);
    opacity: 0.2;
  }
}

/* Position rain drops in left margin */
.rain-zone-left .rain-drop:nth-child(1) {
  left: 20%;
  animation-delay: 0s;
  animation-duration: 2s;
}
.rain-zone-left .rain-drop:nth-child(2) {
  left: 40%;
  animation-delay: 0.3s;
  animation-duration: 2.5s;
}
.rain-zone-left .rain-drop:nth-child(3) {
  left: 60%;
  animation-delay: 0.6s;
  animation-duration: 2.2s;
}
.rain-zone-left .rain-drop:nth-child(4) {
  left: 80%;
  animation-delay: 0.9s;
  animation-duration: 2.8s;
}
.rain-zone-left .rain-drop:nth-child(5) {
  left: 10%;
  animation-delay: 0.2s;
  animation-duration: 2.3s;
}
.rain-zone-left .rain-drop:nth-child(6) {
  left: 30%;
  animation-delay: 0.5s;
  animation-duration: 2.6s;
}
.rain-zone-left .rain-drop:nth-child(7) {
  left: 50%;
  animation-delay: 0.8s;
  animation-duration: 2.1s;
}
.rain-zone-left .rain-drop:nth-child(8) {
  left: 70%;
  animation-delay: 0.1s;
  animation-duration: 2.7s;
}
.rain-zone-left .rain-drop:nth-child(9) {
  left: 90%;
  animation-delay: 0.4s;
  animation-duration: 2.4s;
}
.rain-zone-left .rain-drop:nth-child(10) {
  left: 15%;
  animation-delay: 0.7s;
  animation-duration: 2.9s;
}

/* Position rain drops in right margin */
.rain-zone-right .rain-drop:nth-child(1) {
  left: 20%;
  animation-delay: 0.2s;
  animation-duration: 2.1s;
}
.rain-zone-right .rain-drop:nth-child(2) {
  left: 40%;
  animation-delay: 0.5s;
  animation-duration: 2.6s;
}
.rain-zone-right .rain-drop:nth-child(3) {
  left: 60%;
  animation-delay: 0.8s;
  animation-duration: 2.1s;
}
.rain-zone-right .rain-drop:nth-child(4) {
  left: 80%;
  animation-delay: 0.1s;
  animation-duration: 2.7s;
}
.rain-zone-right .rain-drop:nth-child(5) {
  left: 10%;
  animation-delay: 0.4s;
  animation-duration: 2.4s;
}
.rain-zone-right .rain-drop:nth-child(6) {
  left: 30%;
  animation-delay: 0.7s;
  animation-duration: 2.9s;
}
.rain-zone-right .rain-drop:nth-child(7) {
  left: 50%;
  animation-delay: 0.3s;
  animation-duration: 2.2s;
}
.rain-zone-right .rain-drop:nth-child(8) {
  left: 70%;
  animation-delay: 0.6s;
  animation-duration: 2.5s;
}
.rain-zone-right .rain-drop:nth-child(9) {
  left: 90%;
  animation-delay: 0.9s;
  animation-duration: 2.8s;
}
.rain-zone-right .rain-drop:nth-child(10) {
  left: 15%;
  animation-delay: 0.1s;
  animation-duration: 2.3s;
}
