@import url('https://fonts.googleapis.com/css2?family=Manrope:wght@200;300;400;500;600;700&display=swap');

:root {
  --fs-xl: clamp(3.38rem, calc(-2.42rem + 12.06vw), 6.63rem);
  --fs-l: clamp(0.69rem, calc(-0.54rem + 2.55vw), 1.38rem);
  --fs-m: clamp(0.75rem, calc(0.08rem + 1.39vw), 1.13rem);
  --fs-s: clamp(0.75rem, calc(0.53rem + 0.46vw), 0.88rem);
}

@font-face {
  font-family: 'fancy';
  src: url(/Font/Caprasimo-Regular.ttf);
  font-style: normal;
  font-weight: 100;
}

* {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
  font-family: 'Manrope', sans-serif;
}

body {
  background-color: black;
}

/* =========================
   NAVIGATION BAR
========================= */
.navbar {
  top: 0;
  padding-top: 3rem;
  position: fixed;
  display: flex;
  justify-content: space-around;
  align-items: center;
  width: 100%;
  color: white;
  font-size: var(--fs-m);
  z-index: 2;
  animation: fade-in 3.5s;
}

/* Links container for mobile toggle */
.nav-links {
  display: flex;
  align-items: center;
  justify-content: space-around;
  width: 100%;
}

.navbar a,
.dropbtn {
  text-decoration: none;
  color: white;
  opacity: 1;
  margin: 0;
}

.navbar a:hover {
  opacity: 0.8;
}

/* =========================
   DROPDOWN MENU
========================= */
.dropdown {
  position: relative;
  display: inline-block;
}

.dropbtn {
  background: none;
  border: none;
  color: inherit;
  font: inherit;
  cursor: pointer;
  padding: 0;
  text-transform: lowercase;
}

.dropdown-content {
  display: none;
  position: absolute;
  background-color: rgba(0, 0, 0, 0.9);
  min-width: 150px;
  z-index: 1;
  opacity: 0;
  transform: translateY(-8px);
  transition: all 0.3s ease;
}

.dropdown-content.show {
  display: block;
  opacity: 1;
  transform: translateY(0);
}

.dropdown-content a {
  color: white;
  padding: 8px 12px;
  text-decoration: none;
  display: block;
  text-transform: lowercase;
}

.dropdown-content a:hover {
  background-color: rgba(255, 255, 255, 0.1);
}

.arrow {
  display: inline-block;
  transition: transform 0.3s ease;
}

.arrow.rotate {
  transform: rotate(180deg);
}

/* Optional underline effect */
.dropdown:hover .dropbtn {
  text-decoration: underline;
}

/* =========================
   MOBILE MENU
========================= */
.menu-icon {
  display: none;
  font-size: 28px;
  cursor: pointer;
  color: white;
  position: absolute;
  right: 20px;
  top: 1.5rem;
}

@media (max-width: 768px) {
  .navbar {
    justify-content: flex-end;
    padding-top: 1.5rem;
    background-color: transparent; /* only shows when menu opens */
  }

  .menu-icon {
    display: block;
  }

  .nav-links {
    display: none;
    flex-direction: column;
    position: absolute;
    top: 0;
    right: 0;
    width: 100%;
    background-color: rgba(0, 0, 0, 0.95); /* appears only when active */
    padding: 10px 0;
    text-align: center;
  }

  .nav-links.active {
    display: flex;
  }

  .dropdown-content {
    position: static;
    background-color: transparent;
    min-width: unset;
    opacity: 1;
    transform: none;
    transition: none;
  }

  .dropdown-content a {
    padding: 6px 0;
  }
}

/* =========================
   CENTER TEXT + BACKGROUND
========================= */
.center-text {
  width: 100%;
  height: 100vh;
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  color: white;
  background: rgba(0, 0, 0, 0.437);
  z-index: 1;
  position: relative;
}

.center-text h1 {
  font-size: var(--fs-xl);
  font-weight: 100;
  line-height: 1em;
  animation: fade-in 1s;
}

.logo-img {
  width: clamp(75px, 20vw, 200px);
  height: auto;
  display: block;
  margin: 0 auto;
}

.center-text p {
  font-size: var(--fs-l);
  font-weight: 600;
  animation: fade-in 2.25s;
}

.video-bg {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  z-index: -1;
  background: rgb(210, 210, 210);
}

.credits {
  bottom: 0;
  margin-bottom: 3rem;
  margin-left: -0.5em;
  position: fixed;
  display: flex;
  width: 100%;
  justify-content: space-around;
  color: grey;
  font-size: var(--fs-s);
  animation: fade-in 3.5s;
}

