*, *::before, *::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

:root {
  --bg: #ffffff;
  --text: #1a1a2e;
  --muted: #555;
  --accent: #2563eb;
  --accent-hover: #1d4ed8;
  --section-alt: #f8f9fb;
  --border: #e5e7eb;
  --card-shadow: 0 2px 8px rgba(0,0,0,0.07);
}

html {
  scroll-behavior: smooth;
}

body {
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
  color: var(--text);
  background: var(--bg);
  line-height: 1.7;
}

/* NAV */
nav {
  position: sticky;
  top: 0;
  z-index: 100;
  display: flex;
  align-items: center;
  gap: 2rem;
  padding: 0 2.5rem;
  height: 60px;
  background: var(--bg);
  border-bottom: 1px solid var(--border);
}

.nav-name {
  font-weight: 700;
  font-size: 1.05rem;
  margin-right: auto;
}

nav ul {
  list-style: none;
  display: flex;
  gap: 1.75rem;
}

nav ul a {
  text-decoration: none;
  color: var(--muted);
  font-size: 0.95rem;
  font-weight: 500;
  transition: color 0.2s;
}

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

.nav-icons {
  display: flex;
  gap: 1rem;
  align-items: center;
}

.nav-icons a {
  color: var(--muted);
  display: flex;
  align-items: center;
  transition: color 0.2s;
}

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

/* SECTIONS */
section {
  padding: 5rem 2.5rem;
  max-width: 1000px;
  margin: 0 auto;
}

section:nth-of-type(even) {
  background: var(--section-alt);
  max-width: 100%;
}

section:nth-of-type(even) > * {
  max-width: 1000px;
  margin-left: auto;
  margin-right: auto;
}

section h2 {
  font-size: 1.85rem;
  margin-bottom: 2rem;
}

/* ABOUT */
.about-inner {
  display: flex;
  align-items: center;
  gap: 3rem;
}

.profile-photo {
  width: 200px;
  height: 200px;
  border-radius: 50%;
  object-fit: cover;
  flex-shrink: 0;
  box-shadow: var(--card-shadow);
}

.about-text h1 {
  font-size: 2rem;
  margin-bottom: 1rem;
}

.about-text p {
  color: var(--muted);
  margin-bottom: 0.85rem;
}

.btn {
  display: inline-block;
  margin-top: 0.5rem;
  padding: 0.6rem 1.4rem;
  background: var(--accent);
  color: #fff;
  border-radius: 6px;
  text-decoration: none;
  font-weight: 500;
  font-size: 0.95rem;
  transition: background 0.2s;
}

.btn:hover {
  background: var(--accent-hover);
}

/* CARDS */
.card-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(260px, 1fr));
  gap: 1.5rem;
}

.card {
  background: var(--bg);
  border: 1px solid var(--border);
  border-radius: 10px;
  padding: 1.5rem;
  box-shadow: var(--card-shadow);
  transition: box-shadow 0.2s;
}

.card:hover {
  box-shadow: 0 6px 20px rgba(0,0,0,0.1);
}

.card h3 {
  font-size: 1.1rem;
  margin-bottom: 0.5rem;
}

.card p {
  color: var(--muted);
  font-size: 0.92rem;
  margin-bottom: 1rem;
}

.card a {
  color: var(--accent);
  font-size: 0.9rem;
  font-weight: 500;
  text-decoration: none;
}

.card a:hover {
  text-decoration: underline;
}

/* FOOTER */
footer {
  text-align: center;
  padding: 2rem;
  color: var(--muted);
  font-size: 0.88rem;
  border-top: 1px solid var(--border);
}

/* RESPONSIVE */
@media (max-width: 640px) {
  .about-inner {
    flex-direction: column;
    text-align: center;
  }

  nav ul {
    gap: 1rem;
  }

  .nav-name {
    display: none;
  }
}
