/* ===== Reset & Base ===== */
*, *::before, *::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

:root {
  --bg:        #1e2430;
  --surface:   #252d3d;
  --surface2:  #2c3650;
  --accent:    #7b9ccc;
  --accent-dim:#5a7aaa;
  --text:      #c9d1d9;
  --subtext:   #8b949e;
  --border:    #30394d;
  --radius:    10px;
}

html {
  scroll-behavior: smooth;
}

body {
  font-family: 'Inter', sans-serif;
  background: var(--bg);
  color: var(--text);
  line-height: 1.6;
  font-size: 16px;
}

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

/* ===== Navbar ===== */
#navbar {
  position: sticky;
  top: 0;
  z-index: 100;
  background: rgba(30, 36, 48, 0.85);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border-bottom: 1px solid transparent;
  transition: border-color 0.3s, box-shadow 0.3s;
}

#navbar.scrolled {
  border-color: var(--border);
  box-shadow: 0 1px 20px rgba(0, 0, 0, 0.3);
}

.nav-inner {
  max-width: 900px;
  margin: 0 auto;
  padding: 0 24px;
  height: 60px;
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.nav-name {
  font-weight: 600;
  font-size: 1rem;
  color: var(--text);
  letter-spacing: 0.01em;
}

.nav-links {
  list-style: none;
  display: flex;
  gap: 32px;
}

.nav-links a {
  color: var(--subtext);
  font-size: 0.9rem;
  font-weight: 500;
  transition: color 0.2s;
}

.nav-links a:hover {
  color: var(--text);
}

/* ===== Sections ===== */
section {
  padding: 80px 24px;
}

.section-inner {
  max-width: 900px;
  margin: 0 auto;
}

.section-title {
  font-size: 1.6rem;
  font-weight: 700;
  color: var(--text);
  margin-bottom: 32px;
  padding-bottom: 12px;
  border-bottom: 1px solid var(--border);
}

/* ===== Hero ===== */
#hero {
  min-height: calc(100vh - 60px);
  display: flex;
  align-items: center;
  padding: 80px 24px;
}

.hero-inner {
  max-width: 900px;
  margin: 0 auto;
  display: flex;
  align-items: center;
  gap: 52px;
}

.hero-photo {
  width: 160px;
  height: 160px;
  border-radius: 50%;
  object-fit: cover;
  border: 3px solid var(--border);
  flex-shrink: 0;
}

.hero-text h1 {
  font-size: clamp(2.2rem, 5vw, 3.2rem);
  font-weight: 700;
  color: var(--text);
  line-height: 1.15;
  margin-bottom: 12px;
}

.hero-tagline {
  color: var(--subtext);
  font-size: 1rem;
  margin-bottom: 28px;
}

.hero-btns {
  display: flex;
  gap: 12px;
  flex-wrap: wrap;
}

.btn {
  display: inline-block;
  padding: 10px 22px;
  border-radius: var(--radius);
  font-size: 0.9rem;
  font-weight: 500;
  transition: opacity 0.2s, transform 0.15s;
}

.btn:hover {
  opacity: 0.85;
  transform: translateY(-1px);
}

.btn-primary {
  background: var(--accent);
  color: #1e2430;
}

.btn-secondary {
  background: var(--surface2);
  color: var(--text);
  border: 1px solid var(--border);
}

/* ===== About ===== */
#about {
  background: var(--surface);
}

.about-bio {
  color: var(--subtext);
  font-size: 1rem;
  max-width: 680px;
  margin-bottom: 28px;
  line-height: 1.75;
}

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

.skill-chip {
  background: var(--surface2);
  border: 1px solid var(--border);
  color: var(--accent);
  padding: 5px 14px;
  border-radius: 20px;
  font-size: 0.82rem;
  font-weight: 500;
}

/* ===== Projects ===== */
.projects-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 20px;
}

.card {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 24px;
  display: flex;
  flex-direction: column;
  gap: 12px;
  transition: border-color 0.2s, transform 0.2s;
}

.card:hover {
  border-color: var(--accent-dim);
  transform: translateY(-2px);
}

.card-wide {
  grid-column: 1 / -1;
}

.card-header {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 12px;
}

.card-header h3 {
  font-size: 1.05rem;
  font-weight: 600;
  color: var(--text);
}

.card-link {
  font-size: 0.8rem;
  color: var(--accent);
  white-space: nowrap;
  transition: color 0.2s;
}

.card-link:hover {
  color: var(--text);
}

.card-desc {
  color: var(--subtext);
  font-size: 0.88rem;
  line-height: 1.65;
  flex: 1;
}

.card-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.tag {
  background: var(--bg);
  border: 1px solid var(--border);
  color: var(--subtext);
  padding: 3px 10px;
  border-radius: 4px;
  font-size: 0.75rem;
}

/* ===== Activities ===== */
#activities {
  background: var(--surface);
}

.activities-list {
  display: flex;
  flex-direction: column;
  gap: 20px;
}

.activity-item {
  background: var(--bg);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 24px;
  display: flex;
  flex-direction: column;
  gap: 12px;
  transition: border-color 0.2s;
}

.activity-item:hover {
  border-color: var(--accent-dim);
}

.activity-header {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 12px;
}

.activity-header h3 {
  font-size: 1.05rem;
  font-weight: 600;
  color: var(--text);
}

.activity-role {
  font-size: 0.8rem;
  color: var(--accent);
  background: rgba(123, 156, 204, 0.12);
  border: 1px solid rgba(123, 156, 204, 0.25);
  padding: 2px 10px;
  border-radius: 20px;
  font-weight: 500;
}

.activity-desc {
  color: var(--subtext);
  font-size: 0.88rem;
  line-height: 1.65;
}

/* ===== Contact ===== */
#contact {
  background: var(--surface);
}

.contact-sub {
  color: var(--subtext);
  margin-bottom: 28px;
  font-size: 0.95rem;
}

.contact-links {
  display: flex;
  flex-wrap: wrap;
  gap: 14px;
}

.contact-chip {
  display: inline-flex;
  align-items: center;
  gap: 9px;
  background: var(--surface2);
  border: 1px solid var(--border);
  color: var(--text);
  padding: 10px 18px;
  border-radius: var(--radius);
  font-size: 0.88rem;
  font-weight: 500;
  transition: border-color 0.2s, color 0.2s;
}

.contact-chip:hover {
  border-color: var(--accent);
  color: var(--accent);
}

/* ===== Footer ===== */
footer {
  text-align: center;
  padding: 32px 24px;
  color: var(--subtext);
  font-size: 0.82rem;
  border-top: 1px solid var(--border);
}

/* ===== Responsive ===== */
@media (max-width: 640px) {
  .hero-inner {
    flex-direction: column;
    gap: 28px;
    text-align: center;
  }

  .hero-btns {
    justify-content: center;
  }

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

  .card-wide {
    grid-column: 1;
  }

  .nav-links {
    gap: 20px;
  }
}
