/* ==================================================
   GLOBAL SETTINGS
   ================================================== */

:root {
  --primary-purple: #7952B3;
  --secondary-green: #2EA44F;
  --tertiary-blue: #2563EB;
  --bg-dark: #0b1221;
  --text-light: #cbd5e1;
  --heading-light: #ffffff;
  --radius: 12px;
}

* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}
::-webkit-scrollbar {
    display: none;
}
/* Smooth scrolling globally */
html {
  scroll-behavior: smooth;
}

body {
  font-family: "Inter", sans-serif;
  background: var(--bg-dark);
  color: var(--text-light);
  line-height: 1.6;
  scroll-behavior: smooth;
}

.container {
  width: 90%;
  max-width: 1200px;
  margin: 0 auto;
}


/* ==================================================
   HEADER + NAVIGATION
   ================================================== */

header {
  background: rgba(15, 22, 43, 0.9);
  backdrop-filter: blur(10px);
  position: sticky;
  top: 0;
  z-index: 1000;
  padding: 0.8rem 0;
  box-shadow: 0 2px 10px rgba(0,0,0,0.3);
}

.header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.logo {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  font-weight: 700;
  font-size: 1.25rem;
  color: #ffffff;
  letter-spacing: 0.5px;
  cursor: pointer;
  user-select: none;
}

.logo img {
  width: 50px;
  height: 50px;
  object-fit: contain;
  vertical-align: middle;
  transition: transform 0.3s ease, filter 0.3s ease;
  filter: drop-shadow(0 0 6px rgba(147, 51, 234, 0.4));
}

.logo:hover img {
  transform: rotate(10deg) scale(1.05);
  filter: drop-shadow(0 0 10px rgba(147, 51, 234, 0.7));
}

.logo span {
  color: #fff;
  font-weight: 700;
  font-size: 1.25rem;
}

/* Optional: shrink a bit on mobile */
@media (max-width: 480px) {
  .logo img {
    width: 22px;
    height: 22px;
  }
  .logo span {
    font-size: 1.1rem;
  }
}

.main-nav a {
  color: var(--text-light);
  text-decoration: none;
  margin-left: 2rem;
  transition: color 0.3s;
}

.main-nav a:hover {
  color: var(--tertiary-blue);
}

/* Hamburger */
.menu-toggle {
  background: none;
  border: none;
  color: var(--heading-light);
  font-size: 1.8rem;
  display: none;
  cursor: pointer;
}

/* Navbar Join Button */
.join-btn {
  padding: 0.45rem 1rem;
  border-radius: 6px;
  font-size: 0.95rem;
  margin-left: 1.5rem;
}

/* ==================================================
   SIDEBAR — GLASSMORPHIC (RIGHT SLIDE)
   ================================================== */

.sidebar {
  position: fixed;
  top: 0;
  right: -320px;
  width: 300px;
  height: 100vh;
  background: rgba(22, 22, 36, 0.4);
  backdrop-filter: blur(18px) saturate(180%);
  -webkit-backdrop-filter: blur(18px) saturate(180%);
  border-left: 1px solid rgba(255, 255, 255, 0.08);
  box-shadow: -8px 0 30px rgba(0, 0, 0, 0.4);
  padding: 3rem 2rem;
  display: flex;
  flex-direction: column;
  justify-content: flex-start;
  align-items: flex-end;
  z-index: 1500;
  transition: right 0.4s ease;
}

.sidebar.open {
  right: 0;
}

/* Close Button — top-right */
.close-sidebar {
  position: absolute;
  top: 1.2rem;
  right: 1.4rem;
  background: rgba(255, 255, 255, 0.15);
  border: none;
  color: #fff;
  font-size: 1.8rem;
  font-weight: 400;
  width: 36px;
  height: 36px;
  border-radius: 50%;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: background 0.3s ease, transform 0.3s ease;
}

.close-sidebar:hover {
  background: rgba(255, 255, 255, 0.3);
  transform: rotate(90deg);
}

/* Sidebar Links */
.sidebar-nav {
  display: flex;
  flex-direction: column;
  gap: 1.6rem;
  margin-top: 4.5rem;
  align-items: flex-end;
  text-align: right;
}

