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

body {
  background: #f7f7f9;
  font-family: "Poppins", sans-serif;
  color: #222;
  min-height: 100vh;
  display: flex;
  flex-direction: column;
}

.topbar {
  width: 100%;
  background: #fff;
  box-shadow: 0 2px 12px rgba(0,0,0,0.04);
  margin-bottom: 0;
  z-index: 100;
  position: sticky;
  top: 0;
}
.topbar .center {
  display: flex;
  gap: 32px;
  justify-content: center;
  align-items: center;
  padding: 16px 0;
}
.topbar .center a {
  color: #924141;
  text-decoration: none;
  font-weight: 500;
  font-size: 1.08rem;
  transition: color 0.2s, border-bottom 0.2s;
  border-bottom: 2px solid transparent;
  padding-bottom: 2px;
}
.topbar .center a.active, .topbar .center a:hover {
  color: #c0392b;
  border-bottom: 2px solid #c0392b;
}

.projects-container {
  display: flex;
  flex: 1 1 auto;
  flex-wrap: wrap;
  gap: 20px;
  padding: 30px;
  min-height: 60vh;
}

.project-list {
  flex: 1 1 220px;
  padding-right: 30px;
}
.project-list ul { list-style: none; }
.project-item {
  background: #fff;
  padding: 14px 18px;
  margin-bottom: 12px;
  border-radius: 6px;
  font-size: 1.1rem;
  cursor: pointer;
  transition: background 0.2s, box-shadow 0.2s;
  box-shadow: 0 2px 8px rgba(0,0,0,0.04);
  color: #924141;
}
.project-item:hover, .project-item.active {
  background: #f2dede;
  font-weight: 600;
  box-shadow: 0 4px 12px rgba(0,0,0,0.08);
}

.project-preview {
  flex: 2 1 400px;
  display: flex;
  justify-content: center;
  align-items: center;
  min-height: 320px;
}
.project-preview img {
  max-width: 800px;
  width: 100%;
  height: auto;
  border-radius: 16px;
  box-shadow: 0 4px 24px rgba(0,0,0,0.12);
  background: #fff;
  padding: 20px;
  transition: transform 0.3s cubic-bezier(.23,1.04,.51,.98), box-shadow 0.3s;
  cursor: zoom-in;
}
.project-preview img:hover {
  transform: scale(1.25);
  z-index: 2;
  box-shadow: 0 8px 32px rgba(0,0,0,0.18);
}

/* Project details page */
.project-details {
  background: #fff;
  padding: 32px;
  border-radius: 14px;
  box-shadow: 0 4px 24px rgba(0,0,0,0.12);
  max-width: 900px;
  margin: 40px auto;
  position: relative;
  min-height: 400px;
}
.project-details h1 {
  font-size: 2.4rem;
  margin-bottom: 18px;
  font-family: "Orbitron", sans-serif;
  color: #924141;
}
.line {
  width: 100%;
  height: 3px;
  background: #555252;
  margin-bottom: 20px;
  border-radius: 2px;
}
.details-table {
  margin-bottom: 26px;
  width: 100%;
}
.details-table th, .details-table td {
  padding: 12px 0;
  font-size: 1rem;
}
.details-table th {
  text-align: right;
  padding-right: 18px;
  font-family: "Orbitron", sans-serif;
  color: #924141;
  width: 150px;
}
.details-table td {
  font-family: "Poppins", sans-serif;
  color: #222;
}
.project-details p, .project-details ul {
  margin-bottom: 20px;
  font-size: 1.1rem;
  line-height: 1.6;
}
.project-details ul {
  padding-left: 22px;
}

/* Screenshots */
.project-screenshots {
  display: flex;
  flex-wrap: wrap;
  gap: 24px;
  justify-content: center;
  margin-bottom: 18px;
}
.project-screenshots img {
  width: 320px;
  max-width: 98vw;
  border-radius: 8px;
  box-shadow: 0 2px 8px rgba(0,0,0,0.08);
  transition: transform 0.3s cubic-bezier(.23,1.04,.51,.98), box-shadow 0.3s;
  cursor: zoom-in;
}
.project-screenshots img:hover {
  transform: scale(1.35);
  z-index: 2;
  box-shadow: 0 8px 32px rgba(0,0,0,0.18);
}

/* App/website links */
.app-store-link, .app-store-link-container a, .next-project, .previous-project {
  color: #0077cc;
  background: none;
  text-decoration: underline;
  font-weight: 600;
  font-size: 1.11rem;
  border-radius: 5px;
  padding: 0;
  transition: color 0.2s, background 0.2s;
}
.app-store-link:hover, .app-store-link-container a:hover, .next-project:hover, .previous-project:hover {
  color: #c0392b;
  background: #f2dede;
  text-decoration: underline;
}

/* Next project link sağ altta, Previous project sol altta */
.next-project {
  position: absolute;
  right: 32px;
  bottom: 32px;
  background: #fff;
  box-shadow: 0 2px 8px rgba(0,0,0,0.04);
  border: none;
  outline: none;
  padding: 8px 24px;
  text-align: right;
  font-family: "Orbitron", sans-serif;
  font-size: 1.15rem;
}
.previous-project {
  position: absolute;
  left: 32px;
  bottom: 32px;
  background: #fff;
  box-shadow: 0 2px 8px rgba(0,0,0,0.04);
  border: none;
  outline: none;
  padding: 8px 24px;
  text-align: left;
  font-family: "Orbitron", sans-serif;
  font-size: 1.15rem;
}
.next-project:hover, .previous-project:hover {
  color: #924141;
  background: #f2dede;
}

/* Footer always at bottom */
footer {
  width: 100%;
  text-align: center;
  padding: 20px 0 20px 0;
  background: #4e4e4e;
  color: #fff;
  margin-top: auto;
  border-radius: 0 0 14px 14px;
  position: relative;
  bottom: 0;
  left: 0;
  z-index: 50;
}

/* PDF container for SUMO page */
.pdf-container {
  margin-bottom: 20px;
  width: 100%;
  display: flex;
  justify-content: center;
}
.pdf-container embed {
  border: 1px solid #eaeaea;
  border-radius: 10px;
}

@media (max-width: 900px) {
  .project-details {
    padding: 18px;
  }
  .projects-container { padding: 12px; }
  .next-project, .previous-project { right: 10px; left: 10px; bottom: 10px; }
}
@media (max-width: 768px) {
  .projects-container { flex-direction: column; }
  .project-list { padding-right: 0; }
  .project-preview img { max-width: 98%; padding: 8px; }
  .next-project, .previous-project { right: 8px; left: 8px; bottom: 8px; }
}