/* Smooth scrolling behavior */
html {
  scroll-behavior: smooth;
}

/* Navigation link styles */
.nav-link {
  transition: all 0.3s ease;
}

/* Active link styles for desktop */
.nav-link.active {
  color: white !important;
  font-weight: 500 !important;
}

/* Active state for contact button */
button.nav-link.active {
  background: white !important;
  color: black !important;
  border-color: white !important;
}

/* Mobile menu active link */
#mobile-menu .nav-link.active {
  color: white !important;
  font-weight: 500 !important;
  border-left: 4px solid #3b82f6 !important;
  padding-left: 1rem !important;
}

/* Section spacing */
section {
  scroll-margin-top: 100px;
}

/* Mobile menu transitions */
#mobile-menu {
  transition: transform 0.3s ease-in-out;
}

/* Footer link hover states */
footer .nav-link:hover {
  color: #3b82f6 !important;
}

.font_urbanist {
  font-family: "Urbanist", sans-serif;
}

.arrow-icon {
  opacity: 0;
  transition: opacity 0.3s ease;
}

.card:hover .arrow-icon {
  opacity: 1;
}

/* Prevent scrolling when mobile menu is open */
body.menu-open {
  overflow: hidden;
}

/* Smooth transitions for mobile menu */
.mobile-menu {
  transition: transform 0.3s ease-in-out;
}

.mainContainer {
  max-width: 1400px;
  margin-inline: auto;
}

@media (max-width: 514px) {
  .cardss {
    margin-top: -250px;
  }
}
@media (max-width: 460px) {
  .cardss {
    margin-top: -200px;
  }
}

/* style.css */
/* Desktop dropdown styles */
.group:hover .group-hover\:opacity-100 {
  opacity: 1;
}

.group:hover .group-hover\:visible {
  visibility: visible;
}

/* Mobile dropdown styles */
.mobile-dropdown-content {
  transition: all 0.3s ease;
  max-height: 0;
  overflow: hidden;
}

.mobile-dropdown.active .mobile-dropdown-content {
  display: block;
  max-height: 500px; /* Adjust based on content */
}

.mobile-dropdown.active svg {
  transform: rotate(180deg);
}

#alphaBuddySection {
  scroll-margin-top: 100px;
}

.header {
  text-align: center;
  margin-bottom: 40px;
  padding: 0 15px;
}

.header h1 {
  font-size: 2.5em;
  margin: 0;
}

.header p {
  font-size: 1.2em;
  color: #aaa;
}

.timeline {
  position: relative;
  max-width: 1100px;
  margin-inline: auto;
  padding: 0 15px;
}
.timeline-item::before {
  content: attr(data-step);
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  font-size: 100px;
  color: #1b1b1b;
  font-weight: 900;
  z-index: 0;
  pointer-events: none;
  display: block;

  /* Gradient fade effect */
  -webkit-mask-image: linear-gradient(
    to bottom,
    rgba(0, 0, 0, 1),
    rgba(0, 0, 0, 0)
  );
  -webkit-mask-size: 100% 100%;
  -webkit-mask-repeat: no-repeat;
  mask-image: linear-gradient(to bottom, rgba(0, 0, 0, 1), rgba(0, 0, 0, 0));
  mask-size: 100% 100%;
  mask-repeat: no-repeat;
}

.right-item::before {
  left: 20%;
  padding-left: 15px;
}

.left-item::before {
  right: 20%;
  padding-right: 15px;
}

.timeline-item {
  position: relative;
  padding: 30px 0;
}

.timeline-content {
  width: 40%;
  padding: 20px;
  /* background-color: #111; */
  border-radius: 6px;
  position: relative;
}

.timeline-content h2 {
  margin: 0;
  font-size: 1.5em;
}

.timeline-content p {
  font-size: 1em;
  margin-top: 10px;
}

.circle {
  width: 50px;
  height: 50px;
  line-height: 50px;
  border-radius: 50%;
  text-align: center;
  color: white;
  font-size: 1.3em;
  font-weight: bold;
  position: absolute;
  top: 20%;
  z-index: 2;
}

.circle.blue {
  /* background-color: #3498db; */
  right: 40%;
  margin-left: -25px;
}

.circle.yellow {
  /* background-color: #f1c40f; */
  left: 40%;
  margin-right: -25px;
}

.left-item {
  text-align: right;
}

.left-item .timeline-content {
  margin-left: 0;
  margin-right: 25%;
}

.right-item {
  text-align: left;
}

.right-item .timeline-content {
  margin-left: 60%;
  margin-right: 0;
}

.zigzag-line {
  position: absolute;
  border-top: 2px dashed #444;
  height: 2px;
  width: 25%;
  z-index: 1;
}

.right-item .zigzag-line {
  right: 42%;
  top: 30%;
  transform: rotate(-53deg);
  transform-origin: right center;
}

.left-item .zigzag-line {
  left: 42%;
  top: 30%;
  transform: rotate(56deg);
  transform-origin: left center;
}

/* Responsive Styling */

@media (max-width: 1024px) {
  .timeline-item {
    position: relative;
    padding: 20px 0;
  }

  .zigzag-line {
    width: 27%;
  }
  .right-item .zigzag-line {
    right: 42%;
    top: 30%;
    transform: rotate(-56deg);
    transform-origin: right center;
  }
}

@media (max-width: 970px) {
  .timeline-item {
    position: relative;
    padding: 10px 0;
  }

  .zigzag-line {
    width: 28%;
  }
  .right-item .zigzag-line {
    right: 44%;
    top: 30%;
    transform: rotate(-60deg);
    transform-origin: right center;
  }

  .left-item .zigzag-line {
    left: 44%;
    top: 30%;
    transform: rotate(60deg);
    transform-origin: left center;
  }
}

@media (max-width: 860px) {
  .circle {
    top: 12%;
  }

  .zigzag-line {
    width: 28%;
  }
  .right-item .zigzag-line {
    right: 44%;
    top: 30%;
    transform: rotate(-62deg);
    transform-origin: right center;
  }

  .left-item .zigzag-line {
    left: 44%;
    top: 30%;
    transform: rotate(62deg);
    transform-origin: left center;
  }
}

@media (max-width: 823px) {
  .zigzag-line {
    width: 32%;
  }
  .right-item .zigzag-line {
    right: 44%;
    top: 30%;
    transform: rotate(-65deg);
    transform-origin: right center;
  }

  .left-item .zigzag-line {
    left: 44%;
    top: 30%;
    transform: rotate(65deg);
    transform-origin: left center;
  }
}

@media (max-width: 768px) {
  .timeline-item {
    padding: 30px 0;
  }

  .timeline-item::before {
    display: none;
  }

  .timeline-content {
    width: 100% !important;
    margin: 0 !important;
    text-align: center;
  }

  .circle {
    position: static;
    display: block;
    margin: 0 auto 30px auto !important;
  }

  .zigzag-line {
    display: none;
  }

  .header h1 {
    font-size: 1.8em;
  }

  .header p {
    font-size: 1em;
  }
  .right-item {
    text-align: center;
  }
  .left-item {
    text-align: center;
  }
  .timeline-content {
    background-color: #111;
  }
}
