/* ===== RESET & GLOBAL ===== */
* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

body {
  font-family: 'Source Serif 4', serif;
  line-height: 1.6;
  background-color: #BED787;  /* main background */
  color: #2E1F0F;             /* main text color */
}

a {
  color: #2A4D69;
  font-weight: 600;
  text-decoration: none;
}

a:hover {
  color: #DAE9BB;
}

html {
  scroll-behavior: smooth;
}

/* ===== NAVBAR ===== */
.navbar {
  position: fixed;
  top: 0;
  left: 50%;
  transform: translateX(-50%);
  width: calc(100% - 40px);
  max-width: 1400px;
  background: #DAE9BB;
  padding: 0.75rem 1.5rem;
  display: flex;
  justify-content: space-between;
  align-items: center;
  box-shadow: 0 2px 6px rgba(46, 31, 15, 0.2);
  z-index: 1000;
}

.logo a {
  font-weight: 600;
  font-size: 1.2rem;
  color: inherit;
}

.nav-links {
  list-style: none;
  display: flex;
  gap: 1.5rem;
}

.nav-links a {
  font-weight: 500;
  font-size: 15px;
  transition: color 0.2s;
}

/* Mobile toggle button */
.nav-toggle {
  display: none;
  background: none;
  border: none;
  font-size: 1.5rem;
  cursor: pointer;
  color: #2E1F0F;
}

/* Responsive Navbar */
@media (max-width: 768px) {
  .nav-links {
    flex-direction: column;
    position: absolute;
    top: 60px;
    right: 0;
    background: #DAE9BB;
    width: 200px;
    padding: 1rem;
    display: none;
    border-radius: 0 0 12px 12px;
  }

  .navbar.active .nav-links {
    display: flex;
  }

  .nav-toggle {
    display: block;
  }
}

/* ===== SECTIONS ===== */
.section {
  padding: 70px 10%;
}

.intro {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: center;
  gap: 2rem;
  margin-top: 80px;
}

.intro-photo {
  width: 300px;
  height: 300px;
  border-radius: 50%;
  object-fit: cover;
  background: #DAE9BB;
}

.intro-right {
  max-width: 600px;
}

.subtitle {
  font-size: 1rem;
  color: rgba(46, 31, 15, 0.8);
  margin-bottom: 1rem;
}

.intro-right h2 {
  font-size: 2rem;
  line-height: 1.4;
}

/* ABOUT */
.about {
  background: #DAE9BB;
  border-radius: 12px;
  padding: 2rem;
  max-width: 900px;
  margin: auto;
}

.about p {
  margin-bottom: 1.5rem;
}

.skills {
  margin-top: 1rem;
}

/* ===== PROJECTS ===== */
.projects h2 {
  text-align: center;
  margin-bottom: 2rem;
}

.project-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 2rem;
}

.project-card {
  border: 1px solid #ddd;
  background: #DAE9BB;
  padding: 2rem;
  border-radius: 12px;
  text-align: center;
  transition: transform 0.3s, background 0.3s, color 0.3s, box-shadow 0.3s;
}

.project-card:hover {
  transform: translateY(-5px);
  background: #2A4D69;
  color: #fff;
  box-shadow: 0 8px 16px rgba(0,0,0,0.2);
}

.project-skills {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 0.5rem;
  margin-top: 1rem;
}

.skill {
  background: #BED787;
  color: #2E1F0F;
  padding: 0.3rem 0.6rem;
  border-radius: 12px;
  font-size: 0.8rem;
  transition: background 0.3s, color 0.3s;
}

.project-card:hover .skill {
  background: #DAE9BB;
  color: #2A4D69;
}

.btn {
  display: inline-block;
  margin-top: 1rem;
  padding: 0.5rem 1rem;
  background: #2A4D69;
  color: #fff;
  font-weight: 500;
  border-radius: 8px;
  transition: background 0.3s, color 0.3s;
}

.project-card:hover .btn,
.btn:hover {
  background: #BED787;
  color: #2E1F0F;
}

/* ===== TIMELINE / EXPERIENCE ===== */
.experience h2 {
  text-align: center;
  margin-bottom: 2rem;
}

.timeline {
  position: relative;
  margin: 2rem auto;
  padding-left: 2rem;
  border-left: 3px solid #2A4D69;
}

.timeline-item {
  margin-bottom: 2.5rem;
  padding-left: 1.5rem;
}

.timeline-date {
  font-weight: bold;
  color: #2A4D69;
  margin-bottom: 0.5rem;
}

.timeline-content {
  background: #DAE9BB;
  padding: 1rem;
  border-radius: 12px;
  transition: background 0.3s;
}

.timeline-content:hover {
  background: #BED787;
}

.sub-timeline {
  margin-top: 1rem;
  padding-left: 1rem;
  border-left: 2px solid #ccc;
}

.sub-timeline li {
  margin-bottom: 0.75rem;
  list-style: none;
  position: relative;
  padding-left: 1rem;
}

.sub-timeline li::before {
  content: "•";
  position: absolute;
  left: -0.5rem;
  color: #2E1F0F;
}

.sub-date {
  font-weight: bold;
  color: #2E1F0F;
  margin-right: 0.5rem;
}

.sub-detail {
  color: #333;
}

/* ===== CONNECT ===== */
.connect {
  text-align: center;
  background: #2A4D69;
  color: #fff;
  padding: 3rem 1rem;
}

.social-links a {
  color: #BED787;
  font-weight: bold;
  margin: 0 0.5rem;
}

.social-links a:hover {
  color: #DAE9BB;
}

/* ===== RESPONSIVENESS ===== */
@media (max-width: 600px) {
  .intro-photo {
    width: 200px;
    height: 200px;
  }

  .intro-right h2 {
    font-size: 1.5rem;
  }

  .section {
    padding: 50px 5%;
  }
}
