/* Basic Reset and Font */
* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
  transition: 0.2s ease-in-out, 0.2s ease-in-out;
}

.anton-regular {
  font-family: "Anton", sans-serif;
  font-weight: 400;
  font-style: normal;
}

body {
  user-select: none;
  -webkit-user-select: none;
  -moz-user-select: none;
  -ms-user-select: none;
}

#cursorCircle {
  --size: 30px;
  position: fixed;
  height: var(--size);
  width: var(--size);
  border-radius: 100%;
  border-color: var(--orangeL1);
  border-style: solid;
  border-width: 2px;
  background: transparent;
  top: calc(var(--size) / 2 * -1);
  left: calc(var(--size) / 2 * -1);
  pointer-events: none;
  z-index: 2007;
  transition: none;
  box-shadow: inset 0 0 5px var(--orangeL1) ;
}

:root {
  --yellow: #e6f9df;
  --orange: #10b981;
  --orangeL: #34d399;
  --orangeL1: #86efac;
  --orangeHL: #c5fcd8;
  --orangeD: #059669;
  --ptext: #053427;
  --light-gray: #f7fff9;
  --dark-gray: #063e2f;
  --icon-drop-shadow: #64bd9c;
  --light-orange: #f0fff7;
  --light-orange1: #f0fff7;
  --dark-orange: #053427;
  --dark-orange1: #059669;
  --mobile-icon-item: #c5fcd8c5;
  --bg-color: #a3e4f9;
  --wave: #0cbaff;
  --radius: 15px;
  --radius1: 20px;
  --cursor: #ffeed050;
  --clicky: scale(0.95);
  --clicky1: scale(0.9);
}

.loading-screen {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: var(--bg-color);
  display: flex;
  justify-content: center;
  align-items: center;
  z-index: 3000;
  transition: opacity 0.5s ease;
}

.loading-animation {
  width: 50px;
  height: 50px;
  border: 3px solid var(--orange);
  border-radius: 50%;
  border-top-color: transparent;
  animation: spin 1s linear infinite;
}

@keyframes spin {
  to {
    transform: rotate(360deg);
  }
}

body {
  font-family: 'Poppins', sans-serif;
  display: flex;
  justify-content: center;
  align-items: center;
  min-height: 100vh;
  background-color: #f0f0f0;
  overflow: hidden;
}

/* Background Scene with Wave Animation */
.background-scene {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background-color: var(--bg-color);
}

/* --- Waves --- */
.waves {
  position: fixed;
  bottom: 0px;
  left: 0;
  width: 100%;
  height: 50vh;
}

.waves svg {
  position: absolute;
  bottom: 0;
  left: 0;
  height: 50vh;
}

.waves use {
  animation: wavewave 5s cubic-bezier(.55, .5, .45, .5) infinite;
  fill: var(--wave);
  opacity: 0.5;
}

.waves.back {
  z-index: 1;
}

.waves.back use:nth-child(2) {
  animation-delay: -4s;
  animation-duration: 13s;
}

.waves.back use:nth-child(3) {
  animation-delay: -5s;
  animation-duration: 20s;
}

.waves.back use:nth-child(4) {
  animation-delay: -8s;
  animation-duration: 5s;
}

.waves.front {
  z-index: 3;
}

.waves.front use:nth-child(2) {
  animation-delay: -12s;
  animation-duration: 7s;
}

.waves.front use:nth-child(3) {
  animation-delay: -3s;
  animation-duration: 10s;
}

.waves.front use:nth-child(4) {
  animation-delay: 3s;
  animation-duration: 15s;
}

@keyframes wavewave {
  0% {
    transform: translate(-90px);
  }
  100% {
    transform: translate(85px);
  }
}

/* Floating Window */
.window-container {
  position: relative;
  display: flex;
  flex-direction: column;
  align-items: center;
  transform: translateY(0);
  animation: float-animation 6s ease-in-out infinite;
  box-shadow: 0 15px 30px rgba(0, 0, 0, 0.1);
  border-radius: var(--radius);
}

@keyframes float-animation {
  0% {
    transform: translateY(0);
  }

  50% {
    transform: translateY(-15px);
  }

  100% {
    transform: translateY(0);
  }
}

.modal-window.is-resizing,
.modal-window.is-resizing .modal-window-base,
.modal-window.is-resizing .modal-window-base *,
.modal-window.is-resizing .window-header,
.modal-window.is-resizing .nav-bar {
  transition: none !important;
  animation-play-state: paused !important;
}

/* Small visual handle in the corner; large invisible hit area for touch */
.modal-window-base .resize-handle {
  position: absolute;
  right: 15px;
  bottom: 15px;
  width: 18px;
  height: 18px;
  cursor: nwse-resize;
  border-right: 4px solid var(--orange);
  border-bottom: 4px solid var(--orange);
  background: transparent;
  border-radius: 3px;
  z-index: 500;
  touch-action: none;
  -webkit-user-select: none;
  user-select: none;
  transform: all 0.2s ease-in-out;
}

.modal-window-base .resize-handle:hover {
  border-right: 4px solid var(--orangeD);
  border-bottom: 4px solid var(--orangeD);
  transform: scale(1.2);
}

/* Invisible larger hit area so it's easier to grab on mobile */
.modal-window-base .resize-handle::after {
  content: "";
  position: absolute;
  right: -10px;
  bottom: -10px;
  width: 40px;
  height: 40px;
  background: transparent;
  pointer-events: none;
}

/* Optional: visual change while resizing */
.modal-window-base.is-resizing {
  will-change: width, height;
}

.modal-window-base {
  max-width: 90vw;
  max-height: 90vh;
  background: var(--light-orange1);
  border-radius: var(--radius);
  overflow: hidden;
  overflow-y: hidden;
  border-color: var(--orange);
  border-width: 4px;
  border-style: solid;
  position: relative;
  /* box-shadow: inset 0 0 20px var(--orangeL); */
}

.modal-submit {
  width: 30vw;
  z-index: 3000;
}

.modal-error {
  width: 30vw;
  z-index: 3000;
}

.modal-image {
  width: 70vw;
}

.modal-small {
  width: 30vw;
}
.modal-small1 {
  width: 40vw;
}
.modal-small2 {
  width: 50vw;
}

.modal-medium {
  width: 60vw;
}
.modal-medium1 {
  width: 70vw;
}
.modal-medium2 {
  width: 80vw;
}

.modal-large {
  width: 85vw;
}
.modal-large1 {
  width: 95vw;
}
.modal-large2 {
  width: 100vw;
}

.window-frame {
  width: 70vw;
  max-width: 90vw;
  background: var(--light-orange1);
  border-radius: var(--radius);
  overflow: hidden;
  overflow-y: auto;
  border-color: var(--orange);
  border-width: 4px;
  border-style: solid;
}

.window-frame-home {
  width: 90vw;
  max-width: 95vw;
  background: var(--light-orange1);
  border-radius: var(--radius);
  overflow: hidden;
  overflow-y: auto;
  border-color: var(--orange);
  border-width: 4px;
  border-style: solid;
}

.login-frame {
  width: 60vw;
  max-width: 90vw;
  background: var(--light-orange1);
  border-radius: var(--radius);
  overflow: hidden;
  overflow-y: auto;
  border-color: var(--orange);
  border-width: 4px;
  border-style: solid;
}

.window-header {
  background-color: var(--orange);
  padding: 10px 20px;
  color: #fff;
  text-align: left;
  display: flex;
  justify-content: space-between;
  align-items: center;
  cursor: grab;
}

.window-header1 {
  background-color: var(--orange);
  padding: 8px 15px;
  color: #fff;
  text-align: left;
  display: flex;
  align-items: center;
  cursor: grab;
}

.window-header2 {
  background-color: var(--orange);
  padding: 8px 15px;
  color: #fff;
  text-align: left;
  display: flex;
  align-items: center;
  cursor: grab;

  justify-content: center; /* centers the title */
  position: relative;
}

