/* Sushil Kumar — Custom Styles */
:root {
  --bg-color: #0f172a;
  --accent: #5eead4;
  --accent-glow: rgba(94, 234, 212, 0.15);
}

html {
  scroll-behavior: smooth;
  overflow-x: clip;
  width: 100%;
}

body {
  background-color: #0f172a;
  color: #94a3b8;
  font-family: ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
  overflow-x: clip;
  width: 100%;
  max-width: 100vw;
}

/* Hide scrollbar for clean horizontal nav */
.no-scrollbar::-webkit-scrollbar {
  display: none;
}
.no-scrollbar {
  -ms-overflow-style: none;
  scrollbar-width: none;
  -webkit-overflow-scrolling: touch;
  scroll-behavior: smooth;
  overscroll-behavior-x: contain;
}

/* Nav scroll mask gradient indicator for mobile */
.nav-scroll-wrapper {
  position: relative;
  overflow: hidden;
}

@media (max-width: 640px) {
  .nav-scroll-wrapper::after {
    content: "";
    position: absolute;
    right: 0;
    top: 0;
    bottom: 0;
    width: 24px;
    background: linear-gradient(to right, transparent, rgba(2, 6, 23, 0.9));
    pointer-events: none;
  }
}

/* Custom scrollbar */
::-webkit-scrollbar {
  width: 8px;
}
::-webkit-scrollbar-track {
  background: #0f172a;
}
::-webkit-scrollbar-thumb {
  background: #1e293b;
  border-radius: 4px;
}
::-webkit-scrollbar-thumb:hover {
  background: #334155;
}

/* Technical Banner Carousel */
.carousel-container {
  position: relative;
  min-height: 120px;
}
@media (min-width: 640px) {
  .carousel-container {
    min-height: 220px;
  }
}
@media (min-width: 1024px) {
  .carousel-container {
    min-height: 320px;
  }
}

.carousel-slide {
  opacity: 0;
  visibility: hidden;
  position: absolute;
  inset: 0;
  transform: translateY(6px);
  transition: opacity 0.45s cubic-bezier(0.4, 0, 0.2, 1), transform 0.45s cubic-bezier(0.4, 0, 0.2, 1), visibility 0.45s;
  pointer-events: none;
}

.carousel-slide.active {
  opacity: 1;
  visibility: visible;
  position: relative;
  transform: translateY(0);
  pointer-events: auto;
}

.carousel-dot {
  transition: all 0.25s cubic-bezier(0.4, 0, 0.2, 1);
}

.carousel-dot.active {
  width: 1.75rem;
  background-color: #5eead4;
}

/* Card hover group transitions */
.group-card {
  position: relative;
  transition: all 0.25s cubic-bezier(0.4, 0, 0.2, 1);
}

.group-card::before {
  content: "";
  position: absolute;
  inset: -1rem;
  border-radius: 0.75rem;
  background: transparent;
  transition: all 0.25s cubic-bezier(0.4, 0, 0.2, 1);
  z-index: 0;
  pointer-events: none;
}

@media (min-width: 1024px) {
  .group-card:hover::before {
    background: rgba(30, 41, 59, 0.45);
    box-shadow: 0 4px 20px -2px rgba(0, 0, 0, 0.3), inset 0 1px 0 0 rgba(148, 163, 184, 0.08);
    backdrop-filter: blur(8px);
  }
}

/* Code block highlight */
pre, code {
  font-family: ui-monospace, SFMono-Regular, Menlo, Monaco, Consolas, "Liberation Mono", "Courier New", monospace;
}

/* Custom Modal Animations */
.modal-overlay {
  transition: opacity 0.25s ease-out;
}

.modal-content {
  transition: transform 0.25s ease-out, opacity 0.25s ease-out;
}

@media (max-width: 640px) {
  .modal-content {
    max-height: 95vh !important;
    width: 96% !important;
    margin: auto;
  }
}

.modal-overlay.hidden {
  opacity: 0;
  pointer-events: none;
}

.modal-overlay:not(.hidden) {
  opacity: 1;
  pointer-events: auto;
}

/* Pulse indicator */
@keyframes pulse-subtle {
  0%, 100% { opacity: 1; transform: scale(1); }
  50% { opacity: 0.7; transform: scale(1.05); }
}

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