/* ==========================================================================
   GAUTAM KUMAR MAURYA — MODERN DESIGN SYSTEM (2026)
   Clean, Minimal, Fast, Premium Light & Dark Aesthetic with Hover Effects
   ========================================================================== */

:root {
  --font-heading: 'Plus Jakarta Sans', -apple-system, BlinkMacSystemFont, sans-serif;
  --font-body: 'Outfit', 'Inter', -apple-system, BlinkMacSystemFont, sans-serif;
  
  /* Primary & Accent Colors */
  --color-brand: #2563eb;
  --color-brand-hover: #1d4ed8;
  --color-brand-light: rgba(37, 99, 235, 0.08);
  --color-brand-border: rgba(37, 99, 235, 0.2);
  
  --color-sky: #0284c7;
  --color-emerald: #059669;
  --color-purple: #7c3aed;
  
  /* Neutral Backgrounds & Cards */
  --bg-main: #f8fafc;
  --bg-card: #ffffff;
  --bg-card-hover: #ffffff;
  --bg-muted: #f1f5f9;
  
  /* Text colors */
  --text-primary: #0f172a;
  --text-secondary: #475569;
  --text-muted: #64748b;
  
  /* Border & Dividers */
  --border-light: #e2e8f0;
  --border-subtle: #f1f5f9;
  
  /* Shadows */
  --shadow-sm: 0 1px 2px 0 rgba(15, 23, 42, 0.04);
  --shadow-md: 0 4px 6px -1px rgba(15, 23, 42, 0.06), 0 2px 4px -2px rgba(15, 23, 42, 0.04);
  --shadow-lg: 0 10px 15px -3px rgba(15, 23, 42, 0.08), 0 4px 6px -4px rgba(15, 23, 42, 0.04);
  --shadow-xl: 0 20px 25px -5px rgba(15, 23, 42, 0.08), 0 8px 10px -6px rgba(15, 23, 42, 0.03);
  --shadow-glow: 0 0 25px rgba(37, 99, 235, 0.15);
}

/* Dark Theme Overrides */
.dark {
  --bg-main: #0b0f19;
  --bg-card: #111827;
  --bg-card-hover: #1f2937;
  --bg-muted: #1e293b;
  --text-primary: #f8fafc;
  --text-secondary: #94a3b8;
  --text-muted: #64748b;
  --border-light: #1e293b;
  --border-subtle: #0f172a;
  --shadow-sm: 0 1px 2px 0 rgba(0, 0, 0, 0.2);
  --shadow-md: 0 4px 6px -1px rgba(0, 0, 0, 0.3);
  --shadow-lg: 0 10px 15px -3px rgba(0, 0, 0, 0.4);
  --shadow-xl: 0 20px 25px -5px rgba(0, 0, 0, 0.5);
  --shadow-glow: 0 0 30px rgba(56, 189, 248, 0.3);
}

