/* ============================
   GLOBAL RESET & BASE STYLES
   ============================ */

* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

body {
  font-family: 'Open Sans', sans-serif;
  background-color: #F7F5F2;
  color: #4A4A4A;
  line-height: 1.6;
}

nav,
#hero,
section,
.button,
input,
textarea {
  transition: background-color 0.3s ease, color 0.3s ease;
}

/* ============================
   NAVIGATION BAR
   ============================ */

nav {
  position: fixed;
  top: 0;
  width: 100%;
  z-index: 999;
  background-color: #ffffff;
  padding: 20px 0;
  box-shadow: 0 1px 5px rgba(0,0,0,0.05);
}

.nav-container {
  display: flex;
  justify-content: flex-end;
  align-items: center;
  padding: 10px 20px;
  max-width: 1200px;
  margin: 0 auto;
}

.nav-links {
  list-style: none;
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 20px;
}

.nav-links a {
  text-decoration: none;
  color: #4A4A4A;
  font-weight: bold;
  position: relative;
  padding-bottom: 5px;
  transition: color 0.3s ease;
}

.nav-links a::after {
  content: '';
  position: absolute;
  width: 0;
  height: 2px;
  display: block;
  margin-top: 5px;
  right: 0;
  background: #7D8F69;
  transition: width 0.3s ease;
}

.nav-links a:hover::after {
  width: 100%;
  left: 0;
}

.nav-links a:hover {
  color: #7D8F69;
}


/* ============================
   DARK MODE TOGGLE SWITCH
   ============================ */

.dark-toggle {
  display: flex;
  align-items: center;
  gap: 8px;
}

.toggle-switch {
  position: relative;
  display: inline-block;
  width: 42px;
  height: 22px;
}

.toggle-switch input {
  opacity: 0;
  width: 0;
  height: 0;
}

.slider {
  position: absolute;
  cursor: pointer;
  top: 0; left: 0; right: 0; bottom: 0;
  background-color: #ccc;
  border-radius: 34px;
  transition: background-color 0.3s;
}

.slider::before {
  content: "";
  position: absolute;
  height: 16px; width: 16px;
  left: 3px; bottom: 3px;
  background-color: white;
  border-radius: 50%;
  transition: transform 0.3s ease;
}

input:checked + .slider {
  background-color: #7D8F69;
}

input:checked + .slider::before {
  transform: translateX(20px);
}

.slider.round {
  border-radius: 34px;
}

.slider.round::before {
  border-radius: 50%;
}




/* ============================
   HERO SECTION
   ============================ */

#hero {
  animation: fadeIn 1s ease-in;
  display: flex;
  flex-direction: row;
  justify-content: space-between;
  align-items: center;
  max-width: 1200px;
  margin: 0 auto;
  padding: 140px 20px;
  background-color: #A8BDB0;
  color: #ffffff;
}

.hero-container {
  display: flex;
  flex: 1;
}

.hero-text {
  flex: 1 1 50%;
  min-width: 300px;
  margin-right: 40px;
}

.hero-text h1 {
  font-size: 3rem;
  margin-bottom: 20px;
}

.hero-roles {
  font-size: 1.2rem;
  margin-bottom: 20px;
}

.hero-tagline {
  font-size: 1rem;
  margin-bottom: 30px;
  line-height: 1.5;
}

.button {
  display: inline-block;
  margin-top: 20px;
  padding: 12px 24px;
  background-color: #7D8F69;
  color: #ffffff;
  text-decoration: none;
  font-weight: bold;
  border-radius: 8px;
  transition: background-color 0.3s ease;
}

.button:hover {
  background-color: #5F705F;
}

.hero-signature {
  font-style: italic;
  font-size: 0.9rem;
  color: #eee;
  margin-top: 1rem;
}

.hero-image {
  flex: 1 1 50%;
  min-width: 300px;
  text-align: center;
}

.hero-image img {
  width: 100%;
  height: auto;
  border-radius: 12px;
  object-fit: cover;
}

/* ============================
   ABOUT SECTION
   ============================ */

#about {
  padding: 100px 20px;
  background-color: #F7F5F2;
  color: #4A4A4A;
  text-align: center;
}

#about h1 {
  color: #7D8F69;
  margin-bottom: 40px;
}

.about-container {
  max-width: 1000px;
  margin: 0 auto;
}

.about-top {
  display: flex;
  flex-wrap: wrap;
  gap: 40px;
  justify-content: center;
  align-items: flex-start;
  margin-bottom: 50px;
}

.about-text {
  flex: 2 1 50%;
  text-align: left;
  font-size: 1.1rem;
}

.about-facts {
  flex: 1 1 30%;
  background-color: #A8BDB0;
  color: white;
  padding: 20px;
  border-radius: 8px;
  box-shadow: 0 4px 8px rgba(0,0,0,0.05);
}


