* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
  cursor: url('data:image/svg+xml;utf8,<svg xmlns="http://www.w3.org/2000/svg" width="24" height="24" viewBox="0 0 24 24"><path fill="%23FFD700" d="M3 17.25V21h3.75L17.81 9.94l-3.75-3.75L3 17.25zM20.71 7.04c.39-.39.39-1.02 0-1.41l-2.34-2.34c-.39-.39-1.02-.39-1.41 0l-1.83 1.83 3.75 3.75 1.83-1.83z"/></svg>'), auto;
}

:root {
  --primary: gold;
  --primary-dark: orange;
  --secondary: red;
  --accent: rgb(103, 103, 5);
  --success: #10b981;
  --warning: #f59e0b;
  --bg-dark: #0f172a;
  --bg-card: #1e293b;
  --bg-hover: #334155;
  --text-primary: #f1f5f9;
  --text-secondary: #cbd5e1;
  --text-muted: #94a3b8;
}

body {
  font-family: 'Inter', sans-serif;
  background: #000;
  color: var(--text-primary);
  min-height: 100vh;
  overflow-x: hidden;
  position: relative;
}

/* Enhanced Custom Cursor */
.cursor {
  width: 20px;
  height: 20px;
  border: 2px solid var(--primary);
  border-radius: 50%;
  position: fixed;
  pointer-events: none;
  z-index: 9999;
  transition: all 0.15s ease;
  mix-blend-mode: difference;
  transform: translate(-50%, -50%);
}

.cursor-follower {
  width: 40px;
  height: 40px;
  border: 1px solid var(--primary);
  border-radius: 50%;
  position: fixed;
  pointer-events: none;
  z-index: 9998;
  transition: all 0.3s ease;
  opacity: 0.5;
  transform: translate(-50%, -50%);
}

.cursor.active {
  transform: translate(-50%, -50%) scale(0.7);
  background: var(--primary);
}

.cursor-follower.active {
  transform: translate(-50%, -50%) scale(1.5);
}

/* Pen Trail Effect */
.pen-trail {
  position: fixed;
  width: 4px;
  height: 4px;
  background: var(--primary);
  border-radius: 50%;
  pointer-events: none;
  z-index: 9997;
  opacity: 0.6;
  animation: trailFade 0.8s ease-out forwards;
}

@keyframes trailFade {
  to {
    opacity: 0;
    transform: scale(0.5);
  }
}