/* Smooth Base Elements */
html {
  scroll-behavior: smooth;
  font-family: var(--font-body);
  background-color: var(--bg-main);
  color: var(--text-primary);
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

body {
  overflow-x: hidden;
}

h1, h2, h3, h4, h5, h6 {
  font-family: var(--font-heading);
}

/* Custom Scrollbar */
::-webkit-scrollbar {
  width: 8px;
}
::-webkit-scrollbar-track {
  background: var(--bg-main);
}
::-webkit-scrollbar-thumb {
  background: #cbd5e1;
  border-radius: 9999px;
}
.dark ::-webkit-scrollbar-thumb {
  background: #334155;
}
::-webkit-scrollbar-thumb:hover {
  background: #94a3b8;
}

/* Glassmorphism Navigation & Cards */
.glass-nav {
  background: rgba(248, 250, 252, 0.85);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border-bottom: 1px solid rgba(226, 232, 240, 0.7);
}
.dark .glass-nav {
  background: rgba(11, 15, 25, 0.85);
  border-bottom: 1px solid rgba(30, 41, 59, 0.7);
}

.glass-card {
  background: rgba(255, 255, 255, 0.85);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  border: 1px solid var(--border-light);
  transition: all 0.35s cubic-bezier(0.4, 0, 0.2, 1);
}
.dark .glass-card {
  background: rgba(17, 24, 39, 0.7);
  border: 1px solid var(--border-light);
}

/* Gradient Text Effects */
.gradient-text {
  background: linear-gradient(135deg, #1e40af 0%, #2563eb 50%, #0284c7 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
}
.dark .gradient-text {
  background: linear-gradient(135deg, #60a5fa 0%, #38bdf8 50%, #818cf8 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
}

.gradient-badge {
  background: linear-gradient(135deg, rgba(37, 99, 235, 0.08) 0%, rgba(2, 132, 199, 0.08) 100%);
  border: 1px solid rgba(37, 99, 235, 0.2);
}

/* ═══════════════════════════════════════
   HIGH-END HOVER EFFECTS (LIGHT & DARK MODE)
   ═══════════════════════════════════════ */

/* 1. Interactive Card Elevate & Glow Sheen */
.hover-elevate {
  transition: transform 0.35s cubic-bezier(0.34, 1.56, 0.64, 1), 
              box-shadow 0.35s ease, 
              border-color 0.35s ease,
              background-color 0.35s ease;
  position: relative;
  will-change: transform;
}

.hover-elevate:hover {
  transform: translateY(-6px) scale(1.01);
  border-color: rgba(37, 99, 235, 0.4);
  box-shadow: 0 20px 30px -10px rgba(37, 99, 235, 0.14), 0 0 20px rgba(37, 99, 235, 0.1);
}

.dark .hover-elevate:hover {
  border-color: rgba(56, 189, 248, 0.45);
  box-shadow: 0 20px 35px -10px rgba(56, 189, 248, 0.25), 0 0 25px rgba(56, 189, 248, 0.18);
  background-color: rgba(30, 41, 59, 0.7);
}

/* Icon tilt on card hover */
.hover-elevate:hover .w-10,
.hover-elevate:hover .w-12 {
  transform: scale(1.12) rotate(5deg);
  transition: transform 0.3s cubic-bezier(0.34, 1.56, 0.64, 1);
}

/* 2. Interactive Tech Stack Pills */
.tech-pill {
  font-size: 0.75rem;
  font-weight: 500;
  padding: 0.25rem 0.65rem;
  border-radius: 9999px;
  background-color: var(--bg-muted);
  color: var(--text-secondary);
  border: 1px solid var(--border-light);
  transition: all 0.25s ease;
  cursor: default;
  display: inline-block;
}

.tech-pill:hover {
  transform: translateY(-2px) scale(1.05);
  background-color: rgba(37, 99, 235, 0.12);
  color: #1d4ed8;
  border-color: rgba(37, 99, 235, 0.35);
  box-shadow: 0 4px 10px rgba(37, 99, 235, 0.15);
}

.dark .tech-pill:hover {
  background-color: rgba(56, 189, 248, 0.15);
  color: #38bdf8;
  border-color: rgba(56, 189, 248, 0.4);
  box-shadow: 0 4px 12px rgba(56, 189, 248, 0.2);
}

/* 3. Button Sheen & Glow Animations */
a.bg-blue-600, button.bg-blue-600,
a.bg-emerald-600, a.bg-sky-600 {
  position: relative;
  overflow: hidden;
  transition: all 0.3s ease;
}

a.bg-blue-600:hover, button.bg-blue-600:hover {
  transform: translateY(-3px);
  box-shadow: 0 12px 25px -5px rgba(37, 99, 235, 0.45);
}

.dark a.bg-blue-600:hover, .dark button.bg-blue-600:hover {
  box-shadow: 0 12px 30px -5px rgba(56, 189, 248, 0.55);
}

a.bg-emerald-600:hover {
  transform: translateY(-3px);
  box-shadow: 0 12px 25px -5px rgba(5, 150, 105, 0.45);
}

a.bg-sky-600:hover {
  transform: translateY(-3px);
  box-shadow: 0 12px 25px -5px rgba(2, 132, 199, 0.45);
}

/* Button Shimmer Line Effect */
a.bg-blue-600::before, button.bg-blue-600::before,
a.bg-emerald-600::before, a.bg-sky-600::before {
  content: '';
  position: absolute;
  top: 0;
  left: -100%;
  width: 50%;
  height: 100%;
  background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.25), transparent);
  transition: left 0.6s ease;
}

a.bg-blue-600:hover::before, button.bg-blue-600:hover::before,
a.bg-emerald-600:hover::before, a.bg-sky-600:hover::before {
  left: 150%;
}

/* 4. Active & Hover Nav Links */
.nav-link {
  position: relative;
  transition: color 0.25s ease;
}

.nav-link::after {
  content: '';
  position: absolute;
  bottom: -4px;
  left: 50%;
  width: 0;
  height: 2.5px;
  background: linear-gradient(90deg, #2563eb, #0284c7);
  border-radius: 99px;
  transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
  transform: translateX(-50%);
}

.dark .nav-link::after {
  background: linear-gradient(90deg, #60a5fa, #38bdf8);
}

.nav-link:hover::after,
.nav-link.active::after {
  width: 100%;
}

/* 5. Social Icon Buttons Pulsing Glow */
a[aria-label*="Profile"], a[aria-label*="Email"], a[aria-label*="WhatsApp"] {
  transition: all 0.3s cubic-bezier(0.34, 1.56, 0.64, 1);
}

a[aria-label*="Profile"]:hover, a[aria-label*="Email"]:hover, a[aria-label*="WhatsApp"]:hover {
  transform: translateY(-3px) scale(1.12) rotate(4deg);
  box-shadow: 0 8px 18px rgba(37, 99, 235, 0.2);
}

.dark a[aria-label*="Profile"]:hover, .dark a[aria-label*="Email"]:hover, .dark a[aria-label*="WhatsApp"]:hover {
  box-shadow: 0 8px 20px rgba(56, 189, 248, 0.3);
}

/* 6. Tab Filter Buttons */
.tab-btn {
  transition: all 0.25s cubic-bezier(0.4, 0, 0.2, 1);
}

.tab-btn:hover {
  transform: translateY(-2px);
  border-color: var(--color-brand);
  color: var(--color-brand);
}

.dark .tab-btn:hover {
  border-color: #38bdf8;
  color: #38bdf8;
}

.tab-btn.active {
  background-color: var(--color-brand);
  color: #ffffff !important;
  border-color: var(--color-brand);
  box-shadow: 0 4px 14px rgba(37, 99, 235, 0.35);
}

.dark .tab-btn.active {
  background-color: #2563eb;
  box-shadow: 0 4px 16px rgba(56, 189, 248, 0.4);
}

/* Subtle Floating Animation */
@keyframes float-slow {
  0%, 100% { transform: translateY(0px); }
  50% { transform: translateY(-8px); }
}
.animate-float {
  animation: float-slow 6s ease-in-out infinite;
}

/* Subtle Glow Backgrounds */
.bg-glow-blue {
  position: absolute;
  width: 500px;
  height: 500px;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(37, 99, 235, 0.07) 0%, rgba(37, 99, 235, 0) 70%);
  pointer-events: none;
  z-index: 0;
}
.bg-glow-sky {
  position: absolute;
  width: 400px;
  height: 400px;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(2, 132, 199, 0.07) 0%, rgba(2, 132, 199, 0) 70%);
  pointer-events: none;
  z-index: 0;
}

/* Custom Toast Notification */
.toast-msg {
  position: fixed;
  bottom: 24px;
  right: 24px;
  z-index: 9999;
  transform: translateY(100px);
  opacity: 0;
  transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}
.toast-msg.show {
  transform: translateY(0);
  opacity: 1;
}

/* Hero Ambient Mesh Glow */
.hero-mesh-glow {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  width: 700px;
  height: 700px;
  background: radial-gradient(circle, rgba(37, 99, 235, 0.22) 0%, rgba(2, 132, 199, 0.12) 50%, transparent 70%);
  filter: blur(80px);
  pointer-events: none;
  z-index: 1;
  animation: meshPulse 8s infinite alternate ease-in-out;
}

@keyframes meshPulse {
  0% { transform: translate(-50%, -50%) scale(0.9); opacity: 0.6; }
  100% { transform: translate(-50%, -50%) scale(1.15); opacity: 0.9; }
}

/* Floating 3D Visual Preview Badges in Hero */
.floating-badge {
  position: absolute;
  z-index: 20;
  background: rgba(255, 255, 255, 0.85);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  border: 1px solid rgba(226, 232, 240, 0.8);
  padding: 12px 18px;
  border-radius: 16px;
  display: flex;
  align-items: center;
  gap: 12px;
  box-shadow: 0 15px 35px rgba(15, 23, 42, 0.1);
  animation: floatSlow 6s ease-in-out infinite alternate;
  pointer-events: auto;
  transition: all 0.3s cubic-bezier(0.34, 1.56, 0.64, 1);
}

.dark .floating-badge {
  background: rgba(17, 24, 39, 0.85);
  border: 1px solid rgba(30, 41, 59, 0.8);
  box-shadow: 0 20px 40px rgba(0, 0, 0, 0.4);
}

.floating-badge:hover {
  transform: scale(1.06) translateY(-5px);
  border-color: var(--color-brand);
}

.float-badge-1 { top: 6%; right: -15px; animation-delay: 0s; }
.float-badge-2 { bottom: 22%; left: -25px; animation-delay: 2s; }
.float-badge-3 { bottom: 4%; right: -10px; animation-delay: 4s; }

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

.floating-badge-icon {
  width: 38px;
  height: 38px;
  border-radius: 10px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 18px;
  flex-shrink: 0;
}

.floating-badge-title {
  font-size: 13px;
  font-weight: 700;
  color: var(--text-primary);
  line-height: 1.2;
}

.floating-badge-sub {
  font-size: 11px;
  color: var(--text-secondary);
}

@media (max-width: 1024px) {
  .floating-badge {
    display: none;
  }
}

/* ═══════════════════════════════════════
   SKELETON SHIMMER LOADER ANIMATION
   ═══════════════════════════════════════ */
.skeleton-loader {
  background: linear-gradient(90deg, rgba(226, 232, 240, 0.4) 25%, rgba(203, 213, 225, 0.7) 50%, rgba(226, 232, 240, 0.4) 75%);
  background-size: 200% 100%;
  animation: skeletonShimmer 1.5s infinite linear;
  border-radius: 12px;
  position: relative;
  overflow: hidden;
}

.dark .skeleton-loader, .dark-theme .skeleton-loader {
  background: linear-gradient(90deg, rgba(30, 41, 59, 0.5) 25%, rgba(51, 65, 85, 0.8) 50%, rgba(30, 41, 59, 0.5) 75%);
  background-size: 200% 100%;
}

@keyframes skeletonShimmer {
  0% { background-position: 200% 0; }
  100% { background-position: -200% 0; }
}

.img-skeleton-wrapper {
  position: relative;
  overflow: hidden;
}

.img-skeleton-wrapper img {
  opacity: 0;
  transition: opacity 0.4s ease-in-out;
}

.img-skeleton-wrapper img.loaded {
  opacity: 1;
}

.img-skeleton-wrapper .skeleton-loader {
  position: absolute;
  inset: 0;
  z-index: 2;
  transition: opacity 0.4s ease-in-out;
}

.img-skeleton-wrapper.loaded .skeleton-loader {
  opacity: 0;
  pointer-events: none;
}

/* ==========================================================================
   GKM PREMIUM ANIMATION SUPPORT STYLES
   ========================================================================== */

/* ── Custom Cursor ─────────────────────────────────── */
.gkm-cursor-dot,
.gkm-cursor-ring {
  position: fixed;
  top: 0; left: 0;
  pointer-events: none;
  z-index: 9999;
  border-radius: 50%;
  mix-blend-mode: difference;
  will-change: transform;
}

.gkm-cursor-dot {
  width: 8px; height: 8px;
  background: #2563eb;
  transform: translate(-50%, -50%);
}

.gkm-cursor-ring {
  width: 28px; height: 28px;
  border: 2px solid rgba(37, 99, 235, 0.6);
  background: transparent;
  transform: translate(-50%, -50%);
}

@media (max-width: 1023px) {
  .gkm-cursor-dot, .gkm-cursor-ring { display: none; }
}

/* ── Tech Orbs ─────────────────────────────────────── */
.tech-orb {
  will-change: transform;
  transition: box-shadow 0.25s ease;
  user-select: none;
  line-height: 1.2;
}

.tech-orb:hover {
  box-shadow: 0 8px 28px rgba(0,0,0,0.22);
}

/* ── SVG Rings ─────────────────────────────────────── */
.gkm-ring {
  will-change: transform;
  transform-origin: center center;
}

/* ── gkm-reveal base state (GSAP sets from state) ─── */
.gkm-reveal {
  /* GSAP handles opacity/transform; no default hide needed */
}

/* ── Section headings animation target ─────────────── */
.section-heading {
  will-change: transform, opacity;
}

/* ── Floating badge extra hover glow ──────────────── */
.floating-badge {
  transition: box-shadow 0.3s ease, transform 0.3s ease;
}

.floating-badge:hover {
  box-shadow: 0 12px 32px rgba(37, 99, 235, 0.18);
}

/* ── Improved ambient glow orbs ───────────────────── */
.bg-glow-blue {
  position: absolute;
  width: 480px; height: 480px;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(37, 99, 235, 0.10) 0%, transparent 70%);
  filter: blur(40px);
  pointer-events: none;
  will-change: transform;
}

.bg-glow-sky {
  position: absolute;
  width: 380px; height: 380px;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(2, 132, 199, 0.08) 0%, transparent 70%);
  filter: blur(40px);
  pointer-events: none;
  will-change: transform;
}

/* ── Scroll-triggered number counters ─────────────── */
[data-count] {
  font-variant-numeric: tabular-nums;
}

/* ── Performance: contain layout for heavy sections ── */
#skills, #projects, #achievements {
  contain: layout style;
}

/* ── Reduced motion overrides ─────────────────────── */
@media (prefers-reduced-motion: reduce) {
  .tech-orb, .floating-badge, .gkm-ring, .bg-glow-blue, .bg-glow-sky {
    animation: none !important;
    transition: none !important;
  }
  .gkm-cursor-dot, .gkm-cursor-ring { display: none !important; }
}
