@import url("https://fonts.googleapis.com/css2?family=Roboto+Condensed:ital,wght@0,100..900;1,100..900&family=Roboto+Mono:ital,wght@0,100..700;1,100..700&display=swap");

:root {
  --Text-Color: #f1efec;
  --color-1: #3c467b;
  --color-2: #50589c;
  --color-3: #636ccb;
  --blue-accent-light: #5e77d3;
  --color-5: #16161d;
  --color-7: #d4c9be;
  --color-8: #123458;
  --color-9: #030303;
}

* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

/* Fonts */
@font-face {
  font-family: "Dublin-Bold";
  src: url("../fonts/Dublin-Bold.woff2") format("woff2");
  font-weight: 400;
  font-style: normal;
}

@font-face {
  font-family: "Dublin-Thin";
  src: url("../fonts/Dublin-Thin.woff2") format("woff2");
  font-weight: 100;
  font-style: normal;
}

/* ========================= */
/* MENU ICON + SIDE MENU     */
/* ========================= */
.menu-icon {
  font-size: 42px;
  cursor: pointer;
  color: white;
  transition: all 0.4s ease-in-out;
  scale: 1;
}

.menu-icon.hidden {
  display: none;
}

.menu-icon:hover {
  scale: 1.1;
  color: var(--blue-accent-light);
}

/* Slide-in menu */
.side-menu {
  position: fixed;
  top: 0;
  right: -400px;
  width: 400px;
  height: 100vh;
  background-color: #1e1e26;
  padding: 40px 20px;
  transition: right 0.3s ease-in-out;
  z-index: 9999999;
  display: flex;
  flex-direction: column;
}

.side-menu.active {
  right: 0;
}

.close-icon {
  align-self: flex-end;
  font-size: 40px;
  cursor: pointer;
  color: white;
  margin-bottom: 30px;
}

#closeBtn {
  transition: transform 1s ease-in-out;
  transform: rotate(0deg);
  display: block;
  margin-bottom: 50px;
}

#closeBtn:hover {
  scale: 1.2;
  transition: all 1s ease-in-out;
  color: var(--blue-accent-light);
  transform: rotate(180deg);
}

.side-menu-list {
  list-style: none;
  display: flex;
  align-self: flex-end;
  flex-direction: column;
  gap: 30px;
  scale: 1;
  transition: all 1s ease-in-out;
  font-family: "Dublin-Thin";
}

/* side-menu fade-in */
.side-menu-list li {
  opacity: 0;
  transform: translateX(20px);
}

.side-menu.show-items .side-menu-list li {
  animation: fadeInRight 1s forwards ease;
}

.side-menu.show-items .side-menu-list li:nth-child(1) {
  animation-delay: 0.1s;
}
.side-menu.show-items .side-menu-list li:nth-child(2) {
  animation-delay: 0.2s;
}
.side-menu.show-items .side-menu-list li:nth-child(3) {
  animation-delay: 0.3s;
}
.side-menu.show-items .side-menu-list li:nth-child(4) {
  animation-delay: 0.4s;
}
.side-menu.show-items .side-menu-list li:nth-child(5) {
  animation-delay: 0.5s;
}
.side-menu.show-items .side-menu-list li:nth-child(6) {
  animation-delay: 0.6s;
}
.side-menu.show-items .side-menu-list li:nth-child(7) {
  animation-delay: 0.7s;
}

.side-menu-list li {
  scale: 1;
  transition: all 0.9s ease-in-out;
}

.side-menu-list li:hover {
  scale: 1.1;
  transition: all 0.6s ease-in-out;
}

.side-menu ul li a {
  color: white;
  text-decoration: none;
  font-size: 2rem;
  transition: opacity 0.2s;
}

.side-menu ul li a:hover {
  color: var(--blue-accent-light);
}

/* social icons styles */
.social-icons {
  display: flex;
  flex-direction: row;
  position: fixed;
  bottom: 0;
  gap: 40px;
  margin-bottom: 40px;
  list-style: none;
  align-self: flex-end;
}

.social-icons i {
  font-size: 30px;
  transition: all 0.4s ease-in-out;
  scale: 1;
}

.social-icons i:hover {
  color: var(--blue-accent-light);
  scale: 1.1;
  transition: all 0.5s ease-in;
}

/* ========================= */
/* HEADER                    */
/* ========================= */
header {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;

  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-top: 10px;
  padding: 5px 40px;
  z-index: 9999;
  pointer-events: auto;
}

header a {
  display: flex;
  align-items: center;
  gap: 14px;
  text-decoration: none;
  color: var(--Text-Color);
}

header a span {
  font-family: "Roboto-Condensed", sans-serif;
  font-size: 1.4rem;
  letter-spacing: 2px;
}

header img {
  width: 30px;
  flex-shrink: 0;
  display: block;
}

/* =========================================================
   TABLETS (iPads etc) – BOTH ORIENTATIONS
   769px–1024px width
   Vertical stacked layout, big typography
========================================================= */
@media (max-width: 1024px) and (orientation: portrait) {
  header {
    padding: 5px 20px;
  }

  header img {
    width: 30px;
  }

  .menu-icon {
    font-size: 36px;
  }

  .side-menu {
    width: 100%;
    max-width: 320px;
  }

  .social-icons {
    gap: 30px;
  }
  .logo {
    width: 35px;
  }
}

/* =========================================================
   PHONES – PORTRAIT (iPhone / Samsung S & A series)
   up to 768px width
========================================================= */
@media (max-width: 768px) and (orientation: portrait) {
  .social-icons {
    gap: 30px;
  }
  .logo {
    width: 20px;
  }
}

/* =========================================================
   PHONES – LANDSCAPE (iPhone / Samsung S & A series)
   up to 768px width
========================================================= */
/* =========================================================
   PHONES – LANDSCAPE (fix side-menu layout)
   up to 768px width
========================================================= */
@media (max-width: 768px) and (orientation: landscape) {
  .side-menu {
    width: 100%;
    max-width: 280px;
    padding: 12px 16px 20px; /* ↓ move content upward */
    display: flex;
    flex-direction: column;
    justify-content: flex-start; /* <<< important */
  }

  .close-icon {
    font-size: 30px;
    margin-bottom: 14px; /* tighter */
  }

  .side-menu-list {
    gap: 14px;
  }

  .side-menu ul li a {
    font-size: 1.3rem;
  }

  .social-icons {
    position: static;
    align-self: flex-end;
    margin-top: 16px;
    gap: 18px;
  }

  .social-icons i {
    font-size: 24px;
  }
}

/* =========================================================
   SMALL PHONES – PORTRAIT (older iPhones, small Androids)
   up to 480px width
========================================================= */
@media (max-width: 480px) and (orientation: portrait) {
  header a span {
    font-size: 1.2rem;
  }

  .side-menu ul li a {
    font-size: 2rem;
  }
}

/* =========================================================
   SMALL PHONES – LANDSCAPE
   up to 480px width
========================================================= */

/* side-menu animation */
@keyframes fadeInRight {
  from {
    opacity: 0;
    transform: translateX(10px);
  }
  to {
    opacity: 1;
    transform: translateX(0);
  }
}
