/* RESET */
* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
  font-family: sans-serif;
}

a {
  text-decoration: none;
  color: inherit;
}

/* TOP BAR */
.top-bar {
  background-color: #003366;
  color: #fff;
  font-size: 14px;
  padding: 8px 20px;
  display: flex;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 10px;
}

/* HEADER */
.header-row {
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
}

.logo-transparent {
  height: 70px;
}

/* NAV */
.nav-menu {
  display: flex;
  gap: 15px;
}

.nav-menu a {
  color: #400080;
}

/* HAMBURGER */
.hamburger {
  display: none;
  font-size: 28px;
  cursor: pointer;
}

/* GALLERY */
.photo-gallery {
  width: 90%;
  margin: auto;
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(250px, 1fr)); /* ✅ FIX */
  gap: 15px;
}

/* IMAGE BOX */
.pic {
  position: relative;
  overflow: hidden;
  border-radius: 10px;
}

.pic img {
  width: 100%;
  height: 100%;
  transition: 0.5s;
}

.pic:hover img {
  transform: scale(1.1);
}

/* OVERLAY */
.project-overlay {
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
  background: rgba(0,128,255,0.8);
  color: #fff;
  padding: 15px;
  text-align: center;

  opacity: 0;
  transform: translateY(100%);
  transition: 0.4s;
}

.pic:hover .project-overlay {
  opacity: 1;
  transform: translateY(0);
}

/* MOBILE */
@media (max-width: 768px) {

  .nav-menu {
    display: none;
    flex-direction: column;
    background: #fff;
    padding: 10px;
  }

  .nav-menu.active {
    display: flex;
  }

  .hamburger {
    display: block;
  }

}
/* Reset and base styles */
* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
  font-family: sans-serif;
}
body, ul {
  margin: 0;
  padding: 0;
}
a {
  text-decoration: none;
  color: inherit;
}

/* Top bar */
.top-bar {
  background-color: #003366;
  color: #fff;
  font-size: 14px;
  padding: 8px 20px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: 10px;
  text-align: center;
}
.top-bar .social-icons a {
  margin-left: 10px;
  color: #fff;
}

/* Header main */
.horizontal-header {
  background-color: #fff;
  padding: 10px 20px;
  font-family: 'Segoe UI', sans-serif;
}
.header-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 20px;
}
.logo-transparent {
  height: 80px;
  max-width: 100%;
  object-fit: contain;
}
.nav-menu {
  display: flex;
  gap: 15px;
}
.nav-menu a {
  color: rgb(64, 0, 128);
  font-weight: 500;
}
.nav-menu a:hover {
  color: rgb(0, 128, 255);
}
.quote-btn {
  background-color: #ffcc00;
  color: #003366;
  padding: 8px 16px;
  font-weight: bold;
  border-radius: 5px;
}
.quote-btn:hover {
  background-color: #e6b800;
  color: #fff;
}

/* Hamburger */
.hamburger {
  display: none;
  font-size: 28px;
  cursor: pointer;
  color: #1A237E;
}

