/* ==========================================================================
   Srijit Banerjee Personal Space - CSS Styling
   ========================================================================== */

:root {
  --bg-main: #f8fafc;
  --bg-card: #ffffff;
  
  --theme-gold: #d97706;
  --theme-gold-bg: #fffdf0;
  --theme-blue: #0284c7;
  --theme-blue-bg: #f0fdfa;
  --theme-green: #15803d;
  --theme-green-bg: #f0fdf4;
  --theme-purple: #7e22ce;
  --theme-purple-bg: #faf5ff;
  --theme-red: #e11d48;
  --theme-orange: #f97316;
  --theme-pink: #db2777;
  
  --text-dark: #0f172a;
  --text-body: #334155;
  --text-muted: #64748b;
  --border-color: #e2e8f0;
  
  --font-serif: 'Cinzel', serif;
  --font-sans: 'Plus Jakarta Sans', sans-serif;
}

* {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
  scroll-behavior: smooth;
}

body {
  background-color: var(--bg-main);
  color: var(--text-dark);
  font-family: var(--font-sans);
  line-height: 1.6;
  position: relative;
  overflow-x: hidden;
}

/* --- Floating Math Formulas --- */
.bg-math-floating {
  position: fixed;
  top: 0; left: 0; width: 100vw; height: 100vh;
  pointer-events: none;
  z-index: 0;
  overflow: hidden;
}

.math-item {
  position: absolute;
  font-family: var(--font-serif);
  font-weight: 700;
  color: rgba(217, 119, 6, 0.08);
  user-select: none;
  animation: floatDrift 18s infinite ease-in-out;
}

.m1 { top: 10%; left: 5%; font-size: 2rem; animation-duration: 22s; }
.m2 { top: 25%; right: 8%; font-size: 1.8rem; animation-duration: 26s; }
.m3 { top: 45%; left: 12%; font-size: 2.2rem; animation-duration: 20s; }
.m4 { top: 65%; right: 15%; font-size: 1.9rem; animation-duration: 24s; }
.m5 { top: 82%; left: 8%; font-size: 3rem; animation-duration: 18s; }
.m6 { top: 15%; right: 25%; font-size: 2.5rem; animation-duration: 25s; }
.m7 { top: 75%; right: 5%; font-size: 2.1rem; animation-duration: 21s; }
.m8 { top: 50%; right: 40%; font-size: 1.7rem; animation-duration: 28s; }

@keyframes floatDrift {
  0%, 100% { transform: translateY(0) rotate(0deg); }
  50% { transform: translateY(-30px) rotate(6deg); }
}

/* --- Neon Glow Rings --- */
.glow-ring-gold { box-shadow: 0 0 15px rgba(217, 119, 6, 0.2); border: 1px solid rgba(217, 119, 6, 0.3) !important; }
.glow-ring-blue { box-shadow: 0 0 15px rgba(2, 132, 199, 0.2); border: 1px solid rgba(2, 132, 199, 0.3) !important; }
.glow-ring-green { box-shadow: 0 0 15px rgba(22, 163, 74, 0.2); border: 1px solid rgba(22, 163, 74, 0.3) !important; }
.glow-ring-purple { box-shadow: 0 0 15px rgba(126, 34, 206, 0.2); border: 1px solid rgba(126, 34, 206, 0.3) !important; }
.glow-ring-red { box-shadow: 0 0 15px rgba(225, 29, 72, 0.2); border: 1px solid rgba(225, 29, 72, 0.3) !important; }
.glow-ring-orange { box-shadow: 0 0 15px rgba(249, 115, 22, 0.2); border: 1px solid rgba(249, 115, 22, 0.3) !important; }
.glow-ring-pink { box-shadow: 0 0 15px rgba(219, 39, 119, 0.2); border: 1px solid rgba(219, 39, 119, 0.3) !important; }
.glow-ring-silver { box-shadow: 0 0 15px rgba(100, 116, 139, 0.2); border: 1px solid rgba(100, 116, 139, 0.3) !important; }
.glow-ring-bronze { box-shadow: 0 0 15px rgba(180, 83, 9, 0.2); border: 1px solid rgba(180, 83, 9, 0.3) !important; }
.glow-ring-dark { box-shadow: 0 0 15px rgba(15, 23, 42, 0.2); border: 1px solid rgba(15, 23, 42, 0.3) !important; }

