@font-face {
  font-family: "Romie"; /* or any name you want */
  src: url("assets/Hello\ Paris\ Sans\ Medium.ttf") format("truetype");
  font-weight: normal;
  font-style: normal;
}

@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(0, 0, 0);
}

* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

body,
html {
  font-family: "EgyptianSlate";
  height: 100%;
  /* font-family: 'Arial', sans-serif; */
  overflow-x: hidden;
}

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;
  /* overflow-x: hidden; */
  /* margin: 0; */
}

.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 #000000;
    opacity: 1;
  }
}

.dropdown-content a {
  display: block;
  padding: 8px 20px;
  line-height: 1.2;

  letter-spacing: -0.5px;
  font-size: 4rem;
  color: #000000;
  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: 'Cherry Bomb One'; */
  font-size: 2rem;
  z-index: 9999999;
  font-family: "Zaslia";
  font-feature-settings: "liga" 1, "kern" 1;
  font-weight: bolder;
  letter-spacing: 0.2em;
}

.gallery {
  display: grid;
  grid-template-columns: auto auto auto;
}

.image-section {
  width: 100%;
  height: 100vh;
  position: relative;
  flex-shrink: 0;
}

.image-section img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.archive-text {
  position: fixed;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  font-size: 6rem;
  font-family: "Zaslia";
  font-feature-settings: "liga" 1, "kern" 1;
  font-weight: bold;
  pointer-events: none;
  mix-blend-mode: difference;
  color: white; /* fallback */
  transition: color 0.3s ease;
  z-index: 100;
}

/* ============= 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;
    color: rgb(230, 170, 40);
    text-align: left;
  }

  @keyframes curtainDropMobile {
    to {
      transform: translateY(0);
      opacity: 1;
    }
  }

  .archive-text {
    font-size: 2.2rem;
  }

  .gallery {
    grid-template-columns: auto auto;
  }

  
  .image-section {
    height: 50vh;
  }

}
