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

html,
body {
  height: 100%;
  font-family: "Figtree", system-ui, -apple-system, BlinkMacSystemFont,
    sans-serif;
}

/* Loading Screen */
.loading-screen {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100vh;
  background: #fbfcfc;
  padding: 40px;
  z-index: 2000;
  transition: opacity 0.5s ease, visibility 0.5s ease;
}

.loading-screen.hidden {
  opacity: 0;
  visibility: hidden;
  pointer-events: none;
}

.loading-center {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
}

.loading-bottom {
  position: absolute;
  bottom: 40px;
  left: 0;
  right: 0;
  width: 100%;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 12px;
  font-size: 14px;
  color: #b0b0b0;
}

.loading-dots {
  display: inline-flex;
  align-items: center;
  gap: 6px;
}

.loading-dots span {
  width: 8px;
  height: 8px;
  background-color: #000000;
  border-radius: 50%;
  display: inline-block;
  animation: dot-flashing 1.5s infinite linear both;
}

.loading-dots span:nth-child(1) {
  animation-delay: -0.3s;
}

.loading-dots span:nth-child(2) {
  animation-delay: -0.2s;
}

.loading-dots span:nth-child(3) {
  animation-delay: 0s;
}

@keyframes dot-flashing {
  0% {
    background-color: #000000;
  }
  50%,
  100% {
    background-color: rgba(0, 0, 0, 0.2);
  }
}

.loading-text {
  color: #000000;
  font-size: 16px;
}

/* Hero Section */
.hero-section {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100vh;
  z-index: 1000;
  transition: opacity 0.5s ease, visibility 0.5s ease;
  overflow: hidden;
}

.hero-section img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center;
}

.hero-section.hidden {
  opacity: 0;
  visibility: hidden;
  pointer-events: none;
}

.hero-content {
  position: absolute;
  top: 0;
  bottom: 0;
  left: 0;
  right: 0;
  margin: auto;
  text-align: center;
  z-index: 1001;
  padding: 40px 20px;
  width: fit-content;
  height: fit-content;
}

.hero-title {
  font-size: 56px;
  font-weight: 700;
  color: #ffffff;
  margin-bottom: 0;
  letter-spacing: 0;
  text-shadow: 2px 2px 8px rgba(0, 0, 0, 0.5), 0 0 20px rgba(0, 0, 0, 0.3);
}

.start-tour-btn {
  position: absolute;
  bottom: 100px;
  left: 0;
  right: 0;
  margin: 0 auto;
  width: fit-content;
  background: #006ca5;
  color: #ffffff;
  border: none;
  padding: 16px 72px;
  font-size: 20px;
  font-weight: 600;
  border-radius: 8px;
  cursor: pointer;
  transition: background 0.3s ease, transform 0.2s ease;
  text-transform: none;
  letter-spacing: 0;
  z-index: 1001;
}

.start-tour-btn:hover {
  background: #2c5b77ff;
}

/* Sidebar hidden state */
aside.hidden {
  display: none;
}

/* Sidebar */
aside {
  width: 320px;
  background: #0e1726ff;
  color: #fff;
  overflow: hidden;
  display: flex;
  flex-direction: column;
  height: 100vh;
  position: fixed;
  top: 0;
  left: 0;
  z-index: 100;
  transition: height 0.3s ease;
}

aside.collapsed {
  height: auto;
  background: transparent;
}

/* Sidebar header */
.sidebar-header {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 20px 24px;
  border-bottom: 1px solid rgba(255, 255, 255, 0.1);
  min-height: 80px;
  width: 320px;
  box-sizing: border-box;
  background: #000000;
  flex-shrink: 0;
}

#sidebar-logo {
  width: 60%;
  object-fit: contain;
  object-position: center;
}

aside.collapsed .sidebar-header {
  border-bottom: none;
}

/* Hamburger Icon Styles */
#nav-icon {
  width: 32px;
  height: 25px;
  position: relative;
  cursor: pointer;
  transform: rotate(0deg);
  transition: 0.3s ease-in-out;
  flex-shrink: 0;
}

#nav-icon span {
  display: block;
  position: absolute;
  height: 3px;
  width: 100%;
  background: #fff;
  border-radius: 3px;
  opacity: 1;
  left: 0;
  transform: rotate(0deg);
  transition: 0.25s ease-in-out;
}

#nav-icon span:nth-child(1) {
  top: 0px;
}

#nav-icon span:nth-child(2),
#nav-icon span:nth-child(3) {
  top: 10px;
}

#nav-icon span:nth-child(4) {
  top: 20px;
}

#nav-icon.open span:nth-child(1) {
  top: 18px;
  width: 0%;
  left: 50%;
}

#nav-icon.open span:nth-child(2) {
  -webkit-transform: rotate(45deg);
  -moz-transform: rotate(45deg);
  -o-transform: rotate(45deg);
  transform: rotate(45deg);
}

#nav-icon.open span:nth-child(3) {
  -webkit-transform: rotate(-45deg);
  -moz-transform: rotate(-45deg);
  -o-transform: rotate(-45deg);
  transform: rotate(-45deg);
}

#nav-icon.open span:nth-child(4) {
  top: 18px;
  width: 0%;
  left: 50%;
}

.logo-container {
  display: flex;
  align-items: center;
  gap: 12px;
  flex: 1;
  opacity: 1;
  transition: opacity 0.3s ease;
}

/* Menu */
.menu {
  display: flex;
  flex-direction: column;
  flex: 1;
  max-height: 0;
  overflow: hidden;
  opacity: 0;
  transition: max-height 0.4s ease, opacity 0.3s ease, padding 0.3s ease;
}

aside:not(.collapsed) .menu {
  max-height: 1000px;
  opacity: 1;
}

.menu ul {
  list-style: none;
  margin: 0;
  padding: 0;
  display: flex;
  flex-direction: column;
}

.menu li {
  margin: 0;
  padding: 0;
}

.menu-item {
  display: flex;
  align-items: flex-start;
  gap: 16px;
  padding: 16px 24px;
  color: rgba(255, 255, 255, 0.7);
  text-decoration: none;
  transition: all 0.2s ease;
  position: relative;
  min-height: 56px;
  border-bottom: 1px solid rgba(255, 255, 255, 0.2);
  width: 100%;
  background: none;
  border-left: none;
  border-right: none;
  border-top: none;
  text-align: left;
  cursor: pointer;
  font-family: inherit;
  font-size: inherit;
}

.menu-text {
  font-size: 14px;
  font-weight: 400;
  flex: 1;
  line-height: 1.5;
  word-wrap: break-word;
}

/* Menu item hover and focus states */
.menu-item:hover,
.menu-item:focus {
  background: rgba(255, 255, 255, 0.15);
  color: #fff;
}

/* Menu item active state */
.menu-item.active {
  background: rgba(161, 207, 240, 1);
  color: #000;
}

/* Content */
main {
  flex: 1;
  height: 100vh;
  overflow: hidden;
  display: none;
  margin-left: 0;
}

aside:not(.hidden) ~ main {
  display: flex;
}

iframe {
  width: 100%;
  height: 100%;
  border: none;
}

/* Mobile */

@media (max-width: 390px) {
  .hero-title {
    font-size: 36px;
    padding: 0;
  }

  .start-tour-btn {
    width: calc(100% - 40px);
    display: block;
    bottom: 70px;
  }
}
