/* --- Dark Forest / Vivid Green Palette --- */
:root {
  --bg: #080d09;
  --paper: #0e1510;
  --primary: #4ecf85;
  --secondary: #2db872;
  --accent: #163322;
  --text: #eaf6ee;
  --muted: #85b59a;
  --tag-bg: rgba(78, 207, 133, 0.1);
  --tag-border: rgba(78, 207, 133, 0.32);
}

/* --- Reset --- */
* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  background: radial-gradient(circle at top, #131f16, var(--bg));
  background-attachment: fixed;
  color: var(--text);
  font-family: "Atkinson Hyperlegible", system-ui, sans-serif;
  line-height: 1.8;
}

/* --- Accent Bar --- */
.accent-bar {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  height: 3px;
  background: linear-gradient(90deg, var(--secondary) 0%, var(--primary) 50%, var(--secondary) 100%);
  z-index: 100;
}

/* --- Layout --- */
.container {
  max-width: 820px;
  margin: 0 auto;
  padding: 4rem 2rem 4rem;
  background: linear-gradient(180deg, var(--paper), #0b1009);
  box-shadow:
    0 0 0 1px rgba(255, 255, 255, 0.03),
    0 30px 60px rgba(0, 0, 0, 0.6);
  min-height: 100vh;
}

/* --- Header --- */
.header {
  text-align: center;
  padding-bottom: 2.5rem;
  border-bottom: 1px solid var(--accent);
  animation: fadeUp 0.7s cubic-bezier(0.22, 1, 0.36, 1) both;
}

h1 {
  font-family: "Georgia", "Times New Roman", serif;
  font-size: 2.8rem;
  margin: 0;
  letter-spacing: 0.08em;
  color: var(--primary);
}

.subtitle {
  margin-top: 0.75rem;
  font-style: italic;
  color: var(--muted);
  letter-spacing: 0.04em;
}

/* --- Sections --- */
section {
  margin-top: 3rem;
}

h2 {
  font-family: "Georgia", "Times New Roman", serif;
  font-size: 1.6rem;
  margin-bottom: 1.2rem;
  color: var(--primary);
  border-left: 6px solid var(--secondary);
  padding-left: 0.75rem;
}

/* --- Tech Tags --- */
.tech-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 0.4rem;
  margin-bottom: 0.85rem;
}

.tag {
  font-size: 0.72rem;
  padding: 0.18rem 0.55rem;
  border-radius: 4px;
  background: var(--tag-bg);
  border: 1px solid var(--tag-border);
  color: var(--primary);
  font-family: "Courier New", "Courier", monospace;
  letter-spacing: 0.04em;
}

/* --- Skills --- */
.skills-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1.5rem;
}

.skill-group {
  display: flex;
  flex-direction: column;
  gap: 0.6rem;
}

.skill-label {
  font-size: 0.8rem;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  color: var(--muted);
}

/* --- Projects --- */
.projects {
  list-style: none;
  padding: 0;
}

.project-card {
  padding: 1.6rem;
  margin-bottom: 1.5rem;
  background: linear-gradient(145deg, #131c15, #0c1009);
  border-radius: 10px;
  border: 1px solid rgba(255, 255, 255, 0.05);
  transition: transform 0.22s cubic-bezier(0.22, 1, 0.36, 1),
              border-color 0.22s ease,
              box-shadow 0.22s ease;
}

.project-card:hover {
  transform: translateY(-4px);
  border-color: rgba(78, 207, 133, 0.28);
  box-shadow: 0 12px 32px rgba(0, 0, 0, 0.5),
              0 0 0 1px rgba(78, 207, 133, 0.1);
}

.projects h3 {
  font-family: "Georgia", "Times New Roman", serif;
  margin-top: 0;
  margin-bottom: 0.6rem;
  font-size: 1.3rem;
  color: var(--primary);
}

.project-desc {
  margin: 0 0 0.9rem 0;
  color: var(--text);
}

.project-links {
  display: flex;
  flex-wrap: wrap;
  gap: 1.2rem;
}

/* --- Contact --- */
.contact {
  list-style: none;
  padding: 0;
}

.contact li {
  margin-bottom: 0.75rem;
}

.contact-link {
  display: inline-flex;
  align-items: center;
  gap: 0.6rem;
}

.contact-link svg {
  flex-shrink: 0;
  opacity: 0.7;
  transition: opacity 0.15s ease;
}

.contact-link:hover svg {
  opacity: 1;
}

/* --- Links --- */
a {
  color: var(--primary);
  text-decoration: none;
  border-bottom: 1px solid transparent;
  transition: border-color 0.15s ease;
}

a:hover {
  border-bottom: 1px solid var(--primary);
}

/* --- Footer --- */
.footer {
  margin-top: 4rem;
  text-align: center;
  font-size: 0.9rem;
  color: var(--muted);
}

/* --- Animations --- */
@keyframes fadeUp {
  from {
    opacity: 0;
    transform: translateY(20px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

.fade-in {
  opacity: 0;
  transform: translateY(20px);
  transition: opacity 0.6s cubic-bezier(0.22, 1, 0.36, 1),
              transform 0.6s cubic-bezier(0.22, 1, 0.36, 1);
}

.fade-in.visible {
  opacity: 1;
  transform: translateY(0);
}

/* --- Mobile --- */
@media (max-width: 600px) {
  .container {
    padding: 3rem 1.25rem 3rem;
    box-shadow: none;
  }

  h1 {
    font-size: 2rem;
    letter-spacing: 0.04em;
  }

  h2 {
    font-size: 1.4rem;
  }

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

  .project-card {
    padding: 1.2rem;
  }

  .project-links {
    flex-direction: column;
    gap: 0.6rem;
  }
}
