* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  font-family: "Helvetica Neue", Arial, sans-serif;
  color: #222;
  background-color: #fafafa;
  line-height: 1.6;
  overflow-x: hidden;
}

/* Header */
.project-header {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  background: rgba(255, 255, 255, 0.85);
  backdrop-filter: blur(6px);
  padding: 15px 40px;
  box-shadow: 0 2px 8px rgba(0,0,0,0.05);
  z-index: 1000;
}

.back-btn {
  text-decoration: none;
  color: #333;
  font-weight: 500;
  transition: color 0.3s ease;
}

.back-btn:hover {
  color: #000;
}

/* Layout */
.project-detail {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  min-height: 100vh;
  padding: 120px 10% 60px 10%; 
  gap: 60px;
}

/* Left side: text */
.detail-text {
  flex: 1;
  max-width: 40%;
}

.detail-text h1 {
  font-size: 2.8rem;
  margin-bottom: 10px;
}

.subtitle {
  font-size: 1.2rem;
  color: #666;
  margin-bottom: 30px;
}

.description {
  font-size: 1rem;
  margin-bottom: 40px;
  color: #444;
}

.project-info {
  list-style: none;
}

.project-info li {
  margin-bottom: 8px;
  color: #555;
}

/* Right side: images */
.detail-images {
  flex: 1;
}

.main-img {
  width: 100%;
  max-width: 600px;
  border-radius: 12px;
  box-shadow: 0 5px 15px rgba(0,0,0,0.1);
  margin-bottom: 20px;
}

.gallery {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(180px, 1fr));
  gap: 15px;
  width: 100%;
  max-width: 600px;
}

.gallery img {
  width: 100%;
  height: auto;
  border-radius: 8px;
  object-fit: contain; 
  background-color: #f0f0f0; 
  transition: transform 0.3s ease, box-shadow 0.3s ease;
}


.gallery img:hover {
  transform: scale(1.05);
  box-shadow: 0 8px 20px rgba(0,0,0,0.15);
}


.lightbox {
  display: none;
  position: fixed;
  top: 0; left: 0;
  width: 100vw; height: 100vh;
  background: rgba(0, 0, 0, 0.8);
  justify-content: center;
  align-items: center;
  z-index: 2000;
}

.lightbox img {
  max-width: 90%;
  max-height: 85%;
  border-radius: 10px;
  box-shadow: 0 0 20px rgba(255, 255, 255, 0.2);
  animation: zoomIn 0.3s ease;
}

/* Zoom animation */
@keyframes zoomIn {
  from { transform: scale(0.8); opacity: 0; }
  to { transform: scale(1); opacity: 1; }
}

.lightbox .close {
  position: absolute;
  top: 25px;
  right: 40px;
  font-size: 2rem;
  color: #fff;
  cursor: pointer;
  transition: opacity 0.3s ease;
}

.lightbox .close:hover {
  opacity: 0.7;
}
