@import url('https://fonts.googleapis.com/css2?family=Poppins:wght@100;200;300;400;500;600&display=swap');

html {
    scroll-behavior: smooth;
    overflow-x: hidden;
}

*{
    padding: 0;
    margin: 0;
    font-family: 'Poppins', sans-serif;
    box-sizing: border-box;
}

body {
    width: 100%;
    background: linear-gradient(to right, rgb(255, 255, 255), rgb(254, 215, 173));
    /* #CAD5E2, #90A1B9 */
    overflow-x: hidden;
}

nav{
    width: 100%;
    height: 10vh;
    position: sticky;
}


.nav-container {
  margin: 0 11% 0 9%;
  padding-top: 15px;
  width: auto;
  height: 100%;
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.logo{
    padding-top: 1.5vw;
    display: flex;
    align-items: center;
    color: black;
    font-size: 2rem;
    font-weight: bolder;
}

.MR_Logo {
    width: 7.5vw;
}

.logo h1 {
    color: rgb(109,67, 0);
    text-shadow: 0 0 10px rgb(109,67, 0);
}

.hamburg {
    cursor: pointer;
    position: absolute;
    right: 7.5%;
    color: black;
    font-size: 2rem;
    display: none;
}

.cancel {
  cursor: pointer;
  position: absolute;
  right: 7.5%;
  top: 10px;
  color: black;
  font-size: 2rem;
  display: none;
}

.nav-container .links {
    display: flex;
    gap: 3rem;
    align-items: center;
}

.nav-container .links a{
    position: relative;
    font-size: 1.2rem;
    color: black;
    text-decoration: none;
    font-weight: 500;
    transform: 0.3s linear;
}

.nav-container .links a::before{
    position: absolute;
    content: "";
    bottom: -3px;
    left: 0;
    width: 0%;
    height: 3px;
    background-color: rgb(109,67, 0);
    transition: 0.2s linear;
}

.nav-container .links a:hover::before{
    width: 100%;
}

.nav-container .contact-btn{
    background-color: transparent;
    padding: 5px 20px;
    border-radius: 20px;
    border: 2px solid rgb(109,67, 0);
    transition: 0.2s linear;
}

.nav-container .contact-btn a{
    color: black;
    transition: 0.3s linear;
}

.nav-container .contact-btn:hover, .nav-container .contact-btn:hover a{
    background-color: rgb(109,67, 0);
    color: black;
}


.dropdown{
    position: absolute;
    z-index: 100;
    top: 0;
    transform: translateY(-500px);
    width: 100%;
    height: auto;
    backdrop-filter: brightness(40%) blur(3px);
    box-shadow: 0 0 20px black;
    transition: 0.2s linear;
}

.dropdown .links a{
    color: white;
    display: flex;
    text-decoration: none;
    justify-content: center;
    padding: 15px 0;
    align-items: center;
    transition: 0.2s linear;
}

.dropdown .links a:hover{
    background-color: rgb(109,67, 0);
}

section{
    width: 100%;
    height: auto;
}

.main-container{
    width: 100%;
    height: auto;
    display: flex;
    justify-content: space-evenly;
    align-items: center;
}

.main-container .image {
  display: flex;
  justify-content: center;
  align-items: center;
  width: 750px; /* Limits the container width */
}

.main-container .image img {
  width: 650px;  /* Makes the image smaller */
  height: 650px; /* Keeps it proportional */
  border-radius: 50%; /* Turns the image into a perfect circle */
  object-fit: cover; /* Ensures it does not stretch */
  box-shadow: 5px 5px 15px rgba(0, 0, 0, 0.2); /* Optional shadow for styling */
}
/* @media (width >= 1250px) {
    .main-container .image img 
    {
      width: 50vw;
      height: 50vw;
    }
  } */


.main-container .content{
    color: black;
    width: 40%;
    min-height: 100px;
}

.content h1{
    font-size: clamp(1rem, 2rem + 5vw, 3rem);
}

.content h1 span{
    color: rgb(109,67, 0);
    text-shadow: 0 0 10px rgb(109,67, 0);
}

.content .typewriter{
    font-weight: 600;
    font-size: clamp(1rem, 1rem + 5vw, 2rem);
}

.content .typewriter span{
    color: rgb(109,67, 0);
    font-size: 2.5rem;
    text-shadow: 0 0 5px rgb(109,67, 0);
    position: relative;
    transition: 0.3s linear;
}

.typewriter span::before{
    content: "Computer Engineer";
    animation: words 15s infinite;
}

.typewriter span::after{
    content: "";
    position: absolute;
    width: calc(100% + 8px);
    height: 100%;
 }


@keyframes words {
    0%, 33%{
        content: "Computer Engineer";
    }
    34%, 66%{
        content: "Electrical Engineer";
    }
    67%, 100%{
        content: "Project Lead";
    }
}

.content p{
    font-size: clamp(0.4rem, 0.2rem + 9vw, 1rem);
    margin: 10px 0;
}

.social-links i{
    display: inline-flex;
    justify-content: center;
    align-items: center;
    width: 3rem;
    height: 3rem;
    background-color:transparent;
    border: 0.2rem solid rgb(109,67, 0);
    border-radius: 50%;
    color:rgb(109,67, 0);
    margin: 5px 10px;
    font-size: 1.5rem;
    transition: 0.2s linear;
}

.social-links i:hover{
    scale: 1.3;
    color: white;
    background-color: rgb(109,67, 0);
    filter: drop-shadow(0 0 10px rgb(109,67,0));
}

.content button{
    width: 40%;
    height: 6vh;
    margin: 30px;
    background-color: rgb(109,67, 0);
    color: white;
    border: none;
    outline: none;
    font-size: 100%;
    font-weight: 700;
    border-radius: 5px;
    transition: 0.2s linear;
}

.content button:hover{
 scale: 1.1;
 color: rgb(109,67, 0);
 border: 2px solid rgb(109,67, 0);
 background-color: transparent;
 font-weight: 700;
 box-shadow: 0 0 40px rgb(109,67, 0);
}

@media (max-width:884px) {
    body{
        overflow-y: visible;
    }

    nav .logo{
        position: absolute;
        top: 16px;
        left: 15px;
        font-size: 1.5rem;
    }

    .main-container {
        display: flex;
        flex-direction: column;
    }

    .nav-container .links{
        display: none;
    }

    .hamburg,.cancel{
        display: block;
    }

    .main-container .content{
        width: 80%;
    }

    .social-links i{
        width: 2.5rem;
        height: 2.5rem;
        font-size: 1.5rem;
    }
    .cancel{
        color: white;
    }

    .main-container .image{
        width: 80%;
        margin-bottom: 0px;
    }
}



#projects {
  display: flex;
  justify-content: center;
  padding-top: 167px;
}

