/* =============================================
   ANUDARI ACHITSAIKHAN — PERSONAL WEBSITE
   Color Palette:
     Primary:    #2D6A4F (deep forest green)
     Accent:     #52B788 (sage green)
     Background: #F8F4EE (warm cream)
     Text:       #1A1A2E (near-black)
     Light:      #E8E0D4 (warm sand)
   ============================================= */

/* --- Reset & Base --- */
*, *::before, *::after {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
  scroll-padding-top: 70px;
}

body {
  font-family: 'Inter', sans-serif;
  font-size: 16px;
  line-height: 1.7;
  color: #1A1A2E;
  background-color: #F8F4EE;
  -webkit-font-smoothing: antialiased;
}

img {
  max-width: 100%;
  height: auto;
  display: block;
}

a {
  color: inherit;
  text-decoration: none;
}

ul {
  list-style: none;
}

/* --- Container --- */
.container {
  max-width: 1080px;
  margin: 0 auto;
  padding: 0 24px;
}

/* --- Navigation --- */
.navbar {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 1000;
  background: rgba(248, 244, 238, 0.92);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border-bottom: 1px solid rgba(45, 106, 79, 0.08);
  transition: box-shadow 0.3s ease;
}

.navbar.scrolled {
  box-shadow: 0 2px 20px rgba(0, 0, 0, 0.06);
}

.nav-container {
  max-width: 1080px;
  margin: 0 auto;
  padding: 0 24px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 64px;
}

.nav-logo {
  font-weight: 700;
  font-size: 1.25rem;
  color: #2D6A4F;
  letter-spacing: -0.02em;
}

.nav-menu {
  display: flex;
  gap: 32px;
}

.nav-link {
  font-size: 0.875rem;
  font-weight: 500;
  color: #1A1A2E;
  transition: color 0.2s ease;
  position: relative;
}

.nav-link::after {
  content: '';
  position: absolute;
  bottom: -4px;
  left: 0;
  width: 0;
  height: 2px;
  background: #52B788;
  transition: width 0.2s ease;
}

.nav-link:hover {
  color: #2D6A4F;
}

.nav-link:hover::after {
  width: 100%;
}

.nav-toggle {
  display: none;
  flex-direction: column;
  gap: 5px;
  background: none;
  border: none;
  cursor: pointer;
  padding: 4px;
}

.nav-toggle span {
  width: 24px;
  height: 2px;
  background: #1A1A2E;
  border-radius: 2px;
  transition: transform 0.3s ease, opacity 0.3s ease;
}

/* --- Hero --- */
.hero {
  min-height: 100vh;
  display: flex;
  align-items: center;
  justify-content: center;
  background: linear-gradient(160deg, #2D6A4F 0%, #1a4a35 100%);
  padding: 120px 24px 80px;
  text-align: center;
}

.hero-content {
  max-width: 720px;
}

.hero-name {
  font-size: 3rem;
  font-weight: 700;
  color: #fff;
  letter-spacing: -0.03em;
  margin-bottom: 12px;
}

.hero-title {
  font-size: 1rem;
  font-weight: 400;
  color: rgba(255, 255, 255, 0.7);
  margin-bottom: 40px;
  letter-spacing: 0.02em;
}

.hero-tagline {
  font-size: 1.75rem;
  font-weight: 600;
  color: #52B788;
  margin-bottom: 20px;
  line-height: 1.3;
}

.hero-sub {
  font-size: 1.05rem;
  font-weight: 300;
  color: rgba(255, 255, 255, 0.85);
  line-height: 1.7;
  margin-bottom: 40px;
}

.hero-cta {
  display: flex;
  gap: 16px;
  justify-content: center;
  flex-wrap: wrap;
}

/* --- Buttons --- */
.btn {
  display: inline-block;
  padding: 14px 32px;
  border-radius: 6px;
  font-size: 0.9rem;
  font-weight: 600;
  letter-spacing: 0.01em;
  transition: all 0.2s ease;
  cursor: pointer;
}

.btn-primary {
  background: #52B788;
  color: #fff;
}

.btn-primary:hover {
  background: #40a074;
  transform: translateY(-1px);
}

.btn-outline {
  background: transparent;
  color: #fff;
  border: 1.5px solid rgba(255, 255, 255, 0.5);
}

.btn-outline:hover {
  border-color: #fff;
  background: rgba(255, 255, 255, 0.08);
  transform: translateY(-1px);
}

/* --- Sections --- */
.section {
  padding: 96px 0;
}

.section-title {
  font-size: 2rem;
  font-weight: 700;
  color: #2D6A4F;
  margin-bottom: 48px;
  letter-spacing: -0.02em;
}

/* --- About --- */
.about {
  background: #fff;
}

.about-grid {
  display: grid;
  grid-template-columns: 1fr 1.5fr;
  gap: 56px;
  align-items: start;
}

.about-photo img {
  border-radius: 12px;
  box-shadow: 0 8px 30px rgba(0, 0, 0, 0.1);
}

.about-text p {
  margin-bottom: 20px;
  font-size: 1rem;
  line-height: 1.8;
}

.about-text p:last-child {
  margin-bottom: 0;
}

/* --- Focus Areas --- */
.focus-areas {
  background: #F8F4EE;
}

.cards-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 24px;
}

