/* ============================================
   CSS VARIABLES
   ============================================ */
:root {
  --bg: #05060a;
  --panel: #0b1220;
  --accent: #00ff7f;
  --muted: #8a939b;
  --glass: rgba(255, 255, 255, 0.03);
  --glow: 0 6px 24px rgba(0, 255, 127, 0.06);
  --mono: 'SFMono-Regular', ui-monospace, 'Roboto Mono', 'Courier New', monospace;
  
  /* Responsive font sizes */
  --text-base: 16px;
  --text-sm: 15px;
  --text-xs: 14px;
}

/* ============================================
   RESET & BASE STYLES
   ============================================ */
* {
  box-sizing: border-box;
}

html,
body {
  height: 100%;
  margin: 0;
  font-family: Inter, system-ui, -apple-system, Segoe UI, Roboto, Arial;
  color: #cfe9d6;
  background: linear-gradient(180deg, var(--bg), #071018);
  font-size: var(--text-base);
}

h1 {
  margin: 0;
  font-size: 24px;
}

/* ============================================
   LAYOUT CONTAINERS
   ============================================ */
.wrap {
  min-height: 100vh;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 48px;
}

.card {
  width: 100%;
  max-width: 1100px;
  background: linear-gradient(180deg, rgba(255, 255, 255, 0.02), transparent);
  border-radius: 14px;
  padding: 28px;
  display: grid;
  grid-template-columns: 320px 1fr;
  gap: 22px;
  box-shadow: var(--glow);
  backdrop-filter: blur(6px);
  border: 1px solid rgba(0, 255, 127, 0.06);
}

/* ============================================
   LEFT SIDEBAR
   ============================================ */
.left {
  padding: 18px;
  background: linear-gradient(180deg, rgba(0, 255, 127, 0.02), transparent);
  border-radius: 10px;
  border: 1px solid rgba(255, 255, 255, 0.02);
}

/* Avatar */
.avatar {
  width: 120px;
  height: 120px;
  border-radius: 50%;
  overflow: hidden;
  box-shadow: 0 0 20px #00ff7f66;
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 12px;
  background: var(--panel);
}

.avatar img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.avatar:hover {
  box-shadow: 0 0 30px #00ff7faa;
}

/* Subtitle */
.sub {
  color: var(--muted);
  font-size: var(--text-sm);
  margin-top: 6px;
}

/* ============================================
   TERMINAL / TYPING EFFECT
   ============================================ */
.term {
  margin-top: 14px;
  background: var(--panel);
  padding: 14px;
  border-radius: 8px;
  font-family: var(--mono);
  font-size: var(--text-sm);
  color: var(--accent);
  line-height: 1.5;
  min-height: 140px;
}

.cursor {
  animation: blink 1s step-start infinite;
  margin-left: 2px;
}

.last-build {
  margin-top: 16px;
  background: #020408;
  padding: 14px;
  border-radius: 8px;
  border: 1px solid rgba(0, 255, 127, 0.03);
  font-family: var(--mono);
  font-size: var(--text-sm);
  color: var(--accent);
}

/* ============================================
   SKILLS SECTION
   ============================================ */
.skills {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-top: 12px;
}

.chip {
  background: var(--glass);
  padding: 8px 12px;
  border-radius: 6px;
  font-size: var(--text-sm);
  color: var(--muted);
  border: 1px solid rgba(255, 255, 255, 0.02);
}

/* ============================================
   SOCIAL LINKS
   ============================================ */
.socials {
  display: flex;
  gap: 12px;
  margin-top: 16px;
}

.socials a {
  color: #cfe9d6;
  font-size: 32px;
  transition: opacity 0.2s ease, transform 0.2s ease;
  padding: 8px;
}

.socials a:hover {
  opacity: 0.7;
  transform: scale(1.1);
}

/* ============================================
   BUTTONS & CONTROLS
   ============================================ */
.btn {
  background: transparent;
  border: 1px solid rgba(255, 255, 255, 0.06);
  padding: 12px 16px;
  border-radius: 8px;
  color: var(--accent);
  cursor: pointer;
  font-family: var(--mono);
  font-size: var(--text-sm);
  margin-right: 8px;
  margin-top: 8px;
  min-height: 44px;
}

.btn:hover {
  background: rgba(0, 255, 127, 0.05);
}

/* ============================================
   RIGHT MAIN CONTENT
   ============================================ */
.right {
  padding: 6px 2px 2px 2px;
}

.header-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 16px;
}