.sidebar-link {
  color: #fff;
  font-size: 1.25rem;
  text-decoration: none;
  transition: color 0.3s ease, transform 0.2s ease;
}

.sidebar-link:hover {
  color: #c4b5fd;
  transform: translateX(-6px);
}

/* Join Button */
.join-section {
  margin-top: 3rem;
  width: 100%;
  display: flex;
  justify-content: flex-end;
}

.join-btn {
  display: inline-block;
  background: linear-gradient(135deg, #7c3aed, #9333ea);
  color: #fff;
  font-weight: 600;
  border-radius: 12px;
  padding: 0.8rem 1.6rem;
  text-decoration: none;
  box-shadow: 0 0 12px rgba(147, 51, 234, 0.4);
  transition: all 0.3s ease;
}

.join-btn:hover {
  transform: translateY(-3px);
  box-shadow: 0 0 20px rgba(168, 85, 247, 0.6);
}

/* Overlay */
.overlay {
  position: fixed;
  inset: 0;
  background: rgba(0, 0, 0, 0.55);
  backdrop-filter: blur(6px);
  opacity: 0;
  visibility: hidden;
  transition: opacity 0.3s ease;
  z-index: 1000;
}

.overlay.active {
  opacity: 1;
  visibility: visible;
}

/* Responsiveness */
@media (max-width: 520px) {
  .sidebar {
    width: 270px;
    right: -270px;
  }
  .sidebar.open {
    right: 0;
  }
}

/* ==================================================
   HERO SECTION
   ================================================== */

.hero {
  background:
    linear-gradient(rgba(11, 17, 32, 0.92), rgba(11, 17, 32, 0.96)),
    url('assets/background-img_converted.webp')
    center/cover no-repeat;
  color: #fff;
  text-align: center;
  padding: 6rem 2rem;
}

.hero h1 {
  font-size: 2.8rem;
  margin-bottom: 1.2rem;
}

.hero p {
  color: var(--text-light);
  font-size: 1.05rem;
  margin-bottom: 2rem;
  max-width: 700px;
  margin-inline: auto;
}

/* Hero buttons */
.hero-buttons {
  display: flex;
  justify-content: center;
  gap: 1rem;
  flex-wrap: wrap;
}



/* ==================================================
   MOTIVE SECTION
   ================================================== */

.motive {
  text-align: center;
  padding: 4rem 2rem;
}

.motive h2 {
  color: var(--heading-light);
  font-size: 1.9rem;
  margin-bottom: 1.5rem;
}

.motive p {
  color: var(--text-light);
  font-size: 1.05rem;
  max-width: 850px;
  margin: 0 auto;
}

/* ==================================================
   CORE NAVIGATION CARDS
   ================================================== */

.core-cards {
  text-align: center;
  padding: 4rem 2rem;
  background: #0f162b;
}

.core-cards h2 {
  color: #fff;
  font-size: 1.9rem;
  margin-bottom: 2.5rem;
}

.core-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 2rem;
  max-width: 1100px;
  margin: auto;
}

.core-card {
  background: #111827;
  border-radius: var(--radius);
  padding: 2rem 1.5rem;
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.4);
  transition: all 0.3s ease;
}

.core-card:hover {
  transform: translateY(-6px);
  background: #1e293b;
}

.core-card svg {
  width: 48px;
  height: 48px;
  margin-bottom: 1rem;
  opacity: 0.9;
  transition: filter 0.3s;
}

.core-card:hover svg {
  filter: drop-shadow(0 0 8px rgba(77,182,255,0.9));
}

.core-card h3 {
  color: #fff;
  margin-bottom: 0.6rem;
}

.core-card p {
  color: var(--text-light);
  font-size: 0.95rem;
  margin-bottom: 1.2rem;
  line-height: 1.6;
}

/* ==================================================
   WHAT WE BUILD
   ================================================== */
.what-we-build {
  padding: 4rem 1rem;
  background: #0f162b;
  text-align: center;
}

.what-we-build h2 {
  color: #fff;
  font-size: 1.9rem;
  margin-bottom: 1rem;
}

.build-subtext {
  color: var(--text-light);
  max-width: 750px;
  margin: 0 auto 2.5rem;
  font-size: 1.05rem;
}

