@import url('https://fonts.googleapis.com/css2?family=Inter:wght@300;400;500;600;700;800&display=swap');

body {
  background: linear-gradient(135deg, #0f0f23 0%, #1a1a3e 25%, #2d1b69 50%, #1e3a8a 75%, #0f172a 100%);
  font-family: 'Inter', sans-serif;
  color: #e6eefc;
  min-height: 100vh;
}

.glass-effect {
  background: rgba(255, 255, 255, 0.05);
  backdrop-filter: blur(10px);
  border: 1px solid rgba(255, 255, 255, 0.1);
}

.gradient-text {
  background: linear-gradient(135deg, #60a5fa, #a78bfa, #f472b6);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

.project-card {
  background: linear-gradient(135deg, rgba(59, 130, 246, 0.1), rgba(147, 51, 234, 0.1));
  border: 1px solid rgba(59, 130, 246, 0.2);
  transition: all 0.3s ease;
}

.project-card:hover {
  transform: translateY(-5px);
  box-shadow: 0 20px 40px rgba(59, 130, 246, 0.2);
}

.achievement-card {
  background: linear-gradient(135deg, rgba(34, 197, 94, 0.1), rgba(59, 130, 246, 0.1));
  border: 1px solid rgba(34, 197, 94, 0.2);
}

.floating-animation { animation: float 6s ease-in-out infinite; }
@keyframes float { 0%, 100% { transform: translateY(0px); } 50% { transform: translateY(-20px); } }

.pulse-glow { animation: pulse-glow 2s ease-in-out infinite alternate; }
@keyframes pulse-glow { from { box-shadow: 0 0 20px rgba(96, 165, 250, 0.4); } to { box-shadow: 0 0 30px rgba(96, 165, 250, 0.8); } }

/* Utility elements */
.reveal { opacity: 0; transform: translateY(16px); transition: opacity 600ms ease, transform 600ms ease; }
.reveal.reveal-visible { opacity: 1; transform: none; }

.btn-primary {
  background: linear-gradient(135deg, #2563eb, #7c3aed);
  color: #fff;
  padding: 0.75rem 1.5rem;
  border-radius: 9999px;
  font-weight: 600;
  transition: transform 0.2s ease, box-shadow 0.2s ease;
}
.btn-primary:hover { transform: translateY(-2px); box-shadow: 0 10px 20px rgba(59, 130, 246, 0.3); }

.btn-secondary {
  border: 1px solid rgba(255,255,255,0.2);
  color: #d1d5db;
  padding: 0.75rem 1.5rem;
  border-radius: 9999px;
  font-weight: 600;
  background: rgba(17,24,39,0.4);
  transition: background 0.2s ease, transform 0.2s ease;
}
.btn-secondary:hover { background: rgba(31,41,55,0.6); transform: translateY(-1px); }

.section-title { position: relative; display: inline-block; }
.section-title:after {
  content: '';
  position: absolute;
  left: 50%;
  transform: translateX(-50%);
  bottom: -10px;
  width: 56px;
  height: 3px;
  border-radius: 9999px;
  background: linear-gradient(90deg, #60a5fa, #a78bfa, #f472b6);
}

/* Navigation shadow on scroll */
.nav-shadow { box-shadow: 0 8px 30px rgba(0,0,0,0.35); border-bottom: 1px solid rgba(255,255,255,0.08); }

/* Card subtle hover */
.card-hover { transition: transform 0.25s ease, box-shadow 0.25s ease, border-color 0.25s ease; }
.card-hover:hover { transform: translateY(-4px); box-shadow: 0 12px 30px rgba(0,0,0,0.35); border-color: rgba(255,255,255,0.18); }

/* Bootstrap progress in dark glass cards */
.glass-effect .progress { background-color: rgba(255,255,255,0.08); height: 10px; border-radius: 9999px; overflow: hidden; }
.glass-effect .progress-bar { 
  box-shadow: 0 0 12px rgba(59,130,246,0.35); 
  animation: progressFill 1.5s ease-out;
}

/* Enhanced animations */
@keyframes progressFill {
  from { width: 0% !important; }
  to { width: var(--target-width) !important; }
}

@keyframes slideInUp {
  from { transform: translateY(30px); opacity: 0; }
  to { transform: translateY(0); opacity: 1; }
}

@keyframes fadeInScale {
  from { transform: scale(0.9); opacity: 0; }
  to { transform: scale(1); opacity: 1; }
}

@keyframes glowPulse {
  0%, 100% { box-shadow: 0 0 20px rgba(96, 165, 250, 0.3); }
  50% { box-shadow: 0 0 30px rgba(96, 165, 250, 0.6); }
}

@keyframes iconBounce {
  0%, 100% { transform: translateY(0); }
  50% { transform: translateY(-5px); }
}

/* Enhanced card hover effects */
.card-hover { 
  transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1); 
  position: relative;
  overflow: hidden;
}

.card-hover::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.5s;
}

.card-hover:hover::before {
  left: 100%;
}

.card-hover:hover { 
  transform: translateY(-8px) scale(1.02); 
  box-shadow: 0 20px 40px rgba(0,0,0,0.4); 
  border-color: rgba(255,255,255,0.25);
}

/* Enhanced button styles */
.btn-primary {
  background: linear-gradient(135deg, #2563eb, #7c3aed);
  color: #fff;
  padding: 0.875rem 2rem;
  border-radius: 9999px;
  font-weight: 600;
  transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
  position: relative;
  overflow: hidden;
  border: none;
  box-shadow: 0 4px 15px rgba(37, 99, 235, 0.3);
}

.btn-primary::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;
}

.btn-primary:hover::before {
  left: 100%;
}

.btn-primary:hover { 
  transform: translateY(-3px); 
  box-shadow: 0 8px 25px rgba(37, 99, 235, 0.4);
  background: linear-gradient(135deg, #1d4ed8, #6d28d9);
}

/* Enhanced section titles */
.section-title { 
  position: relative; 
  display: inline-block;
  animation: fadeInScale 0.8s ease-out;
}

.section-title::after {
  content: '';
  position: absolute;
  left: 50%;
  transform: translateX(-50%);
  bottom: -12px;
  width: 80px;
  height: 4px;
  border-radius: 9999px;
  background: linear-gradient(90deg, #60a5fa, #a78bfa, #f472b6);
  animation: glowPulse 2s ease-in-out infinite;
}

/* Icon animations */
.bi {
  transition: all 0.3s ease;
}

.card-hover:hover .bi {
  animation: iconBounce 0.6s ease-in-out;
  transform: scale(1.1);
}

/* Enhanced reveal animation */
.reveal { 
  opacity: 0; 
  transform: translateY(30px); 
  transition: all 0.8s cubic-bezier(0.4, 0, 0.2, 1); 
}

.reveal.reveal-visible { 
  opacity: 1; 
  transform: translateY(0); 
}

/* Floating animation enhancement */
.floating-animation { 
  animation: float 6s ease-in-out infinite; 
  filter: drop-shadow(0 10px 20px rgba(59, 130, 246, 0.3));
}

/* Gradient text enhancement */
.gradient-text {
  background: linear-gradient(135deg, #60a5fa, #a78bfa, #f472b6, #34d399);
  background-size: 300% 300%;
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  animation: gradientShift 3s ease-in-out infinite;
}

@keyframes gradientShift {
  0%, 100% { background-position: 0% 50%; }
  50% { background-position: 100% 50%; }
}

/* Enhanced glass effect */
.glass-effect {
  background: rgba(255, 255, 255, 0.08);
  backdrop-filter: blur(20px);
  border: 1px solid rgba(255, 255, 255, 0.15);
  box-shadow: 0 8px 32px rgba(0, 0, 0, 0.3);
}

/* Project card enhancements */
.project-card {
  background: linear-gradient(135deg, rgba(59, 130, 246, 0.1), rgba(147, 51, 234, 0.1));
  border: 1px solid rgba(59, 130, 246, 0.2);
  transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
  position: relative;
  overflow: hidden;
}

.project-card::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 3px;
  background: linear-gradient(90deg, #60a5fa, #a78bfa, #f472b6);
  transform: scaleX(0);
  transition: transform 0.3s ease;
}

.project-card:hover::before {
  transform: scaleX(1);
}

.project-card:hover {
  transform: translateY(-8px);
  box-shadow: 0 25px 50px rgba(59, 130, 246, 0.3);
  border-color: rgba(59, 130, 246, 0.4);
}

/* Achievement card enhancements */
.achievement-card {
  background: linear-gradient(135deg, rgba(34, 197, 94, 0.1), rgba(59, 130, 246, 0.1));
  border: 1px solid rgba(34, 197, 94, 0.2);
  transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
  position: relative;
  overflow: hidden;
}

.achievement-card::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 3px;
  background: linear-gradient(90deg, #22c55e, #3b82f6);
  transform: scaleX(0);
  transition: transform 0.3s ease;
}

.achievement-card:hover::before {
  transform: scaleX(1);
}

.achievement-card:hover {
  transform: translateY(-6px);
  box-shadow: 0 20px 40px rgba(34, 197, 94, 0.3);
  border-color: rgba(34, 197, 94, 0.4);
}

/* Navigation enhancement */
.nav-shadow { 
  box-shadow: 0 8px 30px rgba(0,0,0,0.35); 
  border-bottom: 1px solid rgba(255,255,255,0.08);
  backdrop-filter: blur(20px);
}

/* Scrollbar styling */
::-webkit-scrollbar {
  width: 8px;
}

::-webkit-scrollbar-track {
  background: rgba(255, 255, 255, 0.1);
}

::-webkit-scrollbar-thumb {
  background: linear-gradient(135deg, #60a5fa, #a78bfa);
  border-radius: 4px;
}

::-webkit-scrollbar-thumb:hover {
  background: linear-gradient(135deg, #3b82f6, #7c3aed);
}