/* ===== Reset ===== */
* {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
  font-family: "Poppins", sans-serif;
}

:root {
  --background-panel-color: #222;
  --background-color: #181818;
}

/* ===== Layout ===== */
body {
  background-color: var(--background-color);
  color: #dbdbdb;
  line-height: 1.6;
  display: flex;
  flex-direction: row; /* Desktop: sidebar on the left */
}
body * + * {
  margin-top: 2rem;
}

/* ===== Sidebar Header ===== */
header {
  position: fixed;
  left: 0;
  top: 0;
  width: 350px;
  height: 100vh;
  background: #222;
  color: white;
  display: flex;
  flex-direction: column;
  justify-content: flex-start; /* ✅ align content at the top */
  align-items: center;
  padding: 40px 20px;
  transition: all 0.3s ease;
  z-index: 1000;
}

.header-content {
  text-align: center;
  width: 100%; /* optional: make content span the header width */
}

.header-title{
  margin: 5px;
}

.header-title h1{
  margin-bottom: 0px;
}

.header-title h4{
  color: rgb(56, 106, 107);
}


header h1 {
  margin-bottom: 10px;
  text-align: center;
}

header p {
  font-size: 0.9rem;
  color: #bbb;
  margin-bottom: 20px;
  text-align: center;
}

a {
  color: #007BFF; /* modern blue */
  font-weight: 600; /* bold */
  text-decoration: none;
  transition: color 0.3s ease;
}

a:hover {
  color: #0056b3; /* darker blue on hover */
}

p {
  color: white;

  margin-top: 5px;
  margin-bottom: 5px;
  text-align:justify;
  text-justify: inter-word;
}

nav {
  display: flex;
  flex-direction: column;
}

nav a {
  color: white;
  text-decoration: none;
  margin: 8px 0;
  font-weight: 500;
  transition: color 0.3s;
}

nav a:hover {
  color: #007BFF;
}

details > * {
  text-align: left;
  display: block;
}

details h4 {
  margin-top: 3rem;
}

summary  {

  text-align: left;
  display: block;

  cursor: pointer;
  user-select: none;

  color: #007BFF; /* modern blue */
  font-weight: 600; /* bold */
  text-decoration: none;
  transition: color 0.3s ease;
}

summary:hover {
  color: #007BFF;
}

/* ===== Main Content ===== */
main {
  margin-left: 350px;
  width: calc(100% - 350px);
  padding: 40px 30px;
}

section {
  max-width: 900px;
  margin: auto;
  margin-bottom: 80px;
}

h1 {
  margin-top: 3rem;
  text-align: left;
}

h2 {
  margin-top: 3rem;
  margin-bottom: 20px;
}

h3 {
  margin-top: 3rem;
}

h4 {
  margin-top: 1rem;
}

img {
  object-fit: contain;
  border-radius: 15px; /* match project panel style */
  box-shadow: 0 2px 5px rgba(0,0,0,0.1);
  transition: transform 0.3s ease, box-shadow 0.3s ease;
}

img:hover {
  transform: translateY(-10px);
  box-shadow: 0 5px 15px rgba(0,0,0,0.1);
}

div * + * {
  margin-top: 1rem;
}

/* ===== Slider ===== */
.slider {
  display: flex;
  align-items: center;
  justify-content: center;
  position: relative;
  z-index: 1; /* 🧩 ensures slider is below header in mobile mode */
}

.timeline {
  display: flex;
  flex-direction: column; /* make children stack vertically */
  gap: 30px; /* 30px spacing between children */
}


.entry {
  background: var(--background-panel-color);
  padding: 30px;
  border-radius: 10px;
  text-align: center;
  box-shadow: 0 2px 5px rgba(0,0,0,0.05);
  transition: transform 0.3s ease, box-shadow 0.3s ease;
}
.entry:hover {
  transform: translateY(-10px);
  box-shadow: 0 5px 15px rgba(0,0,0,0.1);
}

/* ===== Projects ===== */

.projects {
  width: 100%;
  max-width: 700px;
  min-height: 300px;
  overflow: hidden;
  height: 100%;
}

