/*Google Fonts */
@import url('https://fonts.googleapis.com/css2?family=Playfair+Display:ital,wght@0,400..900;1,400..900family=Poppins:wght@200;300;400;500;600;700;800&display=swap');

/* Variable */
:root{
    --main-color: #54372a;
    --second-color: #EBCC90;
    --third-color: #ff5100;
    --text-color: #060413;
    --fourth-color: #969696;
    --container-color: #f8e4be;
    --bg-color: #f9f6f2;
    --text-alter-color: #e6d4c3;
    --font-family-2: 'Roboto', sans-serif;
    --poppins-font: 'Poppins', sans-serif;
    --box-shadow: rgb(0 0 2 / 35%) 0px 20px 30px 0.10px;
}
*{
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    outline: none;
    border: none;
    text-decoration: none;
    scroll-behavior: smooth;
    scroll-padding-top: 3rem;
    font-family: var(--font-family-2);
    box-sizing: border-box;
}

html{
    overflow-x: hidden;
    scroll-padding-top: 9rem;
    scroll-behavior: smooth;
}
html::-webkit-scrollbar{
    width: 0.8rem;
}
html::-webkit-scrollbar-track{
    background-color: transparent;
}
html::-webkit-scrollbar-thumb{
    background-color: var(--text-color);
    border-radius: 1rem;
}
body{
    color: var(--text-color);
    background: var(--bg-color);

}
a{
    text-decoration: none;
    color: white;
}
img{
    width: 100%;
}

.container{
    max-width: 1060px;
    margin: auto;
    width: 100%;
}
header{
    position: fixed;
    top: 30px;
    left: 0;
    width: 100%;
    z-index: 100;
    transform: scale(0.9);
}
.nav-container{
    display: flex;
    justify-content: space-between;
    align-items: center;
    background-color: #36566c;
    padding: 20px 30px;
    border-radius: 2rem;
    box-shadow: 2px 3px 6px 0 #706f6f;
}
.logo{
    height: 45px;
    width: 150px;
    display: flex;
    justify-content: center;
    align-items: center;
}
.navbar {
    display: flex;
    align-items: right;
    column-gap: 1.5rem;
}

.navbar .nav-link::after{
    content: '';
    width: 0%;
    height: 2px;
    background: var(--second-color);
    display: block;
    margin: auto;
    transition: 0.5s;
}

.navbar .nav-link:hover::after{
    width: 100%;
}
.nav-link{
    color: #fff;
    font-family: var(--poppins-font);
    font-size: 1rem;
    transition: 0.4s all cubic-bezier(0.080, 0.83, 0.170, 1);
}
.nav-link:hover{
    color: var(--second-color);
    transition: 1s all cubic-bezier(0.080, 0.83, 0.170, 1);
}
.nav-icons{
    display: flex;
    align-items: center;
    column-gap: 1rem;
}
.nav-icons i{
    color: var(--bg-color);
    font-size: 28px;
}
.nav-icons i:hover{
    color: var(--second-color);
    transition: 0.30s ease-in-out;
}

.container {
    padding: 30px;
    border-radius: 15px;
    text-align: center;
    max-width: 80%;
    margin: 100px auto 20px auto; /* Adjusted margin for fixed navbar */
}

.about-header{
    margin-top: 20px;
    text-align: left;
}

.about-header h1 {
    font-size: 50px;
    margin-bottom: 10px;
    color: #000000;
}

.about-header p {
    font-size: 30px;
    color: #777;
    margin-bottom: 20px;
}

.about-content {
    display: flex;
    align-items: center;
    justify-content: space-between;
}

.about-text {
    font-size: 20px;
    flex: 1;
    margin-right: 20px;
    text-align: left;
}

.about-photo {
    flex: 0 0 250px;
    border-radius: 50%;
    overflow: hidden;
    box-shadow: 0px 3px 6px 1px #36566c;
}

.about-photo img {
    width: 100%;
    height: auto;

}

