@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 --- */
:root {
  --body-font: "Roboto", sans-serif;
  --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{
  height: 100%;
}

body {
  font-family: var(--body-font);
  line-height: 1.6;
  background-color: #f0eeeb;
  font-family:"Roboto", sans-serif ;
  display:flex;
  flex-direction:column;
  min-height: 100vh;
  margin: 0;
}

main{
  flex:1;
}


ul {
  list-style: none;
}

a {
  text-decoration: none;
}

/* --- Header --- */
.header {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
 background-color: transparent;
  transition: background-color 0.3s ease, box-shadow 0.3s ease;
  z-index: 1000;
  height: var(--header-height);
}

.header.scrolled-header {
  background: #fff;
  box-shadow: 0 2px 5px rgba(0,0,0,0.1);
  height:var(--header-height);
}

.nav {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 0 1rem;
}

.nav__logo img {
  width: 150px;
  height: auto;
  display: block;
  margin: 1rem 0 0 .9rem;
  filter: brightness(0) invert(0);
}

/* Mobile Menu */
.nav__menu {
  position: fixed;
  top: 0;
  right: -100%;
  width: 80%;
  height: 100%;
  background: transparent;
  backdrop-filter: blur(12px);
  display: flex;
  flex-direction: column;
  padding: 6rem 2rem;
  transition: right 0.3s ease;
}

.nav__menu.show-menu {
  right: 0;
}

.nav__toggle,
.nav__close {
  font-size: 1.4rem;
  cursor: pointer;
}
.nav__toggle{
  padding-right: 1rem;
}

.nav__close {
  position: absolute;
  top: 1rem;
  right: 2rem;
}

.nav__list {
  display: flex;
  flex-direction: column;
  gap: 2rem;
}

.nav__link {
  color: #000;
  font-size: 1.2rem;
  font-weight: var(--font-regular);
  padding: .5rem 0;
  text-align: left;
  transition: color 0.3s ease-in-out;
}

.nav__link:hover {
   font-weight: var(--font-semi-bold);
}


/* Two-Column Layout (Mobile-First: Stacked) */
.main-content-section {
  padding: 2rem 1rem;
  margin-top: 6rem;
  background-color: #f0eeeb;
}

.content-wrapper {
  display: flex;
  flex-direction: column; /* Stacks columns on mobile */
  gap: 2rem;
  max-width: 100%;
  margin: 0 auto;
}

/* Left Articles Container (Full Width on Mobile) */
.scrollable-articles-container {
  padding: 0;
  min-width: unset; /* Reset min-width for mobile */
  order: 0;
}

/* Individual Article (Image on Top) */
.scroll-article {
  display: flex;
  flex-direction: column;
  gap: 1rem;
  margin-bottom: 2rem;
}

.scroll-article .article-image {
  flex-shrink: 0;
  width: 100%;
  height: 300px; /* Adjusted height for mobile */
  overflow: hidden;
  border-radius: 0;
  
}

.scroll-article .article-image img {
  width: 100%;
  height: 100%;
  object-fit: contain;
}

.scroll-article .article-content {
  flex: 1;
  min-width: 0;
}

.scroll-article .article-content h3 {
  font-size: 1.5rem;
  color: #333;
  margin-bottom: 0.5rem;
}

.scroll-article .article-content p {
  font-size: 0.9rem;
  color: #555;
}

.article-separator {
  border: none;
  border-top: 1px solid #eee;
  margin: 2rem 0;
  width: 100%;
}



/* Right Sidebar (Full Width on Mobile) */
.fixed-sidebar {
  flex: auto;
  min-width: unset;
  position: static; /* Disable sticky on mobile */
  top: var(--header-height);
  padding-left: 0;
  border-left: none;
  order: -1;               /* makes sidebar appear before articles */
  width: 100%;             /* full width on mobile */
  max-height: none;        /* allow full height */
  overflow: visible;       /* no internal scroll on mobile */
  padding-left: 0;
  margin-bottom: 1rem;   
  
}

.sidebar-content {
  text-align: left;
}

.sidebar-content h3 {
  font-size: 1.2rem;
  color: #333;
  text-transform: uppercase;
  letter-spacing: 1px;
}

.sidebar-content p {
  font-size: 0.9rem;
  letter-spacing: 1px;
  margin-top: -0.5rem;
  margin-bottom: 1rem;
}

.project-list {
  list-style: none;
  padding: 0;
  margin: 0;
}

.project-list li {
  margin-bottom: 0.8rem;
}
/*
.sidebar-list-separator {
  border: none;
  border-top: 1px solid #eee;
  margin: 1rem ;
  width: 100%;
}

 Gallery Section (Mobile-First) */
.project-gallery-section {
  padding: 2rem 1rem;
  background-color: #f8f8f8;
  text-align: center;
}

.gallery-header {
  margin-bottom: 1.5rem;
}

.gallery-header h2 {
  font-size: 1.5rem;
  color: #333;
}

.gallery-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr); /* 2 columns on mobile */
  gap: 10px;
  max-width: 100%;
  margin: 0 auto;
}

.gallery-item {
  width: 100%;
  padding-bottom: 75%;
  position: relative;
  overflow: hidden;
  cursor: pointer;
}

.gallery-item img {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
}

/* Modal (Mobile-First) */
.modal {
  display: none;
  position: fixed;
  z-index: 1000;
  left: 0;
  top: 0;
  width: 100%;
  height: 100%;
  background-color: rgba(0, 0, 0, 0.9);
  justify-content: center;
  align-items: center;
  flex-direction: column;
}

.modal-content {
  margin: auto;
  display: block;
  max-width: 95%;
  max-height: 80vh;
  object-fit: contain;
}

