/* =============================================
   iamLudok Portfolio — style.css
   ============================================= */

/* ---- CSS Variables ---- */
:root {
  --bg:          #0a0a0a;
  --bg-2:        #111111;
  --bg-3:        #181818;
  --accent:      #00ff88;
  --accent-dim:  #00cc6a;
  --accent-glow: rgba(0, 255, 136, 0.12);
  --text:        #e0e0e0;
  --text-soft:   #888888;
  --text-muted:  #555555;
  --border:      #222222;
  --border-accent: rgba(0, 255, 136, 0.25);
  --font-mono:   'JetBrains Mono', 'Courier New', monospace;
  --font-body:   'Inter', system-ui, sans-serif;
  --nav-h:       60px;
  --radius:      8px;
  --transition:  0.2s ease;
}

/* ---- Reset ---- */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; }
body {
  background-color: var(--bg);
  color: var(--text);
  font-family: var(--font-body);
  font-size: 16px;
  line-height: 1.7;
  min-height: 100vh;
  -webkit-font-smoothing: antialiased;
}
a { color: inherit; text-decoration: none; }
button { cursor: pointer; font-family: inherit; border: none; background: none; }
img, svg { display: block; max-width: 100%; }

/* ---- Layout ---- */
.container {
  max-width: 960px;
  margin: 0 auto;
  padding: 0 24px;
}

/* =============================================
   NAVBAR
   ============================================= */
.navbar {
  position: fixed;
  top: 0; left: 0; right: 0;
  height: var(--nav-h);
  background: rgba(10, 10, 10, 0.92);
  backdrop-filter: blur(10px);
  border-bottom: 1px solid var(--border);
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0 32px;
  z-index: 100;
}

.navbar-brand {
  font-family: var(--font-mono);
  font-weight: 700;
  font-size: 1rem;
  display: flex;
  align-items: center;
  gap: 6px;
}
.brand-prompt { color: var(--accent); }
.brand-name   { color: var(--text); }

.navbar-tabs {
  display: flex;
  gap: 4px;
}

.tab-btn {
  font-family: var(--font-mono);
  font-size: 0.82rem;
  color: var(--text-soft);
  padding: 6px 14px;
  border-radius: var(--radius);
  position: relative;
  transition: color var(--transition), background var(--transition);
  letter-spacing: 0.03em;
}
.tab-btn::after {
  content: '';
  position: absolute;
  bottom: 0; left: 50%; right: 50%;
  height: 2px;
  background: var(--accent);
  transition: left var(--transition), right var(--transition);
  border-radius: 2px;
}
.tab-btn:hover { color: var(--text); background: var(--bg-3); }
.tab-btn.active {
  color: var(--accent);
  background: var(--accent-glow);
}
.tab-btn.active::after { left: 12px; right: 12px; }

/* Mobile hamburger */
.menu-toggle {
  display: none;
  flex-direction: column;
  gap: 5px;
  padding: 4px;
}
.menu-toggle span {
  display: block;
  width: 22px;
  height: 2px;
  background: var(--text);
  border-radius: 2px;
  transition: transform var(--transition), opacity var(--transition);
}
.menu-toggle.open span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
.menu-toggle.open span:nth-child(2) { opacity: 0; }
.menu-toggle.open span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }

/* =============================================
   SECTIONS
   ============================================= */
main { padding-top: var(--nav-h); }

.section {
  display: none;
  min-height: calc(100vh - var(--nav-h) - 48px);
  padding: 64px 0 80px;
  animation: fadeIn 0.3s ease;
}
.section.active { display: block; }

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

.section-title {
  font-family: var(--font-mono);
  font-size: 1.15rem;
  color: var(--text);
  margin-bottom: 28px;
  font-weight: 500;
}
.section-title.page-title { margin-bottom: 36px; font-size: 1.25rem; }
.accent { color: var(--accent); margin-right: 6px; }

/* =============================================
   SECTION: ME — Hero
   ============================================= */
.hero {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 40px;
  padding: 48px 0 56px;
  border-bottom: 1px solid var(--border);
  margin-bottom: 56px;
}

.hero-text { flex: 1; }

