* { margin: 0; padding: 0; box-sizing: border-box; }
body {
  font-family: "Poppins", sans-serif;
  background: #fff;
  color: #0f172a;
  line-height: 1.5;
}

.portfolio-header {
  display: flex;
  justify-content: center;
  align-items: center;
  background: #520606;
  padding: 30px 25px;
  color: #fff;
}
.portfolio-header .logo { width: 70px; }
.nav a {
  color: #fff;
  text-decoration: none;
  margin: 0 12px;
  font-weight: 600;
  transition: color 0.3s ease;
}
.nav a:hover { color: #FF3131; }

/* Hero */
.hero {
  text-align: center;
  padding: 70px 20px;
  background: #1c1559;
  color: #fff;
}
.hero .highlight { color: #fff; text-shadow: 0 3px 12px rgba(0,0,0,0.3); }
.hero p { margin-top: 10px; max-width: 600px; margin-inline: auto; }

/* Portfolio grid */
.portfolio-grid {
  padding: 60px 20px;
}
.grid {
  display: grid;
  gap: 20px;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
}
.box {
  background: #f8fafc;
  border-radius: 12px;
  overflow: hidden;
  position: relative;
  box-shadow: 0 6px 18px rgba(0,0,0,0.1);
  transition: transform 0.3s ease;
}
.box:hover { transform: translateY(-6px); }

.box img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
  will-change: transform, opacity;
}

/* Overlay */
.overlay {
  position: absolute;
  inset: 0;
  background: rgba(0,0,0,0.55);
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  color: #fff;
  opacity: 0;
  transition: opacity 0.4s ease;
  text-align: center;
  padding: 15px;
}
.box:hover .overlay { opacity: 1; }
.overlay h3 { margin-bottom: 8px; font-size: 1.2rem; }
.overlay p { font-size: 0.9rem; margin-bottom: 10px; }

.play-btn {
  background: #FF3131;
  color: #fff;
  border: none;
  padding: 10px 18px;
  border-radius: 30px;
  font-weight: 600;
  cursor: pointer;
  transition: transform 0.3s ease;
}
.play-btn:hover { transform: scale(1.1); background: #007BFF; }

/* Modal video */
.video-modal {
  position: fixed;
  inset: 0;
  background: rgba(0,0,0,0.8);
  display: none;
  justify-content: center;
  align-items: center;
  z-index: 2000;
}
.video-modal.active { display: flex; }

.video-content {
  position: relative;
  width: 90%;
  max-width: 720px;
}
.video-content video {
  width: 100%;
  border-radius: 12px;
}
#closeVideo {
  position: absolute;
  top: 10px;
  right: 10px;
  background: #FF3131;
  color: #fff;
  border: none;
  font-size: 1rem;
  border-radius: 50%;
  width: 35px;
  height: 35px;
  cursor: pointer;
}

/* Footer */
.footer {
  background: #071133;
  color: #fff;
  text-align: center;
  padding: 20px;
}
.footer-logo { width: 60px; margin-bottom: 10px; }

/* Reveal */
.reveal {
  opacity: 0;
  transform: translateY(20px);
  transition: opacity 0.8s ease, transform 0.8s ease;
  will-change: transform, opacity;
}
.reveal.active {
  opacity: 1;
  transform: translateY(0);
}

/* Responsive */
@media (max-width: 768px) {
  .hero { padding: 50px 10px; }
}

