* {
    margin: 0;
    padding: 0;
    border: 0;
    outline: 0;
    text-decoration: none;
    list-style: none;
    box-sizing: border-box;
}


:root {
  --color-primary: #6c63ff;
  --color-success: #00bf8e;
  --color-warning: #f7c94b;
  --color-danger: #f75842;
  --color-danger-variant: rgba(247, 88, 66, 0.4);
  --color-white: #fff;
  --color-light: rgba(255, 255, 255, 0.7);
  --color-black: #000;
  --color-bg: #1f2641;
  --color-bg1: #2e3267;
  --color-bg2: #424890;
  

  --container-width-lg: 80%;
  --container-width-md: 90%;
  --container-width-sm: 94%;

  --transition: all 400ms ease;

}

body {
     font-family: "Montserrat", sans-serif;
     line-height: 1.7;
     color: var(--color-white);
     background: var(--color-bg);
}


.container {
    width: var(--container-width-lg);
    margin: 0 auto;
}

section {
    padding: 6rem 0;
}

section h2 {
    text-align: center;
    margin-bottom: 4rem;
}

h1, 
h2, 
h3, 
h4, 
h5 {
    line-height: 1.2;
}


h1 {
    font-size: 2.4rem;
}

h2 {
    font-size: 2rem;
}

h3 {
    font-size: 1.6rem;
}

h4 {
    font-size: 1.3rem;
}

a {
    color: var(--color-white);
}

img {
    width: 100%;
    display: block;
    object-fit: cover;
}
.btn {
    display: inline-block;
    background: var(--color-white);
    color: var(--color-black);
    padding: 1rem 2rem;
    border: 1px solid transparent;
    font-weight: 500;
    border-radius: 10px;
}


.btn:hover {
    background: transparent;
    color: var(--color-white);
    border-color: var(--color-white);
    cursor: pointer;
}
.btn-primary {
    background: var(--color-danger);
    color: var(--color-white);
    border-radius: 10px;
}


.white {
  color: white;
}

.blue {
  color: #007bff;
}

.orange {
  color: orange;
}

.cursor {
  display: inline-block;
  color: white;
  font-weight: bold;
  animation: blink 0.7s infinite;
}

@keyframes blink {
  0%, 50%, 100% { opacity: 1; }
  25%, 75% { opacity: 0; }
}


/* =================== NAVBAR ======================== */

nav {
  background: transparent;
  width: 100vw;
  height: 5rem;
  position: fixed;
  top: 0;
  z-index: 11;
  
}

/* change navbar on scroll using javascript*/
.window-scroll {
   background: var(--color-primary);
   box-shadow: 0 1rem 2rem rgba(0, 0, 0, 0.2);

}

.nav__container {
    height: 100%;
    display: flex;
    justify-content: space-between;
    align-items: center;
    
}
nav button {
    display: none;
}
.nav__menu {
    display: flex;
    align-items: center;
    gap: 4rem;
}
.nav__menu a {
    font-size: 0.9rem;
    transition: var(--transition);
}
.nav__menu a:hover {
    color: var(--color-bg2);
}


/* -===================== HEADER ====================- */


header {
    position: relative;
    top: 5rem;
    overflow: hidden;
    height: 70vh;
    margin-bottom: 5rem;
}

.header__container {
    display: grid;
    grid-template-columns: 1fr 1fr;
    align-items: center;
    gap: 5rem;
    height: 100%;
}

/* Responsive video wrapper used in header */
.header__right-image {
    /* width will be set dynamically to match the replaced image size;
       CSS provides sensible defaults and responsive fallbacks */
    width: auto;
    display: block;
    margin-left: auto;
    border-radius: 14px;
    overflow: hidden;
    box-shadow: 0 1.5rem 3rem rgba(7,8,20,0.45);
    max-width: 100%;
}
.video-wrapper {
        position: relative;
        width: 100%;
        /* 16:9 aspect ratio */
        padding-bottom: 56.25%;
        height: 0;
        background: #000;
}
.video-wrapper iframe {
        position: absolute;
        top: 0;
        left: 0;
        width: 100%;
        height: 100%;
        border: 0;
        display: block;
}

