/* Custom stylesheet for Mahaswata Kundu's Portfolio - Light Mode */

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

:root {
  --font-primary: 'Plus Jakarta Sans', sans-serif;
  --font-secondary: 'Outfit', sans-serif;
}

html {
  scroll-behavior: smooth;
  scroll-padding-top: 5.5rem; /* Offsets sticky nav height */
}

body {
  font-family: var(--font-primary);
  background-color: #f8fafc; /* light slate-50 */
  color: #334155; /* slate-700 */
  overflow-x: hidden;
}

/* Custom Scrollbar in Light Mode */
::-webkit-scrollbar {
  width: 10px;
}

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

::-webkit-scrollbar-thumb {
  background: #cbd5e1;
  border: 2px solid #f1f5f9;
  border-radius: 5px;
}

::-webkit-scrollbar-thumb:hover {
  background: linear-gradient(to bottom, #3b82f6, #10b981, #ec4899);
}

/* Background Grid Pattern in Light Mode */
.bg-grid-pattern {
  background-size: 40px 40px;
  background-image: 
    linear-gradient(to right, rgba(15, 23, 42, 0.025) 1px, transparent 1px),
    linear-gradient(to bottom, rgba(15, 23, 42, 0.025) 1px, transparent 1px);
  animation: panGrid 30s linear infinite;
}

@keyframes panGrid {
  0% { background-position: 0 0; }
  100% { background-position: 40px 40px; }
}

/* Radial Glow Mask in Light Mode */
.bg-radial-glow {
  background: radial-gradient(circle at var(--mouse-x, 50%) var(--mouse-y, 50%), rgba(59, 130, 246, 0.08) 0%, rgba(16, 185, 129, 0.05) 35%, rgba(236, 72, 153, 0.03) 70%, transparent 90%);
}

/* Glassmorphism Styles in Light Mode */
.glass-panel {
  background: rgba(255, 255, 255, 0.7);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border: 1px solid rgba(15, 23, 42, 0.06);
}

.glass-nav {
  background: rgba(248, 250, 252, 0.8);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  border-bottom: 1px solid rgba(15, 23, 42, 0.06);
}

/* Accent border gradient glow on hover */
.hover-glow-card {
  position: relative;
  transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

.hover-glow-card::after {
  content: '';
  position: absolute;
  inset: -1px;
  border-radius: inherit;
  background: linear-gradient(135deg, rgba(59, 130, 246, 0.4), rgba(16, 185, 129, 0.4), rgba(236, 72, 153, 0.4));
  z-index: -1;
  opacity: 0;
  transition: opacity 0.3s ease;
}

.hover-glow-card:hover::after {
  opacity: 1;
}

.hover-glow-card:hover {
  transform: translateY(-4px);
  box-shadow: 0 10px 30px -10px rgba(16, 185, 129, 0.15);
  border-color: rgba(16, 185, 129, 0.25);
  background: rgba(255, 255, 255, 0.9);
}

/* Timeline vertical line custom positioning */
.timeline-line {
  left: 19px;
}

@media (min-width: 768px) {
  .timeline-line {
    left: 50%;
    transform: translateX(-50%);
  }
}

/* Typing cursor animation */
.cursor-blink {
  animation: blink 0.8s infinite;
}

@keyframes blink {
  0%, 100% { opacity: 1; }
  50% { opacity: 0; }
}

/* Smooth fade-in and float animations */
.animate-float {
  animation: float 6s ease-in-out infinite;
}

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

/* Drifting Background Blobs */
@keyframes blob-drift-1 {
  0%, 100% { transform: translate(0, 0) scale(1); opacity: 0.4; }
  33% { transform: translate(40px, -60px) scale(1.1); opacity: 0.8; }
  66% { transform: translate(-30px, 30px) scale(0.9); opacity: 0.6; }
}

@keyframes blob-drift-2 {
  0%, 100% { transform: translate(0, 0) scale(1); opacity: 0.4; }
  33% { transform: translate(-60px, 40px) scale(0.95); opacity: 0.7; }
  66% { transform: translate(30px, -30px) scale(1.05); opacity: 0.8; }
}

@keyframes blob-drift-3 {
  0%, 100% { transform: translate(0, 0) scale(1); opacity: 0.4; }
  33% { transform: translate(50px, 50px) scale(1.05); opacity: 0.8; }
  66% { transform: translate(-40px, -40px) scale(0.95); opacity: 0.6; }
}

.animate-blob-1 { animation: blob-drift-1 15s ease-in-out infinite; }
.animate-blob-2 { animation: blob-drift-2 18s ease-in-out infinite; }
.animate-blob-3 { animation: blob-drift-3 20s ease-in-out infinite; }
