:root {
  --primary-color: #ac071d;
  --text-color: #111;
  --bg-color: #fff;
  --font-family: 'Inter', sans-serif;
  --max-width: 800px;
}

* {
  box-sizing: border-box;
  scroll-behavior: smooth;
}

body {
  margin: 0;
  font-family: var(--font-family);
  background-color: var(--bg-color);
  color: var(--text-color);
  line-height: 1.6;
  padding: 0 1rem;
}

header {
  padding: 1rem 0;
  position: sticky;
  top: 0;
  z-index: 100;
}

/* Navigation */
/* Add a rounded box around the whole nav menu */
nav ul {
  background: var(--bg-color);
  display: flex;
  justify-content: center;
  gap: 1.5rem;
  padding: 0.5rem; /* padding inside the box */
  margin: 0 auto 0.5rem auto; /* center the box and add some bottom margin */
  list-style: none;
  border: 2px solid #e2e2e2;
  border-radius: 50px;
  max-width: fit-content; /* shrink box to content width */
}

/* Style nav links */
nav ul li a {
  color: var(--text-color);
  text-decoration: none;
  padding: 0.5rem 1rem;
  border-radius: 8px; /* rounded box around each link on hover */
  transition: background-color 0.3s ease, color 0.3s ease;
  display: inline-block;
}

/* Hover effect: primary background and white text */
nav ul li a:hover,
nav ul li a:focus {
  background-color: #e6e6e6 ;
}

/* Remove the underline bar under the link */
nav ul li a::after {
  display: none;
}

main {
  max-width: var(--max-width);
  margin: 0 auto;
  padding: 2rem 0;
}

section {
  margin-bottom: 3rem;
  opacity: 0;
  transform: translateY(20px);
  transition: opacity 0.6s ease, transform 0.6s ease;
}

section.visible {
  opacity: 1;
  transform: translateY(0);
}

.hero {
  text-align: center;
  margin-bottom: 3rem;
}

.hero h1 {
  margin: 0.2rem 0 0.2rem 0; /* less vertical margin */
  font-weight: 700;
  font-size: 2.5rem;
}

.hero p {
  margin: 0;
  font-weight: 500;
  font-size: 1.2rem;
  line-height: 1.2;
  color: #555;
}

.profile-pic {
  display: block;
  margin: 0 auto 0.75rem auto; /* reduced bottom margin */
  width: 160px;
  height: 160px;
  max-width: 40vw;
  max-height: 40vw;
  object-fit: cover;
  border-radius: 50%;
  border: 3px solid var(--primary-color);
}

h1 {
  font-size: 2.5rem;
  margin-bottom: 0.5rem;
}

h2 {
  font-size: 1.8rem;
  margin-bottom: 1rem;
}

.project, .job {
  margin-bottom: 1.5rem;
}

ul {
  padding-left: 1.2rem;
}

a {
  color: var(--primary-color);
}

#skills p{
  margin: 0;
}

.stars {
  padding: 0 10px 0 10px;
  font-family: 'Arial', sans-serif;
  color: #FFD700; /* bright yellow */
  background-color: rgb(243, 243, 243);
  border-radius: 50px;
  font-size: 1.3rem;  /* bigger stars */
  letter-spacing: 0.1em;
}

/* Resume download links */
.download-link {
  display: inline-flex;
  align-items: center;
  gap: 0.3rem;
  font-weight: 600;
  color: var(--primary-color);
  text-decoration: none;
}

.download-link:hover {
  text-decoration: underline;
}

.download-icon {
  fill: var(--primary-color);
}

.social-icons {
  margin-top: 1rem;
  display: flex;
  gap: 1rem;
  align-items: center;
}

.social-icons a svg {
  transition: transform 0.3s ease;
}

.social-icons a:hover svg {
  transform: scale(1.2);
}

footer {
  text-align: center;
  border-top: 1px solid #eee;
  font-size: 0.9rem;
  color: #666;
}

@media (max-width: 600px) {
  nav {
    display: none;
  }
  h1 {
    font-size: 2rem;
  }
  h2 {
    font-size: 1.5rem;
  }
}
