/* ===========================
   GOOGLE FONTS
   =========================== */
@import url("https://fonts.googleapis.com/css2?family=Open+Sans:wght@400;600&display=swap");

/* ===========================
   ROOT VARIABLES
   =========================== */
:root{
  --header-height: 3.25rem;
  --first-color: #3c3d41;
  --first-color-alpha: rgba(60,61,65,0.08);
  --first-color-light: rgba(220,219,215,0.95);
  --dark-color: #0E1026;
  --white-color: #ffffff;
  --accent-color: #09aad8;
  --text-color: #0E1026;
  --container-max: 1200px;
  --radius: 12px;
  --card-shadow: 0 10px 30px rgba(8,10,20,0.08);
  --glass-shadow: 0 6px 18px rgba(8,10,20,0.06);
  --transition-fast: 180ms ease;
  --transition: 360ms cubic-bezier(.2,.9,.3,1);
  --body-font: "Open Sans", sans-serif;
  --nav-name-font-size: 1.2rem;
  --normal-font-size: 0.95rem;
  --z-fixed: 1000;
}

/* Slight adjustments for larger viewports */
@media screen and (min-width:768px){
  :root{
    --nav-name-font-size: 1rem;
    --normal-font-size: 1rem;
  }
}

/* ===========================
   BASE RESET
   =========================== */
*,
*::before,
*::after{ box-sizing: border-box; }

html,body{ height:100%; }

