/* -------------------------------------------------------------------------- */
/*                            Theme Variables                                 */
/* -------------------------------------------------------------------------- */
[data-theme="light"] {
  --color-bg: #e6e6e6;
  --color-accent: #ff1e00;
  --color-text: #000000;
}

[data-theme="dark"] {
  --color-bg: #232425;
  --color-accent: #ff8170;
  --color-text: #e6e6e6;
}

/* -------------------------------------------------------------------------- */
/*                           Reset & Global Styles                            */
/* -------------------------------------------------------------------------- */
* {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
  transition: color 0.3s ease, background-color 0.3s ease;
}

html {
  overflow-y: scroll;
  height: 100%;
  font: 100%/1.5 sans-serif;
  word-wrap: break-word;
  margin: 0 auto;
  padding: 1.5em;
}

@media (min-width: 768px) {
  html {
    font-size: 125%;
    max-width: 42em;
  }
}

body {
  font-family: Arial, sans-serif;
  margin: 0;
  color: var(--color-text); /* Corrected from var(--color--bg) */
  background-color: var(--color-bg);
}

/* -------------------------------------------------------------------------- */
/*                                Containers                                  */
/* -------------------------------------------------------------------------- */
.container {
  max-width: 800px;
  margin: 40px auto;
  border-radius: 8px;
  position: relative;
  padding-bottom: 5vh;
  opacity: 0;
  animation: fadeIn 0.3s ease-in forwards;
}

@keyframes fadeIn {
  to {
    opacity: 1;
  }
}

.container a {
  color: var(--color-accent);
  text-decoration: none;
}

.container a:hover,
.container a:focus,
.container a:active {
  text-decoration: none;
  color: var(--color-accent);
}

/* -------------------------------------------------------------------------- */
/*                               Typography                                   */
/* -------------------------------------------------------------------------- */
p {
  color: var(--color-text);
}

h1,
h2,
h3,
h4 {
  margin: 2.5rem 0 1.5rem;
  line-height: 1.25;
  color: var(--color-text);
}

.subtitle {
  margin: 0.5rem 0 1.5rem;
  line-height: 1.25;
  color: var(--color-text);
}

.title {
  font-size: 2.5em;
  color: var(--color-text);
}

/* -------------------------------------------------------------------------- */
/*                                 Images                                     */
/* -------------------------------------------------------------------------- */
img {
  max-width: 100%;
  margin: 0.5em auto;
}

/* -------------------------------------------------------------------------- */
/*                           Header & Navigation                            */
/* -------------------------------------------------------------------------- */
header {
  display: flex;
  justify-content: space-between;
}

header nav {
  display: flex;
  justify-content: space-between;
}

header nav a {
  padding-right: 20px;
}

header a {
  color: var(--color-accent);
  text-decoration: none;
}

/* Material Symbols (Icons) */
.material-symbols-outlined {
  margin-left: 1em;
  line-height: 1.25;
  background: none;
  border: none;
  padding: 0;
  cursor: pointer;
  outline: inherit;
  color: var(--color-text);
}

/* -------------------------------------------------------------------------- */
/*                             Blog Posts List                                */
/* -------------------------------------------------------------------------- */
.posts {
  list-style: none;
  padding: 0;
  margin: 0;
}

.posts .post {
  padding: 10px 0;
  border-bottom: 1px solid #ddd;
}

.posts .post:last-child {
  border-bottom: none;
}

.posts .post {
  text-decoration: none;
  color: var(--color-text);
}

/* Individual Post Items */
.posts .post a {
  display: flex;
  padding: 0.5em 0;
  text-decoration: none;
  color: var(--color-text);
}

.posts .post a:focus,
.posts .post a:active {
  background: none;
}

.posts .post a:hover {
  background: rgba(200, 200, 200, 0.2);
}

.posts .post .date {
  font-family: monospace;
  font-size: 1rem;
  vertical-align: middle;
  padding-right: 2rem;
  color: var(--color-text);
  white-space: nowrap;
}

.posts .post .postTitle {
  font-size: 1rem;
  vertical-align: middle;
}

/* -------------------------------------------------------------------------- */
/*                             Article Styles                                 */
/* -------------------------------------------------------------------------- */
article {
  margin-bottom: 30px;
}

article h1 {
  font-size: 2em;
  margin-bottom: 10px;
  color: var(--color-text);
}

