@import url('https://fonts.googleapis.com/css2?family=Inter:wght@300;400;500;600;700&display=swap');

:root {
  --accent: #4f46e5;
  --accent-light: #eef2ff;
  --text-primary: #111827;
  --text-secondary: #6b7280;
  --border: #e5e7eb;
  --bg: #f9fafb;
  --card-bg: #ffffff;
  --nav-bg: #0f172a;
}

* { box-sizing: border-box; }

body {
  font-family: 'Inter', sans-serif;
  background-color: var(--bg);
  color: var(--text-primary);
  display: flex;
  flex-direction: column;
  min-height: 100vh;
}

/* ── Shared: page titles ── */
.page-title {
  font-size: 2rem;
  font-weight: 700;
  letter-spacing: -0.02em;
  margin-bottom: 0.25rem;
}

.page-subtitle {
  font-size: 1rem;
  color: var(--text-secondary);
  margin-bottom: 0;
}

/* ── Navbar ── */
.navbar {
  background-color: var(--nav-bg) !important;
  padding: 0.75rem 1.5rem;
  box-shadow: 0 1px 3px rgba(0,0,0,0.3);
}

.navbar-brand {
  font-weight: 700;
  font-size: 1.1rem;
  letter-spacing: 0.02em;
  color: #fff !important;
}

.nav-link {
  font-size: 0.9rem;
  font-weight: 500;
  color: #94a3b8 !important;
  transition: color 0.2s;
  padding: 0.5rem 0.85rem !important;
  border-radius: 6px;
}

.nav-link:hover,
.nav-link.active {
  color: #fff !important;
}

/* ── Footer ── */
footer {
  background-color: var(--nav-bg) !important;
  color: #94a3b8;
  padding: 1.5rem 0;
  margin-top: auto;
}

footer a {
  color: #94a3b8 !important;
  transition: color 0.2s;
}

footer a:hover { color: #fff !important; }

footer p {
  color: #94a3b8;
  margin: 0;
  font-size: 0.85rem;
}

/* ── Buttons ── */
.btn-primary {
  background-color: var(--accent);
  border-color: var(--accent);
  font-weight: 500;
  padding: 0.55rem 1.3rem;
  border-radius: 8px;
  font-size: 0.9rem;
  transition: background-color 0.2s, border-color 0.2s;
}

.btn-primary:hover {
  background-color: #4338ca;
  border-color: #4338ca;
}

.btn-outline {
  display: inline-block;
  background: transparent;
  border: 1.5px solid var(--border);
  color: var(--text-primary);
  font-weight: 500;
  padding: 0.55rem 1.3rem;
  border-radius: 8px;
  font-size: 0.9rem;
  text-decoration: none;
  transition: border-color 0.2s, color 0.2s;
}

.btn-outline:hover {
  border-color: var(--accent);
  color: var(--accent);
}

/* ────────────────────────────
   HOME PAGE
──────────────────────────── */
.hero-photo {
  width: 220px;
  height: 220px;
  object-fit: cover;
  border-radius: 50%;
  border: 4px solid var(--accent-light);
  box-shadow: 0 4px 24px rgba(79,70,229,0.15);
}

.hero-greeting {
  font-size: 1rem;
  color: var(--accent);
  font-weight: 600;
  margin-bottom: 0.25rem;
  letter-spacing: 0.02em;
}

.hero-name {
  font-size: 2.6rem;
  font-weight: 700;
  letter-spacing: -0.03em;
  margin-bottom: 0.4rem;
  line-height: 1.1;
}

.hero-title {
  font-size: 1.05rem;
  color: var(--text-secondary);
  font-weight: 500;
  margin-bottom: 1rem;
}

.hero-bio {
  font-size: 0.95rem;
  color: #374151;
  line-height: 1.7;
  max-width: 560px;
  margin-bottom: 1.5rem;
}

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem;
  align-items: center;
}

.hero-links {
  display: flex;
  gap: 1.25rem;
}

.hero-link {
  font-size: 0.875rem;
  font-weight: 500;
  color: var(--text-secondary);
  text-decoration: none;
  transition: color 0.2s;
}

.hero-link:hover { color: var(--accent); }

/* ────────────────────────────
   HOBBIES PAGE
──────────────────────────── */
.hobby-card {
  background: var(--card-bg);
  border-radius: 12px;
  overflow: hidden;
  box-shadow: 0 1px 3px rgba(0,0,0,0.07), 0 4px 16px rgba(0,0,0,0.05);
  height: 100%;
  transition: transform 0.2s, box-shadow 0.2s;
}

.hobby-card:hover {
  transform: translateY(-4px);
  box-shadow: 0 8px 30px rgba(0,0,0,0.1);
}

.hobby-img-wrap {
  width: 100%;
  height: 200px;
  overflow: hidden;
}

.hobby-img-wrap img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.35s;
}

.hobby-card:hover .hobby-img-wrap img {
  transform: scale(1.05);
}

