/* ==== RESET & BASE STYLES ==== */
* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}
body {
  font-family: 'Poppins', sans-serif;
  line-height: 1.6;
  color: #333;
  background-color: #f7f7f7;
  scroll-behavior: smooth;
}
.container {
  width: 90%;
  max-width: 1200px;
  margin: auto;
}

/* ==== HEADER ==== */
header {
  position: absolute;
  top: 0;
  width: 100%;
  z-index: 1000;
}
.header-container {
  display: flex;
  flex-direction: column;
  align-items: center;
  padding: 1rem 2rem;
  background: rgba(255, 255, 255, 0.3);
  backdrop-filter: blur(8px);
  position: relative;
  z-index: 999;
  gap: 1rem;
}
.logo-circle {
  width: 120px;
  height: 120px;
  border-radius: 50%;
  background: rgb(247, 247, 247);
  border: 5px solid #222;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
  display: flex;
  align-items: center;
  justify-content: center;
}
.logo-circle img.logo {
  max-height: 90px;
  width: auto;
}
.nav {
  display: flex;
  justify-content: center;
  flex-wrap: wrap;
  list-style: none;
  gap: 1rem;
  padding: 0;
  margin: 0 auto;
}

.nav li a {
  background-color: rgba(0, 0, 0, 0.3);
  color: white;
  padding: 0.6rem 1.2rem;
  border-radius: 8px;
  text-decoration: none;
  font-weight: 600;
  transition: background 0.3s ease;
}

.nav li a:hover {
  background-color: rgba(0, 0, 0, 0.6);
}

/* ==== HERO ==== */
.hero {
  background: url('images/Landing.jpg') center/cover no-repeat;
  height: 100vh;
  display: flex;
  align-items: center;
  justify-content: center;
}
.hero-content {
  background: rgba(0, 0, 0, 0.6);
  padding: 2rem;
  border-radius: 10px;
  color: white;
  text-align: center;
}
.hero h1 {
  font-size: 2.5rem;
}
.hero p {
  margin: 1rem 0;
}
.btn {
  background-color: rgba(0, 0, 0, 0.3);
  color: white;
  padding: 0.6rem 1.2rem;
  border: none;
  border-radius: 5px;
  text-decoration: none;
  font-weight: bold;
  transition: background-color 0.3s ease;
}
.btn:hover {
  background-color: rgb(247, 247, 247);
  color: black;
}

/* ==== SERVICE CARDS ==== */
.service-cards {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 1.5rem;
  margin-top: 2rem;
}
.card {
  background: #fff;
  border-radius: 12px;
  padding: 1rem;
  text-align: center;
  box-shadow: 0 2px 10px rgba(0, 0, 0, 0.05);
  transition: transform 0.3s ease;
}
.card:hover {
  transform: translateY(-5px);
}
.card img {
  width: 100%;
  height: 200px;
  object-fit: cover;
  border-radius: 6px;
}

/* ==== PROJECT GALLERY ==== */
.masonry-grid {
  column-count: 3;
  column-gap: 1rem;
}
.masonry-item {
  break-inside: avoid;
  margin-bottom: 1rem;
  background: #fff;
  padding: 0.5rem;
  border-radius: 10px;
  box-shadow: 0 2px 8px rgba(0,0,0,0.1);
  text-align: center;
}
.masonry-item img {
  width: 100%;
  height: auto;
  max-height: 280px;
  object-fit: cover;
  border-radius: 8px;
  margin-bottom: 0.5rem;
}

/* ==== CONTACT SECTION ==== */
.contact {
  background: #f3f3f3;
  padding: 4rem 1rem;
  text-align: center;
}
.contact h2 {
  margin-bottom: 2rem;
  font-size: 2rem;
  color: #333;
}
.contact-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 2rem;
  align-items: start;
}
.contact-form input,
.contact-form textarea {
  width: 100%;
  padding: 0.75rem 1rem;
  margin-bottom: 1rem;
  border: 1px solid #ccc;
  border-radius: 8px;
  font-size: 1rem;
}
.contact-form textarea {
  resize: vertical;
}
.contact-form .btn {
  background-color: rgba(0, 0, 0, 0.3);
  color: white;
  width: 100%;
  font-weight: bold;
  padding: 0.75rem;
  border-radius: 8px;
  cursor: pointer;
  transition: background 0.3s ease;
}
.contact-form .btn:hover {
  background-color: rgb(247, 247, 247);
  color: black;
}
.contact-info {
  text-align: left;
  padding: 1rem;
  background: white;
  border-radius: 10px;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.05);
}
.contact-info h3 {
  margin-bottom: 1rem;
}
.contact-info p {
  margin: 0.5rem 0;
}

