
*,
*::before,
*::after {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}
:root {
  --almost-white: hsl(0, 0%, 98%);
  --medium-gray: hsl(0, 0%, 41%);
  --almost-black: hsl(0, 0%, 8%);
}
.header--fixed {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  z-index: 9990;
}

.header--hide {
  transform: translateY(-100%);
  transition: transform 0.4s ease;
}

.header--scrolled {
  background: rgba(255, 255, 255, 0.95);
  backdrop-filter: blur(8px);
  box-shadow: 0 4px 10px rgba(0,0,0,0.08);
}

.header {
  position: fixed;
  width: 100%;
  background-color: white;
  z-index: 199;
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 3rem 0rem;
  /* Enlarged padding on load */
  transition: padding 0.1s ease, height 0.1s ease;
  transition: all 0.5s ease;
  margin: 0 auto;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
}
nav {
  width: 100%;
  display: flex;
  justify-content: space-around;
  align-items: center;
  padding: 10px 20px;
  background-color: transparent;
}

.logo img{
  max-width: 70% !important;

}
.ham,
.close-menu,
overlay {
  display: none;
}

/* -------- NEW FIX -------- */
.desktop-nav {
  width: 100%;
  display: flex;
  justify-content: space-between;
  align-items: center;
}

/* center nav links */
.nav-center {
  display: flex;
  justify-content: center;
  align-items: center;
  gap: 25px;
  flex: 1;
}
.nav-left{
  width: 25%;
}
/* keep social + button on right */
.nav-right {
  display: flex;
  align-items: center;
  gap: 25px;
  width: 25%;
  margin-left: 2vh;
}
/* -------- END FIX -------- */

.menu-item {
  font-size: 1.2rem;
  padding-left: 25px;
  transition: all 0.5s ease;
}
.menu-item:hover{
  transform: scale(1.15);
}
.menu-item a{
  color: #000000;
  text-decoration: none;
}
.dropdown {
  position: relative;
  margin: 0px 10px;
}
.dropdown:hover .dropbtn {
  transform: rotate(180deg);
  transition: all 0.3s ease-in;
}
.dropdown-content {
  width: 180px;
  padding: 2vh;
  position: absolute;
  background: var(--almost-white);
  color: var(--almost-black);
  border-radius: 10px;
  display: none;
  z-index: 99;
  box-shadow: 0px 8px 16px 0px rgba(0, 0, 0, 0.2);
  
}
.dropdown-content a {
  display: flex;
  padding: 1vh;
  transition: all 0.5s ease;
  color: #000000;
  text-decoration: none;
}
.dropdown-content a:hover {
  opacity: 0.7;
  transform: scale(1.1);
}
.dropdown-content img {
  margin-right: 10px;
}
.dropdown:hover .dropdown-content {
  display: block;
}

.social-btns{
  position: relative;
}
.social-btns i{
  padding: 5px;
  transition: all 0.5s ease;
  font-size: 1.5rem;
  cursor: pointer;
}
.nav-btns a{
  position: relative;
  border: solid 1px black;
  padding: 1vh 3vh;
  border-radius: 15px;
  transition: all 0.5s ease;
  text-decoration: none;
  color: #000;
}
.nav-btns{
  transition: all 0.5s ease;
}
.social-btns i:hover{
  transform: scale(1.2);
}
.nav-btns:hover{
  transform: scale(1.1);
}


@media (max-width: 1420px) {
  .nav-right,.nav-left{
    width: 30%;
  }
}

@media (max-width: 1242px) {
  .hero {
    max-width: 960px;
    grid-template-columns: repeat(2, 400px);
  }
  .menu-item {
    font-size: 1rem;
  }
  .nav-center{
    gap: 10px;
  }
  .nav-right{
    width: 35%;
    gap: 10px;
    justify-content: end;
    margin: 0 auto;
    padding: 0px;
  }
  .social-btns i{
    font-size: 1.1rem;
  }
}

