:root {
  --bg-main: #f8faf9; /* Slightly brighter for a cleaner look */
  --bg-card: #ffffff;
  --primary: #a8cfc4;
  --primary-dark: #7fb3a6;
  --text-main: #1f2a28;
  --text-muted: #5a6b67; /* Improved contrast */
  --border: rgba(0, 0, 0, 0.04);
  --overlay: rgba(0, 0, 0, 0.4);
}

/* RESET & BASE */
*,
*::before,
*::after {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

body {
  font-family: "Inter", sans-serif;
  background: var(--bg-main);
  color: var(--text-main);
  line-height: 1.7; /* Better readability */
}

/* NAV - Added a shadow for depth */
.navbar {
  position: fixed;
  width: 100%;
  top: 0;
  padding: 20px 50px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  background: rgba(255, 255, 255, 0.8);
  backdrop-filter: blur(12px);
  z-index: 1000;
  border-bottom: 1px solid var(--border);
}

.nav-list {
  display: flex;
  gap: 30px;
  list-style: none;
}

.nav-link {
  text-decoration: none;
  color: var(--text-main);
  font-weight: 500;
  transition: color 0.3s;
}

.nav-link.active,
.nav-link:hover {
  color: var(--primary-dark);
}

/* HERO - Tighter typography */
.hero {
  height: 100vh;
  background: center/cover no-repeat;
  display: flex;
  justify-content: center;
  align-items: center;
  text-align: center;
}

.hero h1 {
  font-size: clamp(3rem, 8vw, 6rem); /* Responsive size */
  font-family: "Poppins", sans-serif;
  letter-spacing: -2px;
  margin-bottom: 10px;
}

.hero p {
  font-size: 1.2rem;
  color: #4e4e4e;
  font-weight: 300;
}

/* MAIN LAYOUT */
.main {
  max-width: 1000px;
  margin: 0 auto;
  padding: 100px 20px;
}

/* SECTIONS - Added more white space */
section {
  background: var(--bg-card);
  padding: 60px; /* Increased padding */
  border-radius: 20px;
  border: 1px solid var(--border);
  margin-bottom: 100px; /* More negative space between sections */
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.02);
}

h2 {
  font-family: "Poppins", sans-serif;
  font-size: 2.5rem;
  margin-bottom: 30px;
  display: flex;
  align-items: center;
  gap: 15px;
}

h2::after {
  content: "";
  height: 2px;
  flex-grow: 1;
  background: var(--primary);
  opacity: 0.3;
}

/* ABOUT CONTENT - Fixed width for readability */
.about-content {
  max-width: 700px;
}

.about-content p {
  margin-bottom: 20px;
  font-size: 1.1rem;
}

/* PROJECTS - Better card design */
.project-grid {
  display: grid;
  gap: 20px;
  margin-top: 20px;
}

.project-card {
  padding: 30px;
  border: 1px solid var(--border);
  border-radius: 12px;
  background: var(--bg-main);
  transition:
    transform 0.3s,
    border-color 0.3s;
  text-decoration: none;
  color: inherit;
  display: block;
}

.project-card:hover {
  transform: translateY(-5px);
  border-color: var(--primary);
}

/* BLOG */
#blog-cards {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 25px;
}

.blog-card {
  height: 250px; /* Taller cards */
  border-radius: 15px;
  background-size: cover;
  background-position: center;
  position: relative;
  overflow: hidden;
  transition: transform 0.3s;
}

.blog-card:hover {
  transform: scale(1.02);
}

/* CONTACT */
/* CONTACT SECTION IMPROVEMENTS */
.contact-container {
  text-align: center;
  padding: 60px 0; /* More vertical breathing room */
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 20px;
}

.email-link {
  display: inline-block;
  background: var(--primary-dark);
  color: white !important; /* Force white text */
  padding: 15px 40px;
  border-radius: 50px;
  text-decoration: none;
  font-size: 1.2rem;
  font-weight: 500;
  transition: all 0.3s ease;
  box-shadow: 0 4px 15px rgba(127, 179, 166, 0.3);
}

.email-link:hover {
  transform: translateY(-3px);
  box-shadow: 0 6px 20px rgba(127, 179, 166, 0.4);
  background: var(--text-main); /* Darker on hover for contrast */
}

/* Add a sub-text or secondary info to fill space */
.contact-footer {
  margin-top: 40px;
  padding-top: 20px;
  border-top: 1px solid var(--border);
  width: 100%;
  color: var(--text-muted);
  font-size: 0.9rem;
}

/* MOBILE */
@media (max-width: 768px) {
  .navbar {
    padding: 15px 20px;
  }
  .main {
    padding: 60px 15px;
  }
  section {
    padding: 30px;
    margin-bottom: 60px;
  }
  #blog-cards {
    grid-template-columns: 1fr;
  }
  .hero h1 {
    font-size: 3rem;
  }
}