.hobby-body {
  padding: 1.25rem 1.4rem 1.5rem;
}

.hobby-icon {
  width: 36px;
  height: 36px;
  background: var(--accent-light);
  color: var(--accent);
  border-radius: 8px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 0.9rem;
  margin-bottom: 0.75rem;
}

.hobby-body h5 {
  font-size: 1rem;
  font-weight: 600;
  margin-bottom: 0.4rem;
}

.hobby-body p {
  font-size: 0.875rem;
  color: var(--text-secondary);
  line-height: 1.6;
  margin: 0;
}

/* ────────────────────────────
   PROJECTS PAGE
──────────────────────────── */
.project-card {
  background: var(--card-bg);
  border-radius: 12px;
  padding: 1.5rem;
  height: 100%;
  box-shadow: 0 1px 3px rgba(0,0,0,0.07), 0 4px 16px rgba(0,0,0,0.05);
  border: 1px solid var(--border);
  transition: transform 0.2s, box-shadow 0.2s;
  display: flex;
  flex-direction: column;
}

.project-card:hover {
  transform: translateY(-4px);
  box-shadow: 0 8px 30px rgba(0,0,0,0.1);
}

.project-card-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 0.85rem;
}

.project-icon {
  font-size: 1.1rem;
  color: var(--accent);
  background: var(--accent-light);
  padding: 0.5rem;
  border-radius: 8px;
  width: 36px;
  height: 36px;
  display: flex;
  align-items: center;
  justify-content: center;
}

.project-date {
  font-size: 0.75rem;
  color: var(--text-secondary);
  font-weight: 500;
}

.project-title {
  font-size: 1rem;
  font-weight: 600;
  margin-bottom: 0.5rem;
  color: var(--text-primary);
}

.project-desc {
  font-size: 0.875rem;
  color: var(--text-secondary);
  line-height: 1.65;
  flex: 1;
  margin-bottom: 1rem;
}

.project-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 0.35rem;
  margin-top: auto;
}

/* ────────────────────────────
   RESUME PAGE
──────────────────────────── */
.resume-card {
  background: var(--card-bg);
  border-radius: 12px;
  box-shadow: 0 1px 3px rgba(0,0,0,0.07), 0 4px 20px rgba(0,0,0,0.05);
  padding: 2.5rem 3rem;
}

.resume-name {
  font-size: 2rem;
  font-weight: 700;
  letter-spacing: -0.02em;
  margin-bottom: 0.25rem;
}

.resume-contact {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem 1.25rem;
  font-size: 0.875rem;
  color: var(--text-secondary);
  margin-bottom: 0.25rem;
}

.resume-contact a {
  color: var(--accent);
  text-decoration: none;
  font-weight: 500;
}

.resume-contact a:hover { text-decoration: underline; }

.resume-section-title {
  font-size: 0.7rem;
  font-weight: 700;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--text-secondary);
  border-bottom: 2px solid var(--border);
  padding-bottom: 0.4rem;
  margin-top: 2rem;
  margin-bottom: 1.25rem;
}

.resume-entry { margin-bottom: 1.4rem; }

.resume-entry-header {
  display: flex;
  justify-content: space-between;
  align-items: baseline;
  flex-wrap: wrap;
  gap: 0.25rem;
}

.resume-entry-title {
  font-weight: 600;
  font-size: 0.975rem;
  color: var(--text-primary);
}

.resume-entry-date {
  font-size: 0.8rem;
  color: var(--text-secondary);
  white-space: nowrap;
}

.resume-entry-sub {
  font-size: 0.85rem;
  color: var(--text-secondary);
  margin-top: 0.1rem;
  font-style: italic;
}

.resume-entry ul {
  margin: 0.4rem 0 0 0;
  padding-left: 1.2rem;
  list-style: disc;
}

.resume-entry ul li {
  font-size: 0.875rem;
  color: #374151;
  line-height: 1.65;
  margin-bottom: 0.2rem;
}

/* ── Skills ── */
.skills-grid {
  display: flex;
  flex-direction: column;
  gap: 0.6rem;
}

.skill-row {
  display: grid;
  grid-template-columns: 155px 1fr;
  gap: 0.35rem 0.75rem;
  align-items: start;
}

.skill-label {
  font-size: 0.8rem;
  font-weight: 600;
  color: var(--text-secondary);
  padding-top: 0.2rem;
}

.skill-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 0.35rem;
}

.skill-tag {
  display: inline-block;
  background: var(--accent-light);
  color: var(--accent);
  border-radius: 9999px;
  padding: 0.18rem 0.72rem;
  font-size: 0.78rem;
  font-weight: 500;
}

/* ── Responsive ── */
@media (max-width: 640px) {
  .resume-card { padding: 1.5rem 1.25rem; }
  .resume-name { font-size: 1.5rem; }
  .skill-row { grid-template-columns: 1fr; }
  .hero-name { font-size: 1.9rem; }
  .hero-photo { width: 160px; height: 160px; }
}