#projects h2 {
    font-size: 2.5rem;
    color: rgb(109,67,0);
    text-align: center;
    margin-bottom: 1rem;
}

.projects-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 2rem;
}



.project-card:hover {
    transform: translateY(-10px);
    box-shadow: 0 10px 30px rgba(0,0,0,0.2);
}

.project-card h3 {
    color: rgb(109,67,0);
    margin-bottom: 10px;
}

.project-card p {
    font-size: 1rem;
    color: #333;
}



#about {
    padding: 4rem 2rem;
    background: linear-gradient(to right, #fff8f0, #ffe5ca);
  }
  
  .about-container {
    max-width: 1200px;
    margin: 0 auto;
  }
  
  #about h2 {
    font-size: 2.5rem;
    text-align: center;
    margin-bottom: 2rem;
  }
  
  .about-flex {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    justify-content: space-between;
    gap: 2rem;
  }
  
  .about-text {
    flex: 1 1 500px;
    font-size: 1.1rem;
    line-height: 1.8;
  }
  
  .about-photo img {
    width: 300px;
    height: auto;
    border-radius: 16px;
    box-shadow: 0 0 20px rgba(0, 0, 0, 0.1);
  }
  
  #contact {
    padding: 80px 20px;
    background: linear-gradient(to right, #fdf6ec, #f5e6d2);
    text-align: center;
  }
  
  .contact-container h2 {
    font-size: 2.5rem;
    margin-bottom: 10px;
    color: #2e2e2e;
  }
  
  .contact-container p {
    font-size: 1.1rem;
    color: #555;
    margin-bottom: 30px;
  }
  
  .contact-icons {
    display: flex;
    justify-content: center;
    gap: 25px;
  }
  
  .contact-icons a {
    font-size: 28px;
    color: #5a3e1b;
    background: white;
    padding: 15px;
    border-radius: 50%;
    box-shadow: 0px 5px 15px rgba(0, 0, 0, 0.1);
    transition: all 0.3s ease;
  }
  
  .contact-icons a:hover {
    transform: translateY(-5px) scale(1.1);
    background: #ffe0b2;
  }
  

  .projects-container {
    width: 1292px;
    padding: 0 20px;
    text-align: center;
  }
  
  .projects-container h2 {
    font-size: 2.5rem;
    margin-bottom: 30px;
  }

  

  
  .carousel {
    display: flex;
    gap: 20px;
    overflow-x: auto;
    scroll-behavior: smooth;
    padding-bottom: 10px;
    scrollbar-width: none;
    padding: 15px 0;
  }
  
  .carousel::-webkit-scrollbar {
    display: none;
  }
  
  .project-card {
    width: 400px;
    flex: 0 0 auto;
    background: #ffe6c7;
    padding: 20px;
    border-radius: 20px;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.1);
    text-align: left;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
  }
  
  .project-image {
    width: 100%;
    border-radius: 12px;
  }

  .drone-image{
    width: 100%;
    border-radius: 12px; 
  }

  .leaf-image {
    height: 126%;
  }

  .image-wrapper {
    width: 100%;
    height: 260px;
    overflow: hidden;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-top: 15px;
    border-radius: 12px;
  }

  .leaf-wrapper {
    width: auto;
    height: 260px;
    overflow: hidden;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-top: 15px;
    border-radius: 12px;
  }

  .drone-wrapper {
    width: 100%;
    height: 260px;
    overflow: hidden;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-top: 15px;
    border-radius: 12px;
    background-color: white;
  }
  .project-card h3 {
    margin-top: 0;
    color: #5a3e1b;
  }
  .project-card p {
    margin-top: 10px;
  }
  
  .carousel-btn {
    width: 40px;
    height: 40px;
    position: absolute;
    top: 40%;
    background: white;
    border: none;
    border-radius: 50%;
    padding: 10px;
    font-size: 20px;
    cursor: pointer;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.1);
    z-index: 10;
    transition: background 0.3s ease;
  }
  
  .carousel-btn:hover {
    background: #ffcc99;
  }
  
  .carousel-btn.left {
    left: 10px;
    transform: translateY(-60%);
  }
  
  .carousel-btn.right {
    right: 10px;
    transform: translateY(-60%);
  }

  .carousel-wrapper {
    position: relative;
    width: 100%;
    max-width: 100%;
    overflow-x: hidden;
    margin: 0 auto;
  }
  
  .carousel {
    display: flex;
    gap: 20px;
    overflow-x: auto;
    scroll-behavior: smooth;
    padding-bottom: 10px;
    scrollbar-width: none;
  }
  
  .carousel::-webkit-scrollbar {
    display: none;
  }
  
 
  
  /* Arrow buttons */
  .carousel-btn {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    background: white;
    border: none;
    border-radius: 50%;
    padding: 10px;
    font-size: 20px;
    cursor: pointer;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.1);
    z-index: 10;
    transition: background 0.3s ease;
  }
  
  .carousel-btn:hover {
    background: #ffcc99;
  }
  
  .carousel-btn.left {
    left: 10px;
  }
  
  .carousel-btn.right {
    right: 10px;
  }

  .carousel {
    cursor: grab;
  }
  .carousel:active {
    cursor: grabbing;
  }
  

@media (width <= 1250px) {
  .main-container .image img 
  {
    width: 50vw;
    height: 50vw;
  }

  .projects-container {
    width: 870px;
  }

  #projects {
    padding-top: 0px;
  }
}

@media (width <= 900px) {
    .main-container .image img {
      width: 55vw;
      height: 55vw;
    }
    .projects-container {
      width: 450px;
    }

    #projects {
      padding-top: 0px;
    }

    .content button {
      width: 50%;
    }
  }

  @media (width <= 500px) {
    .project-card {
      width: 76vw;
    }
    .projects-container {
      width: 90%;
    }
  }