/* Import Google Font */
@import url('https://api.fontshare.com/css?f[]=Satoshi&display=swap');

/* Base Reset */
* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

body {

  font-family: 'Satoshi', sans-serif;
  font-weight: 500;
  background-color: #f5f5f2;
  color: #333;
  line-height: 1.2;
  overflow-x: hidden;
}


/* Ensure the entire page uses Flexbox */
html, body {
  height: 100%; /* Full height for the page */
  margin: 0;
  display: flex;
  flex-direction: column;
}

/* Content Section */
.content {
  flex: 1; /* Allows the content to grow and take available space */
  padding-bottom: 10rem; /* Space at the bottom of the content */
}






/* Header Styles */
header {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  background-color: transparent;
  padding: 2rem 2rem;
  display: flex;
  justify-content: space-between;
  align-items: center;
  z-index: 1000;
}

.logo {
  font-size: 1.1rem;
  font-weight: 500;
  color: #333;
}

.nav-links {
  display: flex; /* Default visibility for non-mobile */
  flex-direction: row;
  align-items: center;
  list-style: none;
  gap: 2rem; /* Space between items */
}

.nav-links a {
  text-decoration: none;
  font-weight: 500;
  color: #333;
  font-size: 1.1rem;
  transition: color 0.3s ease;
}

.nav-links a:hover {
  color: #888;
}

/* Hamburger Menu */
.hamburger {
  display: none; /* Hidden by default */
  flex-direction: column;
  cursor: pointer;
  position: absolute; /* Allow precise positioning */
  right: 2rem; /* Align to the right of the viewport */
  top: 50%; /* Center vertically */
  transform: translateY(-50%); /* Correct vertical centering */
  z-index: 1001;
}

.hamburger span {
  background-color: #333;
  height: 3px;
  width: 25px;
  margin: 4px 0;
  transition: transform 0.3s ease, opacity 0.3s ease;
  transform-origin: center;
}

.hamburger.active span:nth-child(1) {
  transform: rotate(45deg) translate(0.5rem, 0.5rem);
}

.hamburger.active span:nth-child(2) {
  opacity: 0; /* Middle bar disappears */
}

.hamburger.active span:nth-child(3) {
  transform: rotate(-45deg) translate(0.5rem, -0.5rem);
}

.nav-links.mobile {
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background-color: #fff;
  z-index: 999;
}

/* Responsive Styles */
@media (max-width: 768px) {
  .nav-links {
    display: none; /* Hide navigation by default for mobile */
  }

  .hamburger {
    display: none; /* Show hamburger menu on smaller screens */
  }

  .nav-links.mobile {
    display: none; /* Show menu when hamburger is active */
  }
}

/* Hero Section */
#hero {
  margin-top:10rem;
  display: flex;
  align-items: flex-start;
  justify-content: flex-start;
  text-align: left;
  padding: 2rem 2rem;
}

#hero h1 {
  font-size: 3rem;
  font-weight: 500;
  line-height: 1.2;
  letter-spacing: 0.01em;
  color: #333;
  max-width: 1200px; /* Limit the width of the hero text */


}


    
#hero p {
  font-size: 1.25rem;
  font-weight: 400;
  margin-top: 1rem;
  color: #555;
}

/* Section Styling */
section {
  max-width: 5400px;
  margin: 0 auto;
  padding: 2rem 2rem;
}

section:first-of-type {
  margin-top: 25vh;
}

section h2 {
  font-size: 1.7rem;
  margin-bottom: -0.1rem;
  font-weight: 500;
}

section h3 {
  font-size: 1.7rem;
  margin-bottom: 2rem;
  font-weight: 500;
}

section h5 {
  font-size: 1rem;
  margin-bottom: 2rem;
  font-weight: 500;
  line-height: 1.5;
}

section p {
  font-size: 1.1rem;
  font-weight: 400;
  margin-bottom: 2rem;
}



/* Portfolio Section */
.portfolio {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  grid-template-rows: masonry;
  gap: 4rem 1rem;
  margin: 0 auto;
}

.portfolio-item {
  
  border-radius: 5px;
  transition: transform 0.3s;col
  text-align: left; 
}

.portfolio-item img {
  width: 100%;
  object-fit: cover;
  display: block; /* Ensures no extra gaps below the image */
}

