/* FONTS */
@font-face {
  font-family: 'KiRegular';
  src: url('fonts/Ki-Regular.ttf') format('truetype');
  font-weight: normal;
  font-style: normal;
}

@font-face {
  font-family: 'KiBold';
  src: url('fonts/Ki-Bold.ttf') format('truetype');
  font-weight: normal;
  font-style: normal;
}


body {
  overflow: hidden;
  background-color: #FFFFFF; 
  position: relative;
  font-family: sans-serif;
  margin: 0;
}

body::before {
  content: "";
  position: absolute;
  inset: 0;
  background-image: radial-gradient(
    rgba(175, 140, 190, 0.18) 1px,
    transparent 2px
  );
  background-size: 1.5em 1.5em;
  pointer-events: none;
  z-index: -1;
}

/* ===============================
   CANVAS
=============================== */
canvas {
  display: block;
  position: relative;
  z-index: 1;
}



/* ===============================
   NAVEGAÇÃO
=============================== */
#ui {
  position: fixed;
  top: 0;
  left: 0;
  width: 100vw;
  z-index: 10;
}

/* Nav bar */
nav {
  position: relative;
  width: 100%;
  display: flex;
  align-items: center;
}


#logo-container {
  position: fixed;          
  left: 50%;                    
  transform: translateX(-50%); 
  margin-top: 7.3rem;           

  width: clamp(200px, 20vw, 250px);
  height: clamp(200px, 20vw, 250px);
  overflow: visible;            

  font-family: 'KiRegular';   
  font-size: 1.8rem;
  letter-spacing: 0.1em;
  pointer-events: auto;
}

#logo-container {
  transition: transform 0.3s ease;
}

/* =========================
   MENU WRAPPER
========================= */
.menu-wrapper {
  position: fixed;
  top: clamp(1.5rem, 2vw, 1.5rem);
  right: clamp(1rem, 2vw, 1.5rem);
  display: flex;
  flex-direction: column;
  align-items: flex-end;
  gap: clamp(0.5rem, 1vw, 0.8rem);
  z-index: 25;
}

/* =========================
   MENU BUTTON
========================= */
#menu-button {
  display: flex;
  justify-content: center;
  align-items: center;
  border-radius: 50px;
  background-color: #E8FD94;
  cursor: pointer;
  font-family: 'KiRegular';
  text-transform: uppercase;
  white-space: nowrap;
  box-shadow: 0 1px 3px rgba(0, 0, 0, 0.05);
  transition: transform 0.2s ease, box-shadow 0.2s ease;

  /* Responsive size */
  height: clamp(2.6rem, 6vw, 3.4rem);       
  padding: 0 clamp(0.8em, 5vw, 1.2em);     
  font-size: clamp(1.2rem, 4vw, 1.4rem);  
}

/* =========================
THIS CAN SAVE YOU 
========================= */

#nav-links-wrapper {
  transform: translateX(0.2rem);
}



#menu-button:hover {
  transform: scale(1.05);
}

/* =========================
   NAV LINKS WRAPPER
========================= */
#nav-links-wrapper {
  display: flex;
  flex-direction: column;
  align-items: flex-end;
  gap: clamp(0.5rem, 1vw, 0.8rem);
  overflow: visible;
  pointer-events: none;   /* block clicks when collapsed */
  max-height: 0; 
}

/* Open state */
nav.open #nav-links-wrapper {
  max-height: 500px;     
    pointer-events: auto;  
}

/* =========================
   NAV BUTTONS
========================= */
.nav-btn {

  border-radius: 50px;
  background-color: #E8FD94;
  display: flex;           
  justify-content: center;
  align-items: center;

  font-family: 'KiRegular';
  line-height: normal;    

  text-transform: uppercase;
  white-space: nowrap;
  text-decoration: none;
  color: #000;
  cursor: pointer;
  box-shadow: 0 1px 3px rgba(0, 0, 0, 0.05);

  opacity: 0;
  transform: translateY(-20px);
  transition: transform 0.25s ease, opacity 0.25s ease;
  height: clamp(2.6rem, 6vw, 3.4rem);       
  padding: 0 clamp(0.8em, 5vw, 1.2em);     
  font-size: clamp(1.2rem, 4vw, 1.4rem); 
}






  #nav-links-wrapper .nav-btn,
  #menu-button {
    padding-top: clamp(0em, 0.6vw, 0.2em);
  }



/* =========================
   BARRA DOS EVENTOS
========================= */
#side-bar:hover {
  background: #85fca1;
}

#side-bar {
  position: fixed;
  top: 0;
  left: 0;
  width: clamp(2.5rem, 4vw, 3rem); 
  height: 100vh;
  background-color: #93FFAC;
  cursor: pointer;
  z-index: 20;

  display: flex;
  justify-content: center; 
  align-items: center;   
}

.side-label-wrapper {
  transform: rotate(-90deg) translateY(0.02em);
  transform-origin: center center;
  display: flex;
  justify-content: center;
  align-items: center;
}
.side-label {
  font-size: clamp(0.9rem, 2vw, 1.2rem);
  font-weight: 600;
  letter-spacing: 0.15em;
  color: #000;
  font-family: 'KiRegular';
  white-space: nowrap;
  user-select: none;
  pointer-events: none;
}


/* =========================
   SLIDING PANEL
========================= */
#side-panel {
  position: fixed;
  top: 0;
  left: 0;
  width: 25%;
  height: 100vh;
  background: #93FFAC;
  padding: 2rem 1.5rem 4rem;
  transform: translateX(-100%);
  transition: transform 0.5s ease;
  z-index: 30;
  overflow-y: auto;
  box-shadow: 0 2px 4px rgba(0,0,0,0.1);
  font-family: 'KiRegular';

  scrollbar-width: none;
  -ms-overflow-style: none;
}

