/* Modern Luxury Light Tech Portfolio Styles for Mohammad Mohsin */

@import url('https://fonts.googleapis.com/css2?family=Plus+Jakarta+Sans:ital,wght@0,300;0,400;0,500;0,600;0,700;0,800;1,400;1,600&family=Outfit:wght@400;500;600;700;800;900&family=JetBrains+Mono:wght@400;500;600&display=swap');

:root {
  --primary: #4f46e5; /* Royal Indigo */
  --primary-hover: #4338ca;
  --primary-light: #eef2ff;
  --primary-glow: rgba(79, 70, 229, 0.25);
  --secondary: #7c3aed; /* Vivid Violet */
  --accent: #0284c7; /* Cyan */
}

html {
  scroll-behavior: smooth;
  font-family: 'Plus Jakarta Sans', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
  background-color: #f8fafc;
}

body {
  background-color: #f8fafc;
  color: #1e293b;
}

.font-heading {
  font-family: 'Outfit', sans-serif;
}

.font-mono-code {
  font-family: 'JetBrains Mono', monospace;
}

/* Background Interactive Dots Canvas */
#bgDotsCanvas {
  position: fixed;
  top: 0;
  left: 0;
  width: 100vw;
  height: 100vh;
  pointer-events: none;
  z-index: 0;
}

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

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

::-webkit-scrollbar-thumb {
  background: #cbd5e1;
  border-radius: 6px;
}

::-webkit-scrollbar-thumb:hover {
  background: #94a3b8;
}

/* Hide scrollbar for clean slider track */
.no-scrollbar::-webkit-scrollbar {
  display: none;
}
.no-scrollbar {
  -ms-overflow-style: none;
  scrollbar-width: none;
}

/* Glassmorphism Styles for Light Theme */
.glass-nav {
  background: rgba(255, 255, 255, 0.88);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  border-bottom: 1px solid rgba(226, 232, 240, 0.9);
  box-shadow: 0 4px 20px -4px rgba(0, 0, 0, 0.03);
}

.glass-card {
  background: rgba(255, 255, 255, 0.92);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  border: 1px solid rgba(226, 232, 240, 0.95);
  box-shadow: 0 10px 30px -10px rgba(0, 0, 0, 0.04), 0 1px 3px rgba(0, 0, 0, 0.02);
}

.glass-modal {
  background: rgba(255, 255, 255, 0.98);
  backdrop-filter: blur(24px);
  -webkit-backdrop-filter: blur(24px);
  border: 1px solid rgba(226, 232, 240, 1);
  box-shadow: 0 25px 50px -12px rgba(0, 0, 0, 0.15);
}

/* Dynamic Career Stepper Rail & Active States */
.career-nav-item {
  transition: all 0.3s cubic-bezier(0.16, 1, 0.3, 1);
  cursor: pointer;
  position: relative;
}

.career-nav-item.active {
  background: rgba(238, 242, 255, 0.95);
  border-color: #6366f1;
  box-shadow: 0 10px 25px -5px rgba(99, 102, 241, 0.15);
  transform: translateX(6px);
}

.career-nav-item.active .career-nav-dot {
  background: #4f46e5;
  box-shadow: 0 0 0 4px rgba(199, 210, 254, 0.8);
  transform: scale(1.2);
}

.career-nav-item.active .career-nav-company {
  color: #4338ca;
  font-weight: 700;
}

/* Testimonial Slider Dots */
.testimonial-dot {
  transition: all 0.3s ease;
  cursor: pointer;
}
.testimonial-dot.active {
  background-color: #4f46e5;
  width: 2rem;
  border-radius: 9999px;
}

/* Bento Services Card Custom Styling */
.service-bento-card {
  position: relative;
  transition: all 0.4s cubic-bezier(0.16, 1, 0.3, 1);
  overflow: hidden;
  background: #ffffff;
  border: 1px solid #e2e8f0;
}

