/* Default */
@import url("../assets/external/fonts.cdnfonts.com/s/16225/Aileron-Regular.woff")
  format("woff");
@import url("../assets/external/fonts.cdnfonts.com/s/16225/Aileron-SemiBold.woff")
  format("woff");
@import url("../assets/external/fonts.cdnfonts.com/s/16225/Aileron-Bold.woff")
  format("woff");

:root {
  --md-text-font: "Aileron", sans-serif;

  /* Primary */
  --md-primary-fg-color: #e5e5e5;
  --md-primary-fg-color--light: #f5f5f5;
  --md-primary-fg-color--dark: #c5c5c5;

  /* Accent */
  --md-accent-fg-color: #fdc700;
  --md-accent-fg-color--light: #ffe34d;
  --md-accent-fg-color--dark: #c79a00;

  /* Links */
  --md-typeset-a-color: var(--md-accent-fg-color);
}

/* Make headers bold */
.md-typeset h1,
.md-typeset h2,
.md-typeset h3,
.md-typeset h4,
.md-typeset h5,
.md-typeset h6 {
  font-weight: 700 !important;
}
.md-typeset p {
  font-size: 20px;
}
/* Dark mode */
[data-md-color-scheme="slate"] {
  /* Header */
  --md-primary-fg-color: #000;
  --md-primary-fg-color--light: #005b9f;
  --md-primary-fg-color--dark: #00223d;

  /* Accent */
  --md-accent-fg-color: #bc00dd;
  --md-accent-fg-color--light: #d100d1;
  --md-accent-fg-color--dark: #b100e8;

  /* Links */
  --md-typeset-a-color: var(--md-accent-fg-color);
}

/* Make active nav tab yellow */
.md-tabs__link--active,
.md-tabs__item--active > .md-tabs__link {
  color: var(--md-accent-fg-color) !important;
}

/* Make buttons match accent color */
.md-button {
  background-color: var(--md-accent-fg-color);
  color: #000;
}
.md-button:hover {
  background-color: var(--md-accent-fg-color--light);
}

/* Remove site title from header */
.md-header__title span {
  display: none !important;
}

/* Embiggen logo */
.md-header__button.md-logo {
  margin-top: 1em;
  margin-bottom: 1em;
  padding-top: 0;
  padding-bottom: 0;
}

.md-header__button.md-logo img,
.md-header__button.md-logo svg {
  height: 5em;
  width: auto;
}

/* --- Hero Container --- */
.hero-container {
  position: relative;
  min-height: calc(100dvh - var(--md-header-height, 6rem));
  width: 100%;
  overflow: hidden;
  display: flex;
}

/* Background hero image with overlay*/
.hero-image {
  position: absolute;
  top: 0;
  left: 0;
  min-height: calc(100dvh - var(--md-header-height, 6rem));
  width: 100%;
  background-image: url("../assets/home/hero.webp");
  background-size: cover;
  background-position: center;
  z-index: 1;
}

.hero-image::after {
  content: "";
  position: absolute;
  inset: 0;
  background: rgba(0, 0, 0, 0.420);
}

/* Hero text content */
.hero-content {
  width: 50%;
  position: relative;
  z-index: 2;
  padding-top: calc(var(--md-header-height, 16rem));
  padding-left: 10%;
  text-align: left;
  color: #fff;
  text-shadow: 0 2px 6px rgba(0, 0, 0, 0.2);
}

@media (max-width: 768px) {
  /* Put text on bottom of hero */
  .hero-container {
    align-items: flex-end;
    min-height: calc(100dvh - var(--md-header-height, 2rem));
  }

  .hero-content {
    width: 100%;
    padding: 2rem 1rem;
  }
  .hero-image {
    min-height: calc(100dvh - var(--md-header-height, 2rem));
  }

  .hero-content h1 {
    font-size: 2rem;
  }

  .hero-content p {
    font-size: 1rem;
  }

  .scroll-down {
    bottom: 10px;
  }
}

.hero-content h1 {
  font-size: 3rem;
  color: #fff;
  margin-bottom: 0.5rem;
}

.hero-content p {
  font-size: 1.5rem;
  margin-bottom: 1.5rem;
}

.hero-content .md-button {
  margin: 0 0.5rem;
}

/* --- Scroll Down Arrow --- */
.scroll-down {
  position: absolute;
  bottom: 20px;
  left: 50%;
  transform: translateX(-50%);
  z-index: 3;
  cursor: pointer;
}

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

@keyframes bounce {
  0%, 20%, 50%, 80%, 100% {
    transform: rotate(45deg) translateY(0);
  }
  40% {
    transform: rotate(45deg) translateY(5px);
  }
  60% {
    transform: rotate(45deg) translateY(3px);
  }
}