.terminal-line {
  display: flex;
  align-items: center;
  gap: 10px;
  font-family: var(--font-mono);
  font-size: clamp(1.4rem, 4vw, 2.2rem);
  font-weight: 700;
  margin-bottom: 16px;
}
.prompt {
  color: var(--accent);
  user-select: none;
}
.typing-text { color: var(--text); }
.cursor {
  color: var(--accent);
  animation: blink 1s step-end infinite;
  font-weight: 300;
}
@keyframes blink {
  0%, 100% { opacity: 1; }
  50%       { opacity: 0; }
}

.hero-sub {
  font-family: var(--font-mono);
  font-size: 0.9rem;
  color: var(--text-soft);
  letter-spacing: 0.04em;
}

.hero-avatar {
  flex-shrink: 0;
}
.avatar-placeholder {
  width: 120px;
  height: 120px;
  border: 2px solid var(--border-accent);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  background: var(--bg-2);
  overflow: hidden;
  box-shadow: 0 0 24px var(--accent-glow);
}
.avatar-placeholder svg { width: 80px; height: 80px; }
.avatar-placeholder img { width: 100%; height: 100%; object-fit: cover; border-radius: 50%; }

/* =============================================
   SECTION: ME — About
   ============================================= */
.about-card {
  margin-bottom: 56px;
}
.about-text {
  color: var(--text-soft);
  font-size: 0.97rem;
  max-width: 680px;
  line-height: 1.8;
}
.about-text strong { color: var(--text); font-weight: 500; }

/* =============================================
   SECTION: ME — Interests
   ============================================= */
.interests-section { margin-bottom: 56px; }

.interests-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(100px, 1fr));
  gap: 16px;
}

.interest-card {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 10px;
  padding: 20px 12px 16px;
  background: var(--bg-2);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  font-family: var(--font-mono);
  font-size: 0.75rem;
  color: var(--text-soft);
  transition: border-color var(--transition), box-shadow var(--transition), color var(--transition);
  cursor: default;
}
.interest-card:hover {
  border-color: var(--border-accent);
  box-shadow: 0 0 16px var(--accent-glow);
  color: var(--text);
}
.interest-card--link {
  cursor: pointer;
  text-decoration: none;
}
.interest-icon {
  width: 40px;
  height: 40px;
  display: flex;
  align-items: center;
  justify-content: center;
}
.interest-icon svg { width: 36px; height: 36px; }

/* =============================================
   SECTION: ME — Skills
   ============================================= */
.skills-section { margin-bottom: 16px; }

.skills-grid {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
}

.skill-badge {
  font-family: var(--font-mono);
  font-size: 0.78rem;
  color: var(--accent);
  border: 1px solid var(--border-accent);
  border-radius: 4px;
  padding: 4px 12px;
  background: var(--accent-glow);
  letter-spacing: 0.03em;
  transition: background var(--transition), box-shadow var(--transition);
}
.skill-badge:hover {
  background: rgba(0, 255, 136, 0.2);
  box-shadow: 0 0 10px var(--accent-glow);
}
.skill-badge--hobby {
  color: #7ed6df;
  border-color: rgba(126, 214, 223, 0.3);
  background: rgba(126, 214, 223, 0.06);
}
.skill-badge--hobby:hover {
  background: rgba(126, 214, 223, 0.15);
  box-shadow: 0 0 10px rgba(126, 214, 223, 0.15);
}

.skills-categories {
  display: flex;
  flex-direction: column;
  gap: 20px;
}
.skill-category {
  display: flex;
  flex-direction: column;
  gap: 10px;
}
.skill-category-label {
  font-family: var(--font-mono);
  font-size: 0.7rem;
  color: var(--text-muted);
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.skill-subcategories {
  display: flex;
  flex-direction: column;
  gap: 12px;
}
.skill-subcategory {
  display: flex;
  flex-direction: column;
  gap: 8px;
}
.skill-subcategory-label {
  font-family: var(--font-mono);
  font-size: 0.65rem;
  color: var(--text-soft);
  letter-spacing: 0.06em;
  text-transform: uppercase;
  padding-left: 8px;
  border-left: 2px solid var(--border-accent);
}

/* =============================================
   SECTION: ME — Views
   ============================================= */
.views-section { margin-top: 56px; }

.views-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
  gap: 16px;
}

