/* Base tokens */
:root {
  --font-header: "Poppins", system-ui, -apple-system, Segoe UI, Roboto, Arial,
    sans-serif;
  --font-body: "Inter", system-ui, -apple-system, Segoe UI, Roboto, Arial,
    sans-serif;
  --H1-Colour: #4F46E5;
  --Tag-Colour: 
}

/* Home page styles */

/* --- Hero --- */
.home-hero {
  max-width: 1100px;
  margin: 0 auto;
  padding: 3rem 1rem 2rem;
  display: grid;
  gap: 1.5rem;
}

/* Top: centered headings */
.home-hero__top {
  text-align: center;
}

.home-hero__top h2 {
  margin-bottom: 0.5rem;
}

.home-hero__top h1 {
  margin-bottom: 0.6rem;
}

.home-hero__top h3 {
  font-size: 1.15rem;
  font-weight: 600;
  color: var(--H2H3P-Colour);
  margin: 0;
}

.home-hero__top .hero-tagline {
  font-weight: 600;
  font-size: var(--base-font-size);
  letter-spacing: 0.25em;
  color: #249988;
}

/* "Current tech stack */

.hero-tagline {
  font-weight: 600;
  font-size: var(--base-font-size);
  letter-spacing: 0.25em;
  color: #249988;
}

/* Bottom: squared-off paragraph + avatar */
.home-hero__bottom {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  align-items: center;
  gap: 1.25rem;
}

/* home cta */

.home-first-cta {
  margin-top: 30px;
  color: #249988
}

.home-cta-btn {
  display: inline-block;
  text-decoration: none;
  font-weight: 600;
  font-family: 'Inter', sans-serif;

  background-color: transparent;
  color: #249988;
  border: 1px solid rgba(79, 70, 229, 0.3); /* 0.3 changes opacity to 30% */
  padding: 10px 18px;
  border-radius: 6px;

  cursor: pointer;
  transition: all 0.25s ease;
  box-shadow: 0 0 6px rgba(47, 187, 170, 0.25);
}

.home-cta-btn:hover {
  background-color: rgba(47, 187, 170, 0.12);
  box-shadow: 0 0 10px rgba(47, 187, 170, 0.35);
  transform: translateY(-2px);
}

/* Floating tags */

.home-tech {
  margin-top: 0.75rem;
  display: flex;
  justify-content: center;
}

.tech-badges {
  width: min(900px, 100%);
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 12px;
  padding: 0.75rem 0;
  margin: 0;
  list-style: none;
}

.tech-badge {
  display: inline-flex;
  align-items: center;
  gap: 10px;

  padding: 10px 14px;
  border-radius: 12px;

  background: rgba(255, 255, 255, 0.55);
  border: 1.5px solid rgba(47, 187, 170, 0.35);
  backdrop-filter: blur(6px);

  font-size: 0.9rem;
  font-weight: 600;
  color: var(--color-text);

  box-shadow: 0 10px 26px rgba(22, 42, 65, 0.06);
  transition: transform 0.25s ease, box-shadow 0.25s ease, background 0.25s ease;

  /* Floating animation */
  animation: tech-float 5.5s ease-in-out infinite;
  will-change: transform;
}

.tech-badge:hover {
  background: rgba(47, 187, 170, 0.10);
  box-shadow: 0 0 10px rgba(47, 187, 170, 0.35);
  transform: translateY(-3px);
}

.tech-icon {
  width: 20px;
  height: 20px;
  display: block;
}

/* Subtle variation so they don’t float in sync */
.tech-badge:nth-child(2) { animation-duration: 6.2s; animation-delay: 0.2s; }
.tech-badge:nth-child(3) { animation-duration: 5.8s; animation-delay: 0.4s; }
.tech-badge:nth-child(4) { animation-duration: 6.6s; animation-delay: 0.1s; }
.tech-badge:nth-child(5) { animation-duration: 5.9s; animation-delay: 0.3s; }
.tech-badge:nth-child(6) { animation-duration: 6.4s; animation-delay: 0.5s; }
.tech-badge:nth-child(7) { animation-duration: 5.7s; animation-delay: 0.25s; }
.tech-badge:nth-child(8) { animation-duration: 6.1s; animation-delay: 0.35s; }

@keyframes tech-float {
  0%, 100% {
    transform: translateY(0);
  }
  50% {
    transform: translateY(-6px);
  }
}

/* Accessibility: respect reduced motion */
@media (prefers-reduced-motion: reduce) {
  .tech-badge {
    animation: none;
  }
}


/* Tighter, “squared” text block */
.home-hero__bottom .tag-line p {
  max-width: 60ch;
  /* narrower column */
  margin: 0;
  /* snug */
  text-align: justify;
  /* squares edges */
  text-justify: inter-word;
  hyphens: auto;
  /* helps reduce weird gaps */
}

/* Avatar */
.home-hero__image img {
  width: 200px;
  height: 200px;
  border-radius: 50%;
  object-fit: cover;
}

/* --- Filters --- */
.filters {
  margin: 1.25rem auto 0;
  max-width: 1100px;
  padding: 0 1rem;
}

#name-search {
  width: 100%;
  padding: 10px;
  margin-bottom: 10px;
  border: 1px solid rgba(0, 0, 0, 0.18);
  border-radius: 8px;
}

/* Tags list */
.tags-list {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  justify-content: center;
}

/* Home page filter tags – match H1 colour */
.filters .tag {
  background: var(--H1-Colour); 
  color: #fff;
  border: none;

  padding: 0.45rem 0.9rem;
  border-radius: 999px;

  font-size: 0.85rem;
  font-weight: 500;

  cursor: pointer;
  transition: background-color 0.25s ease, transform 0.15s ease, box-shadow 0.2s ease;
}


.filters .tag:hover {
  background-color: #4338CA;
  /* slightly darker than H1 */
  box-shadow: 0 6px 18px rgba(79, 70, 229, 0.35);
  transform: translateY(-1px);
}

/* Active (selected) tag */
.filters .tag.active {
  background-color: #3730A3;
  /* darkest state */
  box-shadow: inset 0 0 0 1px rgba(255, 255, 255, 0.35);
}


/* Helper text under projects */
#temp-p {
  color: var(--H2H3P-Colour);
  font-family: var(--font-body);
  margin-top: 1rem;
}

/* --- Projects list --- */
.projects-list {
  margin: 1.25rem auto 0;
  max-width: 1100px;
  padding: 0 1rem;
}

/* Responsive hero */
@media (max-width: 768px) {
  .home-hero__bottom {
    grid-template-columns: 1fr;
    text-align: center;
  }

  .home-hero__bottom .tag-line p {
    text-align: left;
    /* justify can look odd on small screens */
    max-width: 52ch;
    margin: 0 auto;
  }

  .home-hero__image img {
    width: 170px;
    height: 170px;
    margin: 0 auto;
  }
}

/* Hides titles in sections */

.visually-hidden {
  position: absolute !important;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}
