/* Copied from kitsonomous_v2/styles.css */
*,
*::before,
*::after {
  box-sizing: border-box;
}

:root {
  --scroll: 0;
  /** primary **/
  --ion-color-primary: #2e7d32;
  --ion-color-primary-rgb: 46, 125, 50;
  --ion-color-primary-contrast: #ffffff;
  --ion-color-primary-contrast-rgb: 255, 255, 255;
  --ion-color-primary-shade: #25662a;
  --ion-color-primary-tint: #3fa048;

  --ion-color-secondary: #1976d2;
  --ion-color-secondary-rgb: 25, 118, 210;
  --ion-color-secondary-contrast: #ffffff;
  --ion-color-secondary-contrast-rgb: 255, 255, 255;
  --ion-color-secondary-shade: #135da6;
  --ion-color-secondary-tint: #3290e6;

  --ion-color-tertiary: #e65100;
  --ion-color-tertiary-rgb: 230, 81, 0;
  --ion-color-tertiary-contrast: #ffffff;
  --ion-color-tertiary-contrast-rgb: 255, 255, 255;
  --ion-color-tertiary-shade: #b33f00;
  --ion-color-tertiary-tint: #ff6d1a;

  --ion-color-success: #91c03f;
  --ion-color-success-rgb: 145, 192, 63;
  --ion-color-success-contrast: #000000;
  --ion-color-success-contrast-rgb: 0, 0, 0;
  --ion-color-success-shade: #78a235;
  --ion-color-success-tint: #a8cf63;

  --ion-color-warning: #ffc409;
  --ion-color-warning-rgb: 255, 196, 9;
  --ion-color-warning-contrast: #000000;
  --ion-color-warning-contrast-rgb: 0, 0, 0;
  --ion-color-warning-shade: #e0ac08;
  --ion-color-warning-tint: #ffca22;

  --ion-color-danger: #eb445a;
  --ion-color-danger-rgb: 235, 68, 90;
  --ion-color-danger-contrast: #ffffff;
  --ion-color-danger-contrast-rgb: 255, 255, 255;
  --ion-color-danger-shade: #cf3c4f;
  --ion-color-danger-tint: #ed576b;

  --ion-color-medium: #92949c;
  --ion-color-medium-rgb: 146, 148, 156;
  --ion-color-medium-contrast: #000000;
  --ion-color-medium-contrast-rgb: 0, 0, 0;
  --ion-color-medium-shade: #808289;
  --ion-color-medium-tint: #9d9fa6;

  --ion-color-light: #f4f5f8;
  --ion-color-light-rgb: 244, 245, 248;
  --ion-color-light-contrast: #000000;
  --ion-color-light-contrast-rgb: 0, 0, 0;
  --ion-color-light-shade: #d7d8da;
  --ion-color-light-tint: #f5f6f9;

  --border-radius-1: 0.1rem;
  --border-radius-2: 0.4rem;
  --border-radius-3: 0.8rem;
  --border-radius-4: 1.2rem;

  --card-padding-1: 0.1rem;
  --card-padding-2: 0.4rem;
  --card-padding-3: 0.8rem;

  --box-shadow-1: 0.8rem;
}

