:root {
  --accent: #6fa3ef;
  --bg-card: rgba(255,255,255,0.1);
  --text-light: #eee;
  --text-muted: #ccc;
  --img-min: 150px;
  --img-fluid: 40vh;
  --img-max: 300px;
}


* {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}
body {
  font-family: 'Roboto', sans-serif;
  background: linear-gradient(to bottom, #000, #1a1a1a, #333333);
  color: var(--text-light);
}


header {
  display: flex;
  justify-content: flex-end;
  align-items: center;
  padding: 30px 10%;          
  width: 100%;
  top: 0;
  z-index: 1000;
  backdrop-filter: blur(10px);
  box-shadow: 0 4px 8px rgba(0, 0, 0, 0.5);
}
.logo {
  max-width: 150px;
  max-height: 50px;
  margin-right: auto;
  filter: drop-shadow(0 2px 4px rgba(255, 255, 255, 0.1));
}
.nav_links {
  list-style: none;
}
.nav_links li {
  display: inline-block;
  padding: 0 15px;
}
.nav_links li a {
  font-size: 18px;
  font-weight: 500;
  color: white;
  text-decoration: none;
  transition: color 0.3s ease;
}
.nav_links li a:hover,
.nav_links li a.active {
  color: var(--accent);
}



.container {
  width: 90%;
  max-width: 1200px;
  margin: 60px auto 40px;
}


.projects-header {
  text-align: center;
  font-family: 'Montserrat', sans-serif;
  font-size: 2.5rem;
  margin-bottom: 30px;
}


.projects {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(480px, 1fr));
  gap: 30px;
}


.project {
  background: var(--bg-card);
  border-radius: 8px;
  padding: 20px;
  display: grid;
  grid-template-rows: auto auto 1fr auto;
  transition: transform 0.3s, box-shadow 0.3s;
}
.project:hover {
  transform: translateY(-4px);
  box-shadow: 0 8px 16px rgba(0,0,0,0.4);
}
.project h3 {
  font-family: 'Montserrat', sans-serif;
  color: var(--accent);
  margin-bottom: 12px;
}


.project img,
.project-media {
  display: block;
  width: auto;
  max-width: 100%;
  height: clamp(var(--img-min), var(--img-fluid), var(--img-max));
  object-fit: contain;
  border-radius: 6px;
  margin: 0 auto 16px;
}
.slider {
  position: relative;
  overflow: hidden;
  height: clamp(var(--img-min), var(--img-fluid), var(--img-max));
  border-radius: 8px;
}
.slides {
  display: flex;
  align-items: center;
  height: 100%;
}
.slides img {
  display: none;
  width: 100%;
  object-fit: contain;
}
.slides .displaySlide {
  display: block;
}
.slider button {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  background: rgba(0,0,0,0.5);
  border: none;
  color: white;
  font-size: 1.2rem;
  padding: 6px 10px;
  cursor: pointer;
}
.prev { left: 10px; }
.next { right: 10px; }


.project-content {
  margin-bottom: 16px;
}
.project-content .intro {
  font-style: italic;
  color: var(--text-muted);
  margin-bottom: 12px;
  line-height: 1.5;
}
.project-content .highlights {
  list-style: disc inside;
  color: var(--text-light);
  margin-bottom: 12px;
}
.project-content .highlights li {
  margin-bottom: 6px;
  line-height: 1.4;
}
.project-content .status {
  color: var(--accent);
  font-size: 0.9rem;
}


.project-links {
  text-align: right;
}
.project-links a {
  display: inline-block;
  padding: 6px 12px;
  background: var(--accent);
  color: white;
  text-decoration: none;
  border-radius: 4px;
  transition: background 0.3s;
}
.project-links a:hover {
  background: #557ec8;
}


footer {
  background-color: #1a1a1a;
  color: white;
  padding: 20px 0;
  text-align: center;
}
.footer-content {
  max-width: 1200px;
  margin: 0 auto;
  display: flex;
  justify-content: space-between;
  align-items: center;
}
.footer-content p {
  margin: 0;
}
.footer-content nav {
  flex-grow: 1;
  text-align: right;
}
.footer-content nav ul {
  list-style: none;
  padding: 0;
}
.footer-content nav ul li {
  display: inline-block;
  margin-right: 10px;
}
.footer-content nav ul li a {
  color: white;
  text-decoration: none;
  transition: color 0.3s;
}
.footer-content nav ul li a:hover {
  color: var(--accent);
}


.lightbox-overlay {
  position: fixed;
  inset: 0;
  background: rgba(0,0,0,0.8);
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 2000;
}
.lightbox-overlay[hidden] {
  display: none;
}


.lightbox-content {
  position: relative;
  width: 90vw;
  height: 90vh;
  background: var(--bg-card);
  border-radius: 8px;
  padding: 0; 
  overflow: hidden;
  display: flex;
  align-items: center;
  justify-content: center;
}


.lightbox-close {
  position: absolute;
  top: 12px;
  right: 12px;
  background: transparent;
  border: none;
  font-size: 2.5rem;
  color: white;
  text-shadow: 0 0 8px rgba(0,0,0,0.8);
  cursor: pointer;
  z-index: 2100;
}


.lightbox-slider {
  position: relative;
  width: 100%;
  height: 100%;
}


.lightbox-slides {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 100%;
  height: 100%;
}
.lightbox-slides img {
  display: none;
  max-width: 100%;
  max-height: 100%;
  object-fit: contain;
  border-radius: 6px;
}
.lightbox-slides img.active {
  display: block;
}


.lightbox-slider button {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  background: rgba(0,0,0,0.5);
  border: none;
  color: white;
  font-size: 2rem;
  padding: 5px 10px;
  cursor: pointer;
}
.lightbox-slider .prev { left: 10px; }
.lightbox-slider .next { right: 10px; }
