*{
  margin:0;
  padding:0;
  box-sizing:border-box;
  font-family: 'Poppins', sans-serif;
}

body{
  color:#333;
  /* background-color: #f7f6f4;  */
  background-color: #f8f8f7; /* light grey */
}

/* HEADER */
header{
  position:fixed;
  width:100%;
  top:0;
  left:0;
  display:flex;
  justify-content:space-between;
  padding:20px 20px;
  /* background:rgba(0,0,0,0.4); */
  background:rgba(170, 163, 150, 0.8);
  color:#fff;
  z-index:1000;
}

header nav a{
  margin:0 15px;
  color:#fff;
  text-decoration:none;
  font-size:14px;
}

/* HERO */
html {
  scroll-behavior: smooth;
}
.hero {
  height: 100vh;
  display:flex;
  align-items:center;
  justify-content:center;
  text-align:center;
  color:#fff;
  padding:20px;

  background-size: cover;
  background-position: center;
  animation: slideShow 16s infinite;
  transition: background-image 1s ease-in-out;
}

@keyframes slideShow {
0% {
  background-image: url('../images/hansi.webp');
}
15% {
  background-image: url('../images/hansi.webp');
}
25% {
  background-image: url('../images/260503-KMBedroom/2girls/br3.webp');
}
50% {
  background-image: url('../images/pelmadullahouse/stage02/pm2-8.webp');
}
75% {
  background-image: url('../images/makuluduwa-house.jpg');
}
100% {

  background-image: url('../images/pm2-8.webp');
}
}

.hero h1 {
  font-size: clamp(28px, 6vw, 70px);
  margin-bottom: 15px;
  color: #fff;
/* 
  text-shadow:
    -1px -1px 0 white,
    1px -1px 0 white,
    -1px  1px 0 white,
    1px  1px 0 white; */
}

.hero h5 {
  font-size: clamp(16px, 3vw, 30px);
  margin-bottom: 15px;
  color: #fff;

}


.hero p{margin-bottom:20px;}

.btn{
  padding:10px 20px;
  border:none;
  margin:5px;
  cursor:pointer;
  transition:0.3s ease;
}

.btn-primary{
  background:#fff;color:#000;
  transition:0.3s ease;
}

.btn-dark{
  background:#AAA396;color:#2F2926;
  margin:10px auto;
  transition:0.3s ease;
}
.btn:hover{
  opacity:0.9;
  transform:translateY(-2px);
}


section{
  padding:80px 20px;
  text-align:center;
}

.services{
  display:flex;
  justify-content:space-around;
  flex-wrap:wrap;
  margin-top:40px;
}

/* service image logo */

.service img{
  width:150px;
  height:160px;
  border-radius:100%;
  object-fit:contain;
  outline:4px solid rgba(170, 163, 150, 0.8);
  transition:0.4s ease;
  margin-bottom:15px;
}

.service img:hover{
  transform:scale(1.08);
}
/* service image logo  #2F2926 */

.service{
width:200px;
margin:20px;
}

/* On going */

.featured-project{
  width:100%;
  max-width:1400px;
  margin:40px auto;
  display:flex;
  flex-wrap:wrap;
  align-items:center;
  gap:40px;
  padding:0 20px;
}

.featured-text{
  flex:0.8;
  min-width:clamp(250px, 40vw, 500px);
  text-align:left;
}

.featured-image{
  flex:1.5;
  min-width:clamp(300px, 50vw, 700px);
}

.featured-image img{
  width:100%;
  border-radius:10px;
  transition: transform 0.4s ease;
}

.featured-image:hover img {
  transform: scale(1.1);
}

/* On going */

.projects{
  display:grid;
  grid-template-columns:
  repeat(auto-fit, minmax(300px, 1fr));
  gap:40px;
  width:100%;
  max-width:1600px;
  margin:40px auto;
}

.project{
  width:100%;
  overflow: hidden;
  border-radius: 10px;
  /* width:300px;
  margin:15px; */
}

p + .btn{
  display: inline-block;
  margin-top: 15px;
}
.project img{
  width: 100%;
  object-fit: cover;
  border-radius: 10px;
  transition: transform 0.4s ease;
}

.project:hover img {
  transform: scale(1.1);
}


