/* ── CSS VARIABLES ── */
:root {
  --jungle:    #122B1D;
  --hooker:    #537E72;
  --pistachio: #9CC97F;
  --lightgray: #CDDECB;
  --pewter:    #90B7BF;
  --white:     #f0f7f0;
}

/* ── RESET & BASE ── */
*, *::before, *::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

body {
  background-color: var(--jungle);
  background-image:
    radial-gradient(ellipse at 20% 20%, rgba(83,126,114,0.18) 0%, transparent 60%),
    radial-gradient(ellipse at 80% 80%, rgba(144,183,191,0.12) 0%, transparent 50%),
    url("data:image/svg+xml,%3Csvg width='60' height='60' xmlns='http://www.w3.org/2000/svg'%3E%3Ccircle cx='1' cy='1' r='1' fill='%23537E72' fill-opacity='0.08'/%3E%3C/svg%3E");
  min-height: 100vh;
  font-family: 'Nunito', sans-serif;
  color: var(--lightgray);
  padding: 24px 16px 48px;
  display: flex;
  flex-direction: column;
  align-items: center;
}

/* scanline overlay */
body::after {
  content: '';
  position: fixed;
  inset: 0;
  background: repeating-linear-gradient(
    to bottom,
    transparent 0px,
    transparent 3px,
    rgba(0,0,0,0.04) 3px,
    rgba(0,0,0,0.04) 4px
  );
  pointer-events: none;
  z-index: 9999;
}

/* ── ANIMATIONS ── */
@keyframes fadeUp {
  from { opacity: 0; transform: translateY(18px); }
  to   { opacity: 1; transform: translateY(0); }
}

@keyframes glow {
  0%, 100% { text-shadow: 0 0 10px rgba(156,201,127,0.3); }
  50%       { text-shadow: 0 0 30px rgba(156,201,127,0.7), 0 0 60px rgba(156,201,127,0.3); }
}

/* ── WINDOW CHROME ── */
.window {
  background: linear-gradient(160deg, rgba(83,126,114,0.22) 0%, rgba(18,43,29,0.85) 100%);
  border: 1.5px solid var(--hooker);
  border-radius: 14px;
  box-shadow:
    0 0 0 1px rgba(156,201,127,0.15),
    0 8px 40px rgba(0,0,0,0.55),
    inset 0 1px 0 rgba(156,201,127,0.18);
  max-width: 780px;
  width: 100%;
  overflow: hidden;
  animation: fadeUp 0.6s ease both;
}

/* title bar */
.titlebar {
  background: linear-gradient(90deg, var(--hooker) 0%, var(--jungle) 100%);
  padding: 8px 14px;
  display: flex;
  align-items: center;
  gap: 10px;
  border-bottom: 1.5px solid var(--hooker);
}

.titlebar-dots {
  display: flex;
  gap: 6px;
}

.titlebar-dots span {
  width: 11px;
  height: 11px;
  border-radius: 50%;
  display: block;
  border: 1.5px solid rgba(0,0,0,0.3);
}

.titlebar-dots span:nth-child(1) { background: #e05f5f; }
.titlebar-dots span:nth-child(2) { background: #e8b84b; }
.titlebar-dots span:nth-child(3) { background: var(--pistachio); }

.titlebar-text {
  font-family: 'VT323', monospace;
  font-size: 18px;
  color: var(--lightgray);
  letter-spacing: 2px;
  flex: 1;
  text-align: center;
}

/* ── NAV TABS ── */
.nav {
  background: rgba(18,43,29,0.6);
  padding: 10px 14px 0;
  display: flex;
  gap: 6px;
  border-bottom: 2px solid var(--hooker);
}

.nav-btn {
  font-family: 'Share Tech Mono', monospace;
  font-size: 12px;
  letter-spacing: 1px;
  text-transform: uppercase;
  padding: 6px 16px;
  border-radius: 8px 8px 0 0;
  border: 1.5px solid var(--hooker);
  border-bottom: none;
  background: rgba(83,126,114,0.15);
  color: var(--pistachio);
  cursor: pointer;
  transition: background 0.2s, color 0.2s;
}

.nav-btn:hover,
.nav-btn.active {
  background: linear-gradient(180deg, var(--hooker) 0%, rgba(83,126,114,0.4) 100%);
  color: var(--white);
}

/* breadcrumb */
.breadcrumb {
  font-family: 'Share Tech Mono', monospace;
  font-size: 11px;
  color: var(--pistachio);
  background: rgba(18,43,29,0.7);
  padding: 6px 16px;
  border-bottom: 1px solid rgba(83,126,114,0.3);
  letter-spacing: 1.5px;
}

/* ── WINDOW BODY ── */
.window-body {
  padding: 20px 20px 24px;
}

/* ── SECTIONS ── */
.section {
  display: none;
  animation: fadeUp 0.4s ease both;
}

.section.active {
  display: block;
}

/* ── SHARED PANEL ── */
.panel {
  background: rgba(18,43,29,0.6);
  border: 1px solid rgba(83,126,114,0.45);
  border-radius: 10px;
  padding: 16px;
  box-shadow: inset 0 1px 0 rgba(156,201,127,0.08);
}

.panel-title {
  font-family: 'Share Tech Mono', monospace;
  font-size: 11px;
  letter-spacing: 2px;
  text-transform: uppercase;
  color: var(--pistachio);
  margin-bottom: 10px;
  display: flex;
  align-items: center;
  gap: 6px;
}

.panel-title::before {
  content: '';
  display: inline-block;
  width: 8px;
  height: 8px;
  border-radius: 2px;
  background: var(--pistachio);
}

/* ── ABOUT SECTION ── */
.about-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 16px;
}

.name-block h1 {
  font-family: 'VT323', monospace;
  font-size: 48px;
  color: var(--pistachio);
  line-height: 1;
  animation: glow 3s ease-in-out infinite;
}

.name-block .sub {
  font-family: 'Share Tech Mono', monospace;
  font-size: 12px;
  color: var(--pewter);
  letter-spacing: 2px;
  margin-top: 4px;
}

.name-block .bio {
  margin-top: 12px;
  font-size: 13px;
  line-height: 1.7;
  color: var(--lightgray);
}

.stat-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 8px;
}