@media (max-width: 1100px) {
    .menu-item {
    font-size: 0.9rem;
  }
}
@media (max-width: 1000px) {
  nav {
    display: flex !important;
    justify-content: space-between !important;
    position: relative !important;
  }
  .nav-left{
    width: auto;
  }
  .nav-right{
    gap: 1vh;
    justify-content: center;
    padding-bottom: 5vh;
  }
  .social-btns i{
    font-size: 2rem;
  }
  .nav-btns a{
    padding: 2vh 1vh;
    text-align: center;
    display: inline;
    width: 20vh;
  }
  .chat-btn{
    text-align: center;
    border: solid 1px black;
  }
  .logo img{
    width: 50vh;
  }
  .menu-item{
    padding: 1rem;
  }
  .ham {
    display: block;
    border: none;
    outline: none;
    position: absolute;
    right: 5%;
    font-size: 2rem;
    cursor: pointer;
    background: transparent;
    transition: all 1s ease-in-out;
  }
  .ham.active {
    display: none;
  }
  .close-menu {
    display: none;
    cursor: pointer;
    position: fixed;
    right: 5%;
    font-weight: lighter;
    font-size: 2rem;
    transition: all 0.3s ease-in-out;
  }
  .close-menu.active {
    display: block;
    z-index: 101;
  }
  .nav-center{
    display: block;
  }
  .nav-right{
    padding-bottom: 15vh;
  }
  nav .desktop-nav {
    background: var(--almost-white);
    width: 300px;
    height: 100vh;
    position: fixed;
    top: 0;
    right: -300px;

    display: flex;
    flex-direction: column;
    align-items: flex-start;
    padding-top: 80px;
    padding-left: 30px;
    z-index: 100;
    transition: all 1s ease-in-out;
  }

  nav .desktop-nav .menu-item a {
    margin: 0 12px;
  }
  nav .desktop-nav.active {
    right: 0;
  }

  .dropdown-content {
    position: relative;
    display: none;
    z-index: 100;
    box-shadow: none;
  }

  .dropdown-content.active {
    display: block;
  }

  nav .desktop-nav .nav-btns {
    margin: 0;
    display: flex;
    flex-direction: column;
  }

  .overlay {
    display: none;
    width: 100vw;
    height: 100vh;
    background: rgba(0, 0, 0, 0.5);
    position: fixed;
    top: 0;
    left: 0;
    z-index: 99;
    transition: all 1s ease-in-out;
  }
  .overlay.active {
    display: block;
  }

  
}














.back-to-top {
  width: 85px;
  height: 85px;
  background: transparent;
  color: rgb(0, 0, 0);
  border: solid 1px black;
  border-radius: 50%;
  display: flex;
  justify-content: center;
  align-items: center;
  margin: 0rem 2rem 0rem auto;
  /* top: 2rem, right: 2rem, bottom: 0, left: auto */
  cursor: pointer;
  animation: bounce 1.5s infinite;
  transition: all 0.3s ease;
  font-size: 1.3rem;
}

.back-to-top:hover {
  background: #000000;
  transform: translateX(-50%) scale(1.2);
  color: rgb(255, 255, 255);
}

/* Bounce Animation */
@keyframes bounce {

  0%,
  20%,
  50%,
  80%,
  100% {
    transform: translateX(-50%) translateY(0);
  }

  40% {
    transform: translateX(-50%) translateY(-10px);
  }

  60% {
    transform: translateX(-50%) translateY(-5px);
  }
}

@media (max-width: 900px) {
  .back-to-top{
    margin: 1vh 1vh 10vh auto;
  }
}

















footer {
  background-color: #000000;
  color: white;
  padding-left: 20px;
  padding-right: 20px;
  padding-top: 120px;
  padding-bottom: 25px;
  font-family: var(--ff-chakra-petch);  
  background-image: url(photo/footer-img.png);
  background-repeat: no-repeat;
  background-position: bottom left;
  background-size:50% auto;
  transition: all 0.8s ease;
  /* You can adjust this size */
}
footer:hover{
  background-color: #111;
}

.footer-grid {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  gap: 10px;
}

.footer-col {
  flex: 1 1 100px;
  text-decoration: none;
  padding-bottom: 5rem;
}

.footer-col ul {
  list-style: none;
  padding: 0;
}


.footer-col a {
  color: #1e3b27 !important;
  text-decoration: none;
}

.footer-col ul li {
  margin-bottom: 0px;
  transition: transform 0.3s ease;
  transform-origin: left;

}

