/* 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;
}
input{
	display:none;
	
}
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; }
}
/* Style radio buttons as circles */
input[type="radio"] {
  appearance: none;        /* remove default browser style */
  width: 14px;
  height: 14px;
  border-radius: 50%;
  border: 2px solid #ccc;  /* default border */
  margin: 0 5px;
  cursor: pointer;
  vertical-align: middle;
}

/* Active (checked) radio becomes red circle */
input[type="radio"]:checked {
  background-color: red;
  border-color: red;
}
@media (max-width: 768px) {
  .top-content {
    flex-direction: column;   /* stack labels vertically */
    gap: 10px;
  }
  .top-content label {
    font-size: 18px;
  }
}
*{
	margin:0;
	padding:0;
	box-sizing:border-box;
	font-family:sans-serif;
}
input{
	display:none;
	
}
.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: left;
    justify-content: left;
    padding: 0 20px;
    
}
label{
	display:inline-block;
	height:100%;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(4,1fr);
	grid-gap:15px;
	
}
pic{
	position:relative;
	height:230px;
	border-radius:10px;
	box-shadow:3px 3px 5px black;
	cursor:pointer;
}
.pic img{
	width:100%;
	height:100%;
	border-radius:10px;
	transition:0.5s;
}
.pic{
    position: relative;
    overflow: hidden;
    transform:0.5s;
}

.pic::before{
    content:"";
    position:absolute;
    top:50%;
    left:50%;
    transform: translate(-50%, -50%);
    color:white;
    font-size:22px;
    font-weight:bold;
    width:100%;
    margin-top:-100px;
    opacity:0;
    transition:0.3s;
    z-index:1;
}

.pic::after{
    content:"";
    position:absolute;
    width:100%;
    bottom:0;
    left:0;
    border-radius:10px;
    height:0;
    
    transition:0.3s;
    opacity:0.5;
    
}

.pic:hover::after{
	
    height:100%;
}

.pic:hover::before{
    opacity:1;
    margin-top:0;
}
#check1:checked ~ .container .photo-gallery .pic {
    opacity: 1;
    transform: scale(1);
    position: relative;
    transition: 0.5s;
}

#check2:checked ~ .container .photo-gallery .residential {
    opacity: 1;
    transform: scale(1);
    position: relative;
    transition: 0.5s;
}

#check2:checked ~ .container .photo-gallery .renovation,
#check2:checked ~ .container .photo-gallery .showall {
    opacity: 0;
    transform: scale(0);
    position: absolute;
    transition: 0.5s;
}

#check3:checked ~ .container .photo-gallery .renovation {
    opacity: 1;
    transform: scale(1);
    position: relative;
    transition: 0.5s;
}

#check3:checked ~ .container .photo-gallery .residential,
#check3:checked ~ .container .photo-gallery .showall,
#check3:checked ~ .container .photo-gallery .celebration {
    opacity: 0;
    transform: scale(0);
    position: absolute;
    transition: 0.5s;
}

#check4:checked ~ .container .photo-gallery .celebration {
    opacity: 1;
    transform: scale(1);
    position: relative;
    transition: 0.5s;
}

#check4:checked ~ .container .photo-gallery .residential,
#check4:checked ~ .container .photo-gallery .showall,
#check4:checked ~ .container .photo-gallery .renovation {
    opacity: 0;
    transform: scale(0);
    position: absolute;
    transition: 0.5s;
}
/* Hide hamburger by default */
.hamburger {
  display: none;
  font-size: 28px;
  cursor: pointer;
  color: #1A237E;
}

/* Mobile view */
@media (max-width: 768px) {
  .nav-menu {
    display: none; /* hide menu initially */
    flex-direction: column;
    gap: 10px;
    background: #fff;
    padding: 15px;
    border-radius: 6px;
  }
  .nav-menu.active {
    display: flex; /* show when toggled */
  }
  .hamburger {
    display: block; /* show hamburger icon */
  }
}

.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); /* zoom effect */
}

.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;   /* 🔥 important */
}

.pic:hover .project-overlay {
  opacity: 1;
  transform: translateY(0);
}
.project-overlay a{

color:#ffffff;
padding:8px 15px;
text-decoration:none;
margin-top:10px;
border-radius:4px;
}
