/* main.css */
@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-x: hidden;
  background: #000;
}

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;
  background-color: #000;
  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: #000000;
}

.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;
}

footer p {
  color: var(--color-accent);
}

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-size: 2rem;
  z-index: 9999999;
  font-family: "Zaslia";
  font-feature-settings: "liga" 1, "kern" 1;
  font-weight: bolder;
  letter-spacing: 0.2em;
}

/* HERO SECTION */
.hero {
  display: flex;
  height: 100vh;
  width: 100vw;
}

.hero-left {
  width: 60vw;
  display: flex;
  flex-direction: column;
  justify-content: space-around;
  padding: 4em;
}

.hero-left h1 {
  font-size: 3rem;
  color: var(--color-accent);
  opacity: 0;
  transform: scale(0.8);
  transition: transform 1s ease, opacity 1s ease;
}

.hero-right {
  width: 40vw;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 8em;
}

.hero-right img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  border-radius: 1em;
}

/* CONTAINER SECTIONS */
.container {
  height: 50%;
  width: 100%;
  margin-top: 2vh;
  margin-right: 2vh;
  margin-bottom: 2vh;
  margin-left: 2vh;
  display: flex;
  align-items: center;
  justify-content: center;
}

.split {
  display: flex;
  width: 100%;
  height: 100%;
}

.half {
  flex: 1;
  margin: 0.5em;
  background: rgba(122, 91, 22, 0.2);
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 8px;
  border: 1px solid var(--color-accent);
  opacity: 0;
  transform: translateY(50px);
  transition: all 1s ease;
}

.half h2 {
  font-size: 2.5rem;
  font-family: "Zaslia";
  font-feature-settings: "liga" 1, "kern" 1;
  color: var(--color-accent);
  text-transform: uppercase;
  letter-spacing: 1px;
}

.half p {
  padding: 1rem;
  font-size: 1.2rem;
  line-height: 1;
  text-transform: none;
  text-align: justify;
  color: var(--color-accent);
  max-width: 90%;
}

/* ANIMATION CLASSES */
.zoom-text {
  opacity: 0;
  transform: scale(0.6) translateY(50px);
  transition: all 2s ease;
}

.zoom-text.show {
  opacity: 1;
  transform: scale(1) translateY(0);
}

.half {
  opacity: 0;
  transform: scale(0.6) translateY(50px);
  transition: all 0.8s ease;
}

.half.show {
  opacity: 1;
  transform: scale(1) translateY(0);
}

/* ============= Responsive adjustments ============= */

@media (max-width: 1024px) {
  .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;
  }

  footer {
    flex-direction: column;
    text-align: center;
    gap: 0.5em;
  }

  .logo a {
    font-size: 1.6rem;
  }

  .container:last-of-type {
    margin-bottom: 2em; /* or whatever spacing you like */
  }
}

@media (max-width: 480px) {

  body{
    overflow-x: hidden;
  }

  .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;
    }
  }
}

/* =======================================
   Responsive adjustments for HERO section
   ======================================= */

@media (max-width: 768px) {
  .hero {
    flex-direction: column;
    height: auto;
  }

  .hero-left,
  .hero-right {
    width: 90vw;
    padding: 2em;
  }

  .hero-left h1 {
    font-size: 2rem;
  }

  .hero-right {
    padding: 2em 2em 4em 2em;
  }
}

/* ==========================================
   Responsive adjustments for SPLIT containers
   ========================================== */

@media (max-width: 768px) {
  .split {
    flex-direction: column;
  }

  .half {
    width: 90%;
    margin: 0.5em auto;
    text-align: center;
  }

  .half h2 {
    font-size: 2rem;
  }

  .half p {
    font-size: 0.9rem;
  }
}

/* ==========================================
   Even smaller adjustments for mobile
   ========================================== */
@media (max-width: 480px) {
  .hero-left h1 {
    font-size: 1.6rem;
  }

  .half h2 {
    font-size: 1.6rem;
  }

  .half p {
    font-size: 0.8rem;
  }

  .hero-right {
    padding: 1em;
  }
}

.hero-left h1 {
  font-size: clamp(1.6rem, 5vw, 3rem);
  line-height: 1.2;
  word-break: break-word;
}

.hero-left {
  margin-top: 6em;
  gap: 2rem;
}

* {
  box-sizing: border-box;
  word-break: break-word;
  overflow-wrap: anywhere;
}

.split {
  max-width: 100%;
  overflow-x: auto;
}

.half {
  max-width: 100%;
}
