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

body {
  background: #0f172a; /* dark navy/charcoal */
  color: #e2e8f0; /* soft gray text */
  line-height: 1.6;
}

/* ===== HEADER / NAVBAR ===== */
header {
  width: 100%;
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 15px 8%;
  background: rgba(15, 23, 42, 0.95);
  backdrop-filter: blur(8px);
  position: sticky;
  top: 0;
  z-index: 1000;
  border-bottom: 1px solid rgba(255, 255, 255, 0.08);
}

header .logo img {
  height: 55px;
}

.navbar-toggle {
  display: none;
  font-size: 28px;
  color: #e2e8f0;
  background: none;
  border: none;
  cursor: pointer;
  position: absolute;
  top: 15px;
  right: 8%;
  z-index: 1500;
  transition: color 0.3s ease;
}

.navbar-toggle:hover {
  color: #fbbf24;
}

nav ul {
  list-style: none;
  display: flex;
  gap: 30px;
}

nav ul li a {
  text-decoration: none;
  color: #e2e8f0;
  font-size: 1rem;
  font-weight: 500;
  letter-spacing: 0.5px;
  position: relative;
  transition: color 0.3s ease;
}

nav ul li a::after {
  content: "";
  position: absolute;
  width: 0;
  height: 2px;
  left: 0;
  bottom: -5px;
  background: #fbbf24;
  transition: width 0.3s ease;
}

nav ul li a:hover {
  color: #fbbf24;
}

nav ul li a:hover::after {
  width: 100%;
}

/* ===== PORTFOLIO SECTION ===== */
.portfolio {
  padding: 70px 8%;
  background: linear-gradient(180deg, #0f172a, #1e293b);
}

.portfolio h2 {
  font-size: 2.2rem;
  text-align: center;
  margin-bottom: 40px;
  color: #fbbf24;
  letter-spacing: 1px;
  position: relative;
}

.portfolio h2::after {
  content: "";
  display: block;
  width: 70px;
  height: 3px;
  background: #f59e0b;
  margin: 12px auto 0;
  border-radius: 2px;
}

/* ===== GALLERY GRID ===== */
.gallery {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 25px;
}

.gallery img,
.gallery video {
  width: 100%;
  border-radius: 14px;
  cursor: pointer;
  object-fit: cover;
  transition: transform 0.4s ease, box-shadow 0.4s ease, filter 0.4s ease;
}

.gallery img:hover,
.gallery video:hover {
  transform: scale(1.05);
  box-shadow: 0px 10px 25px rgba(0,0,0,0.4);
  filter: brightness(1.1);
}

/* ===== LIGHTBOX ===== */
#lightbox {
  display: none;
  position: fixed;
  top: 0; left: 0;
  width: 100%; height: 100%;
  background: rgba(15, 23, 42, 0.95);
  justify-content: center;
  align-items: center;
  z-index: 2000;
}

#lightbox img {
  max-width: 92%;
  max-height: 82%;
  border-radius: 12px;
  box-shadow: 0px 8px 30px rgba(0,0,0,0.6);
  animation: zoomIn 0.5s ease;
}

@keyframes zoomIn {
  from { transform: scale(0.8); opacity: 0; }
  to { transform: scale(1); opacity: 1; }
}

/* ===== FOOTER ===== */
footer {
  text-align: center;
  padding: 25px;
  background: #1e293b;
  color: #cbd5e1;
  margin-top: 50px;
  font-size: 0.9rem;
  border-top: 1px solid rgba(255,255,255,0.08);
}

footer p {
  margin: 0;
}

/* ===== RESPONSIVE ===== */
@media (max-width: 768px) {
  .navbar-toggle {
    display: block;
  }

  nav ul {
    flex-direction: column;
    background: #1e293b;
    position: absolute;
    top: 70px;
    right: 0;
    width: 220px;
    padding: 15px;
    display: none;
    border-radius: 8px;
  }

  nav ul.active {
    display: flex;
  }

  nav ul li {
    margin: 12px 0;
  }

  .portfolio {
    padding: 50px 6%;
  }

  .portfolio h2 {
    font-size: 1.8rem;
  }
}

@media (max-width: 480px) {
  .portfolio {
    padding: 40px 5%;
  }

  .portfolio h2 {
    font-size: 1.6rem;
  }
}
