* {
  box-sizing: border-box;
}

html {
  height: 100%;
  margin: 0;
  padding: 0;
  scroll-behavior: smooth;
}

body {
  font-family: 'Segoe UI', sans-serif;
  padding-top: 160px;
  line-height: 1.6;
  background: #f9f9f9;
  color: #333;
  display: flex;
  flex-direction: column;
  min-height: 100vh;
}

a {
  color: #e67e22;
  text-decoration: none;
}

a:hover {
  text-decoration: underline;
}

main {
  flex: 1;
}

section {
  padding: 2rem;
  margin: auto;
}

section:not(.resume-section) {
  padding: 2rem;
  max-width: 800px;
  margin: auto;
}

.content-wrapper {
  max-width: 800px;
  margin: auto;
  padding: 0 1rem;
}

header {
  background: #2c3e50;
  color: white;
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  z-index: 1000;
}

.header-inner {
  max-width: 960px;
  margin: 0 auto;
  padding: 1rem 2rem;
  text-align: center;
}

nav h1 {
  margin: 0;
  font-size: 2rem;
  margin-bottom: 0.5rem;
}

nav ul {
  list-style: none;
  padding: 0;
  margin: 1rem 0;
  display: flex;
  justify-content: center;
  gap: 1.5rem;
  flex-wrap: wrap;
}

nav ul li a {
  color: white;
  font-weight: bold;
  text-decoration: none;
}

nav ul li a:hover {
  text-decoration: underline;
}

.intro-message {
  text-align: center;
  font-size: 1.2rem;
  margin-top: 0.5rem;
  color: #ccc;
}

footer {
  background-color: #2c3e50;
  color: white;
  padding: 1rem 2rem;
  text-align: center;
  width: 100%;
  margin-top: auto;
}

.footer-inner {
  max-width: 800px;
  margin: 0 auto;
  padding: 0 1rem;
}

#hero {
  background: #34495e;
  color: white;
  padding: 4rem 2rem;
  text-align: center;
}

.cta {
  display: inline-block;
  margin-top: 1rem;
  padding: 0.75rem 1.5rem;
  background: #e67e22;
  color: white;
  border-radius: 5px;
  font-weight: bold;
  text-decoration: none;
}

.cta:hover {
  background: #cf6a1c;
}

.project {
  border: 1px solid #ddd;
  padding: 1.5rem;
  margin: 1rem auto;
  max-width: 800px;
  background: #fff;
  border-radius: 8px;
  box-shadow: 0 2px 6px rgba(0,0,0,0.05);
}

.project h3 {
  margin-top: 0;
}

.project a.cta {
  margin-top: 1rem;
  display: inline-block;
}

#project-list li {
  margin: 0.75rem 0;
}

#project-list a {
  font-weight: bold;
  text-decoration: none;
}


#blog-list li {
  margin: 0.75rem 0;
}

#blog-list a {
  font-weight: bold;
}

main > article {
  padding: 2rem;
  max-width: 800px;
  margin: auto;
}

article img {
  max-width: 100%;
  height: auto;
  display: block;
  margin: 1rem auto;
}

.resume-section {
  width: 100%;
  padding: 2rem;
  background: #f9f9f9;
}

.resume-section h2,
.resume-section p,
.resume-section .download-container {
  text-align: center;
  max-width: 800px;
  margin: 0 auto 1rem auto;
}

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

.pdf-frame {
  width: 100%;
  height: 1000px;
  border: none;
}


.download-container {
  margin-top: 1.5rem;
}

.hero-buttons {
  display: flex;
  flex-direction: row;
  justify-content: center;
  gap: 1rem;
  flex-wrap: wrap;
  margin-top: 1rem;
}

.hero-buttons .cta {
  padding: 0.75rem 1.5rem;
  background: #e67e22;
  color: white;
  border-radius: 5px;
  font-weight: bold;
  text-decoration: none;
  text-align: center;
}

.hero-buttons .cta:hover {
  background: #cf6a1c;
}

.hidden {
  display: none;
}

#interests-toggle {
  text-align: center;
  margin-top: 2rem;
}

.divider-button {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 100%;
  margin: 2rem 0;
  background: none;
  border: none;
  font-size: 1.2rem;
  font-weight: bold;
  color: #333;
  cursor: pointer;
  position: relative;
}

.divider-button::before,
.divider-button::after {
  content: "";
  flex: 1;
  height: 1px;
  background: #ccc;
  margin: 0 1rem;
}


.divider-with-label {
  display: flex;
  align-items: center;
  text-align: center;
  margin: 2rem 0;
}

.divider-with-label hr {
  flex: 1;
  border: none;
  height: 1px;
  background-color: #ccc;
}

.divider-with-label span {
  padding: 0 1rem;
  font-weight: bold;
  font-size: 1.2rem;
  color: #333;
}



@media (max-width: 600px) {
  body {
    padding-top: 180px;
  }

  article {
    padding: 1rem;
  }
}

@media (min-width: 1024px) {
  .pdf-container {
    max-width: 1200px;
  }

  .pdf-frame {
    height: 1200px;
  }
}

@media (max-width: 600px) {
  .hero-buttons {
    flex-direction: column;
    align-items: center;
  }

  .hero-buttons .cta {
    width: 100%;
    max-width: 250px;
  }
}