.window-header:active ~ .modal-content,
.window-header:active ~ .window-content {
  transform: var(--clicky);
}

.window-title,
.window-title1 {
  font-weight: 550;
  font-size: large;
  user-select: none;
}

.window-content {
  max-height: 70vh;
  padding: 50px 20px;
  text-align: center;
  background-color: var(--light-orange);
  opacity: 1;
  overflow-y: auto;
  /*animation: shiftPattern 8s linear infinite;*/
}

.home-window-content {
  max-height: 85vh;
  padding: 10px 10px;
  text-align: center;
  background-color: var(--light-orange);
  opacity: 1;
  overflow-y: auto;
  /*animation: shiftPattern 8s linear infinite;*/
}

@keyframes shiftPattern {
  from {
    background-position: 0 0, 18px 18px;
  }
  to {
    background-position: 36px 36px, 54px 54px;
  }
}

/* Text and Headings */
.intro-section h1 {
  font-size: 4em;
  font-weight: 700;
  color: var(--ptext);
}
.intro-section h2 {
  font-size: 4em;
  font-weight: 700;
  color: var(--ptext);
  line-height: 1.0em;
}

.cad-name {
  color: var(--orange);
}

.cad-name-special {
  color: var(--orange);
  white-space: nowrap;
}

.cad-name-special span {
    display: inline-block;
    animation-name: text-wave-animation;
    animation-duration: 2.5s;
    animation-timing-function: ease-in-out;
    animation-iteration-count: infinite;
}

@keyframes text-wave-animation {
    0% {
        transform: translateY(0);
    }
    25% {
        transform: translateY(-10px);
    }
    50% {
        transform: translateY(0);
    }
    75% {
        transform: translateY(-10px);
    }
    100% {
        transform: translateY(0);
    }
}

.sub-name {
  color: var(--orangeD);
}

.cad-name:hover {
  transform: scale(1.2);
  color: var(--orangeL);
  transition: transform 0.3s ease, color 0.3s ease;
}

.cad-name-special:hover {
  transform: scale(1.2);
  color: var(--orangeL);
  transition: transform 0.3s ease, color 0.3s ease;
}

.intro-section p {
  font-size: 1.2em;
  font-weight: 500;
  color: var(--ptext);
  margin-bottom: 40px;
}

/* Navigation Icons */
.nav-icons {
  display: flex;
  justify-content: center;
  gap: 10px;
  flex-wrap: wrap;
}

.icon-item {
  display: flex;
  flex-direction: column;
  align-items: center;
  cursor: pointer;
  transition: transform 0.3s ease, background-color 0.3s ease, box-shadow 0.3s ease;
  padding: 10px 20px 10px 20px;
  border-radius: 10px;
  background-color: var(--orangeHL);
}

.icon-item:hover {
  transform: translateY(-5px);
  background-color: var(--orangeL);
  box-shadow: 0 10px 25px var(--orange);
}

.icon-item:active {
  transform: var(--clicky1);
}

.icon-item .icon {
  width: 60px;
  height: 60px;
  margin-bottom: 5px;
  background-color: var(--orange);
  transition: background-color 0.2s ease;
}

/*.icon-about, .icon-links, .icon-projects, .icon-faq, .icon-contacts {
  position: relative;
  width: 60px;
  height: 60px;
  filter: drop-shadow(3px 3px 0px var(--icon-drop-shadow));
  transition: all 0.2s ease;
}

.icon-item:hover .icon-about, 
.icon-item:hover .icon-links, 
.icon-item:hover .icon-projects, 
.icon-item:hover .icon-faq, 
.icon-item:hover .icon-contacts {
  filter: drop-shadow(0px 0px 0px var(--icon-drop-shadow));
}

.icon-item:hover .icon-about::before, 
.icon-item:hover .icon-links::before, 
.icon-item:hover .icon-projects::before, 
.icon-item:hover .icon-faq::before, 
.icon-item:hover .icon-contacts::before {
  background-color: var(--orangeL1);
}

.icon-about::before {
  content: "";
  position: absolute;
  inset: 0;
  background-color: var(--orange);
  mask: url('resources/svg/icon_about.svg') no-repeat center / contain;
  -webkit-mask: url('resources/svg/icon_about.svg') no-repeat center / contain;
  transition: background-color 0.2s ease;
}
.icon-about::after {
  content: "";
  position: absolute;
  inset: 0;
  background-color: var(--dark-orange);
  mask: url('resources/svg/icon_about_l.svg') no-repeat center / contain;
  -webkit-mask: url('resources/svg/icon_about_l.svg') no-repeat center / contain;
  transition: background-color 0.2s ease;
}

.icon-links::before {
  content: "";
  position: absolute;
  inset: 0;
  background-color: var(--orange);
  mask: url('resources/svg/icon_links.svg') no-repeat center / contain;
  -webkit-mask: url('resources/svg/icon_links.svg') no-repeat center / contain;
  transition: background-color 0.2s ease;
}
.icon-links::after {
  content: "";
  position: absolute;
  inset: 0;
  background-color: var(--dark-orange);
  mask: url('resources/svg/icon_links_l.svg') no-repeat center / contain;
  -webkit-mask: url('resources/svg/icon_links_l.svg') no-repeat center / contain;
  transition: background-color 0.2s ease;
}

.icon-projects::before {
  content: "";
  position: absolute;
  inset: 0;
  background-color: var(--orange);
  mask: url('resources/svg/icon_projects.svg') no-repeat center / contain;
  -webkit-mask: url('resources/svg/icon_projects.svg') no-repeat center / contain;
  transition: background-color 0.2s ease;
}
.icon-projects::after {
  content: "";
  position: absolute;
  inset: 0;
  background-color: var(--dark-orange);
  mask: url('resources/svg/icon_projects_l.svg') no-repeat center / contain;
  -webkit-mask: url('resources/svg/icon_projects_l.svg') no-repeat center / contain;
  transition: background-color 0.2s ease;
}

.icon-faq::before {
  content: "";
  position: absolute;
  inset: 0;
  background-color: var(--orange);
  mask: url('resources/svg/icon_faq.svg') no-repeat center / contain;
  -webkit-mask: url('resources/svg/icon_faq.svg') no-repeat center / contain;
  transition: background-color 0.2s ease;
}
.icon-faq::after {
  content: "";
  position: absolute;
  inset: 0;
  background-color: var(--dark-orange);
  mask: url('resources/svg/icon_faq_l.svg') no-repeat center / contain;
  -webkit-mask: url('resources/svg/icon_faq_l.svg') no-repeat center / contain;
  transition: background-color 0.2s ease;
}

.icon-contacts::before {
  content: "";
  position: absolute;
  inset: 0;
  background-color: var(--orange);
  mask: url('resources/svg/icon_contacts.svg') no-repeat center / contain;
  -webkit-mask: url('resources/svg/icon_contacts.svg') no-repeat center / contain;
  transition: background-color 0.2s ease;
}
.icon-contacts::after {
  content: "";
  position: absolute;
  inset: 0;
  background-color: var(--dark-orange);
  mask: url('resources/svg/icon_contacts_l.svg') no-repeat center / contain;
  -webkit-mask: url('resources/svg/icon_contacts_l.svg') no-repeat center / contain;
  transition: background-color 0.2s ease;
}*/

/*.icon-item:hover .icon {
  background-color: var(--orangeHL);
}*/

.icon-item span {
  font-weight: 600;
  color: var(--dark-gray);
}

.icon-item:hover span {
  color: var(--orangeD);
}

/* Social Links */
.social-links {
  padding: 20px;
  text-align: center;
  background-color: var(--orangeHL);
  border-radius: var(--radius);
  padding: 5px;
  margin: 10px;
}

.social-links:hover {
  background-color: var(--orangeL);;
}

.copyright {
  margin: 10px;
  color: var(--ptext);
  font-size: 0.9em;
  font-weight: 600;
}