.neo {
  background: linear-gradient(90deg, #00ff7f22, #00a88f11);
  padding: 8px 10px;
  border-radius: 6px;
  color: var(--accent);
  font-family: var(--mono);
  font-size: var(--text-sm);
}

.tagline {
  font-family: var(--mono);
  font-size: var(--text-xs);
  color: var(--muted);
}

/* ============================================
   PROJECTS GRID
   ============================================ */
.grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 12px;
  margin-top: 12px;
}

.proj {
  background: linear-gradient(180deg, rgba(255, 255, 255, 0.01), transparent);
  padding: 16px;
  border-radius: 10px;
  border: 1px solid rgba(255, 255, 255, 0.02);
  min-height: 120px;
  position: relative;
  overflow: hidden;
  transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.proj h3, .reading-section h2 {
  margin: 0 0 8px 0;
  font-size: 17px;
}

.proj p {
  margin: 0;
  color: var(--muted);
  font-size: var(--text-sm);
  line-height: 1.5;
}

.proj:hover {
  transform: translateY(-4px);
  box-shadow: 0 8px 24px rgba(0, 255, 127, 0.2);
  cursor: pointer;
}

.proj a {
  color: inherit;
  text-decoration: none;
  display: block;
}

.proj a:hover {
  color: var(--accent);
}

a.proj {
  display: block;            /* makes it act like a card */
  color: inherit;            /* same text color */
  text-decoration: none;     /* remove underline */
}
a.proj:hover {
  color: inherit;  /* prevents title from turning accent unless you want that */
}

/* ============================================
   READING SECTION
   ============================================ */
.me-section {
  margin-top: 20px;
}

.me-section h2 {
  color: var(--accent);
  font-family: var(--mono);
  font-size: 18px;
  margin-bottom: 8px;
}

.me-list {
  list-style-type: none;
  padding: 0;
  margin: 0;
}

.me-list li {
  background: var(--panel);
  padding: 12px 16px;
  border-radius: 6px;
  margin-top: 10px;
  margin-bottom: 6px;
  border: 1px solid rgba(0, 255, 127, 0.05);
  font-size: var(--text-sm);
  cursor: pointer;
  transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.me-list li:hover {
  transform: translateY(-4px);
  box-shadow: 0 8px 16px rgba(0, 255, 127, 0.15);
}

.me-list li a {
  color: var(--accent);
  text-decoration: none;
  font-family: var(--mono);
  display: block;
}

.me-list li a:hover {
  color: #39FF14;
}

.me-list li a::before {
  content: "> ";
  margin-right: 4px;
}

/* ============================================
   ANIMATIONS
   ============================================ */
@keyframes blink {
  0%, 50%, 100% {
    opacity: 1;
  }
  25%, 75% {
    opacity: 0;
  }
}

/* ============================================
   FOOTER NOTE
   ============================================ */
.construction-note {
  margin-top: 24px;
  padding: 14px;
  background: var(--panel);
  border-radius: 8px;
  border: 1px solid rgba(0, 255, 127, 0.05);
  font-family: var(--mono);
  font-size: var(--text-sm);
  color: var(--muted);
  text-align: center;
}

.construction-note::before {
  content: "⚠️ ";
  margin-right: 6px;
}

/* ============================================
   RESPONSIVE DESIGN - MOBILE FIRST!
   ============================================ */
@media (max-width: 768px) {
  :root {
    --text-base: 17px;
    --text-sm: 16px;
    --text-xs: 15px;
  }

  .wrap {
    padding: 20px;
  }

  .card {
    grid-template-columns: 1fr;
    padding: 24px;
    gap: 24px;
  }

  .left {
    padding: 24px;
    text-align: center;
  }

  .avatar {
    margin: 0 auto 16px;
    width: 130px;
    height: 130px;
  }

  h1 {
    font-size: 26px;
  }

  .term {
    text-align: left;
    padding: 16px;
  }

  .skills {
    justify-content: center;
  }

  .socials {
    justify-content: center;
    gap: 16px;
  }

  .socials a {
    font-size: 36px;
  }

  .header-row {
    flex-direction: column;
    align-items: flex-start;
    gap: 12px;
  }

  .grid {
    grid-template-columns: 1fr;
    gap: 16px;
  }

  .btn {
    width: 100%;
    margin-right: 0;
    margin-bottom: 12px;
    padding: 16px;
    font-size: 16px;
  }

  .proj {
    padding: 20px;
  }

  .proj h3 {
    font-size: 19px;
  }

  .me-section h2 {
    font-size: 20px;
  }

  .me-list li {
    padding: 16px 20px;
  }
}

@media (max-width: 360px) {
  .wrap {
    padding: 16px;
  }

  .card {
    padding: 20px;
  }

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

  h1 {
    font-size: 24px;
  }
}