.service-bento-card::before {
  content: '';
  position: absolute;
  inset: 0;
  border-radius: 1.5rem;
  padding: 1.5px;
  background: linear-gradient(135deg, rgba(79, 70, 229, 0.3) 0%, rgba(124, 58, 237, 0.2) 50%, rgba(6, 182, 212, 0.3) 100%);
  -webkit-mask: linear-gradient(#fff 0 0) content-box, linear-gradient(#fff 0 0);
  mask: linear-gradient(#fff 0 0) content-box, linear-gradient(#fff 0 0);
  -webkit-mask-composite: xor;
  mask-composite: exclude;
  pointer-events: none;
  opacity: 0;
  transition: opacity 0.4s ease;
}

.service-bento-card:hover {
  transform: translateY(-6px);
  box-shadow: 0 20px 35px -10px rgba(99, 102, 241, 0.12), 0 4px 6px -2px rgba(0, 0, 0, 0.03);
  border-color: rgba(99, 102, 241, 0.3);
}

.service-bento-card:hover::before {
  opacity: 1;
}

.service-num-watermark {
  font-family: 'Outfit', sans-serif;
  font-weight: 900;
  font-size: 5.5rem;
  line-height: 1;
  position: absolute;
  top: 0.5rem;
  right: 1.25rem;
  opacity: 0.04;
  user-select: none;
  pointer-events: none;
  color: #0f172a;
  transition: opacity 0.3s ease, transform 0.3s ease;
}

.service-bento-card:hover .service-num-watermark {
  opacity: 0.08;
  transform: scale(1.05);
}

/* Skills Matrix Modern Card & Mastery Bars */
.skill-domain-card {
  position: relative;
  background: #ffffff;
  border: 1px solid #e2e8f0;
  border-radius: 1.5rem;
  padding: 1.75rem;
  transition: all 0.35s cubic-bezier(0.16, 1, 0.3, 1);
  overflow: hidden;
}

.skill-domain-card:hover {
  transform: translateY(-5px);
  box-shadow: 0 18px 30px -10px rgba(99, 102, 241, 0.12);
  border-color: rgba(99, 102, 241, 0.3);
}

.skill-item-pill {
  transition: all 0.25s ease;
}

.skill-item-pill:hover {
  transform: translateY(-2px);
  border-color: #6366f1;
  background-color: #f8fafc;
  box-shadow: 0 4px 10px rgba(99, 102, 241, 0.1);
}

.skill-progress-track {
  height: 6px;
  background: #f1f5f9;
  border-radius: 9999px;
  overflow: hidden;
}

.skill-progress-bar {
  height: 100%;
  border-radius: 9999px;
  background: linear-gradient(90deg, #4f46e5 0%, #7c3aed 100%);
  transition: width 1.2s cubic-bezier(0.16, 1, 0.3, 1);
}

/* Floating Animations */
@keyframes floatSlow {
  0%, 100% {
    transform: translateY(0px);
  }
  50% {
    transform: translateY(-10px);
  }
}

@keyframes floatDelayed {
  0%, 100% {
    transform: translateY(0px);
  }
  50% {
    transform: translateY(-8px);
  }
}

@keyframes pulseGlow {
  0%, 100% {
    box-shadow: 0 0 15px rgba(99, 102, 241, 0.2);
  }
  50% {
    box-shadow: 0 0 28px rgba(124, 58, 237, 0.35);
  }
}

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

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

.animate-float-delayed {
  animation: floatDelayed 7s ease-in-out infinite 1.5s;
}

.animate-pulse-glow {
  animation: pulseGlow 3s ease-in-out infinite;
}

.animate-spin-slow {
  animation: spinSlow 25s linear infinite;
}

/* Hover Lift Effect */
.hover-lift {
  transition: transform 0.35s cubic-bezier(0.34, 1.56, 0.64, 1), box-shadow 0.35s ease, border-color 0.35s ease;
}

.hover-lift:hover {
  transform: translateY(-6px);
  box-shadow: 0 20px 35px -10px rgba(99, 102, 241, 0.12), 0 4px 6px -2px rgba(0, 0, 0, 0.03);
  border-color: rgba(99, 102, 241, 0.4);
}

/* Gradient Texts */
.text-gradient {
  background: linear-gradient(135deg, #4f46e5 0%, #7c3aed 50%, #0284c7 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
}

.text-gradient-cyan {
  background: linear-gradient(135deg, #0284c7 0%, #4f46e5 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
}

/* Glow Buttons */
.btn-glow {
  position: relative;
  overflow: hidden;
  transition: all 0.3s ease;
}

.btn-glow::after {
  content: '';
  position: absolute;
  top: -50%;
  left: -50%;
  width: 200%;
  height: 200%;
  background: linear-gradient(60deg, transparent, rgba(255, 255, 255, 0.35), transparent);
  transform: rotate(30deg) translateY(-100%);
  transition: transform 0.7s ease;
}

.btn-glow:hover::after {
  transform: rotate(30deg) translateY(100%);
}

/* Project Card Aesthetics */
.project-card {
  position: relative;
  transition: all 0.4s cubic-bezier(0.16, 1, 0.3, 1);
  display: flex;
  flex-direction: column;
  justify-content: space-between;
}

.project-card::before {
  content: '';
  position: absolute;
  inset: 0;
  border-radius: 1.5rem;
  padding: 1.5px;
  background: linear-gradient(135deg, transparent 40%, rgba(99, 102, 241, 0.35) 80%, rgba(6, 182, 212, 0.4) 100%);
  -webkit-mask: linear-gradient(#fff 0 0) content-box, linear-gradient(#fff 0 0);
  mask: linear-gradient(#fff 0 0) content-box, linear-gradient(#fff 0 0);
  -webkit-mask-composite: xor;
  mask-composite: exclude;
  pointer-events: none;
  opacity: 0;
  transition: opacity 0.4s ease;
}

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

.browser-header {
  background: #f8fafc;
  border-bottom: 1px solid #e2e8f0;
}

/* Modal Backdrop */
.modal-backdrop {
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.3s ease;
}

.modal-backdrop.active {
  opacity: 1;
  pointer-events: auto;
}

.modal-container {
  transform: scale(0.95) translateY(20px);
  opacity: 0;
  transition: transform 0.3s cubic-bezier(0.34, 1.56, 0.64, 1), opacity 0.3s ease;
}

.modal-backdrop.active .modal-container {
  transform: scale(1) translateY(0);
  opacity: 1;
}

/* Toast */
#toast {
  position: fixed;
  bottom: 2rem;
  right: 2rem;
  z-index: 100;
  transform: translateY(150%);
  transition: transform 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275);
}

#toast.show {
  transform: translateY(0);
}
