/* Media Queries */
@media screen and (max-width: 1035px) {
  section .section-title2 {
    font-size: 1em;
  }
}

@media screen and (max-width: 1024px) {
  .menu-section .menu-list {
    gap: 60px;
  }

  .menu-section .menu-list .menu-item {
    width: calc(100% / 3 - 60px);
  }

  .section-content {
    flex-direction: column;
    padding: 1rem;
  }

  .about-details {
    position: static; /* Remove sticky on smaller screens */
    max-width: 100%;
  }

  .about-details2 {
    max-width: 100%;
  }

  .about-image-wrapper {
    max-width: 100%;
  }

  .section-content2 {
    flex-direction: column;
  }

  .about-section2 .section-content2 {
    padding: 0 6rem;
  }

  section .text2::before {
    left: 105px;
  }
}
/* Responsive media query code for max width 900px */
@media screen and (max-width: 900px) {
  :root {
    --font-size-m: 1rem;
    --font-size-l: 1.3rem;
    --font-size-xl: 1.5rem;
    --font-size-xxl: 1.8rem;
  }

  .sticky-details {
    /* position: stick y; */
    top: 100px;
    align-self: flex-start;
    max-height: calc(170vh - 40px);
    overflow-y: auto;
  }

  body.show-mobile-menu {
    overflow: hidden;
  }

  body.show-mobile-menu::before {
    content: "";
    position: fixed;
    top: 0; left: 0; right: 0; bottom: 0;
    width: 100vw;
    height: 100vh;
    background: rgba(0,0,0,0.45);
    z-index: 1000;
    transition: opacity 0.3s;
    opacity: 1;
  }
  body::before {
    content: "";
    display: none;
  }
  .navbar .nav-menu {
    position: fixed;
    top: 0;
    right: -340px;
    width: 320px;
    height: 100vh;
    background: #fff;
    box-shadow: -2px 0 16px rgba(0,0,0,0.08);
    border-radius: 30px 0 0 30px;
    z-index: 1100;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    padding-top: 40px;
    transition: right 0.3s cubic-bezier(.77,0,.18,1);
    backdrop-filter: blur(16px);
    background: rgba(255,255,255,0.85);
  }
  body.show-mobile-menu .navbar .nav-menu {
    right: 0;
  }
  .navbar .nav-menu .nav-link {
    font-size: 1.3rem;
    margin: 32px 0;
    color: var(--dark-color);
    text-align: center;
    width: 100%;
    border-radius: 12px;
    transition: background 0.2s, color 0.2s;
  }
  .navbar .nav-menu .nav-link:hover {
    background: var(--secondary-color);
    color: #fff;
  }
  .navbar #menu-close-button {
    position: absolute;
    top: 18px;
    right: 18px;
    font-size: 2.2rem;
    color: var(--secondary-color);
    background: none;
    border: none;
    z-index: 1200;
    cursor: pointer;
  }
  .navbar #menu-open-button {
    display: block;
    font-size: 2rem;
    color: var(--secondary-color);
    background: none;
    border: none;
    cursor: pointer;
    z-index: 1201;
  }
  .navbar .nav-menu {
    box-shadow: -2px 0 16px rgba(0,0,0,0.08);
  }
  /* Hide menu and overlay by default */
  .navbar .nav-menu {
    pointer-events: none;
  }
  body.show-mobile-menu .navbar .nav-menu {
    pointer-events: auto;
  }

  .section-content .hero-image-wrapper {
    margin-bottom: -50px;
  }

  .hero-section .section-content {
    text-align: center;
    gap: 50px;
    padding: 30px 20px 20px;
    justify-content: center;
    flex-direction: column-reverse;
  }

  .hero-section .hero-details :is(.subtitle, .description),
  .about-section .about-details,
  .contact-section .contact-form {
    max-width: 100%;
  }

  .hero-section .hero-details .buttons {
    justify-content: center;
  }

  .hero-section .hero-image-wrapper {
    max-width: 270px;
    margin-right: 0;
  }

  .about-section .section-content {
    gap: 70px;
    flex-direction: column-reverse;
  }

  .about-section .about-image-wrapper .about-image {
    width: 100%;
    height: 100%;
    aspect-ratio: 1;
    max-width: 250px;
  }

  .menu-section .menu-list {
    gap: 30px;
  }

  .menu-section .menu-list .menu-item {
    width: calc(100% / 2 - 30px);
  }

  .menu-section .menu-list .menu-item .menu-image {
    max-width: 200px;
  }

  .gallery-section .gallery-list {
    gap: 30px;
  }

  .gallery-section .gallery-list .gallery-item {
    width: calc(100% / 2 - 30px);
  }

  .contact-section .section-content {
    align-items: center;
    flex-direction: column-reverse;
  }

  #menu-toggle-button {
    position: fixed;
    top: 24px;
    right: 48px;
    z-index: 1202;
    font-size: 2.2rem;
    color: var(--secondary-color);
    background: #fff;
    border: none;
    border-radius: 12px;
    box-shadow: 0 2px 8px rgba(0,0,0,0.07);
    padding: 8px 12px;
    transition: color 0.2s, background 0.2s;
    display: flex;
    align-items: center;
    gap: 8px;
  }
  body.show-mobile-menu #menu-toggle-button {
    color: #fff;
    background: var(--secondary-color);
  }
  body.show-mobile-menu #menu-toggle-button:before {
    content: "\f00d";
    font-family: 'Font Awesome 5 Free';
    font-weight: 900;
    font-size: 2.2rem;
    color: #fff;
    transition: color 0.2s;
  }
  body.show-mobile-menu #menu-toggle-button.fas.fa-bars:before {
    content: "\f00d";
  }
  #menu-toggle-button.fas.fa-bars:before {
    content: "\f0c9";
  }
  #menu-toggle-button:before {
    margin-right: 0;
  }
  #menu-toggle-button span {
    display: none;
  }
  .nav-logo img {
    max-width: 160px;
    height: auto;
    margin-left: 12px;
    margin-top: 8px;
    margin-bottom: 8px;
    object-fit: contain;
  }
  .navbar {
    padding: 8px 8px 8px 0;
  }
}
@media screen and (max-width: 500px) {
  .nav-logo img {
    max-width: 120px;
    margin-left: 4px;
  }
}