.footer-col ul li:hover {
  transform: scale(1.1);
  /* Only scales now, no shift */
}

.footer-logo img {
  max-width: 30vh !important;
  margin: 0 auto;
  margin-left: 5vh;
  margin-right: 15vh;
}

.name-footer {
  font-size: 2.3rem;
}


.socials {
  display: flex;
  gap: 10px;
  margin: 0 auto;
  margin-top: 10px;
  text-align: center;
  font-size: unset;
}
.footer-col-social{
padding-left: 10vh;
}
.socials a {
  color: #ffffff;
  font-size: 1.5rem;
  text-decoration: none;
  position: relative; /* Needed for ::after positioning */
  transition: transform 0.5s;
}

.socials a:hover {
  transform: scale(1.1);
}

/* Add hover effect for ::after */
.socials a::after {
  content: url("photo/nav-before-img.png");
  position: absolute;
  bottom: -8px;
  left: 50%;
  transform: translateX(-50%);
  opacity: 0;
  transition: opacity 0.3s;
}

.socials a:hover::after {
  opacity: 1;
}


.footer-title-line {
  width: 3rem;
  height: 2px;
  margin: 0 0 0.5vh 0;
  /* top right bottom left */
  border: none;
  border-radius: 5rem;
  background-color: #ffffff;
}

.footer-disclaimer {
  font-size: 1rem;
  text-align: left;
  width: 80%;
  color: #ffffff;
}

.footer-dash {
  font-size: 1rem;
  font-weight: 100;
}


.footer-divider {
  border: none;
  height: 1px;
  background-color: #ffffff;
  /* soft white line */
  width: 25%;
  position: absolute;
  left: 80%;
  margin: 0 auto;
}

.copyright-footer {
  font-size: 0.8rem;
  margin-left: 19vh;
  margin-bottom: 1vh;
}
.footer-legal-container {
  width: 100%;
  margin-top: 1rem;
  padding-right: 30px;
  text-align: right;
}
.footer-legal-links {
  display: inline-flex;
  gap: 35px;
  font-size: 1rem;
  color: #ccc;
  flex-wrap: wrap;
  padding: 1vh;
  border-top: solid 1px rgb(255, 255, 255);
}

.footer-legal-links a {
  color: #ccc;
  text-decoration: none;
  transition: all 0.5s ease;
}

.footer-legal-links a:hover {
  color: #c1c1c1;
  border-bottom: solid 1px white;
}



@media (max-width: 1450px) and (min-width: 1200px){
  .footer-logo {
  display: block;
  width: 100%;
  padding-right: 5rem;
  margin-left: 5vh;
  margin-right: 15vh;
}
.copyright-footer {
  font-size: 0.8rem;
  margin-left: 5vh;
  margin-top: 2vh;
}

}


@media (max-width: 1200px) {
  footer {
    background-size: 250px;
    padding: 60px 20px 40px 20px;
  }
  .footer-col-social{
    padding:0px !important;
    margin-left: 0px !important;
  }
  .footer-col-logo{
   overflow: hidden;
   height: 5vh !important;
   padding-bottom:20vh !important;
  }
  .footer-grid {
    flex-direction: column;
    align-items: center;
    text-align: center;
    gap: 1rem;
  }

  .footer-col {
    width: 100%;
    padding-bottom: 2vh;
  }

  .footer-logo {
    position: absolute;
    width: 150px;
    margin: 0 auto;
    left: 46%;
  }

  .footer-logo img {
    width: 100%;
    height: auto;
  }

  .name-footer {
    font-size: 2rem;
  }

  .copyright-footer {
    font-size: 1,5rem;
    margin: 0 auto;
    margin: 5px;
  }

  .socials {
    justify-content: center;
    gap: 12px;
    font-size: 1.8rem;
    flex-wrap: wrap;
  }
  .footer-col h4{
    font-size: 1.5rem;
  }
  .footer-title-line {
    margin: 0 auto 0.5rem auto;
  }

  .footer-disclaimer {
    text-align: center;
    width: 80%;
    margin: 0 auto;
  }

  .footer-legal-container {
    text-align: center;
    margin-top: 2rem;
    padding: 0px;
  }

  .footer-legal-links {
    justify-content: center;
    text-align: center;
    margin: 0 auto;
    font-size: 1.5rem;
  }
}