/* Enhanced Animated Background with Blobs */
.bg-animation {
  position: fixed;
  width: 100%;
  height: 100%;
  top: 0;
  left: 0;
  z-index: 0;
  overflow: hidden;
  pointer-events: none;
  background: radial-gradient(ellipse at top, #0f172a 0%, #000 100%);
}

/* Animated Particles */
.bg-animation span {
  position: absolute;
  width: 3px;
  height: 3px;
  background: var(--primary);
  border-radius: 50%;
  animation: float 15s infinite ease-in-out;
  opacity: 0.3;
  box-shadow: 0 0 10px var(--primary);
}

@keyframes float {
  0%, 100% { transform: translateY(0) translateX(0); opacity: 0; }
  10% { opacity: 0.4; }
  50% { transform: translateY(-500px) translateX(100px); opacity: 0.8; }
  90% { opacity: 0.3; }
}

/* Animated Blob Shapes */
.blob {
  position: absolute;
  border-radius: 50%;
  filter: blur(60px);
  opacity: 0.15;
  animation: blobFloat 20s infinite ease-in-out;
  mix-blend-mode: screen;
}

.blob-1 {
  width: 400px;
  height: 400px;
  background: linear-gradient(135deg, var(--primary), var(--secondary));
  top: 10%;
  left: 10%;
  animation-delay: 0s;
}

.blob-2 {
  width: 350px;
  height: 350px;
  background: linear-gradient(135deg, var(--secondary), var(--accent));
  top: 50%;
  right: 10%;
  animation-delay: -5s;
}

.blob-3 {
  width: 300px;
  height: 300px;
  background: linear-gradient(135deg, var(--primary), #ff6b6b);
  bottom: 10%;
  left: 30%;
  animation-delay: -10s;
}

.blob-4 {
  width: 450px;
  height: 450px;
  background: linear-gradient(135deg, #ff6b6b, var(--primary));
  top: 70%;
  right: 30%;
  animation-delay: -15s;
}

@keyframes blobFloat {
  0%, 100% {
    transform: translate(0, 0) scale(1) rotate(0deg);
  }
  25% {
    transform: translate(50px, -50px) scale(1.1) rotate(90deg);
  }
  50% {
    transform: translate(-30px, 30px) scale(0.9) rotate(180deg);
  }
  75% {
    transform: translate(40px, 60px) scale(1.05) rotate(270deg);
  }
}

/* Gradient Mesh Background */
.gradient-mesh {
  position: absolute;
  width: 100%;
  height: 100%;
  background: 
    radial-gradient(circle at 20% 30%, rgba(255, 215, 0, 0.1) 0%, transparent 50%),
    radial-gradient(circle at 80% 70%, rgba(255, 0, 0, 0.1) 0%, transparent 50%),
    radial-gradient(circle at 40% 80%, rgba(255, 140, 0, 0.1) 0%, transparent 50%);
  animation: meshMove 15s ease-in-out infinite;
}

@keyframes meshMove {
  0%, 100% {
    opacity: 0.3;
    transform: scale(1);
  }
  50% {
    opacity: 0.5;
    transform: scale(1.1);
  }
}

/* Navbar */
.navbar {
  position: fixed;
  top: 0;
  width: 100%;
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 20px 5%;
  background: rgba(15, 23, 42, 0.7);
  backdrop-filter: blur(20px) saturate(180%);
  border-bottom: 1px solid rgba(255, 215, 0, 0.1);
  z-index: 1000;
  transition: all 0.3s ease;
  box-shadow: 0 4px 30px rgba(0, 0, 0, 0.3);
}

.navbar.scrolled {
  padding: 15px 5%;
  background: rgba(15, 23, 42, 0.9);
  box-shadow: 0 10px 40px rgba(0, 0, 0, 0.5);
}

.logo {
  display: flex;
  align-items: center;
  gap: 12px;
  font-size: 1.5rem;
  font-weight: 700;
  background: linear-gradient(135deg, var(--primary), var(--secondary));
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  filter: drop-shadow(0 0 20px rgba(255, 215, 0, 0.3));
}

.logo i {
  font-size: 2rem;
  background: linear-gradient(135deg, var(--primary), var(--secondary));
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  animation: logoGlow 2s ease-in-out infinite;
}

@keyframes logoGlow {
  0%, 100% { filter: drop-shadow(0 0 5px rgba(255, 215, 0, 0.5)); }
  50% { filter: drop-shadow(0 0 20px rgba(255, 215, 0, 0.8)); }
}

.nav-actions {
  display: flex;
  gap: 15px;
  align-items: center;
}

.nav-btn {
  padding: 10px 24px;
  border-radius: 12px;
  border: none;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.3s ease;
  font-size: 0.95rem;
  position: relative;
  overflow: hidden;
}

.nav-btn::before {
  content: '';
  position: absolute;
  top: 50%;
  left: 50%;
  width: 0;
  height: 0;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.2);
  transform: translate(-50%, -50%);
  transition: width 0.6s, height 0.6s;
}

.nav-btn:hover::before {
  width: 300px;
  height: 300px;
}

.btn-outline {
  background: transparent;
  border: 2px solid var(--primary);
  color: var(--primary);
}

.btn-outline:hover {
  background: var(--primary);
  color: white;
  transform: translateY(-2px);
  box-shadow: 0 10px 25px rgba(255, 215, 0, 0.4);
}

.btn-primary {
  background: linear-gradient(135deg, var(--primary), var(--secondary));
  color: white;
  box-shadow: 0 4px 15px rgba(255, 215, 0, 0.3);
}

.btn-primary:hover {
  transform: translateY(-2px);
  box-shadow: 0 10px 30px rgba(255, 215, 0, 0.5);
}

/* Hero Section */
.hero {
  position: relative;
  padding: 140px 5% 80px;
  text-align: center;
  z-index: 1;
}

.hero h1 {
  font-size: 3.5rem;
  font-weight: 800;
  margin-bottom: 20px;
  background: linear-gradient(135deg, #fff, var(--text-secondary));
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  animation: fadeInUp 0.8s ease, textShimmer 3s ease-in-out infinite;
  line-height: 1.2;
  filter: drop-shadow(0 0 30px rgba(255, 255, 255, 0.1));
}

@keyframes textShimmer {
  0%, 100% { filter: drop-shadow(0 0 10px rgba(255, 255, 255, 0.1)); }
  50% { filter: drop-shadow(0 0 30px rgba(255, 215, 0, 0.3)); }
}

.hero .subtitle {
  font-size: 1.3rem;
  color: var(--text-secondary);
  margin-bottom: 15px;
  animation: fadeInUp 1s ease;
}

.hero .tagline {
  font-size: 1rem;
  color: var(--text-muted);
  margin-bottom: 40px;
  animation: fadeInUp 1.2s ease;
}

.stats-row {
  display: flex;
  justify-content: center;
  gap: 40px;
  margin-top: 50px;
  flex-wrap: wrap;
}

.stat-item {
  text-align: center;
  animation: fadeInUp 1.4s ease;
  min-width: 120px;
  position: relative;
}

.stat-item::after {
  content: '';
  position: absolute;
  bottom: -10px;
  left: 50%;
  transform: translateX(-50%);
  width: 50%;
  height: 2px;
  background: linear-gradient(90deg, transparent, var(--primary), transparent);
  opacity: 0.5;
}

.stat-number {
  font-size: 2.5rem;
  font-weight: 700;
  background: linear-gradient(135deg, var(--primary), var(--accent));
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  filter: drop-shadow(0 0 10px rgba(255, 215, 0, 0.3));
}

.stat-label {
  font-size: 0.9rem;
  color: var(--text-muted);
  margin-top: 5px;
}

/* Search Section */
.search-section {
  padding: 30px 5%;
  position: relative;
  z-index: 1;
}

.search-container {
  max-width: 700px;
  margin: 0 auto;
  position: relative;
}

.search-box {
  display: flex;
  align-items: center;
  background: rgba(30, 41, 59, 0.8);
  backdrop-filter: blur(10px);
  border-radius: 16px;
  padding: 18px 25px;
  border: 2px solid transparent;
  transition: all 0.3s ease;
  box-shadow: 0 10px 40px rgba(0, 0, 0, 0.3);
}

.search-box:focus-within {
  border-color: var(--primary);
  box-shadow: 0 10px 50px rgba(255, 215, 0, 0.4);
  background: rgba(30, 41, 59, 0.9);
}

.search-box i {
  color: var(--text-muted);
  font-size: 1.2rem;
  margin-right: 15px;
  transition: all 0.3s ease;
}

.search-box:focus-within i {
  color: var(--primary);
  transform: scale(1.1);
}

.search-box input {
  flex: 1;
  background: none;
  border: none;
  outline: none;
  color: var(--text-primary);
  font-size: 1.05rem;
}

.search-box input::placeholder {
  color: var(--text-muted);
}

.filter-tags {
  display: flex;
  gap: 10px;
  margin-top: 20px;
  flex-wrap: wrap;
  justify-content: center;
}

.filter-tag {
  padding: 8px 18px;
  background: rgba(30, 41, 59, 0.6);
  backdrop-filter: blur(10px);
  border-radius: 20px;
  font-size: 0.85rem;
  cursor: pointer;
  transition: all 0.3s ease;
  border: 1px solid transparent;
  position: relative;
  overflow: hidden;
}

.filter-tag::before {
  content: '';
  position: absolute;
  top: 0;
  left: -100%;
  width: 100%;
  height: 100%;
  background: linear-gradient(90deg, transparent, rgba(255, 215, 0, 0.2), transparent);
  transition: left 0.5s ease;
}

.filter-tag:hover::before {
  left: 100%;
}

.filter-tag:hover, .filter-tag.active {
  background: var(--primary);
  border-color: var(--primary);
  transform: translateY(-2px);
  box-shadow: 0 5px 20px rgba(255, 215, 0, 0.3);
}

/* Categories Grid */
.categories-section {
  padding: 40px 5% 80px;
  position: relative;
  z-index: 1;
}

.section-header {
  text-align: center;
  margin-bottom: 50px;
}

.section-title {
  font-size: 2.5rem;
  font-weight: 700;
  margin-bottom: 15px;
  background: linear-gradient(135deg, var(--primary), var(--secondary));
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  filter: drop-shadow(0 0 20px rgba(255, 215, 0, 0.2));
}

.section-subtitle {
  font-size: 1.1rem;
  color: var(--text-muted);
}

.category-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 25px;
  max-width: 1400px;
  margin: 0 auto;
}

.category-card {
  background: rgba(30, 41, 59, 0.6);
  backdrop-filter: blur(10px);
  border-radius: 20px;
  padding: 35px 25px;
  cursor: pointer;
  transition: all 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275);
  border: 2px solid rgba(255, 215, 0, 0.1);
  position: relative;
  overflow: hidden;
}

.category-card::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: linear-gradient(135deg, var(--primary), var(--secondary));
  opacity: 0;
  transition: opacity 0.4s ease;
  z-index: 0;
}

