/* 
Note for the elements in global
1. meyer-reset
2. Fonts
3. html webkit (Scrollbar)
4. Desktop
5. Menu Visibility
6. Left Sidebar & Button
7. Desktop Container Menu
8. Right Button & Right Menu
9. Sidebar Animations
10. End Banner
*/

@import url("https://cdnjs.cloudflare.com/ajax/libs/meyer-reset/2.0/reset.min.css");
* {
  -webkit-font-smoothing: antialiased;
  margin: 0;
  padding: 0;
}

/* ==========================
   Fonts
   ========================== */

@font-face {
  font-family: "ITC";
  src: url("Fonts/avantgarde_demi.ttf") format("truetype");
  font-style: normal;
  font-display: swap;
}

@font-face {
  font-family: "Instrument";
  src: url("Fonts/INSTRUMENTSERIF-REGULAR.TTF") format("truetype");
  font-style: normal;
  font-display: swap;
}

@font-face {
  font-family: "Literata";
  src: url("Fonts/Literata-VariableFont.ttf") format("truetype");
  font-style: normal;
  font-display: swap;
}

@font-face {
  font-family: "Switzer";
  src: url("Fonts/Switzer-Variable.ttf") format("truetype");
  font-style: normal;
  font-display: swap;
}

@font-face {
  font-family: "Satoshi";
  src: url("Fonts/Satoshi-Variable.ttf") format("truetype");
  font-style: normal;
  font-display: swap;
}

@font-face {
  font-family: "ppneuebit";
  src: url("Fonts/ppneuebit-bold.otf") format("truetype");
  font-style: normal;
  font-display: swap;
}

html::-webkit-scrollbar {
  display: none;
}

html {
  -ms-overflow-style: none;
  scrollbar-width: none;
  scroll-behavior: smooth;
}

/* ==========================
   Desktop CSS
   ========================== */

.desktop {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: flex-start;
  width: 100%;
  min-height: 100vh;
  height: auto;
  position: relative;
  overflow: hidden;
  opacity: 0;
  transition: opacity 0.5s ease-in;
}

/* ==========================
   Left Sidebar CSS
   ========================== */

.leftsidebar-container {
  position: fixed;
  left: calc(50% - 680px);
  z-index: 100;
  opacity: 0;
  transform: translateY(-30px);
  transition: opacity 0.4s ease, transform 0.4s ease;
  pointer-events: none;
}

.leftsidebar-container.sidebar-visible {
  opacity: 1;
  transform: translateY(0);
  pointer-events: auto;
}

.sidebar-inner {
  display: flex;
  flex-direction: column;
  align-items: center;
  width: 100%;
  height: 100%;
  will-change: transform;
}

.left-sidebar {
  position: relative;
  width: 61px;
  height: 400px;
  z-index: 5;
  box-sizing: border-box;
  display: flex;
  flex-direction: column;
  align-items: center;
  outline: none;
  border: none;
  background: none;
  cursor: pointer;
}

.sidebar-bg {
  width: 100%;
  flex: 1;
  background: color-mix(in srgb, var(--sidebar-color) 90%, white 10%);
  z-index: 2;
  transition: background 0.3s ease;
  display: flex;
  justify-content: center;
}

.sidebar-accent {
  width: 100%;
  height: 60px;
  flex-shrink: 0;
  border-bottom-left-radius: 8px;
  border-bottom-right-radius: 8px;
  background: color-mix(in srgb, var(--sidebar-accent-color) 90%, white 10%);
  z-index: 1;
  display: flex;
  align-items: center;
  justify-content: center;
}

.up-arrow {
  width: 30px;
  height: auto;
  position: relative;
  z-index: 3;
}

.left-sidebar .sidebar-icon {
  position: absolute;
  top: 16px;
  left: 0;
  right: 0;
  margin: 0 auto;
  z-index: 3;
  width: 36px;
  height: auto;
}

.left-sidebar .sidebar-icon-mobile {
  display: none;
}

.left-sidebar .sidebar-icon-desktop {
  display: block;
}

.left-sidebar .sidebar-text {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%) rotate(90deg);
  color: #ffffff;
  font-family: "Instrument";
  font-size: 36px;
  letter-spacing: 3px;
  white-space: nowrap;
  z-index: 3;
  pointer-events: none;
}

/* Compact sidebar - no text, smaller height */
.left-sidebar.sidebar-compact {
  height: 120px;
}

.left-sidebar.sidebar-compact .sidebar-text {
  display: none;
}

/* Hover lift effect on the icon */
.left-sidebar:hover .sidebar-icon {
  transform: translateY(-3px);
}

/* ==========================
   Desktop Container Menu
   ========================== */

.desktop .menu {
    position: relative;
    display: flex;
    top: 40px;
    margin-top: 10px;

    height: auto;
    z-index: 10;
    left: auto;
    opacity: 1;
}

.desktop .overlap-group {
    position: relative;
    align-self: center;
    width: 100%;
    height: fit-content;
    display: flex;
    flex-direction: row;
    flex-wrap: wrap;
    gap: 9px;
    padding: 16px 20px;
    border-radius: 10px;
    box-sizing: border-box;
    min-width: 200px;
}

/* ==========================
   Menu Text Wrappers
   ========================== */