#side-panel ul {
  list-style: none;
  padding: 0;
}

#side-panel::-webkit-scrollbar {
  display: none;
}

#side-panel.open {
  transform: translateX(0);
}

/* =========================
   PANEL HEADER
========================= */
#side-panel h2 {
  font-size: 1.75rem;
  margin-top: 0.1rem;
  margin-bottom: 1.5rem;
 font-family: 'KiBold';
}


/* =========================
   CLOSE BUTTON
========================= */
#close-panel {
  position: absolute;
  top: 1rem;
  right: 1rem;
  background: none;
  border: none;
  padding: 0;
  cursor: pointer;
  width: 1.6rem;
  height: 1.6rem;
  display: flex;
  justify-content: center;
  align-items: center;
}

#close-panel img {
  width: 100%;
  height: 100%;
  display: block;
  object-fit: contain;
}

/* =========================
   EVENTS LIST
========================= */
.events-list {
  display: flex;
  flex-direction: column;
  margin-top: 2rem;
}

/* =========================
   EVENT CARD
========================= */
.event-card {
  padding-bottom: 3rem;
  margin-bottom: 3rem;
  position: relative;
}

/* Divider between events */
.event-card::after {
  content: "";
  position: absolute;
  bottom: 10px;
  left: 0;
  width: 100%;
  height: 1px;
  background: repeating-linear-gradient(
    to right,
    rgba(0,0,0,0.25) 0,
    rgba(0,0,0,0.25) 3px,
    transparent 3px,
    transparent 10px
  );
}

/* =========================
   EVENTO TITULO
========================= */
.event-title {
  font-family: 'KiBold';
  font-size: 1.1rem;
 margin-bottom: 1.2rem;
}

/* =========================
   EVENTO IMAGEM
========================= */
.event-image {
  width: 100%;
  aspect-ratio: 1 / 1.1;
  overflow: hidden;
  background: #000;
  border-radius: 1rem;
  margin-bottom: 0.5rem;
}

.event-image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

/* =========================
   META
========================= */
.event-meta {
  display: flex;
  justify-content: space-between;
  font-family: 'KiBold';
  font-size: 0.9rem;
  margin-bottom: 1.2rem;
  opacity: 0.75;
}

/* =========================
   DESCRIPTION
========================= */
.event-description {
  margin-bottom: 1.2rem;
  font-size: 0.8rem;
  line-height: 1.5;
}

.event-description ul {
  margin: 1rem 0;
  padding-left: 1.1rem;
}

.event-description li {
  margin-bottom: 0.4rem;
}

.event-description a {
  color: inherit;
  text-decoration: underline;
}

/* =========================
   EXTRA INFO
========================= */
.event-info {
  margin-top: 1.2rem;
  font-size: 0.9rem;
  opacity: 0.85;
}

.event-highlight {
  margin-top: 1.4rem;
  font-style: italic;
}

/* =========================
   TYPOGRAPHY OVERRIDES
========================= */
#side-panel p,
#side-panel li,
#side-panel span,
#side-panel a {
  font-size: 0.8rem;
}

strong {
  font-family: 'KiBold';
  font-weight: normal;
}


/* =========================
  START BUTTON
========================= */
#start-overlay {
  position: absolute;
  bottom: 8%;
  left: 50%;
  transform: translate(-50%, -50%);
  text-align: center;
  z-index: 20; 
  pointer-events: auto;
}

/* Main overlay text */
.start-text {
  font-size: 0.8rem;
  font-family: 'KiRegular';
  color: #000;
  margin-bottom: 0.5rem;
  opacity: 0; 
  transition: opacity 1s ease-in-out;
}

/* Text-only button */
#start-button {
  font-size: 0.8rem;
  font-family: 'KiRegular';
  color: #FF1612;
  background: none;
  border: none;
  cursor: pointer;
  padding: 0;
}
#start-button:hover {
  color: #555; /* subtle hover effect */
}


/* =========================
  SOCIAL BUTTON
========================= */

#social-buttons {
  position: fixed;
  bottom: 1.5rem; 
  right: 1.5rem;  
  display: flex;
  flex-direction: column; 
  gap: 1rem;
  z-index: 20; 
}

.social-btn {
  width: 3.4rem;
  height: 3.4rem;
  border-radius: 50%; 
  background-color: #ff93e2; 
  display: flex;
  justify-content: center;
  align-items: center;
  text-decoration: none;
  transition: transform 0.2s ease, box-shadow 0.2s ease;
box-shadow: 0 1px 3px rgba(0, 0, 0, 0.05);
}

.social-btn:hover {
  transform: scale(1.05);
}


.social-btn img {
  width: 1.5rem;
  height: 1.5rem;
  display: block;
}







/* =========================
   RESPONSIVE SIDE BAR
========================= */
@media (max-width: 700px) {
  /* Move the side bar to bottom */
  #side-bar {
    top: auto;
    bottom: 0;
    left: 0;
    width: 100%;
    height: clamp(2.8rem, 3.5vw, 3rem);
    flex-direction: row;
    justify-content: center;
    align-items: center;
  }

  .side-label-wrapper {
    transform: none; /* remove rotation */
    flex-direction: row;
  }

  /* Make label smaller if needed */
  .side-label {
    font-size: 1rem;
    padding-top: 0.2em;
    letter-spacing: 0.1em;
  }

  /* Side panel slides from bottom instead of left */
  #side-panel {
    width: 100%;
    height: 40%; /* you can adjust */
    bottom: 0;
    top: auto;
    left: 0;
    transform: translateY(100%);
    padding: 1rem 1.5rem 2rem;
  }

  #side-panel.open {
    transform: translateY(0);
  }
  .social-btn {
    display: none;
  }
}