.skills-section {
    text-align: center;
  }
  .skills-section h1 {
    font-size: 24px;
    color: #1a1a1a;
    margin-bottom: 20px;
  }
  .skills-container {
    margin-top: 10px;
    display: flex;
    flex-wrap: wrap;
    gap: 15px;
    justify-content: center;
  }
  .skill-item {
    display: flex;
    align-items: center;
    transition: transform 0.3s;
    justify-content: center;
    padding: 10px 20px;
    border: 1px solid #e0e0e0;
    border-radius: 8px;
    background-color: #fff;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
    font-size: 14px;
    color: #333;
  }
  .skill-item img {
    height: 20px;
    margin-right: 8px;
  }

  .skills-container :hover{
    transform: scale(1.2)
  }

  /*preview*/

  .content {
    margin: 30px 0;
    text-align: center;
  }

  .content h1 {
    font-size: 24px;
    color: #1a1a1a;
    margin-bottom: 20px;
  }

  .portfolio {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 20px;
  }

  .large-box {
    width: 35%;
    height: 314px;
    border: 2px solid #000000;
    border-radius: 10px;
    display: flex;
    justify-content: center;
    align-items: center;
    background-color: white;
    box-shadow: 7px 10px 10px rgba(0, 0, 0, 0.1);
  }

  .large-box img {
    max-width: 99%;
    max-height: auto;
    border-radius: 10px;
  }

  .thumbnails {
    display: flex;
    flex-direction: column;
    transition: transform 1s;
  }

  .thumbnails :hover{
    transform: scale(1.1);
  }

  .thumbnail {
    border-radius: 10px;
    width: 100px;
    height: 68px;
    border: 1px solid #000000;
    cursor: pointer;
    overflow: hidden;
    display: flex;
    justify-content: center;
    align-items: center;
    background-color: white;
    box-shadow: 7px 10px 10px rgba(0, 0, 0, 0.1);
    transition: transform 0.3s;
    
  }

  .thumbnail img {
    max-width: 80%;
    max-height: auto;
    transition: transform 0.3s;
  }

  /*educ background*/

  .timeline {
    width: 100%;
    max-width: 670px;
    margin: 50px auto;
    position: relative;
  }

  .timeline1 h1{
    font-size: 25px;
    text-align: center;
  }

  .timeline::before {
    content: '';
    position: absolute;
    top: 0;
    left: 20px;
    width: 1.2px;
    height: 100%;
    background-color: #e0e0e0;
  }

  .timeline-item {
    display: flex;
    margin-bottom: 30px;
    position: relative;
  }

  .timeline-item:last-child {
    margin-bottom: 0;
  }

  .timeline-item::before {
    margin-top: 3px;
    content: '';
    position: absolute;
    left: 14px;
    width: 12px;
    height: 12px;
    background-color: #36566c;
    border-radius: 50%;
  }

  .timeline-item-content {
    text-align: justify;
    margin-left: 40px;
    border-radius: 8px;
  }

  .timeline-item-content h4 {
    font-size: 18px;
    margin: 0;
    color: #333;
  }

  .timeline-item-content p {
    margin: 5px 0 0;
  }

  .timeline-item-content .year {
    font-weight: bold;
    font-size: 16px;
    color: #666;
    margin-bottom: 5px;
  }

  .timeline-item-content h4 {
    font-size: 20px;
    color: #222;
  }

  @media (max-width: 600px) {
    .nav-container {
        flex-direction: column;
    }

    .nav-link {
        display: block;
        margin-bottom: 2px;
        margin-top: 5px;
    }

    .container {
        max-width:100%;
        padding: 20px;
    }

    .about-header{
      margin-top: 40px;
    }

    .about-content {
        flex-direction: column;

    }

    .about-text {
        margin-right: 0;
        margin-bottom: 40px;
        text-align: justify;
    }

    .portfolio {
        flex-direction: column;
    }

    .large-box {
        width: 80%;
        height: 238px;
    }

    .thumbnails {
        flex-direction:row;
        flex-wrap: wrap;
        justify-content: center;
    }

    .thumbnails h4{
      display: none;
    }

    .thumbnail {
        width: 20%;
        margin-bottom: 10px;
        margin-right: 20px;
    }

    .about-photo {
      width: 260px;
      flex: 0 0 250px;
      border-radius: 100%;
      overflow: hidden;
      box-shadow: 0px 3px 6px 1px #36566c;
  }
  
  .about-photo img {
      width: 100%;
      height: auto;
  
  }

  .timeline1{
    width: 90%;
    margin-left: 20px;
  }
}