* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

/* Soft modern background */
body {
  font-family: Arial, sans-serif;
  background: linear-gradient(135deg, #dbeafe, #fce7f3, #dcfce7);
  min-height: 100vh;
  overflow-x: hidden;
}

/* ===== HEADER ===== */

.header {
  position: fixed;
  top: 0;
  width: 100%;
  display: flex;
  align-items: center;
  backdrop-filter: blur(15px);
  background: rgba(255,255,255,0.6);
  padding: 15px;
  z-index: 9999;
  box-shadow: 0 8px 25px rgba(0,0,0,0.1);
}

/* HOME LINK */

.home-link {
  padding: 10px 18px;
  margin-right: 20px;
  text-decoration: none;
  color: #111;
  background: white;
  border-radius: 10px;
  position: relative;
  font-weight: bold;
}

.home-link::before {
  content: "";
  position: absolute;
  inset: -3px;
  border-radius: 12px;
  background: linear-gradient(90deg,#00ffcc,#00bfff,#0000ff);
  background-size: 300%;
  animation: sky 3s linear infinite;
  z-index: -1;
}

@keyframes sky {
  0% {background-position:0%}
  100% {background-position:300%}
}

/* ===== ARROWS ===== */

.arrow {
  background: transparent;
  border: none;
  font-size: 26px;
  cursor: pointer;
  padding: 10px;
  transition: 0.3s;
  color: #2563eb;
}

.arrow:hover {
  transform: scale(1.2);
}

/* ===== SCROLL AREA ===== */

.links-wrapper {
  overflow: hidden;
  flex: 1;
}

.links-container {
  display: flex;
  gap: 25px;
  overflow-x: auto;
  scroll-behavior: smooth;
  perspective: 800px;
}

.links-container::-webkit-scrollbar {
  display: none;
}

/* ===== LINKS ===== */

.nav-link {
  flex: 0 0 auto;
  padding: 12px 25px;
  background: white;
  color: #111;
  text-decoration: none;
  border-radius: 10px;
  position: relative;
  transition: 0.4s ease;
  transform-style: preserve-3d;
}

/* RGB Animated Border */

.nav-link::before {
  content: "";
  position: absolute;
  inset: -3px;
  border-radius: 12px;
  background: linear-gradient(90deg, red, blue, green, red);
  background-size: 400%;
  animation: rgb 4s linear infinite;
  z-index: -1;
}

@keyframes rgb {
  0% {background-position:0%}
  100% {background-position:400%}
}

/* Featured */
.nav-link.featured {
  transform: scale(1.15);
}

/* Center Highlight (visual only) */
.nav-link.active {
  transform: scale(1.5) rotateY(8deg);
  background: #bfdbfe;
  box-shadow: 0 0 20px rgba(37,99,235,0.4);
}

/* ===== CONTENT ===== */

.content {
  margin-top: 130px;
  padding: 40px;
  text-align: center;
  animation: fadeIn 0.6s ease;
}

@keyframes fadeIn {
  from {opacity:0; transform:translateY(20px);}
  to {opacity:1; transform:translateY(0);}
}

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

.random-footer {
  position: relative;
  padding: 25px 0;
  background: linear-gradient(135deg, #fdf2f8, #e0f2fe);
  overflow: hidden;
}

/* Fade edges effect */
.footer-scroll-wrapper {
  overflow-x: auto;
  position: relative;
  mask-image: linear-gradient(
    to right,
    transparent,
    black 10%,
    black 90%,
    transparent
  );
  -webkit-mask-image: linear-gradient(
    to right,
    transparent,
    black 10%,
    black 90%,
    transparent
  );
}

.footer-links {
  display: flex;
  gap: 25px;
  padding: 10px 30px;
  scroll-behavior: smooth;
}

.footer-links::-webkit-scrollbar {
  display: none;
}

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

.footer-link {
  flex: 0 0 auto;
  padding: 12px 22px;
  background: white;
  color: #111;
  text-decoration: none;
  border-radius: 10px;
  font-weight: bold;
  position: relative;
  transition: transform 0.3s ease;
}

.footer-link:hover {
  transform: scale(1.1);
}

/* Animated GIF-style border effect */
.footer-link::before {
  content: "";
  position: absolute;
  inset: -3px;
  border-radius: 12px;
  background-size: 300% 300%;
  z-index: -1;
  animation: borderMove 4s linear infinite;
}

@keyframes borderMove {
  0% { background-position: 0% }
  100% { background-position: 300% }
}



/* Smooth scaling */
.footer-link {
  transition: transform 0.4s ease, box-shadow 0.4s ease;
}

/* Center active effect */
.footer-link.center-active {
  transform: scale(1.35);
  animation: pulseShadow 1.8s ease-in-out infinite;
  z-index: 5;
}

/* Infinite shadow pulse */
@keyframes pulseShadow {
  0% {
    box-shadow: 0 0 5px rgba(255,0,0,0.4),
                0 0 10px rgba(0,0,255,0.4);
  }
  50% {
    box-shadow: 0 0 20px rgba(0,255,0,0.8),
                0 0 35px rgba(255,0,255,0.8);
  }
  100% {
    box-shadow: 0 0 5px rgba(255,0,0,0.4),
                0 0 10px rgba(0,0,255,0.4);
  }
}

.no-scroll {
  overflow: hidden !important;
  height: 100vh;
}

.content {
  padding: 4px;
}

.dummy {
  height: 2000px;
  background: linear-gradient(to bottom, #f0f0f0, #d0d0d0);
  margin-top: 20px;
}

/* Floating Button */
#draggableBtn {
  position: fixed;
  width: 80px;
  height: 80px;
  border-radius: 50%;
  border: none;
  font-size: 5px;
  background: #007bff;
  color: white;
  cursor: grab;
  z-index: 9999;
  left: auto;
  top: auto;
  right: 30px;
  bottom: 30px;
  box-shadow: 0 6px 15px 
  rgba(0,0,0, 0.6);

  display: flex;
  align-items: center;
  justify-content: center;

  animation: float 3s ease-in-out infinite;
  transition: box-shadow 0.2s ease, transform 0.2s ease;
}

#draggableBtn:active {
  cursor: grabbing;
  animation: none;
  transform: scale(1.05);
  box-shadow: 0 6px 18px rgba(0,0,0,0.3);
}

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

@keyframes colorChange {
  50%
  {background-color: blue;}
  100%
  {background-color: green;}
}

#new { display: inline-brock;
  width: 100px;
  height: 100px; 
  background: red;
 animation: colorChange 2s infinite linear; color: rgb(255, 255, 255);
 text-align: center;
 font-weight: bold;
 padding: 5px;

 border-radius: 15px;
 box-shadow: 0 10px 20px rgba(0,0,0, 1);
 border: 3px solid rgba(255,0,0, 0.2);

 }

.circle-btn{
    width: 80px;
    height: 80px;
    border-radius: 50%;
    border: none;
    background: #d1d5db;
    position: relative;
    overflow: hidden;
    cursor: pointer;
}

.circle-btn.loading::before{
    content: "";
    position: absolute;
    top: 0;
    left: -150%;
    width: 60%;
    height: 100%;
    background: linear-gradient(
        90deg,
        transparent,
        rgba(255,255,255,0.8),
        transparent
    );
    animation: shimmer 1.2s infinite;
}