.view-card {
  background: var(--bg-2);
  border: 1px solid var(--border);
  border-left: 3px solid var(--accent);
  border-radius: var(--radius);
  padding: 20px 24px;
  display: flex;
  flex-direction: column;
  gap: 12px;
  transition: box-shadow var(--transition);
}
.view-card:hover {
  box-shadow: 0 0 20px var(--accent-glow);
}

.view-tag {
  font-family: var(--font-mono);
  font-size: 0.72rem;
  color: var(--accent);
  letter-spacing: 0.06em;
  text-transform: uppercase;
}

.view-card p {
  font-size: 0.875rem;
  color: var(--text-soft);
  line-height: 1.8;
}

/* =============================================
   SECTION: PROJECTS
   ============================================= */
.filter-bar {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-bottom: 36px;
}

.filter-btn {
  font-family: var(--font-mono);
  font-size: 0.78rem;
  color: var(--text-soft);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 6px 14px;
  transition: all var(--transition);
  letter-spacing: 0.03em;
}
.filter-btn:hover { color: var(--text); border-color: var(--text-muted); }
.filter-btn.active {
  color: var(--accent);
  border-color: var(--border-accent);
  background: var(--accent-glow);
}

.projects-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
  gap: 20px;
}

.project-card {
  background: var(--bg-2);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 24px;
  display: flex;
  flex-direction: column;
  gap: 14px;
  transition: border-color var(--transition), box-shadow var(--transition), transform var(--transition);
}
.project-card:hover {
  border-color: var(--border-accent);
  box-shadow: 0 0 20px var(--accent-glow);
  transform: translateY(-2px);
}
.project-card.hidden { display: none; }

.project-header {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 8px;
}

.project-title {
  font-family: var(--font-mono);
  font-size: 0.95rem;
  font-weight: 500;
  color: var(--text);
}

.ctf-badge {
  font-family: var(--font-mono);
  font-size: 0.65rem;
  color: var(--accent);
  border: 1px solid var(--border-accent);
  border-radius: 4px;
  padding: 2px 8px;
  white-space: nowrap;
  background: var(--accent-glow);
  flex-shrink: 0;
}
.hackathon-badge {
  color: #ff9f43;
  border-color: rgba(255, 159, 67, 0.3);
  background: rgba(255, 159, 67, 0.08);
}
.wip-badge {
  color: #a29bfe;
  border-color: rgba(162, 155, 254, 0.3);
  background: rgba(162, 155, 254, 0.08);
}

.project-desc {
  color: var(--text-soft);
  font-size: 0.875rem;
  line-height: 1.7;
  flex: 1;
}

.project-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
}
.tag {
  font-family: var(--font-mono);
  font-size: 0.7rem;
  color: var(--text-muted);
  border: 1px solid var(--border);
  border-radius: 3px;
  padding: 2px 8px;
}

