:root {
  --dark-green: #6B9080;
  --muted-green: #A4C3B2;
  --pale-teal: #CCE3DE;
  --light-teal: #EAF4F4;
  --almost-white: #F6FFF8;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  font-family: Arial, sans-serif;
  background-color: var(--almost-white);
  color: #333;
}

/* Navbar */
@media (max-width: 768px) { /* Mobile style override */
  .navbar {
    flex-direction: column;
    align-items: center;
    padding: 0.5rem 1rem;
  }

  .navbar ul {
    flex-direction: column;
    gap: 0.5rem;
    margin-top: 0.5rem;
    padding: 0;
    width: auto;
    align-items: center;
  }

  .navbar ul li a {
    display: block;
    padding: 0.3rem 0.5rem;
    font-size: 0.9rem;
  }
}

.navbar {
  display: flex;
  justify-content: space-between;
  align-items: center;
  background-color: var(--dark-green);
  padding: 1rem 2rem;
  position: sticky;
  top: 0;
  z-index: 10;
}

.navbar .logo {
  color: white;
  font-size: 1.2rem;
  font-weight: bold;
}

.navbar ul {
  list-style: none;
  display: flex;
  gap: 2rem;
  margin: 0;
  padding: 0;
}

.navbar ul li a {
  color: #F6FFF8;
  text-decoration: none;
  font-weight: bold;
}

.navbar ul li a:hover {
  text-decoration: underline;
}

/* Hero */
.hero {
  height: 100vh;
  background-size: cover;
  background-position: center;
  position: relative;
}

.hero-overlay {
  background-color: rgba(107, 144, 128, 0.6);
  height: 100%;
  display: flex;
  align-items: center;
  justify-content: center;
}

.hero-overlay h1 {
  color: #F6FFF8;
  font-size: 2rem;
  text-align: left;
}

/* Section Headings */
section h2 {
  font-size: 2rem;
  margin-bottom: 2rem;
  text-align: left;
}

/* About */
@media (max-width: 768px) { /* Mobile style override */
  .about-content {
    flex-direction: column;
    text-align: center;
  }

  .about-content p {
    text-align: left;
  }

  .profile-pic {
    margin: 0 auto;
  }
}

.about {
  background-color: var(--light-teal);
  padding: 4rem 2rem;
}

.about h2 {
  color: #6B9080;
}

.about-content {
  color: #6B9080;
  display: flex;
  flex-wrap: wrap;
  gap: 2rem;
  align-items: center;
  max-width: 1000px;
  margin: auto;
}

.profile-pic {
  width: 200px;
  height: 200px;
  border-radius: 50%;
  object-fit: cover;
}

.about-content p {
  color: #6B9080;
  flex: 1;
  font-size: 1.1rem;
  line-height: 1.8;
}

/* Experience */
.experience {
  background-color: var(--pale-teal);
  padding: 4rem 2rem;
}

.experience h2 {
  color: #6B9080;
}

.exp-card {
  background-color: var(--dark-green);
  color: #F6FFF8;
  padding: 1.5rem;
  margin: 1rem auto;
  max-width: 800px;
  border-radius: 10px;
}

.date {
  font-size: 0.9rem;
  color: #ddd;
}

/* Projects */
.projects {
  background-color: var(--dark-green);
  padding: 4rem 2rem;
}

.projects h2 {
  color: #EAF4F4;
}

.projects a {
  color: #6B9080;
  transition: color 0.3s ease;
}

.projects a:hover {
  color: #06402B;
}

.project-card {
  background-color: var(--light-teal);
  color: #6B9080;
  padding: 1.5rem;
  margin: 1rem auto;
  max-width: 800px;
  border-radius: 10px;
}

.project-pic {
  width: 100%;
  height: 100%;
  object-fit: cover;
  border-radius: 10px;
  display: block;
}

.projects .date {
  font-size: 0.9rem;
  color: #A9A9A9;
}

/* Education */
.education {
  background-color: var(--light-teal);
  padding: 4rem 2rem;
}

.education h2 {
  color: #6B9080;
}
.edu-card {
  background-color: var(--dark-green);
  color: #F6FFF8;
  padding: 1.5rem;
  margin: 1rem auto;
  max-width: 800px;
  border-radius: 10px;
}

/* Skills */
.skills {
  background-color: var(--muted-green);
  padding: 4rem 2rem;
}

.skills h2 {
  color: #6B9080;
}

.skill-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 1rem;
  max-width: 1000px;
  margin: auto;
}

.skill-card {
  background-color: #F6FFF8;
  color: #6B9080;
  padding: 1rem;
  border-radius: 10px;
  text-align: center;
}

/* Footer */
footer {
  background-color: var(--dark-green);
  color: #F6FFF8;
  text-align: center;
  padding: 1rem;
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
}

footer p {
  margin: 0;
  flex: 1;
  text-align: left;
}

footer .contact {
  display: flex;
  gap: 0.5rem;
  text-align: right;
}

footer .contact img {
  width: 36px;
  height: auto;
  margin: 0 0.5rem;
}
