/* ---------------------- root & basics ---------------------- */

:root {
  --header-h: 80px;
  --footer-h: 90px;

  --bg-color: #272727;
  --accent-color: #36aeea;
  --text-lightGrey-color: #bebebe;
  --keywords-default-color: #f4f1ec;
  --keywords-hover-color: #0eebf5;
  --keywords-strike-color: #cfff04;
  --menu-dim: #bebebe;
  --cls-btn-color: #f4f1ec;
  --menu-hover-color: #d6d6d6;
  --menu-bg-color: #1d1d1d;
}

* {
  box-sizing: border-box;
}

body {
  font-family: 'Cuprum', sans-serif;
  font-size: 15px;
  line-height: 1.5;
  padding: 0;
  margin: 0;
  padding-bottom: 90px;
  width: 100%;
  height: 100%;
  background-color: var(--bg-color);
}

.hidden {
  display: none;
}

.visible-mobile {
  display: none;
}

@media screen and (max-width: 480px) {
  .visible-mobile {
    display: block;
  }

  .hidden-mobile {
    display: none;
  }

  body {
    display: flex;
    flex-direction: column;
  }
}

/* ---------------------- header ---------------------- */

header {
  background-color: var(--bg-color);
  min-height: 80px;
}

header::after {
  content: '';
  display: block;
  width: 85%;
  height: 80px;

  -webkit-box-shadow: 0 0 20px rgba(0, 0, 0, 0.5);
  -moz-box-shadow: 0 0 20px rgba(0, 0, 0, 0.5);
  box-shadow: 0 0 20px rgba(0, 0, 0, 0.5);
  top: 0%;
  bottom: 0;
  left: 10px;
  right: 10px;
  -moz-border-radius: 100px / 10px;
  border-radius: 100px / 10px;

  position: absolute;
  bottom: 0;
  left: 10%;
  z-index: -1;
}

nav {
  padding: 8px;
}

/* ---------------------- logo ---------------------- */

.logo {
  float: left;
  padding: 8px;
  margin-left: 9%;
  margin-top: 8px;
  /* position: relative; */

  animation: logo-entry 1.2s cubic-bezier(.05, .7, .2, 1) .2s both;
}

.logo a {
  color: var(--accent-color);
  text-transform: uppercase;
  font-size: 32px;
  text-decoration: none;
}

@keyframes logo-entry {
  from {
    transform: translateX(-40px);
    letter-spacing: 5px;
    opacity: 0;
  }

  to {
    transform: translateX(0);
    letter-spacing: 2px;
    opacity: 100%;
  }
}

@media screen and (max-width: 864px) {
  .logo {
    padding: 2px;
    position: absolute;
  }
}

@media screen and (max-width: 480px) {
  .logo {
    margin-left: 5%;
  }
}

/* ---------------------- menu text ---------------------- */

nav ul {
  float: right;
  margin-right: 5%;
}

nav ul li {
  display: inline-block;
  float: left;
  padding: 10px 0 0 40px;
}

nav ul li a {
  color: var(--accent-color);
  text-decoration: none;
  text-transform: capitalize;
  font-size: 18px;
  letter-spacing: 1px;
  transition: all .3s ease;
  animation: menu-entry 1.2s cubic-bezier(.05, .7, .2, 1) forwards;
}

.selected {
  text-decoration: underline 2px;
  text-underline-offset: 0.4em;
}

@keyframes menu-entry {
  from {
    letter-spacing: 0.2em;
    opacity: 0;
    scale: 100%
  }

  to {
    letter-spacing: 1px;
    opacity: 100%;
    scale: 100%;
  }
}

nav ul li a:hover {
  color: var(--menu-hover-color);
}

/* ---------------------- hamburger menu ---------------------- */

