body {
  margin: 0;
  font-family: 'Open Sans', sans-serif;
  background-color: #f4f4f4;
  color: #333;
  line-height: 1.6;
}

.hero {
  background-color: #799078;
  color: white;
  text-align: center;
  padding: 2rem;
  border-bottom: 5px solid #5f705f;
}

.container {
  max-width: 900px;
  margin: 2rem auto;
  background: white;
  padding: 2rem;
  border-radius: 12px;
  box-shadow: 0 0 10px rgba(0,0,0,0.1);
}


h1{
  color:white;
}
h2 {
  color: #5f705f;
}

h3, h4 {
  color: #7D8F69;
  margin-top: 1.5rem;
}

.subtitle {
  font-size: 1.25rem;
  color: #e1e1e1;
  font-style: italic;
  margin-top: 0.5rem;
}

p {
  margin-bottom: 1rem;
}

ul {
  padding-left: 1.25rem;
  margin-bottom: 1.5rem;
}

ul li {
  margin-bottom: 0.5rem;
}

.tools {
  list-style: none;
  padding-left: 0;
}

.tools li {
  display: inline-block;
  background: #adb9ad;
  color: white;
  margin: 0.25rem;
  padding: 0.4rem 0.8rem;
  border-radius: 20px;
  font-size: 0.9rem;
}

img {
  width: 100%;
  margin-top: 1rem;
  border-radius: 8px;
  box-shadow: 0 0 5px rgba(0,0,0,0.1);
}

.scroll-box {
  display: flex;
  overflow-x: auto;
  gap: 1rem;
  padding: 1rem 0;
  scroll-snap-type: x mandatory;
  border: 1px solid #ddd;
  border-radius: 10px;
  background: #fafafa;
}

.scroll-box img {
  flex: 0 0 auto;
  width: 240px;
  height: auto;
  border-radius: 10px;
  box-shadow: 0 2px 6px rgba(0, 0, 0, 0.1);
  scroll-snap-align: start;
  transition: transform 0.2s ease-in-out;
}

.scroll-box img:hover {
  transform: scale(1.03);
}

.wireframe-item {
  flex: 0 0 auto;
  width: 240px;
  text-align: center;
}

.wireframe-item .label {
  font-size: 0.9rem;
  font-weight: 600;
  margin-top: 0.5rem;
  color: #ffffff;
  background-color: #6c8ca1;
  padding: 0.3rem 0.6rem;
  border-radius: 8px;
  display: inline-block;
  box-shadow: 0 2px 6px rgba(0, 0, 0, 0.08);
  border: 1px solid #5a7689;
}

.persona-gallery {
  display: flex;
  flex-direction: column;
  gap: 2rem;
  margin-top: 2rem;
}

.persona-gallery img {
  width: 100%;
  max-width: 900px;
  margin: 0 auto;
  border-radius: 12px;
  box-shadow: 0 2px 8px rgba(0,0,0,0.1);
}


/* Global Background + Text */
body.dark-mode {
  background-color: #1e1e1e;
  color: #f0f0f0;
}

/* Headings */
body.dark-mode h1,
body.dark-mode h2 {
  color: #5f705f;
}

body.dark-mode h3,
body.dark-mode h4 {
  color: #7D8F69;
}

/* Paragraphs and intro text */
body.dark-mode p,
body.dark-mode .section-intro {
  color: #4A4A4A;
}

/* Navigation Bar */
body.dark-mode nav {
  background-color: #2b2b2b;
}

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

/* Container and sections */
body.dark-mode .container {
  background-color: #2a2a2a;
  color: #f0f0f0;
}

/* Scrollbox background (wireframe gallery) */
body.dark-mode .scroll-box {
  background-color: #2a2a2a;
}

/* Wireframe image labels */
body.dark-mode .wireframe-item .label {
  background-color: #50677c;   /* Slate blue */
  border-color: #3d5168;
  color: #ffffff;
}






.section-box {
  max-width: 900px;
  margin: 2rem auto;
  background: white;
  padding: 2rem;
  border-radius: 12px;
  box-shadow: 0 0 10px rgba(0,0,0,0.1);
}

.section-box h3 {
  color: #5f705f;
  font-size: 1.5rem;
  margin-bottom: 0.5rem;
}

.section-intro {
  font-size: 1rem;
  color: #555;
  margin-bottom: 1.5rem;
}



/* Navigation Bar */
body.dark-mode nav {
  background-color: #2b2b2b;
}
body.dark-mode a {
  color: #c0ffc0;
}



nav {
  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;
  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; /* Muted olive underline */
  transition: width 0.3s ease;
  transform: rotate(0deg);
}

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

.nav-links a:hover {
  color: #7D8F69; /* Subtle color change on hover */
}


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

}

.toggle-label{
  font-size: 0.9rem;
  color: #4A4A4A;
}

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

.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%;
}


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





/* Global dark mode background and text */
body.dark-mode {
  background-color: #1e1e1e;
  color: #f0f0f0;
}

/* Navigation Bar */
body.dark-mode nav {
  background-color: #2b2b2b;
}
body.dark-mode a {
  color: #c0ffc0;
}

/* Hero Section */
body.dark-mode #hero {
  background-color: #2a2a2a;
  color: #f0f0f0;
}
body.dark-mode #hero .button {
  background-color: #657c5a;
}
body.dark-mode #hero .button:hover {
  background-color: #809774;
}

/* Sections */
body.dark-mode #resume,
body.dark-mode #contact,
body.dark-mode .project-card,
body.dark-mode .resume-card {
  background-color: #2a2a2a;
  color: #f0f0f0;
}

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


body.dark-mode .about-container,
body.dark-mode .project-grid {
  background-color: #1e1e1e;
}

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

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



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

/* Buttons */
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;
}

/* Toggle Switch */
body.dark-mode .slider {
  background-color: #7D8F69;
}

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


body.dark-mode p,
body.dark-mode .section-intro {
  color: #ccc;
}

body.dark-mode h3,
body.dark-mode h2,
body.dark-mode h1 {
  color: #f0f0f0;
}