.social-links:hover .copyright {
  color: var(--orangeD);
}

/* Modal Styling */
.modal-container {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background-color: rgba(0, 0, 0, 0.2);
  backdrop-filter: blur(2px);
  display: flex;
  justify-content: center;
  align-items: center;
  z-index: 1000;
  opacity: 0;
  visibility: hidden;
  pointer-events: none;
  transition: transform 0.5s cubic-bezier(0.68, -0.55, 0.27, 1.9), opacity 0.5s ease;
}

.modal-container.visible {
  opacity: 1;
  visibility: visible;
  pointer-events: auto;
}

.modal-window {
  position: absolute;
  border-radius: var(--radius);
  box-shadow: 0 10px 20px rgba(0, 0, 0, 0.2);
  will-change: transform, top, left;
  opacity: 0;
  transform: scale(0.5);
  transition: transform 0.5s cubic-bezier(0.68, -0.55, 0.27, 1.9), opacity 0.5s ease;
  overflow: hidden;
}

.modal-container.visible .modal-window {
  opacity: 1;
  transform: scale(1);
}

.modal-window.is-dragging {
  transition: none;
  /* Disable all transitions when dragging */
  transform: none !important;
  /* This is key. It ensures the transform is not used for dragging */
}

.close-btn {
  color: #fff;
  font-size: 1.7em;
  cursor: pointer;
  line-height: 0;
  padding: 0;
  height: 1em; 
  width: 1em;
  border-radius: 50%;
  display: flex;
  justify-content: center;
  align-items: center;
  background-color: transparent; 
  border-color: transparent;
  transition: transform 0.2s ease, background-color 0.2s ease;
}

.close-btn-notif {
  color: var(--orangeD);
  font-size: 2em;
  cursor: pointer;
  line-height: 0;
  padding: 0;
  height: 1em; 
  width: 1em;
  border-radius: 50%;
  display: flex;
  justify-content: center;
  align-items: center;
  background-color: transparent; 
  border-color: transparent;
  transition: transform 0.2s ease, background-color 0.2s ease;
}

.close-btn:hover,
.close-btn-m:hover {
  transform: scale(1.2); 
  background-color: var(--orangeD); 
}

.close-btn:active,
.close-btn-m:active {
  transform: var(--clicky);
}

.window-header.handle {
  cursor: grab;
}

.window-header.handle:active {
  cursor: grabbing;
}

.modal-content {
  max-height: 90vh;
  overflow-y: auto;
  padding: 1rem;
  display: flex;
  flex-direction: column;
  cursor: auto;
}

/* About */
.bg-container {
  border-radius: var(--radius);
  background-color: var(--orangeHL);
  padding: 10px;
  align-items: center;
  text-align: center;
  flex-direction: column;
}

.profile-container {
  border-radius: var(--radius);
  background-color: var(--orangeHL);
}

.profile-container {
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
}

.profile-header {
  display: flex;
  align-items: center;
  justify-content: center;
  flex-wrap: wrap;
  gap: 1rem;
  text-align: center;
}

.profile-photo {
  width: clamp(60px, 10vw, 80px);
  height: clamp(60px, 10vw, 80px);
  border-radius: 50%;
  object-fit: cover;
  margin: 2vh;
  background-color: var(--orange);
  transition: transform 0.3s ease, background-color 0.2s ease;
}

.profile-photo:hover,
.profile-photo-banner:hover {
  transform: scale(1.15);
  transition: transform 0.3s ease background-color 0.2 ease;
  background-color: var(--orangeL);
}

.profile-photo:active {
  transform: translateY(5px);
  transform: scale(1.0);
}

.profile-photo-banner {
  width: clamp(40px, 10vw, 40px);
  height: clamp(40px, 10vw, 40px);
  border-radius: 50%;
  object-fit: cover;
  background-color: var(--orange);
  transition: transform 0.3s ease, background-color 0.2s ease;
}

.profile-name h1 {
  margin: 0;
  font-size: 3em;
  line-height: clamp(1.3em, 4vw, 1.5em);
  text-align: center;
}

.profile-name i {
  margin: 20;
  font-size: 5em;
  color: var(--orange);
  line-height: clamp(1.3em, 4vw, 1.5em);
  text-align: center;
}

.profile-name:active i {
  transform: var(--clicky1);
}

.profile-name p {
  margin: -10px;
  font-size: 1.0em;
  color: var(--orangeL);
  font-weight: 600;
}

.login-section {
  align-items: center;
  text-align: center;
  padding-left: 10vh;
  padding-right: 10vh;
}

.login-section h1 {
  font-size: 1.9em;
  margin-top: 20px;
  font-weight: 700;
  text-align: left;
}

.login-section a {
  color: var(--ptext);
}

.login-section a:hover {
  color: var(--dark-orange1);
}

.login-section h3 {
  font-size: 1.2em;
  font-weight: 500;
  color: var(--ptext);
  margin-bottom: 10px;
}

.login-section p,
.login-section ul,
.login-info-section p,
.login-info-section ul {
  margin-bottom: 10px;
  font-size: 1.1em;
  color: var(--ptext);
  line-height: 1.3;
}

.about-section {
  padding-top: 1em;
  align-items: center;
  text-align: center;
}

.about-section h1 {
  font-size: 1.9em;
  margin-top: 20px;
  font-weight: 700;
  text-align: left;
}

.about-section h3 {
  font-size: 1.2em;
  font-weight: 500;
  color: var(--ptext);
  margin-bottom: 15px;
}

.about-section p,
.about-section ul,
.about-info-section p,
.about-info-section ul {
  margin-bottom: 10px;
  font-size: 1.1em;
  color: var(--ptext);
  line-height: 1.3;
}

.about-section li {
  margin-bottom: 5px;
  font-size: 1em;
  color: var(--ptext);
  line-height: 1.3;
}

.about-info-section h1 {
  font-size: 1.9em;
  margin-top: 20px;
  font-weight: 700;
  text-align: left;
}

.modal-content h2 {
  margin-top: 0;
  font-size: 1.2em;
  /* Adjust as needed */
  color: var(--ptext);
}

.modal-content p {
  margin-bottom: 0.8rem;
  line-height: 1.5;
  color: var(--ptext);
}

.modal-content ul {
  list-style: disc;
  padding-left: 40px;
  text-align: left;
  margin: 0 auto;
  color: var(--ptext);
}

.modal-content li {
  margin-bottom: 0.5rem;
}

.modal-content strong {
  color: var(--orange);
}

.modal-content a {
  color: var(--orange);
  text-decoration: none;
}

.modal-content a:hover {
  text-decoration: underline;
}

/* Project Modal Styling */
.project-grid-container {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
  gap: 20px;
  padding: 10px 0px 0px 0px;
  text-align: center;
}

.project-item {
  background-color: var(--orangeHL);
  border-radius: var(--radius);
  /*box-shadow: 0 5px 15px rgba(255, 174, 0, 0.808);*/
  padding: 15px;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  height: 100%;
}

.project-item:hover {
  box-shadow: 0 10px 25px var(--orange);
  transform: translateY(-4px);
  background-color: var(--light-orange);
}

.project-item:active {
  transform: var(--clicky);
}

.project-header {
  margin-bottom: 10px;
}

.project-title {
  font-size: 1.4em;
  color: var(--orange);
  line-height: 1.2;
  margin: 0;
}

.project-item:hover .project-title {
  color: var(--orangeD);
}

.img-banner {
  aspect-ratio: 1/1;
  border-radius: 10px; 
  overflow: hidden;
  background-color: var(--orangeL1); 
  display: flex;
  justify-content: center;
  align-items: center;
  position: relative;
  margin: 0 auto;
}

.img-banner blockquote.instagram-media {
  width: 100% !important;
  margin: 0 auto !important;
}

.img-banner iframe,
.img-banner blockquote {
  transform: scale(0.60);
  width: 100%;
  height: 195%;
}

