/* Enhanced Portfolio Animations & Visual Effects */

/* Advanced CSS Variables and Design System */
:root {
  --primary-color: #6366f1;
  --primary-light: #818cf8;
  --primary-dark: #4f46e5;
  --secondary-color: #8b5cf6;
  --secondary-light: #a78bfa;
  --accent-color: #06b6d4;
  --accent-light: #0891b2;
  --bg-primary: #0f172a;
  --bg-secondary: #1e293b;
  --bg-tertiary: #334155;
  --text-primary: #f8fafc;
  --text-secondary: #cbd5e1;
  --text-muted: #94a3b8;
  --gradient-1: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
  --gradient-2: linear-gradient(135deg, #f093fb 0%, #f5576c 100%);
  --gradient-3: linear-gradient(135deg, #4facfe 0%, #00f2fe 100%);
  --gradient-hero: linear-gradient(135deg, #667eea 0%, #764ba2 50%, #f093fb 100%);
  --gradient-text: linear-gradient(135deg, #667eea 0%, #8b5cf6 50%, #06b6d4 100%);
  --glass-bg: rgba(255, 255, 255, 0.05);
  --glass-border: rgba(255, 255, 255, 0.1);
  --shadow-glow: 0 0 20px rgba(99, 102, 241, 0.3);
  --shadow-heavy: 0 25px 50px -12px rgba(0, 0, 0, 0.5);
}

/* Reset and base styles with higher specificity */
* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

/* Enhanced Smooth Scrolling and Base Styles */
html, html.scroll-smooth {
  scroll-behavior: smooth !important;
  scroll-padding-top: 80px;
}

body, body.bg-gray-900 {
  cursor: none !important;
  overflow-x: hidden !important;
  background: var(--bg-primary) !important;
  color: var(--text-primary) !important;
  font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif !important;
  line-height: 1.7 !important;
  letter-spacing: -0.01em !important;
  min-height: 100vh !important;
}

.custom-cursor {
  width: 20px;
  height: 20px;
  background: var(--primary-color);
  border-radius: 50%;
  position: fixed;
  top: 0;
  left: 0;
  pointer-events: none;
  z-index: 9999;
  transition: all 0.15s cubic-bezier(0.25, 0.46, 0.45, 0.94);
  mix-blend-mode: difference;
  box-shadow: 0 0 20px rgba(99, 102, 241, 0.6);
}

.custom-cursor.hover {
  transform: scale(2.5);
  background: var(--accent-color);
  box-shadow: 0 0 30px rgba(6, 182, 212, 0.8);
}

.custom-cursor.click {
  transform: scale(0.8);
  background: var(--secondary-color);
}

/* Magnetic Hover Effect for Interactive Elements */
.magnetic {
  transition: transform 0.3s cubic-bezier(0.25, 0.46, 0.45, 0.94);
}

/* Parallax background */
.parallax-bg {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100vh;
  background: 
    radial-gradient(circle at 20% 80%, rgba(120, 119, 198, 0.3) 0%, transparent 50%),
    radial-gradient(circle at 80% 20%, rgba(255, 119, 198, 0.3) 0%, transparent 50%),
    radial-gradient(circle at 40% 40%, rgba(120, 219, 255, 0.3) 0%, transparent 50%),
    linear-gradient(135deg, #0f172a 0%, #1e293b 50%, #334155 100%);
  background-size: 400% 400%, 400% 400%, 400% 400%, 100% 100%;
  animation: gradientShift 20s ease infinite, parallaxFloat 30s ease-in-out infinite;
  z-index: -2;
}

@keyframes gradientShift {
  0%, 100% { 
    background-position: 0% 50%, 100% 50%, 50% 0%, center;
  }
  25% { 
    background-position: 100% 0%, 0% 100%, 0% 50%, center;
  }
  50% { 
    background-position: 50% 100%, 50% 0%, 100% 100%, center;
  }
  75% { 
    background-position: 0% 50%, 100% 50%, 50% 0%, center;
  }
}

@keyframes parallaxFloat {
  0%, 100% { transform: translateY(0px) rotate(0deg); }
  33% { transform: translateY(-10px) rotate(1deg); }
  66% { transform: translateY(5px) rotate(-1deg); }
}

/* Floating particles */
.particles {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  overflow: hidden;
  z-index: -1;
  pointer-events: none;
}

.particle {
  position: absolute;
  background: rgba(99, 102, 241, 0.4);
  border-radius: 50%;
  animation: particleFloat 8s ease-in-out infinite;
  backdrop-filter: blur(1px);
}

.particle:nth-child(odd) {
  background: rgba(139, 92, 246, 0.3);
  animation-duration: 12s;
  animation-delay: -2s;
}

.particle:nth-child(3n) {
  background: rgba(6, 182, 212, 0.3);
  animation-duration: 15s;
  animation-delay: -4s;
}

.particle:nth-child(4n) {
  background: rgba(245, 101, 101, 0.3);
  animation-duration: 10s;
  animation-delay: -6s;
}

@keyframes particleFloat {
  0%, 100% { 
    transform: translateY(0px) translateX(0px) rotate(0deg) scale(1);
    opacity: 0.4;
  }
  25% { 
    transform: translateY(-100px) translateX(50px) rotate(90deg) scale(1.2);
    opacity: 0.6;
  }
  50% { 
    transform: translateY(-200px) translateX(-30px) rotate(180deg) scale(0.8);
    opacity: 0.3;
  }
  75% { 
    transform: translateY(-150px) translateX(80px) rotate(270deg) scale(1.1);
    opacity: 0.5;
  }
}

/* Advanced text animations */
.typewriter {
  overflow: hidden;
  border-right: 3px solid var(--primary-color);
  white-space: nowrap;
  animation: 
    typewriter 4s steps(40) 1s 1 normal both,
    blinkTextCursor 500ms steps(40) infinite normal,
    textGlow 2s ease-in-out infinite alternate;
}

@keyframes typewriter {
  from { 
    width: 0; 
    opacity: 0;
  }
  to { 
    width: 100%; 
    opacity: 1;
  }
}

@keyframes blinkTextCursor {
  from { 
    border-right-color: var(--primary-color); 
    box-shadow: 2px 0 0 var(--primary-color);
  }
  to { 
    border-right-color: transparent; 
    box-shadow: 2px 0 0 transparent;
  }
}

@keyframes textGlow {
  from {
    text-shadow: 0 0 5px rgba(99, 102, 241, 0.5);
  }
  to {
    text-shadow: 0 0 20px rgba(99, 102, 241, 0.8), 0 0 30px rgba(99, 102, 241, 0.6);
  }
}

/* Advanced Reveal Text Animation */
.reveal-text {
  opacity: 0;
  transform: translateY(30px);
  animation: revealText 1s ease-out 2s forwards;
}

@keyframes revealText {
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

/* Glitch effect */
.glitch {
  position: relative;
  font-weight: bold;
  animation: glitchBase 0.3s ease-in-out infinite alternate;
}

.glitch::before,
.glitch::after {
  content: attr(data-text);
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: inherit;
}

.glitch::before {
  animation: glitch-1 0.6s infinite;
  color: #ff0040;
  z-index: -1;
  clip-path: polygon(0 0, 100% 0, 100% 45%, 0 45%);
}

.glitch::after {
  animation: glitch-2 0.6s infinite;
  color: #00ffff;
  z-index: -2;
  clip-path: polygon(0 55%, 100% 55%, 100% 100%, 0 100%);
}

@keyframes glitchBase {
  0%, 14%, 15%, 49%, 50%, 99%, 100% { 
    filter: hue-rotate(0deg) brightness(1);
  }
  1%, 13%, 16%, 48% { 
    filter: hue-rotate(90deg) brightness(1.2);
  }
}

@keyframes glitch-1 {
  0%, 14%, 15%, 49%, 50%, 99%, 100% { 
    transform: translate(0); 
    opacity: 1;
  }
  1%, 13% { 
    transform: translate(-3px, 2px); 
    opacity: 0.8;
  }
  16%, 48% { 
    transform: translate(2px, -3px); 
    opacity: 0.9;
  }
}

@keyframes glitch-2 {
  0%, 20%, 21%, 62%, 63%, 99%, 100% { 
    transform: translate(0); 
    opacity: 1;
  }
  1%, 19% { 
    transform: translate(3px, 3px); 
    opacity: 0.7;
  }
  22%, 61% { 
    transform: translate(-2px, -2px); 
    opacity: 0.8;
  }
}

/* Ultra-Enhanced Card and Component Effects */
.card-enhanced {
  position: relative;
  overflow: hidden;
  transition: all 0.4s cubic-bezier(0.25, 0.46, 0.45, 0.94);
  backdrop-filter: blur(20px);
  border: 1px solid var(--glass-border);
  background: var(--glass-bg);
  box-shadow: 
    0 8px 32px rgba(0, 0, 0, 0.3),
    inset 0 1px 0 rgba(255, 255, 255, 0.1);
}

.card-enhanced::before {
  content: '';
  position: absolute;
  top: 0;
  left: -100%;
  width: 100%;
  height: 100%;
  background: linear-gradient(
    90deg, 
    transparent, 
    rgba(255, 255, 255, 0.1), 
    transparent
  );
  transition: left 0.6s ease;
}

.card-enhanced::after {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: linear-gradient(
    135deg,
    rgba(99, 102, 241, 0.1) 0%,
    transparent 50%,
    rgba(139, 92, 246, 0.1) 100%
  );
  opacity: 0;
  transition: opacity 0.3s ease;
  pointer-events: none;
}

.card-enhanced:hover::before {
  left: 100%;
}

.card-enhanced:hover::after {
  opacity: 1;
}

.card-enhanced:hover {
  transform: translateY(-15px) scale(1.02) rotateX(5deg);
  box-shadow: 
    0 25px 60px rgba(99, 102, 241, 0.4),
    0 15px 35px rgba(0, 0, 0, 0.3),
    inset 0 1px 0 rgba(255, 255, 255, 0.2);
  border-color: rgba(99, 102, 241, 0.3);
}

/* Enhanced Glass Effect */
.glass-effect {
  background: rgba(255, 255, 255, 0.05);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  border: 1px solid rgba(255, 255, 255, 0.1);
  box-shadow: 0 8px 32px rgba(0, 0, 0, 0.3);
  position: relative;
  overflow: hidden;
}

.glass-effect::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 1px;
  background: linear-gradient(
    90deg,
    transparent,
    rgba(255, 255, 255, 0.4),
    transparent
  );
  animation: glassShimmer 3s ease-in-out infinite;
}

@keyframes glassShimmer {
  0%, 100% { opacity: 0; }
  50% { opacity: 1; }
}

/* Revolutionary Button Morphing Effects */
.btn-morph {
  position: relative;
  overflow: hidden;
  transition: all 0.3s cubic-bezier(0.25, 0.46, 0.45, 0.94);
}

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

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

.btn-morph * {
  position: relative;
  z-index: 1;
}

/* Enhanced Neon Glow Effects */
.neon-glow {
  box-shadow: 
    0 0 5px rgba(99, 102, 241, 0.5),
    0 0 10px rgba(99, 102, 241, 0.3),
    0 0 15px rgba(99, 102, 241, 0.2);
  transition: all 0.3s ease;
}

.neon-glow:hover {
  box-shadow: 
    0 0 10px rgba(99, 102, 241, 0.8),
    0 0 20px rgba(99, 102, 241, 0.6),
    0 0 30px rgba(99, 102, 241, 0.4),
    0 0 40px rgba(99, 102, 241, 0.2);
  transform: scale(1.02);
}

/* Enhanced animations for new features */
.slow {
  animation-duration: 3s !important;
}

/* Enhanced project card hover effects */
.project-card {
  position: relative;
  transition: all 0.4s cubic-bezier(0.25, 0.46, 0.45, 0.94);
}

.project-card::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: linear-gradient(135deg, transparent, rgba(99, 102, 241, 0.1), transparent);
  opacity: 0;
  transition: opacity 0.3s ease;
  border-radius: inherit;
  z-index: -1;
}

.project-card:hover::before {
  opacity: 1;
}

.project-card:hover {
  transform: translateY(-8px) scale(1.02);
  box-shadow: 0 20px 40px rgba(99, 102, 241, 0.3);
}

/* Skill progress bars */
.skill-progress {
  animation: fillProgress 2s ease-out forwards;
}

@keyframes fillProgress {
  from { width: 0%; }
}

/* Enhanced floating elements */
.floating {
  animation: floatEnhanced 6s ease-in-out infinite;
}

@keyframes floatEnhanced {
  0%, 100% { 
    transform: translateY(0px) rotate(0deg); 
    opacity: 1;
  }
  25% { 
    transform: translateY(-15px) rotate(1deg); 
    opacity: 0.9;
  }
  50% { 
    transform: translateY(-10px) rotate(0deg); 
    opacity: 1;
  }
  75% { 
    transform: translateY(-20px) rotate(-1deg); 
    opacity: 0.9;
  }
}

/* Tech badge enhancements */
.tech-badge {
  background: linear-gradient(135deg, rgba(99, 102, 241, 0.2), rgba(139, 92, 246, 0.2));
  border: 1px solid rgba(99, 102, 241, 0.3);
  transition: all 0.3s cubic-bezier(0.25, 0.46, 0.45, 0.94);
  position: relative;
  overflow: hidden;
}

.tech-badge::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;
}

.tech-badge:hover::before {
  left: 100%;
}

.tech-badge:hover {
  transform: translateY(-3px) scale(1.05);
  box-shadow: 0 10px 20px rgba(99, 102, 241, 0.3);
  border-color: rgba(99, 102, 241, 0.6);
}

/* Enhanced Scroll Progress */
.scroll-progress {
  position: fixed;
  top: 0;
  left: 0;
  width: 0%;
  height: 4px;
  background: var(--gradient-3);
  z-index: 1000;
  transition: width 0.1s ease;
  box-shadow: 0 0 10px rgba(79, 172, 254, 0.6);
}

.scroll-progress::after {
  content: '';
  position: absolute;
  top: 0;
  right: 0;
  width: 20px;
  height: 100%;
  background: radial-gradient(
    circle,
    rgba(255, 255, 255, 0.8) 0%,
    transparent 70%
  );
  filter: blur(1px);
}

/* Loading Screen Enhancement */
.loading-screen {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: var(--bg-primary);
  display: flex;
  justify-content: center;
  align-items: center;
  z-index: 10000;
  transition: all 0.8s ease;
  backdrop-filter: blur(10px);
}

.loading-screen.hidden {
  opacity: 0;
  visibility: hidden;
  transform: translateY(-100%);
}

.loading-animation {
  width: 60px;
  height: 60px;
  border: 4px solid rgba(99, 102, 241, 0.3);
  border-left: 4px solid var(--primary-color);
  border-radius: 50%;
  animation: spin 1.2s linear infinite;
  margin: 0 auto;
}

@keyframes spin {
  0% { transform: rotate(0deg); }
  100% { transform: rotate(360deg); }
}

/* Project Showcase Enhancements */
.project-card {
  transition: all 0.6s cubic-bezier(0.25, 0.46, 0.45, 0.94);
  position: relative;
  overflow: hidden;
  transform-style: preserve-3d;
  perspective: 1000px;
}

.project-card::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: linear-gradient(
    135deg, 
    transparent, 
    rgba(99, 102, 241, 0.1), 
    transparent
  );
  opacity: 0;
  transition: opacity 0.3s ease;
  border-radius: inherit;
  z-index: -1;
}

.project-card:hover::before {
  opacity: 1;
}

.project-card:hover {
  transform: translateY(-20px) scale(1.05) rotateX(10deg) rotateY(5deg);
  box-shadow: 
    0 30px 60px rgba(99, 102, 241, 0.4),
    0 15px 30px rgba(0, 0, 0, 0.3),
    inset 0 1px 0 rgba(255, 255, 255, 0.2);
}

/* Skill Badge Animations */
.skill-badge {
  transition: all 0.3s cubic-bezier(0.34, 1.56, 0.64, 1);
  position: relative;
  overflow: hidden;
}

.skill-badge::before {
  content: '';
  position: absolute;
  top: 50%;
  left: 50%;
  width: 0;
  height: 0;
  background: radial-gradient(
    circle,
    rgba(255, 255, 255, 0.3) 0%,
    transparent 70%
  );
  border-radius: 50%;
  transform: translate(-50%, -50%);
  transition: all 0.4s ease;
}

.skill-badge:hover::before {
  width: 200px;
  height: 200px;
}

.skill-badge:hover {
  transform: translateY(-5px) scale(1.1) rotate(5deg);
  background: linear-gradient(
    135deg, 
    rgba(99, 102, 241, 0.3), 
    rgba(139, 92, 246, 0.3)
  );
  box-shadow: 
    0 8px 20px rgba(99, 102, 241, 0.4),
    0 3px 8px rgba(0, 0, 0, 0.2);
}

/* Staggered Animation Classes */
.stagger-fade {
  opacity: 0;
  transform: translateY(50px);
  animation: staggerFadeIn 0.8s ease forwards;
}

.stagger-fade:nth-child(1) { animation-delay: 0.1s; }
.stagger-fade:nth-child(2) { animation-delay: 0.2s; }
.stagger-fade:nth-child(3) { animation-delay: 0.3s; }
.stagger-fade:nth-child(4) { animation-delay: 0.4s; }
.stagger-fade:nth-child(5) { animation-delay: 0.5s; }
.stagger-fade:nth-child(6) { animation-delay: 0.6s; }

@keyframes staggerFadeIn {
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

/* Enhanced Social Icons */
.social-icon {
  transition: all 0.3s cubic-bezier(0.34, 1.56, 0.64, 1);
  position: relative;
  overflow: hidden;
}

.social-icon::before {
  content: '';
  position: absolute;
  top: 50%;
  left: 50%;
  width: 0;
  height: 0;
  border-radius: 50%;
  background: linear-gradient(
    135deg,
    rgba(99, 102, 241, 0.3),
    rgba(139, 92, 246, 0.3)
  );
  transform: translate(-50%, -50%);
  transition: all 0.4s ease;
  z-index: -1;
}

.social-icon:hover::before {
  width: 150px;
  height: 150px;
}

.social-icon:hover {
  transform: translateY(-5px) scale(1.2) rotate(10deg);
  color: var(--primary-light);
  text-shadow: 0 0 20px rgba(99, 102, 241, 0.8);
}

/* Stats Counter Animation */
.stat-number {
  font-family: 'Courier New', monospace;
  font-weight: bold;
  background: var(--gradient-text);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  background-size: 200% 200%;
  animation: gradientText 3s ease infinite;
}

/* Enhanced Navigation */
.nav-link {
  position: relative;
  transition: all 0.3s ease;
  padding: 8px 16px;
  border-radius: 8px;
}

.nav-link::before {
  content: '';
  position: absolute;
  bottom: 0;
  left: 50%;
  width: 0;
  height: 2px;
  background: var(--gradient-3);
  transform: translateX(-50%);
  transition: width 0.3s ease;
}

.nav-link::after {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: var(--glass-bg);
  border-radius: 8px;
  opacity: 0;
  transition: opacity 0.3s ease;
  z-index: -1;
}

.nav-link:hover::before {
  width: 80%;
}

.nav-link:hover::after {
  opacity: 1;
}

.nav-link:hover {
  transform: translateY(-2px);
  color: var(--primary-light);
  backdrop-filter: blur(10px);
}

/* Responsive Enhancements */
@media (max-width: 768px) {
  .typewriter {
    animation: typewriter 3s steps(20) 1s 1 normal both,
               blinkTextCursor 500ms steps(20) infinite normal;
  }
  
  .card-enhanced:hover {
    transform: translateY(-10px) scale(1.02);
  }
  
  .project-card:hover {
    transform: translateY(-15px) scale(1.03);
  }
  
  .btn-morph:hover {
    transform: translateY(-2px) scale(1.03);
  }
}

@media (max-width: 480px) {
  .hero-gradient {
    background-size: 300% 300%;
  }
  
  .floating {
    animation-duration: 4s;
  }
  
  .particle {
    animation-duration: 6s;
  }
}

/* Enhanced scrollbar */
::-webkit-scrollbar {
  width: 12px;
}

::-webkit-scrollbar-track {
  background: var(--bg-secondary);
  border-radius: 6px;
}

::-webkit-scrollbar-thumb {
  background: linear-gradient(
    180deg,
    var(--primary-color),
    var(--secondary-color)
  );
  border-radius: 6px;
  border: 2px solid var(--bg-secondary);
  box-shadow: inset 0 0 3px rgba(99, 102, 241, 0.5);
}

::-webkit-scrollbar-thumb:hover {
  background: linear-gradient(
    180deg,
    var(--primary-light),
    var(--secondary-light)
  );
  box-shadow: inset 0 0 5px rgba(99, 102, 241, 0.7);
}

/* Selection Styling */
::selection {
  background: rgba(99, 102, 241, 0.3);
  color: var(--text-primary);
  text-shadow: 0 0 8px rgba(99, 102, 241, 0.8);
}

::-moz-selection {
  background: rgba(99, 102, 241, 0.3);
  color: var(--text-primary);
  text-shadow: 0 0 8px rgba(99, 102, 241, 0.8);
}

/* Focus States for Accessibility */
button:focus,
a:focus,
input:focus {
  outline: 2px solid var(--primary-color);
  outline-offset: 2px;
  box-shadow: 0 0 0 4px rgba(99, 102, 241, 0.2);
}

/* Print Styles */
@media print {
  .parallax-bg,
  .particles,
  .custom-cursor,
  .loading-screen {
    display: none !important;
  }
  
  body {
    background: white !important;
    color: black !important;
  }
  
  .card-enhanced,
  .glass-effect {
    border: 1px solid #ccc !important;
    background: white !important;
  }
}

/* CRITICAL OVERRIDES - Must be at the end */
/* Override any Tailwind or other conflicting styles */

body, 
body.bg-gray-900,
body.text-white,
html,
html.bg-gray-900,
html.text-white {
  background: var(--bg-primary) !important;
  color: var(--text-primary) !important;
  font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif !important;
  cursor: none !important;
  overflow-x: hidden !important;
  min-height: 100vh !important;
  line-height: 1.7 !important;
  letter-spacing: -0.01em !important;
}

/* Force background gradients and effects */
.hero-section,
section {
  background: var(--bg-primary) !important;
}

.hero-gradient {
  background: var(--gradient-hero) !important;
  background-clip: text !important;
  -webkit-background-clip: text !important;
  -webkit-text-fill-color: transparent !important;
  background-size: 200% 200% !important;
  animation: gradientShift 6s ease-in-out infinite !important;
}

/* Force glass effects */
.glass-effect {
  background: var(--glass-bg) !important;
  backdrop-filter: blur(20px) !important;
  -webkit-backdrop-filter: blur(20px) !important;
  border: 1px solid var(--glass-border) !important;
  border-radius: 20px !important;
  box-shadow: var(--shadow-glow) !important;
}

/* Force card styling */
.card-enhanced,
.project-card {
  background: var(--glass-bg) !important;
  backdrop-filter: blur(20px) !important;
  -webkit-backdrop-filter: blur(20px) !important;
  border: 1px solid var(--glass-border) !important;
  border-radius: 20px !important;
  box-shadow: var(--shadow-glow) !important;
  transition: all 0.6s cubic-bezier(0.25, 0.46, 0.45, 0.94) !important;
}

/* Force tech badge styling */
.tech-badge {
  background: var(--gradient-1) !important;
  color: white !important;
  border: none !important;
  border-radius: 50px !important;
  padding: 8px 16px !important;
  font-size: 14px !important;
  font-weight: 600 !important;
  transition: all 0.3s ease !important;
  display: inline-block !important;
  margin: 4px !important;
}

/* Force button styling */
.btn-morph,
.magnetic {
  background: var(--gradient-1) !important;
  color: white !important;
  border: none !important;
  border-radius: 50px !important;
  padding: 12px 32px !important;
  font-weight: 600 !important;
  transition: all 0.3s ease !important;
  cursor: none !important;
  text-decoration: none !important;
  display: inline-block !important;
}

/* Force text colors */
h1, h2, h3, h4, h5, h6,
.text-white,
.text-gray-200,
.text-gray-300 {
  color: var(--text-primary) !important;
}

p, span,
.text-gray-400,
.text-gray-500 {
  color: var(--text-secondary) !important;
}

/* Force custom cursor always visible */
.custom-cursor {
  display: block !important;
  position: fixed !important;
  top: 0 !important;
  left: 0 !important;
  width: 20px !important;
  height: 20px !important;
  background: var(--primary-color) !important;
  border-radius: 50% !important;
  pointer-events: none !important;
  z-index: 9999 !important;
  transition: all 0.1s ease !important;
  mix-blend-mode: difference !important;
}

/* Force particles always visible */
.particles {
  display: block !important;
  position: fixed !important;
  top: 0 !important;
  left: 0 !important;
  width: 100% !important;
  height: 100% !important;
  pointer-events: none !important;
  z-index: 1 !important;
}

.particle {
  position: absolute !important;
  background: radial-gradient(circle, var(--primary-color) 0%, transparent 70%) !important;
  border-radius: 50% !important;
  animation: float 15s infinite linear !important;
  opacity: 0.6 !important;
}

/* Override mobile styles to maintain desktop appearance */
@media (max-width: 768px) {
  body, 
  body.bg-gray-900 {
    background: var(--bg-primary) !important;
    color: var(--text-primary) !important;
  }
  
  .particles,
  .custom-cursor {
    display: block !important;
  }
  
  .glass-effect,
  .card-enhanced {
    background: var(--glass-bg) !important;
    backdrop-filter: blur(20px) !important;
    border: 1px solid var(--glass-border) !important;
  }
}