.video-wrapper video {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    border: 0;
    display: block;
    object-fit: cover;
}

/* ensure header video is full width on small screens */
@media screen and (max-width: 1024px){
    .header__right-image {
        max-width: 420px;
        margin: 0 auto;
    }
}
@media screen and (max-width: 600px){
    .header__right-image {
        max-width: 100%;
        margin: 0 auto;
        border-radius: 10px;
    }
}

.header__left p {
    margin: 1rem 0 2.4rem;
}

 

.wave-container {
  margin-top: -5px;
  position: relative;
  height: 200px;
  overflow: hidden;
}



.wave-svg {
  width: 100%;
  height: 100%;
}



/* -===================== CATEGORIES ====================- */


.categories {
    background: var(--color-bg1);
    /* allow the grid to determine height so two rows can fit naturally */
    height: auto;
}
.categories:hover {
    cursor: pointer;
}

.categories h1 {
    line-height: 1;
    margin-bottom: 3rem;
}

.categories__container {
    display: grid;
    grid-template-columns: 40% 60%;

}

.categories__left {
    margin-right: 4rem;
}
.categories__left p {
     margin: 1rem 0 3rem;
}

.categories__right {
    display: grid;
    /* four columns and two rows */
    grid-template-columns: repeat(4, 1fr);
    grid-template-rows: repeat(2, 1fr);
    gap: 1.2rem;
    align-items: stretch; /* make items equal height */
}

.category {
    background: var(--color-bg2);
    padding: 2rem;
    border-radius: 2rem;
    transition: var(--transition);
}

.category:hover {
    box-shadow: 0 3rem 3rem rgba(0, 0, 0, 0.3);
    z-index: 1;
}

.category:nth-child(2) .category__icon {
    background: var(--color-danger);
}
.category:nth-child(3) .category__icon {
    background: var(--color-success);
}
.category:nth-child(4) .category__icon {
    background: var(--color-danger);
}
.category:nth-child(5) .category__icon {
    background: var(--color-success);
}
.category:nth-child(6) .category__icon {
    background: var(--color-danger);
}
.category:nth-child(7) .category__icon {
    background: var(--color-success);
}


.category__icon {
    background: var(--color-primary);
    padding: 0.7rem;
    border-radius: 0.9rem;
}

.category h5 {
    margin: 2rem 0 1rem;
}

.category p {
    font-size: 0.85rem;
}


/* =================== POPULAR SERVICES ======================== */


.services {
    margin-top: 10rem;
}

.services__Container {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 2rem;

}

/* modern card styles for services */
.services {
    margin-top: 10rem;
    /* subtle background band */
    background: linear-gradient(180deg, rgba(0,0,0,0.02), transparent);
    padding: 3rem 0 4rem;
}

.services__Container {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 2rem;
  align-items: stretch;

}

.service {
    background: linear-gradient(180deg, rgba(255,255,255,0.03), rgba(255,255,255,0.01));
    text-align: left;
    border: 1px solid rgba(255,255,255,0.03);
    transition: transform 360ms ease, box-shadow 360ms ease, border-color 360ms ease;
    border-radius: 18px;
    overflow: hidden;
    display: flex;
    flex-direction: column;
}

.service:hover {
    transform: translateY(-8px);
    box-shadow: 0 1.5rem 3rem rgba(7,8,20,0.45);
    border-color: rgba(108,99,255,0.25);
}

.service__image {
    width: 100%;
    height: 180px;
    overflow: hidden;
}
.service__image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
    transition: transform 450ms ease;
}
.service:hover .service__image img {
    transform: scale(1.05) rotate(-0.5deg);
}

.service__info {
    padding: 1.6rem 1.6rem 2rem;
    color: var(--color-light);
    flex: 1 1 auto;
}
.service__info h4 {
    margin-top: 0.5rem;
    color: var(--color-white);
}
.service__info p {
    margin: 0.8rem 0 1.4rem;
    font-size: 0.95rem;
    color: rgba(255,255,255,0.85);
}

