/* ===============================
   PROFESSIONAL RETRO THEME
   =============================== */
:root {
  --accent: #d4af37;
  --accent-dim: #bfa130;
  --bg: #0a0a0a;
  --panel: rgba(18, 18, 18, 0.94);
  --text: #f3efe4;
  --muted: #b7b09a;
  --line: rgba(212,175,55,0.15);
}

* { box-sizing: border-box; }

html { background-color: #050505; scroll-behavior: smooth; }

body {
  margin: 0;
  font-family: Inter, system-ui, sans-serif;
  background-color: transparent;
  color: var(--text);
  background-image: radial-gradient(circle, rgba(212,175,55,0.08) 1px, transparent 1.5px);
  background-size: 20px 20px;
}

body::after {
  content: "";
  position: fixed; inset: 0; z-index: -1; pointer-events: none;
  background-image: url('background.jpg');
  background-size: cover; background-position: center; background-repeat: no-repeat;
  filter: invert(1) sepia(1) saturate(6) hue-rotate(10deg) brightness(0.8) contrast(2.2);
  opacity: 0.3;
}

/* ===============================
   NAVIGATION INDICATORS (CLICKABLE)
   =============================== */
.scroll-indicator {
  position: fixed; left: 50%; transform: translateX(-50%);
  background: var(--accent); color: #000; padding: 10px 20px;
  font-family: "JetBrains Mono", monospace; font-weight: bold; font-size: 11px;
  border-radius: 2px; z-index: 2000; display: none;
  box-shadow: 0 0 20px rgba(212, 175, 55, 0.6);
  text-transform: uppercase; border: 1px solid #fff;
  cursor: pointer; transition: transform 0.2s, background 0.2s;
  user-select: none;
}
.scroll-indicator:hover {
  background: #fff;
  transform: translateX(-50%) scale(1.05);
}
#scroll-up { top: 140px; }
#scroll-down { bottom: 40px; }

/* ===============================
   INFINITE GLOW LOGIC
   =============================== */
@keyframes infinite-glow {
  0% { border-color: var(--accent); box-shadow: 0 0 5px var(--accent); transform: scale(1); }
  50% { border-color: #fff; box-shadow: 0 0 25px var(--accent); transform: scale(1.01); }
  100% { border-color: var(--accent); box-shadow: 0 0 5px var(--accent); transform: scale(1); }
}

.highlight-active {
  animation: infinite-glow 2s infinite ease-in-out !important;
  border-left: 6px solid #fff !important;
  background: rgba(40, 35, 20, 0.98) !important;
  z-index: 50; position: relative;
}

/* ===============================
   FIXED WRAPPER (HEADER + NAV)
   =============================== */
#fixed-wrapper { position: fixed; top: 0; left: 0; width: 100%; z-index: 1000; display: flex; flex-direction: column; }
header { width: 100%; background: #0b0b0b; border-bottom: 2px solid var(--accent); text-align: center; font-weight: 700; padding: 24px; font-size: 36px; font-family: "JetBrains Mono", monospace; text-transform: uppercase; letter-spacing: 0.1em; transition: all 0.25s ease; }
nav { width: 100%; display: flex; justify-content: center; gap: 32px; padding: 14px; background: #111; border-bottom: 1px solid var(--line); transition: all 0.25s ease; }
body.scrolled header { padding: 10px; font-size: 24px; }
body.scrolled nav { padding: 8px; }
nav a { position: relative; font-family: "JetBrains Mono", monospace; font-size: 14px; color: var(--accent); text-decoration: none; padding: 4px 2px; text-transform: uppercase; }
nav a::after { content: ""; position: absolute; left: 0; bottom: -4px; width: 100%; height: 2px; background: var(--accent); transform: scaleX(0); transition: transform 0.25s ease; }
nav a.active::after, nav a:hover::after { transform: scaleX(1); }

/* ===============================
   LAYOUT & CARDS
   =============================== */
.container {
  max-width: 1200px;
  margin: 180px auto 40px auto;
  padding: 24px;
  position: relative;
  z-index: 1;
  transition: margin-top 0.25s ease;
}

body.scrolled .container { margin-top: 130px; }

.card { background: var(--panel); padding: 32px; margin-bottom: 28px; border-radius: 2px; border: 1px solid var(--line); box-shadow: 6px 6px 0px rgba(0,0,0,0.6); backdrop-filter: blur(10px); }
h2 { margin-top: 0; color: var(--accent); font-family: "JetBrains Mono", monospace; text-transform: uppercase; border-bottom: 1px solid var(--line); padding-bottom: 10px; }
h3 { font-family: "JetBrains Mono", monospace; color: #fff; margin-top: 30px; font-size: 1.1rem; }
.grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(300px, 1fr)); gap: 20px; }
.item-card { padding: 20px; background: rgba(15, 15, 15, 0.85); border: 1px solid #222; border-left: 4px solid var(--accent); cursor: pointer; transition: all 0.2s ease; margin-bottom: 10px; }
.item-card:hover { transform: translateY(-3px); border-color: var(--accent); box-shadow: 0 5px 15px rgba(212, 175, 55, 0.15); }

.tag-container { display: flex; flex-wrap: wrap; gap: 6px; margin-top: 10px; }
.tag { font-family: "JetBrains Mono", monospace; font-size: 10px; background: rgba(212, 175, 55, 0.1); color: var(--accent); border: 1px solid var(--line); padding: 2px 6px; border-radius: 2px; transition: 0.2s; }
.tag:hover { background: var(--accent); color: #000; }

.yearHeader { font-size: 24px; color: var(--accent); margin-top: 40px; margin-bottom: 24px; padding-bottom: 6px; border-bottom: 1px solid var(--line); font-family: "JetBrains Mono", monospace; }
.courseCardHeader { display: flex; justify-content: space-between; align-items: flex-start; width: 100%; margin-bottom: 10px; }
.course-title-link { color: var(--accent); font-weight: 600; text-decoration: none; font-family: "JetBrains Mono", monospace; flex: 1; margin-right: 20px; }
.course-title-link:hover { color: #fff; text-decoration: underline; }
.grade-data { font-family: "JetBrains Mono", monospace; font-size: 12px; color: var(--muted); text-align: right; white-space: nowrap; }

/* ABOUT SECTION & PROFILE PIC */
.about-layout { display: flex; gap: 24px; align-items: flex-start; flex-wrap: wrap; margin-bottom: 30px; }
/* CHANGED: border-radius is now 50% for a perfect circle */
.profile-pic { width: 180px; height: 180px; object-fit: cover; border: 2px solid var(--accent); border-radius: 50%; box-shadow: 4px 4px 0px rgba(0,0,0,0.5); }
.about-text { flex: 1; min-width: 250px; }
.about-text p:first-child { margin-top: 0; line-height: 1.6; }

/* CONTACT PAGE STYLING */
.contact-list { display: flex; flex-direction: column; gap: 20px; margin-top: 24px; }
.contact-item { display: flex; align-items: center; gap: 16px; font-family: "JetBrains Mono", monospace; font-size: 16px; transition: transform 0.2s; }
.contact-item:hover { transform: translateX(8px); }
.contact-icon { width: 28px; height: 28px; fill: var(--accent); }
.contact-item a { color: var(--text); text-decoration: none; transition: color 0.2s; }
.contact-item a:hover { color: var(--accent); text-decoration: underline; }

/* SKILLS CHART */
.skills-container { margin: 20px 0; border: 1px solid var(--line); padding: 20px; background: rgba(13, 13, 13, 0.6); }
.skill-row { display: flex; align-items: center; margin-bottom: 12px; transition: transform 0.2s ease; cursor: pointer; }
.skill-row:hover { transform: translateX(10px); }
.skill-row:hover .gauge-fill { background: #fff; box-shadow: 0 0 15px var(--accent); }
.skill-row:hover .skill-label { color: var(--accent); text-decoration: underline; }
.skill-label { width: 200px; font-family: "JetBrains Mono", monospace; font-size: 13px; color: var(--muted); flex-shrink: 0; }
.gauge-track { flex-grow: 1; height: 14px; background: #1a1a1a; position: relative; border: 1px solid #333; overflow: hidden; }
.gauge-fill { height: 100%; background: var(--accent); transition: width 0.5s ease-out, background 0.2s ease; }
.gauge-axis { display: flex; justify-content: space-between; margin-left: 200px; margin-top: 5px; padding-top: 5px; border-top: 1px solid var(--line); font-family: "JetBrains Mono", monospace; font-size: 10px; color: var(--muted); }

/* EDUCATION */
.edu-row { display: block; margin-bottom: 15px; padding-bottom: 15px; border-bottom: 1px solid #222; }
.edu-row:last-child { border-bottom: none; margin-bottom: 0; padding-bottom: 0; }
.edu-header { display: flex; justify-content: space-between; }
.edu-degree { font-weight: 600; color: var(--text); }
.edu-date { font-family: "JetBrains Mono", monospace; color: var(--accent); font-size: 12px; }
.edu-school { color: var(--muted); font-size: 13px; font-family: "JetBrains Mono", monospace; }
.edu-meta { display: flex; justify-content: space-between; margin-top: 8px; font-family: "JetBrains Mono", monospace; font-size: 12px; }

/* MODAL */
#modal { display: none; position: fixed; inset: 0; z-index: 3000; background: rgba(0,0,0,0.9); justify-content: center; align-items: center; }
#modalContent { background: #111; padding: 30px; border: 1px solid var(--accent); max-width: 700px; width: 90%; max-height: 80vh; overflow-y: auto; position: relative; }
#modalClose { position: absolute; top: 10px; right: 15px; font-size: 24px; cursor: pointer; color: var(--accent); }

/* Scanlines overlay */
body::before { content: ""; position: fixed; inset: 0; pointer-events: none; background: repeating-linear-gradient(to bottom, rgba(255,255,255,0.01) 0, rgba(255,255,255,0.01) 1px, transparent 1px, transparent 3px); z-index: 1001; }