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

:root {
  --brand: #6366f1;
  --brand-glow: rgba(99, 102, 241, 0.4);
  --dark-bg: #030712;
  --dark-text: #f8fafc;
  --dark-surface: rgba(15, 23, 42, 0.75);
  --dark-input: rgba(8, 12, 24, 0.75);
  --dark-border: rgba(255, 255, 255, 0.08);
  --light-bg: #f8fafc;
  --light-text: #090d16;
  --light-surface: rgba(255, 255, 255, 0.88);
  --light-input: #f1f5f9;
  --light-border: rgba(0, 0, 0, 0.08);
}

* {
  font-family: 'Plus Jakarta Sans', sans-serif;
  box-sizing: border-box;
}

.font-mono {
  font-family: 'JetBrains Mono', monospace !important;
}

body {
  background: var(--dark-bg);
  color: var(--dark-text);
  transition: background-color 0.3s cubic-bezier(0.16, 1, 0.3, 1), color 0.3s ease;
  overflow-x: hidden;
  min-height: 100vh;
}

body.light {
  background: var(--light-bg);
  color: var(--light-text);
}

/* 🌌 Ambient Atmospheric Glow Orbs */
.ambient-glow-1 {
  position: fixed;
  top: -160px;
  left: 50%;
  transform: translateX(-50%);
  width: 650px;
  height: 520px;
  background: radial-gradient(circle, rgba(99, 102, 241, 0.25) 0%, rgba(147, 51, 234, 0.15) 45%, transparent 70%);
  filter: blur(100px);
  pointer-events: none;
  z-index: 0;
  animation: orbPulse 8s ease-in-out infinite alternate;
}

.ambient-glow-2 {
  position: fixed;
  bottom: -120px;
  right: -80px;
  width: 550px;
  height: 550px;
  background: radial-gradient(circle, rgba(6, 182, 212, 0.18) 0%, rgba(99, 102, 241, 0.1) 50%, transparent 70%);
  filter: blur(100px);
  pointer-events: none;
  z-index: 0;
  animation: orbPulse 10s ease-in-out infinite alternate-reverse;
}

.ambient-glow-3 {
  position: fixed;
  bottom: 20%;
  left: -100px;
  width: 450px;
  height: 450px;
  background: radial-gradient(circle, rgba(234, 88, 12, 0.12) 0%, transparent 65%);
  filter: blur(90px);
  pointer-events: none;
  z-index: 0;
}

.cyber-grid {
  position: fixed;
  inset: 0;
  background-image: radial-gradient(rgba(255, 255, 255, 0.06) 1px, transparent 1px);
  background-size: 28px 28px;
  pointer-events: none;
  z-index: 0;
  mask-image: radial-gradient(ellipse 65% 65% at 50% 40%, black 20%, transparent 80%);
  -webkit-mask-image: radial-gradient(ellipse 65% 65% at 50% 40%, black 20%, transparent 80%);
}

.light .cyber-grid {
  background-image: radial-gradient(rgba(0, 0, 0, 0.06) 1px, transparent 1px);
}

@keyframes orbPulse {
  0% { transform: translateX(-50%) scale(1); opacity: 0.6; }
  50% { transform: translateX(-48%) scale(1.15); opacity: 0.95; }
  100% { transform: translateX(-52%) scale(0.95); opacity: 0.7; }
}

/* 🚀 Bento Modern Card */
.bento-card {
  background: var(--dark-surface);
  backdrop-filter: blur(24px);
  -webkit-backdrop-filter: blur(24px);
  border: 1px solid var(--dark-border);
  box-shadow: 0 0 0 1px rgba(255, 255, 255, 0.03), 0 25px 50px -15px rgba(0, 0, 0, 0.75);
  border-radius: 28px;
  transition: all 0.3s cubic-bezier(0.16, 1, 0.3, 1);
  position: relative;
  z-index: 1;
}

.bento-card:hover {
  border-color: rgba(255, 255, 255, 0.18);
  box-shadow: 0 0 0 1px rgba(255, 255, 255, 0.06), 0 30px 60px -15px rgba(99, 102, 241, 0.2);
}

.light .bento-card {
  background: var(--light-surface);
  border: 1px solid var(--light-border);
  box-shadow: 0 20px 40px -10px rgba(0, 0, 0, 0.08);
}

/* 💎 Modern Sleek Input */
.modern-input {
  background: var(--dark-input);
  border: 1px solid var(--dark-border);
  border-radius: 18px;
  color: #fff;
  transition: all 0.25s ease;
}

.modern-input:focus {
  border-color: rgba(99, 102, 241, 0.8);
  box-shadow: 0 0 0 4px rgba(99, 102, 241, 0.18), 0 0 25px rgba(99, 102, 241, 0.25);
  outline: none;
}

.light .modern-input {
  background: var(--light-input);
  border-color: rgba(0, 0, 0, 0.12);
  color: #090d16;
}

/* ⚡ Interactive Glow Button */
.glow-btn {
  position: relative;
  background: linear-gradient(135deg, #6366f1 0%, #4f46e5 50%, #4338ca 100%) !important;
  border: 1px solid rgba(255, 255, 255, 0.22) !important;
  box-shadow: 0 8px 25px -4px rgba(99, 102, 241, 0.45);
  border-radius: 18px;
  font-weight: 800;
  transition: all 0.25s cubic-bezier(0.16, 1, 0.3, 1) !important;
  overflow: hidden;
}

.glow-btn:hover {
  transform: translateY(-2px);
  box-shadow: 0 14px 35px -4px rgba(99, 102, 241, 0.65) !important;
  filter: brightness(1.1);
}

.glow-btn:active {
  transform: translateY(1px) scale(0.98);
}

.glow-btn::after {
  content: '';
  position: absolute;
  top: -50%;
  left: -60%;
  width: 40%;
  height: 200%;
  background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.28), transparent);
  transform: rotate(25deg);
  animation: btnSweep 6s infinite;
}

@keyframes btnSweep {
  0%, 70% { left: -60%; }
  100% { left: 140%; }
}

/* 🔥 Amber Spotlight Card */
.spotlight-card {
  background: linear-gradient(135deg, rgba(245, 158, 11, 0.12) 0%, rgba(99, 102, 241, 0.08) 50%, rgba(147, 51, 234, 0.12) 100%);
  border: 1px solid rgba(245, 158, 11, 0.35);
  box-shadow: 0 10px 40px -10px rgba(245, 158, 11, 0.25), inset 0 0 20px rgba(245, 158, 11, 0.05);
}

/* 📩 Email Details & Dropdown */
details.bento-card {
  border-radius: 20px !important;
  animation: feedSlideIn 0.35s cubic-bezier(0.16, 1, 0.3, 1);
}

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

details > summary {
  list-style: none;
}

details > summary::-webkit-details-marker {
  display: none;
}

details.bento-card[open] {
  border-color: rgba(99, 102, 241, 0.4) !important;
}

.desktop-view {
  max-width: 1050px !important;
}

/* Custom Scrollbars */
::-webkit-scrollbar {
  width: 8px;
  height: 8px;
}

::-webkit-scrollbar-track {
  background: rgba(15, 23, 42, 0.6);
}

::-webkit-scrollbar-thumb {
  background: rgba(255, 255, 255, 0.15);
  border-radius: 4px;
}

::-webkit-scrollbar-thumb:hover {
  background: rgba(99, 102, 241, 0.4);
}
