/* ========================================
   ENHANCED NAVIGATION BAR
   ======================================== */

/* Main navbar styling - FORCE VISIBLE */
.navbar,
nav.navbar,
nav.fixed {
  position: fixed !important;
  top: 0 !important;
  left: 0 !important;
  right: 0 !important;
  z-index: 99999 !important;
  background: rgba(255, 255, 255, 0.75) !important;
  backdrop-filter: saturate(180%) blur(20px) !important;
  -webkit-backdrop-filter: saturate(180%) blur(20px) !important;
  border-bottom: 1px solid rgba(0, 0, 0, 0.05) !important;
  transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1) !important;
  height: 80px !important;
  display: flex !important;
  align-items: center !important;
  visibility: visible !important;
  opacity: 1 !important;
}

.dark .navbar,
.dark nav.navbar {
  background: rgba(10, 10, 10, 0.7) !important;
  backdrop-filter: saturate(180%) blur(20px) !important;
  -webkit-backdrop-filter: saturate(180%) blur(20px) !important;
  border-bottom: 1px solid rgba(255, 255, 255, 0.05) !important;
}

/* Navbar scrolled state */
.navbar.scrolled {
  background: rgba(255, 255, 255, 0.95);
  box-shadow: 0 1px 3px rgba(0, 0, 0, 0.05);
}

.dark .navbar.scrolled {
  background: rgba(10, 10, 10, 0.95);
}