.project-links {
  display: flex;
  gap: 12px;
  flex-wrap: wrap;
}
.project-link {
  font-family: var(--font-mono);
  font-size: 0.78rem;
  color: var(--text-soft);
  display: flex;
  align-items: center;
  gap: 6px;
  transition: color var(--transition);
}
.project-link:hover { color: var(--accent); }
.project-link--demo { color: var(--text-muted); }
.project-link--demo:hover { color: #7ed6df; }

/* =============================================
   SECTION: STUDIES & EXPERIENCE
   ============================================= */
.timeline-layout {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 48px;
}

.timeline-heading {
  font-family: var(--font-mono);
  font-size: 0.9rem;
  font-weight: 500;
  color: var(--text-soft);
  display: flex;
  align-items: center;
  gap: 8px;
  margin-bottom: 28px;
  padding-bottom: 12px;
  border-bottom: 1px solid var(--border);
}

.timeline {
  display: flex;
  flex-direction: column;
  gap: 0;
  position: relative;
  padding-left: 20px;
}
.timeline::before {
  content: '';
  position: absolute;
  left: 4px;
  top: 8px;
  bottom: 0;
  width: 2px;
  background: linear-gradient(to bottom, var(--accent), transparent);
  opacity: 0.3;
}

.timeline-item {
  position: relative;
  padding: 0 0 32px 20px;
}
.timeline-item:last-child { padding-bottom: 0; }

.timeline-dot {
  position: absolute;
  left: -20px;
  top: 6px;
  width: 10px;
  height: 10px;
  border-radius: 50%;
  border: 2px solid var(--accent);
  background: var(--bg);
  box-shadow: 0 0 8px var(--accent-glow);
}

.timeline-date {
  font-family: var(--font-mono);
  font-size: 0.72rem;
  color: var(--accent);
  opacity: 0.8;
  letter-spacing: 0.04em;
}
.timeline-title {
  font-family: var(--font-mono);
  font-size: 0.92rem;
  font-weight: 500;
  color: var(--text);
  margin-top: 4px;
  margin-bottom: 2px;
}
.timeline-sub {
  font-size: 0.8rem;
  color: var(--text-soft);
  display: block;
  margin-bottom: 8px;
}
.timeline-desc {
  font-size: 0.85rem;
  color: var(--text-muted);
  line-height: 1.7;
}

/* =============================================
   SECTION: LINKS
   ============================================= */
.links-container { max-width: 600px; }

.links-intro {
  color: var(--text-soft);
  font-size: 0.95rem;
  margin-bottom: 36px;
  font-family: var(--font-mono);
}

.links-grid {
  display: flex;
  flex-direction: column;
  gap: 14px;
}

.social-card {
  display: flex;
  align-items: center;
  gap: 20px;
  padding: 20px 24px;
  background: var(--bg-2);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  transition: border-color var(--transition), box-shadow var(--transition), transform var(--transition);
}
.social-card:hover {
  border-color: var(--border-accent);
  box-shadow: 0 0 20px var(--accent-glow);
  transform: translateX(4px);
}

.social-icon {
  width: 44px;
  height: 44px;
  border-radius: 8px;
  background: var(--bg-3);
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  color: var(--accent);
  transition: background var(--transition);
}
.social-card:hover .social-icon { background: var(--accent-glow); }
.social-icon svg { width: 22px; height: 22px; }

/* Different accent colors per card */
#linkedin-card:hover  { border-color: rgba(10, 102, 194, 0.4); box-shadow: 0 0 20px rgba(10, 102, 194, 0.1); }
#linkedin-card .social-icon { color: #0a66c2; }
#github-card .social-icon   { color: var(--text); }
#linktree-card .social-icon { color: #43e660; }
#email-card .social-icon    { color: var(--accent); }

.social-info {
  display: flex;
  flex-direction: column;
  gap: 2px;
  flex: 1;
}
.social-name {
  font-family: var(--font-mono);
  font-size: 0.95rem;
  font-weight: 500;
  color: var(--text);
}
.social-handle {
  font-family: var(--font-mono);
  font-size: 0.78rem;
  color: var(--text-soft);
}

.social-arrow {
  color: var(--text-muted);
  flex-shrink: 0;
  transition: color var(--transition), transform var(--transition);
}
.social-card:hover .social-arrow {
  color: var(--accent);
  transform: translate(2px, -2px);
}

/* =============================================
   HERO LOCATION
   ============================================= */
.hero-location {
  font-family: var(--font-mono);
  font-size: 0.78rem;
  color: var(--text-muted);
  margin-top: 10px;
  display: flex;
  align-items: center;
  gap: 8px;
  letter-spacing: 0.03em;
}
.location-dot {
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: var(--accent);
  opacity: 0.6;
  flex-shrink: 0;
}

/* =============================================
   SECTION: ME — Languages
   ============================================= */
.languages-section {
  margin-bottom: 56px;
}

.languages-list {
  display: flex;
  flex-direction: column;
  gap: 16px;
  max-width: 480px;
}

.lang-item {
  display: flex;
  flex-direction: column;
  gap: 6px;
}

.lang-info {
  display: flex;
  justify-content: space-between;
  align-items: baseline;
}

.lang-name {
  font-family: var(--font-mono);
  font-size: 0.85rem;
  color: var(--text);
}

.lang-level {
  font-family: var(--font-mono);
  font-size: 0.7rem;
  color: var(--accent);
  opacity: 0.8;
  letter-spacing: 0.06em;
  text-transform: uppercase;
}

.lang-bar {
  height: 4px;
  background: var(--bg-3);
  border-radius: 2px;
  overflow: hidden;
  border: 1px solid var(--border);
}

.lang-fill {
  height: 100%;
  background: linear-gradient(to right, var(--accent-dim), var(--accent));
  border-radius: 2px;
  transition: width 1s ease;
}

/* =============================================
   EASTER EGG: PARANOID MODE
   ============================================= */
#matrix-canvas {
  position: fixed;
  top: 0; left: 0;
  width: 100%; height: 100%;
  z-index: 9000;
  pointer-events: none;
}

