
/* font */
@import url('https://fonts.googleapis.com/css2?family=Karla:ital,wght@0,200..800;1,200..800&display=swap');


/* Reset some default styles */
*{
    padding : 0;
    margin: 0;
    box-sizing: border-box;
}

body {
    background-color:  white;
    font-family: "Karla", sans-serif;
    font-optical-sizing: auto;
    font-weight: 400;
    font-style: normal;
}


/*Adding shadow on botton hobber */
:root{
    --bg--color: rgb(225, 225, 225);
    --primary-color: black;
    --second-color: #196fe0;
    --hover-bg-color: #efefef;
}

/* Remove text decoration(like undelines from links) */
a{
    text-decoration: none;
}
/* Remove dots */
ul{
    list-style-type: none;
}

/* Navigation var */
nav{
    display: flex;
    align-items: center;
    padding-inline: 3vw;
    height: 50px;
    padding-right: 80px;
}


.nav-main-menu{
  display: flex;
  justify-content: flex-end;
  padding-right: 20px;
  margin-left: auto;
}

.hideOnMobile{
    display:flex;
    margin-top:0px;
    margin-inline: 5px;
    transition: .3s;
    justify-content: flex-end;
    height: 100%;
    padding: 0 25px;
    text-decoration: none;
    align-items: center;
    color: black;
    font-size: 20px;
}

.hideOnMobile:hover{
    color: var(--text-color, #6F8FAF);
}

.hideOnMobile span{
    margin-right: 5px;
}


.sidebar{
  position: fixed;
  top: 0;
  right:0;
  row-gap: 20px;
  height: 100vh; /* Full viewport height */
  width: 100vw;  /* Full viewport width */
  background-color:  rgba(255,255, 255, 0.2);
  -webkit-backdrop-filter: blur(10px);
  backdrop-filter: blur(10px);
  box-shadow: -10px 0 10px rgba(0, 0, 0, 0.1);
  flex-direction: column;
  align-items: center;
  justify-content: flex-start; 
  z-index: 7000;
  display: none;
}

.sidebar.active {
  display: flex !important;
  opacity: 1;
}

.sidebar a{
  display: block;              /* Make links fill available width */
  text-align: center;          /* Center the text horizontally */
  color: black;
  font-size: 20px;
  width: 100%;
  padding: 12px 0;             /* Add a bit of spacing */
  text-decoration: none;
}

.sidebar a:hover{
  color: var(--text-color, #6F8FAF)
}

.menubutton{
  z-index: 6000;
  display: none;
  cursor: pointer;
}

/* Container for everything */
#heroSection {
  position: relative;
  width: 1000px;
  height: 1000px;
  overflow: hidden;
  top:50px;
  left:100px;
}

/* Image wrapper — fixed behind logo */
#imagesWrapper {
  position: absolute;
  width: 100%;
  height: 100%;
  top: 0;
  left: 350px;
  z-index: 1;
}

/* Individual images */
.slide {
  position: absolute;
  width: 80%;
  height: 800px;
  object-fit: scale-down;
  opacity: 0;
  top: 0;
  transition: opacity 1.5s ease, transform 2s ease;
}

.slide.active {
  opacity: 1;
  transform: translateY(0);
}

.slide.exit-up {
  opacity: 0;
  transform: translateY(-20%);
}

.slide.exit-down {
  opacity: 0;
  transform: translateY(20%);
}

/* Center logo text */
#logoText {
  position: absolute;
  top: 35%;
  left: 65%;
  width: 100%;
  transform: translate(-50%, -50%);
  color: black;
  font-family: 'Helvetica Neue', sans-serif;
  font-weight: 700;
  z-index: 2; /* Always on top */
  pointer-events: none; /* So it doesn’t block interactions */
}

#logoText .text1{
    font-size: 48px;
}

#logoText .text2{
    font-size: 100px;
}

/* FIXED: Single media query for tablets/mobile */
@media screen and (max-width: 1024px){
  .logo {
    padding: 0 10px;
  }

  .hideOnMobile{
    display: none;
  }

  .menubutton{
    position: absolute;
    display: block;
    right: 0px;
    font-size: 40px; /* Slightly smaller for mobile but still bigger than before */
    top: 0px; /* Position it higher on small screens too */
  }

  #heroSection {
    position: relative;
    width: 100%;
    height: 100vh;
    top: 0;
    left: 0;
  }

  /* Center image wrapper on mobile */
  #imagesWrapper {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 90%;
    max-width: 650px;
    height: 70vh;
  }

  /* CRITICAL: Keep position absolute so images overlay each other */
  .slide {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 100%;
    height: auto;
    max-height: 70vh;
    object-fit: contain;
    opacity: 0;
    transition: opacity 1.5s ease, transform 2s ease;
  }

  .slide.active {
    opacity: 1;
    transform: translate(-50%, -50%) translateY(0);
  }
  
  .slide.exit-up {
    opacity: 0;
    transform: translate(-50%, -50%) translateY(-10%);
  }
  
  .slide.exit-down {
    opacity: 0;
    transform: translate(-50%, -50%) translateY(10%);
  }

  /* Position logo text */
  #logoText {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 90%;
    text-align: center;
    z-index: 10;
    color:white;
  }

  #logoText .text1{
    font-size: 36px;
  }

  #logoText .text2{
    font-size: 72px;
  }
}

/* Smaller mobile screens */
@media(max-width: 434px){ 
  .sidebar{
      width: 100%;
      height: 100%;
  }

  .sidebar a{
      left: 50%;
  }

  /* Move images wrapper higher */
  #imagesWrapper {
    top: 40%; /* Moved up from 50% */
  }

  /* Adjust slide positioning */
  .slide {
    top: 0; /* Changed from 50% */
    transform: translate(-50%, 0); /* Adjusted transform */
  }

  .slide.active {
    opacity: 1;
    transform: translate(-50%, 0) translateY(0);
  }
  
  .slide.exit-up {
    opacity: 0;
    transform: translate(-50%, 0) translateY(-10%);
  }
  
  .slide.exit-down {
    opacity: 0;
    transform: translate(-50%, 0) translateY(10%);
  }

  #logoText .text1{
    font-size: 28px;
  }

  #logoText .text2{
    font-size: 56px;
  }
}