/* Logo styling */
.navbar-logo {
  font-size: 1.5rem;
  font-weight: 800;
  letter-spacing: -0.04em;
  background: linear-gradient(135deg, #000 0%, #333 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

.dark .navbar-logo {
  background: linear-gradient(135deg, #fff 0%, #aaa 100%);
  -webkit-background-clip: text;
  background-clip: text;
}

/* Navigation links */
.nav-link {
  position: relative;
  font-size: 0.875rem;
  font-weight: 500;
  color: #64748b;
  transition: color 0.2s ease;
  padding: 0.5rem 0;
}

.nav-link:hover {
  color: #000;
}

.dark .nav-link {
  color: #94a3b8;
}

.dark .nav-link:hover {
  color: #fff;
}

/* Animated underline */
.nav-link::after {
  content: '';
  position: absolute;
  bottom: 0;
  left: 0;
  width: 0;
  height: 2px;
  background: linear-gradient(90deg, #000, #666);
  transition: width 0.3s cubic-bezier(0.4, 0, 0.2, 1);
  border-radius: 2px;
}

.dark .nav-link::after {
  background: linear-gradient(90deg, #fff, #aaa);
}

.nav-link:hover::after,
.nav-link.active::after {
  width: 100%;
}

/* CTA Button in navbar */
.nav-cta {
  position: relative;
  background: #000;
  color: #fff;
  font-size: 0.875rem;
  font-weight: 600;
  padding: 0.625rem 1.25rem;
  border-radius: 100px;
  transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
  box-shadow: 0 4px 14px rgba(0, 0, 0, 0.15);
  overflow: hidden;
}

.nav-cta:hover {
  transform: translateY(-2px);
  box-shadow: 0 6px 20px rgba(0, 0, 0, 0.2);
}

.nav-cta::before {
  content: '';
  position: absolute;
  top: 0;
  left: -100%;
  width: 100%;
  height: 100%;
  background: linear-gradient(90deg, transparent, rgba(255,255,255,0.2), transparent);
  transition: left 0.5s ease;
}

.nav-cta:hover::before {
  left: 100%;
}

/* Mobile menu button */
.mobile-menu-btn {
  display: none;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  width: 40px;
  height: 40px;
  background: transparent;
  border: none;
  cursor: pointer;
  padding: 8px;
  gap: 5px;
  border-radius: 8px;
  transition: background 0.2s ease;
}

.mobile-menu-btn:hover {
  background: rgba(0, 0, 0, 0.05);
}

.dark .mobile-menu-btn:hover {
  background: rgba(255, 255, 255, 0.1);
}

.mobile-menu-btn span {
  display: block;
  width: 20px;
  height: 2px;
  background: currentColor;
  transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
  border-radius: 2px;
}

.mobile-menu-btn.active span:nth-child(1) {
  transform: rotate(45deg) translate(5px, 5px);
}

.mobile-menu-btn.active span:nth-child(2) {
  opacity: 0;
  transform: translateX(-10px);
}

.mobile-menu-btn.active span:nth-child(3) {
  transform: rotate(-45deg) translate(5px, -5px);
}

@media (max-width: 768px) {
  .mobile-menu-btn {
    display: flex;
  }
}

/* ========================================
   HERO BACKGROUND - Soft Radial Gradient
   ======================================== */

.hero-background {
  position: absolute;
  inset: 0;
  overflow: hidden;
  pointer-events: none;
  z-index: -1;
}

/* Main soft glow */
.hero-glow-main {
  position: absolute;
  width: 800px;
  height: 800px;
  background: radial-gradient(circle, rgba(226, 232, 240, 0.6) 0%, rgba(226, 232, 240, 0) 70%);
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  filter: blur(60px);
}

.dark .hero-glow-main {
  background: radial-gradient(circle, rgba(30, 41, 59, 0.4) 0%, rgba(30, 41, 59, 0) 70%);
}

/* Top glow */
.hero-glow-top {
  position: absolute;
  width: 600px;
  height: 400px;
  background: radial-gradient(ellipse, rgba(241, 245, 249, 0.8) 0%, rgba(241, 245, 249, 0) 70%);
  top: -100px;
  left: 50%;
  transform: translateX(-50%);
  filter: blur(40px);
}

.dark .hero-glow-top {
  background: radial-gradient(ellipse, rgba(51, 65, 85, 0.3) 0%, rgba(51, 65, 85, 0) 70%);
}

/* Side glows */
.hero-glow-left {
  position: absolute;
  width: 500px;
  height: 600px;
  background: radial-gradient(ellipse, rgba(248, 250, 252, 0.6) 0%, rgba(248, 250, 252, 0) 70%);
  top: 20%;
  left: -200px;
  filter: blur(50px);
}

.hero-glow-right {
  position: absolute;
  width: 500px;
  height: 600px;
  background: radial-gradient(ellipse, rgba(248, 250, 252, 0.6) 0%, rgba(248, 250, 252, 0) 70%);
  top: 20%;
  right: -200px;
  filter: blur(50px);
}

.dark .hero-glow-left,
.dark .hero-glow-right {
  background: radial-gradient(ellipse, rgba(30, 41, 59, 0.25) 0%, rgba(30, 41, 59, 0) 70%);
}

/* Subtle grid pattern overlay */
.hero-grid-pattern {
  position: absolute;
  inset: 0;
  background-image: 
    linear-gradient(rgba(0, 0, 0, 0.03) 1px, transparent 1px),
    linear-gradient(90deg, rgba(0, 0, 0, 0.03) 1px, transparent 1px);
  background-size: 60px 60px;
  opacity: 0.5;
}

.dark .hero-grid-pattern {
  background-image: 
    linear-gradient(rgba(255, 255, 255, 0.02) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255, 255, 255, 0.02) 1px, transparent 1px);
}

/* ========================================
   3D FOLDER ICON (CSS-only)
   ======================================== */

.folder-3d {
  display: inline-block;
  width: 64px;
  height: 48px;
  position: relative;
  transform-style: preserve-3d;
  vertical-align: middle;
  margin: 0 4px;
}

.folder-3d-body {
  position: absolute;
  bottom: 0;
  left: 0;
  width: 100%;
  height: 36px;
  background: linear-gradient(180deg, #fef3c7 0%, #fde68a 100%);
  border-radius: 8px;
  box-shadow: 
    0 4px 6px rgba(0, 0, 0, 0.1),
    0 10px 20px rgba(0, 0, 0, 0.1),
    inset 0 1px 0 rgba(255, 255, 255, 0.4);
}

.folder-3d-tab {
  position: absolute;
  top: 0;
  left: 0;
  width: 28px;
  height: 16px;
  background: linear-gradient(180deg, #fef3c7 0%, #fde68a 100%);
  border-radius: 8px 8px 0 0;
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.4);
}

.folder-3d-content {
  position: absolute;
  top: 4px;
  right: 4px;
  width: 32px;
  height: 24px;
  background: white;
  border-radius: 4px;
  box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
  display: flex;
  align-items: center;
  justify-content: center;
}

.folder-3d-content::before {
  content: '';
  width: 20px;
  height: 3px;
  background: #3b82f6;
  border-radius: 2px;
}

/* Alternative: Real 3D folder with CSS transforms */
.folder-3d-real {
  display: inline-block;
  width: 60px;
  height: 45px;
  position: relative;
  vertical-align: middle;
  margin: 0 4px;
  transform: perspective(100px) rotateY(-5deg) rotateX(5deg);
  transition: transform 0.3s ease;
}

.folder-3d-real:hover {
  transform: perspective(100px) rotateY(0deg) rotateX(0deg) scale(1.05);
}

.folder-3d-real-back {
  position: absolute;
  bottom: 0;
  left: 0;
  width: 100%;
  height: 35px;
  background: linear-gradient(135deg, #f59e0b 0%, #d97706 100%);
  border-radius: 0 8px 8px 8px;
  box-shadow: 
    0 8px 20px rgba(245, 158, 11, 0.3),
    0 4px 8px rgba(0, 0, 0, 0.1);
}

.folder-3d-real-tab {
  position: absolute;
  top: 0;
  left: 0;
  width: 24px;
  height: 14px;
  background: linear-gradient(135deg, #fbbf24 0%, #f59e0b 100%);
  border-radius: 6px 6px 0 0;
}

.folder-3d-real-front {
  position: absolute;
  bottom: 0;
  left: 0;
  width: 100%;
  height: 32px;
  background: linear-gradient(180deg, #fcd34d 0%, #fbbf24 50%, #f59e0b 100%);
  border-radius: 0 6px 8px 8px;
  box-shadow: 
    0 2px 4px rgba(0, 0, 0, 0.1),
    inset 0 1px 0 rgba(255, 255, 255, 0.3);
  transform-origin: bottom;
}

.folder-3d-real-papers {
  position: absolute;
  top: 8px;
  right: 8px;
  width: 28px;
  height: 20px;
  background: white;
  border-radius: 3px;
  box-shadow: -2px 2px 4px rgba(0, 0, 0, 0.1);
}

.folder-3d-real-papers::before {
  content: '';
  position: absolute;
  top: 4px;
  left: 4px;
  right: 4px;
  height: 2px;
  background: #3b82f6;
  border-radius: 1px;
  box-shadow: 0 5px 0 #3b82f6;
}

/* ========================================
   3D CHART/PROGRESS ELEMENTS
   ======================================== */

.chart-3d-container {
  position: relative;
  width: 120px;
  height: 120px;
  margin: 0 auto;
}

.chart-3d-ring {
  position: absolute;
  inset: 0;
  border-radius: 50%;
  background: conic-gradient(
    from 0deg,
    #000 0deg,
    #000 var(--progress, 120deg),
    #e2e8f0 var(--progress, 120deg),
    #e2e8f0 360deg
  );
  padding: 8px;
  box-shadow: 
    0 10px 30px rgba(0, 0, 0, 0.1),
    inset 0 2px 4px rgba(255, 255, 255, 0.5);
}

.dark .chart-3d-ring {
  background: conic-gradient(
    from 0deg,
    #fff 0deg,
    #fff var(--progress, 120deg),
    #334155 var(--progress, 120deg),
    #334155 360deg
  );
}

.chart-3d-inner {
  width: 100%;
  height: 100%;
  border-radius: 50%;
  background: white;
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: 700;
  font-size: 1.5rem;
  box-shadow: inset 0 2px 4px rgba(0, 0, 0, 0.05);
}

.dark .chart-3d-inner {
  background: #1e293b;
}

/* 3D Progress bars */
.progress-3d {
  background: linear-gradient(180deg, #f1f5f9 0%, #e2e8f0 100%);
  border-radius: 100px;
  padding: 4px;
  box-shadow: 
    inset 0 2px 4px rgba(0, 0, 0, 0.05),
    0 1px 2px rgba(255, 255, 255, 0.8);
}

.dark .progress-3d {
  background: linear-gradient(180deg, #334155 0%, #1e293b 100%);
  box-shadow: inset 0 2px 4px rgba(0, 0, 0, 0.3);
}

.progress-3d-fill {
  height: 100%;
  border-radius: 100px;
  background: linear-gradient(90deg, #000 0%, #333 100%);
  box-shadow: 
    0 2px 4px rgba(0, 0, 0, 0.2),
    inset 0 1px 0 rgba(255, 255, 255, 0.2);
  position: relative;
  overflow: hidden;
}

.progress-3d-fill::after {
  content: '';
  position: absolute;
  top: 0;
  left: -100%;
  width: 100%;
  height: 100%;
  background: linear-gradient(90deg, transparent, rgba(255,255,255,0.3), transparent);
  animation: shimmer 2s infinite;
}

@keyframes shimmer {
  0% { left: -100%; }
  100% { left: 100%; }
}

/* 3D Card with depth */
.card-3d {
  background: white;
  border-radius: 20px;
  padding: 32px;
  box-shadow: 
    0 1px 2px rgba(0, 0, 0, 0.02),
    0 4px 8px rgba(0, 0, 0, 0.02),
    0 8px 16px rgba(0, 0, 0, 0.02),
    0 16px 32px rgba(0, 0, 0, 0.03);
  border: 1px solid rgba(0, 0, 0, 0.04);
  transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
}

.card-3d:hover {
  transform: translateY(-4px);
  box-shadow: 
    0 4px 8px rgba(0, 0, 0, 0.04),
    0 8px 16px rgba(0, 0, 0, 0.04),
    0 16px 32px rgba(0, 0, 0, 0.04),
    0 32px 64px rgba(0, 0, 0, 0.06);
}

.dark .card-3d {
  background: rgba(255, 255, 255, 0.03);
  border-color: rgba(255, 255, 255, 0.06);
  box-shadow: 
    0 1px 2px rgba(0, 0, 0, 0.1),
    0 4px 8px rgba(0, 0, 0, 0.1),
    0 8px 16px rgba(0, 0, 0, 0.1);
}