/* Banner */
.about-banner {
  position: relative;
  width: 100%;
  height: clamp(200px, 40vh, 300px);
  background: linear-gradient(135deg, #0055a5, #003366);
  display: flex;
  align-items: center;
  justify-content: center;
}
.hex-bg::before {
  content: "";
  position: absolute;
  inset: 0;
  background-image: url('/image/royalty.webp');
  background-repeat: repeat;
  opacity: 0.5;
}
.hex-bg h1 {
  position: relative;
  font-size: clamp(24px, 6vw, 48px);
  color: white;
  font-weight: bold;
  z-index: 1;
  letter-spacing: 2px;
}

/* Gallery */
.container {
  width: 100%;
  text-align: center;
}
h2 {
  font-weight: normal;
  font-size: 35px;
  position: relative;
  margin: 40px 0;
}
h2::before {
  content: '';
  position: absolute;
  width: 100px;
  height: 3px;
  background-color: #004080;
  bottom: -10px;
  left: 50%;
  transform: translateX(-50%);
  animation: animate 4s linear infinite;
}
@keyframes animate {
  0% { width: 100px; }
  50% { width: 200px; }
  100% { width: 100px; }
}
.top-content {
  background-color: lightgray;
  width: 90%;
  margin: 0 auto 20px auto;
  height: 60px;
  display: flex;
  align-items: center;
  padding: 0 20px;
}
label {
  display: inline-block;
  margin: 0 20px;
  line-height: 60px;
  font-size: 18px;
  color: blue;
  cursor: pointer;
  transition: color 0.5s;
}
label:hover { color: #ffff80; }

.photo-gallery {
  width: 90%;
  margin: auto;
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
  grid-gap: 15px;
}
.pic {
  position: relative;
  overflow: hidden;
  border-radius: 10px;
  box-shadow: 3px 3px 5px black;
  cursor: pointer;
}
.pic img {
  width: 100%;
  height: 100%;
  border-radius: 10px;
  transition: transform 0.5s;
}
.pic:hover img { transform: scale(1.1); }

/* Overlay */
.project-overlay {
  position: absolute;
  bottom: 0; left: 0; right: 0;
  background: rgba(0, 128, 255, 0.8);
  color: #fff;
  padding: 15px;
  text-align: center;
  opacity: 0;
  transform: translateY(100%);
  transition: 0.4s ease;
  z-index: 2;
}
.pic:hover .project-overlay {
  opacity: 1;
  transform: translateY(0);
}
.project-overlay h3, .project-overlay p {
  font-size: clamp(12px, 2vw, 16px);
}
.project-overlay a {
  color: #fff;
  padding: 8px 15px;
  text-decoration: none;
  margin-top: 10px;
  border-radius: 4px;
  display: inline-block;
}

/* Footer */
.footer {
  position: relative;
  background-color: #003366;
  color: #fff;
  padding: 40px 20px;
  font-family: 'Segoe UI', sans-serif;
  overflow: hidden;
}
.footer::before {
  content: "";
  position: absolute;
  inset: 0;
  background: url('/image/footer-im.jpg') no-repeat center center;
  background-size: cover;
  opacity: 0.3;
  z-index: 0;
}
.footer * { position: relative; z-index: 1; }
.footer-container {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
  gap: 30px;
  max-width: 1200px;
  margin: auto;
}
.footer-box h3 {
  color: #ffcc00;
  margin-bottom: 12px;
  font-size: 18px;
}
.footer-box p, .footer-box a, .footer-box li {
  font-size: 15px;
  line-height: 1.6;
  color: #fff;
}
.footer-box ul { list-style: none; padding: 0; }
.footer-box li {
  margin-bottom: 8px;
  position: relative;
  padding-left: 18px;
}
.footer-box li::before {
  content: "•";
  position: absolute;
  left: 0;
  color: #ffcc00;
}
.social-icons { display: flex; gap: 12px; margin-top: 10px; }
.social-icons a {
  font-size: 20px;
  color: #fff;
  transition: color 0.3s;
}
.social-icons a:hover { color: #ffcc00; }
.footer-bottom {
  text-align: center;
  margin-top: 25px;
  font-size: 13px;
  border-top: 1px solid #ffffff33;
  padding-top: 12px;
  color: #ccc;
}

/* Responsive tweaks */
@media (max-width: 768px) {
  .nav-menu {
    display: none;
    flex-direction: column;
    gap: 10px;
    background: #fff;
    padding: 15px;
    border-radius: 6px;
  }
  .nav-menu.active { display: flex; }
  .hamburger { display: block; }
  .footer-container {
    grid-template-columns: 1fr;
    text-align: center;
  }
  .footer-box { margin-bottom: 20px; }
}

.project-overlay {
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
  background: rgba(0,0,0,0.6);
  color: #fff;
  padding: 10px;
  font-size: 14px;
 /* display: none;*/
}

.pic:hover .project-overlay {
  display: block;
}