.svg-logo {
  width: clamp(75px, 20vw, 200px);
  height: auto;
  display: block;
  color: #E1A95E;
}

/* =========================
   ANIMATIONS
========================= */
@keyframes fade-in {
  0% { opacity: 0; }
  50% { opacity: 0; }
  100% { opacity: 1; }
}
/* Mobile view adjustments */
@media screen and (max-width: 768px) {
  .menu-icon {
    font-size: 2rem; /* Keep hamburger/cross size */
    cursor: pointer;
    color: white; /* Ensure white color */
    z-index: 1001; /* on top of nav */
  }

  .nav-links {
    display: none;
    flex-direction: column;
    position: absolute;
    top: 60px; /* adjust based on navbar height */
    right: 0;
    background-color: rgba(0,0,0,0.95); /* optional */
    width: 100%;
    text-align: center;
    padding: 1rem 0;
  }

  .nav-links.active {
    display: flex;
  }

  .nav-links a,
  .dropdown .dropbtn {
    color: white;
    margin: 0.5rem 0;
    font-size: 1.2rem;
  }

  .dropdown-content {
    position: static;
    background: transparent;
    box-shadow: none;
    display: none;
  }

  .dropdown-content.show {
    display: flex;
    flex-direction: column;
  }
}
/* Mobile view adjustments */
@media screen and (max-width: 768px) {
  /* Mobile navbar background slightly transparent */
  .nav-links {
    background-color: rgba(0, 0, 0, 0.85); /* black with 85% opacity */
  }

  /* Dropdown menu for "exhibitions" transparent in mobile */
  .dropdown-content {
    background-color: rgba(0, 0, 0, 0.85); /* black with 85% opacity */
  }
}
@media screen and (max-width: 768px) {
  /* Mobile nav-links */
  .nav-links {
    display: none;
    flex-direction: column;
    position: fixed;       /* fixed to viewport */
    top: 0;
    left: 0;
    bottom: 0;             /* stretch to bottom */
    width: 100%;
    background-color: rgba(0, 0, 0, 0.85); /* slightly transparent */
    text-align: center;
    padding-top: 1rem;     /* keep original spacing */
    z-index: 1000;
  }

  /* Mobile menu open */
  .nav-links.active {
    display: flex;
    flex-direction: column; 
    justify-content: flex-start; /* links start from top */
    height: auto;                /* keep links container natural height */
  }

  /* Dropdown inside mobile menu */
  .dropdown-content {
    position: static;
    display: none;
    flex-direction: column;
    background-color: rgba(0, 0, 0, 0.85);
  }

  .dropdown-content.show {
    display: flex;
  }

  /* Menu icon */
  .menu-icon {
    font-size: 2rem;
    cursor: pointer;
    color: white;
    z-index: 1001; /* above nav-links */
  }

  /* Keep all links same as before */
  .nav-links a,
  .dropdown .dropbtn {
    color: white;
    margin: 0.5rem 0;
    font-size: 1.2rem;
  }
}
/* ======= Mobile animated menu (drop-in override) ======= */
@media (max-width: 768px) {
  /* Force the nav-links to remain in flow but collapsed so it can animate */
  .navbar .nav-links {
    display: flex !important;
    flex-direction: column;
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    width: 100%;
    max-height: 0;                 /* collapsed */
    opacity: 0;                    /* invisible */
    transform: translateY(-10px);  /* slightly up */
    overflow: hidden;
    overflow-y: auto;              /* allow scrolling inside menu if needed */
    background-color: rgba(0,0,0,0.85);
    transition: max-height 420ms cubic-bezier(.2,.9,.2,1),
                opacity 300ms ease,
                transform 300ms ease;
    pointer-events: none;          /* prevent clicks while hidden */
    z-index: 1000;
    padding-top: 0; /* keep collapsed padding out */
  }

  /* Open state — animated */
  .navbar .nav-links.active {
    max-height: 100vh;             /* large enough to reveal full content */
    opacity: 1;
    transform: translateY(0);
    pointer-events: auto;
    padding-top: 1rem;             /* restore spacing when open */
    justify-content: flex-start;
  }

  /* keep links styling unchanged but ensure they lay out vertically */
  .navbar .nav-links a,
  .navbar .nav-links .dropbtn {
    margin: 0.5rem 0;
  }

  /* Ensure dropdown content behavior inside mobile works unchanged */
  .navbar .nav-links .dropdown-content {
    display: none;
    background-color: rgba(0,0,0,0.85);
  }
  .navbar .nav-links .dropdown-content.show {
    display: flex;
    flex-direction: column;
  }
}