.card {
  background: #fff;
  border-radius: 12px;
  padding: 36px 32px;
  border: 1px solid #E8E0D4;
  transition: box-shadow 0.2s ease, border-color 0.2s ease;
}

.card:hover {
  box-shadow: 0 4px 20px rgba(45, 106, 79, 0.08);
  border-color: #52B788;
}

.card-icon {
  color: #52B788;
  margin-bottom: 16px;
}

.card-title {
  font-size: 1.15rem;
  font-weight: 600;
  color: #2D6A4F;
  margin-bottom: 12px;
}

.card p {
  font-size: 0.92rem;
  line-height: 1.7;
  color: #444;
  margin-bottom: 8px;
}

.card p:last-child {
  margin-bottom: 0;
}

/* --- Experience --- */
.experience {
  background: #fff;
}

.exp-subsection {
  margin-bottom: 56px;
}

.exp-subsection:last-child {
  margin-bottom: 0;
}

.exp-subsection-title {
  font-size: 1.25rem;
  font-weight: 600;
  color: #2D6A4F;
  padding-bottom: 12px;
  border-bottom: 2px solid #52B788;
  margin-bottom: 32px;
}

.exp-entry {
  margin-bottom: 36px;
  padding-left: 20px;
  border-left: 2px solid #E8E0D4;
}

.exp-entry:last-child {
  margin-bottom: 0;
}

.exp-role {
  font-size: 1.05rem;
  font-weight: 600;
  color: #1A1A2E;
  margin-bottom: 4px;
}

.exp-meta {
  font-size: 0.875rem;
  color: #52B788;
  font-weight: 500;
  margin-bottom: 12px;
}

.exp-bullets {
  list-style: disc;
  padding-left: 20px;
}

.exp-bullets li {
  font-size: 0.92rem;
  line-height: 1.7;
  color: #444;
  margin-bottom: 8px;
}

.exp-bullets li:last-child {
  margin-bottom: 0;
}

/* --- Education --- */
.education {
  background: #F8F4EE;
}

.edu-grid {
  display: grid;
  gap: 32px;
}

.edu-entry {
  background: #fff;
  border-radius: 12px;
  padding: 32px;
  border: 1px solid #E8E0D4;
}

.edu-degree {
  font-size: 1.1rem;
  font-weight: 600;
  color: #2D6A4F;
  margin-bottom: 6px;
}

.edu-meta {
  font-size: 0.875rem;
  color: #52B788;
  font-weight: 500;
  margin-bottom: 12px;
}

.edu-desc {
  font-size: 0.92rem;
  line-height: 1.7;
  color: #444;
}

/* --- Working with Data --- */
.data {
  background: #fff;
}

.data-narrative {
  margin-bottom: 40px;
}

.data-narrative p {
  font-size: 1rem;
  line-height: 1.8;
  margin-bottom: 16px;
}

.data-subtitle {
  font-size: 1.2rem;
  font-weight: 600;
  color: #2D6A4F;
  margin-bottom: 24px;
}

