/* ================= RESET & GENERAL ================= */
* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

body {
font-family: 'Montserrat', sans-serif;
background: #fafafa;
  line-height: 1.6;
}

/* ================= BANNER ================= */
.page-banner {
  margin-top: 90px;
  position: relative;
  height: 55vh;
  width: 100%;
  background-image: url("../images/banner8.jpg");
  background-size: cover;
  background-position: center;
  display: flex;
  align-items: center;
}

.banner-overlay {
  position: absolute;
  inset: 0;
  background: rgba(9, 6, 10, 0.50);
}

.banner-content {
  position: relative;
  max-width: 650px;
  padding-left: 80px;
}

.banner-content h1 {
  font-size: 40px;
  color: #d4af37;
  margin-bottom: 15px;
}

.banner-content p {
  font-size: 1.1rem;
  color: #ffffff;
  line-height: 1.7;
}

/* ================= PORTFOLIO SECTION ================= */
.portfolio-section {
  padding: 60px 20px;
  margin: 0 40px 40px 40px;
}

.portfolio-header {
  text-align: center;
  margin-bottom: 40px;
  color: #3c2144;
}

.portfolio-header h2 {
  font-size: 36px;
}

.golden-text {
  color: #d4af37;
}

.portfolio-header p {
  color: #d4af37;
  max-width: 700px;
  margin: 10px auto;
  font-size: 19px;
  line-height: 1.6;
}

/* Masonry / Cards */
.portfolio-gallery {
  column-count: 3;
  column-gap: 30px;
}

.portfolio-card {
  background: #fff;
  margin-bottom: 20px;
  display: inline-block;
  width: 100%;
  border-radius: 20px;
  box-shadow: 0 5px 20px rgba(0,0,0,0.1);
  cursor: pointer;
  transition: transform 0.3s, box-shadow 0.3s;
}

.portfolio-card:hover {
  transform: translateY(-10px);
  box-shadow: 0 10px 30px rgba(0,0,0,0.2);
}

.portfolio-card img {
  width: 100%;
  height: auto;
  display: block;
  border-radius: 20px 20px 0 0;
  object-fit: cover;
}

.portfolio-info {
  padding: 20px;
  font-weight: bold;
  text-align: center;
}

/* MODAL */
.modal {
  display: none;
  position: fixed;
  z-index: 999;
  left: 0;
  top: 0;
  width: 100%;
  height: 100%;
  background: rgba(0,0,0,0.85);
  justify-content: center;
  align-items: center;
  animation: fadeIn 0.3s ease;
}

.modal-content-wrapper {
  max-width: 600px;
  width: 90%;
  background: #fff;
  border-radius: 20px;
  overflow: hidden;
  text-align: center;
  animation: scaleIn 0.3s ease;
}

.modal-img {
  width: 100%;
  max-height: 500px;
  object-fit: cover;
}

.modal-text {
  padding: 20px;
}

.modal-title {
  font-size: 28px;
  margin-bottom: 10px;
}

.modal-desc {
  font-size: 16px;
  color: #333;
}

.close {
  position: absolute;
  top: 20px;
  right: 30px;
  font-size: 40px;
  font-weight: bold;
  color: #fff;
  cursor: pointer;
  transition: color 0.3s;
}

.close:hover { color: #ffd700; }

/* ANIMATIONS */
@keyframes fadeIn { from {opacity:0;} to {opacity:1;} }
@keyframes scaleIn { from {transform: scale(0.7);} to {transform: scale(1);} }

/* ================= RESPONSIVE ================= */

/* Large tablets / small desktops (<=1024px) */
@media (max-width: 1024px) {
  .portfolio-gallery { column-count: 2; }
  .page-banner { height: 45vh; }
  .banner-content h1 { font-size: 2.5rem; }
  .banner-content p { font-size: 1rem; }
}

/* Tablets / Mobile landscape (<=768px) */
@media (max-width: 768px) {
  .page-banner { height: auto; padding: 20px 15px; }
  .banner-content { padding-left: 15px; padding-right: 15px; }
  .banner-content h1 { font-size: 2rem; }
  .banner-content p { font-size: 0.95rem; }

  .portfolio-section { padding: 40px 10px; margin: 0 10px 30px; }
  .portfolio-gallery { column-count: 1; column-gap: 0; }

  .portfolio-card img { height: auto; max-height: none; }
  .modal-img {
    width: 100%;
    max-height: 900px;
    object-fit: cover;
}
}

/* Mobile devices (<=480px) */
@media (max-width: 480px) {
  .banner-content h1 { font-size: 1.6rem; }
  .banner-content p { font-size: 0.9rem; }

  .portfolio-header h2 { font-size: 28px; }
  .portfolio-header p { font-size: 16px; }

  .portfolio-card { border-radius: 15px; }
  .portfolio-info { font-size: 0.95rem; }
  .modal-img {
    width: 100%;
    max-height: 900px;
    object-fit: cover;
}
}