.stats{
  background:#AAA396;
  color:#fff;
  display:flex;
  justify-content:space-around;
  flex-wrap:wrap;
}

.stat{margin:10px;}

footer{
  background:#AAA396;
  color:#fff;
  padding:40px;
  text-align:center;
}

.project-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
  gap: 20px;
}

.img-box {
  width: 100%;
  height: clamp(200px, 25vw, 300px);
  overflow: hidden;
}

.img-box img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.4s ease;
}

.img-box:hover img {
  transform: scale(1.1);
}

.project h4 {
  margin-top: 10px;
  text-align: center;
}

.project h4 a{
  text-decoration: none;
  color: #2f2926;
}

.project h4 a:hover{
  color: #9C7A5A;
}

/* project pages */

.page-content{
  padding:120px 50px 80px; /* space for fixed header */
  text-align:center;
}

.page-content h1{
  font-size:40px;
  margin-bottom:20px;
}

a i{
  margin-right: 5px;
  color: #0077b5; /* LinkedIn blue */
}

h2{
  color: #2f2926;
}

h3{
  margin-bottom: 6px;
  margin-top:30px ;
}

.project h4{
  text-align: center;
}

p {
  color: #2f2926;
  margin-top: 10px;
}

.page-content p{
  max-width:700px;
  margin:0 auto 40px;
  line-height:1.6;
}

/* IMAGE GALLERY */
.gallery{
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 20px;
  max-width: 1200px;
  margin: auto;
}

.gallery img{
  width:100%;
  height:250px;
  object-fit:cover;
  border-radius:10px;
}


#popup{
  display:none;
  position:fixed;
  top:0;
  left:0;
  width:100%;
  height:100%;
  background:rgba(0,0,0,0.9);
  justify-content:center;
  align-items:center;
  z-index:2000;
}

#popup img{
  max-width:90%;
  max-height:90%;
  border-radius:10px;
}

.prev, .next{
  position:absolute;
  top:50%;
  transform:translateY(-50%);
  font-size:40px;
  color:white;
  cursor:pointer;
  padding:10px;
  user-select:none;
}

.prev{ left:20px; }
.next{ right:20px; }



/* IMAGE GALLERY */

a{
  text-decoration: none;
  color: inherit;
}

/* Whatsapp */
.wa-float{
  position: fixed;
  bottom: 20px;
  right: 20px;
  width: 65px;
  height: 65px;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 50%;
  background: rgba(37, 211, 102, 0.3);
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
  z-index: 999;
  box-shadow: 0 4px 20px rgba(0,0,0,0.2);
  transition: 0.3s ease;
}

.wa-float:hover{
  transform: scale(1.08);
}

.wa-float img{
  width: 34px;
  height: 34px;
}

/* Whatsapp */

/* mobile */

html, body {
  overflow-x: hidden;
}

* {
  max-width: 100%;
}


/* Back button */
.back-float{
  position: fixed;
  bottom: 15px;
  left: 15px;
  width: 38px;
  height: 38px;
  background: rgba(170, 163, 150, 0.50);
  color: white;
  font-size: 20px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  text-decoration: none;
  z-index: 999;
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  box-shadow: 0 2px 10px rgba(0,0,0,0.12);
  transition: 0.3s ease;
}

.back-float:hover{
  transform: scale(1.05);
}
/* Back button */


/* logo */
#contact{
  padding:60px 20px;
  text-align:center;
  background:#f8f8f7;
}

#contact h2{
  margin-bottom:25px;
  font-size:1.5rem;
}

#projects h2{
  font-size:1.5rem;
}

.social-icons{
  display:flex;
  justify-content:center;
  align-items:center;
  gap:25px;
  margin-bottom: 18px;
}

.contact-icon{
  width:32px;
  height:32px;
  object-fit:contain;
  transition:0.3s;
}

.contact-icon:hover{
  transform:scale(1.15);
}
.contact-icon-phone{
  width:25px;
  height:25px;
  object-fit:contain;
  transition:0.3s;
}


/* credits */
#credits{
  padding:60px 20px;
  text-align:center;
  background:#f8f8f7;
}

#credits h2{
  margin-bottom:25px;
  font-size:1.5rem;
}