.img-banner iframe[data-src] {
  opacity: 0;
  transition: opacity 0.3s ease-in-out;
}

.img-banner iframe:not([data-src]) {
  opacity: 1;
}

.img-banner:active {
  transform: var(--clicky);
}

.img-banner:hover {
  box-shadow: 0 10px 25px var(--orange);
  transform: translateY(-4px);
}

.project-banner {
  aspect-ratio: 16 / 9;
  border-radius: 10px; 
  overflow: hidden;
  margin-bottom: 10px;
  background-color: var(--orangeL1); 
  display: flex;
  justify-content: center;
  align-items: center;
  padding: 5px;
}

.project-banner img,
.project-banner a,
.project-banner button {
  background-color: transparent;
  width: 100%;
  height: 100%;
  max-width: 100%;
  max-height: 100%;
  object-fit: cover;
  border-radius: 10px;
  overflow: hidden;
  border: none;
  cursor: pointer
}

.project-banner img[data-src] {
  opacity: 0;
  transition: opacity 0.3s ease-in-out;
}

.project-banner img:not([data-src]) {
  opacity: 1;
}

.project-banner:active {
  transform: var(--clicky);
}

.banner-clickable {
  cursor: zoom-in;
  transition: opacity 0.2s;
}

.banner-clickable:hover {
  opacity: 0.8;
}

.project-description p {
  font-size: 1.1em;
  color: var(--ptext);
  margin: 0;
  line-height: 1.3;
}

.project-footer {
  margin-top: 20px;
}

.view-project-btn {
  background-color: var(--orange);
  color: white;
  border: none;
  padding: 10px 20px;
  border-radius: 25px;
  font-size: 1em;
  cursor: pointer;
  transition: background-color 0.3s ease, transform 0.2s ease;
  margin: 2px;
}

.view-project-btn:hover {
  background-color: var(--orangeD);
  transform: translateY(-4px);
}

.project-skills-container {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-top: 10px;
  justify-content: left;
}

.skill-tag {
  background-color: var(--orangeHL);
  border-radius: 5px;
  padding: 5px 10px;
  font-size: 0.9em;
  color: var(--orange);
  font-weight: 600;
  white-space: nowrap;
  transition: background-color 0.3s ease, transform 0.2s ease box-shadow 0.2s ease color 0.2s ease;
}

.skill-tag:hover {
  box-shadow: 0 5px 10px var(--orange);
  transform: translateY(-4px);
  background-color: var(--light-orange);
  color: var(--orangeD);
}

.skill-tag:active {
  transform: var(--clicky);
}

/* Links Modal Styling */
.link-grid-container {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(95px, 1fr));
  gap: clamp(5px, 1vh, 20px);
  padding-top: 20px;
  justify-content: center;
  align-items: center;
  transition: all 0.25s ease;
}

.link-item {
  position: relative;
  background-color: var(--orangeHL);
  border-radius: var(--radius);
  text-align: center;
  transition: transform 0.3s ease, box-shadow 0.3s ease, background-color 0.3s ease;
  overflow: hidden;
  cursor: pointer;
  height: 100px;
  width: 100px;
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
}

.link-favicon {
  position: relative;
  z-index: 2;
  transition: transform 0.3s ease, background-color 0.3s ease, box-shadow 0.3s ease filter 0.3 ease;
}

.link-favicon i {
  font-size: 3em;
  color: var(--orange);
  transition: transform 0.3s ease, background-color 0.3s ease, box-shadow 0.3s ease filter 0.3 ease;
  filter: drop-shadow(3px 3px 0px var(--icon-drop-shadow));
  text-shadow:
    -1.5px -1.5px 0px var(--dark-orange1),
    /* Top-left */
    1.5px -1.5px 0px var(--dark-orange1),
    /* Top-right */
    -1.5px 1.5px 0px var(--dark-orange1),
    /* Bottom-left */
    1.5px 1.5px 0px var(--dark-orange1);
  /* Bottom-right */
}

.link-favicon svg {
  fill: var(--orange);
  width: 60px;
  height: 60px;
  stroke: var(--dark-orange1);
  stroke-width: 1.5px;
  transition: fill 0.3s ease transform 0.3s ease, background-color 0.3s ease, box-shadow 0.3s ease filter 0.3 ease;
  filter: drop-shadow(4px 4px 0px var(--icon-drop-shadow));
}

.link-item:hover .link-favicon svg {
  fill: var(--orangeL1);
  filter: drop-shadow(0px 0px 0px var(--icon-drop-shadow));
  stroke: var(--orangeD);
}

.link-item:hover .link-favicon i {
  color: var(--orangeL1);
  filter: drop-shadow(0px 0px 0px var(--icon-drop-shadow));
  text-shadow:
    -1.5px -1.5px 0px var(--orangeD),
    /* Top-left */
    1.5px -1.5px 0px var(--orangeD),
    /* Top-right */
    -1.5px 1.5px 0px var(--orangeD),
    /* Bottom-left */
    1.5px 1.5px 0px var(--orangeD);
  /* Bottom-right */
}

.link-footer {
  position: absolute;
  bottom: 0;
  width: 100%;
  padding: 15px 0;
  z-index: 1;
  transform: translateY(100%);
  transition: transform 0.3s ease background-color 0.3s ease;
  background-color: var(--light-orange);
}

.view-link-btn {
  font-weight: 600;
  font-size: 0.9em;
  color: var(--orangeD);
  opacity: 0;
  transition: opacity 0.3s ease;
}

.link-item:hover {
  box-shadow: 0 10px 25px var(--orange);
  transform: translateY(-4px);
  background-color: var(--orangeL);
}

.link-item:hover .link-favicon {
  transform: translateY(-25%);
}

.link-item:hover .link-footer {
  transform: translateY(4px);
  background-color: var(--orangeL);
}

.link-item:hover .view-link-btn {
  opacity: 1;
}

.link-item:active {
  transform: var(--clicky);
}

/* Custom Scrollbar for Webkit Browsers */
html {
  scrollbar-width: auto;
  scrollbar-color: var(--orange) #00000000;
  -webkit-tap-highlight-color: transparent;
  transition: all 0.2s ease-in-out;
}

.toggle-modal-btn {
  position: fixed;
  bottom: 230px;
  left: 10px;
  width: 45px;
  height: 45px;
  border-radius: 50%;
  background-color: var(--orange);
  color: white;
  font-size: 20px;
  border: none;
  cursor: pointer;
  box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1);
  z-index: 2000;
  display: none;
  transition: transform 0.2s ease-in-out, background-color 0.2s ease, display 0.3s ease-in-out;
}

.toggle-modal-btn:hover {
  background-color: var(--orangeD);
  transform: translateY(-5px);
}

.toggle-modal-btn .fa-square-minus,
.toggle-modal-btn .fa-square-plus {
  transition: transform 0.3s ease-in-out;
}

.toggle-modal-btn .fa-square-plus {
  transform: rotate(180deg);
}

.faq-item {
  background-color: var(--orangeHL);
  border-radius: var(--radius);
  margin-bottom: 15px;
  transition: all ease-in-out 0.3s;
}

.faq-item:hover {
  transform: translateY(-4px);
  box-shadow: 0 15px 25px var(--orange);
}

.faq-item:active {
  transform: var(--clicky);
}

.faq-question {
  padding: 20px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  cursor: pointer;
  font-size: 1.0em;
  font-weight: 600;
  color: var(--ptext);
  user-select: none;
}


.faq-question:active {
  transform: var(--clicky);
}

.faq-question i {
  font-size: 1.2em;
  transition: transform 0.3s ease;
}

.faq-item.open .faq-question i {
  transform: rotate(180deg);
}

.faq-answer {
  max-height: 0;
  overflow: hidden;
  padding: 0 20px;
  transition: max-height 0.4s ease-out, padding 0.4s ease-out;
}

.faq-item.open .faq-answer {
  max-height: 200px;
  padding: 0 20px 20px 20px;
}

