@import url('https://fonts.googleapis.com/css2?family=Kaisei+Decol&family=Roboto:ital,wght@0,100;0,300;0,400;0,500;0,700;0,900;1,100;1,300;1,400;1,500;1,700;1,900&display=swap');

/* ------------------------- */
/* Base theme + typography   */
/* ------------------------- */

html, body { margin: 0; padding: 0; }

body {
  font-family: 'Roboto', sans-serif;
  background-image: url("../gallery/background_image.png");
  background-repeat: no-repeat;
  background-position: center top;
  background-size: cover;
  background-attachment: scroll;
  background-color: white;
  color: black;
  margin: 0;
  min-height: 100svh;
}

h1, h4, h3 {
  font-family: "Kaisei Decol", serif;
}

/* ----------------------------------------- */
/* Hero / Quote region (landing top section) */
/* ----------------------------------------- */

#mega { font-size: 52px; }

#author {
  text-align: right;
  padding-right: 35%;
  margin-top: -35px;
}

#small {
  font-size: 12px;
  font-weight: 1000;
  margin-bottom: -45px;
  color: #C7B273;
}

.qp {
  display: flex;
  flex-direction: row;
  justify-content: space-between;
  width: 90%;
  margin: 0 auto;
  padding-top: calc(var(--topbar-h) + var(--nav-h) + 4px);
}

.quote {
  width: 50%;
  max-height: 100vh;
  display: inline-block;
}

.pershkrim {
  font-weight: 150;
  text-align: justify;
  width: 50%;
  max-height: 100vh;
  display: inline-block;
}

/* ----------------------------------------- */
/* Service / Information boxes (glass cards) */
/* ----------------------------------------- */

.container {
  display: flex;
  flex-direction: row;
  justify-content: space-between;
  width: 90%;
  padding-top: 40px;
  margin: 0 auto;
  gap: 24px;
}

/* Glassy cards */
.boxes {
  width: 30%;
  max-height: 100vh;
  position: relative;
  display: inline-block;
  border-radius: clamp(18px, 3vw, 36px);
  background: linear-gradient(180deg,
              rgba(255,255,255,0.22) 0%,
              rgba(255,255,255,0.28) 100%);
  backdrop-filter: blur(14px) saturate(180%);
  -webkit-backdrop-filter: blur(14px) saturate(180%);
  border: 1px solid rgba(255,255,255,0.35);
  box-shadow:
    0 8px 28px rgba(0, 0, 0, 0.10),
    inset 0 0 0.5px rgba(255, 255, 255, 0.45);
  overflow: hidden;
  transform: translateY(0) scale(1);
  transition:
    transform 260ms ease,
    box-shadow 260ms ease,
    backdrop-filter 260ms ease,
    -webkit-backdrop-filter 260ms ease;
}

/* Card glare sheen */
.boxes::before {
  content: "";
  position: absolute;
  inset: 0;
  pointer-events: none;
  background: linear-gradient(120deg,
              rgba(255,255,255,0.10) 0%,
              rgba(255,255,255,0.22) 25%,
              rgba(255,255,255,0.06) 60%,
              rgba(255,255,255,0.00) 100%);
  transform: translateX(-40%);
  transition: transform 600ms ease, opacity 300ms ease;
  opacity: 0.75;
}

/* Hover: lift + stronger glass */
.boxes:hover {
  transform: translateY(-6px) scale(1.02);
  backdrop-filter: blur(18px) saturate(190%);
  -webkit-backdrop-filter: blur(18px) saturate(190%);
  box-shadow:
    0 14px 40px rgba(0, 0, 0, 0.16),
    inset 0 0 0.5px rgba(255, 255, 255, 0.50);
}
.boxes:hover::before {
  transform: translateX(15%);
  opacity: 0.9;
}

.cont {
  font-weight: 150;
  text-align: left;
  padding: 30px 40px 60px 40px;
}

/* ------------------------ */
/* Responsive adjustments   */
/* ------------------------ */

@media (max-width: 900px) {
  .qp {
    padding-top: calc(var(--topbar-h) + var(--nav-h) + 2px);
  }
}

@media (max-width: 650px) {
  /* Remove background for mobile clarity */
  body {
    background: white;
  }

  .container {
    flex-direction: column;
    width: 90%;
    padding-top: 30px;
    margin: 0 auto;
    gap: 16px;
  }

  .boxes {
    width: 100%;
    margin-bottom: 25px;
  }

  /* Tighter hero padding on mobile */
  .qp {
    flex-direction: column;
    width: 90%;
    margin: 0 auto;
    padding-top: calc(var(--nav-h) + 4px);
  }

  .quote, .pershkrim {
    width: 100%;
  }
}

/* Anchor offset to clear sticky navbar */
#sherbimet,
#rreth-nesh,
#tarifat {
  scroll-margin-top: calc(var(--nav-h) + var(--topbar-h) + 20px);
}

/* Reduced motion respect layer */
@media (prefers-reduced-motion: reduce) {
  .boxes, .boxes::before { transition: none; }
}