.service__badge {
    display: inline-block;
    background: rgba(255,255,255,0.06);
    color: var(--color-white);
    padding: 0.25rem 0.6rem;
    border-radius: 999px;
    font-size: 0.85rem;
    margin-bottom: 0.4rem;
}

/* special accent for recycling card */
.service.recycling .service__badge {
    background: linear-gradient(90deg, #00bf8e22, #00bf8e44);
    color: var(--color-success);
    font-weight: 600;
}

/* make action button stand out inside card */
.service .btn {
    padding: 0.7rem 1.2rem;
    border-radius: 10px;
    font-size: 0.95rem;
}

/* responsive tweak: allow more columns at larger widths and fallback on smaller screens */
 


/* ===================  FAQs ======================== */

.faqs {
    background: var(--color-bg1);
    box-shadow: inset 0 0 3rem rgba(0, 0, 0, 0.5);
}

.faqs__container {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 1rem;
 
}

.faq {
    padding: 2rem;
    display: flex;
    align-items: center;
    gap: 1.4rem;
    height: fit-content;
    background: var(--color-primary);
    cursor: pointer;
    border-radius: 10px;
}

.faq h4 {
    font-size: 1rem;
    line-height: 2.2;
    color: #fff;
}

.faq__icon {
    align-self: flex-start;
    font-size: 1.2rem;
}

.faq p {
    margin-top: 0.8rem;
    display: none;
}

.faq.open p {
    display: block;
}


/* ===================  TESTIMONIALS ======================== */


.testimonials__container {
    overflow-x: hidden;
    position:relative ;
    margin-bottom: 5rem;
}
.testimonial {
    padding-top: 2rem;


}

.avatar {
    width: 10rem;
    height: 10rem;
    border-radius: 50%;
    overflow: hidden;
    margin: 0 auto 1rem;
    border: 1rem solid var(--color-bg1);
}


.testimonial__info {
    text-align: center;
}

.testimonial__body {
    background: var(--color-primary);
    padding: 2rem;
    margin-top: 3rem;
    position: relative;
    border-radius: 10px;
}

.testimonial__body::before {
    content: "";
    display: block;
    background: linear-gradient(
        135deg,
     transparent, 
    var(--color-primary) ,
    var(--color-primary) ,
    var(--color-primary));
    width: 3rem;
    height: 3rem;
    position: absolute;
    left: 50%;
    top: -1.5rem;
    transform: rotate(45deg);
}



/* ===================  FOOTER ======================== */


footer {
    background: #1f222c;
    padding: 5rem;
    font-size: 0.9rem;
}


.footer__container {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 5rem;
}
.footer__logo img {
    height: auto;
    width: 10rem;
    
}

.footer__container > div h4 {
    margin-bottom: 1.2rem;
}

.footer__1 p {
    margin-bottom: 0 0 2rem;
}

footer ul li {
    margin-bottom: 0.7rem;
}

footer ul li a:hover {
    text-decoration: underline;
}

.footer__socials {
  display: flex;
  gap: 1rem;
  font-size: 1.2rem;
  margin-top: 2rem;
}

.footer__copyright {
    text-align: center;
    margin-top: 4rem;
    padding-top: 1.2rem 0;
    border-top: 1px solid var(--color-bg2);
}




/* ===================  MEDIA QUERIES (TABLETS) ======================*/

@media screen and (max-width: 1024px ){
  .container {
    width: var(--container-width-md);
  }
  h1 {
    font-size: 2.2rem;
  }
  h2 {
    font-size: 1.7rem;
  }
  h3 {
    font-size: 1.4rem;
  }
  h4 {
    font-size: 1.2rem;
  }

/* ===================  NAVBAR ======================*/
  nav button {
    display: inline-block;
    background: transparent;
    font-size: 1.8rem;
    color: var(--color-white);
    cursor: pointer;
    
  }
nav button#close-menu-btn {
   display: none;
  }

.nav__menu {
    position: fixed;
    top: 5rem;
    right: 5%;
    height: fit-content;
    width: 18rem;
    flex-direction: column;
    gap: 0;
    display: none;
     
    
}
.nav__menu li {
    width: 100%;
    height: 5.8rem;
    animation: animateNavItems 400ms linear forwards;
    transform-origin: top bottom;
    opacity: 0;
    

}

.nav__menu li:nth-child(2) {
    animation-delay: 200ms
}
.nav__menu li:nth-child(3) {
    animation-delay: 400ms;
}
.nav__menu li:nth-child(4) {
    animation-delay: 600ms;
}

@keyframes animateNavItems {
    0% {
      transform: rotateZ(-90deg) rotateX(90deg) scale(0.1);
    } 

    100% {
   transform: rotateZ(0) rotateX(0) scale(1);
   opacity: 1;
    }
}
 

.nav__menu li a {
    background: var(--color-primary);
    box-shadow: -4rem 6rem rgba(0, 0, 0, 0.6);
    width: 100%;
    height: 100%;
    display: grid;
    place-items: center;
     border-radius: 3px;
   
    
   
}

.nav__menu li a:hover {
    background: var(--color-bg2);
    color:var(--color-white);
    
}



/* ===================  HEADER ======================*/

header {
    height: 52vh;
    margin-bottom: 4rem;
}

.header__container {
    gap:  0;
    padding-bottom: 3rem;

}

/* ===================  CATEGORIES ======================*/

.categories {
    height: auto;
}
.categories__container {
    grid-template-columns: 1fr;
    gap: 3rem;
}

.categories__left {
    margin-right: 0;
}

/* ===================  POPULAR SERVICES (tablet) ======================*/
.services__Container {
    grid-template-columns: 1fr 1fr;
}


/* ===================  FARs  ======================*/

.faqs__container {
  grid-template-columns: 1fr;
}
.faq {
    padding: 1.5rem;
}


/* ===================  FOOTER  ======================*/

.footer__container {
    grid-template-columns: 1fr 1fr;
}

}