.project {
  display: flex;
  flex-direction:row;
  background: var(--background-panel-color);
  padding: 30px;
  border-radius: 10px;
  text-align: center;
  box-shadow: 0 2px 5px rgba(0,0,0,0.05);
  transition: transform 0.3s ease, box-shadow 0.3s ease;

  align-items: flex-start;
  justify-content: space-between;
  gap: 20px;
  flex-wrap: wrap; /* allow stacking on mobile */

  height: 100%;
}

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

.project div{
  display: flex;
  flex-direction:column;
}

.projects-test{

  display: flex;
  justify-content: flex-start;
  flex-wrap: wrap;
  justify-content: center;  /* main axis alignment */
  align-items: center;      /* cross axis alignment */
  gap: 1rem;                /* space between children */
}


.project img {
  width: 300px; /* adjust as needed */

}

.project-text {
  display: flex;
  flex-direction: column; /* stack h3 above p */
  align-items: flex-start; /* left-align text */
  flex: 1;
  min-width: 200px;
}

.project-text h3 {
  margin-bottom: 10px; /* spacing between title and paragraph */
}

.project-text p {
  flex: 1; /* text takes remaining space */
  min-width: 200px;
}

.itchio-link{
  margin-top: 20px;
  text-align: center;
}

.itchio-link img{
  height: 100px; 
  align-self: center;
}


/* ===== Arrows ===== */
.arrow {
  background: none;
  border: none;
  color: #222;
  font-size: 2rem;
  cursor: pointer;
  padding: 10px 20px;
  transition: color 0.3s ease;
}

.arrow:hover {
  color: #007BFF;
}

/* ===== Footer ===== */
footer {
  text-align: center;
  padding: 20px;
  background: #222;
  color: white;
  border-radius: 10px;
}

/* ===== About ===== */
.about {
  display: flex;
  flex-direction: row;
  align-items: center;
  gap: 30px;
  margin-top: 20px;
  flex-wrap: wrap; /* allows wrapping on smaller screens */
}

.about img {
  width: 400px;
}

.about div {
  flex: 1; 
  min-width: 250px;
}
.about div p{
  margin-top: 40px;
  margin-bottom: 40px;
}

.about ol{
  margin-left: 50px;
}

.mini-about {
  display: flex;
  flex-direction: row;
  align-items: center;
  gap: 30px;
  margin-top: 20px;
  flex-wrap: wrap; /* allows wrapping on smaller screens */
}

.mini-about img {
  width: 200px;
}

.mini-about div {
  flex: 1; 
  min-width: 250px;
}
.mini-about div p{
  margin-top: 40px;
  margin-bottom: 40px;
}

/* ===== Contacts ===== */


.contact-list {
  list-style: none;
  padding: 0;
  margin: 0;
}

.contact-list li {
  padding: 15px 20px;
  background: var(--background-panel-color);
  margin-bottom: 15px;
  border-radius: 10px;
  box-shadow: 0 2px 5px rgba(0,0,0,0.05);
  transition: transform 0.3s ease, box-shadow 0.3s ease;
  font-size: 1.1rem;
  text-align: center;
}

.contact-list li:hover {
  transform: translateY(-10px);
  box-shadow: 0 5px 15px rgba(0,0,0,0.1);
}

/* ===== Responsive (Mobile View) ===== */
@media (max-width: 768px) {
  body {
    flex-direction: column;
  }

  header {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: auto;
    flex-direction: column;
    padding: 15px 0;
    z-index: 1000;
    box-shadow: 0 2px 6px rgba(0,0,0,0.2);
    justify-content: flex-start;
  }

  .header-content {
    text-align: center;
    height: 100%;
  }

  nav {
    flex-direction: row;
    justify-content: center;
    flex-wrap: wrap;
  }

  nav a {
    margin: 10px;
  }

  main {
    margin-left: 0;
    width: 100%;
    padding: 20px;
    margin-top: 250px;
  }

  section {
    scroll-margin-top: 200px; /* same height as header */
  }

  footer {
    margin-bottom: 60px;
  }
  .about-container {
    flex-direction: row;
    align-items: center;
    text-align: center;
  }

  .about-photo{
    flex-direction: row;
    align-items: center;
  }

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

  .project-content {
    flex-direction: column; /* stack text above image on mobile */
    align-items: center;
    text-align: center;
  }

  .project-image img {
    width: 100%;
    max-width: 300px;
    height: auto;
  }
}