/* --- Floating Corner Props --- */
.floating-prop {
  position: fixed;
  z-index: 1000;
  width: 58px; height: 58px;
  background: #ffffff;
  border: 2px solid var(--theme-gold);
  border-radius: 50%;
  display: flex; align-items: center; justify-content: center;
  box-shadow: 0 0 20px rgba(217, 119, 6, 0.25);
  cursor: pointer;
  transition: transform 0.3s cubic-bezier(0.175, 0.885, 0.32, 1.275);
}

.floating-prop:hover { transform: scale(1.18) rotate(12deg); }
.football-prop { bottom: 25px; left: 25px; color: var(--text-dark); font-size: 1.8rem; }
.teacup-prop { bottom: 25px; right: 25px; color: var(--theme-gold); font-size: 1.6rem; }

.tea-badge-toast {
  position: absolute; top: -35px;
  background: var(--text-dark); color: #fff;
  padding: 0.2rem 0.6rem; border-radius: 12px;
  font-size: 0.7rem; font-weight: 700; white-space: nowrap;
}

.steam {
  position: absolute; top: 6px; width: 3px; height: 10px;
  background: var(--theme-gold); opacity: 0.6; border-radius: 50%;
  animation: steamRise 2s infinite ease-out;
}
.steam-1 { left: 22px; animation-delay: 0s; }
.steam-2 { right: 22px; animation-delay: 0.6s; }

@keyframes steamRise {
  0% { transform: translateY(0) scaleX(1); opacity: 0.7; }
  100% { transform: translateY(-15px) scaleX(2); opacity: 0; }
}

/* --- Navigation Bar --- */
.navbar {
  display: flex; justify-content: space-between; align-items: center;
  padding: 1.2rem 8%;
  background: rgba(255, 255, 255, 0.94);
  backdrop-filter: blur(12px);
  position: sticky; top: 0; z-index: 900;
  border-bottom: 1px solid var(--border-color);
}

.navbar .logo { font-family: var(--font-serif); font-size: 1.4rem; font-weight: 800; }
.nav-links { display: flex; list-style: none; gap: 1.2rem; }
.nav-links a {
  text-decoration: none; color: var(--text-body);
  font-weight: 600; font-size: 0.88rem; transition: color 0.3s ease;
}
.nav-links a:hover { color: var(--theme-gold); }

