@import url('https://fonts.googleapis.com/css2?family=Exo+2:ital,wght@0,100..900;1,100..900&family=Montserrat+Alternates:wght@400;600;700&family=Montserrat:ital,wght@0,100..900;1,100..900&family=Roboto:ital,wght@0,100..900;1,100..900&display=swap');

/* --- Base and Mobile-First Styles (Default for all devices) --- */

:root{
  --z-fixed: 100;
    --font-light: 300;
  --font-regular: 400;
  --font-semi-bold: 600;
   --header-height: 5rem;
}

* {
  box-sizing: border-box;
  padding: 0;
  margin: 0;
}
html, body{
      height: 100%;
      margin: 0;
}
 body{
    font-family:"Roboto", sans-serif ;
    display:flex;
    flex-direction:column;
    min-height: 100vh;
     background-color:#f0eeeb;
}
main{
  flex:1;

}


ul {
  list-style: none;
}

a {
  text-decoration: none;
}

/* --- Header --- */
.header {
  position: fixed;
  width: 100%;
  top: 0;
  left: 0;
  background: transparent !important;
  backdrop-filter: none !important;
  -webkit-backdrop-filter: none !important;
  z-index: var(--z-fixed);
  transition: background-color 0.3s ease-in-out, box-shadow 0.3s ease-in-out;
   height: var(--header-height);
}

.nav {
  display: flex;
  justify-content: space-between; /* logo left, menu right */
  align-items: center;
  height: 4rem;
  padding: 0 1rem;
  width: 100%;
  background-color: transparent;
}

.nav__logo img {
  width: 160px;
  height: auto;
  border: none;
  outline: none;
  margin-top: 6px;
  margin-left: 12px;
  transition: filter 0.3s ease-in-out;
  display: block;
  filter: brightness(0) invert(0);
}

.nav__menu {
  position: fixed;
  top: 0;
  right: -100%;
  background-color: hsla(0, 0%, 100%, .1);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  width: 70%;
  height: 100%;
  padding: 6rem 3rem 0;
  transition: right .4s;
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  padding-left: 3rem;
  justify-content: flex-start;
}
.show-menu {
  right: 0;
}

.nav__toggle,
.nav__close {
  font-size: 1.5rem;
  cursor: pointer;
  transition: opacity 0.3s ease;
  color: black;
}

.nav__toggle {
  padding-top: 10px;
  padding-right: 10px;
}

.nav__close {
  position: absolute;
  top: 1rem;
  right: 0;
  padding-right: 25px;
  padding-top: 6px;
}

.nav__list {
  display: flex;
  flex-direction: column;
  row-gap: 3rem;
  align-items: flex-start;
  text-align: left;
  padding: 0;
  margin: 0;
  width: 100%;
}

.nav__link {
  color: var(--white-color);
  font-weight: var(--font-regular);
  font-size: 1.2rem;
  padding: .5rem 0;
  display: block;
  width: 100%;
  margin: 0;
  text-align: left;
  transition: color 0.3s ease-in-out;

}

.nav__link:hover {
  color: black;
  font-weight: var(--font-semi-bold);
}



/* Solid Header State (Added by JavaScript on scroll) */
.header.scrolled-header {
   background: #fff !important;
  box-shadow: 0 2px 5px rgba(0,0,0,0.1);
  backdrop-filter: none !important;  /* blur যেন না থাকে */
  -webkit-backdrop-filter: none !important;
}

.header.scrolled-header .nav__link {
  color: #333;
}

.header.scrolled-header .nav__logo img {
  filter: brightness(0) invert(0);
}

.header.scrolled-header .nav__toggle,
.header.scrolled-header .nav__close {
  color: #333;
}

.our-service-section {
background-color:#f0eeeb;
margin: 12px;
  
}
.our-service-section::after{
  content: "";
  display: block;
}

.service-section-header h2 {
    font-size: clamp(1.5rem, 4vw, 2.5rem);
    color: #333;
    margin: 0 0 2rem 0;
    text-transform: uppercase;
    letter-spacing: 2px;
    text-align: center;
}

.service-articles-container {
    max-width: 100%;
    margin: 0 auto;
    padding: 0;
    text-align: left;
    margin-top: 5rem;
}

/* Individual Service Article (Stacked on Mobile) */
.service-article {
    display: flex;
    flex-direction: column; /* Stacks content on mobile */
    align-items: flex-start; /* Aligns items to the left */
    gap: 1.5rem;
    margin-bottom: 2rem;
}