.category-card::after {
  content: '';
  position: absolute;
  top: -50%;
  left: -50%;
  width: 200%;
  height: 200%;
  background: radial-gradient(circle, rgba(255, 215, 0, 0.1) 0%, transparent 70%);
  opacity: 0;
  transition: all 0.6s ease;
  z-index: 0;
}

.category-card:hover::before {
  opacity: 0.15;
}

.category-card:hover::after {
  opacity: 1;
  transform: translate(25%, 25%);
}

.category-card:hover {
  transform: translateY(-10px) scale(1.02);
  border-color: var(--primary);
  box-shadow: 0 20px 60px rgba(255, 215, 0, 0.3);
  background: rgba(30, 41, 59, 0.8);
}

.category-card > * {
  position: relative;
  z-index: 1;
}

.card-icon {
  width: 70px;
  height: 70px;
  background: linear-gradient(135deg, var(--primary), var(--secondary));
  border-radius: 18px;
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 20px;
  font-size: 2rem;
  transition: all 0.5s ease;
  box-shadow: 0 5px 20px rgba(255, 215, 0, 0.3);
}

.category-card:hover .card-icon {
  transform: rotateY(360deg) scale(1.1);
  box-shadow: 0 10px 30px rgba(255, 215, 0, 0.5);
}