/* ==== BACK TO TOP ==== */
#backToTop {
  position: fixed;
  bottom: 30px;
  right: 30px;
  display: none;
  background-color: rgba(0, 0, 0, 0.3);
  color: white;
  padding: 0.6rem 1rem;
  border-radius: 8px;
  font-weight: bold;
  border: none;
  cursor: pointer;
}
#backToTop:hover {
  background-color: rgb(247, 247, 247);
  color: black;
}

/* ==== RESPONSIVE STYLES ==== */
@media (max-width: 768px) {
  .header-container {
    flex-direction: column;
    align-items: center;
    padding: 1rem 0;
    gap: 1rem;
  }

  .logo-circle {
    width: 90px;
    height: 90px;
  }

  .logo-circle img.logo {
    max-height: 60px;
  }

  .nav {
    display: grid;
    grid-template-columns: repeat(3, 1fr); /* 3 columns for 6 buttons (2 rows) */
    gap: 0.5rem;
    width: 100%;
    max-width: 400px;
    padding: 0 1rem;
    justify-items: center;
  }

  .nav li {
    width: 100%;
  }

  .nav li a {
    display: block;
    background-color: rgba(0, 0, 0, 0.7);
    font-size: 0.85rem;
    padding: 0.5rem 0.75rem;
    text-align: center;
    border-radius: 8px;
    width: 100%;
  }

  .hero {
    min-height: 100vh;
    padding: 160px 1rem 3rem;
    text-align: center;
  }

  .hero h1 {
    font-size: 1.8rem;
    line-height: 2.2rem;
  }

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

  .contact-grid {
    grid-template-columns: 1fr;
  }

  .masonry-grid {
    column-count: 1;
  }
}

/* === SCROLLING GALLERY STYLES === */
.scrolling-gallery {
  display: flex;
  flex-wrap: wrap;
  gap: 1rem;
  max-height: 600px;
  overflow: hidden;
  position: relative;
  animation: scrollUp 50s linear infinite;
}

.gallery-item {
  width: calc(33.333% - 1rem);
  background: white;
  border-radius: 10px;
  box-shadow: 0 2px 8px rgba(0,0,0,0.1);
  overflow: hidden;
  transition: transform 0.3s;
  cursor: pointer;
  display: flex;
  flex-direction: column;
}

.gallery-item img {
  width: 100%;
  height: 220px;
  object-fit: cover;
  transition: transform 0.3s ease;
}

.gallery-item p {
  font-size: 14px;
  text-align: center;
  padding: 0.5rem;
  background: #f3f3f3;
  margin: 0;
}

.gallery-item:hover {
  transform: translateY(-5px);
}

@keyframes scrollUp {
  0%   { transform: translateY(0); }
  100% { transform: translateY(-50%); }
}

.modal {
  position: fixed;
  z-index: 9999;
  left: 0;
  top: 0;
  width: 100vw;
  height: 100vh;
  background: rgba(0,0,0,0.8);
  display: flex;
  align-items: center;
  justify-content: center;
  flex-direction: column;
}

.modal img {
  max-width: 90%;
  max-height: 80%;
  border-radius: 8px;
}

.modal-close {
  position: absolute;
  top: 40px;
  right: 60px;
  font-size: 2rem;
  color: white;
  cursor: pointer;
}

.modal .caption {
  color: white;
  margin-top: 1rem;
  text-align: center;
  font-size: 1rem;
}

@media (max-width: 768px) {
  .gallery-item {
    width: 100%;
  }
}