@media (max-width: 1000px) {
  footer {
    background-size: 250px;
    padding: 60px 20px 40px 20px;
  }
  .footer-col-social{
    padding:0px !important;
    margin-left: 0px !important;
  }
  .footer-col-logo{
   overflow: hidden;
   height: 100%;
   padding-bottom: 15vh !important;
  }
  .footer-grid {
    flex-direction: column;
    align-items: center;
    text-align: center;
    gap: 1rem;
  }

  .footer-col {
    width: 100%;
    padding-bottom: 2vh;
  }

 .footer-logo {
    position: absolute;
    width: 130px;
    margin: 0 auto;
    left: 45%;
  }

  .footer-logo img {

    width: 100%;
    height: auto;
  }

  .name-footer {
    font-size: 2rem;
  }

  .copyright-footer {
    font-size: 1rem;
    margin: 0 auto;
    margin: 5px;
  }

  .socials {
    justify-content: center;
    gap: 12px;
    font-size: 1.2rem;
    flex-wrap: wrap;
  }

  .footer-title-line {
    margin: 0 auto 0.5rem auto;
  }

  .footer-disclaimer {
    text-align: center;
    width: 80%;
    margin: 0 auto;
  }

  .footer-legal-container {
    text-align: center;
    margin-top: 2rem;
    padding: 0px;
  }

  .footer-legal-links {
    justify-content: center;
    text-align: center;
    margin: 0 auto;
    font-size: 1rem;
  }
}


@media (max-width: 768px) {
  footer {
    padding: 40px 15px;
    background-size: 180px;
  }

 .footer-logo {
    position: absolute;
    width: 120px;
    margin: 0 auto;
    left: 44%;
  }

  .footer-logo img {
    height: auto;
  }

  .copyright-footer {
    font-size: 0.7rem;
    margin: 0 auto;
    margin: 5px;
  }

  .socials {
    margin: 0 auto;
    font-size: 1rem;
    gap: 10px;
    margin-top: 1rem;
  }

  .footer-dash {
    display: none;
  }

  .footer-title-line {
    margin-bottom: 0.5rem;
  }

  .footer-col h4 {
    font-size: 1.1rem;
  }

  .footer-col p {
    font-size: 0.95rem;
  }
}

@media (max-width: 600px) {
  footer {
    padding: 40px 15px;
    background-size: 180px;
  }

 .footer-logo {
    display: block;
    width: 120px;
    margin: 0 auto;
    left: 43%;
  }

  .footer-logo img {
    height: auto;
  }

  .copyright-footer {
    font-size: 0.7rem;
    margin: 0 auto;
    margin: 5px;
  }

  .socials {
    margin: 0 auto;
    font-size: 1rem;
    gap: 10px;
    margin-top: 1rem;
  }

  .footer-dash {
    display: none;
  }

  .footer-title-line {
    margin-bottom: 0.5rem;
  }

  .footer-col h4 {
    font-size: 1.1rem;
  }

  .footer-col p {
    font-size: 0.95rem;
  }
}

@media (max-width: 500px) {
  footer {
    padding: 40px 15px;
    background-size: 180px;
  }

 .footer-logo {
    display: block !important;
    width: 200px;
    margin: 0 auto;
    left: 10%;
  }

  .footer-logo img {
    height: auto;
  }

  .copyright-footer {
    font-size: 0.7rem;
    margin: 0 auto;
    margin: 5px;
  }

  .socials {
    margin: 0 auto;
    font-size: 1rem;
    gap: 10px;
    margin-top: 1rem;
  }

  .footer-dash {
    display: none;
  }

  .footer-title-line {
    margin-bottom: 0.5rem;
  }

  .footer-col h4 {
    font-size: 1.1rem;
  }

  .footer-col p {
    font-size: 0.95rem;
  }
}

@media screen and (max-width: 390px) {
  .footer-col-logo{
   overflow: hidden;
  }
   .footer-logo {
    position: absolute;
    width: 120px;
    margin: 0 auto;
    left: 38%;
  }
}



