:root {
  --bg: #0d1117;
  --card: #161b22;
  --text: #aeb5bc;
  --accent: #2b7783;
  --muted: #8b949e;
}

body.light {
  --bg: #1b1c24;
  --card: #2c2c38;
  --text: #bec1cd;
  --accent: #4898a8;
  --muted: #b7b7b7;
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    scroll-behavior: smooth;
    font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
}

body {
    background: var(--bg);
    color: var(--text);
    line-height: 1.6;
}

p {
    margin-bottom: 15px;
}

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

section a:hover {
    text-decoration: underline;
}

section a:visited {
    color: var(--accent);
    opacity: 0.8;
}

nav {
    position: sticky;
    top: 0;
    background: rgba(13,17,23,0.75);
    backdrop-filter: blur(5px);
    padding: 10px 30px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    border-bottom: 1px solid #222;
    z-index: 1000;
}

nav h1 {
    font-size: 1.5rem;
    margin-top: 0px;
    margin-bottom: 0px;
    color: var(--accent);
}

nav ul {
    display: flex;
    gap: 20px;
    list-style: none;
    vertical-align: middle;
}

nav a {
    text-decoration: none;
    color: var(--text);
    font-size: 0.9rem;
}

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

section {
    padding: 80px 20px;
    max-width: 900px;
    margin: auto;
}

.hero {
    text-align: center;
    padding: 80px 20px;
}

.hero-content {
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  gap: 20px;
}

.hero h2 {
    font-size: 3rem;
}

.hero p {
    color: var(--muted);
    margin-top: 10px;
}

.hero-avatar {
  width: 300px;
  height: 300px;
  border-radius: 50%;
  object-fit: cover;
  border: 4px solid rgba(255, 255, 255, 0.15);
  box-shadow: 0 6px 18px rgba(0, 0, 0, 0.15);
}

.hero-avatar:hover {
  transform: scale(1.03);
  transition: transform 200ms ease;
}

/* Mobile responsiveness */
@media (max-width: 700px) {
  .hero-content {
    flex-direction: column;
    text-align: center;
  }

  .hero-avatar {
    width: 140px;
    height: 140px;
  }
}

.card {
    background: var(--card);
    padding: 20px;
    border-radius: 10px;
    margin-top: 20px;
    border: 1px solid #222;
}

.card img {
  display: block;
  padding-bottom: 15px;
  width: 100%;
}

h3 {
    margin-bottom: 10px;
    color: var(--accent);
    font-size: 1.8rem;
}

strong {
    font-size: 1.2rem;
    color: var(--text);
    opacity: 0.6;
}

.resume a {
    display: inline-block;
    margin-top: 10px;
    color: var(--accent);
    text-decoration: none;
}

footer {
    text-align: center;
    padding: 30px;
    font-size: 0.8rem;
    color: var(--muted);
}

/* Mobile */
@media (max-width: 600px) {
    nav ul {
    gap: 10px;
    font-size: 0.8rem;
    }
}

.theme-switch {
  position: relative;
  display: inline-block;
  width: 40px;
  height: 20px;
  vertical-align: middle;
}

.theme-switch input {
  display: none;
}

.slider {
  position: absolute;
  cursor: pointer;
  background-color: #444;
  border-radius: 20px;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  transition: 0.3s;
}

.slider:before {
  position: absolute;
  content: "";
  height: 14px;
  width: 14px;
  left: 3px;
  bottom: 3px;
  background-color: white;
  border-radius: 50%;
  transition: 0.3s;
}

input:checked + .slider {
  background-color: var(--accent);
}

input:checked + .slider:before {
  transform: translateX(20px);
}

body {
  transition: background 0.3s, color 0.3s;
}
.card {
  transition: background 0.3s, border 0.3s;
}

.nav-divider {
  width: 2px;
  height: 20px;
  background: linear-gradient(
    to bottom,
    transparent,
    var(--text),
    transparent
  );
  opacity: 0.7;
  margin: 0 10px;
}
