@font-face {
  font-family: "EgyptianSlate"; /* or any name you want */
  src: url("assets/EgyptianSlateLight.TTF") format("truetype");
  font-weight: normal;
  font-style: normal;
}

@font-face {
  font-family: "Zaslia"; /* or any name you want */
  src: url("assets/Zaslia.otf") format("Opentype");
  font-weight: normal;
  font-style: normal;
  font-feature-settings: "kern" 1, "liga" 1;
}

/* main.css */
:root {
  --color-accent: rgb(230, 170, 40);
}

* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

body {
  font-family: "EgyptianSlate";
  overflow: hidden;
  background: #000;
  animation: curtainDrop 1s ease-out forwards;
  transform: translateY(-100vh);
  opacity: 0;
}

@keyframes curtainDrop {
  to {
    transform: translateY(0);
    opacity: 1;
  }
}

a,
p,
h5 {
  color: var(--color-accent);
  text-decoration: none;
  text-transform: uppercase;
  font-size: 12px;
}

nav {
  position: fixed;
  top: 0;
  width: 100%;
  padding: 1.5em 2em;
  display: flex;
  align-items: center;
  z-index: 999;
}

.dropdown {
  position: relative;
}

.dropdown-content {
  display: none;
  position: absolute;
  top: 100%;
  left: 0;
  background-color: rgba(0, 0, 0, 0);
  z-index: 10;
  width: 100vw;
  animation: curtainDrop 1s ease-out forwards;
  transform: translateY(-100vh);
  opacity: 0;
}

@keyframes curtainDrop {
  to {
    transform: translateY(0);
    border-bottom: 2px solid #d17900;
    opacity: 1;
  }
}

.dropdown-content a {
  display: block;
  padding: 8px 20px;
  line-height: 1.2;

  letter-spacing: -0.5px;
  font-size: 4rem;
  color: #d17900;
  text-decoration: none;
  transition: background 4s ease-in;
  font-weight: bold;
}

.dropdown-content a:hover {
  background-color: #ffffff00;
}

.dropdown:hover .dropdown-content {
  display: block;
}

footer {
  position: fixed;
  bottom: 0;
  width: 100%;
  padding: 1.5em 2em;
  display: flex;
  justify-content: space-between;
  align-items: center;
}

nav > div {
  flex: 1;
}

.links-1,
.links-2 {
  display: flex;
  gap: 2em;
}

.links-2 {
  justify-content: flex-end;
}

.logo {
  display: flex;
  justify-content: center;
}

.logo a {
  font-family: "Zaslia";
  font-feature-settings: "liga" 1, "kern" 1;
  font-size: 2rem;
  z-index: 9999999;
  font-weight: bolder;
  letter-spacing: 0.2em;
}

.background-blur {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background-size: cover;
  background-position: center;
  background-repeat: no-repeat;
  filter: blur(70px) brightness(0.5);
  z-index: -1;
  transition: background-image 0.8s ease;
}

.gallery-container {
  perspective: 1500px;
  display: flex;
  justify-content: center;
  align-items: center;
  height: 100vh;
  position: relative;
  overflow: hidden;
}

.gallery123 {
  width: 100%;
  height: 50vh;
  position: relative;
  transform-style: preserve-3d;
  transition: transform 1s ease-in-out;
  display: flex;
  justify-content: center;
  align-items: center;
}

.panel {
  position: absolute;
  width: 400px;
  height: 80%;
  background-size: cover;
  background-position: center;
  border-radius: 12px;
  transition: transform 6s ease, opacity 6s ease;
}

.panel::before {
  content: "";
  position: absolute;
  inset: 0;
  background: rgba(0, 0, 0, 0);
  border-radius: 12px;
  z-index: 2;
}

.panel.focused {
  filter: none;
  opacity: 1;
  z-index: 2;
}

.panel.blurred {
  opacity: 0.3;
  filter: blur(4px) brightness(0.7);
  z-index: 1;
}

.panel-text {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  font-size: 1.2rem;
  font-weight: 900;
  color: #f9b14c;
  text-align: left;
  text-shadow: 2px 2px 10px rgba(0, 0, 0, 0.8);
  pointer-events: none;
  z-index: 3;
}

.nav-button {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  font-size: 2rem;
  color: #f9b14c;

  background: rgba(0, 0, 0, 0.5);
  border: none;
  cursor: pointer;
  z-index: 10;
  padding: 0.5rem 1rem;
  border-radius: 50%;
}

.nav-button.left {
  left: 20px;
}

.nav-button.right {
  right: 20px;
}

/* ============= Responsive adjustments ============= */

@media (max-width: 1024px) {
  .panel {
    width: 300px;
    height: 40%;
  }

  .dropdown-content a {
    font-size: 3rem;
  }

  .logo a {
    font-size: 1.8rem;
  }
}

@media (max-width: 768px) {
  nav {
    flex-direction: column;
    gap: 1em;
  }

  .links-1,
  .links-2 {
    justify-content: center;
  }

  .panel {
    width: 250px;
    height: 60%;
  }

  footer {
    flex-direction: column;
    text-align: center;
    gap: 0.5em;
  }

  .logo a {
    font-size: 1.6rem;
  }
}

@media (max-width: 480px) {
  .gallery-container {
    height: 80vh;
    padding: 0 10px;
  }

  .panel {
    width: 80%;
    height: 50%;
  }

  .panel.blurred {
    opacity: 0.1;
    filter: blur(4px);
    z-index: 1;
  }

  .logo a {
    font-size: 1.4rem;
  }

  nav {
    padding: 1em;
  }

  .nav-button {
    font-size: 1.5rem;
    padding: 0.3rem 0.8rem;
  }
}

/* Ensure text never gets too small */
a,
p,
h5 {
  font-size: clamp(0.7rem, 2vw, 1rem);
}

/* dropwown content css */

@media (max-width: 768px) {
  .dropdown-content {
    position: fixed;
    top: 0;
    left: 0;
    width: 100vw;
    height: 100vh;
    background: black;
    display: none; /* default hidden */
    flex-direction: column;
    align-items: flex-start;
    justify-content: flex-start;
    padding-top: 5em;
    /* padding-left: 2em; */
    animation: curtainDropMobile 1s ease-out forwards;
    transform: translateY(-100vh);
    opacity: 0;
    z-index: 9999;
  }

  .dropdown:hover .dropdown-content {
    display: flex;
  }

  .dropdown-content a {
    font-size: 2.5rem;
    margin-bottom: 1em;
    text-align: left;
  }

  @keyframes curtainDropMobile {
    to {
      transform: translateY(0);
      opacity: 1;
    }
  }
}
