/* Custom styles for dark modern theme */

/* Smooth scrolling */
html {
  scroll-behavior: smooth;
}

/* Custom gradients and effects */
.gradient-text {
  background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

.gradient-bg {
  background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
}

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

/* Profile image glow */
.profile-glow {
  box-shadow: 0 0 40px rgba(102, 126, 234, 0.4);
}

/* Scroll animations */
.fade-in {
  animation: fadeIn 0.6s ease-in;
}

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

/* Custom scrollbar for webkit browsers */
::-webkit-scrollbar {
  width: 10px;
}

::-webkit-scrollbar-track {
  background: #0f172a;
}

::-webkit-scrollbar-thumb {
  background: #475569;
  border-radius: 5px;
}

::-webkit-scrollbar-thumb:hover {
  background: #64748b;
}

/* Section divider line */
.section-divider {
  height: 1px;
  background: linear-gradient(90deg, transparent, #475569, transparent);
}

/* Hover effects for cards */
.hover-lift {
  transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.hover-lift:hover {
  transform: translateY(-5px);
  box-shadow: 0 10px 30px rgba(102, 126, 234, 0.3);
}

/* Icon grid */
.icon-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(60px, 1fr));
  gap: 1.5rem;
}

/* Active nav link indicator */
.nav-link-active {
  color: #667eea !important;
  font-weight: 600;
}

/* Hide scrollbars for portfolio modal but keep scrolling usable */
.portfolio-modal,
.portfolio-modal * {
  -ms-overflow-style: none; /* IE and Edge */
  scrollbar-width: none; /* Firefox */
}
.portfolio-modal::-webkit-scrollbar,
.portfolio-modal *::-webkit-scrollbar {
  display: none; /* Chrome, Safari, Opera */
}

/* Ensure modal still scrolls when content overflows */
.portfolio-modal {
  overflow: auto;
}
