/* ===== THEME VARIABLES ===== */

:root {
  --bg: #f1f5f9;
  --surface: #ffffff;
  --text: #1e293b;
  --muted: #64748b;
  --accent: #2563eb;
  --border: #e2e8f0;
}

/* Dark mode */
body.dark {
  --bg: #0f172a;
  --surface: #020617;
  --text: #e5e7eb;
  --muted: #94a3b8;
  --accent: #38bdf8;
  --border: #1e293b;
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  font-family: system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI",
    sans-serif;
  background: var(--bg);
  color: var(--text);
  line-height: 1.6;
  transition: background 0.3s ease, color 0.3s ease;
}


/* ========= HERO ========= */
.theme-toggle {
  position: absolute;
  top: 20px;
  right: 20px;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 999px;
  padding: 8px 12px;
  cursor: pointer;
  font-size: 1rem;
  transition: background 0.3s ease;
}


.hero {
  position: relative;
  text-align: center;
  padding: 90px 20px 70px;
}


.avatar {
  width: 120px;
  height: 120px;
  border-radius: 50%;
  object-fit: cover;
  border: 3px solid var(--accent);
  margin-bottom: 18px;
}

.hero h1 {
  margin: 0;
  font-size: 2.8rem;
  letter-spacing: -0.02em;
}

.role {
  margin-top: 8px;
  font-size: 1.05rem;
  color: var(--accent);
  font-weight: 500;
}

.tagline {
  margin-top: 10px;
  color: var(--muted);
  font-size: 0.95rem;
}

/* ========= MAIN ========= */

.container {
  max-width: 880px;
  margin: auto;
  padding: 40px 20px;
}

section {
  margin-bottom: 44px;
}

h2 {
  font-size: 1.35rem;
  border-bottom: 1px solid var(--border);
  padding-bottom: 10px;
  margin-bottom: 20px;
}

/* ========= SKILLS ========= */

.skills span {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 6px 14px;
  border-radius: 999px;
  border: 1px solid var(--border);
  background: var(--surface);
  margin: 6px 6px 0 0;
  font-size: 0.85rem;
}


.skills img {
  width: 16px;
  height: 16px;
  opacity: 0.85;
}

/* ========= PROJECT CARD ========= */

.card {
  border: 1px solid var(--border);
  border-radius: 16px;
  padding: 22px;
  margin-bottom: 18px;
  background: var(--surface);
  transition: transform 0.2s ease, box-shadow 0.2s ease;
}


.card h3 {
  margin-top: 0;
}

.card:hover {
  transform: translateY(-4px);
  box-shadow: 0 16px 40px rgba(0, 0, 0, 0.6);
}

/* ========= CONTACT ========= */

.contact {
  list-style: none;
  padding-left: 0;
}

.contact li {
  display: flex;
  align-items: center;
  gap: 12px;
  margin-bottom: 10px;
}

.contact img {
  width: 18px;
  height: 18px;
  opacity: 0.8;
}

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

a:hover {
  text-decoration: underline;
}

/* ========= FOOTER ========= */

footer {
  text-align: center;
  padding: 36px 0;
  color: var(--muted);
  font-size: 0.85rem;
}

/* ========= RESPONSIVE ========= */

@media (max-width: 600px) {
  .hero h1 {
    font-size: 2.2rem;
  }

  .container {
    padding: 30px 16px;
  }
}

.btn {
  display: inline-block;
  margin-top: 14px;
  padding: 10px 18px;
  border-radius: 999px;
  background: var(--accent);
  color: #020617;
  font-size: 0.9rem;
  font-weight: 500;
  transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.btn:hover {
  transform: translateY(-2px);
  box-shadow: 0 8px 20px rgba(56, 189, 248, 0.35);
  text-decoration: none;
}
