/* =============================
   BASE
============================= */
html, body {
  margin: 0;
  padding: 0;
  font-family: "Space Grotesk", sans-serif;
  scroll-behavior: smooth;
  background: transparent;
  color: #ffffff;
}

body > *:not(.minecraft-bg) {
  position: relative;
  z-index: 1;
}

/* =============================
   SCROLLBAR
============================= */
::-webkit-scrollbar-thumb {
  background: #6366f1;
  border-radius: 8px;
}

/* =============================
   TEXT
============================= */
.gradient-text {
  background: linear-gradient(180deg, #c4b5fd, #6366f1);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
}

.nav-link:hover {
  text-decoration: underline;
  text-decoration-color: #ffffff;
  text-underline-offset: 4px;
}

/* =============================
   ANIMATIONS
============================= */
@keyframes float {
  0%, 100% { transform: translateY(0px); }
  50% { transform: translateY(-6px); }
}

.floating {
  animation: float 3s ease-in-out infinite;
}

/* =============================
   BACKGROUND
============================= */
.minecraft-bg {
  position: fixed;
  inset: 0;
  z-index: 0;
  pointer-events: none;
  background: #000000;
}

.minecraft-bg::before {
  content: "";
  position: absolute;
  inset: 0;
  background: rgba(255, 255, 255, 0.03);
  box-shadow:
    inset 0 0 120px rgba(255,255,255,0.04),
    inset 0 0 300px rgba(255,255,255,0.02);
  pointer-events: none;
}

/* =============================
   SCROLL PROGRESS BAR
============================= */
#scroll-progress {
  position: fixed;
  top: 0;
  left: 0;
  height: 3px;
  width: 0%;
  background-color: #ffffff;
  z-index: 9999;
}

/* =============================
   FIXED BUTTONS
============================= */
#scrollTopBtn {
  position: fixed;
  bottom: 20px;
  left: 20px;
  width: 48px;
  height: 48px;
  z-index: 10000;
}

/* =============================
   NAV TOGGLES VISIBILITY
============================= */
/* Hide toggles by default (desktop) */
#navToggle,
#mobileNavToggle {
  display: none;
}

/* Show toggles only on mobile (<= 640px) */
@media (max-width: 640px) {
  #scrollTopBtn { bottom: 16vw; left: 4vw; }

  #navToggle,
  #mobileNavToggle {
    display: inline-flex;
    position: fixed;
    z-index: 10000;
  }

  #navToggle {
    bottom: 16vw;
    right: 4vw;
    min-width: 140px;
  }

  #mobileNavToggle {
    top: 4vw;
    right: 4vw;
    width: 48px;
    height: 48px;
  }

  #navPanel { bottom: 24vw; right: 4vw; }
}

/* =============================
   GLOBAL BUTTON STYLE
============================= */
.btn-dark {
  background: rgba(0, 0, 0, 0.45);
  color: #ffffff;
  border: 1px solid rgba(255, 255, 255, 0.18);
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
  transition: all 0.25s ease;
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  line-height: 1.2;
}

/* Hover */
.btn-dark:hover {
  background: rgba(0, 0, 0, 0.7);
  border-color: #c4b5fd;
  box-shadow: 0 0 18px rgba(196,181,253,0.45);
  transform: translateY(-1px);
}
/* Active / Click glow */
.btn-dark:active {
  box-shadow:
    0 0 10px rgba(196,181,253,0.4),
    0 0 30px rgba(196,181,253,0.6);
  transform: scale(0.96);
}

/* Remove default focus ring */
.btn-dark:focus {
  outline: none;
}

/* =============================
   HERO FOCUS ZONE
============================= */
.hero-focus::before {
  content: "";
  position: absolute;
  top: 20%;
  left: 50%;
  width: 520px;
  height: 520px;
  transform: translateX(-50%);
  background: radial-gradient(circle, rgba(196,181,253,0.18), transparent 70%);
  filter: blur(80px);
  z-index: -1;
}

.hero-image-wrapper { position: relative; }
.hero-image-wrapper::after {
  content: "";
  position: absolute;
  inset: -10px;
  border-radius: 18px;
  background: linear-gradient(135deg, rgba(196,181,253,0.35), transparent);
  opacity: 0.5;
  filter: blur(18px);
  z-index: -1;
}

/* =============================
   FOOTER & CONTACT DROPDOWN
============================= */
.footer-link { position: relative; color: #e5e5e5; transition: color 0.3s ease; }
.footer-link::after {
  content: "";
  position: absolute;
  left: 0;
  bottom: -4px;
  width: 0%;
  height: 1px;
  background: #c4b5fd;
  transition: width 0.3s ease;
}
.footer-link:hover { color: #c4b5fd; }
.footer-link:hover::after { width: 100%; }

/* Contact icons */
.contact-item {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 36px;
  height: 36px;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.08);
  transition: all 0.2s ease;
  cursor: pointer;
}

.contact-item:hover {
  background: rgba(196, 181, 253, 0.3);
  color: #c4b5fd;
  transform: translateY(-2px);
}

.contact-item svg {
  width: 20px;
  height: 20px;
  stroke-width: 2;
}

/* =============================
   ACHIEVEMENTS TIMELINE
============================= */
.timeline {
  padding-left: 2rem;
}

.timeline::before {
  content: "";
  position: absolute;
  left: 14px;
  top: 0;
  width: 2px;
  height: 100%;
  background: linear-gradient(
    to bottom,
    rgba(196,181,253,0.2),
    rgba(196,181,253,0.6),
    rgba(196,181,253,0.2)
  );
}

.timeline-item {
  position: relative;
  margin-bottom: 3rem;
  padding-left: 2.5rem;
}

.timeline-dot {
  position: absolute;
  left: 6px;
  top: 1.2rem;
  width: 16px;
  height: 16px;
  border-radius: 50%;
  background: #c4b5fd;
  box-shadow: 0 0 12px rgba(196,181,253,0.8);
}

/* Mobile polish */
@media (max-width: 640px) {
  .timeline {
    padding-left: 1.5rem;
  }
}

/* =============================
   MOBILE NAV FIX
============================= */
#mobileNav {
  position: fixed;
  top: 0;
  right: 0;
  width: 70vw;
  max-width: 280px;
  height: 100vh;
  background: rgba(0, 0, 0, 0.85);
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
  padding: 2rem;
  flex-direction: column;
  gap: 1.5rem;
  z-index: 10002;
  overflow-y: auto;
}


#mobileNav a {
  color: #ffffff;
  text-decoration: none;
  font-weight: 500;
}

#mobileNav a:hover {
  color: #c4b5fd;
}

/* =============================
   NAV TOGGLES VISIBILITY
============================= */
/* Hide toggle buttons by default (desktop view) */
#navToggle,
#mobileNavToggle {
  display: none;
}

/* Show toggle buttons only on mobile (screen ≤ 640px) */
@media (max-width: 640px) {
  #navToggle,
  #mobileNavToggle {
    display: inline-flex; /* show them */
    position: fixed;
    z-index: 10000;
  }

  /* Position the "Explore More" button */
  #navToggle {
    bottom: 16vw;  /* distance from bottom */
    right: 4vw;    /* distance from right */
    min-width: 140px;
  }

  /* Position the hamburger button */
  #mobileNavToggle {
    top: 4vw;      /* distance from top */
    right: 4vw;    /* distance from right */
    width: 48px;
    height: 48px;
  }

  /* Position the Explore Panel (navPanel) */
  #navPanel {
    bottom: 24vw;
    right: 4vw;
  }
}