@media screen and (max-width: 768px) {
  .section-title {
    font-size: 1.8rem;
  }

  .section-title2 {
    font-size: 1.5rem;
  }

  .text,
  .text2 {
    font-size: 0.9rem;
  }

  .hero-section {
    background-attachment: scroll;
  }
}

@media screen and ( max-width: 670px){
  .Ccontainer {
    flex-direction: column;
    text-align: center;
    justify-content: center;
    gap: 20px;
  }
}
/* Responsive media query code for max width 640px */
@media screen and (max-width: 640px) {
  .menu-section .menu-list .menu-item,
  .gallery-section .gallery-list .gallery-item {
    width: 100%;
  }

  .menu-section .menu-list {
    gap: 60px;
  }

  .testimonials-section .slider-wrapper {
    margin: 0 0 30px;
  }

  .testimonials-section .swiper-slide-button {
    display: none;
  }

  .footer-section .section-content {
    flex-direction: column;
    gap: 20px;
  }
}
/* Responsive media query code for max width 620px */
@media screen and (max-width: 620px) {
  .about-section2 .section-content2 {
    padding: 0 2rem;
  }
  section .text2::before {
    left: 40px;
  }
}

@media screen and (max-width: 500px) {
  .about-section .section-content {
    padding: 0 20px;
  }
}

@media screen and (max-width: 301px) {
  section .section-title2 {
    font-size: .7em;
  }
}
/* Add a dark mode */
@media (prefers-color-scheme: dark) {
  :root {
    /* Adjust colors as needed for dark mode, excluding about section and hero text */
    /* --dark-color: #f5f5f5; */
    --medium-gray-color: #888;
    --footer-bottom-bg-color: #2a2a2a;
  }

  /* You may need to add specific overrides for elements that should retain their original colors */
  .about-section {
    background: #f0f8ff;
  }

  .hero-section .hero-details {
    color: var(--white-color);
  }

  /* Adjust other styles as needed for dark mode */
}