.about-facts ul {
  list-style: none;
  padding: 0;
  margin: 0;
}

.about-facts li {
  margin-bottom: 10px;
}

.about-photo {
  flex: 1 1 30%;
  display: flex;
  justify-content: center;
  align-items: center;
}

.about-photo img {
  width: 250px;
  height: 250px;
  object-fit: cover;
  border-radius: 50%;
  box-shadow: 0 4px 12px rgba(0,0,0,0.1);
}

.motto {
  margin-top: 30px;
  font-style: italic;
  font-size: 1.4rem;
  color: #7D8F69;
  background-color: #f1f5f0;
  padding: 15px 20px;
  border-left: 4px solid #A8BDB0;
  display: inline-block;
  margin-bottom: 40px;
}

.current-project {
  background-color: #ffffff;
  border: 2px solid #A8BDB0;
  padding: 20px;
  margin: 40px auto;
  border-radius: 8px;
  box-shadow: 0 4px 8px rgba(0,0,0,0.05);
  text-align: center;
  max-width: 700px;
}

.current-project h2 {
  color: #7D8F69;
  margin-bottom: 10px;
}

#about p {
  margin-bottom: 20px;
}

/* ============================
   PROJECTS SECTION
   ============================ */

#projects {
  padding: 120px 20px;
  background-color: #f1f5f0;
}

#projects h1 {
  color: #7D8F69;
  text-align: center;
  margin-bottom: 10px;
}

.section-intro {
  font-size: 1.1rem;
  color: #4A4A4A;
  margin-bottom: 40px;
  text-align: center;
  max-width: 800px;
  margin-left: auto;
  margin-right: auto;
}

.project-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
  gap: 30px;
  padding: 40px 20px;
}

.project-card {
  background-color: #ffffff;
  padding: 1rem;
  border-radius: 12px;
  box-shadow: 0 2px 5px rgba(0, 0, 0, 0.05);
  transition: transform 0.2s ease;
  text-align: left;
}

.project-card img {
  width: 100%;
  height: 200px;
  object-fit: cover;
  border-radius: 8px;
}

.project-card h3 {
  font-size: 1.2rem;
  margin: 0.5rem 0;
}

.project-card p {
  font-size: 0.95rem;
  color: #555;
}

.project-card:hover {
  transform: translateY(-5px);
  box-shadow: 0 8px 16px rgba(0, 0, 0, 0.1);
}

.project-card a {
  color: #4A4A4A;
  font-weight: bold;
  text-decoration: none;
}

.view-project {
  display: inline-block;
  margin-top: 0.75rem;
  color: #799078;
  font-weight: 600;
  text-decoration: none;
}

/* ============================
   RESUME SECTION
   ============================ */

#resume {
  max-width: 1080px;
  margin: 120px auto;
  padding: 60px 20px;
  background-color: #ffffff;
  border-radius: 12px;
  box-shadow: 0 4px 16px rgba(0, 0, 0, 0.04);
  text-align: center;
  color: #4A4A4A;
}

#resume h1 {
  color: #7D8F69;
  margin-bottom: 10px;
}

.resume-skills,
.resume-experience,
.resume-education,
.resume-learning,
.resume-download {
  margin-bottom: 40px;
  text-align: left;
}

#resume h3 {
  color: #7D8F69;
  font-size: 1.2rem;
  font-weight: 600;
  margin-top: 40px;
  margin-bottom: 10px;
}

.resume-skills ul {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  padding: 0;
  list-style: none;
  justify-content: center;
}

.resume-skills li {
  background-color: #A8BDB0;
  color: #ffffff;
  padding: 6px 12px;
  border-radius: 20px;
  font-size: 0.95rem;
  display: flex;
  align-items: center;
  gap: 8px;
  white-space: nowrap;
}

.resume-skills li i {
  font-size: 1.1rem;
}

.resume-experience ul,
.resume-education ul,
.resume-learning ul {
  padding-left: 20px;
  list-style-type: disc;
}

.resume-experience ul li,
.resume-education ul li,
.resume-learning ul li {
  margin-bottom: 10px;
}

.resume-education {
  border-top: 1px solid #ddd;
  padding-top: 30px;
}

.resume-download {
  margin-top: 50px;
  text-align: center;
}

.resume-download .privacy-note {
  font-size: 0.9rem;
  color: #888;
  margin-top: 10px;
}

/* ============================
   CONTACT SECTION
   ============================ */

#contact {
  max-width: 700px;
  margin: 160px auto;
  padding: 60px 20px;
  background-color: #ffffff;
  border-radius: 12px;
  box-shadow: 0 4px 16px rgba(0, 0, 0, 0.05);
  text-align: center;
  color: #4A4A4A;
}

#contact h2 {
  color: #7D8F69;
  font-size: 2rem;
  margin-bottom: 10px;
}