.stat-item {
  background: rgba(83,126,114,0.15);
  border: 1px solid rgba(83,126,114,0.3);
  border-radius: 7px;
  padding: 10px;
  font-size: 12px;
}

.stat-item.span-2 {
  grid-column: span 2;
}

.stat-item .label {
  font-family: 'Share Tech Mono', monospace;
  font-size: 10px;
  color: var(--pewter);
  letter-spacing: 1.5px;
  text-transform: uppercase;
}

.stat-item .value {
  font-weight: 700;
  color: var(--pistachio);
  margin-top: 3px;
  font-size: 13px;
}

/* ── SKILLS SECTION ── */
.skills-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 14px;
}

.skill-panel .panel-title {
  margin-bottom: 12px;
}

.tag-list {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
}

.tag {
  font-family: 'Share Tech Mono', monospace;
  font-size: 11px;
  padding: 4px 10px;
  border-radius: 20px;
  border: 1px solid;
  letter-spacing: 0.5px;
}

.tag.green {
  border-color: var(--pistachio);
  color: var(--pistachio);
  background: rgba(156,201,127,0.08);
}

.tag.blue {
  border-color: var(--pewter);
  color: var(--pewter);
  background: rgba(144,183,191,0.08);
}

.tag.teal {
  border-color: var(--hooker);
  color: var(--lightgray);
  background: rgba(83,126,114,0.2);
}

/* ── PROJECTS SECTION ── */
.projects-list {
  display: flex;
  flex-direction: column;
  gap: 14px;
}

.project-card {
  background: rgba(18,43,29,0.6);
  border: 1px solid rgba(83,126,114,0.4);
  border-radius: 10px;
  padding: 16px;
  display: grid;
  grid-template-columns: auto 1fr;
  gap: 14px;
  align-items: start;
  transition: border-color 0.2s, box-shadow 0.2s;
  cursor: default;
}

.project-card:hover {
  border-color: var(--pistachio);
  box-shadow: 0 0 18px rgba(156,201,127,0.12);
}

.project-icon {
  width: 42px;
  height: 42px;
  border-radius: 8px;
  background: linear-gradient(135deg, var(--hooker), var(--jungle));
  border: 1px solid var(--hooker);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 20px;
  flex-shrink: 0;
}

.project-content h3 {
  font-size: 14px;
  font-weight: 800;
  color: var(--pistachio);
  margin-bottom: 5px;
}

.project-content p {
  font-size: 12.5px;
  line-height: 1.65;
  color: var(--lightgray);
  opacity: 0.9;
}

.project-tags {
  margin-top: 8px;
  display: flex;
  flex-wrap: wrap;
  gap: 5px;
}

/* ── FOOTER ── */
.window-footer {
  background: rgba(18,43,29,0.7);
  border-top: 1.5px solid var(--hooker);
  padding: 8px 16px;
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.window-footer .dots {
  display: flex;
  gap: 6px;
}

.window-footer .dots span {
  width: 10px;
  height: 10px;
  border-radius: 50%;
  border: 1.5px solid var(--hooker);
  background: rgba(83,126,114,0.3);
}

.window-footer .dots span:nth-child(2) {
  background: rgba(144,183,191,0.4);
}

.footer-credit {
  font-family: 'Share Tech Mono', monospace;
  font-size: 10px;
  color: var(--hooker);
  letter-spacing: 1px;
}

/* ── SECTION DIVIDER ── */
.section-divider {
  display: flex;
  align-items: center;
  gap: 12px;
  margin: 22px 0 14px;
}

.section-divider::before,
.section-divider::after {
  content: '';
  flex: 1;
  height: 1px;
  background: rgba(83,126,114,0.35);
}

.section-divider span {
  font-family: 'Share Tech Mono', monospace;
  font-size: 11px;
  color: var(--hooker);
  letter-spacing: 2px;
  white-space: nowrap;
}

/* ── GITHUB LINK ── */
.gh-link {
  font-family: 'Share Tech Mono', monospace;
  font-size: 10px;
  color: var(--pewter);
  text-decoration: none;
  border: 1px solid rgba(144,183,191,0.3);
  border-radius: 4px;
  padding: 2px 6px;
  margin-left: 8px;
  letter-spacing: 1px;
  vertical-align: middle;
  transition: border-color 0.2s, color 0.2s;
}

.gh-link:hover {
  border-color: var(--pewter);
  color: var(--white);
}

/* ── RESPONSIVE ── */
@media (max-width: 600px) {
  .about-grid {
    grid-template-columns: 1fr;
  }

  .skills-grid {
    grid-template-columns: 1fr 1fr;
  }
}