body{
  margin: var(--header-height) 0 0 0;
  font-family: var(--body-font);
  font-size: var(--normal-font-size);
  color: var(--text-color);
  background: linear-gradient(180deg, #fbfcfd 0%, #f6f8fa 100%);
  -webkit-font-smoothing:antialiased;
  -moz-osx-font-smoothing:grayscale;
  font-weight: 600;
  line-height: 1.45;
}

ul{ margin:0; padding:0; list-style:none; }
a{ text-decoration:none; color:inherit; outline: none; }
img{ display:block; max-width:100%; height:auto; }

/* utility: center container */
.bd-grid{
  width:100%;
  max-width:var(--container-max);
  margin:0 auto;
  padding:0 1rem;
}

/* focus ring accessibility */
:focus{ box-shadow: 0 0 0 4px rgba(9,170,216,0.12); outline:none; }

/* ===========================
   HEADER
   =========================== */
.header{
  position: fixed;
  top:0; left:0;
  width:100%;
  height:var(--header-height);
  padding:0 1rem;
  display:flex;
  align-items:center;
  justify-content:space-between;
  gap:1rem;
  z-index:var(--z-fixed);
  background: linear-gradient(180deg, rgba(255,255,255,0.7), rgba(255,255,255,0.55));
  backdrop-filter: blur(6px);
  box-shadow: var(--card-shadow);
  transition: background var(--transition);
}

.brand-heading {
  display: grid;
  justify-content: center;
}


.header__logo{
  font-weight:700;
  color:var(--dark-color);
  letter-spacing:0.2px;
}

/* make the second header text a bit smaller and subtle */
 .header__logo{
  font-weight:600;
  font-size:0.95rem;
  color:rgba(14,16,38,0.75);
}

/* hamburger */
.header__toggle
{
  font-size:1.6rem;
  display:flex;
  align-items:center;
  justify-content:center;
  width:44px;
  height:36px;
  cursor:pointer;
  color:var(--dark-color);
  transition: transform var(--transition-fast), color var(--transition-fast);
  border-radius:8px;
}

/* toggled state icon styling utility (used when JS toggles class on the icon) */
.header__toggle.bx-x
{
  transform: rotate(90deg) scale(1.02);
  color:var(--accent-color);
}

/* ===========================
   NAV (mobile-first)
   =========================== */
/* hidden off-canvas panel */
@media screen and (max-width:768px){
  .nav{
    position: fixed;
    top:0;
    left:-110%;
    width:86%;
    height:100vh;
    padding:2.2rem 1.2rem;
    background: rgba(255,255,255,0.80);
    backdrop-filter: blur(8px);
    box-shadow: var(--glass-shadow);
    border-radius: 0 20px 20px 0;
    transition: left var(--transition), box-shadow var(--transition);
    z-index: calc(var(--z-fixed) + 5);
    overflow-y:auto;
  }
/* 
  .brand-heading {
    font-size: 30px;
    display: flex;
} */

  /* when shown */
  .nav.show{ left:0; }

  .nav__content{ display:flex;
    flex-direction:column;
    gap:1.4rem;
     align-items:flex-start; }

  .nav__perfil{
    display:flex;
    flex-direction:column;
    align-items:center;
    text-align:center;
    margin-bottom:0.8rem;
    gap:0.6rem;
  }

  .nav__img{
    width:66px; height:66px;
    border-radius:50%;
    overflow:hidden;
    display:flex;
    align-items:center;
    justify-content:center;
    box-shadow: var(--glass-shadow);
    background: linear-gradient(180deg, rgba(255,255,255,0.6), rgba(255,255,255,0.4));
  }

  .nav__img img{ width:70px; height:auto; display:block; }

  .nav__name{
    display:block;
    font-size:var(--nav-name-font-size);
    color:var(--dark-color);
    font-weight:700;
  }

  .nav__menu{ width:100%; }

  .nav__list{
    display:flex;
    flex-direction:column;
    gap:0.8rem;
    margin-top:0.6rem;
  }

  .nav__item{ margin:0; }

  .nav__link{
    display:inline-block;
    padding:0.6rem 0.4rem;
    color:var(--dark-color);
    border-radius:8px;
    transition: all var(--transition);
    font-weight:600;
  }

  .nav__link:hover{
    transform: translateX(6px);
    color:var(--accent-color);
    background: rgba(9,170,216,0.06);
  }

  .click-btn{
    display:inline-block;
    margin-top:0.6rem;
    border:1px solid rgba(17,144,230,0.18);
    border-radius:8px;
    background: linear-gradient(180deg, var(--accent-color), #0697bf);
    width:140px;
    height:44px;
    align-items:center;
    justify-content:center;
    box-shadow: 0 8px 22px rgba(6,170,216,0.12);
    padding:0;
  }

  .click-btn .nav__link{
    color:#fff;
    font-size:1rem;
    display:inline-block;
    width:100%;
    height:100%;
    padding:0.6rem 0;
    text-align:center;
  }

  .dropdown__link{ 
    display:flex;
    align-items:center; 
    justify-content:space-between; 
    gap:0.6rem;
   }

  .dropdown__icon{
     font-size:1.2rem;
      transition: transform var(--transition); }

  .dropdown__menu{
    margin:0.8rem 0 0 0.6rem;
    display:none;
    padding-left:0.4rem;
    border-left:2px solid rgba(9,170,216,0.08);
  }

  .dropdown:hover  .dropdown__menu{
     display:block;
     }
}

/* ===========================
   NAV – desktop layout
   =========================== */
@media screen and (min-width:769px){
  body{ margin-top:0; }

  .header{
    height: calc(var(--header-height) + 0.8rem);
    padding:0 2rem;
  }

  .header__logo, .header__toggle{ 
    display:none; 
  } /* hide hamburger on desktop */

  .nav{
    position:relative;
    width:100%;
    height:auto;
    background:transparent;
    padding:0;
    display:block;
    box-shadow:none;
    border-radius:0;
    overflow:visible;
  }

  .nav__content{
    display:flex;
    align-items:center;
    justify-content:space-between;
    gap:1rem;
  }

  .nav__perfil{
    display:flex;
    align-items:center;
    gap:0.8rem;
    margin:0;
    text-align:left;
  }

  .nav__img{
    width:44px; height:44px; margin:0;
  }
  .nav__img img{ width:46px; height:auto; }

  .nav__name{ color:var(--accent-color); font-weight:700; font-size:1rem; }

  #first-heading{
    font-size:1.05rem;
    font-family: 'Times New Roman', Times, serif;
    color:var(--dark-color);
  }

  .nav__menu{ display:flex; width:auto; }

  .nav__list{
    display:flex;
    align-items:center;
    gap:1.6rem;
  }

  .nav__item{ margin:0; padding:0.8rem 0; }

  .nav__link{
    color:var(--dark-color);
    padding:0.45rem 0.25rem;
    border-radius:8px;
    font-weight:600;
    transition: color var(--transition), transform var(--transition);
  }

  .nav__link:hover{
    color:var(--first-color);
    transform: translateY(-2px);
  }

  /* Active link subtle indicator */
  .nav__link.active{
    color:var(--accent-color);
    box-shadow: inset 0 -3px 0 var(--accent-color);
  }

  /* dropdown as a floating card */
  .dropdown{ position:relative; }
  .dropdown__menu{
    display:none;
    position:absolute;
    top: calc(var(--header-height) + 8px);
    left: 0;
    min-width: 180px;
    background: rgba(255,255,255,0.95);
    backdrop-filter: blur(8px);
    box-shadow: var(--card-shadow);
    border-radius: 10px;
    padding:0.6rem 0.6rem;
    z-index: calc(var(--z-fixed) + 10);
  }
  .dropdown:hover  .dropdown__menu{
     display:block;
     }

  .dropdown__item{ 
    margin:0.3rem 0;
     padding:0.2rem 0; }

  /* donate button desktop */
  .click-btn{
    border:none;
    background: linear-gradient(180deg, var(--accent-color), #068fb2);
    width:auto;
    height:40px;
    padding:0 1rem;
    border-radius:10px;
    display:flex;
    align-items:center;
    justify-content:center;
    box-shadow: 0 10px 28px rgba(6,170,216,0.12);
  }
  .click-btn .nav__link{ color:#fff; font-weight:700; padding:0; }
}

/* ===========================
   CONTAINER & HORIZONTAL GALLERY (polished)
   =========================== */
.container{
  flex-wrap: nowrap;
  margin: 110px auto 40px;
  width:100%;
  max-width:var(--container-max);
  display:flex;
  gap:1rem;
  align-items:center;
  padding:0 1rem;
  overflow:hidden; /* important for carousel */
}

/* the old .gallery rules are kept but this set uses animation */
.gallery{
  flex-shrink: 0;
  /* width: var(--container-max); */
  display:flex;
  gap:0.85rem;
  align-items:center;
  padding:0.6rem 0;
  /* we animate the gallery groups to translate left for continuous loop */
  animation: scroll-left 20s linear infinite;
  will-change: transform;
}

/* hide scrollbar for nicer look (still accessible) */
.gallery::-webkit-scrollbar{ height:8px; }
.gallery::-webkit-scrollbar-thumb{ 
  background: rgba(0,0,0,0.12);
  border-radius:8px; 
  }
.gallery::-webkit-scrollbar-track{
   background: transparent; 
  }

.gallery img{
  height: clamp(150px, 40vw, 420px);
  width: auto;
  flex: 0 0 auto;
  border-radius: 12px;
  object-fit: cover;
  box-shadow: var(--glass-shadow);
  transition: transform var(--transition), box-shadow var(--transition);
  scroll-snap-align: center;
  cursor: pointer;
}

.gallery img:hover{
  transform: translateY(-6px) scale(1.03);
  box-shadow: 0 18px 38px rgba(8,10,20,0.14);
}

/* Core animation: translate the pair of galleries leftwards by 50% (since we duplicated content) */
@keyframes scroll-left {
  0%
   { 
    transform: translateX(0);
   }
  100% 
  { 
    transform: translateX(-50%);
  }
}

/* #auto-carousel-container{
  display: flex;
  flex-wrap: nowrap;
}

@media screen and (max-width: 768px){
  #auto-carousel-container{
    flex-direction: row;
  }
} */


/* Pause animation when user hovers on container (desktop) */
.container:hover .gallery { animation-play-state: paused; }

/* ===========================
   ABOUT US SECTION
   =========================== */
.about-us{
  margin: 40px 0;
}

.about-us h1{
  font-family: "Times New Roman", Times, serif;
  font-size: clamp(1.4rem, 2.6vw, 2.4rem);
  margin-left: 0.6rem;
  color: var(--dark-color);
  font-weight:700;
}

/* paragraph container uses flexible layout */
.paragraph-container{
  display:flex;
  gap:1.8rem;
  align-items:center;
  justify-content:space-between;
  margin: 1rem 0;
  padding: 0 1rem;
}

.paragraph-container p{
  flex:1 1 55%;
  font-weight:500;
  color: rgba(14,16,38,0.9);
  line-height:1.6;
  font-size:0.98rem;
  background: linear-gradient(180deg, rgba(255,255,255,0.6), rgba(255,255,255,0.3));
  padding:1rem;
  border-radius:10px;
  box-shadow: var(--glass-shadow);
}

/* circular image */
.paragraph-container img{
  border-radius:50%;
  width: clamp(160px, 24vw, 360px);
  height: clamp(160px, 24vw, 360px);
  object-fit:cover;
  box-shadow: 0 12px 30px rgba(0,0,0,0.12);
  flex:0 0 auto;
}

/* ===========================
   GALLERY GRID (inner-gallery)
   =========================== */
.gallery-one-container{
  min-height: 60vh;
  padding: 2rem 8%;
  margin-top: 1.2rem;
}

.gallery-one-container h1{
  text-align:center;
  font-family: "Times New Roman", Times, serif;
  font-size: clamp(1.6rem, 3vw, 3rem);
  margin: 0 0 1rem 0;
  color: var(--dark-color);
}

/* polished grid with consistent gutters */
.inner-gallery{
  width:100%;
  display:grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 1rem;
  align-items:center;
  justify-items:center;
  padding: 1rem;
  animation: zoomIn 0.45s ease;
}

.inner-gallery img{
  width:100%;
  height: clamp(180px, 50vh, 400px);
  object-fit:cover;
  border-radius:10px;
  box-shadow: 0 12px 28px rgba(0,0,0,0.12);
  transition: transform var(--transition), box-shadow var(--transition);
  cursor:pointer;
}

.gallery-item:hover,
.inner-gallery img:hover{
  transform: translateY(-8px) scale(1.03);
  box-shadow: 0 20px 44px rgba(0,0,0,0.16);
}

@keyframes zoomIn{
  from{ transform: scale(0.92); opacity:0.0; }
  to{ transform: scale(1); opacity:1; }
}

/* responsive grid adjustments */
@media screen and (max-width: 992px){
  .inner-gallery{ grid-template-columns: repeat(3, 1fr); }
  .gallery img{ height: clamp(140px, 32vw, 360px); }
}

@media screen and (max-width: 768px){
  .container{ flex-direction:row; margin-top:90px; }
  .paragraph-container{ flex-direction:column-reverse; text-align:center; }
  .paragraph-container p{ flex:1 1 auto; }
  .inner-gallery{ grid-template-columns: repeat(2, 1fr); }
  .gallery-one-container h1{ font-size: clamp(1.4rem, 4vw, 2.4rem); }
}

@media screen and (max-width: 480px){
  .inner-gallery{ grid-template-columns: repeat(1, 1fr); }
  .gallery{ gap:0.6rem; }
  .gallery img{ height: clamp(120px, 28vw, 260px); }
  .paragraph-container img{ width: 200px; height:200px; }
}

/* ===========================
   FOOTER
   =========================== */
footer{
  margin-top: 40px;
  background: linear-gradient(180deg, rgba(255,255,255,0.9), rgba(250,250,250,0.95));
  padding:2rem 1rem;
  border-top: 1px solid rgba(0,0,0,0.04);
  position:relative;
  width:100%;
  height: 5%;
  /* height: 100px; */
  color: rgba(14,16,38,0.85);

  
}

#footer-heading{
  display:flex;
  gap:1rem;
  align-items:center;
  justify-content:center;
  margin-bottom:0.6rem;
}
#heading-name{
  display: grid;
  justify-content: center;
  text-align: center;
}
#footer-heading img
{ 
  width:44px; 
  height:44px; 
  border-radius:50%; 
  box-shadow: var(--glass-shadow);
 }

#heading-name #first-heading
{ 
  font-family: var(--body-font);
  display:block;
  color:var(--dark-color);
  font-size:var(--nav-name-font-size);
  font-weight:950;
  
}


#footer-row{
  display:flex;
  gap:1rem;
  justify-content:space-evenly;
  align-items:flex-start;
  margin-top:0.6rem;
}

