*{
	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;
}