body {
  margin: 0;
  color: #1a1a1a;
  background: linear-gradient(135deg, #667eea 0%, #764ba2 25%, #f093fb 50%, #f5576c 75%, #4facfe 100%);
  background-size: 400% 400%;
  animation: gradientShift 15s ease infinite;
  font-size: 16px;
  font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
  min-height: 100vh;
  overflow-x: hidden;
}

@keyframes gradientShift {
  0% { background-position: 0% 50%; }
  50% { background-position: 100% 50%; }
  100% { background-position: 0% 50%; }
}

* {
  margin: 0;
  padding: 0;
  outline: 0;
  appearance: none;
  border: 0;
  text-decoration: none;
  list-style: none;
  box-sizing: border-box;
}

aside {
  display: none;
  position: fixed;
  left: -100%;
  background-color: var(--ion-color-tertiary);
  padding-top: 10vh;
  width: 18rem;
  z-index: 100;
  box-shadow: 0 1rem 3rem rgba(0, 0, 0, 0.15);
  height: 100vh;
  padding-left: 10px;
  animation: showMenu 400ms ease forwards;
}

aside .top {
  display: flex;
  align-items: center;
  justify-content: space-between;
}

aside .close {
  display: inline-block;
  cursor: pointer;
  margin: 10px;
}

aside .sidebar h3 {
  display: inline;
}

aside .sidebar a {
  width: 100%;
  height: 3.4rem;
}

aside .sidebar {
  display: flex;
  flex-direction: column;
  height: 86vh;
  position: relative;
  top: 3rem;
}

aside .sidebar a:active {
  background: var(--colour-light);
  color: var(--ion-color-primary);
  margin-left: 0;
}

aside .sidebar a:active :before {
  content: "";
  width: 6px;
  height: 100%;
  background: var(--ion-color-primary);
}

aside .sidebar a:active span {
  color: var(--ion-color-primary);
  margin-left: calc(1rem - 3px);
}

aside .sidebar a:hover {
  color: var(--ion-color-secondary);
}

aside .sidebar a:hover span {
  margin-left: 1rem;
}

@keyframes showMenu {
  to {
    left: 0;
  }
}

h1 {
  font-size: 100px;
  color: var(--ion-color-tertiary);
}

h2 {
  font-size: 70px;
  color: var(--ion-color-tertiary);
}

h3 {
  /* font-size: 62px; */
  color: var(--ion-color-tertiary);
}

.logo-and-menu-div {
  position: fixed;
  left: 0;
  top: 0;
  z-index: 98;
  width: 100vw;
  --value: min(var(--scroll), 30) * 50 / 30;
  height: calc(75px + 5px - 0.5px * var(--value));
  background: rgba(255, 255, 255, 0.1);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  border-bottom: 1px solid rgba(255, 255, 255, 0.2);
  box-shadow: 0 8px 32px rgba(0, 0, 0, 0.1);
}

.logo {
  position: fixed;
  left: 5px;
  top: 5px;
  z-index: 99;
  --value: min(var(--scroll), 30) * 50 / 30;
  width: calc(200px - 1.3px * var(--value));
  height: calc(75px - 0.5px * var(--value));
}

.menu-bar ul {
  list-style-type: none;
  margin: 0 auto;
  width: 100%;
  padding: 0;
  overflow: hidden;
  text-align: center;
  top: 50%;
}

.menu-bar li {
  display: inline-block;
  margin: 0.5rem;
  cursor: pointer;
  text-decoration: none;
  --value: min(var(--scroll), 30) * 50 / 30;
  font-size: calc(22px - 0.1px * var(--value));
}

.menu-bar li a {
  display: block;
  color: rgba(255, 255, 255, 0.9);
  text-align: center;
  padding: 8px 16px;
  text-decoration: none;
  border-radius: 12px;
  transition: all 0.3s ease;
  font-weight: 500;
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
}

.menu-bar li a:hover {
  background: rgba(255, 255, 255, 0.2);
  color: white;
  transform: translateY(-2px);
  box-shadow: 0 4px 16px rgba(0, 0, 0, 0.1);
}

.burger-menu-div span {
  display: none;
  position: absolute;
  right: 0;
  --value: calc(var(--scroll) / 100 * 30);
  top: calc(20px - 0.85px * var(--value));
  color: var(--ion-color-secondary);
  margin-right: 30px;
  font-size: 45px;
}

.scroll-down-arrow span {
  position: fixed;
  right: 0;
  top: 50%;
  color: var(--ion-color-secondary);
  margin-right: 10px;
  font-size: 60px;
  z-index: 96;
  animation: bounce 1s infinite alternate;
}

@keyframes bounce {
  0%, 20%, 50%, 80%, 100% {
    transform: translateY(0);
  }
  40% {
    transform: translateY(-30px);
  }
  60% {
    transform: translateY(-15px);
  }
}

@keyframes fadeInUp {
  from {
    opacity: 0;
    transform: translateY(30px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

@keyframes slideInLeft {
  from {
    opacity: 0;
    transform: translateX(-50px);
  }
  to {
    opacity: 1;
    transform: translateX(0);
  }
}

@keyframes slideInRight {
  from {
    opacity: 0;
    transform: translateX(50px);
  }
  to {
    opacity: 1;
    transform: translateX(0);
  }
}

@keyframes pulse {
  0% {
    transform: scale(1);
  }
  50% {
    transform: scale(1.05);
  }
  100% {
    transform: scale(1);
  }
}

@keyframes display {
  0% {
    transform: translateX(800px);
    opacity: 0;
  }
  10% {
    transform: translateX(0);
    opacity: 1;
  }
  20% {
    transform: translateX(0);
    opacity: 1;
  }
  30% {
    transform: translateX(-800px);
    opacity: 0;
  }
  100% {
    transform: translateX(-800px);
    opacity: 0;
  }
}

.pic-carousel {
  position: fixed;
  --value: min(var(--scroll), 30) * 50 / 30;
  top: calc(75px + 5px - 0.5px * var(--value));
  width: 100vw;
  height: 150px;
  --value: calc(1 - var(--scroll) / 100 * 0.9);
  opacity: var(--value);
  z-index: -2;
}

.pic-carousel > img {
  position: absolute;
  top: 0;
  --value: var(--scroll) / 100 * 25;
  left: calc(75% - 1% * var(--value) - 400px);
  opacity: 0;
  animation: display 30s infinite;
}

img:nth-child(1) { animation-delay: 3s; }
img:nth-child(2) { animation-delay: 6s; }
img:nth-child(3) { animation-delay: 9s; }
img:nth-child(4) { animation-delay: 12s; }
img:nth-child(5) { animation-delay: 15s; }
img:nth-child(6) { animation-delay: 18s; }
img:nth-child(7) { animation-delay: 21s; }
img:nth-child(8) { animation-delay: 24s; }
img:nth-child(9) { animation-delay: 27s; }
img:nth-child(10) { animation-delay: 30s; }

.full-screen-section {
  height: 90vh;
  text-align: center;
  padding: 2rem;
  position: relative;
  display: flex;
  align-items: center;
  justify-content: center;
}

.services-products-section {
  text-align: center;
  padding: 2rem;
  position: relative;
  margin: 2rem 0;
  display: flex;
  align-items: center;
  justify-content: center;
}

.full-screen-section p { color: var(--ion-color-secondary); }
.services-products-section p { color: var(--ion-color-secondary); }
.services-products-section div { background-color: var(--ion-color-secondary-shade); }
.services-products-section h3 { padding: 0.9rem; }

.services-products-page-content-top-margin {
  --value: min(var(--scroll), 30) * 50 / 30;
  height: calc(75px + 5px - 0.5px * var(--value));
}

.top-section .left,
.top-section .right {
  flex-basis: 0;
  flex-grow: 1;
  padding: 1rem;
  padding-left: 3rem;
}

.top-section {
  display: flex;
  text-align: center;
  padding: 0;
}

.top-section .left {
  background-color: rgb(248 250 249 / var(--background-opacity));
}

.top-section .right {
  background: linear-gradient(210.65deg, rgb(152 157 157 / var(--background-opacity)) 0%, rgb(189 194 194 / var(--background-opacity)) 100%);
  opacity: 0;
}

.imgs > .top-section-img {
  --value: min(var(--scroll), 30) * 50 / 30;
  width: calc(50vw + 1vw * var(--value));
  transform: translateY(calc(50% - 1% * var(--value)));
}

@media (width <= 1000px) {
  .burger-menu-div span {
    display: block;
    position: absolute;
    right: 0;
    --value: calc(var(--scroll) / 100 * 30);
    top: calc(30px - 0.85px * var(--value));
    color: var(--ion-color-secondary);
    margin-right: 30px;
    font-size: 45px;
    cursor: pointer;
  }

  aside {
    display: block;
    position: fixed;
    left: -100%;
    background-color: var(--ion-color-tertiary);
    padding-top: 10vh;
    width: 18rem;
    z-index: 100;
    box-shadow: 0 1rem 3rem rgba(0, 0, 0, 0.15);
    height: 100vh;
    padding-left: 10px;
    display: none;
    animation: showMenu 400ms ease forwards;
  }

  aside .top { display: flex; align-items: center; justify-content: space-between; }
  aside .close { display: inline-block; cursor: pointer; margin: 10px; }
  aside .sidebar h3 { display: inline; }
  aside .sidebar a { width: 100%; height: 3.4rem; }
  aside .sidebar { display: flex; flex-direction: column; height: 86vh; position: relative; top: 3rem; }
  aside .sidebar a:active { background: var(--ion-color-light); color: var(--ion-color-primary); margin-left: 0; }
  aside .sidebar a { color: var(--ion-color-danger-contrast); }
  aside .sidebar a:active :before { content: ""; width: 6px; height: 100%; background: var(--ion-color-primary); }
  aside .sidebar a:active span { color: var(--ion-color-primary); margin-left: calc(1rem - 3px); }
  aside .sidebar a:hover { color: var(--ion-color-secondary); }
  aside .sidebar a:hover span { margin-left: 1rem; }
  @keyframes showMenu { to { left: 0; } }
  .pic-carousel { opacity: 1; }
  .top-section .right { display: none; }
  .top-section .left { text-align: center; }
  .menu-bar ul { display: none; }
  h1 { font-size: 90px; color: var(--ion-color-tertiary); }
  h2 { font-size: 62px; color: var(--ion-color-tertiary); }
  h3 { color: var(--ion-color-tertiary); }
  .imgs > .top-section-img { width: 100vw; }
}

.top-section { position: sticky; top: 75px; translate: 0 calc(-1% * (max(var(--scroll), 25) - 25) * 100 / 75); --background-opacity: calc(100% - 1% * min(var(--scroll), 30) * 100 / 30); }
.first-main-section { padding-top: 10vh; }
.imgs > * { position: fixed; width: 100vw; bottom: 0; z-index: -1; translate: 0 100%; transition: translate 250ms ease-in-out; }
.imgs > .show { translate: 0 0; }
[data-img-to-show] { position: absolute; top: 20%; }

/* Responsive map wrapper */
.responsive-map {
  position: relative;
  padding-bottom: 56.25%;
  height: 0;
  overflow: hidden;
}

.responsive-map iframe {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  border: 0;
}

/* Visually hidden utility */
.visually-hidden {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}

/* Slide-out menu improvements */
aside { transition: left 250ms ease; }
aside.open { left: 0; }
.backdrop { position: fixed; inset: 0; background: rgba(0,0,0,.4); opacity: 0; pointer-events: none; transition: opacity 200ms ease; z-index: 99; }
body.side-open .backdrop { opacity: 1; pointer-events: all; }