.desktop .text-wrapper-2,
.desktop .text-wrapper-3,
.desktop .text-wrapper-4,
.desktop .text-wrapper-5 {
  margin: 0;
  font-family: "Switzer";
  color: #ffffff !important;
  font-size: 16px;
  font-weight: 400;
  text-align: left;
  letter-spacing: 0.5px;
  line-height: 1.5;
  white-space: nowrap;
  position: relative;
  padding: 10px 16px;
  display: flex;
  align-items: center;
  cursor: pointer;
  border-radius: 6px;
  transition: all 0.2s ease;
}

.desktop .text-wrapper-2:hover,
.desktop .text-wrapper-3:hover,
.desktop .text-wrapper-4:hover,
.desktop .text-wrapper-5:hover {
  background-color: rgba(255, 255, 255, 0.1);
  transform: translateY(-4px);
}

/* ==========================
   Sidebar Animations
   ========================== */

.sidebar-appeared {
  opacity: 1 !important;
}

.lower-left-sidebar-appeared {
  opacity: 1 !important;
  transform: translateX(0) !important;
}

/* ==========================
   End Banner
   ========================== */

end-banner {
  display: flex;
  flex-direction: row;
  justify-content: left;
  align-items: center;
  gap: 20px;
  width: 100%;
  box-sizing: border-box;
  background-image: url(Elements_For_Web/Background_End_Frame.svg);
  background-position: center;
  background-repeat: no-repeat;
}

.end-banner-index  { background-color: #001A36; }
.end-banner-lib    { background-color: #001A36; }
.end-banner-map    { background-color: #002B19; }
.end-banner-Kine   { background-color: #472C00; }
.end-banner-AI     { background-color: #262626; }

.end-accent {
  width: 100px;
  height: 308px;
  align-items: center;
}

.end-title-contact-frame {
  position: relative;
  z-index: 2;
  max-width: 600px;
  display: flex;
  flex-direction: column;
  gap: 15px;
}

.end-title-container {
  display: flex;
  flex-direction: column;
  gap: 4px;
}

.end-name {
  font-family: 'Instrument';
  text-decoration: underline;
  letter-spacing: 2px;
  font-size: 46px;
  color: #ffffff;
}

.end-label {
  font-family: 'Instrument';
  letter-spacing: 2px;
  font-size: 24px;
  color: #ffffff;
}

.contact-container {
  display: flex;
  flex-direction: column;
  gap: 10px;
  padding: 5px 0px;
}

.contact-row {
  display: flex;
  flex-direction: row;
  align-items: center;
  gap: 10px;

  transition: opacity 0.2s ease;
}

.icon-img {
  width: 24px;
}

.contact-name {
  font-family: 'Times New Roman', Times, serif;
  font-size: 16px;
  color: #ffffff;
  text-decoration: none;
}

.contact-container a {
  text-decoration: none;
}

/* ==========================================================
   RESPONSIVE DESIGN FOR GLOBALS
   ========================================================== */

/* 1. Large Screen Adjustments */


/* 2. Compact Screen Adjustments */
@media (max-width: 1460px) {

    /* Left Sidebar - Compact rectangle, no text */
    .leftsidebar-container {
        left: 100px;
    }

    .left-sidebar {
        height: 150px;
    }

    .left-sidebar .sidebar-text {
        display: none;
    }

    /* Desktop Menu, this is suprise tool that will help us later*/
    .desktop .menu {
        z-index: 10;
    }


    .desktop .overlap-group {
        min-width: 160px;
        gap: 6px;
        flex-direction: row;
        flex-wrap: wrap;
    }

    .desktop .text-wrapper-2,
    .desktop .text-wrapper-3,
    .desktop .text-wrapper-4,
    .desktop .text-wrapper-5 {
        font-size: 15px;
        padding: 8px 12px;
    }

}

/* 3. Mobile Adjustments */
@media (max-width: 768px) {

  .desktop .menu {
      width: 100%;
      max-width: 100%;
      margin-top: 20px;
      margin-left: 0;
  }

  .desktop .overlap-group {
      display: flex;
      flex-direction: row;
      justify-content: space-between;
      width: 100%;
      gap: 0;
      padding: 16px 20px;
      margin-left: 0;
  }

  .desktop .text-wrapper-2,
  .desktop .text-wrapper-3,
  .desktop .text-wrapper-4,
  .desktop .text-wrapper-5 {
      font-size: 13px;
      padding: 6px 8px;
      letter-spacing: 0.3px;
      white-space: nowrap;
  }

    /* End Banner */
    end-banner {
        flex-direction: column;
        padding: 40px 20px;
        text-align: center;
        background-size: cover;
    }

    .end-banner-index {
      background-color: #001A36;
    }
    
    .end-banner-lib {
      background-color: #001A36;
    }
    
    .end-banner-map {
      background-color: #002B19;
    }
    
    .end-banner-Kine {
      background-color: #472C00;
    }
    
    .end-banner-AI {
      background-color: #262626;
    }

    .end-accent {
        display: none;
    }

    .end-title-contact-frame {
        align-items: center;
    }

    .contact-row {
        justify-content: center;
        padding-right: 12px;
        text-decoration: none;
        color: inherit;
        cursor: pointer;
    }

    .end-name {
        font-size: 32px;
    }
}