#contact .section-intro {
  font-size: 1.1rem;
  color: #666;
  margin-bottom: 40px;
}

.contact-section {
  max-width: 600px;
  margin: 0 auto;
  padding: 2rem;
  text-align: center;
}

.contact-form {
  display: flex;
  flex-direction: column;
  gap: 20px;
}

.contact-form input,
.contact-form textarea {
  width: 100%;
  padding: 1rem;
  border: 1px solid #ccc;
  border-radius: 8px;
  font-family: inherit;
  font-size: 1rem;
}

.contact-form textarea {
  min-height: 150px;
  resize: vertical;
}

.contact-form button {
  background-color: #7D8F69;
  color: white;
  border: none;
  padding: 1rem 2rem;
  border-radius: 8px;
  font-size: 1rem;
  cursor: pointer;
  transition: background-color 0.3s ease;
}

.contact-form button:hover {
  background-color: #5f705f;
}

.contact-reachout {
  margin-top: 1rem;
  color: #4A4A4A;
}

.contact-reachout a {
  color: #7D8F69;
  text-decoration: none;
}

.contact-reachout a:hover {
  text-decoration: underline;
}

/* ============================
   MOBILE TWEAKS (ALL SECTIONS)
   ============================ */

@media (max-width: 768px) {
  #hero {
    flex-direction: column;
    align-items: center;
    text-align: center;
    padding: 160px 20px;
  }

  .hero-container {
    flex-direction: column;
  }

  .hero-text {
    flex: 1 1 100%;
    margin-right: 0;
    margin-bottom: 20px;
    max-width: 90%;
  }

  .hero-text h1 {
    font-size: 2rem;
  }

  .hero-roles,
  .hero-tagline {
    font-size: 1rem;
  }

  .hero-image {
    flex: 1 1 100%;
    max-width: 90%;
    margin-top: 20px;
  }

  .about-top {
    flex-direction: column;
    align-items: center;
    text-align: center;
  }

  .about-text,
  .about-facts,
  .about-photo {
    flex: 1 1 100%;
    max-width: 90%;
    text-align: center;
    margin-bottom: 20px;
  }

  .about-photo img {
    width: 200px;
    height: 200px;
  }

  .motto {
    font-size: 1.2rem;
    text-align: center;
  }

  #projects {
    padding-top: 140px;
  }

  .project-grid {
    gap: 20px;
    padding: 20px 10px;
  }

  .project-card img {
    height: 150px;
  }

  #resume {
    padding: 40px 10px;
    margin: 140px auto;
  }

  .resume-skills ul {
    justify-content: center;
    gap: 8px;
  }

  #resume h3 {
    margin-top: 30px;
  }

  #contact {
    padding: 40px 10px;
    margin: 160px auto;
  }

  .contact-section {
    padding: 1rem;
  }
}

/* ============================
   FINAL DARK MODE BLOCK
   ============================ */

body.dark-mode {
  background-color: #1e1e1e;
  color: #f0f0f0;
}

body.dark-mode a {
  color: #c0ffc0;
}

body.dark-mode nav {
  background-color: #2b2b2b;
}

body.dark-mode .button,
body.dark-mode button {
  background-color: #657c5a;
  color: white;
}

body.dark-mode .button:hover,
body.dark-mode button:hover {
  background-color: #809774;
}

body.dark-mode #hero {
  background-color: #2a2a2a;
  color: #f0f0f0;
}

body.dark-mode #about {
  background-color: #1e1e1e;
  color: #f0f0f0;
}

body.dark-mode .about-facts {
  background-color: #2b2b2b;
}

body.dark-mode .motto {
  background-color: #2a2a2a;
  color: #c0ffc0;
  border-left-color: #444;
}

body.dark-mode .current-project {
  background-color: #2b2b2b;
  border-color: #444;
}

body.dark-mode .current-project h2 {
  color: #c0ffc0;
}

body.dark-mode .current-project p {
  color: #f0f0f0;
}

body.dark-mode #projects {
  background-color: #1e1e1e;
  color: #f0f0f0;
}

body.dark-mode .project-card {
  background-color: #2a2a2a;
  color: #f0f0f0;
}

body.dark-mode .project-card a {
  color: #c0ffc0;
}

body.dark-mode #resume {
  background-color: #2a2a2a;
  color: #f0f0f0;
}

body.dark-mode .resume-skills li {
  background-color: #2b2b2b;
}

body.dark-mode #resume h3 {
  color: #c0ffc0;
}

body.dark-mode #contact {
  background-color: #2a2a2a;
  color: #f0f0f0;
}

body.dark-mode input,
body.dark-mode textarea {
  background-color: #333;
  color: #fff;
  border: 1px solid #888;
}

body.dark-mode .contact-form button {
  background-color: #657c5a;
}

body.dark-mode .contact-form button:hover {
  background-color: #809774;
}