#projects h2{
  font-size:1.5rem;
}

.credits-icons{
  display:flex;
  justify-content:center;
  align-items:center;
  gap:25px;
  margin-bottom: 18px;
  animation: scroll-left 22s linear infinite;
}

@keyframes scroll-left {
  0% {
    transform: translateX(100%);
  }
  100% {
    transform: translateX(-100%);
  }
}

.credits-icon{
  width:60px;
  height:60px;
  object-fit:contain;
  transition:0.3s;
}

.credits-icon:hover{
  transform:scale(1.15);
}
.credits-icon-phone{
  width:25px;
  height:25px;
  object-fit:contain;
  transition:0.3s;
}


/* reviews */
.map-container iframe {
  width: 100%;
  height: 350px;
  border: 0;
}

.reviews-icons{
  display:flex;
  justify-content:center;
  align-items:center;
  gap:25px;
  margin-bottom: 18px;
  animation: scroll-left 50s linear infinite;
}
.reviews-icons img {
  width:45%;
  height: auto;
  border-radius: 10px;
  transition: transform 0.2s;
}

.reviews-icons img:hover {
  transform: scale(1.05);
}

.reviews-icon{
  width: 100%;
  height: 350px;
  object-fit:contain;
  transition:0.3s;
}

.review-icon:hover{
  transform:scale(1.15);
}
.review-icon-phone{
  width:25px;
  height:25px;
  object-fit:contain;
  transition:0.3s;
}

/* youtube */
.video-container {
  position: relative;
  padding-bottom: 56.25%; /* 16:9 ratio */
  height: 0;
  overflow: hidden;
  max-width: 100%;
  margin-bottom: 20px;
}

.video-container iframe {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
}


/* phone */

@media(max-width:768px){
  header{
    padding: 15px 20px;
    display:flex;
    justify-content:space-between;
  }

  header h2{
    font-size: 18px;
    text-decoration: none;
    color: #2f2926;
    margin-right:4vw;
  }

  header nav{
    display: flex;
    gap: 1vw;
    flex-wrap: nowrap;
    margin-left: auto;
  }

  header nav a{
    font-size: 12px;
  }
  nav ul {
    flex-direction: column;
    align-items: center;
    gap: 10px;
  }

  body {
    overflow-x: hidden;
  }

  .container {
    width: 100%;
    padding: 10px;
  }

  h1, h2, h3 {
    font-size: 90%;
  }


  .services,
  .stats {
    flex-direction: column;
    align-items: center;
  }

  .featured-project{
    width: 100%;
    grid-template-columns: 1fr;
    justify-content: center;
    justify-items: center;
    background:rgba(170, 163, 150, 0.4);
    margin-bottom: 5rem;
  }

  .projects{
    width: 100%;
    grid-template-columns: 1fr;
    justify-content: center;
    justify-items: center;
  }
  .project h4{
    text-align: center;
  }
  .project{
    width:100%;
  }

  img {
    width: 100%;
    height: auto;
  }
  p {
    font-size: 14px;
    line-height: 1.6;
  }
  /* Whatsapp */
  .wa-float{
    position: fixed;
    bottom: 10px;
    right: 10px;
    width: 40px;
    height: 40px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
    background: rgba(37, 211, 102, 0.3);
    backdrop-filter: blur(8px);
    -webkit-backdrop-filter: blur(8px);
    z-index: 999;
    box-shadow: 0 4px 20px rgba(0,0,0,0.2);
    transition: 0.3s ease;
  }
  .wa-float img{
  width: 24px;
  height: 24px;
  }
}

/* bulletes */
.service-list {
  list-style: none;
  padding-left: 0;
  margin: 0;
}


@media (max-width: 360px) {

  header{
  display:flex;
  align-items:center;
  }
  nav {
    flex-direction: column;

  }

  nav ul {
    flex-direction: column;
    align-items: center;
    display: flex;
    gap: 10px;
  }

  header nav{
    display: flex;
    gap: 10px;
    flex-wrap: wrap;
    margin-left: auto;
  }
  header h2{
    font-size: 18px;
    text-decoration: none;
    color: inherit;
    align-items:center;
    color: #2f2926;
  }
}

/* mobile */

/* Website developed with OpenAI ChatGPT  */