/* Global Stylesheet */
*,
*::before,
*::after {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

html, body {
  width: 100%;
  height: 100%;
  overflow-x: hidden; /* remove horizontal scroll */
  overflow-y: auto;   /* allow vertical scroll */
  scroll-behavior: smooth;
  background-color: #000; /* page black */
  color: #fff;
  font-family: 'Helvetica', 'Arial', sans-serif;
}

body {
  min-height: 100vh;
  line-height: 1.5;
}

/* Link and list resets */
a {
  text-decoration: none;
  color: inherit;
}

ul, li {
  list-style: none;
}

img {
  display: block;
  max-width: 100%;
  height: auto;
}

/* Sticky Navigation */
nav {
  position: sticky;
  top: 0;
  z-index: 999;
  width: 100%;
  background-color: #000; /* fallback for transparency */
}

/* Section base styles */
section {
  width: 100%;
  padding: 8rem 2rem;
}

/* Utility Animations */
.fade-up {
  opacity: 0;
  transform: translateY(20px);
  transition: all 0.8s ease-out;
}

.animate-fade-up {
  opacity: 1;
  transform: translateY(0);
}

/* Container */
.container {
  width: 100%;
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 2rem;
}
/* BACK TO TOP BUTTON (This button took too long to get working) */

#backToTop {
  position: fixed;
  bottom: 2rem;
  right: 2rem;
  z-index: 2147483647;

  padding: 16px;
  border-radius: 50%;

  /* Base glass layer */
  background: rgba(255,255,255,0.06);
  backdrop-filter: blur(22px) saturate(180%);
  -webkit-backdrop-filter: blur(22px) saturate(180%);
  border: 1px solid rgba(255,255,255,0.22);

  display: flex;
  align-items: center;
  justify-content: center;

  opacity: 0;
  pointer-events: none;

  /* Smooth glow + motion transitions */
  transition:
    opacity .45s ease,
    transform .45s ease,
    box-shadow .45s ease,
    border-color .45s ease,
    background .45s ease;

  /* Idle animation (only active when visible) */
  animation: backToTopFloat 4s ease-in-out infinite;
  animation-play-state: paused;
}

/* Visible state */
#backToTop.show {
  opacity: 1;
  pointer-events: auto;
  animation-play-state: running;

  /* Soft ambient neon glow */
  box-shadow:
    0 8px 30px rgba(0,0,0,0.6),
    0 0 28px rgba(200, 120, 255, 0.45),
    0 0 12px rgba(120, 190, 255, 0.35),
    inset 0 0 15px rgba(255,255,255,0.05);
}

/* Hover interaction */
#backToTop:hover {
  transform: translateY(-8px) scale(1.14);

  background: rgba(255,255,255,0.12);
  border-color: rgba(255,255,255,0.36);

  /* Stronger hover glow */
  box-shadow:
    0 10px 35px rgba(0,0,0,0.7),
    0 0 40px rgba(210, 130, 255, 0.75),
    0 0 20px rgba(140, 200, 255, 0.45),
    inset 0 0 20px rgba(255,255,255,0.08);
}

/* Arrow icon adjustments */
#backToTop svg {
  width: 28px;
  height: 28px;
  stroke: white;
  filter: drop-shadow(0 0 6px rgba(255,255,255,0.35));
  opacity: 0.95;
  transition: opacity .3s ease;
}

#backToTop:hover svg {
  opacity: 1;
}

/* Purple gradient radius ring */
#backToTop::before {
  content: "";
  position: absolute;
  inset: -6px;
  border-radius: 50%;
  z-index: -1;

  background: radial-gradient(circle,
    rgba(120,0,255,0.35),
    rgba(0,0,0,0)
  );

  animation: ringPulse 3.2s ease-in-out infinite;
}

/* Animated shimmer ring */
#backToTop::after {
  content: "";
  position: absolute;
  inset: -2px;
  border-radius: 50%;
  border: 2px solid transparent;

  background:
    conic-gradient(from 0deg,
      rgba(255,255,255,0.45),
      rgba(255,255,255,0.0) 40%,
      rgba(255,255,255,0.45),
      rgba(255,255,255,0) 70%
    );

  filter: blur(6px);
  opacity: 0.5;
  animation: shimmerRotate 6s linear infinite;
}

/* Idle floating animation */
@keyframes backToTopFloat {
  0%   { transform: translateY(0); }
  50%  { transform: translateY(-4px); }
  100% { transform: translateY(0); }
}

/* Subtle pulsing of glowing ring */
@keyframes ringPulse {
  0%   { opacity: .35; transform: scale(1); }
  50%  { opacity: .55; transform: scale(1.08); }
  100% { opacity: .35; transform: scale(1); }
}

/* Rotating shimmer inside ring */
@keyframes shimmerRotate {
  0%   { transform: rotate(0deg); }
  100% { transform: rotate(360deg); }
}

/* Hide scrollbars globally */

/* Chrome, Edge, Safari */
body::-webkit-scrollbar {
  display: none;
}

/* Firefox */
body {
  scrollbar-width: none;
}

/* IE / old Edge */
html, body {
  -ms-overflow-style: none;
}