.paranoid-overlay {
  position: fixed;
  inset: 0;
  z-index: 9001;
  background: rgba(30, 0, 0, 0.97);
  display: flex;
  align-items: center;
  justify-content: center;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.5s ease;
}
.paranoid-overlay.active {
  opacity: 1;
  pointer-events: all;
}

.paranoid-msg {
  font-family: var(--font-mono);
  font-size: clamp(2rem, 6vw, 4rem);
  font-weight: 700;
  color: #cc0000;
  text-align: center;
  line-height: 1.3;
  letter-spacing: 0.04em;
  text-shadow: 0 0 40px rgba(204, 0, 0, 0.5);
}
.paranoid-accent {
  color: #ff2222;
  text-shadow: 0 0 30px rgba(255, 34, 34, 0.7);
}

/* =============================================
   EASTER EGG: TRACKING MODAL
   ============================================= */
.tracking-overlay {
  position: fixed;
  inset: 0;
  z-index: 9500;
  background: rgba(0, 0, 0, 0.75);
  display: flex;
  align-items: center;
  justify-content: center;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.3s ease;
  backdrop-filter: blur(4px);
}
.tracking-overlay.active {
  opacity: 1;
  pointer-events: all;
}

.tracking-terminal {
  background: var(--bg-2);
  border: 1px solid #cc0000;
  border-radius: var(--radius);
  width: min(520px, 92vw);
  box-shadow: 0 0 40px rgba(204, 0, 0, 0.25);
  overflow: hidden;
  animation: slideUp 0.3s ease;
}

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

.tracking-bar {
  background: var(--bg-3);
  border-bottom: 1px solid var(--border);
  padding: 10px 14px;
  display: flex;
  align-items: center;
  gap: 6px;
}
.t-dot {
  width: 10px; height: 10px;
  border-radius: 50%;
  background: #cc0000;
  opacity: 0.7;
}
.tracking-title {
  font-family: var(--font-mono);
  font-size: 0.72rem;
  color: var(--text-muted);
  flex: 1;
  text-align: center;
}
.tracking-close {
  font-size: 1.1rem;
  color: var(--text-muted);
  line-height: 1;
  padding: 0 2px;
  transition: color var(--transition);
}
.tracking-close:hover { color: var(--text); }

.tracking-body {
  font-family: var(--font-mono);
  font-size: 0.8rem;
  color: var(--text-soft);
  padding: 20px 24px 24px;
  line-height: 2;
  white-space: pre-wrap;
  word-break: break-all;
  min-height: 120px;
}

/* =============================================
   FOOTER
   ============================================= */
.footer {
  border-top: 1px solid var(--border);
  padding: 16px 32px;
  font-family: var(--font-mono);
  font-size: 0.75rem;
  color: var(--text-muted);
  display: flex;
  align-items: center;
  gap: 10px;
}
.footer-prompt { color: var(--accent); }
.footer-sep    { color: var(--text-muted); opacity: 0.4; }

/* =============================================
   RESPONSIVE
   ============================================= */
@media (max-width: 768px) {

  .navbar { padding: 0 20px; }
  .navbar-tabs { display: none; flex-direction: column; position: absolute; top: var(--nav-h); left: 0; right: 0; background: var(--bg-2); border-bottom: 1px solid var(--border); padding: 12px; gap: 4px; }
  .navbar-tabs.open { display: flex; }
  .menu-toggle { display: flex; }

  .hero { flex-direction: column-reverse; gap: 28px; padding: 36px 0 40px; }
  .avatar-placeholder { width: 90px; height: 90px; }

  .timeline-layout { grid-template-columns: 1fr; gap: 40px; }

  .interests-grid { grid-template-columns: repeat(auto-fill, minmax(80px, 1fr)); }

  .section { padding: 44px 0 60px; }

  .footer { flex-wrap: wrap; gap: 6px; }
}

@media (max-width: 480px) {
  .container { padding: 0 16px; }
  .tab-btn { font-size: 0.78rem; padding: 8px 12px; }
  .projects-grid { grid-template-columns: 1fr; }
  .terminal-line { font-size: 1.3rem; }
}