.faq-answer p {
  margin: 0;
  padding: 0;
  font-size: 1em;
  line-height: 1.5;
  text-align: left;
  color: var(--ptext);
}

/* Contacts */
.contact-form {
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.item-preview-img {
  display: flex;
  align-items: center; 
  justify-content: center;
  text-align: center;
  overflow: hidden;
  margin: 0 auto 25px auto;
  width: 350px;
  height: 350px;
  object-fit: cover;
  border-radius: 12px;
  border: solid 3px var(--orange);
  background-color: var(--orangeL1);
}

.form-grid {
  display: grid;
  grid-template-columns: 1fr;
  grid-template-rows: auto auto;
  gap: 12px;
  margin-bottom: 40px;
}

.form-grid1 {
  display: grid;
  grid-template-columns: 1fr 1fr;
  grid-template-rows: auto auto;
  gap: 12px;
  margin-bottom: 40px;
}

.form-grid2 {
  display: grid;
  grid-template-columns: 1fr;
  grid-template-rows: auto auto;
  gap: 12px;
}

.form-grid3 {
  display: grid;
  grid-template-columns: 1fr;
  grid-template-rows: auto auto;
  margin-bottom: 20px;
}

.form-grid3 label {
  font-size: 16px;
  font-weight: 600;
  color: var(--ptext);
}

.form-grid input,
.form-grid textarea,
.form-grid1 input,
.form-grid1 textarea,
.form-grid2 input,
.form-grid2 textarea,
.form-grid3 input,
.form-grid3 textarea {
  background-color: var(--orangeHL);
  border: 3px solid var(--orangeL1);
  border-radius: 6px;
  padding: 10px;
  font-size: 16px;
  resize: none;
  outline: none;
  transition: border 0.2s ease;
  width: 100%;
  transition: all 0.2S ease-in-out;
}

.form-grid input:active,
.form-grid textarea:active,
.form-grid1 input:active,
.form-grid1 textarea:active
.form-grid2 input:active,
.form-grid2 textarea:active,
.form-grid3 input:active,
.form-grid3 textarea:active {
  transform: var(--clicky);
}

.form-grid input:focus,
.form-grid textarea:focus,
.form-grid1 input:focus,
.form-grid1 textarea:focus
.form-grid2 input:focus,
.form-grid2 textarea:focus,
.form-grid3 input:focus,
.form-grid3 textarea:focus{
  border-color: var(--orange);
  background-color: var(--orangeL1);
}

.form-grid input:hover,
.form-grid textarea:hover,
.form-grid1 input:hover,
.form-grid1 textarea:hover
.form-grid2 input:hover,
.form-grid2 textarea:hover,
.form-grid3 input:hover,
.form-grid3 textarea:hover{
  border-color: var(--orange);
}

/* Make textarea span full width */
.form-grid textarea,
.form-grid1 textarea,
.form-grid2 textarea,
.form-grid3 textarea {
  grid-column: span 2;
  min-height: 80px;
}

.submit-btn {
  background: var(--orange);
  border: none;
  color: white;
  font-weight: 600;
  font-size: medium;
  padding: 10px 16px;
  border-radius: 6px;
  cursor: pointer;
  transition: background 0.2s ease;
  transition: all 0.2s ease-in-out;
}

.submit-btn:hover {
  background: var(--orangeD);
  transform: translateY(-3px);
}

.submit-btn:active {
  transform: var(--clicky);
}

.submit-btn1 {
  background: var(--dark-orange);
  border: none;
  color: white;
  font-weight: 600;
  font-size: medium;
  padding: 10px 16px;
  border-radius: 6px;
  cursor: pointer;
  transition: background 0.2s ease;
  transition: all 0.2s ease-in-out;
}

.submit-btn1:hover {
  background: var(--orangeD);
  transform: translateY(-3px);
}

.submit-btn1:active {
  transform: var(--clicky);
}

#submit-modal.visible {
  display: flex;
  opacity: 1;
}

.about-tabs {
  display: flex;
  justify-content: center;
  align-items: center;
  gap: 12px;
  margin-top: 20px;
}

.tab-switcher {
  display: flex;
  justify-content: center;
  gap: 10px;
  margin: 10px;
}

.tab-btn {
  background: var(--orangeD);
  border: none;
  padding: 10px 10px;
  border-radius: 8px;
  cursor: pointer;
  transition: 0.2s;
  font-weight: bold;
  color: var(--light-orange1);
  transform: var(--clicky1);
  font-size: 0.9em;
}

.tab-btn.active {
  background: var(--orangeL1);
  transform: scale(1.0);
  font-size: 0.9em;
  color: var(--orangeD);
}

.tab-btn:hover {
  transform: translateY(-5px);
  font-size: 0.9em;
  box-shadow: 0 10px 25px var(--orange);
}

.tab-underline {
  position: absolute;
  bottom: 0;
  height: 3px;
  width: 0;
  background: var(--orangeD1);
  border-radius: 2px;
  transition: left 0.3s ease, width 0.3s ease;
}

.tab-content {
  position: absolute;
  opacity: 0;
  transform: translateX(0);
  transition: all ease-in-out 0.3s;
}

.tab-content.active {
  opacity: 1;
  pointer-events: auto;
  transform: translateX(0);
  position: relative;
}

.slide-from-right {
  transform: translateX(50px);
}

.slide-from-left {
  transform: translateX(-50px);
}

#mobile-banner {
  position: fixed;
  bottom: -100px;
  left: 50%;
  transform: translateX(-50%);
  width: 90%;
  max-width: 420px;
  padding: 10px;
  background: var(--orangeHL);
  color: var(--ptext);
  border-radius: 14px;
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.18);
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 10px;
  font-size: 0.9rem;
  font-weight: 450;
  z-index: 2000;
  transition: bottom 0.45s cubic-bezier(.25, .85, .45, 1), opacity 0.35s ease;
  opacity: 0;
  pointer-events: none;
}

/* Show banner */
#mobile-banner.show {
  bottom: 20px;
  opacity: 1;
  pointer-events: auto;
}

.modal-notify {
    position: fixed;
    bottom: -200px;
    left: 50%;
    transform: translateX(-50%);
    width: 90%;
    max-width: 450px;
    background: var(--orangeHL);
    color: var(--ptext);
    border-radius: 15px;
    padding: 10px;
    display:flex;
    align-items:center;
    gap:10px;
    box-shadow: 0 4px 20px rgba(0,0,0,0.35);
    z-index: 99999;
    transition: bottom 0.4s ease;
}

.modal-notify.show {
    bottom: 15px;
}

#modal-notify-text {
    font-size: 0.9rem;
    line-height: 1.2rem;
    flex: 1;
    font-weight: 450;
}

/* resto dashboard */
.fb-header {
  position: relative;
  width: 100%;
}

.banner-container {
  position: relative;
  width: 100%;
  height: 200px;
  overflow: hidden;
  border-radius: 12px;
  border: 4px solid var(--orangeL);
}

.banner-container:hover .banner-img {
  transform: scale(1.05);
}
.banner-container:active .banner-img {
  transform: scale(1.1);
}
.banner-container:hover {
  border: 4px solid var(--orangeD);
  background: var(--orangeL1);
}

.banner-img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.profile-row {
  display: flex;
  align-items: flex-end;
  gap: 20px;
  padding: 0 20px;
  margin-top: -60px;
}

.profile-pic-wrapper {
  position: relative;
}

.profile-pic-wrapper1 {
  display: flex;
}

.window-title2 {
  font-weight: 550;
  font-size: large;
  user-select: none;
  margin-left: 10px;
}

.profile-img {
  width: 120px;
  height: 120px;
  border-radius: 100%;
  object-fit: cover;
  border: 4px solid var(--orangeL);
  background: var(--orangeHL);
}

.profile-img:hover {
  object-fit: cover;
  border: 4px solid var(--orangeD);
  background: var(--orangeL1);
  transform: scale(0.93);
}
.profile-img:active {
  transform: scale(1);
}

