* {
    box-sizing: border-box;
}

header {
  height:10%;
}
body {
    background-color: white;
    background-repeat: repeat;
    font-family: 'Lato', sans-serif;
    color: #111;
    line-height: 1.6;
    margin: 0;
    height: 100%;
}

.container {
    margin-top: 2%; /* Adjust the margin as needed */
    padding: 0;
    display: flex;
    align-items: flex-start;
    justify-content: center;
    width: 100%;
    min-height: 100%;
}


main {
    padding: 0rem;
}

h1, h2, h3, h4 {
    margin-bottom: .5rem;
    font-size: 1.5rem;
    font-weight: 500;
}

p, li, .caption {
    margin-bottom: 0.5rem;
    line-height: 1.8em;
    font-weight: 400;
    font-size: .90rem;
    color: #737a7d;
}

footer {
    background-color: transparent;
    color: #fff;
    text-align: center;
    padding: 0rem 0;
    position: relative;
    bottom: 0;
    width: 100%;
    font-size: .75rem;
}

.loading-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.8);
    display: flex;
    justify-content: center;
    align-items: center;
    z-index: 9999;
  }
  
  .loading-spinner {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    border: 4px solid #fff;
    border-top-color: #888;
    animation: spin 1s linear infinite;
  }
  
  @keyframes spin {
    to {
      transform: rotate(360deg);
    }
  }
  
  /* Navbar Styles */
.navbar {
  display: flex;
  justify-content: flex-end;
  align-items: center;
  position: relative;
  top: 0; /* Position the navbar at the top */
  width: 100%;
  height: 15%;
  background-color: transparent;
  font-family: system-ui, -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Oxygen, Ubuntu, Cantarell, 'Open Sans', 'Helvetica Neue', sans-serif;
  color: gray;
  padding: 2rem;
  z-index: 999;
  text-transform: uppercase;
}



.navbar a.navbar-link {
    text-decoration: none;
    font-size: 1rem;
    font-weight: 500;
    margin-left: 1rem;
    color: gray;
    letter-spacing: .15em;
    transition: background-color 0.5s ease; /* Add transition for background-color */
    transition: color 0.5s ease;
}

.navbar a:hover {
    text-decoration: none;
    border-radius: 5%;
    background-color: darkgray;
    color: white;
}



.navbar-name {
    margin-left: auto;
    font-size: 2.0rem;
    font-weight: bold;
}

/* Hamburger */
.hamburger {
  cursor: pointer;
  width: 30px;
  height: 24px;
  position: relative;
  display: none;
  background: transparent;
  border: none;
}

.hamburger-box {
  width: 30px;
  height: 24px;
  display: inline-block;
  position: relative;
}

.hamburger-inner {
  width: 100%;
  height: 3px;
  background-color: gray;
  position: absolute;
  left: 0;
  transform: rotate(0);
  transition: 0.55s ease-in-out;
}

.hamburger-inner::before,
.hamburger-inner::after {
  content: '';
  display: block;
  width: 100%;
  height: 3px;
  background-color: gray;
  position: absolute;
  left: 0;
  transition: 0.55s ease-in-out;
}

.hamburger-inner::before {
  top: -10px;
}

.hamburger-inner::after {
  bottom: -10px;
}

/* On hamburger clicked */
.hamburger.is-active .hamburger-inner {
  transform: rotate(135deg);
}

.hamburger.is-active .hamburger-inner::before {
  top: 0;
  transform: rotate(90deg);
}

.hamburger.is-active .hamburger-inner::after {
  bottom: 0;
  transform: rotate(90deg);
}

/* Navbar navigation links */
.navbar-nav {
  transition: max-height 0.3s ease-in-out;
  max-height: none;
  overflow: visible;
  position: absolute;
  min-width: 30%;
  max-width: 75%;
  top: 100%; /* Dropdown starts right after the navbar */
  background: white; /* or any color you prefer */
  transition: transform 0.3s ease-in-out; /* adjust as needed */
  transform: translateY(-100%); /* this will initially hide the menu above the navbar */
}

/* On hamburger clicked */
.navbar.is-active .navbar-nav {
  max-height: 300px; /* Adjust as needed */
  transform: translateY(0);
}