.card-title {
  font-size: 1.4rem;
  font-weight: 700;
  margin-bottom: 10px;
  color: var(--text-primary);
}

.card-desc {
  font-size: 0.95rem;
  color: var(--text-muted);
  margin-bottom: 20px;
  line-height: 1.6;
}

.card-meta {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding-top: 15px;
  border-top: 1px solid rgba(255, 255, 255, 0.1);
}

.card-topics {
  display: flex;
  align-items: center;
  gap: 6px;
  font-size: 0.85rem;
  color: var(--text-muted);
}

.card-difficulty {
  padding: 5px 12px;
  border-radius: 8px;
  font-size: 0.8rem;
  font-weight: 600;
  position: relative;
  overflow: hidden;
}

.card-difficulty::before {
  content: '';
  position: absolute;
  top: 0;
  left: -100%;
  width: 100%;
  height: 100%;
  background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.2), transparent);
  animation: shimmer 3s infinite;
}

@keyframes shimmer {
  0% { left: -100%; }
  100% { left: 100%; }
}

.difficulty-easy { background: rgba(16, 185, 129, 0.2); color: var(--success); }
.difficulty-medium { background: rgba(245, 158, 11, 0.2); color: var(--warning); }
.difficulty-hard { background: rgba(239, 68, 68, 0.2); color: #ef4444; }

/* Footer */
.footer {
  padding: 60px 5% 30px;
  background: rgba(15, 23, 42, 0.8);
  backdrop-filter: blur(10px);
  border-top: 1px solid rgba(255, 215, 0, 0.1);
  position: relative;
  z-index: 1;
}

.footer-content {
  max-width: 1400px;
  margin: 0 auto;
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
  gap: 40px;
  margin-bottom: 40px;
}

.footer-section h3 {
  font-size: 1.2rem;
  margin-bottom: 20px;
  color: var(--text-primary);
}

.footer-links {
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.footer-links a {
  color: var(--text-muted);
  text-decoration: none;
  transition: all 0.3s ease;
  display: flex;
  align-items: center;
  gap: 8px;
  position: relative;
  padding-left: 15px;
}

.footer-links a::before {
  content: '';
  position: absolute;
  left: 0;
  width: 0;
  height: 2px;
  background: var(--primary);
  transition: width 0.3s ease;
}

.footer-links a:hover::before {
  width: 10px;
}

.footer-links a:hover {
  color: var(--primary);
  transform: translateX(10px);
}

.social-links {
  display: flex;
  gap: 15px;
  margin-top: 20px;
  flex-wrap: wrap;
}

.social-icon {
  width: 45px;
  height: 45px;
  background: rgba(30, 41, 59, 0.6);
  backdrop-filter: blur(10px);
  border-radius: 12px;
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--text-primary);
  transition: all 0.3s ease;
  text-decoration: none;
  border: 1px solid rgba(255, 215, 0, 0.1);
  position: relative;
  overflow: hidden;
}

.social-icon::before {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(135deg, var(--primary), var(--secondary));
  opacity: 0;
  transition: opacity 0.3s ease;
}

.social-icon:hover::before {
  opacity: 1;
}

.social-icon i {
  position: relative;
  z-index: 1;
}

.social-icon:hover {
  transform: translateY(-5px) scale(1.1);
  box-shadow: 0 10px 25px rgba(255, 215, 0, 0.3);
}

.footer-bottom {
  text-align: center;
  padding-top: 30px;
  border-top: 1px solid rgba(255, 255, 255, 0.1);
  color: var(--text-muted);
  font-size: 0.9rem;
}

/* Modal */
.modal {
  display: none;
  position: fixed;
  inset: 0;
  background: rgba(0, 0, 0, 0.85);
  backdrop-filter: blur(15px);
  z-index: 2000;
  align-items: center;
  justify-content: center;
  animation: fadeIn 0.3s ease;
  padding: 20px;
}

.modal-content {
  background: rgba(30, 41, 59, 0.9);
  backdrop-filter: blur(20px);
  border-radius: 24px;
  padding: 40px;
  width: 100%;
  max-width: 600px;
  max-height: 80vh;
  overflow-y: auto;
  position: relative;
  animation: slideUp 0.4s ease;
  border: 1px solid rgba(255, 215, 0, 0.2);
  box-shadow: 0 20px 60px rgba(0, 0, 0, 0.5);
}

.modal-close {
  position: absolute;
  top: 20px;
  right: 20px;
  width: 35px;
  height: 35px;
  background: var(--bg-hover);
  border-radius: 10px;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  transition: all 0.3s ease;
  border: 1px solid rgba(255, 215, 0, 0.2);
}

.modal-close:hover {
  background: var(--primary);
  transform: rotate(90deg) scale(1.1);
  box-shadow: 0 5px 20px rgba(255, 215, 0, 0.4);
}

.modal h2 {
  font-size: 2rem;
  margin-bottom: 20px;
  background: linear-gradient(135deg, var(--primary), var(--secondary));
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

.modal p {
  color: var(--text-secondary);
  line-height: 1.8;
  margin-bottom: 15px;
}

/* Animations */
@keyframes fadeIn {
  from { opacity: 0; }
  to { opacity: 1; }
}

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

@keyframes slideUp {
  from {
    opacity: 0;
    transform: translateY(50px) scale(0.95);
  }
  to {
    opacity: 1;
    transform: translateY(0) scale(1);
  }
}

/* Scrollbar */
::-webkit-scrollbar { width: 10px; }
::-webkit-scrollbar-track { background: var(--bg-dark); }
::-webkit-scrollbar-thumb { 
  background: linear-gradient(180deg, var(--primary), var(--secondary));
  border-radius: 10px;
}
::-webkit-scrollbar-thumb:hover { 
  background: linear-gradient(180deg, var(--secondary), var(--primary));
}

/* Hover Effects for Interactive Elements */
button, a, .filter-tag, .category-card {
  cursor: url('data:image/svg+xml;utf8,<svg xmlns="http://www.w3.org/2000/svg" width="28" height="28" viewBox="0 0 24 24"><path fill="%23FFD700" d="M3 17.25V21h3.75L17.81 9.94l-3.75-3.75L3 17.25zM20.71 7.04c.39-.39.39-1.02 0-1.41l-2.34-2.34c-.39-.39-1.02-.39-1.41 0l-1.83 1.83 3.75 3.75 1.83-1.83z"/><circle cx="12" cy="12" r="2" fill="%23FF0000"/></svg>'), pointer !important;
}

/* ========================================
   RESPONSIVE BREAKPOINTS
   ======================================== */

/* Laptops and Large Screens (1024px - 1440px) */
@media (min-width: 1024px) and (max-width: 1440px) {
  .hero h1 { font-size: 3.2rem; }
  .hero .subtitle { font-size: 1.2rem; }
  .category-grid { 
    grid-template-columns: repeat(3, 1fr);
    gap: 20px;
  }
  .footer-content {
    grid-template-columns: repeat(3, 1fr);
  }
  .blob-1, .blob-2, .blob-3, .blob-4 {
    filter: blur(50px);
  }
}

/* Tablets (768px - 1023px) */
@media (min-width: 768px) and (max-width: 1023px) {
  .navbar {
    padding: 18px 4%;
  }
  
  .logo {
    font-size: 1.3rem;
    gap: 10px;
  }
  
  .logo i {
    font-size: 1.6rem;
  }
  
  .nav-actions {
    gap: 12px;
  }
  
  .nav-btn {
    padding: 9px 18px;
    font-size: 0.88rem;
  }
  
  .hero {
    padding: 120px 4% 60px;
  }
  
  .hero h1 {
    font-size: 2.8rem;
    margin-bottom: 18px;
  }
  
  .hero .subtitle {
    font-size: 1.15rem;
    margin-bottom: 12px;
  }
  
  .hero .tagline {
    font-size: 0.95rem;
    margin-bottom: 35px;
  }
  
  .stats-row {
    gap: 30px;
    margin-top: 40px;
  }
  
  .stat-number {
    font-size: 2.2rem;
  }
  
  .stat-label {
    font-size: 0.85rem;
  }
  
  .search-section {
    padding: 25px 4%;
  }
  
  .search-box {
    padding: 16px 20px;
  }
  
  .search-box input {
    font-size: 1rem;
  }
  
  .categories-section {
    padding: 35px 4% 60px;
  }
  
  .section-title {
    font-size: 2.2rem;
    margin-bottom: 12px;
  }
  
  .section-subtitle {
    font-size: 1rem;
  }
  
  .section-header {
    margin-bottom: 40px;
  }
  
  .category-grid {
    grid-template-columns: repeat(2, 1fr);
    gap: 20px;
  }
  
  .category-card {
    padding: 30px 22px;
  }
  
  .card-icon {
    width: 65px;
    height: 65px;
    font-size: 1.8rem;
  }
  
  .card-title {
    font-size: 1.3rem;
  }
  
  .card-desc {
    font-size: 0.9rem;
  }
  
  .footer {
    padding: 50px 4% 25px;
  }
  
  .footer-content {
    grid-template-columns: repeat(2, 1fr);
    gap: 35px;
  }
  
  .footer-section h3 {
    font-size: 1.1rem;
  }
  
  .modal-content {
    padding: 35px;
    max-width: 550px;
  }
  
  .modal h2 {
    font-size: 1.8rem;
  }
  
  .blob-1, .blob-2 {
    width: 300px;
    height: 300px;
    filter: blur(50px);
  }
  
  .blob-3, .blob-4 {
    width: 250px;
    height: 250px;
    filter: blur(45px);
  }
}

/* Mobile Devices (up to 767px) */
@media (max-width: 767px) {
  /* Disable custom cursor on mobile */
  * {
    cursor: auto !important;
  }
  
  .cursor, .cursor-follower, .pen-trail {
    display: none !important;
  }
  
  .navbar {
    padding: 15px 20px;
    flex-wrap: wrap;
  }
  
  .logo {
    font-size: 1.2rem;
    gap: 8px;
  }
  
  .logo i {
    font-size: 1.4rem;
  }
  
  .nav-actions {
    gap: 8px;
  }
  
  .nav-btn {
    padding: 8px 16px;
    font-size: 0.85rem;
    border-radius: 10px;
  }
  
  .hero {
    padding: 100px 20px 50px;
  }
  
  .hero h1 {
    font-size: 2rem;
    margin-bottom: 15px;
    line-height: 1.3;
  }
  
  .hero .subtitle {
    font-size: 1rem;
    margin-bottom: 10px;
  }
  
  .hero .tagline {
    font-size: 0.88rem;
    margin-bottom: 30px;
    line-height: 1.5;
  }
  
  .stats-row {
    gap: 20px;
    margin-top: 35px;
  }
  
  .stat-item {
    min-width: 100px;
  }
  
  .stat-number {
    font-size: 1.8rem;
  }
  
  .stat-label {
    font-size: 0.8rem;
  }
  
  .search-section {
    padding: 20px;
  }
  
  .search-box {
    padding: 14px 18px;
    border-radius: 12px;
  }
  
  .search-box i {
    font-size: 1.1rem;
    margin-right: 12px;
  }
  
  .search-box input {
    font-size: 0.95rem;
  }
  
  .filter-tags {
    gap: 8px;
    margin-top: 15px;
  }
  
  .filter-tag {
    padding: 7px 14px;
    font-size: 0.8rem;
  }
  
  .categories-section {
    padding: 30px 20px 50px;
  }
  
  .section-header {
    margin-bottom: 30px;
  }
  
  .section-title {
    font-size: 1.8rem;
    margin-bottom: 10px;
  }
  
  .section-subtitle {
    font-size: 0.95rem;
    line-height: 1.5;
  }
  
  .category-grid {
    grid-template-columns: 1fr;
    gap: 18px;
  }
  
  .category-card {
    padding: 25px 20px;
    border-radius: 16px;
  }
  
  .category-card:hover {
    transform: translateY(-5px) scale(1.01);
  }
  
  .card-icon {
    width: 60px;
    height: 60px;
    font-size: 1.6rem;
    margin-bottom: 15px;
  }
  
  .card-title {
    font-size: 1.2rem;
    margin-bottom: 8px;
  }
  
  .card-desc {
    font-size: 0.88rem;
    margin-bottom: 15px;
  }
  
  .card-meta {
    flex-direction: column;
    align-items: flex-start;
    gap: 10px;
  }
  
  .card-topics {
    font-size: 0.8rem;
  }
  
  .card-difficulty {
    padding: 4px 10px;
    font-size: 0.75rem;
  }
  
  .footer {
    padding: 40px 20px 20px;
  }
  
  .footer-content {
    grid-template-columns: 1fr;
    gap: 30px;
    margin-bottom: 30px;
  }
  
  .footer-section h3 {
    font-size: 1.1rem;
    margin-bottom: 15px;
  }
  
  .footer-links {
    gap: 10px;
  }
  
  .footer-links a {
    font-size: 0.9rem;
  }
  
  .social-links {
    gap: 12px;
    margin-top: 15px;
  }
  
  .social-icon {
    width: 40px;
    height: 40px;
  }
  
  .footer-bottom {
    padding-top: 25px;
    font-size: 0.85rem;
  }
  
  .modal {
    padding: 15px;
  }
  
  .modal-content {
    padding: 30px 20px;
    border-radius: 20px;
    max-height: 85vh;
  }
  
  .modal-close {
    top: 15px;
    right: 15px;
    width: 32px;
    height: 32px;
  }
  
  .modal h2 {
    font-size: 1.5rem;
    margin-bottom: 15px;
  }
  
  .modal p {
    font-size: 0.9rem;
    line-height: 1.6;
  }
  
  /* Optimize blobs for mobile */
  .blob-1, .blob-2 {
    width: 250px;
    height: 250px;
    filter: blur(40px);
    opacity: 0.1;
  }
  
  .blob-3, .blob-4 {
    width: 200px;
    height: 200px;
    filter: blur(35px);
    opacity: 0.1;
  }
  
  .gradient-mesh {
    opacity: 0.5;
  }
}

/* Extra Small Mobile (up to 480px) */
@media (max-width: 480px) {
  .hero h1 {
    font-size: 1.7rem;
  }
  
  .hero .subtitle {
    font-size: 0.95rem;
  }
  
  .stats-row {
    flex-direction: column;
    gap: 15px;
  }
  
  .nav-actions {
    width: 100%;
    justify-content: center;
    margin-top: 10px;
  }
  
  .search-box {
    flex-direction: column;
    align-items: flex-start;
    gap: 10px;
  }
  
  .search-box i {
    margin-right: 0;
  }
  
  .filter-tags {
    justify-content: flex-start;
  }
  
  .blob-1, .blob-2, .blob-3, .blob-4 {
    width: 180px;
    height: 180px;
    filter: blur(30px);
    opacity: 0.08;
  }
}
