/* Clean Professional Portfolio Styles - Modern & Sophisticated */

/* Minimal Font Stack */
body {
  font-family: 'Inter', system-ui, -apple-system, BlinkMacSystemFont, sans-serif;
  font-weight: 300;
  line-height: 1.6;
  letter-spacing: 0.01em;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

.font-display {
  font-family: 'Manrope', 'Inter', system-ui, sans-serif;
  font-weight: 300;
  letter-spacing: -0.02em;
}

.font-heading {
  font-family: 'Inter', system-ui, sans-serif;
  font-weight: 400;
  letter-spacing: -0.01em;
}

.font-body {
  font-family: 'Inter', system-ui, -apple-system, sans-serif;
  font-weight: 300;
  line-height: 1.7;
}

.font-mono {
  font-family: 'JetBrains Mono', 'SF Mono', Monaco, Inconsolata, monospace;
  font-weight: 300;
  letter-spacing: 0.02em;
}

/* Enhanced Blue Gradient Styles */
.text-gradient-blue {
  background: linear-gradient(135deg, #3b82f6, #06b6d4, #2563eb);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  animation: gradient-shift 4s ease-in-out infinite;
}

@keyframes gradient-shift {
  0%, 100% { 
    background-position: 0% 50%; 
  }
  50% { 
    background-position: 100% 50%; 
  }
}

/* Enhanced Blue Button Styles */
.btn-blue-gradient {
  position: relative;
  font-weight: 500;
  letter-spacing: 0.025em;
  transition: all 0.3s ease;
  border-radius: 9999px;
  overflow: hidden;
  background: linear-gradient(135deg, #3b82f6, #06b6d4, #2563eb);
  box-shadow: 0 4px 15px rgba(59, 130, 246, 0.3);
}

.btn-blue-gradient::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.6s;
}

.btn-blue-gradient:hover::before {
  left: 100%;
}

.btn-blue-gradient:hover {
  background: linear-gradient(135deg, #2563eb, #0891b2, #1d4ed8);
  transform: translateY(-2px);
  box-shadow: 0 8px 25px rgba(59, 130, 246, 0.4);
}

/* Enhanced Blue Card Styles */
.card-blue-accent {
  background: rgba(255, 255, 255, 0.95);
  border: 1px solid rgba(59, 130, 246, 0.2);
  transition: all 0.3s ease;
  backdrop-filter: blur(10px);
  border-radius: 1rem;
  box-shadow: 0 4px 20px rgba(59, 130, 246, 0.1);
}

.card-blue-accent:hover {
  border-color: rgba(59, 130, 246, 0.4);
  background: rgba(255, 255, 255, 1);
  transform: translateY(-8px);
  box-shadow: 0 25px 50px rgba(59, 130, 246, 0.15);
}

/* Blue Gradient Progress Bars */
.progress-blue {
  background: linear-gradient(135deg, #3b82f6, #06b6d4, #2563eb);
  box-shadow: 0 2px 10px rgba(59, 130, 246, 0.3);
  border-radius: 9999px;
}

/* Enhanced Card Styles */
.card-enhanced {
  backdrop-filter: blur(20px);
  background: rgba(255, 255, 255, 0.1);
  border: 1px solid rgba(255, 255, 255, 0.2);
  box-shadow: 0 8px 32px rgba(0, 0, 0, 0.1);
  transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
}

.card-enhanced:hover {
  transform: translateY(-8px) scale(1.02);
  box-shadow: 0 20px 40px rgba(0, 0, 0, 0.15);
  background: rgba(255, 255, 255, 0.15);
}

/* Professional Gradient Text */
.gradient-text-professional {
  background: linear-gradient(135deg, #f26d0b 0%, #ff8c00 25%, #ffa500 50%, #0ea5e9 75%, #0284c7 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  background-size: 200% 200%;
  animation: gradientShift 8s ease infinite;
}

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

/* Enhanced Particle Effects */
.particle-interactive {
  transition: all 0.3s ease;
  cursor: pointer;
}

.particle-interactive:hover {
  transform: scale(1.2);
  filter: brightness(1.2);
}

/* Professional Typography Scale */
.text-scale-1 { font-size: clamp(1rem, 2.5vw, 1.25rem); }
.text-scale-2 { font-size: clamp(1.25rem, 3vw, 1.5rem); }
.text-scale-3 { font-size: clamp(1.5rem, 4vw, 2rem); }
.text-scale-4 { font-size: clamp(2rem, 5vw, 3rem); }
.text-scale-5 { font-size: clamp(3rem, 8vw, 5rem); }

/* Enhanced Visibility for Dark Backgrounds */
.text-white-enhanced {
  color: #ffffff;
  text-shadow: 0 2px 4px rgba(0, 0, 0, 0.3);
  font-weight: 500;
}

.text-white-enhanced-lg {
  color: #ffffff;
  text-shadow: 0 4px 8px rgba(0, 0, 0, 0.4);
  font-weight: 600;
}

/* Professional Section Spacing */
.section-spacing {
  padding: clamp(4rem, 8vw, 8rem) 0;
}

/* Enhanced Focus States */
.focus-enhanced:focus {
  outline: none;
  box-shadow: 0 0 0 4px rgba(242, 109, 11, 0.3);
  border-color: #f26d0b;
  transform: scale(1.02);
}

/* Professional Loading States */
.loading-professional {
  position: relative;
  overflow: hidden;
}

.loading-professional::after {
  content: '';
  position: absolute;
  top: 0;
  left: -100%;
  width: 100%;
  height: 100%;
  background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.4), transparent);
  animation: loadingShimmer 2s infinite;
}

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

/* Custom scrollbar */
::-webkit-scrollbar {
  width: 8px;
}

::-webkit-scrollbar-track {
  background: #f1f1f1;
}

::-webkit-scrollbar-thumb {
  background: linear-gradient(135deg, #f26d0b, #0ea5e9);
  border-radius: 4px;
}

::-webkit-scrollbar-thumb:hover {
  background: linear-gradient(135deg, #e34f01, #0284c7);
}

/* Smooth transitions for all elements */
* {
  transition: all 0.3s ease;
}

/* Custom gradient text */
.gradient-text {
  background: linear-gradient(135deg, #f26d0b, #0ea5e9);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

/* Glassmorphism effect */
.glass {
  background: rgba(255, 255, 255, 0.1);
  backdrop-filter: blur(10px);
  border: 1px solid rgba(255, 255, 255, 0.2);
}

/* Custom button hover effects */
.btn-modern {
  position: relative;
  overflow: hidden;
  z-index: 1;
}

.btn-modern::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;
  z-index: -1;
}

.btn-modern:hover::before {
  left: 100%;
}

/* Floating animation */
@keyframes float {
  0%, 100% {
    transform: translateY(0px);
  }
  50% {
    transform: translateY(-20px);
  }
}

.float-animation {
  animation: float 6s ease-in-out infinite;
}

/* Gradient animation */
@keyframes gradient {
  0% {
    background-position: 0% 50%;
  }
  50% {
    background-position: 100% 50%;
  }
  100% {
    background-position: 0% 50%;
  }
}

.gradient-animation {
  background-size: 400% 400%;
  animation: gradient 15s ease infinite;
}

/* Skill bar animation */
.skill-bar {
  position: relative;
  overflow: hidden;
}

.skill-bar::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%;
  }
}

/* Card hover effects */
.card-hover {
  transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

.card-hover:hover {
  transform: translateY(-8px) scale(1.02);
  box-shadow: 0 25px 50px -12px rgba(0, 0, 0, 0.25);
}

/* Text reveal animation */
.text-reveal {
  opacity: 0;
  transform: translateY(30px);
  transition: all 0.6s ease;
}

.text-reveal.revealed {
  opacity: 1;
  transform: translateY(0);
}

/* Loading animation */
.loading-dots {
  display: inline-block;
}

.loading-dots::after {
  content: '';
  animation: dots 1.5s steps(4, end) infinite;
}

@keyframes dots {
  0%, 20% {
    content: '';
  }
  40% {
    content: '.';
  }
  60% {
    content: '..';
  }
  80%, 100% {
    content: '...';
  }
}

/* Custom focus styles */
.focus-modern:focus {
  outline: none;
  box-shadow: 0 0 0 3px rgba(242, 109, 11, 0.3);
  border-color: #f26d0b;
}

/* Parallax effect */
.parallax {
  transform: translateZ(0);
  will-change: transform;
}

/* Image hover effects */
.image-hover {
  transition: all 0.3s ease;
  overflow: hidden;
}

.image-hover:hover img {
  transform: scale(1.1);
}

.image-hover::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: linear-gradient(45deg, rgba(242, 109, 11, 0.8), rgba(14, 165, 233, 0.8));
  opacity: 0;
  transition: opacity 0.3s ease;
  z-index: 1;
}

.image-hover:hover::before {
  opacity: 1;
}

/* Typography enhancements */
.text-shadow {
  text-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
}

.text-shadow-lg {
  text-shadow: 0 4px 8px rgba(0, 0, 0, 0.2);
}

/* Custom selection */
::selection {
  background: rgba(242, 109, 11, 0.3);
  color: #1f2937;
}

::-moz-selection {
  background: rgba(242, 109, 11, 0.3);
  color: #1f2937;
}

/* Mobile optimizations */
@media (max-width: 768px) {
  .mobile-optimized {
    font-size: 0.9rem;
    line-height: 1.5;
  }
  
  .mobile-spacing {
    padding: 1rem;
    margin: 0.5rem 0;
  }
}

/* Dark mode support */
@media (prefers-color-scheme: dark) {
  .auto-dark {
    background-color: #1f2937;
    color: #f9fafb;
  }
}

/* Print styles */
@media print {
  .no-print {
    display: none !important;
  }
  
  body {
    background: white !important;
    color: black !important;
  }
}

/* Accessibility improvements */
.sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}

/* High contrast mode support */
@media (prefers-contrast: high) {
  .high-contrast {
    border: 2px solid currentColor;
  }
}

/* Reduced motion support */
@media (prefers-reduced-motion: reduce) {
  *,
  *::before,
  *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
  }
}