.profile-img1 {
  width: 50px;
  height: 50px;
  border-radius: 100%;
  object-fit: cover;
  border: 3px solid var(--orangeL);
  background: var(--orangeHL);
}

.profile-img1:hover {
  object-fit: cover;
  border: 3px solid var(--orangeD);
  background: var(--orangeL1);
  transform: scale(0.93);
}
.profile-img1:active {
  transform: scale(1);
}

.profile-info h2 {
  line-height: 28px;
  text-align: left;
  font-size: 2rem;
  margin: 0;
  color: var(--ptext);
}

.profile-info p {
  margin: 2px 0;
  opacity: 0.7;
  color: var(--ptext);
}

.edit-btn {
  position: absolute;
  bottom: 10px;
  right: 10px;
  background: var(--dark-orange);
  color: white;
  border: none;
  padding: 6px 10px;
  border-radius: 8px;
  cursor: pointer;
}
.edit-btn:hover {
  transform: scale(1.1); 
  background-color: var(--orangeD); 
}
.edit-btn:active {
  transform: var(--clicky); 
}

.edit-btn.small {
  bottom: 0;
  right: 0;
}

.sort {
  flex: 1;
  background: var(--orange);
  border: none;
  color: white;
  font-weight: 600;
  font-size: small;
  padding: 5px;
  border-radius: 6px;
  transition: background 0.2s ease;
  transition: all 0.2s ease-in-out;
  border: solid 3px var(--orangeD);
}

.sort:hover {
  background: var(--orangeD);
  border: solid 3px var(--dark-orange);
  cursor: pointer;
}

.sort:active {
  transform: var(--clicky);
  border: solid 2px var(--dark-orange);
  cursor: pointer;
}

.item-actions button:hover {
  background: var(--orangeD);
  transform: translateY(-3px);
}

.item-actions button:active {
  transform: var(--clicky);
}

.items-filter {
  position: absolute;
  right: 10px;
  gap: 15px;
  margin-top: -20px;
}

.items-filter label{
  margin-right: 5px;
}

/* Items in resto */
.items-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.add-item-btn {
  font-size: 30px;
  width: 50px;
  height: 50px;
  border-radius: 12tpx;
  border: none;
  cursor: pointer;
  background: var(--orange);
  color: white;
}
.add-item-btn:hover {
  background: var(--orangeD);
  transform: translateY(-5px);
  box-shadow: 0 10px 25px var(--orange);
}
.add-item-btn:active {
  background: var(--orangeD);
  transform: var(--clicky);
}

.items-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(180px, auto));
  justify-content: start;
  gap: 16px;
  margin-top: 20px;
  margin-bottom: 50px;
}

.item-card {
  background: var(--orangeHL);
  border-radius: 12px;
  overflow: hidden;
  box-shadow: 0 4px 10px var(--orange);
  display: flex;
  flex-direction: column;
  transform: all 0.2s ease-in-out;
  border: solid 3px var(--orangeL);
}
.item-card:hover {
  box-shadow: 0 10px 25px var(--orange);
  transform: scale(1.03);
  border: solid 3px var(--orangeL);
  background: var(--light-orange);
}
.item-card:active {
  transform: scale(0.95);
}

.item-image {
  width: 100%;
  height: 160px;
  object-fit: cover;
}

.item-details {
  padding: 12px;
  color: var(--ptext);
  line-height: 25px;
  display: flex;
  flex-direction: column;
  flex: 1;

}
.item-details p {
  margin-top: 10px;
  font-size: 15px;
  margin-bottom: 10px;
  line-height: 20px;
}

.price-row {
  display: flex;
  justify-content: space-between;
  font-size: 22px;
}

.original-price {
  text-decoration: line-through;
  opacity: 0.4;
  color: var(--ptext);
  font-weight: bold;
}

.discounted-price {
  color: var(--orange);
  font-weight: bold;
}

.item-actions {
  position: relative;
  display: flex;
  gap: 8px;
  padding: 10px;
  margin-top: auto;
}

.bottom-row {
  background: var(--orangeL1);
  border-radius: 15px;
  padding: 5px;
  color: var(--ptext);
  margin-top: auto;
  padding-left: 15px;
  padding-right: 15px;
  display: flex;
  flex-direction: column;
}

.bottom-row1 {
  margin-top: auto;
  padding-left: 15px;
  padding-right: 15px;
  display: flex;
  flex-direction: column;
}

.item-actions button {
  flex: 1;
  background: var(--orange);
  border: none;
  color: white;
  font-weight: 600;
  font-size: medium;
  padding: 5px 10px;
  border-radius: 6px;
  cursor: pointer;
  transition: background 0.2s ease;
  transition: all 0.2s ease-in-out;
}

/* Home user page */
.restaurant-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(140px, 1fr));
  gap: 14px;
  padding: 5px;
}

.restaurant-card {
  /*background: linear-gradient(0deg, var(--orangeHL) 30%, var(--orange));*/
  background: var(--orangeHL);
  border-radius: 12px;
  overflow: hidden;
  box-shadow: 0 4px 10px var(--orange);
  display: flex;
  flex-direction: column;
  border: solid 3px var(--orangeL);
}

.restaurant-card:hover {
  transform: translateY(-3px);
  box-shadow: 0 10px 25px var(--orange);
  border: solid 3px var(--orangeD);
  background: var(--orangeL1);
  transform: all 0.2s ease-in-out;
}
.restaurant-card:hover .restaurant-logo {
  border: solid 3px var(--orange);
}

.restaurant-card:active {
  transform: var(--clicky);
}
.restaurant-card:active .restaurant-logo {
  transform: var(--clicky);
}

.item-image-wrapper {
  position: relative;
}

.reservation-preview {
  position: absolute;
  top: 8px;
  left: 8px;
  display: flex;
  align-items: center;
  cursor: pointer;
}

.reservation-dot {
  width: 25px;
  height: 25px;
  border-radius: 50%;
  background-color: var(--orangeL1);
  margin-right: 4px;
  border: 2px solid var(--orange); /* makes it stand out on the image */
}

.reservation-dot-more {
  background-color: var(--orangeL1);
  border: 2px solid var(--orange);
  font-size: 12px;
  color: white;
  font-weight: bold;
  text-shadow: 0 0 2px black;
  border-radius: 15px;
}

/* Modal reservation user card */
.reserved-user-card {
  display: flex;
  align-items: center;
  padding: 10px;
  border-bottom: 1px solid var(--dark-orange);
  gap: 12px;
}

.reserved-user-card:last-child {
  border-bottom: none;
}

.reserved-user-img {
  width: 60px;
  height: 60px;
  border-radius: 50%;
  object-fit: cover;
  border: solid 2px var(--orange);
}

.reserved-user-info {
  display: flex;
  flex-direction: column;
  text-align: left;
}

.reserved-user-info span {
  font-weight: 600;
  font-size: 16px;
  color: var(--orangeD);
}

.reserved-user-info small {
  font-size: 14px;
  color: var(--ptext);
}

.reserved-time {
  font-size: 13px;
  color: var(--ptext);
  margin-top: 2px;
}

/* Scrollable modal content if too many */
.reserved-modal {
  max-height: 400px;
  overflow-y: auto;
  display: flex;
  flex-direction: column;
  gap: 8px;
  padding: 5px 10px;
}

/* Banner */
.restaurant-banner img {
  width: 100%;
  height: 90px;
  object-fit: cover;
}

.restaurant-logo-container {
  width: 100%;
  display: flex;
  justify-content: center;
  margin-top: -50px;
}

/* Circular profile image */
.restaurant-logo {
  width: 70px;
  height: 70px;
  object-fit: cover;
  border-radius: 50%;
  border: 3px solid var(--orangeL);
  background: var(--orangeL1);
}

