/* ===========================
   Variables & Reset
   =========================== */
:root {
  --color-bg: #ffffff;
  --color-text: #1b263b;
  --color-accent: #0d6e6e;
  --color-section-bg: #f8f9fa;
  --font-family: 'Inter', sans-serif;
}

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

html {
  scroll-behavior: smooth;
}

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

/* ===========================
   Header & Nav
   =========================== */
header {
  position: sticky;
  top: 0;
  background-color: var(--color-bg);
  border-bottom: 1px solid #e0e0e0;
  z-index: 100;
  padding: 0.75rem 1.5rem;
}

header nav ul {
  list-style: none;
  display: flex;
  gap: 1.5rem;
  justify-content: flex-end;
}

header nav ul li a {
  color: var(--color-accent);
  text-decoration: none;
  font-weight: 700;
  font-size: 0.95rem;
  transition: opacity 0.2s ease;
}

header nav ul li a:hover,
header nav ul li a:focus {
  opacity: 0.75;
  text-decoration: underline;
}

/* ===========================
   Main Layout
   =========================== */
main {
  max-width: 800px;
  margin: 0 auto;
  padding: 2rem 1.5rem;
}

section {
  margin-bottom: 3rem;
}

/* ===========================
   Hero Section
   =========================== */
#hero {
  text-align: center;
  padding: 2.5rem 1rem;
}

.profile-photo {
  width: 160px;
  height: 160px;
  border-radius: 50%;
  object-fit: cover;
  display: block;
  margin: 0 auto 1.25rem;
  border: 3px solid var(--color-accent);
}

h1 {
  font-size: 1.75rem;
  font-weight: 700;
  color: var(--color-text);
  margin-bottom: 0.5rem;
}

.tagline {
  font-size: 1.05rem;
  color: var(--color-accent);
  font-weight: 400;
}

/* ===========================
   Section Headings
   =========================== */
h2 {
  font-size: 1.25rem;
  font-weight: 700;
  color: var(--color-accent);
  margin-bottom: 1rem;
  padding-bottom: 0.375rem;
  border-bottom: 2px solid var(--color-accent);
}

h3 {
  font-size: 1rem;
  font-weight: 700;
  color: var(--color-text);
  margin-bottom: 0.625rem;
}

/* ===========================
   About Section
   =========================== */
#about {
  background-color: var(--color-section-bg);
  padding: 1.5rem;
  border-radius: 8px;
}

#about p {
  margin-top: 0.5rem;
}

/* ===========================
   Skills Section
   =========================== */
#skills article {
  background-color: var(--color-section-bg);
  padding: 1.25rem 1.5rem;
  border-radius: 8px;
  margin-bottom: 1rem;
}

.skill-list {
  list-style: none;
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
}

.skill-tag {
  background-color: var(--color-accent);
  color: #ffffff;
  padding: 0.3rem 0.85rem;
  border-radius: 999px;
  font-size: 0.875rem;
  font-weight: 400;
}

/* ===========================
   Contact Section
   =========================== */
#contact {
  background-color: var(--color-section-bg);
  padding: 1.5rem;
  border-radius: 8px;
}

.contact-list {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 0.625rem;
  margin-top: 0.5rem;
}

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

.contact-list a:hover,
.contact-list a:focus {
  text-decoration: underline;
}

/* ===========================
   Footer
   =========================== */
footer {
  text-align: center;
  padding: 1.5rem 1rem;
  font-size: 0.85rem;
  color: #6c757d;
  border-top: 1px solid #e0e0e0;
}

/* ===========================
   Responsive
   =========================== */
@media (max-width: 600px) {
  header nav ul {
    justify-content: center;
    gap: 1rem;
  }

  h1 {
    font-size: 1.5rem;
  }

  main {
    padding: 1.5rem 1rem;
  }
}

@media (min-width: 601px) {
  .contact-list {
    flex-direction: row;
    gap: 1.5rem;
  }
}
