/* ================= RESET & BASE ================= */
* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

/* ================= THEME VARIABLES ================= */
:root {
  --bg-color: #0b0f0e;
  --text-color: #e5e7eb;
  --accent: #22c55e;
  --accent-soft: #38bdf8;
  --card-bg: rgba(0, 0, 0, 0.65);
  --border-color: rgba(34, 197, 94, 0.3);
  --matrix-bg: rgba(0, 0, 0, 0.05);
  --matrix-color: #22c55e;
}

body.light {
  --bg-color: #f9fafb;
  --text-color: #111827;
  --accent: #16a34a;
  --accent-soft: #0284c7;
  --card-bg: rgba(255, 255, 255, 0.85);
  --border-color: rgba(22, 163, 74, 0.3);
  --matrix-bg: rgba(255, 255, 255, 0.08);
  --matrix-color: #16a34a;
}

/* ================= GLOBAL ================= */
body {
  background: var(--bg-color);
  color: var(--text-color);
  font-family: "Courier New", monospace;
  line-height: 1.7;
  transition: background 0.3s, color 0.3s;
}

/* ================= MATRIX GRID BACKGROUND ================= */
.matrix {
  background-image:
    linear-gradient(rgba(34,197,94,0.05) 1px, transparent 1px),
    linear-gradient(90deg, rgba(34,197,94,0.05) 1px, transparent 1px);
  background-size: 22px 22px;
}

/* ================= CARD SECTIONS ================= */
header,
section {
  background: var(--card-bg);
  border: 1px solid var(--border-color);
  border-radius: 14px;
  padding: 30px;
  margin: 30px auto;
  max-width: 1000px;
}

/* ================= PROFILE HEADER ================= */
.profile-header {
  text-align: center;
}

.avatar {
  width: 160px;
  height: 160px;
  border-radius: 50%;
  object-fit: cover;
  border: 4px solid var(--accent);
  box-shadow: 0 0 25px rgba(34,197,94,0.6);
  margin-bottom: 20px;
}

.profile-header h1 {
  font-size: 32px;
  margin-bottom: 6px;
}

.role {
  color: var(--accent-soft);
  font-weight: bold;
  margin-bottom: 12px;
}

.contact {
  font-size: 14px;
  color: #9ca3af;
}

.contact a {
  color: var(--accent);
  text-decoration: none;
}

/* ================= THEME TOGGLE ================= */
.theme-toggle {
  margin-top: 18px;
  padding: 8px 16px;
  border-radius: 999px;
  border: 1px solid var(--border-color);
  background: transparent;
  color: var(--text-color);
  cursor: pointer;
  font-weight: bold;
  transition: all 0.25s ease;
}

.theme-toggle:hover {
  background: var(--accent);
  color: #000;
}

/* ================= TERMINAL ================= */
.terminal {
  background: #000;
  border: 1px solid var(--border-color);
  border-radius: 14px;
  padding: 20px;
  box-shadow: 0 0 35px rgba(34,197,94,0.35);
}

body.light .terminal {
  background: #e5e7eb;
}

#terminal-output {
  min-height: 180px;
  white-space: pre-wrap;
  font-size: 14px;
  margin-bottom: 10px;
}

.input-line {
  display: flex;
  gap: 10px;
  align-items: center;
}

.prompt {
  color: var(--accent);
}

input {
  background: transparent;
  border: none;
  color: var(--accent);
  outline: none;
  width: 100%;
  font-family: inherit;
  font-size: 14px;
}

/* ================= PDF VIEWER ================= */
.pdf-viewer {
  width: 100%;
  height: 600px;
  border-radius: 12px;
  border: 1px solid var(--accent);
  margin-top: 15px;
}

/* ================= FOOTER ================= */
footer {
  text-align: center;
  padding: 30px 20px;
  color: #6b7280;
  font-size: 14px;
}

/* ================= RESPONSIVE ================= */
@media (max-width: 768px) {
  header,
  section {
    margin: 20px 15px;
    padding: 22px;
  }

  .avatar {
    width: 120px;
    height: 120px;
  }

  .profile-header h1 {
    font-size: 26px;
  }
}