@media screen and (max-width: 864px) {
  .nav-wrapper {
    position: fixed;
    inset: 0;
    background: var(--menu-bg-color);
    transform: translateX(100%);
    z-index: 2;
    opacity: 0;
    pointer-events: none;
    visibility: hidden;
    transition: transform .60s cubic-bezier(0.78, 0.18, 0.12, 1.02), opacity .30s ease .30s, visibility 0s linear .60s;
    display: flex;
    align-items: center;
    justify-content: right;
  }

  .nav-wrapper ul {
    display: flex;
    flex-direction: column;
    align-items: flex-end;
    gap: 10px;

    list-style: none;
    margin: 0;
    padding: 0;
    margin-right: 30px;
  }

  .nav-wrapper ul li {
    overflow: hidden;
    line-height: 1.2;
    margin: 0.35rem 0;
    text-align: right;
    display: block;
    float: none !important;
    width: auto;
  }

  .nav-wrapper ul li:not(:first-child) {
    margin-left: 0;
  }

  .nav-wrapper ul li a {
    display: inline-block;
    transform: translateY(110%) translateX(16%) scaleY(.85) scaleX(.90);
    transform-origin: bottom right;
    opacity: 0;
    transition:
      transform .7s cubic-bezier(0.78, 0.18, 0.12, 1.02),
      opacity .3s ease;
    will-change: transform, opacity;
    color: var(--cls-btn-color);
  }

  .nav-btn {
    position: absolute;
    right: 15px;
    top: 15px;
    display: block;
    width: 48px;
    height: 48px;
    cursor: pointer;
    z-index: 3;
    border-radius: 50%;
    animation: hamburger-entry 1s cubic-bezier(.05, .7, .2, 1) .2s both;
  }

  .nav-btn i {
    display: block;
    position: absolute;
    opacity: 1;
    height: 2px;
    width: 24px;
    background: var(--accent-color);
    border-radius: 2px;
    left: 10px;

    -webkit-transform: rotate(0deg);
    -moz-transform: rotate(0deg);
    -o-transform: rotate(0deg);
    transform: rotate(0deg);
    -webkit-transition: .25s ease-in-out;
    -moz-transition: .25s ease-in-out;
    -o-transition: .25s ease-in-out;
    transition: .25s ease-in-out;
  }

  .nav-btn i:nth-child(1) {
    top: 16px;
    width: 24px;
  }

  .nav-btn i:nth-child(2) {
    top: 24px;
    width: 20px;
  }

  .nav-btn i:nth-child(3) {
    top: 32px;
    width: 24px;
  }

  #nav:checked+.nav-btn i:nth-child(1) {
    top: 24px;
    background: var(--cls-btn-color);
    -webkit-transform: rotate(135deg);
    -moz-transform: rotate(135deg);
    -o-transform: rotate(135deg);
    transform: rotate(135deg);
  }

  #nav:checked+.nav-btn i:nth-child(2) {
    opacity: 0;
    left: -60px;
    background: var(--keywords-hover-color);
  }

  #nav:checked+.nav-btn i:nth-child(3) {
    top: 24px;
    background: var(--cls-btn-color);
    -webkit-transform: rotate(-135deg);
    -moz-transform: rotate(-135deg);
    -o-transform: rotate(-135deg);
    transform: rotate(-135deg);
  }

  #nav:checked~.nav-wrapper {
    transform: translateX(0);
    pointer-events: auto;
    visibility: visible;
    opacity: 1;
    transition:
      transform .60s cubic-bezier(0.78, 0.18, 0.12, 1.02),
      visibility 0s;
  }

  #nav:checked~.nav-wrapper {
    touch-action: none;
  }

  #nav:checked~.nav-wrapper {
    overscroll-behavior: contain;
  }

  #nav:checked~.nav-wrapper ul li a {
    transform: translateY(0) scaleY(1);
    opacity: 1;
  }

  #nav:checked~.nav-wrapper ul li:nth-child(1) a {
    transition-delay: .16s;
  }

  #nav:checked~.nav-wrapper ul li:nth-child(2) a {
    transition-delay: .20s;
  }

  #nav:checked~.nav-wrapper ul li:nth-child(3) a {
    transition-delay: .24s;
  }

  #nav:checked~.nav-wrapper ul li:nth-child(4) a {
    transition-delay: .28s;
  }

  #nav:not(:checked)~.nav-wrapper ul li a {
    transition:
      transform .50s cubic-bezier(0.78, 0.18, 0.12, 1.02),
      opacity .25s ease;
  }

  #nav:not(:checked)~.nav-wrapper ul li:nth-child(1) a {
    transition-delay: .14s;
  }

  #nav:not(:checked)~.nav-wrapper ul li:nth-child(2) a {
    transition-delay: .10s;
  }

  #nav:not(:checked)~.nav-wrapper ul li:nth-child(3) a {
    transition-delay: .06s;
  }

  #nav:not(:checked)~.nav-wrapper ul li:nth-child(4) a {
    transition-delay: .02s;
  }
}

@keyframes hamburger-entry {
  from {
    transform: translateX(20px);
    opacity: 0;
  }

  to {
    transform: translateX(0);
    opacity: 1;
  }
}

/* ---------------------- body ---------------------- */

.container {
  margin: 0 auto;
  flex: 1;
  display: flex;
  justify-content: center;
  align-items: center;
  text-align: center;
  min-height: calc(100vh - var(--header-h) - var(--footer-h));
}

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

.container,
.container-text {
  position: relative;
  z-index: 1;
}

.container-text[data-protect] {
  position: relative;
  background: transparent;
  padding: 20px;
}

.container-text[data-protect]::before {
  content: "";
  position: absolute;
  inset: 0;
  border-radius: 20px;
  z-index: -1;
  background: var(--bg-color);
  mask: radial-gradient(closest-side, #fff 85%, #fff8 95%, #0000 100%);
  -webkit-mask: radial-gradient(140% 110% at 50% 50%, rgba(255, 255, 255, 1) 90%, rgba(255, 255, 255, 0.6) 95%, rgba(255, 255, 255, 0.2) 97%, rgba(255, 255, 255, 0) 100%) 84%, rgba(255, 255, 255, 0.6) 92%, rgba(255, 255, 255, 0.2) 97%, rgba(255, 255, 255, 0) 100%) 76%, rgba(255, 255, 255, 0.6) 90%, rgba(255, 255, 255, 0.25) 96%, rgba(255, 255, 255, 0) 100%) 76%, rgba(255, 255, 255, 0.6) 90%, rgba(255, 255, 255, 0.25) 96%, rgba(255, 255, 255, 0) 100%);
}