.responsive-container {
  display: flex;
  align-items: flex-start;
  gap: 60px;
  flex-wrap: wrap;
  margin-bottom: 6rem;
}

.responsive-container .responsive-text {
  flex: 1 1 300px;
}

.responsive-container .responsive-text h2 {
  margin-top: 0;
}

.responsive-container .responsive-image {
  flex: 0 0 600px;
}

.responsive-container .responsive-image img, video {
  width: 100%;
  height: auto;
  display: block;
  border-radius: 25px;
}

@media (max-width: 768px) {
  .responsive-container {
    flex-direction: column;
  }

  .responsive-container .responsive-image {
    flex: 1 1 auto;
  }
}

/* Sponsor Page */
.sponsor-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(120px, 1fr));
  gap: 1rem;
  justify-items: center;
  align-items: center;
  margin-top: 2rem;
}

@media (min-width: 768px) {
  .sponsor-grid {
    grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
  }
}

@media (min-width: 1200px) {
  .sponsor-grid {
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  }
}

.sponsor-grid img {
  max-width: 100%;
  height: auto;
  border-radius: 15px;
  transition: transform 0.3s ease, box-shadow 0.3s ease;
  filter: brightness(0) invert(1);
  transition: filter 0.69s ease;
}

.sponsor-grid a:hover img {
  transform: scale(1.05);
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.2);
  filter: none;
}

/* Skills used in Projects pages */
.skills-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(160px, 1fr));
  gap: 20px;
  padding: 20px;
}

.skills-grid p {
  backdrop-filter: blur(20px);
  background: #000;
  color: #f5f5f5;
  margin: 0;
  padding: 15px 20px;
  border-radius: 15px;
  text-wrap: pretty;
  overflow: hidden;
  word-wrap: break-word;
  overflow-wrap: normal;
  word-break: keep-all;

  border: 1px solid rgba(255, 255, 255, 0.08);
  text-align: center;
  font-weight: 500;
  letter-spacing: 0.5px;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.3);
  transition: all 0.5s ease;
  cursor: default;
}

.skills-grid p:hover {
  transform: translateY(-5px) scale(1.05);
  background: #0f0f0f;
  color: #fff;
}

/* Leader card container */
.lead-card {
  display: flex;
  flex-direction: row;
  gap: 20px;
  background: #111;
  border-radius: 15px;
  overflow: hidden;
  cursor: pointer;
  transition: transform 0.3s ease, box-shadow 0.3s ease;
  margin-bottom: 20px;
  min-height: 180px;
  position: relative; /* for icons positioning */
}

.lead-card:hover {
  transform: translateY(-4px);
  box-shadow: 0 6px 20px rgba(0, 0, 0, 0.4);
}

/* Leader image */
.lead-card img {
  width: 180px;
  height: auto;
  object-fit: cover;
  border-right: 2px solid rgba(255, 255, 255, 0.1);
}

/* Text container */
.lead-card .lead-info {
  flex: 1;
  display: flex;
  flex-direction: column;
  justify-content: flex-start;
  padding: 15px 20px;
}

/* Name */
.lead-card .lead-info h3 {
  margin-top: 10px;
  margin-bottom: 5px;
  font-size: 1.3rem;
  color: #fff;
  line-height: 1.2;
}

/* Position */
.lead-card .lead-info .position {
  color: #aaa;
  font-weight: 500;
  margin: 3px 0 8px 0;
  font-size: 0.95rem;
}

/* Short bio */
.lead-card .lead-info .short-bio {
  color: #fff;
  font-size: 0.88rem;
  line-height: 1.3;
  margin-bottom: 30px; /* space for icons */
}

/* Social icons container */
.lead-card .lead-info .socials {
  position: absolute;
  bottom: 15px;
  right: 20px;
  display: flex;
  gap: 10px;
}

/* Social icons */
.lead-card .lead-info .socials a {
  color: var(--md-accent-fg-color);
  font-size: 1.2rem;
  transition: transform 0.2s ease, color 0.2s ease;
}

.lead-card .lead-info .socials a:hover {
  transform: scale(1.2);
  color: var(--md-accent-fg-color--light);
}

/* Responsive */
@media (max-width: 768px) {
  .lead-card {
    flex-direction: column;
    min-height: auto;
  }
  .lead-card img {
    width: 100%;
    height: auto;
    border-right: none;
    border-bottom: 2px solid rgba(255, 255, 255, 0.1);
  }
  .lead-card .lead-info {
    padding: 10px 15px;
    position: relative;
  }
  .lead-card .lead-info .socials {
    position: relative;
    bottom: auto;
    right: auto;
    margin-top: 10px;
  }
}