.data-group {
  margin-bottom: 36px;
}

.data-group:last-child {
  margin-bottom: 0;
}

.data-group-title {
  font-size: 0.95rem;
  font-weight: 600;
  color: #1A1A2E;
  margin-bottom: 16px;
  text-transform: uppercase;
  letter-spacing: 0.04em;
}

.skills-list {
  display: grid;
  gap: 16px;
}

.skill-item {
  background: #F8F4EE;
  border-radius: 8px;
  padding: 16px 20px;
  border-left: 3px solid #52B788;
}

.skills-foundational .skill-item {
  border-left-color: #E8E0D4;
}

.skill-name {
  display: block;
  font-weight: 600;
  font-size: 0.95rem;
  color: #2D6A4F;
  margin-bottom: 4px;
}

.skill-detail {
  font-size: 0.88rem;
  line-height: 1.6;
  color: #555;
}

.skills-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
}

.skill-tag {
  background: #F8F4EE;
  border-radius: 6px;
  padding: 10px 16px;
  font-size: 0.88rem;
  color: #444;
  line-height: 1.5;
}

.skill-tag small {
  color: #777;
}

.lang-list {
  display: flex;
  gap: 24px;
  flex-wrap: wrap;
}

.lang-item {
  background: #F8F4EE;
  border-radius: 6px;
  padding: 10px 20px;
  font-size: 0.92rem;
}

/* --- Contact --- */
.contact {
  background: #2D6A4F;
  color: #fff;
  padding: 96px 0;
}

.contact .section-title {
  color: #fff;
}

.contact-intro {
  font-size: 1.05rem;
  line-height: 1.7;
  color: rgba(255, 255, 255, 0.85);
  margin-bottom: 32px;
  max-width: 600px;
}

.contact-links {
  display: flex;
  flex-direction: column;
  gap: 16px;
}

.contact-item {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  font-size: 1rem;
  color: rgba(255, 255, 255, 0.9);
  transition: color 0.2s ease;
}

.contact-item:hover {
  color: #52B788;
}

.contact-item svg {
  flex-shrink: 0;
  color: #52B788;
}

/* =============================================
   RESPONSIVE
   ============================================= */

/* Tablet */
@media (max-width: 900px) {
  .about-grid {
    grid-template-columns: 1fr;
    gap: 32px;
  }

  .about-photo {
    max-width: 360px;
  }

  .cards-grid {
    grid-template-columns: 1fr;
  }

  .hero-name {
    font-size: 2.5rem;
  }

  .hero-tagline {
    font-size: 1.4rem;
  }
}

/* Mobile */
@media (max-width: 640px) {
  .nav-menu {
    display: none;
    position: absolute;
    top: 64px;
    left: 0;
    right: 0;
    background: rgba(248, 244, 238, 0.98);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    flex-direction: column;
    padding: 24px;
    gap: 20px;
    border-bottom: 1px solid #E8E0D4;
  }

  .nav-menu.active {
    display: flex;
  }

  .nav-toggle {
    display: flex;
  }

  .nav-toggle.active span:nth-child(1) {
    transform: rotate(45deg) translate(5px, 5px);
  }

  .nav-toggle.active span:nth-child(2) {
    opacity: 0;
  }

  .nav-toggle.active span:nth-child(3) {
    transform: rotate(-45deg) translate(5px, -5px);
  }

  .hero {
    padding: 100px 20px 60px;
    min-height: 90vh;
  }

  .hero-name {
    font-size: 2rem;
  }

  .hero-title {
    font-size: 0.9rem;
  }

  .hero-tagline {
    font-size: 1.25rem;
  }

  .hero-sub {
    font-size: 0.95rem;
  }

  .hero-cta {
    flex-direction: column;
    align-items: center;
  }

  .section {
    padding: 64px 0;
  }

  .section-title {
    font-size: 1.6rem;
    margin-bottom: 32px;
  }

  .card {
    padding: 24px 20px;
  }

  .exp-entry {
    padding-left: 16px;
  }

  .skills-tags {
    flex-direction: column;
  }

  .lang-list {
    flex-direction: column;
    gap: 12px;
  }

  .contact-links {
    gap: 20px;
  }
}
