/* salika_styles.css */

body {
  font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
  background-color: #fafafa;
  color: #333;
  margin: 0;
  padding: 0;
}

header {
  background-color: #fff;
  box-shadow: 0 2px 6px rgba(0,0,0,0.1);
  padding: 1rem 0;
}

.logo {
  font-size: 1.5rem;
  font-weight: bold;
  color: #D32F2F;
  text-decoration: none;
}

.container {
  max-width: 1000px;
  margin: 0 auto;
  padding: 0 1rem;
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
}

nav ul {
  list-style: none;
  display: flex;
  gap: 1.5rem;
  margin: 0;
  padding: 0;
}

nav ul li a {
  text-decoration: none;
  color: #333;
  font-weight: 600;
}

nav ul li a.active,
nav ul li a:hover {
  color: #D32F2F;
}

main.container {
  flex-direction: column;
  margin-top: 3rem;
  margin-bottom: 4rem;
}

h1 {
  text-align: center;
  font-size: 2.8rem;
  margin-bottom: 1rem;
}

p.description {
  text-align: center;
  font-size: 1.2rem;
  max-width: 700px;
  margin: 0 auto 2.5rem;
  line-height: 1.6;
}

.project-images {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 2rem;
  margin-bottom: 2rem;
}

.project-images img {
  width: 100%;
  border-radius: 12px;
  box-shadow: 0 6px 18px rgba(0,0,0,0.15);
  object-fit: cover;
  cursor: zoom-in;
  transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.project-images img:hover {
  transform: scale(1.05);
  box-shadow: 0 10px 30px rgba(0,0,0,0.25);
}

.btn {
  display: block;
  width: max-content;
  margin: 2rem auto 0;
  background-color: #D32F2F;
  color: #fff;
  padding: 12px 28px;
  font-size: 1rem;
  font-weight: 600;
  text-decoration: none;
  border-radius: 6px;
  box-shadow: 0 4px 12px rgba(211, 47, 47, 0.4);
  transition: background-color 0.3s ease;
}

.btn:hover {
  background-color: #a52727;
  box-shadow: 0 6px 18px rgba(165, 39, 39, 0.7);
}

footer {
  background-color: #fff;
  padding: 1.5rem 0;
  text-align: center;
  border-top: 1px solid #eee;
}

footer p {
  margin: 0;
  font-size: 0.9rem;
  color: #666;
}

footer .social a {
  margin-left: 1rem;
  color: #D32F2F;
  text-decoration: none;
  font-weight: 600;
}

footer .social a:hover {
  color: #a52727;
}

/* ✅ Lightbox Centering Fix */
.lightbox {
  display: none; /* hide initially */
  position: fixed;
  z-index: 9999;
  top: 0;
  left: 0;
  width: 100vw;
  height: 100vh;
  background-color: rgba(0, 0, 0, 0.9);
  justify-content: center;
  align-items: center;
}

.lightbox.show {
  display: flex; /* shown as flex when active */
}

.lightbox-content {
  max-width: 90%;
  max-height: 80%;
  object-fit: contain;
  border-radius: 8px;
  box-shadow: 0 0 20px rgba(255,255,255,0.2);
}

.lightbox .close {
  position: absolute;
  top: 20px;
  right: 40px;
  color: #fff;
  font-size: 40px;
  font-weight: bold;
  cursor: pointer;
}

@media (max-width: 480px) {
  h1 {
    font-size: 2rem;
  }

  p.description {
    font-size: 1rem;
  }

  .btn {
    padding: 10px 20px;
    font-size: 0.95rem;
  }
}