.portfolio-description {
  margin-top: 10px;

}

.grey-line {
  border-top: 1px solid #999; /* Grey line with 2px width */
  padding-top: 1rem; /* Adds spacing above the line */
}


/*===== All Button Style =====*/

.button-container {
    margin-top: 1rem; /* Space between text and button */
    text-align: center; /* Center the button */
}

.round-button {
    padding: 10px 30px;
    border: 0.5px solid;
    border-color: darkgray;
    background-color: transparent;
    color: darkgray;
    font-size: 1rem;
    font-weight: 500;
    border-radius: 50px; /* Completely round edges */
    outline: 1px solid transparent;
    cursor: pointer;
    transition: all 0.3s ease;
    margin-top: 1rem;
}

/* On hover: change color to white and background to blue */
.round-button:hover {
    background-color: #013231;
    color: white;
    border: 1px solid;
    border-color: #013231;
}

/* On active: optional style when clicked */
.round-button:active {
    background-color: #013231;
}



/* 4 grid Section */
.grid-four {
  display: grid;
  grid-template-columns: repeat(5, 1fr); /* Adjusted for four columns */

}
  

.grid-four-item {
  border-radius: 5px;
  transition: transform 0.3s; /* Fixed */
  text-align: left;
}

/* Sticky Footer */
#grid-four {
  padding: 0rem 2rem;
  position: relative; 
  width: 100%;
  bottom: 0;
  margin-top: auto;
}



  
  



.hover-container {
    position: relative;
    display: inline-block;
    cursor: none; /* Hides the default cursor */
}

.image {
    width: 100%; /* Adjust as needed */
    display: block;
}

.hover-text {
    position: absolute;
    pointer-events: none; /* Ensures the circle doesn't block hover */
    width: 7rem; /* Adjust for desired circle size */
    height: 7rem;
    background-color: #013231;
    font-weight: 500;
    font-size: 1.5rem;
    color: white;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    transform: translate(-50%, -50%);
    opacity: 0; /* Starts invisible */
    visibility: hidden; /* Hidden by default */
    transition: opacity 0.5s ease, transform 0.5s ease; /* Smooth appearance and movement */
}

.hover-container:hover .hover-text {
    visibility: visible;
    opacity: 1; /* Smooth fade-in */
}







}




/* Mobile View Adjustments */
@media (max-width: 1024px) {
  #hero h1 {
    font-size: 2.5rem;
    line-height: 1.3;
  }

section h2 {
  font-size: 1.5rem;
  margin-bottom: -0.1rem;
  font-weight: 400;
}

section h3 {
  font-size: 1.5rem;
  margin-bottom: 1rem;
  font-weight: 400;
}

section h5 {
  font-size: 1.5rem;
  
  font-weight: 400;
}

  .portfolio {
    grid-template-columns: 1fr; /* Single column layout for mobile */
  }


}

/* Mobile View Adjustments */
@media (max-width: 768px) {
  #hero h1 {
    font-size: 2rem;
    line-height: 1.3;
  }

  #hero p {
    font-size: 1rem;
  }

.round-button {
  font-size: 0.75rem;
  }

section h2 {
  font-size: 1rem;
  margin-bottom: -0.1rem;
  font-weight: 400;
}

section h3 {
  font-size: 1rem;
  margin-bottom: 1rem;
  font-weight: 400;
}

section h5 {
  font-size: 1rem;
  
  font-weight: 400;
}

  .portfolio {
    grid-template-columns: 1fr; /* Single column layout for mobile */
  }
   .grid-four {
    grid-template-columns: 1fr; /* Single column layout for mobile */
  }
}
}





@keyframes slide-in-from-bottom {
    from {
        opacity: 0;
        transform: translateY(100px); /* Start from below the viewport */
    }
    to {
        opacity: 1;
        transform: translateY(0); /* Fully visible and in place */
    }
}

/* Specific styles for different elements (headlines, text blocks, images) */
.animate-on-scroll {
    opacity: 0;
    transform: translateY(10px); /* Start from below */
    animation: slide-in-from-bottom 1s ease-out forwards;
}

/* Optional: To apply delays if needed */
.animate-on-scroll:nth-child(odd) {
    animation-delay: 0.5s;
}