.contact-no{ 
  flex-basis: 33%;
  padding:0.4rem;
  min-width:220px;
  }
.contact-no a{ 
  color:var(--dark-color); 
  font-family: 'Times New Roman', Times, serif; font-weight:600;
 }
.contact-no p{ margin-top:0.6rem;
   font-family: 'Times New Roman', Times, serif;
   }

.address{
  flex-basis: 34%;
  min-width:240px;
  padding:0.4rem; 
  font-family: 'Times New Roman', Times, serif;
 }
.follow-id{ 
  flex-basis: 33%; 
  min-width:180px; 
  padding:0.4rem;
 }
.follow-id ul{ 
  display:flex; 
  gap:0.8rem; 
  align-items:center; 
  justify-content:flex-start; 
  padding-left:0;
 }

.follow-id a{ color:var(--dark-color);
   font-size:1.2rem; 
   display:inline-flex; 
   align-items:center; 
   justify-content:center; 
  }

hr{ margin: 1rem auto; 
  width:90%;
   border:0; 
   border-bottom:1px solid rgba(0,0,0,0.06);
   }

/* icon colors (kept ids intact) */
#logo-id-one{ 
  color: rgb(15,244,95);
  font-size:1.25rem;
  cursor:pointer;
 }
#logo-id-two{ 
  color: rgb(250,71,181);
  font-size:1.25rem;
  cursor:pointer;
   }
#logo-id-three{ color: rgb(83,180,254);
   font-size:1.25rem; 
   cursor:pointer; }
#logo-id-four{ 
  color: rgb(13,13,13);
  font-size:1.25rem;
  cursor:pointer;
 }
#logo-id-five{ 
  color: rgb(37,243,47);
  font-size:1.25rem;
  cursor:pointer; 
  border-radius:50%; 
}

@media screen and (max-width:760px){
  #footer-row{
    display:grid;
    gap:0.8rem;
   }
  #footer-heading{
     display:grid;
      gap:0.4rem;
     }
}

/* reduce motion preference */
@media (prefers-reduced-motion: reduce){
  .gallery, .inner-gallery, .gallery img, .inner-gallery img{ transition: none !important; animation: none !important; }
}

/* small carousel (hero) kept for backward compatibility (not used) */
/* end of CSS */