/* Styles for small screens */
@media screen and (max-width: 768px) { /* Adjust breakpoint as needed */
  .hamburger {
    display: block;
  }

  .navbar-nav {
    max-height: 0;
    overflow: hidden;
  }
  
  .navbar-nav a.navbar-link {
    display: block;
    text-align: center;
  }
}


/* Index Page Styles */
.index {
    background: url('../images/background.jpeg') no-repeat center center fixed;
    background-position: center;
    background-size: cover;
    width: 100%;
    height: 100vh;
    opacity: 0;
    transition: opacity 0.5s ease;
    position: relative;
    z-index: -10;
}

.index.fade-in {
  opacity: 1;
}

.index-navbar {
    display: flex;
    justify-content: center;
    align-items: flex-end;
    position: fixed;
    bottom: 17.4%;
    right: 3%;
    width: 100%;
    background-color: transparent;
    font-family: system-ui, -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Oxygen, Ubuntu, Cantarell, 'Open Sans', 'Helvetica Neue', sans-serif;
    color: white; 
    padding: 1rem;
    z-index: 999;
    text-transform: uppercase;
    
}

.index-navbar a.index-navbar-link  {
    text-decoration: none;
    font-size: 1rem;
    font-weight: 700;
    margin-left: 1rem;
    color: white; 
    letter-spacing: .15em;
    text-shadow: 1px 1px 2px rgba(0, 0, 0, 0.5);
    
}

.index-navbar a:hover {
    text-decoration: none;
    border-radius: 5%; /* Adjust the radius as needed */
    background-color: white; /* Update with your desired highlight color */
    color: black; /* Update with your desired text color */
  }

.index-name {
    margin-left: auto;
    font-size: 2.0rem;
    font-weight: bold;
}

/* Modal Styles */
.modal {
    display: none;
    position: fixed;
    z-index: 1000;
    padding-top: 50px;
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
    overflow: auto;
    background-color: rgba(0, 0, 0, 0.9);
}

.modal-content {
    margin: auto;
    display: block;
    width: auto;
    height: auto;
    max-width: 90%;
    max-height: 90%;
}

.modal-close {
    color: #fff;
    font-size: 40px;
    font-weight: bold;
    position: absolute;
    top: 10px;
    right: 25px;
    cursor: pointer;
}

/* Gallery styles */

.gallery {
    display: flex;
    flex-wrap: wrap;
    justify-content: space-between;
    align-items: stretch; /* Align items to the middle */
    width: 100%;
  }
  
.gallery-item {
    flex: 1 1 calc(33.33% - 1rem);
    max-width: calc(33.33% - 1rem);
    margin: 0.5rem;
    position: relative; /* add this */
    overflow: hidden;
    box-sizing: border-box;
    opacity: 0;
    transition: opacity 0.3s ease;  
  }

.gallery-item:before {
    content: "";
    float: left;
    padding-top: 100%;
}

.gallery-item img {
    position: absolute; /* add this */
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    cursor: pointer;
    transition: opacity 0.5s ease, box-shadow 0.5s ease;
    border: 1px solid transparent;
    box-shadow: 0 0 0 transparent;  
  }
 
.gallery-item img:hover {
    box-shadow: 0 0 10px rgba(0, 0, 0, 0.5); /* Update the box shadow on hover */
  }

.fade-in {
  opacity: 1;
  animation: fade-in-animation 0.5s ease-in-out forwards;
}

@keyframes fade-in-animation {
  from {
    opacity: 0;
  }
  to {
    opacity: 1;
  }
}

/* About styles */
.about-me {
  width: 50%;
  margin: 0 auto;
}

.about-me p {
  width: 90%;
  height: auto;
}

.about-me h2 {
  margin-top: .5rem;
}

.about-me img {
  max-width: 40%;
  height: auto;
  margin-top:1rem;
}

.about-pic {
  max-height: 100%;
  max-width: 50%;
  display: flex;
  justify-content: center;
  align-items: center;
  opacity: 0;
  animation: fade-in-animation 0.5s ease-in-out forwards;
  margin-top: 3%;
}

.about-pic img {
  width: 75%;
  height: auto;
}

@media (max-width: 768px) { 
  .container {
      flex-direction: column;
      align-items: center;
  }
  .about-me {
      width: 90%;
  }
  .about-pic {
      max-width: 60%;
  }
  .about-me img {
      max-width: 60%;
  }
  .about-pic img {
      width: 100%;
      max-width: 100%;
      height: auto;
  }
}