.close-button,
.prev-button,
.next-button {
  position: absolute;
  color: white;
  cursor: pointer;
  z-index: 2000;
}

.close-button {
  top: 10px;
  right: 20px;
  font-size: 20px;
  color: rgb(247, 240, 240);
  cursor: pointer;
}

.prev-button {
  left: 10px;
  top: 50%;
  transform: translateY(-50%);
}

.next-button {
  right: 10px;
  top: 50%;
  transform: translateY(-50%);
}

/* Arrows style */
.prev-button,
.next-button {
  height: 25px;
  width: 25px;
  box-sizing: border-box;
 
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  background: rgba(255,255,255,0.8); /* off-white */
  color: black;
  font-size: 20px;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 50%; /* round button */
  cursor: pointer;
  transition: background 0.3s ease;
  user-select: none;
  border: none;
}
.prev-button{
  padding-right: 3px;
}
.prev-button:hover,
.next-button:hover {
  background: #3b3939; /* ash color */
  color:#eee
}
footer{
  text-align: center;
  background-color: #e7e5e2;
  color:rgb(0, 0, 0);
  margin: 0;
  margin-bottom: -2rem;
  font-size: 10px;
  padding: 10px;
}

/* --- Tablet Media Query (993px - 1439px) --- */
@media only screen and (min-width: 768px){
 .nav__logo img {
    width: 200px;
    height: auto
  }

  .nav__menu {
    width: 20%;
  }
  

  .main-content-section {
    padding: 3rem 1.5rem;
  }

  .content-wrapper {
    flex-direction: row; /* Two columns on tablet */
    gap: 2rem;
    
  }

  .scrollable-articles-container {
    flex: 2.5;
    padding-right: 1.5rem;
  }

  .scroll-article .article-image {
    height: 300px;
    object-fit: fill;
  }

  .fixed-sidebar {
    position: fixed;
    top: calc(var(--header-height) + 2rem);
    right: 1.5rem;
    width: 280px;
    height: calc(100vh - 10rem);
    overflow-y: auto;
    
    background: #f0eeeb;
    order: 1;
  }

  .scrollable-articles-container {
    margin-right: 320px;
  }
  

  .main-content-section { padding: 3rem 1.5rem; }
  .content-wrapper { flex-direction: column; }
  .gallery-grid { grid-template-columns: repeat(3, 1fr); }


  .gallery-item img {
    height: 150px;
  }
 
.prev-button,
.next-button{
font-size: 30px;
}
.prev-button{
padding-right: 3px;

}
.next-button{
  padding-left: 2.5px;
}
 .close-button{
  font-size: 25px;
 }
}

@media only screen and (min-width: 1024px){
.nav__logo img{
  padding-left: 2.7rem;
width: 225px;
}

   .nav__toggle{
    margin-right: 3rem;
    margin-top: 20px;
    font-size: 1.8rem;
  }
    .nav__list {
    gap: 2.5rem;
  }
.article-content p{
  padding-left: 10rem;
  padding-right: 10rem;
}
.gallery-header{
  padding-left: 3rem;
}

 .prev-button,
  .next-button{
  font-size: 24px;
    height: 30px;
  width: 30px;
  }
.prev-button{
  padding-right: 2px;
}
 .next-button{
  padding-left: 2px;
 }

 .close-button{
  font-size: 25px;
 }
 

     .fixed-sidebar {
    position: fixed;
    top: calc(var(--header-height) + 2.5rem);
    right: calc((100% - 1200px) / 2);
    width: 300px;
    height: calc(100vh - 14rem);
    overflow-y: auto;
    order: 1;
  }

  .scrollable-articles-container {
    margin-right: 370px;
  }
  
  .project-list {
    line-height: 20px;
  }
  footer{
    font-size: 15px;
    padding: 20px;
    margin-bottom: -2rem;
  }
}

/* --- Desktop Media Query (1440px+) --- */
@media screen and (min-width: 1440px) {
  .header {
  height: 5rem;
}
    .nav__menu {
    width: 20%;
  }
  
 .nav {
    margin: 0 auto;
    padding: 0 5rem;
    width: 100%;
  }
   .nav__toggle{
    margin-right: 3.5rem;
    margin-top: 20px;
  }
  
  .nav__list {
    gap: 4rem;
  }
   .nav__logo img {
    width: 180px;
    height: auto;
 
  }
  .main-content-section {
    padding: 4rem 0;
  }

  .content-wrapper {
    flex-direction: row;
    gap: 3rem;
    max-width: 1400px;
  }
  .article-content p{
  padding: 15px;
  
}
  .scroll-article .article-image {
    height: 400px;
  }
  .fixed-sidebar {
    position: fixed;
    top: calc(var(--header-height) + 5rem);;
    right: calc( (100% - 1400px) / 2 ); /* যদি আপনি content-wrapper max-width:1400px ব্যবহার করেন */
    width: 300px; 
    max-height: calc(100vh - var(--header-height));
    overflow-y: auto; 
    z-index: 20;
  }

  .scrollable-articles-container {
    margin-right: 620px; /* sidebar width + gap */
       flex: 2.5;
  
  }


  .article-image img {
    object-fit: cover;
  }
  
  .gallery-grid {
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 15px;
  }
  
  .gallery-item img {
    height: 180px;
  }



.next-button{
  right: 35px;
  padding-left: 3px;
}
.prev-button{
  left: 35px;
  padding-left: 1.5px;

}
.close-button{
  right:35px;
  top:20px;
  font-size: 27px;
}
.close-button .ri-close-line{
  font-weight: var(--font-light);
}


  footer{
    font-size: 15px;
  }
}