article ul,
article ol {
  list-style-position: inside;
}

article div {
  line-height: 1.6;
  font-size: 1.1em;
  color: var(--color-text);
}

/* Return Link (Spacing) */

/* -------------------------------------------------------------------------- */
/*                            Back-to-Home Link                               */
/* -------------------------------------------------------------------------- */
.return {
  padding: 3em 0;
}

.mainPage {
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  height: 80vh;
}

.mainPage h1 {
  padding: 0;
  margin: 0;
}

[data-theme="light"] .mainPage p {
  padding: 3vh 0;
  margin: 0;
  color: #666666;
}

[data-theme="dark"] .mainPage p {
  padding: 3vh 0;
  margin: 0;
  color: #a9a9b3;
}

[data-theme="light"] .mainPage .pipe {
  color: #666666;
}

[data-theme="dark"] .mainPage .pipe {
  color: #a9a9b3;
}

/* -------------------------------------------------------------------------- */
/*                               Resume Styles                               */
/* -------------------------------------------------------------------------- */
.resume-content {
  max-width: 700px;
  margin: 0 auto;
  line-height: 1.6;
}

.resume-header {
  text-align: center;
  margin-bottom: 1rem;
}

.resume-header h1 {
  margin: 0 0 0.5rem 0;
  font-size: 2.5em;
  font-weight: bold;
  display: block;
}

.title-subtitle {
  margin: 0 0 1rem 0;
  font-size: 1.2em;
  color: var(--color-accent);
  font-weight: 500;
  display: block;
}

.resume-content section {
  margin-bottom: 1.5rem;
}

.resume-content h2 {
  margin: 0 0 1rem 0;
  font-size: 1.4em;
  font-weight: 600;
  border-bottom: 2px solid var(--color-accent);
  padding-bottom: 0.3rem;
}

.resume-content h3 {
  margin: 0 0 0.8rem 0;
  font-size: 1.2em;
  font-weight: 600;
}

/* Role Content */
.role-content, .role-item, .education-content {
  margin-left: 1rem;
}

.role-details p {
  margin: 0.3rem 0;
  color: var(--color-text);
}

.tech-stack {
  font-style: italic;
  color: var(--color-accent);
  margin-top: 0.8rem !important;
}

.achievements {
  margin-top: 1.2rem;
}

.achievement {
  margin: 0.8rem 0;
  padding-left: 1rem;
  border-left: 3px solid var(--color-accent);
  line-height: 1.5;
  color: var(--color-text);
}

/* Education */
.school {
  font-weight: 600;
  margin: 0.3rem 0;
  color: var(--color-accent);
}

.education-details {
  margin: 0.3rem 0;
  color: var(--color-text);
}

/* Skills */
.skills-content {
  margin-left: 1rem;
}

.skill-group {
  margin: 0.8rem 0;
  display: flex;
  flex-wrap: wrap;
  align-items: baseline;
}

.skill-label {
  font-weight: 600;
  color: var(--color-accent);
  margin-right: 0.8rem;
  min-width: 120px;
}

.skill-list {
  color: var(--color-text);
  flex: 1;
}

/* PDF Download */
.pdf-download {
  text-align: center;
  margin: 1.5rem 0;
  width: 100%;
  display: block;
}

.pdf-link {
  display: inline-block;
  padding: 0.6rem 1.2rem;
  background-color: transparent;
  color: var(--color-accent);
  text-decoration: none;
  border-radius: 5px;
  font-weight: 600;
  font-size: 0.95em;
  transition: all 0.3s ease;
  border: 2px solid var(--color-accent);
}

.pdf-download .pdf-link:hover {
  background-color: var(--color-accent);
  color: var(--color-bg);
}

/* Line breaks for better spacing */
.section-break {
  height: 2rem;
  margin: 1.5rem 0;
}

.content-break {
  height: 1rem;
  margin: 1rem 0;
}

/* Mobile responsive */
@media (max-width: 768px) {
  .skill-group {
    flex-direction: column;
    align-items: flex-start;
  }

  .skill-label {
    margin-bottom: 0.3rem;
  }

  .resume-content {
    padding: 0 1rem;
  }

  .role-content, .education-content, .skills-content {
    margin-left: 0.5rem;
  }

  .section-break {
    height: 1.5rem;
    margin: 1rem 0;
  }

  .content-break {
    height: 0.8rem;
    margin: 0.8rem 0;
  }
}