/* Name */
.restaurant-name {
  margin-top: auto;
  padding: 10px 0px 10px; /* more space because logo overlaps */
  font-size: 1.2rem;
  font-weight: 700;
  color: var(--orangeD);
  line-height: 1.2em;
}

.qr-backdrop {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  backdrop-filter: blur(10px);
  background: rgba(0, 0, 0, 0.336);
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.3s ease-in-out;
  z-index: 9998;
}

/* Centered sliding modal */
.qr-slide-modal {
  position: fixed;
  top: 50%;
  left: 50%;
  width: 30%;
  max-width: 100%;
  height: 400px;
  max-height: 80%;
  transform: translate(-50%, 300%);
  background: var(--orangeL1);
  border-radius: 20px;
  box-shadow: 0 5px 30px rgba(0, 0, 0, 0.521);
  transition: transform 0.3s ease-in-out;
  z-index: 2000;
  padding: 5px;
  display: flex;
  flex-direction: column;
  align-items: center;
}

.qr-backdrop.visible {
  opacity: 1;
  pointer-events: auto;
  z-index: 1500;
}

.qr-slide-modal.visible {
  opacity: 1;
  transform: translate(-50%, -15%);
}

.qr-slide-modal.hidden {
  transform: translate(-50%, 10%);
}

.qr-slide-content {
  padding: 20px;
  height: 100%;
  display: flex;
  flex-direction: column;
}

.qr-slide-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.drag-bar {
  width: 50px;
  height: 5px;
  background: var(--orange);
  border-radius: 5px;
  margin-bottom: 10px;
  margin-left: auto;
  margin-right: auto;
}

.qr-center {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  flex-grow: 1;
}

.qr-center canvas {
  border-radius: 15px;
}

#qr-reader {
  width: 100%;
  height: 280px;
  border-radius: 15px;
  overflow: hidden;
  background: #000;  /* prevents auto collapse */
  border-radius: 15px;
}

.qr-note {
  margin-top: 10px;
  color: var(--ptext);
  text-align: center;
}

.crop-preview-container {
  display: flex;
  align-items: center; 
  justify-content: center;
  text-align: center;
  width: 100%;
  height: 100%;
  overflow: hidden;
}

.crop-preview-container canvas {
  display: flex;
  align-items: center; 
  justify-content: center;
  text-align: center;
  width: 100%;
  height: 100%;
  overflow: hidden;
  border-radius: 15px;
}

.error-message {
  padding-bottom: 30px;
}

.home-hero {
  display: flex;
  flex-direction: row;
  justify-content: space-between;
  align-items: center;
  padding: 0px 20px 0px;
  position: relative;
  gap: 20px;
  border-radius: 15px;
  background: linear-gradient(90deg, var(--light-orange) 20%, var(--orangeL1), var(--orange));
  margin-bottom: 10px;
  transition: all 0.3s ease-in-out;
}

.hero-text {
  flex: 1;
  z-index: 3;
  text-align: left;
}

.home-hero h2 {
  font-family: "Anton", sans-serif;
  font-size: 4rem;
  font-weight: 900;
  color: var(--ptext);
  letter-spacing: 3px;
  text-transform: uppercase;
  margin-bottom: -10px;
  line-height: 80px;
}

.home-hero p {
  font-size: 1.1rem;
  font-weight: 400;
  color: var(--ptext);
  margin-bottom: 20px;
}

/* IMAGE section */
.hero-image {
  flex: 1;
  position: relative;
  width: 250px;
  height: 250px;
  overflow: hidden;
}

/* Rotating image */
.salad-img {
  width: 100%;
  height: 200%;
  object-fit: cover;
}

/* Rotation animation */
@keyframes rotateImage {
  from { transform: rotate(0deg); }
  to { transform: rotate(360deg); }
}

@media (max-width: 992px) {

  .project-grid-container {
    grid-template-columns: repeat(2, 1fr);
  }
  
  .home-hero {
    display: flex;
    flex-direction: row;
    justify-content: space-between;
    align-items: center;
    padding: 0px 20px 0px;
    position: relative;
    gap: 20px;
    border-radius: 15px;
    background: linear-gradient(90deg, var(--light-orange) 20%, var(--orangeL1), var(--orange));
    margin-bottom: 10px;
  }

  .hero-text {
    flex: 1;
    z-index: 3;
    text-align: left;
  }

  .home-hero h2 {
    font-family: Impact, Haettenschweiler, 'Arial Black', sans-serif;
    font-size: 3.3rem;
    font-weight: 900;
    color: var(--ptext);
    letter-spacing: 3px;
    text-transform: uppercase;
    margin-bottom: -10px;
    line-height: 60px;
  }

  .home-hero p {
    font-size: 1.1rem;
    font-weight: 400;
    color: var(--ptext);
    margin-bottom: 20px;
  }

  /* IMAGE section */
  .hero-image {
    flex: 1;
    position: relative;
    width: 270px;
    height: 270px;
    overflow: hidden;
  }

  /* Rotating image */
  .salad-img {
    margin-top: 15px;
    width: 90%;
    height: 90%;
    object-fit: cover;
  }
  
}