.build-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
  gap: 2rem;
}

.build-card {
  background: #111827;
  border-radius: 14px;
  padding: 1.8rem;
  box-shadow: 0 4px 14px rgba(0, 0, 0, 0.5);
  transition: transform 0.3s ease, background 0.3s ease;
}

.build-card:hover {
  transform: translateY(-6px);
  background: #1e293b;
}

.build-card h3 {
  color: #fff;
  margin-bottom: 0.6rem;
  font-size: 1.15rem;
}

.build-card p {
  color: var(--text-light);
  font-size: 0.95rem;
  line-height: 1.5;
}


/* ==================================================
   FEATURED PROJECTS
   ================================================== */

.featured-projects {
  text-align: center;
  padding: 4rem 2rem;
  background: #0b1221;
}

.featured-projects h2 {
  color: #fff;
  font-size: 1.9rem;
  margin-bottom: 2.5rem;
}

.projects-grid {
  display: grid;
  gap: 2rem;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  max-width: 1100px;
  margin: auto;
  align-items: stretch; /* makes all cards equal height */
}

.proj-card {
  background: #111827;
  border-radius: 14px;
  padding: 2rem 1.5rem;
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.4);
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: space-between; /* ensures button alignment */
  transition: transform 0.3s ease, background 0.3s ease;
  min-height: 420px; /* optional baseline height for equal layout */
}

.proj-card:hover {
  transform: translateY(-6px);
  background: #1e293b;
}

/* Logo container always same size */
.proj-logo {
  height: 80px;
  width: 80px;
  margin-bottom: 1.2rem;
  display: flex;
  align-items: center;
  justify-content: center;
  background: rgba(77,182,255,0.05);
  border: 1.5px solid rgba(77,182,255,0.25);
  border-radius: 12px;
  flex-shrink: 0;
}

.proj-logo img {
  width: 60%;
  height: auto;
  object-fit: contain;
  display: block;
}

/* Info text block has consistent spacing */
.proj-info {
  flex-grow: 1;
  display: flex;
  flex-direction: column;
  justify-content: flex-start;
}

.proj-info h3 {
  color: #fff;
  margin-bottom: 0.6rem;
  font-size: 1.1rem;
}

.proj-info p {
  color: var(--text-light);
  font-size: 0.95rem;
  margin-bottom: 1.4rem;
  line-height: 1.5;
  min-height: 60px; /* consistent vertical space for varying lengths */
}

/* Button section always sticks to bottom */
.proj-buttons {
  display: flex;
  gap: 0.8rem;
  flex-wrap: wrap;
  justify-content: center;
  margin-top: auto; /* pushes to bottom */
}


/* ==================================================
   TEAM CAROUSEL — FINAL ULTRA-SMOOTH PURE CSS
   ================================================== */

.team-carousel-section {
  text-align: center;
  padding: 4rem 1rem;
  background: #0b1221;
  overflow: hidden;
  position: relative;
}

.team-carousel-section h2 {
  color: #fff;
  font-size: 1.9rem;
  margin-bottom: 2rem;
}

.team-slider {
  position: relative;
  width: 100%;
  overflow: hidden;
}

.team-track {
  display: flex;
  align-items: center;
  gap: 20px;
  width: max-content;
  animation: team-scroll 70s linear infinite;
  will-change: transform;
  backface-visibility: hidden;
  transform: translate3d(0,0,0);
}

@keyframes team-scroll {
  from { transform: translate3d(0, 0, 0); }
  to { transform: translate3d(-50%, 0, 0); }
}

