/* Shared CSS for Sathish Bantu's Portfolio */

:root {
  --bg-primary: #020617;
  --bg-secondary: #0f172a;
  --bg-card: rgba(30, 41, 59, 0.4);
  --bg-card-hover: rgba(30, 41, 59, 0.6);
  --border-color: rgba(255, 255, 255, 0.08);
  --border-color-hover: rgba(255, 255, 255, 0.15);
  --accent-primary: #3b82f6;
  --accent-secondary: #8b5cf6;
  --text-primary: #f8fafc;
  --text-secondary: #94a3b8;
}

/* Global Styles */
html {
  scroll-behavior: smooth;
}

body {
  background-color: var(--bg-primary);
  color: var(--text-primary);
  font-family: 'Outfit', 'Inter', system-ui, sans-serif;
  overflow-x: hidden;
}

/* Scrollbar Customization */
::-webkit-scrollbar {
  width: 8px;
}
::-webkit-scrollbar-track {
  background: var(--bg-primary);
}
::-webkit-scrollbar-thumb {
  background: #1e293b;
  border-radius: 4px;
}
::-webkit-scrollbar-thumb:hover {
  background: var(--accent-primary);
}

/* Glassmorphism Cards */
.glass-card {
  background: var(--bg-card);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border: 1px solid var(--border-color);
  box-shadow: 0 8px 32px 0 rgba(0, 0, 0, 0.37);
  transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

.glass-card:hover {
  background: var(--bg-card-hover);
  border-color: var(--border-color-hover);
  transform: translateY(-4px);
  box-shadow: 0 12px 40px 0 rgba(59, 130, 246, 0.1);
}

/* Glass Navbar */
.glass-navbar {
  background: rgba(2, 6, 23, 0.7);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  border-bottom: 1px solid var(--border-color);
}

/* Glowing Accent Rings & Blobs */
.glow-blob {
  position: absolute;
  border-radius: 50%;
  filter: blur(80px);
  opacity: 0.15;
  z-index: 0;
  pointer-events: none;
  animation: float-blob 20s infinite alternate;
}

@keyframes float-blob {
  0% {
    transform: translate(0px, 0px) scale(1);
  }
  50% {
    transform: translate(30px, -50px) scale(1.2);
  }
  100% {
    transform: translate(-20px, 20px) scale(0.8);
  }
}

/* Reveal on Scroll */
.reveal {
  position: relative;
  opacity: 0;
  transform: translateY(30px);
  transition: all 0.8s cubic-bezier(0.4, 0, 0.2, 1);
}

.reveal.active {
  opacity: 1;
  transform: translateY(0);
}

/* Interactive Timeline Styles */
.timeline-item::after {
  content: '';
  position: absolute;
  width: 16px;
  height: 16px;
  border-radius: 50%;
  background: var(--bg-primary);
  border: 4px solid var(--accent-primary);
  left: -8px;
  top: 6px;
  z-index: 10;
  transition: all 0.3s ease;
}

.timeline-item:hover::after {
  transform: scale(1.3);
  border-color: var(--accent-secondary);
  box-shadow: 0 0 12px var(--accent-secondary);
}

/* Gradient Text styling helper */
.gradient-text {
  background: linear-gradient(135deg, var(--accent-primary) 0%, var(--accent-secondary) 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
}

/* Tech Badges styling */
.tech-badge {
  background: rgba(30, 41, 59, 0.6);
  border: 1px solid rgba(255, 255, 255, 0.05);
  color: var(--text-secondary);
  font-size: 0.75rem;
  font-weight: 500;
  padding: 0.25rem 0.75rem;
  border-radius: 9999px;
  transition: all 0.2s ease;
}

.tech-badge:hover {
  border-color: var(--accent-primary);
  color: var(--text-primary);
  background: rgba(59, 130, 246, 0.1);
}

/* Custom Active Link State for Navbar */
.nav-link-active {
  color: var(--text-primary) !important;
  border-bottom: 2px solid var(--accent-primary);
}
