/* Dotted Grid Background Pattern */
.grid-bg {
  background-image: radial-gradient(rgba(0, 0, 0, 0.08) 1.5px, transparent 1.5px);
  background-size: 24px 24px;
}

/* Custom Scrollbar */
::-webkit-scrollbar {
  width: 8px;
}
::-webkit-scrollbar-track {
  background: #000000;
}
::-webkit-scrollbar-thumb {
  background: #27272a;
  border-radius: 4px;
}
::-webkit-scrollbar-thumb:hover {
  background: #b5ff00;
}

/* Marquee Scrolling Animation */
.marquee-container {
  overflow: hidden;
  white-space: nowrap;
  display: flex;
}

.marquee-content {
  display: inline-flex;
  animation: marquee-scroll 25s linear infinite;
  will-change: transform;
}

@keyframes marquee-scroll {
  0% {
    transform: translate3d(0, 0, 0);
  }
  100% {
    transform: translate3d(-50%, 0, 0);
  }
}

/* 3D Folder Cards Integration */
:root {
  --folder-green: #B5FF00;
  --folder-green-dark: #8cc400;
  --card-shadow: rgba(181, 255, 0, 0.15);
}

.folder-card {
  display: flex;
  flex-direction: column;
  align-items: center;
  width: 280px;
  perspective: 1000px;
  margin: 0 auto;
}

.folder-container {
  position: relative;
  width: 240px;
  height: 160px;
  cursor: pointer;
  transform-style: preserve-3d;
  transition: transform 0.5s cubic-bezier(0.25, 0.8, 0.25, 1);
}

.folder-back {
  position: absolute;
  width: 100%;
  height: 100%;
  top: 0;
  left: 0;
  pointer-events: none;
  z-index: 1;
}

.folder-tab {
  position: absolute;
  top: -16px;
  left: 0;
  width: 90px;
  height: 25px;
  background: linear-gradient(to right, var(--folder-green), #c7ff3b);
  border-radius: 12px 12px 0 0;
}

.folder-tab::after {
  content: '';
  position: absolute;
  right: -15px;
  bottom: 0;
  width: 15px;
  height: 15px;
  background: transparent;
  border-bottom-left-radius: 15px;
  box-shadow: -5px 5px 0 0 var(--folder-green);
  pointer-events: none;
}

.folder-back-body {
  width: 100%;
  height: 100%;
  background: linear-gradient(135deg, var(--folder-green) 0%, var(--folder-green-dark) 100%);
  border-radius: 0 16px 16px 16px;
  box-shadow: 
    0 4px 15px rgba(0, 0, 0, 0.05),
    inset 0 1px 2px rgba(255, 255, 255, 0.3);
}

.folder-front {
  position: absolute;
  bottom: 0;
  left: 0;
  width: 100%;
  height: 125px;
  background: rgba(255, 255, 255, 0.2);
  backdrop-filter: blur(10px) saturate(180%);
  -webkit-backdrop-filter: blur(10px) saturate(180%);
  border: 1px solid rgba(255, 255, 255, 0.3);
  border-radius: 16px;
  z-index: 10;
  transform-origin: bottom center;
  transition: 
    transform 0.5s cubic-bezier(0.25, 0.8, 0.25, 1),
    background-color 0.5s,
    box-shadow 0.5s;
  box-shadow: 
    0 8px 32px 0 rgba(0, 0, 0, 0.06),
    0 12px 24px -4px var(--card-shadow),
    inset 0 1px 1px rgba(255, 255, 255, 0.4);
}

.folder-inner-files {
  position: absolute;
  bottom: 10px;
  left: 15px;
  right: 15px;
  height: 115px;
  z-index: 5;
  transition: transform 0.5s cubic-bezier(0.25, 0.8, 0.25, 1);
}

.inner-file {
  position: absolute;
  width: 100%;
  height: 100%;
  background: #ffffff;
  border-radius: 10px;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.12);
  overflow: hidden;
  transform-origin: bottom center;
  transition: transform 0.5s cubic-bezier(0.25, 0.8, 0.25, 1), box-shadow 0.5s;
}

.inner-file img, 
.inner-file video {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

.inner-file video {
  background: #000;
}

.video-overlay {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  width: 32px;
  height: 32px;
  background: rgba(0, 0, 0, 0.6);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  opacity: 0.8;
  pointer-events: none;
  transition: opacity 0.3s;
}

.video-overlay svg {
  width: 16px;
  height: 16px;
  fill: #ffffff;
}

.file-1 { transform: rotate(-2.5deg) translateY(0); z-index: 6; }
.file-2 { transform: rotate(1deg) translateY(-2px); z-index: 7; }
.file-3 { transform: rotate(-1.5deg) translateY(-4px); z-index: 8; }
.file-4 { transform: rotate(2deg) translateY(-6px); z-index: 9; }

.folder-label {
  margin-top: 20px;
  font-size: 1.125rem;
  font-weight: 800;
  color: #0f172a;
  text-align: center;
  transition: color 0.3s;
  pointer-events: none;
}

/* Hover Interactions */
.folder-card:hover .folder-container {
  transform: translateY(-8px);
}

.folder-card:hover .folder-label {
  color: var(--folder-green-dark);
}

.folder-card:hover .folder-front {
  transform: perspective(800px) rotateX(-16deg);
  background: rgba(255, 255, 255, 0.15);
  box-shadow: 
    0 15px 35px 0 rgba(0, 0, 0, 0.08),
    0 20px 30px -4px rgba(181, 255, 0, 0.35),
    inset 0 1px 1px rgba(255, 255, 255, 0.5);
}

.folder-card:hover .file-1 {
  transform: translateY(-70px) rotate(-16deg) translateX(-36px) scale(1.05);
  box-shadow: 0 12px 24px rgba(0, 0, 0, 0.25);
  z-index: 12;
}

.folder-card:hover .file-2 {
  transform: translateY(-90px) rotate(-5deg) translateX(-12px) scale(1.05);
  box-shadow: 0 15px 28px rgba(0, 0, 0, 0.25);
  z-index: 13;
}

.folder-card:hover .file-3 {
  transform: translateY(-90px) rotate(5deg) translateX(12px) scale(1.05);
  box-shadow: 0 15px 28px rgba(0, 0, 0, 0.25);
  z-index: 14;
}

.folder-card:hover .file-4 {
  transform: translateY(-70px) rotate(16deg) translateX(36px) scale(1.05);
  box-shadow: 0 12px 24px rgba(0, 0, 0, 0.25);
  z-index: 15;
}

.folder-card:hover .video-overlay {
  opacity: 0;
}

/* Smooth Interactive Glow on Hover */
.glow-on-hover {
  transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

.glow-on-hover:hover {
  box-shadow: 0 0 20px rgba(181, 255, 0, 0.15);
  transform: translateY(-2px);
}

/* Custom progress bar transition */
.progress-bar-fill {
  width: 0%;
  transition: width 1.5s cubic-bezier(0.1, 1, 0.1, 1);
}

/* Text highlight stroke effect */
.text-stroke-white {
  -webkit-text-stroke: 1px rgba(255, 255, 255, 0.3);
  color: transparent;
}
.text-stroke-black {
  -webkit-text-stroke: 1px rgba(0, 0, 0, 0.1);
  color: transparent;
}