/* ===================  MEDIA QUERIES (PHONE)  ======================*/

@media screen and (max-width:600px){
   .container {
    width: var(--container-width-sm);
   }

   
/* ===================  NAVBAR  ======================*/

.nav__menu {
    right: 3%;
}


/* ===================  HEADER  ======================*/

header {
    height: 100vh;
}
.header__container {
    grid-template-columns: 1fr;
    text-align: center;
    margin-top: 0;
}

.header__left p {
    margin-bottom: 1.3rem;
}


/* ===================  CATEGORIES  ======================*/

.categories__right {
    grid-template-columns: 1fr 1fr;
    gap: 0.7rem;
}
.category {
    padding: 1rem;
    border-radius: 1rem;
}

.category__icon {
    margin-top: 4px;
    display: inline-block;
}
/* ===================  POPULAR SERVICES  ======================*/

.services__Container {
    grid-template-columns: 1fr;

}



/* ===================  TESTIMONIAL  ======================*/
.testimonial__body {
    padding: 1.2rem;
}


/* ===================  FOOTER  ======================*/

.footer__container {
    grid-template-columns: 1fr;
    text-align: center;
    gap: 2rem;
}

.footer__1 p {

    margin: 1rem auto;
}
.footer__socials{
    justify-content: center;

}

}

/* Preloader styles */
#preloader {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: #fff;
    z-index: 9999;
    display: flex;
    justify-content: center;
    align-items: center;
    transition: opacity 0.5s ease, visibility 0.5s;
  }
  
  .loader {
    border: 4px solid #f3f3f3;
    border-top: 4px solid #007bff; /* You can use your theme color here */
    border-radius: 50%;
    width: 180px;
    height: 180px;
    animation: spin 1s linear infinite;
  }
  
  @keyframes spin {
    to { transform: rotate(360deg); }
  }
  