/* --- GLOBALS & RESET --- */
* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
  cursor: none; /* Emulates high-end peripheral cursor space */
}

:root {
  --bg-color: #03050a;
  --text-main: #e2e8f0;
  --text-muted: #94a3b8;
  --accent-purple: #9d4edd;
  --accent-blue: #00b4d8;  
  --card-bg: rgba(15, 20, 35, 0.4);
  --card-border: rgba(255, 255, 255, 0.08);
  --glass-blur: blur(12px);
}

body {
  font-family: 'Inter', sans-serif;
  background-color: var(--bg-color);
  color: var(--text-main);
  overflow-x: hidden;
  line-height: 1.6;
}

/* --- SCROLLBAR STYLE RULES --- */
::-webkit-scrollbar { width: 8px; }
::-webkit-scrollbar-track { background: var(--bg-color); }
::-webkit-scrollbar-thumb { background: #2a3550; border-radius: 4px; }
::-webkit-scrollbar-thumb:hover { background: var(--accent-purple); }

/* --- LIQUID DRIFT CURSOR --- */
.cursor-dot {
  width: 6px; height: 6px;
  background: var(--accent-blue);
  position: fixed; top: 0; left: 0;
  border-radius: 50%; pointer-events: none; z-index: 9999;
}

.cursor-outline {
  width: 34px; height: 34px;
  border: 1px solid var(--accent-purple);
  position: fixed; top: 0; left: 0;
  border-radius: 50%; pointer-events: none; z-index: 9998;
  transition: width 0.3s ease, height 0.3s ease, background-color 0.3s ease, border-color 0.3s ease;
}

.cursor-hover {
  width: 50px; height: 50px;
  background-color: rgba(0, 180, 216, 0.1);
  border-color: rgba(0, 180, 216, 0.5);
  backdrop-filter: blur(2px);
}

/* --- PARALLAX AMBIENT BACKGROUNDS --- */
.bg-animation {
  position: fixed; top: 0; left: 0; width: 100vw; height: 100vh;
  z-index: -3; overflow: hidden; background: #03050a;
}
.orb {
  position: absolute; border-radius: 50%;
  filter: blur(120px); opacity: 0.5;
  animation: float 15s infinite alternate ease-in-out;
}
.orb-1 { width: 400px; height: 400px; background: #240046; top: -10%; left: 10%; animation-delay: 0s; }
.orb-2 { width: 500px; height: 500px; background: #0077b6; bottom: -20%; right: -10%; animation-delay: -5s; }
.orb-3 { width: 300px; height: 300px; background: #3c096c; top: 40%; left: 50%; animation-delay: -10s; }

@keyframes float {
  0% { transform: translate(0, 0) scale(1); }
  100% { transform: translate(30px, 50px) scale(1.1); }
}

.noise {
  position: fixed; top: 0; left: 0; width: 100%; height: 100%;
  background: url('data:image/svg+xml;utf8,%3Csvg viewBox="0 0 200 200" xmlns="http://www.w3.org/2000/svg"%3E%3Cfilter id="noiseFilter"%3E%3CfeTurbulence type="fractalNoise" baseFrequency="0.65" numOctaves="3" stitchTiles="stitch"/%3E%3C/filter%3E%3Crect width="100%25" height="100%25" filter="url(%23noiseFilter)"/%3E%3C/svg%3E');
  opacity: 0.04; z-index: -2; pointer-events: none;
}

/* --- TERMINAL BAR --- */
.terminal {
  position: fixed; bottom: 20px; left: 20px;
  background: rgba(5, 8, 15, 0.8);
  border: 1px solid var(--card-border);
  padding: 10px 15px; border-radius: 8px;
  font-family: 'Fira Code', monospace; font-size: 12px;
  color: #4ade80; display: flex; align-items: center; gap: 10px;
  z-index: 100; backdrop-filter: var(--glass-blur);
  box-shadow: 0 4px 20px rgba(0,0,0,0.5); max-width: 400px;
}
.term-icon { color: var(--text-muted); font-size: 14px; }

/* --- ARCHITECTURAL CONTAINER --- */
.container { max-width: 1000px; margin: 0 auto; padding: 0 20px 80px 20px; }

/* --- HERO COMPONENT --- */
.hero { text-align: center; padding: 100px 0 40px 0; }
.pfp-container { 
  position: relative; display: inline-block; margin-bottom: 25px; 
  will-change: transform; transition: transform 0.2s cubic-bezier(0.25, 1, 0.5, 1);
}
.pfp {
  width: 140px; aspect-ratio: 1/1; object-fit: cover;
  border-radius: 50%; position: relative; z-index: 2;
  border: 2px solid rgba(157, 78, 221, 0.3);
}
.pfp-glow {
  position: absolute; top: 50%; left: 50%; transform: translate(-50%, -50%);
  width: 150px; height: 150px; background: var(--accent-purple);
  filter: blur(30px); opacity: 0.4; z-index: 1; animation: pulse 3s infinite alternate;
}
@keyframes pulse { 0% { transform: translate(-50%, -50%) scale(1); opacity: 0.2; } 100% { transform: translate(-50%, -50%) scale(1.1); opacity: 0.5; } }

h1 { font-size: 2.8rem; font-weight: 600; letter-spacing: -1px; margin-bottom: 5px; }
.role { color: var(--accent-blue); font-size: 1.2rem; font-weight: 400; margin-bottom: 12px; }

/* --- HIGH-END SUB-HEADER VERSE MATRIX --- */
.header-verse-container {
  margin: 15px auto 25px auto;
  max-width: 600px;
  text-align: center;
}
.header-verse-container .verse-text {
  font-size: 1.15rem;
  font-style: italic;
  color: var(--text-main);
  font-weight: 300;
  letter-spacing: 0.3px;
  line-height: 1.5;
  margin-bottom: 4px;
}
.header-verse-container .verse-reference {
  font-family: 'Fira Code', monospace;
  font-size: 0.8rem;
  color: var(--accent-purple);
}

/* SOCIALS ELEMENTS */
.socials { display: flex; justify-content: center; gap: 20px; margin-top: 10px; }
.socials a {
  color: var(--text-muted); padding: 0; width: 45px; height: 45px;
  background: var(--card-bg); border: 1px solid var(--card-border);
  border-radius: 50%; display: flex; align-items: center; justify-content: center;
  transition: all 0.3s ease; backdrop-filter: var(--glass-blur); font-size: 18px;
}
.socials a:hover { color: #fff; border-color: var(--accent-purple); transform: translateY(-3px); box-shadow: 0 5px 15px rgba(157, 78, 221, 0.3); }

/* --- STATS LAYOUT --- */
.stats { display: flex; flex-wrap: wrap; justify-content: center; gap: 15px; margin-bottom: 60px; }
.stat-card {
  background: var(--card-bg); border: 1px solid var(--card-border);
  padding: 10px 20px; border-radius: 20px; display: flex; align-items: center; gap: 10px;
  font-family: 'Fira Code', monospace; font-size: 0.85rem; color: var(--accent-blue);
  backdrop-filter: var(--glass-blur); transition: 0.3s;
}
.stat-card:hover { background: rgba(0, 180, 216, 0.1); border-color: var(--accent-blue); }

/* --- STRUCTURE PANELS --- */
.section { margin-bottom: 50px; }
.section-header { display: flex; align-items: center; gap: 12px; margin-bottom: 20px; border-bottom: 1px solid var(--card-border); padding-bottom: 10px; }
.section-header h3 { font-size: 1.4rem; font-weight: 600; color: #fff; }
.section-header i { color: var(--accent-purple); font-size: 18px; }

.glass-panel, .glass-card {
  background: var(--card-bg); border: 1px solid var(--card-border);
  border-radius: 12px; backdrop-filter: var(--glass-blur); padding: 25px;
}

.text-block { color: var(--text-muted); font-size: 1rem; }
.code-style { font-family: 'Fira Code', monospace; font-size: 0.9rem; color: #cbd5e1; }
.highlight { color: #fff; font-style: italic; border-left: 2px solid var(--accent-blue); padding-left: 15px; display: block; margin-top: 10px; }

/* --- SYSTEM DIRECTIVE MOTIVATION FIELDS --- */
.directive-container { display: flex; flex-direction: column; gap: 12px; }
.directive-badge {
  align-self: flex-start; font-family: 'Fira Code', monospace; font-size: 0.7rem; font-weight: 600;
  padding: 4px 10px; background: rgba(0, 180, 216, 0.1); border: 1px solid rgba(0, 180, 216, 0.3);
  color: #22d3ee; border-radius: 4px; letter-spacing: 0.5px;
}
.quote-glow {
  color: #f1f5f9; line-height: 1.5; border-left: 2px solid var(--accent-purple); padding-left: 12px;
}

/* --- INTERACTIVE SUMMARY ACCORDIONS --- */
.interactive-dropdown { margin-bottom: 15px; padding: 0; overflow: hidden; transition: 0.3s; }
.interactive-dropdown summary {
  padding: 20px; list-style: none; font-weight: 600; font-size: 1.1rem;
  display: flex; align-items: center; user-select: none;
  background: rgba(255,255,255,0.02); transition: 0.3s;
}
.interactive-dropdown summary::-webkit-details-marker { display: none; }
.interactive-dropdown summary:hover { background: rgba(255,255,255,0.05); }

.arrow { display: inline-block; margin-right: 15px; font-size: 0.8rem; color: var(--accent-purple); transition: transform 0.3s ease; }
.date { margin-left: auto; font-size: 0.85rem; font-family: 'Fira Code', monospace; color: var(--text-muted); font-weight: 400; }

details[open] summary .arrow { transform: rotate(90deg); }
details[open] summary { border-bottom: 1px solid var(--card-border); }
details[open] .content { animation: slideDown 0.4s ease forwards; }

.content { padding: 20px; border-top: none; }
.markdown ul { padding-left: 20px; color: var(--text-muted); }
.markdown li { margin-bottom: 8px; }
.markdown li::marker { color: var(--accent-blue); }

.tags { margin-top: 15px; display: flex; gap: 10px; }
.tags span { font-size: 0.75rem; padding: 4px 10px; background: rgba(157, 78, 221, 0.15); border: 1px solid rgba(157, 78, 221, 0.3); border-radius: 20px; color: #d8b4fe; font-family: 'Fira Code', monospace; }

@keyframes slideDown { from { opacity: 0; transform: translateY(-10px); } to { opacity: 1; transform: translateY(0); } }

/* --- GRID CONFIGURATIONS --- */
.grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(300px, 1fr)); gap: 20px; }
.dual-grid { grid-template-columns: repeat(auto-fit, minmax(400px, 1fr)); }

.repo-card { text-decoration: none; display: block; transition: all 0.3s ease; }
.repo-card h4 { color: #fff; display: flex; align-items: center; gap: 10px; margin-bottom: 10px; }
.repo-card h4 i { color: var(--accent-blue); font-size: 18px; }
.repo-card p { color: var(--text-muted); font-size: 0.9rem; }
.repo-card:hover { transform: translateY(-5px); border-color: var(--accent-blue); background: rgba(0, 180, 216, 0.05); }

/* --- LINKS & STRING ICONS --- */
.links-grid { display: flex; flex-wrap: wrap; gap: 15px; }
.glass-btn {
  text-decoration: none; color: #fff; padding: 12px 25px; border-radius: 8px;
  background: var(--card-bg); border: 1px solid var(--card-border);
  backdrop-filter: var(--glass-blur); font-family: 'Fira Code', monospace; font-size: 0.9rem;
  transition: 0.3s; display: inline-flex; align-items: center; gap: 10px;
}
.glass-btn:hover { background: var(--accent-purple); border-color: #fff; box-shadow: 0 0 15px rgba(157, 78, 221, 0.5); }
.btn-icon { color: var(--accent-blue); font-size: 15px; }

footer { text-align: center; margin-top: 40px; padding: 25px; font-family: 'Fira Code', monospace; font-size: 0.85rem; color: var(--text-muted); }

/* --- HARDWARE REVEAL TRANSITIONS --- */
.reveal { opacity: 0; transform: translateY(30px); transition: 0.8s cubic-bezier(0.5, 0, 0, 1); }
.reveal.active { opacity: 1; transform: translateY(0); }

#matrix-bg {
  position: fixed; top: 0; left: 0; width: 100%; height: 100%; z-index: -3;
  background: radial-gradient(circle at center, #05060a, #03050a);
}