/* --- Hero Section with Neon Glow Name --- */
.hero {
  position: relative;
  padding: 6rem 1rem 4rem 1rem;
  text-align: center;
  background: radial-gradient(circle at top center, #fef3c7 0%, #f8fafc 70%);
  border-bottom: 1px solid var(--border-color);
  z-index: 1;
}

.hero-glow-ring {
  position: absolute; top: 50%; left: 50%;
  transform: translate(-50%, -50%);
  width: 320px; height: 320px;
  background: radial-gradient(circle, rgba(217, 119, 6, 0.18) 0%, transparent 70%);
  border-radius: 50%; pointer-events: none; z-index: -1;
}

.hero-badge {
  display: inline-flex; align-items: center; gap: 0.5rem;
  background: #ffffff; color: var(--theme-gold);
  padding: 0.4rem 1.2rem; border-radius: 20px;
  font-size: 0.85rem; font-weight: 800; margin-bottom: 1.2rem;
  border: 1px solid rgba(217, 119, 6, 0.3);
}

/* Highlighted Color / Neon Glow for Srijit Banerjee */
.hero-name-neon {
  font-family: var(--font-serif);
  font-size: 3.8rem;
  font-weight: 900;
  color: #0f172a;
  text-shadow: 
    0 0 10px rgba(217, 119, 6, 0.4),
    0 0 20px rgba(217, 119, 6, 0.2),
    0 0 30px rgba(217, 119, 6, 0.1);
  letter-spacing: -0.5px;
}

.subtitle { font-size: 1.25rem; color: var(--theme-gold); font-weight: 700; min-height: 2rem; margin-bottom: 1rem; }
.bio { max-width: 680px; margin: 0 auto 2rem auto; color: var(--text-body); font-size: 1.05rem; }
.hero-actions { display: flex; gap: 1rem; justify-content: center; }

.btn {
  padding: 0.8rem 1.6rem; border-radius: 10px;
  font-weight: 700; font-size: 0.95rem; cursor: pointer; border: none;
  transition: all 0.3s ease; display: inline-flex; align-items: center; gap: 0.5rem;
  text-decoration: none;
}

.primary-btn { background: var(--theme-gold); color: #ffffff; }
.primary-btn:hover { background: #b45309; transform: translateY(-2px); }
.secondary-btn { background: #ffffff; color: var(--text-dark); border: 1px solid var(--border-color); }
.secondary-btn:hover { background: #f1f5f9; transform: translateY(-2px); }

/* --- Section Formatting --- */
.section { position: relative; z-index: 2; padding: 4rem 10%; }
.section-title {
  font-family: var(--font-serif); font-size: 2.1rem; color: var(--text-dark);
  display: flex; align-items: center; gap: 0.75rem; margin-bottom: 0.4rem;
}
.section-subtitle { color: var(--text-muted); margin-bottom: 2.2rem; font-size: 0.95rem; }

/* Section Backgrounds */
.section-socials { background: #ffffff; }
.section-cinema { background: var(--theme-gold-bg); }
.section-tv { background: #ffffff; }
.section-gaming { background: var(--theme-blue-bg); }
.section-duo { background: var(--theme-green-bg); }
.section-credentials { background: #ffffff; }
.section-vibe { background: var(--theme-purple-bg); }

/* --- Social Grid --- */
.social-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(190px, 1fr));
  gap: 1.2rem;
}

.social-card {
  background: var(--bg-card); border-radius: 12px; padding: 1.2rem;
  display: flex; align-items: center; gap: 1rem; text-decoration: none;
  color: var(--text-dark); transition: transform 0.3s ease;
}

.social-card i { font-size: 1.8rem; }
.duo-black-icon { width: 32px; height: 32px; color: #0f172a; }

.social-card:hover { transform: translateY(-4px); }

.spotify i { color: #1ed760; }
.reddit i { color: #ff4500; }
.linkedin i { color: #0a66c2; }
.github i { color: #0f172a; }
.stardance i { color: #e11d48; }
.instagram i { color: #e1306c; }
.discord i { color: #5865f2; }
.pinterest i { color: #e60023; }
.blog i { color: var(--theme-gold); }

/* --- Movie & Web Series Grid --- */
.media-rank-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(190px, 1fr));
  gap: 1.8rem; align-items: stretch;
}

.media-card {
  background: var(--bg-card); border-radius: 14px; padding: 1rem;
  position: relative; text-decoration: none; color: var(--text-dark);
  display: flex; flex-direction: column; justify-content: space-between;
  transition: transform 0.3s ease;
}

.media-card:hover { transform: translateY(-6px); }
.rank-1.top-three { transform: scale(1.05); }
.rank-2.top-three { transform: scale(1.02); }

.medal-badge {
  position: absolute; top: -12px; left: 15px;
  padding: 0.3rem 0.8rem; border-radius: 12px;
  font-weight: 800; font-size: 0.8rem; z-index: 10;
}

.medal-gold { background: #f59e0b; color: #fff; }
.medal-silver { background: #64748b; color: #fff; }
.medal-bronze { background: #b45309; color: #fff; }
.medal-standard { background: #e2e8f0; color: var(--text-dark); }

.media-cover img {
  width: 100%; height: 280px; object-fit: cover;
  border-radius: 10px; margin-bottom: 0.8rem; display: block;
}

.media-details h3 { font-family: var(--font-serif); font-size: 1.05rem; font-weight: 700; }
.media-details .genre { font-size: 0.78rem; color: var(--text-muted); }

/* --- Games Grid --- */
.games-grid {
  display: grid; grid-template-columns: repeat(auto-fit, minmax(180px, 1fr)); gap: 1.5rem;
}

.game-card { position: relative; border-radius: 14px; overflow: hidden; height: 240px; text-decoration: none; }
.game-card img { width: 100%; height: 100%; object-fit: cover; transition: transform 0.4s ease; }
.game-card:hover img { transform: scale(1.08); }

.game-overlay {
  position: absolute; bottom: 0; left: 0; right: 0;
  padding: 1rem; background: linear-gradient(transparent, rgba(15, 23, 42, 0.95));
  color: #ffffff;
}

/* --- Duolingo --- */
.duolingo-container { background: var(--bg-card); border-radius: 18px; padding: 2.5rem; }
.duolingo-header { display: flex; align-items: center; gap: 1.5rem; margin-bottom: 2rem; }
.duo-owl-avatar {
  width: 70px; height: 70px; background: #dcfce7;
  border-radius: 50%; display: flex; align-items: center; justify-content: center; padding: 10px;
}
.duo-owl-img { width: 100%; height: 100%; object-fit: contain; }

.duo-stats-grid {
  display: grid; grid-template-columns: repeat(auto-fit, minmax(170px, 1fr));
  gap: 1.2rem; margin-bottom: 2rem;
}

.duo-stat-card { background: #f8fafc; border-radius: 12px; padding: 1rem; display: flex; align-items: center; gap: 1rem; }
.duo-icon-fire { color: #f97316; font-size: 1.8rem; }
.duo-icon-bolt { color: #eab308; font-size: 1.8rem; }
.duo-icon-gold { color: #d97706; font-size: 1.8rem; }
.duo-icon-gem { color: #0284c7; font-size: 1.8rem; }

.language-bars .lang-item { margin-bottom: 1.2rem; }
.lang-label { display: flex; justify-content: space-between; margin-bottom: 0.3rem; font-size: 0.9rem; }
.progress-bg { height: 12px; background: #e2e8f0; border-radius: 10px; overflow: hidden; }
.progress-fill { height: 100%; border-radius: 10px; }
.spanish-fill { background: #16a34a; }
.german-fill { background: #0284c7; }
.greek-fill { background: #7e22ce; }
.latin-fill { background: #d97706; }

/* --- Credentials --- */
.credentials-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(220px, 1fr)); gap: 1.5rem; }
.cred-card { background: var(--bg-card); border-radius: 14px; padding: 1.5rem; transition: transform 0.3s ease; }
.cred-card:hover { transform: translateY(-4px); }
.cred-icon { font-size: 2rem; color: var(--theme-gold); margin-bottom: 0.8rem; }
.cred-tag {
  display: inline-block; margin-top: 0.8rem; font-size: 0.75rem;
  background: var(--theme-gold-bg); color: var(--theme-gold);
  padding: 0.25rem 0.6rem; border-radius: 6px; font-weight: 800;
}

/* --- Personalized Vibe Corner --- */
.vibe-container-aligned {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 1.8rem; align-items: stretch;
}

.vibe-box {
  background: var(--bg-card); border-radius: 16px; padding: 1.8rem;
  display: flex; flex-direction: column; justify-content: space-between;
}

.vibe-box-header { display: flex; align-items: center; gap: 0.75rem; margin-bottom: 0.8rem; }
.pitch-icon { color: var(--theme-green); font-size: 1.5rem; }
.tea-icon { color: var(--theme-gold); font-size: 1.5rem; }
.chess-icon { color: var(--theme-blue); font-size: 1.5rem; }

/* Interactive Football Goalpost Stage */
.interactive-pitch-stage {
  margin-top: 1rem;
  background: #f0fdf4;
  border: 1px dashed var(--theme-green);
  border-radius: 12px;
  padding: 1.2rem;
  text-align: center;
  position: relative;
  min-height: 180px;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  align-items: center;
}

.goalpost-frame {
  width: 100%;
  height: 50px;
  border: 3px solid #16a34a;
  border-bottom: none;
  border-radius: 6px 6px 0 0;
  background: rgba(22, 163, 74, 0.08);
  position: relative;
  display: flex;
  align-items: center;
  justify-content: center;
}

.goal-target {
  font-size: 0.75rem;
  font-weight: 800;
  color: #16a34a;
  letter-spacing: 1px;
}

.ball-start-zone {
  margin-top: 20px;
  position: relative;
  height: 45px;
}

.interactive-ball {
  font-size: 2.4rem;
  cursor: pointer;
  position: relative;
  transition: transform 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275);
}

/* Ball Kick into Net Keyframe Animation Class */
.interactive-ball.kicked-to-goal {
  transform: translateY(-85px) scale(0.6) rotate(720deg) !important;
}

.kick-commentary {
  font-size: 0.82rem; color: var(--theme-green);
  font-weight: 700; margin-top: 0.4rem;
}

.goal-counter { font-size: 0.9rem; font-weight: 800; color: var(--text-dark); margin-top: 0.8rem; }

#mentalistQuote { font-style: italic; font-size: 0.9rem; margin: 1rem 0; color: var(--text-body); }
.tea-btn { background: var(--theme-gold); color: #fff; font-size: 0.85rem; width: 100%; }

/* Chess Puzzle UI */
.puzzle-header-nav {
  display: flex; justify-content: space-between; align-items: center;
  margin-bottom: 0.5rem; background: #f1f5f9; padding: 0.4rem 0.8rem;
  border-radius: 8px; font-weight: 800; font-size: 0.82rem;
}

.nav-mini-btn {
  background: var(--theme-blue); color: #fff; border: none;
  width: 24px; height: 24px; border-radius: 50%; cursor: pointer;
}

.mini-chess-board {
  display: flex; flex-direction: column;
  width: 160px; margin: 0.8rem auto;
  border: 2px solid var(--text-dark);
  border-radius: 6px; overflow: hidden;
}

.chess-row { display: flex; }
.sq {
  width: 40px; height: 40px;
  display: flex; align-items: center; justify-content: center; font-size: 1.3rem;
}
.sq.white { background: #f0d9b5; color: #0f172a; }
.sq.black { background: #b58863; color: #0f172a; }

.chess-solution {
  margin-top: 0.8rem; font-size: 0.82rem; color: var(--theme-blue);
  background: var(--theme-blue-bg); padding: 0.5rem; border-radius: 8px;
}

.chess-btn { background: var(--theme-blue); color: #fff; width: 100%; }
.hidden { display: none; }

/* Modal */
.modal-overlay {
  position: fixed; top: 0; left: 0; width: 100vw; height: 100vh;
  background: rgba(15, 23, 42, 0.75); backdrop-filter: blur(8px);
  display: flex; align-items: center; justify-content: center; z-index: 2000;
  opacity: 0; pointer-events: none; transition: opacity 0.3s ease;
}

.modal-overlay.active { opacity: 1; pointer-events: auto; }
.modal-card { position: relative; }
.modal-close {
  position: absolute; top: -15px; right: -15px;
  background: var(--theme-gold); color: #fff; border: none;
  width: 32px; height: 32px; border-radius: 50%; font-size: 1.2rem; cursor: pointer; z-index: 10;
}

.fut-card {
  width: 300px;
  background: linear-gradient(135deg, #fef3c7, #fbbf24, #d97706);
  border: 3px solid #fef08a; border-radius: 20px; padding: 1.5rem;
  color: #1e1b18; box-shadow: 0 25px 50px rgba(0,0,0,0.3); text-align: center;
}

.fut-top { display: flex; justify-content: space-between; align-items: center; }
.fut-rating .num { font-size: 2.2rem; font-weight: 900; line-height: 1; }
.fut-rating .label { font-size: 0.8rem; font-weight: 800; }
.manager-avatar { font-size: 4.5rem; margin: 1rem 0; color: #0f172a; }
.fut-info h2 { font-family: var(--font-serif); font-size: 1.1rem; font-weight: 800; }
.fut-role { font-size: 0.7rem; font-weight: 700; color: #4b5563; }

.fut-stats {
  display: grid; grid-template-columns: repeat(3, 1fr); gap: 0.5rem; margin: 1rem 0;
  background: rgba(255, 255, 255, 0.5); padding: 0.6rem; border-radius: 10px;
}

.fut-stats .stat span:first-child { font-weight: 800; font-size: 0.9rem; }
.fut-stats .stat span:last-child { font-size: 0.65rem; color: #374151; display: block; }

.fut-footer {
  font-size: 0.65rem; font-weight: 800; display: flex; justify-content: space-between;
  border-top: 1px solid rgba(0,0,0,0.1); padding-top: 0.5rem;
}

footer {
  text-align: center; padding: 2.5rem;
  border-top: 1px solid var(--border-color); color: var(--text-muted);
  font-size: 0.9rem; background: #ffffff;
}

@media (max-width: 768px) {
  .hero h1 { font-size: 2.5rem; }
  .navbar { flex-direction: column; gap: 0.8rem; }
  .rank-1.top-three, .rank-2.top-three { transform: scale(1); }
}