/* Fix for the first article - ensures consistent stacking on mobile */
.service-article.service-left-text {
    flex-direction: column; 
}


/* Service Image (Full width on mobile) */
.service-image {
    flex-shrink: 0;
    width: 100%;
    height: 200px; /* Adjust height for mobile */
    overflow: hidden;
    border-radius: 5px;
    box-shadow: 0 5px 15px rgba(0,0,0,0.1);
    order: 1; /* Puts the image on top */
}

.service-image:hover {
  transform: scale(1.01);
  filter: brightness(0.8);
}
.service-image img {
    display: block;
    width: 100%;
    height: 100%;
    object-fit: cover;
}

/* Service Content (Text) */
.service-content {
    flex: 1;
    min-width: 0;
    
    order: 2; /* Puts the text below the image */
}

.service-content .service-number {
    font-size: 2.5rem; /* Smaller number for mobile */
    font-weight: bold;
    color: #e7e5e5;
    display: block;
    margin-bottom: 10px;/* Spacing between number and heading */
}



.service-content h3 {
    font-size: clamp(1.4rem, 3vw, 1.8rem);
    color: #333;
    margin-bottom: 1rem;
    margin-top: 0;
}

.service-content p {
    font-size: clamp(0.9rem, 2vw, 1rem);
    color: #666;
    line-height: 1.6;
    margin-bottom: 1rem;
}


.view-project-link {
  display: inline-block;
  color: black;
  height: 25px;
  width: 130px;
  font-size: 12px;
  line-height: 25px; /* vertical centering */
  text-align: center;
  margin-top: 1rem;
  border-radius: 5px;
  border: 1px solid;
  text-decoration: none; /* removes underline */
  background-color: white;
  cursor: pointer;
}

.view-project-link:hover {
    color: white;
    background-color: black;
}

/* Horizontal Divider Line */
.service-divider {
    border: none;
    border-top: 1px solid orange;
    margin: 2rem auto;
    width: 100%;
}
 footer{
    background-color:  #e7e5e2;
    color: #000000;
    text-align: center;
    padding:10px;
    font-size: 10px;
}

@media only screen and (min-width: 768px) {
  /* Tablet-specific styles. This is where you might switch from a single-column */
  /* to a two-column layout. */
  .nav__logo img {
    width: 180px;
  }

  .nav__menu {
    width: 50%;
  }
  
  .container {
 
    padding: 0 1.5rem;
  }
   .our-service-section {
        padding: 4rem 1rem;
    }
    
    .service-articles-container {
        max-width: 1200px;
        padding: 0 2rem;
    }

   
    .service-article {
        flex-direction: row; /* Horizontal layout for desktop */
        align-items: center;
        gap: 3rem;
        margin-bottom: 3rem;
        justify-content: space-between;
    }

    /* Force the first article to have a reversed layout (text on left, image on right) if needed */
    .service-article.service-left-text {
        flex-direction: row; /* Image on right, text on left */
        justify-content: space-between;
    }

    .service-content {
        flex: 1;
        min-width: 0;
        order: 1; /* Puts text first */
    }

    .service-image {
        width: 380px; /* Fixed width on desktop */
        height: 230px;
        order: 2; /* Puts image second */
    }

    .service-content .service-number {
        font-size: 3rem;
    }

    .service-divider {
        margin: 3rem auto;
    }
     footer{
        font-size: 20px;
        padding: 20px;
     }
}

@media only screen and (min-width: 1024px) {
.nav__logo{
  margin-left: 3rem;
}
     .nav__list {
    gap: 1.9rem;
  }
    .nav__menu{
  width: 20%;
}
  .nav__toggle{
    margin-right: 1.5rem;
    font-size: 1.8rem;
  }

  .view-project-link{
    font-size: 13px;
    height: 30px;
    width:130px;
    line-height: 30px;
  }

  .container {
    max-width: 1200px;
    padding: 0 2rem;
    
  }

  .service-article {
    gap: 5rem;
    
}
footer{
  font-size: 15px;
}
}


@media only screen and (min-width: 1440px) {
  .container {
    max-width: 1400px;
  }

.nav {
    margin: 0 auto;
    padding: 0 5rem;
    width: 100%;
  }

  .nav__toggle{
    padding-right: 1.5rem;
  }

 
  .our-service-section{
    margin-top: 5rem;
  }
  footer{
    font-size: 15px;
  }
}