/* Custom augmentations for Tailwind-generated utility classes */

:root {
  color-scheme: dark;
}

body {
  background-color: #120b24;
}

.nav-link {
  position: relative;
  padding: 0.35rem 0.65rem;
  border-radius: 9999px;
  transition: all 0.25s ease;
}

.nav-link::after {
  content: "";
  position: absolute;
  inset: 0;
  border-radius: 9999px;
  border: 1px solid transparent;
  transition: border-color 0.3s ease, background-color 0.3s ease;
}

.nav-link:hover {
  color: #56ccf2;
}

.nav-link:hover::after {
  border-color: rgba(86, 204, 242, 0.5);
  background-color: rgba(86, 204, 242, 0.08);
}

.footer-link {
  position: relative;
  padding-bottom: 0.25rem;
  transition: color 0.3s ease;
}

.footer-link::after {
  content: "";
  position: absolute;
  left: 0;
  bottom: 0;
  width: 0%;
  height: 1px;
  background: rgba(242, 201, 76, 0.8);
  transition: width 0.3s ease;
}

.footer-link:hover {
  color: #f2c94c;
}

.footer-link:hover::after {
  width: 100%;
}

.module-card {
  position: relative;
  overflow: hidden;
  border-radius: 1.5rem;
  border: 1px solid rgba(255, 255, 255, 0.1);
  background: rgba(13, 6, 27, 0.85);
  backdrop-filter: blur(18px);
  transition: transform 0.35s ease, box-shadow 0.35s ease,
    border-color 0.35s ease;
}

.module-card::before {
  content: "";
  position: absolute;
  inset: -60%;
  background: conic-gradient(
    from 90deg at 50% 50%,
    rgba(242, 201, 76, 0.35),
    rgba(86, 204, 242, 0.25),
    rgba(235, 87, 87, 0.35),
    rgba(242, 201, 76, 0.35)
  );
  opacity: 0;
  transition: opacity 0.5s ease;
}

.module-card:hover {
  transform: translateY(-8px);
  border-color: rgba(242, 201, 76, 0.35);
  box-shadow: 0 32px 48px -30px rgba(12, 7, 23, 0.8);
}

.module-card:hover::before {
  opacity: 0.5;
  animation: spin 5s linear infinite;
}

.module-card > * {
  position: relative;
  z-index: 1;
}

@keyframes spin {
  to {
    transform: rotate(360deg);
  }
}

.module-badge {
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  padding: 0.35rem 0.75rem;
  border-radius: 9999px;
  font-size: 0.75rem;
  text-transform: uppercase;
  letter-spacing: 0.18em;
  background: rgba(18, 11, 36, 0.7);
  border: 1px solid rgba(86, 204, 242, 0.35);
  color: rgba(86, 204, 242, 0.95);
}

.module-meta {
  font-size: 0.85rem;
  line-height: 1.4;
  color: rgba(255, 255, 255, 0.7);
}

.module-link {
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  margin-top: 1rem;
  font-weight: 600;
  color: rgba(242, 201, 76, 0.9);
  transition: gap 0.25s ease, color 0.25s ease;
}

.module-link:hover {
  color: rgba(86, 204, 242, 0.95);
  gap: 0.6rem;
}

.module-link svg {
  width: 1rem;
  height: 1rem;
}

.mobile-backdrop {
  position: absolute;
  inset: 0;
  background: linear-gradient(
    180deg,
    rgba(17, 10, 32, 0.86),
    rgba(14, 9, 28, 0.92)
  );
  backdrop-filter: blur(6px);
  z-index: 5;
}

.mobile-nav {
  position: relative;
  z-index: 6;
}

.timeline {
  position: relative;
  padding-left: 1.5rem;
}

.timeline::before {
  content: "";
  position: absolute;
  left: 0.35rem;
  top: 0.3rem;
  bottom: 0.5rem;
  width: 2px;
  background: linear-gradient(
    180deg,
    rgba(242, 201, 76, 0.2),
    rgba(86, 204, 242, 0.2)
  );
}

.timeline-item {
  position: relative;
  margin-bottom: 1.5rem;
  padding-left: 1rem;
}

.timeline-item::before {
  content: "";
  position: absolute;
  left: -1.1rem;
  top: 0.4rem;
  width: 8px;
  height: 8px;
  border-radius: 9999px;
  background: rgba(242, 201, 76, 0.8);
  box-shadow: 0 0 0 4px rgba(242, 201, 76, 0.2);
}

.hero-capsule {
  position: absolute;
  inset: 0;
  background: radial-gradient(
    circle at 20% 20%,
    rgba(242, 201, 76, 0.15),
    transparent 55%
  );
  pointer-events: none;
}

@media (max-width: 640px) {
  .module-card {
    border-radius: 1.25rem;
  }
  .nav-link {
    padding: 0.3rem 0.55rem;
  }
  .timeline::before {
    left: 0.25rem;
  }
  .timeline-item {
    padding-left: 0.75rem;
  }
  .mobile-nav {
    padding: 1rem 1.25rem;
    border-radius: 1.5rem;
    background: rgba(14, 9, 28, 0.85);
    border: 1px solid rgba(255, 255, 255, 0.08);
    backdrop-filter: blur(12px);
    box-shadow: 0 25px 40px -28px rgba(10, 3, 25, 0.8);
  }
  .mobile-nav a {
    width: 100%;
  }
  .mobile-nav {
    margin-top: 0.5rem;
  }
}

@media (min-width: 641px) {
  .mobile-backdrop {
    display: none !important;
  }
  .mobile-nav {
    padding: 0;
    border-radius: 0;
    background: transparent;
    border: none;
    backdrop-filter: none;
    box-shadow: none;
  }
  .mobile-nav a {
    width: auto;
  }
}