@supports not ((mask: radial-gradient(white, black)) or (-webkit-mask: radial-gradient(white, black))) {

  .container-text[data-protect]::before,
  #sticky-footer::before {
    mask: none;
    -webkit-mask: none;
  }

  .container-text[data-protect]::before {
    background: var(--bg-color);
  }

  #sticky-footer::before {
    background: var(--bg-color);
  }
}

#bg-particles {
  position: fixed;
  inset: 0;
  width: 100%;
  height: 100%;
  display: block;
  z-index: -1;
}

h1 {
  font-size: 20px;
  font-weight: 100;
  color: #ffffff;
  line-height: 1.8;
}

.small-break {
  display: none;
}

@media screen and (max-width: 432px) {
  .small-break {
    display: block;
  }
}

/* ---------------------- footer area ---------------------- */

footer {
  padding-bottom: 20px;
  position: relative;
  z-index: 1;
}

@media screen and (max-width: 480px) {
  footer {
    margin-top: auto;
    text-align: center;
  }
}

.container-contact {
  width: 80%;
  margin: 0 auto;
  text-align: center;
}

.ig {
  width: 36px;
  display: inline-block;
  float: left;
  margin-top: 0;
  margin-left: 12px;
  margin-right: 12px;
}

@media screen and (max-width: 432px) {
  .ig {
    width: 30px;
    margin-left: 8px;
    margin-right: 8px;
    margin-bottom: 5px;
  }
}

#sticky-footer h2 {
  font-size: 20px;
  font-weight: 100;
  color: #818181;
  line-height: 1em;
  margin: 0;
  flex: 0 0 auto;
}

.container-contact li {
  display: inline-block;
  margin: 0 0px;
  vertical-align: middle;
}

.container-contact img {
  max-width: 100%;
  height: auto;
}

#sticky-footer {
  position: fixed !important;
  left: 0;
  right: 0;
  bottom: 0;
  z-index: 3;
}

#sticky-footer::before {
  content: "";
  position: absolute;
  inset: 0;
  z-index: -1;
  background: var(--bg-color);
  mask: linear-gradient(to top, #fff 60%, #fff8 78%, #0000 100%);
  -webkit-mask: linear-gradient(to top, #fff 60%, #fff8 78%, #0000 100%);
  border-radius: 16px 16px 0 0;
}

#sticky-footer .container-contact {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 12px 16px;
  flex-wrap: wrap;
  text-align: center;
}

#sticky-footer img {
  width: 28px;
  height: 28px;
}

@media (hover: hover) and (pointer: fine) {
  .icon-list a img.ig {
    transition: filter 0.2s ease, transform 0.2s ease;
  }

  .icon-list a:hover img.ig {
    filter: brightness(1.4);
    /* 1.2–1.6 looks good */
    /* transform: translateY(-2px); */
    transform: scale(1.05);
  }
}

/* Hide feathered safe-area overlays while the mobile menu is open */
body.menu-open .container-text[data-protect]::before,
body.menu-open footer::before,
body.menu-transition .container-text[data-protect]::before,
body.menu-transition footer::before {
  opacity: 0;
}


/* Hide footer (icons + safe area) during menu animations to avoid flashes */
body.menu-open footer,
body.menu-transition footer {
  opacity: 0;
  pointer-events: none;
}

body.menu-open footer::before,
body.menu-transition footer::before {
  opacity: 0;
}


#sticky-footer .container-contact {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 12px 16px;
  flex-wrap: wrap;
  text-align: center;
}

#sticky-footer h2 {
  margin: 0;
  flex: 0 0 auto;
}

#sticky-footer .footer_icons {
  flex: 0 0 auto;
}

#sticky-footer .icon-list {
  display: flex;
  list-style: none;
  padding: 0;
  margin: 0;
  gap: 16px;
  justify-content: center;
  align-items: center;
}

#sticky-footer .icon-list li {
  display: inline-flex;
}

/* Force two centered lines on narrow widths */
@media (max-width: 560px) {
  #sticky-footer h2,
  #sticky-footer .footer_icons {
    flex-basis: 100%;
  }
}

@keyframes iconIn {
  from {
    opacity: 0;
    transform: translateX(8px) scale(0.98);
  }

  to {
    opacity: 1;
    transform: none;
  }
}

#sticky-footer.icons-seq .icon-list li {
  opacity: 0;
  animation: iconIn 300ms ease-out both;
}

#sticky-footer.icons-seq .icon-list li:nth-child(1) {
  animation-delay: 100ms;
}

#sticky-footer.icons-seq .icon-list li:nth-child(2) {
  animation-delay: 150ms;
}

#sticky-footer.icons-seq .icon-list li:nth-child(3) {
  animation-delay: 230ms;
}

#sticky-footer.icons-seq .icon-list li:nth-child(4) {
  animation-delay: 350ms;
}

@media (prefers-reduced-motion: reduce) {
  #sticky-footer.icons-seq .icon-list li {
    animation: none;
    opacity: 1;
    transform: none;
  }
}