@media (max-width: 600px) {

  .reserved-user-card {
    display: flex;
    align-items: center;
    padding: 10px;
    border-bottom: 1px solid var(--dark-orange);
    gap: 12px;
    flex-wrap: wrap;
    overflow: hidden; 
  }

  .reserved-user-img {
    width: 50px;
    height: 50px;
    border-radius: 50%;
    object-fit: cover;
    flex-shrink: 0;
  }

  .reserved-user-info {
    display: flex;
    flex-direction: column;
    text-align: left;
    min-width: 0;
    word-break: break-word;
  }

  .reserved-user-info span {
    font-weight: 600;
    color: var(--orangeD);
  }

  .reserved-user-info small {
    overflow-wrap: anywhere;
  }

  .reserved-time {
    margin-top: 2px;
  }

  .item-preview-img {
    width: 250px;
    height: 250px;
  }

  .items-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(130px, auto));
    justify-content: start;
    gap: 16px;
    margin-top: 20px;
  }

  .item-details p {
    margin-top: 10px;
    font-size: 12px;
    margin-bottom: 10px;
    line-height: 15px;
  }

  .item-details h3 {
    font-size: 16px;
    line-height: 15px;
  }

  .price-row {
    display: flex;
    flex-direction: column-reverse;
    align-items: center;
    justify-content: center;
    text-align: center;
  }
  
  .original-price {
    text-decoration: line-through;
    opacity: 0.4;
    color: var(--ptext);
    font-weight: bold;
    font-size: 18px;
  }

  .discounted-price {
    color: var(--orange);
    font-weight: bold;
  }

  .item-actions {
    position: relative;
    display: flex;
    gap: 8px;
    padding: 10px;
    margin-top: auto;
  }

  .item-actions button {
    color: white;
    font-size: 15px;
    font-weight: 600;
    font-size: medium;
    padding: 5px 5px;
    border-radius: 6px;
    
  }
  .bottom-row b,
  .bottom-row p {
    font-size: 13px;
    line-height: 15px;
  }
  
  .fb-header {
    position: relative;
    width: 100%;
  }
  .banner-container .edit-btn {
    position: absolute;
    height: 30px;
    top: 10px;
    right: 10px;
    background: var(--dark-orange);
    color: white;
    border: none;
    padding: 6px 10px;
    border-radius: 8px;
    cursor: pointer;
  }

  .qr-slide-modal {
    width: 100%;
  }

  .qr-slide-modal.visible {
    transform: translate(-50%, -5%);
  }

  .modal-small,
  .modal-small1,
  .modal-small2,
  .modal-medium,
  .modal-medium1
  .modal-medium2,
  .modal-large,
  .modal-large1
  .modal-large2 {
    width: 90vw;
  }

  .img-banner iframe,
  .img-banner blockquote {
    transform: scale(1);
    width: 100%;
    height: 120%; 
  }

  .nav-bar {
    position: fixed;
    bottom: 10px;
    left: 50%;
    transform: translateX(-50%);
    width: 50px;
    height: 20px;
    border-radius: 999px;
    background-color: var(--orange);
    box-shadow: 0 4px 8px var(--orangeD);
    opacity: 1;
    transition: transform 0.2s ease, background-color 0.2s ease, opacity 0.2s ease;
    animation: bounceUp 2s ease-in-out infinite;
    display: flex;
    align-items: center;
    justify-content: center;
    border: 2px solid var(--orangeD);
    
  }
  .nav-bar::before {
    content: "✕";
    color: white;
    font-size: 12px;
    font-weight: 800;
    pointer-events: none;
  }

  @keyframes bounceUp {
    0%   { transform: translateX(-50%) translateY(0); }
    50%  { transform: translateX(-50%) translateY(-5px); }
    100% { transform: translateX(-50%) translateY(0); }
  }
  
  .nav-bar:hover {
    opacity: 1;
    transform: translateX(-50%) scale(1.1);
  }

  .close-btn {
    color: transparent;
    cursor: none;
    height: 0em;
    width: 0em;
    border-radius: none;
    background-color: transparent;
    border-color: transparent;
    transition: transform 0.2s ease, background-color 0.2s ease;
  }

  .window-container {
    position: relative;
    display: flex;
    flex-direction: column;
    align-items: center;
    margin-bottom: 8vh;
  }

  .social-links:hover {
    background-color: transparent;
  }

  .social-links:hover .copyright {
    color: var(--ptext);
  }

  .link-grid-container {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(80px, 1fr));
    gap: 20px;
    padding-top: 20px;
    text-align: center;
  }

  .link-item {
    height: 85px;
    width: 85px;
  }

  .link-favicon i {
    font-size: 2.5em;
  }

  .link-favicon svg {
    width: 50px;
    height: 50px;
  }

  .view-link-btn {
    font-weight: 600;
    font-size: 0.7em;
  }

  .project-grid-container {
    grid-template-columns: 1fr;
  }

  .project-item {
    width: 90%;
    margin: 0 auto;
  }

  .modal-window {
    max-height: 90vh;
    /* Set a max height relative to the viewport height */
  }

  .modal-content {
    padding: 1rem;
  }

  .login-frame {
    width: 600px;
    overflow-y: auto;
    background: #fffbf400;
    backdrop-filter: blur(10px);
    border-radius: var(--radius);
    border: transparent;
  }

  .modal-frame {
    width: 600px;
  }

  .modal-links {
    width: 600px;
  }

  .modal-projects {
    width: 700px;
  }

  .modal-faq {
    width: 600px;
  }

  .modal-contacts {
    width: 600px;
  }

  .modal-submit {
    width: 400px;
    z-index: 3000;
  }

  .modal-error {
    width: 400px;
    z-index: 3000;
  }

  .modal-image {
    width: 700px;
  }

  .social-links {
    background-color: transparent;
    backdrop-filter: blur(10px);
  }

  .intro-section h1,
  .intro-section h2 {
    line-height: 1.0em;
  }

  .intro-section h2 {
    font-size: 3em;
  }

  .nav-icons {
    margin: -10px;
  }

  .form-grid1 {
    display: grid;
    grid-template-columns: 1fr;
    grid-template-rows: auto auto;
    gap: 12px;
    margin-bottom: 20px;
  }

  .profile-photo {
    width: 80px;
    height: 80px;
    border-radius: 50%;
    object-fit: cover;
    margin-right: -10%;
    margin-left: 10%;
  }

  .profile-name i {
    font-size: 4em;
  }

  .profile-name h1 {
    margin: 3%;
    line-height: 1.0em;
    font-size: 32px;
  }

  .profile-name p {
    margin-top: 1%;
    font-size: 15px;
  }

  .login-section {
    align-items: center;
    text-align: center;
    padding-left: 1vh;
    padding-right: 1vh;
  }

  .about-section h1 {
    font-size: 1.5em;
  }

  .login-section h2 {
    font-size: 1.5em;
  }

  .about-info-section h1 {
    font-size: 1.5em;
  }

  .icon-item {
    display: flex;
    flex-direction: column;
    align-items: center;
    cursor: pointer;
    transition: transform 0.3s ease, background-color 0.3s ease, box-shadow 0.3s ease;
    padding: 8px 16px 8px 16px;
    border-radius: 10px;
    background-color: var(--mobile-icon-item);
  }

  .profile-row {
    flex-direction: column;
    align-items: center;
    gap: 10px;
    margin-top: -80px;
  }

  .profile-info {
    text-align: center;
    line-height: 12px;
    margin-top: auto;
  }
  .profile-info h2 {
    line-height: 28px;
    text-align: center;
    font-size: 23px;
    margin: 0;
    color: var(--ptext);
  }

  .profile-info p {
    text-align: center;
    margin: 2px 0;
    opacity: 0.7;
    color: var(--ptext);
  }

  .items-filter {
    position: static;   /* remove absolute positioning */
    margin-top: 10px;
    width: 100%;
    display: flex;
    justify-content: center;
    gap: 10px;
    transform: scaleX(0.9);
    margin-bottom: -30px;
  }

  .items-filter label {
    display: none;
  }

  .items-filter label {
    margin: 0;
  }

  .sort {
    width: auto;
  }
}

/* Mobile Responsiveness */
@media (max-width: 600px) {
  /* (Mobile CSS remains the same) */

  .home-hero {
    display: flex;
    flex-direction: column;
    justify-content: flex-start;
    /* text on top */
    align-items: center;
    padding: 20px;
    gap: 20px;
    border-radius: 15px;
    background: linear-gradient(180deg, var(--light-orange) 40%, var(--orangeL1), var(--orange));
    margin-bottom: 10px;
    position: relative;
    overflow: hidden;
    /* hide image overflow */
  }

  .hero-text {
    z-index: 2;
    text-align: center;
  }

  .home-hero h2 {
    font-family: Impact, Haettenschweiler, 'Arial Black', sans-serif;
    font-size: 2.6rem;
    font-weight: 900;
    color: var(--ptext);
    letter-spacing: 3px;
    text-transform: uppercase;
    margin-bottom: 10px;
    line-height: 50px;
  }

  .home-hero p {
    font-size: 14px;
    font-weight: 400;
    color: var(--ptext);
    margin-bottom: 20px;
    line-height: 1.2;
  }

  /* IMAGE section */
  .hero-image {
    position: absolute;
    bottom: -150px;
    width: 330px;
    height: 330px;
    overflow: hidden;
  }

  /* Rotating image */
  .salad-img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transform: rotate(180deg);
    opacity: 40%;
  }

  .modal-container {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.2);
    backdrop-filter: blur(0px);
    display: flex;
    justify-content: center;
    align-items: center;
    z-index: 1000;
    opacity: 0;
    visibility: hidden;
    pointer-events: none;
    transition: transform 0.5s cubic-bezier(0.68, -0.55, 0.27, 1.9), opacity 0.5s ease;
  }

  .window-content {
    max-height: 70vh;
    padding: 50px 20px;
    text-align: center;
    background-color: transparent;
    opacity: 1;
    background-size: 36px 36px;
    background-position: 0 0,18px 18px;
  }

  .home-window-content {
    max-height: 75vh;
    align-items: center;
    background-color: transparent;
    opacity: 1;
    background-size: 36px 36px;
  }

  .modal-window {
    position: relative;
    transform: translateY(-100%) scale(0.2);
    transition: transform 0.5s cubic-bezier(0.4, 0, 0.3, 1),
              opacity 0.5s ease;
    opacity: 0;
  }

  .modal-container.visible .modal-window {
    transform: translateY(0);
    opacity: 1;
  }

  .window-header.handle {
    cursor: default;
  }

  .modal-content {
    max-height: 70vh;
  }

  .restaurant-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(120px, 1fr));
    gap: 14px;
    padding: 0px;
  }

  .restaurant-name {
    font-size: 1.0rem;
  }
}