/* Global color variables */
:root {
  --accent: #2563eb;       /* main blue accent */
  --gray-light: #f4f6f8;
  --gray-medium: #9ca3af;
  --gray-dark: #374151;
}

body {
    font-family: 'Inter', Arial, sans-serif;
    margin: 0;
    padding: 1.5rem;
    line-height: 1.6;
    color: #1f1f1f;
    background: #fafafa;
}

/* navigation */
/* Header and Navigation */
.site-header {
  background: #ffffff;
  border-bottom: 1px solid #e0e0e0;
  padding: 1rem 0;
}

.site-header .container {
  display: flex;
  justify-content: space-between;
  align-items: center;
  max-width: 1000px;
  margin: 0 auto;
  padding: 0 2rem;
}

.site-title {
  color: var(--accent);
  font-size: 1.4rem;
  text-decoration: none;
  font-weight: 700;
}

.site-nav {
  display: flex;
  gap: 1.5rem;
}

.site-nav a {
  color: #333;
  text-decoration: none;
  font-weight: 500;
  transition: all 0.2s ease-in-out;
  position: relative;
}

.site-nav a::after {
  content: '';
  position: absolute;
  left: 0;
  bottom: -4px;
  width: 0%;
  height: 2px;
  background: var(--accent);
  transition: width 0.25s ease-in-out;
}

.site-nav a:hover::after,
.site-nav a.active::after {
  width: 100%;
}

/* Headings */
h1 {
    font-size: 2rem;
    margin-top: 1rem 0 0.5rem 0;
}

header p {
    font-size: 1.05rem;
    color: #555;
}

/* Page Structure */
main {
    max-width: 850px;
    margin: 0 auto;
    padding: 2rem 1rem;
}

section {
    margin-bottom: 2rem;
    padding-bottom: 1rem;
    border-bottom: 1px solid var(--gray-light);
}

/* Profile section */
.profile-photo {
  width: 160px;
  height: 160px;
  border-radius: 50%;
  object-fit: cover;
  display: block;
  margin: 1rem auto;
}

/* Intro */
.intro {
  text-align: center;
  margin-bottom: 3rem;
}

.intro h2 {
  margin-top: 1rem;
  color: #222;
  font-size: 1.5rem;
}

/* Skills */
.skills {
  text-align: center;
  margin-bottom: 3rem;
}

.skills-list {
  list-style: none;
  padding: 0;
  display: flex;
  justify-content: center;
  flex-wrap: wrap;
  gap: 0.8rem;
  margin-top: 1rem;
}

.skills-list li {
  background: #eef3ff;
  padding: 0.5rem 1.1rem;
  border-radius: 6px;
  font-weight: 500;
  color: #222;
  box-shadow: 0 1px 2px rgba(0, 0, 0, 0.05);
}

/* Buttons */
.button {
  display: inline-block;
  background: var(--accent);
  color: white;
  padding: 0.6rem 1.2rem;
  border-radius: 5px;
  text-decoration: none;
  font-weight: 500;
  margin-top: 1rem;
}

.button:hover {
  background: #005bb5;
}

.button.small {
  padding: 0.4rem 0.9rem;
  font-size: 0.85rem;
}

.project-links {
  margin-top: 0.5rem;
}


/* Footer */

footer {
  margin-top: 3rem;
  padding-top: 1.5rem;
  font-size: 0.9rem;
  text-align: center;
  color: var(--gray-medium);
  border-top: 1px solid #e0e0e0;
}

section {
  background: #fff;
  border-radius: 8px;
  padding: 1.5rem;
  box-shadow: 0 2px 4px rgba(0, 0, 0, 0.03);
  margin-bottom: 2rem;
}

/* Changes to make more mobile friendly */
@media (max-width: 768px) {

  body {
    padding: 1rem;
  }

  .site-header .container {
    flex-direction: column;
    align-items: flex-start;
    gap: 0.5rem;
    padding: 0 1rem;
  }

  .site-nav {
    flex-wrap: wrap;
    gap: 1rem;
  }

  .site-nav a {
    font-size: 0.95rem;
  }

  .intro h2 {
    font-size: 1.3rem;
  }

  .skills-list {
    flex-direction: column;
    align-items: center;
  }

  section {
    padding: 1.5rem;
  }

  .profile-photo {
    width: 120px;
    height: 120px;
  }
}