*{
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    font-family: 'Inter', sans-serif;
}

body{
    min-height: 100vh;
    background-size: cover;
    background-position: center;
}

/*Mainpage Banner Img - Section */

.cover-section {
    position: relative;
    height: 900px; 
    overflow: hidden;
}

.cover-section img {
    width: 100%;
    height: 100%;
    object-fit: cover; 
}

.cover-section .content {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    color: white;
    text-align: center;
    z-index: 1;
}

.cover-section h1 {
    font-size: 2em;
    margin-bottom: 10px;
}

.cover-section p {
    font-size: 1.2em;
}

/* Desktop Nav */
.header{
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    padding: 1.3rem 10%;
    display: flex;
    justify-content: space-between;
    align-items: center;
    z-index: 100;
}

.header::before{
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: -1;
}

.logo{
    color: #F7C359;
    font-size: 2.4em;
    font-weight: bold;
    font-family: 'Inter', sans-serif;
    text-decoration: none;
}

.navbar a{
    color: #F7C359;
    text-decoration: none;
    margin-left: 2.5rem;
}

#check {
    display: none;
}

.icons{
    position: absolute;
    font-size: 2.8rem;
    right: 5%;
    cursor: pointer;
    display: none;
    color: #F7C359;
}


.about{
    display: flex;
    margin-top: 10em;
}

/*Mobile Navigation*/

@media (max-width: 992px){
    .header {
        padding: 1.3rem 5%; 
    }
}

@media (max-width: 768px){
    .icons {
        display: inline-flex;
    }

    #check:checked~.icons #menu-icon {
        display: none;
    }

    .icons #close-icon{ 
        display: none;
    }

    #check:checked~.icons #close-icon {
        display: block;
    }

    .header{
        background-color: rgba(0, 0, 0, .1);
        backdrop-filter: blur(.20em);
    }

    .navbar {
        position: absolute;
        top: 100%;
        left: 0;
        width: 100%;
        height: 0;
        background-color: rgba(0, 0, 0, .1);
        backdrop-filter: blur(4em);
        overflow: hidden;
        transition: .3s ease;
    }

    #check:checked~.navbar {
        height: 17.7rem;
    }

    .navbar a {
        display: block;
        font-size: 1.1rem;
        margin: 1.5rem 0;
        text-align: center;
        transform: translateY(-50px);
        transition: 3s ease;
    }

    #check:checked~.navbar a{
        transform: translateY(0);
    }

}


/* About Me Section*/
.image img {
  margin-top: -10em;
  height: 100%;
  width: 20em;
  filter: grayscale(100%); /* Apply grayscale filter by default */
  transition: filter 0.3s ease; /* Add transition effect */
}

.image img:hover {
  filter: grayscale(0%); /* Remove grayscale filter on hover */
}

.container {
  display: flex;
  align-items: center;
  justify-content: center;
  margin-top: 2em;
}

.image {
  max-width: 50%; /* Adjust as needed */
}

.text {
  max-width: 33%; /* Adjust as needed */
  padding: 0 18px; /* Add some space between image and text */
}

.text p {
  margin-left: 2em;
  padding-top: 1em;
  line-height: 1.35em;
  color: #C44E37;
}

.main-text {
  padding-top: 5em;
  padding-bottom: 5em;
  text-align: left;
}

.main-text h1 {
  color: white;
}

.header-text h1,
.header-text h2 {
  color: #b74b36;
  margin-left: 1.30em;
}

.text h1 {
  margin-top: -8em;
}

/* Media query for smaller screens */
@media screen and (max-width: 768px) {
    .container {
      flex-direction: column;
      align-items: center;
    }
    
    .image {
      max-width: 100%;
      margin-bottom: 1em;
    }
    
    .text {
      max-width: 100%;
      margin-top: 13em;
      text-align: left;
      margin-bottom: -5em;
    }

    .text p{
        margin-left: .10em;
        margin-right: 1em;
    }

    .text button{
        margin-left: -.10em;
    }
  
    .header-text h1,
    .header-text h2 {
      margin-left: 0; /* Center header text on smaller screens */
    }
  }


/*Button*/

.button-74 {
  margin-top: 2em;
  margin-left: 1.65em;
  background-color: #C44E37;
  border: 2px solid #b74b36;
  box-shadow: #422800 4px 4px 0 0;
  color:#F7C359;
  cursor: pointer;
  display: inline-block;
  font-weight: 600;
  font-size: 18px;
  padding: 0 18px;
  line-height: 50px;
  text-align: center;
  text-decoration: none;
  user-select: none;
  -webkit-user-select: none;
  touch-action: manipulation;
}

.button-74:hover {
  background-color: #d5573e;
}

.button-74:active {
  box-shadow: #422800 2px 2px 0 0;
  transform: translate(2px, 2px);
}

@media (min-width: 768px) {
  .button-74 {
    min-width: 120px;
    padding: 0 25px;
  }
}

@media (min-width: 768px) {
  .button-74 {
    min-width: 120px;
    padding: 0 25px;
  }
}

    /* Responsive styling */
    @media (max-width: 768px) {
        .container {
            flex-direction: column;
        }
        .text, .image {
            max-width: 100%; 
            text-align: left;
            margin-left: 1.50em;
        }
        .image{
            margin-left: 50%;
            margin-right: 55%;
        }
    }


/* Project Section */
.project img {
    transition: transform 0.3s ease; /* Add transition effect */
  }
  
  .project img:hover {
    transform: scale(1.05); /* Scale the image slightly on hover */
  }
  
.section-card {
    background-color: #b74b36;
    padding: 20px;
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1);
    max-width: 1200px;
    margin: 0 auto;
    margin-top: 10em;
    margin-bottom: 5em;
}
.title {
    color: #F7C359;
    font-size: 32px;
    font-weight: bold;
    margin-bottom: 20px;
    display: flex;
    justify-content: space-between;
    align-items: center;
}
.projects-container {
    display: flex;
    flex-direction: column; /* Default: column layout */
    align-items: center; /* Center items horizontally */
    margin-bottom: 20px;
}
.project {
    width: 100%; /* Take full width */
    margin-bottom: 20px; /* Add margin between each project */
    text-align: center;
    overflow: hidden;
}
.project img {
    width: 100%; /* Fixed width */
    height: 500px; /* Fixed height */
    object-fit: cover;
}
.button {
    background-color: #F7C359;
    color: #b74b36;
    padding: 10px 20px;
    text-decoration: none;
    font-weight: bold;
    transition: background-color 0.3s ease;
}
.button:hover {
    background-color: #f5c66a;
}

/* Media Query for Mobile */
@media (min-width: 576px) {
    .projects-container {
        flex-direction: row; /* Change layout to row for screens larger than 576px */
        justify-content: space-between; /* Distribute projects horizontally */
    }
    .project {
        width: calc(33.33% - 20px); /* Show three columns */
        margin: 0 10px; /* Add margin between columns */
    }
}

/* Media Query to Hide Button on Mobile */
@media (max-width: 576px) {
    .button {
        display: none; /* Hide button on screens smaller than 576px */
    }
}

/*Footer */
footer {
    text-align: center;
    margin-top: 50px; /* Adjust as needed */
    margin-bottom: 30px;
}
.social-icons {
    margin-bottom: 20px; /* Adjust as needed */
}

.social-icons img{
    height: 30px;
}