.team-card {
  width: 160px;
  flex-shrink: 0;
  text-align: center;
  display: flex;
  flex-direction: column;
  align-items: center;
  padding-top: 20px; /* prevents top cut-off */
  transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.team-card img {
  width: 130px;
  height: 130px;
  min-width: 130px;
  min-height: 130px;
  border-radius: 50%;
  object-fit: cover;
  border: 2px solid rgba(255,255,255,0.15);
  background: rgba(255,255,255,0.05);
  box-shadow: 0 4px 10px rgba(0,0,0,0.4);
  transition: transform 0.3s ease, box-shadow 0.3s ease;
}

/* Prevent image from growing/shrinking on hover */
.team-card:hover img {
  transform: none;
}

/* Keep hover effect smooth without affecting circle size */
.team-card:hover {
  transform: translateY(-8px);
  box-shadow: 0 8px 20px rgba(0, 0, 0, 0.5);
  z-index: 5;
}


.team-card p {
  color: #fff;
  margin-top: 0.6rem;
  font-size: 0.9rem;
  letter-spacing: 0.3px;
}

.team-card:hover {
  transform: scale(1.08) translateY(-8px);
  box-shadow: 0 8px 20px rgba(0, 0, 0, 0.5);
  z-index: 5;
}

.team-slider:hover .team-track {
  animation-play-state: paused;
}

.team-slider:hover .team-card:not(:hover) {
  opacity: 0.7;
  filter: blur(1px);
}

.team-slider::before,
.team-slider::after {
  content: "";
  position: absolute;
  top: 0;
  width: 180px;
  height: 100%;
  z-index: 2;
  pointer-events: none;
}

.team-slider::before {
  left: 0;
  background: linear-gradient(to right,#0b1221 0%,rgba(11,18,33,0.7) 50%,transparent 100%);
}

.team-slider::after {
  right: 0;
  background: linear-gradient(to left,#0b1221 0%,rgba(11,18,33,0.7) 50%,transparent 100%);
}

.view-team-btn {
  display: inline-block;
  margin-top: 2rem;
  background: var(--tertiary-blue);
  color: white;
  padding: 0.8rem 1.6rem;
  border-radius: 8px;
  text-decoration: none;
  font-weight: 500;
  transition: background 0.3s ease;
}

.view-team-btn:hover {
  background: #1d4ed8;
}

/* Responsive */
@media (max-width: 768px) {
  .team-card { width: 120px; }
  .team-card img { width: 100px; height: 100px; }
  .team-slider::before,
  .team-slider::after { width: 80px; }
}

/* Disable hover pause on touch devices */
@media (hover: none) {
  .team-slider:hover .team-track {
    animation-play-state: running;
  }
}

@media (max-width: 768px) {
  .team-card {
    padding-top: 15px;
  }
}

/* Prevent inline gaps in carousel tracks */
.team-track, .peek-track {
  font-size: 0;
}

/* Restore font-size inside cards */
.team-card, .peek-card {
  font-size: initial;
}



/* ==================================================
   SNEAK PEEK — PURE CSS INFINITE CAROUSEL WITH PEEK
   ================================================== */

.sneak-peek {
  text-align: center;
  padding: 4rem 1rem;
  background: #0b1221;
  overflow: hidden;
  position: relative;
}

.sneak-peek h2 {
  color: #fff;
  font-size: 1.9rem;
  margin-bottom: 2rem;
}

.peek-slider {
  position: relative;
  width: 100%;
  overflow: hidden;
  background: transparent;
}

.peek-track {
  display: flex;
  gap: 20px;
  width: max-content;
  animation: peek-scroll 50s linear infinite;
  will-change: transform;
  backface-visibility: hidden;
  transform: translate3d(0, 0, 0);
  transition: transform 0.5s ease;
}

/* Pause and peek */
.peek-slider:hover .peek-track {
  animation-play-state: paused;
  transform: translate3d(-2%, 0, 0);
}

/* Cards */
.peek-card {
  width: 300px;
  height: 180px;
  flex-shrink: 0;
  border-radius: 14px;
  overflow: hidden;
  background: rgba(255, 255, 255, 0.05);
  border: 1px solid rgba(255, 255, 255, 0.08);
  backdrop-filter: blur(10px);
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.3);
  transition: all 0.35s ease;
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
}

/* Image remains constant while card grows */
.peek-card img {
  width: 90%;
  height: 90%;
  object-fit: cover;
  border-radius: 10px;
  transition: opacity 0.3s ease;
}

/* Card grows smoothly on hover instead of the image */
.peek-card:hover {
  transform: scale(1.12) translateY(-8px);
  box-shadow: 0 10px 25px rgba(0, 0, 0, 0.6);
  background: rgba(255, 255, 255, 0.08);
  border-color: rgba(255, 255, 255, 0.15);
  z-index: 5;
}

/* Optional: dim the image slightly for focus effect */
.peek-card:hover img {
  opacity: 0.95;
}

.peek-card {
  transform-style: preserve-3d;
  perspective: 800px;
  transition: transform 0.25s ease, box-shadow 0.25s ease;
}

/* Reset tilt smoothly on mouse leave */
.peek-card.reset {
  transform: rotateY(0deg) rotateX(0deg) scale(1);
}

/* Optional glow when hovered */
.peek-card:hover {
  box-shadow: 0 12px 25px rgba(0, 0, 0, 0.6);
}

/* Infinite scroll */
@keyframes peek-scroll {
  from { transform: translate3d(0, 0, 0); }
  to { transform: translate3d(-50%, 0, 0); }
}

/* Edge fade */
.peek-slider::before,
.peek-slider::after {
  content: "";
  position: absolute;
  top: 0;
  width: 180px;
  height: 100%;
  z-index: 2;
  pointer-events: none;
}

.peek-slider::before {
  left: 0;
  background: linear-gradient(to right, #0b1221 0%, rgba(11,18,33,0.8) 40%, rgba(11,18,33,0) 100%);
}

.peek-slider::after {
  right: 0;
  background: linear-gradient(to left, #0b1221 0%, rgba(11,18,33,0.8) 40%, rgba(11,18,33,0) 100%);
}

/* ✅ Fixed Responsive */
@media (max-width: 768px) {
  .peek-card {
    width: 240px;
    height: 140px;
  }
  .peek-slider::before,
  .peek-slider::after {
    width: 80px;
  }
}

@media (max-width: 480px) {
  .peek-card {
    width: 200px;
    height: 120px;
  }
  .peek-slider::before,
  .peek-slider::after {
    width: 60px;
  }
}

/* Disable hover pause on touch devices */
@media (hover: none) {
  .peek-slider:hover .peek-track {
    animation-play-state: running;
  }
}


/* ==============================
   RESPONSIVE BEHAVIOR
   ============================== */
@media (max-width: 768px) {
  .peek-track {
    width: calc(260px * 10);
  }
  .peek-card {
    width: 240px;
    height: 140px;
  }
  @keyframes peek-scroll {
    0% { transform: translateX(0); }
    100% { transform: translateX(calc(-260px * 5)); }
  }
}

@media (max-width: 480px) {
  .peek-track {
    width: calc(220px * 10);
  }
  .peek-card {
    width: 200px;
    height: 120px;
  }
  @keyframes peek-scroll {
    0% { transform: translateX(0); }
    100% { transform: translateX(calc(-220px * 5)); }
  }
}


/* ==================================================
   JOIN QIFORGE
   ================================================== */

.join {
  text-align: center;
  padding: 4rem 2rem;
  background: #0f162b;
}

.join p {
  max-width: 600px;
  margin: 1rem auto 2rem;
  color: var(--text-light);
}

.join-form {
  display: flex;
  flex-direction: column;
  gap: 1rem;
  max-width: 400px;
  margin: 0 auto;
}

.join-form input,
.join-form textarea {
  background: #111827;
  border: none;
  color: #fff;
  border-radius: 8px;
  padding: 0.8rem;
}

.join-form button {
  border: none;
}

/* ==================================================
   FOOTER
   ================================================== */

footer {
  text-align: center;
  padding: 2rem 1rem;
  background: #0b1221;
}

.footer-icons {
  display: flex;
  justify-content: center;
  align-items: center;
  gap: 2rem;
  margin-bottom: 1rem;
}

.footer-icons a {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 40px;
  height: 40px;
  border-radius: 50%;
  transition: transform 0.25s ease, background-color 0.3s ease;
}

.footer-icons img {
  width: 22px;
  height: 22px;
  filter: brightness(0) invert(1);
  opacity: 0.85;
  transition: opacity 0.2s ease, transform 0.25s ease;
}

/* Hover animation */
.footer-icons a:hover img {
  transform: translateY(-3px);
  opacity: 1;
}

/* Optional: unified QiForge-blue glow on hover */
.footer-icons a:hover {
  background-color: rgba(37, 99, 235, 0.15);
  box-shadow: 0 0 10px rgba(37, 99, 235, 0.4);
}

/* Footer text */
footer p {
  color: #94a3b8;
  font-size: 0.9rem;
}

/* ==================================================
   FAQ ACCORDION — QIFORGE STYLE
   ================================================== */
.faq {
  padding: 4rem 1rem;
  background: #0f162b;
  text-align: center;
}

.faq h2 {
  color: #fff;
  font-size: 1.9rem;
  margin-bottom: 2rem;
}

.faq-accordion {
  max-width: 780px;
  margin: 0 auto;
  text-align: left;
  display: flex;
  flex-direction: column;
  gap: 1rem;
}

.faq-item {
  background: rgba(255, 255, 255, 0.05);
  border: 1px solid rgba(255,255,255,0.08);
  border-radius: 14px;
  backdrop-filter: blur(12px);
  padding: 0;
  overflow: hidden;
  transition: background 0.3s ease;
}

.faq-item.open {
  background: rgba(255, 255, 255, 0.12);
  border-color: rgba(255,255,255,0.25);
}

.faq-question {
  width: 100%;
  text-align: left;
  padding: 1.1rem 1.4rem;
  background: #0b1221;
  border: none;
  color: #fff;
  font-size: 1rem;
  cursor: pointer;
  font-weight: 600;
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.faq-question::after {
  content: "+";
  transition: transform 0.3s ease;
  font-size: 1.2rem;
  opacity: 0.8;
}

.faq-item.open .faq-question::after {
  transform: rotate(45deg);
  opacity: 1;
}

.faq-answer {
  background: #0b1221;
  max-height: 0;
  overflow: hidden;
  padding: 0 1.4rem;
  color: var(--text-light);
  font-size: 0.95rem;
  line-height: 1.55;
  transition: max-height 0.35s ease, padding 0.3s ease;
}

.faq-item.open .faq-answer {
  padding: 0.6rem 1.4rem 1.2rem;
  max-height: 200px;
}

.faq-answer ul.faq-list-roles {
  margin: 0.6rem 0 1rem 1.2rem;
  padding: 0;
  list-style: none;
}

.faq-answer ul.faq-list-roles li {
  position: relative;
  margin: 0.3rem 0;
  padding-left: 1rem;
  color: var(--text-light);
  font-size: 0.95rem;
}

/* Forge-style ember bullet */
.faq-answer ul.faq-list-roles li::before {
  content: "•";
  color: #8b5cf6; /* QiForge purple */
  position: absolute;
  left: 0;
  top: 0;
  font-size: 1.2rem;
  line-height: 1rem;
}



/* ==================================================
   BUTTON SYSTEM
   ================================================== */

.btn {
  display: inline-block;
  padding: 0.7rem 1.4rem;
  border-radius: 8px;
  font-weight: 600;
  text-decoration: none;
  text-align: center;
  transition: all 0.25s ease;
  border: none;
  cursor: pointer;
}

/* Primary (Bootstrap Purple) */
.btn-primary {
  background-color: #8b5cf6;
  color: #fff;
}
.btn-primary:hover {
  background-color: #7c3aed;
  box-shadow: 0 0 10px rgba(121, 82, 179, 0.5);
}

/* Secondary (GitHub Green) */
.btn-secondary {
  background-color: var(--secondary-green);
  color: #fff;
}
.btn-secondary:hover {
  background-color: #2C974B;
  box-shadow: 0 0 10px rgba(46, 164, 79, 0.4);
}

/* Tertiary (QiForge Blue) */
.btn-tertiary {
  background-color: var(--tertiary-blue);
  color: #fff;
}
.btn-tertiary:hover {
  background-color: #1d4ed8;
  box-shadow: 0 0 10px rgba(77, 182, 255, 0.5);
}

/* ==================================================
   RESPONSIVE DESIGN
   ================================================== */

@media (max-width: 1024px) {
  .main-nav a {
    margin-left: 1.2rem;
  }
}

@media (max-width: 768px) {
  .main-nav {
    display: none;
  }

  .menu-toggle {
    display: block;
  }

  .hero h1 {
    font-size: 2.1rem;
  }

  .hero {
    padding: 4rem 1.5rem;
  }

  .core-grid, .projects-grid, .team-grid {
    grid-template-columns: 1fr;
  }

  .footer-links {
    flex-direction: column;
    gap: 0.5rem;
  }
}
/* ==================================================
   GLOBAL RESPONSIVE TWEAKS
   ================================================== */

@media (max-width: 480px) {
  section {
    padding: 2.5rem 1rem;
  }
}

/* ==================================================
   CLS FIXES
   ================================================== */

body {
  font-family: "Inter", Arial, sans-serif;
  font-size-adjust: 0.5;
}

/* Prevent header from shifting when fonts load */
header {
  min-height: 70px;
}

/* Delay animation start slightly */
.team-track,
.peek-track {
  animation-play-state: paused;
  animation-delay: 0.5s;
}

/* Enable animations after full load */
body.loaded .team-track,
body.loaded .peek-track {
  animation-play-state: running;
}

/* ==================================================
   ACCESSIBILITY IMPROVEMENTS
   ================================================== */

:focus-visible {
  outline: 2.5px solid #60a5fa; /* QiForge blue */
  outline-offset: 3px;
  border-radius: 4px;
}

/* Prevent focus from being hidden behind sticky header */
:target {
  scroll-margin-top: 80px;
}

/* ==================================================
   Ultra Glassmorphic Floating Scroll / Back-to-Top Button
   ================================================== */

.skip-link {
  position: fixed;
  top: 50px;
  left: 30px;
  width: 34px;
  height: 34px;
  border-radius: 50%;
  font-size: 1rem;
  line-height: 34px;
  text-align: center;
  color: rgba(255, 255, 255, 0.85);
  text-decoration: none;
  z-index: 2000;
  cursor: pointer;

  /* ✨ Glassmorphism core */
  background: rgba(255, 255, 255, 0.08);
  backdrop-filter: blur(18px) saturate(180%) brightness(1.1);
  -webkit-backdrop-filter: blur(18px) saturate(180%) brightness(1.1);
  border: 1px solid rgba(255, 255, 255, 0.25);
  box-shadow:
    0 2px 6px rgba(255, 255, 255, 0.1) inset,
    0 4px 12px rgba(0, 0, 0, 0.25);

  transition: all 0.6s ease;
  opacity: 0.85;
}

/* Glowing hover effect */
.skip-link:hover {
  transform: scale(1.12);
  background: rgba(255, 255, 255, 0.14);
  border-color: rgba(255, 255, 255, 0.4);
  box-shadow:
    0 0 6px rgba(255, 255, 255, 0.3),
    0 6px 18px rgba(0, 0, 0, 0.25);
  opacity: 1;
}

/* When scrolled (back to top state) */
.skip-link.scrolled {
  top: auto;
  bottom: 28px;
  left: 28px;
  background: rgba(30, 58, 138, 0.25);
  border-color: rgba(255, 255, 255, 0.35);
  backdrop-filter: blur(20px) saturate(180%) brightness(1.05);
  -webkit-backdrop-filter: blur(20px) saturate(180%) brightness(1.05);
  box-shadow:
    0 2px 8px rgba(255, 255, 255, 0.05) inset,
    0 8px 22px rgba(0, 0, 0, 0.25);
}

/* Smooth fade transition */
.skip-link.fade-out {
  opacity: 0;
  transform: scale(0.8);
  pointer-events: none;
}

/* Focus-visible for keyboard users */
.skip-link:focus-visible {
  outline: 2px solid rgba(147, 197, 253, 0.8);
  outline-offset: 2px;
}

/* Offset for sticky header */
:target {
  scroll-margin-top: 80px;
}

@keyframes pulse-glass {
  0%, 100% { box-shadow: 0 2px 6px rgba(255, 255, 255, 0.15), 0 4px 12px rgba(0, 0, 0, 0.2); }
  50% { box-shadow: 0 0 8px rgba(255, 255, 255, 0.25), 0 6px 18px rgba(0, 0, 0, 0.25); }
}

.skip-link {
  animation: pulse-glass 3s ease-in-out infinite;
}

/* Hide skip/back-to-top button on mobile */
@media (max-width: 768px) {
  .skip-link {
    display: none !important;
  }
}



