/*=============== GOOGLE FONTS ===============*/
@import url("https://fonts.googleapis.com/css2?family=Montserrat:wght@400;600&display=swap");
@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');

/*=============== VARIABLES CSS ===============*/
:root {
    --header-height: 3.5rem;
  
    /*========== Colors ==========*/
    --nav-color: #3d2205;
    --hover-color: #674118;
    --text-color: #DFD7BF;
    --text-color1: #c4a074;
    --body-color: #F5F5F5;
  
    /*========== Font and typography ==========*/
    /*.5rem = 8px | 1rem = 16px ...*/
    --body-font: "Montserrat", sans-serif;
    --family-font: 'Poppins', sans-serif;
    --normal-font-size: .938rem;
  
    /*========== Font weight ==========*/
    --font-regular: 400;
    --font-semi-bold: 600;
  }
  
  /*========== Responsive typography ==========*/
  @media screen and (min-width: 1024px) {
    :root {
      --normal-font-size: 1rem;
    }
  }
  
  /*=============== BASE ===============*/
  * {
    box-sizing: border-box;
    text-decoration: none;
    padding: 0;
    margin: 0;
    font-family: var(--family-font);
  }
  /* ----- CHANGE THE SCROLL BAR DESIGN ----- */
::-webkit-scrollbar{
  width: 10px;
  border-radius: 25px;
}
::-webkit-scrollbar-track{
  background: #f1f1f1;
}
::-webkit-scrollbar-thumb{
  background: #ccc;
  border-radius: 30px;
}
::-webkit-scrollbar-thumb:hover{
  background: #bbb;
}

  body {
    font-size: var(--normal-font-size);
    background-color: var(--body-color);
    padding: 15px 20px;
  }
  
  /*=============== REUSABLE CSS CLASSES and ID ===============*/
nav {
  display: flex;
  margin-top: 10px;
  justify-content: space-between; /* Ensures space between items */
  align-items: center; /* Vertically centers the items */
  width: 100%;
  height: 70px;
  background: #3d2205;
  padding: 0 20px;
  transition: .3s;
  z-index: 100;
  border-radius: 1rem;
  box-shadow: 0 2px 16px hsla(222, 32%, 8%, 0.3);
  transform: scale(0.9);
}
/*=============== HEADER ===============*/
#header {
  position: fixed;
  max-width: none;
  color: var(--text-color);
  font-weight: 700;
  font-size: 18px;
}

/*=============== NAV ===============*/
.nav-logo {
  position: relative;
  display: flex;
  align-items: center;
  justify-content: left;
  gap: 10px;
  color: var(--text-color-second);
  flex: 1; /* Pushes the logo to the left */
  text-align: left; /* Align text/logo content to the left */
}
.nav-name{
  text-align: left;
}
.nav-menu, .nav_menu_list {
  display: flex;
}

.nav-menu .nav_list{
  list-style: none;
  position: relative;
}
.nav-link{
  text-decoration: none;
  color: var(--text-color-second);
  font-weight: 500;
  padding: 0 20px;
  margin-inline: 5px;
}
/* Hamburger menu for small screens */
.nav-menu-btn {
  display: none;
  margin-left: 10px;
}

.nav-menu-btn i {
  font-size: 24px;
  color: var(--text-color);
  cursor: pointer;
}

.active-link{
  position: relative;
  color: var(--text-color1);
}
.active-link::after{
  content: '';
  position: absolute;
  left: 50%;
  bottom: -15px;
  transform: translate(-50%, -50%);
  width: 70px;
  height: 4px;
  background: var(--text-color);
  border-radius: 50px;
}
.log-site-btn {
  flex: 1; /* Pushes the button to the right */
  display: flex;
  justify-content: flex-end; /* Aligns items to the right */
  align-items: center; /* Vertically centers the button */
  gap: 20px;
  color: var(--text-color-second);
}
.sign-up-button{
  text-decoration: none;
  color: var(--text-color-second);
  display: flex;
  gap: 10px;
  font-size: 20px;
}
.sign-up-button:hover{
  color: var(--text-color1);
}
.sign-up-button h6{
  font-size: 16px;
}
  
  /* Navigation for mobile devices */
  @media screen and (max-width: 1118px) {
    #header {
      position: absolute;
      width: 100%;
      left: 0;
      align-items: center;
      justify-content: center;
      color: var(--text-color);
      font-weight: 700;
      font-size: 18px;
    }
    .nav-menu {
      display: none;
      flex-direction: column;
      background: var(--nav-color);
      position: absolute;
      top: var(--header-height);
      left: 0;
      width: 100%;
      padding: 14px;
      border-radius: 0 0 10px 10px;
      z-index: 100;
      height: 50px;
    }
    .nav-link{
      text-decoration: none;
      color: var(--text-color-second);
      font-weight: 500;
      padding: 0 16px;
      margin-inline: 5px;
    }
    .active-link{
      position: relative;
      color: var(--text-color1);
    }
    .active-link::after{
      content: '';
      position: absolute;
      left: 50%;
      bottom: -15%;
      transform: translate(25%, -50%);
      width: 70px;
      height: 4px;
      background: var(--text-color);
      border-radius: 50px;
    }
  
    .nav-menu.active {
      display: flex;
      align-items: center;
      justify-content: center;
    }
    .nav-menu-btn {
      display: block;
    }
    .nav-menu-btn .fa-bars:hover{
      color: var(--text-color1);
    }
    .sign-up-button i{
      font-size: 25px;
    }
    .sign-up-button i:hover{
      color: var(--text-color1);
    }
    .sign-up-button h6{
      display: none;
    }
  }
  /* For large devices */
@media screen and (min-width: 1118px) {
  /*Home in large device */
  #header {
    position: fixed;
    width: 100%;
    left: 0;
    align-items: center;
    justify-content: center;
    color: var(--text-color);
    font-weight: 700;
    font-size: 18px;
  }
  .favorite{
    display: none;
  }
}
/* active-link */
@media (max-width: 1116px){
  .active-link{
    position: relative;
    color: var(--text-color1);
    transition: .3;
  }
  .active-link::after{
    content: '';
    position: absolute;
    left: 12%;
    bottom: 0;
    transform: translate(8%, 100%);
    width: 60px;
    height: 4px;
    background: var(--text-color);
    border-radius: 50px;
  }
  .favorite{
    display: none;
  }
}
@media (max-width: 800px){
  .active-link{
    position: relative;
    color: var(--text-color1);
    transition: .3;
  }
  .active-link::after{
    content: '';
    position: absolute;
    left: 7%;
    bottom: -15%;
    transform: translate(12%, 58%);
    width: 68px;
    height: 4px;
    background: var(--text-color);
    border-radius: 50px;
  }
}


/*Portfolio */
    .container {
      display: flex;
      margin-top: 100px; 
      max-width: 1200px;
      margin-inline: auto;
      gap: 20px;
      padding-top: 100px;
  }
  #profile{
    position: absolute;
    top: 0;
  }
/* Sidebar */
.sidebar {
  flex: 1;
  background: linear-gradient(360deg, rgba(103,65,24,1) 5%, rgba(196,160,116,1) 100%);
  padding: 20px;
  border-radius: 10px;
  border: 1px solid #000;
  width: 300px;
  margin-top: 70px;
  position: fixed;
  color: #fff;
}
.sidebar h3 {
  margin-bottom: 20px;
  font-size: 30px;
  text-shadow: 2px 2px 4px #030303;
}

.sidebar ul {
  list-style: none;
  padding: 0;
}

.sidebar li {
  margin-bottom: 10px;
  font-size: 14px;
}

.sidebar a {
  text-decoration: none;
  color: #fcf8f8; 
  width: 90%;
  font-weight: bold;
  display: block;
  padding: 5px;
  border-radius: 10px;
  font-size: 16px;
  margin-left: 20px;
  transition: background-color 0.3s ease, color 0.3s ease; /* Smooth transition */
}

.sidebar a:hover {
  background-color: #DFD7BF;
  color:#000;
  border-radius: 10px;
  width: 90%;
}

  
  .main-content {
    flex: 3;
    margin-left: 350px;
  }
  
  .main-content h1 {
    font-size: 40px;
    margin-bottom: 20px;
    text-align: center;
    background: linear-gradient(
        to left,
        #c4a074 20%,
        #635d57 30%,
        #3d2205 70%,
        #674118 80%
    );
    -webkit-background-clip: text;
    background-clip: text;
    -webkit-text-fill-color: transparent;
    background-size: 500% auto;
    animation: textShine 5s ease-in-out infinite alternate;
  }
  @keyframes textShine {
    0% {
        background-position: 0% 50%;
    }
    100% {
        background-position: 100% 50%;
    }
}
  .cards {
    display: flex;
    gap: 20px;
    justify-content: center; /* Center the cards horizontally */
    margin-top: 20px;
    padding-bottom: 100px;
}

.card {
  background-color: white;
  width: 430px;
  padding: 15px;
  border-radius: 10px;
  box-shadow: 0 5px 15px rgba(0, 0, 0, 0.2); /* Subtle shadow effect */
  text-align: center;
  position: relative;
  overflow: hidden;
}
/*Profile*/
.prof {
  background: linear-gradient(360deg, rgba(103,65,24,1) 5%, rgba(196,160,116,1) 100%);
  width: 100%;
  height: 150px;
  position: absolute;
  top: 0;
  left: 0;
}

.profile-pic {
  width: 120px;
  height: 120px;
  border-radius: 50%;
  border: 5px solid white;
  margin-top: 50px; 
  z-index: 1;
  position: relative;
}

h2 {
  font-size: 25px;
  font-weight: bold;
  margin: 15px 0 20px;
  background: linear-gradient(
        to left,
        #c4a074 20%,
        #635d57 30%,
        #3d2205 70%,
        #674118 80%
    );
    -webkit-background-clip: text;
    background-clip: text;
    -webkit-text-fill-color: transparent;
    background-size: 500% auto;
    animation: textShine 5s ease-in-out infinite alternate;
  }
  @keyframes textShine {
    0% {
        background-position: 0% 50%;
    }
    100% {
        background-position: 100% 50%;
    }
}

.profi {
  margin-top: 25px;
  font-size: 30px;
  color: var(--text-color);
  text-shadow: 2px 2px 4px #030303;
}

.role {
  font-size: 25px;
  color: #747373;
  margin-bottom: 10px;
  font-weight: bold;
  margin-top: 5px;
}


.bio p{
  font-size: 15px;
  line-height: 1.3;
  color: #666;
  margin-top: 20px;
  padding: 0 10px;
}

#h2 {
    font-size: 20px;
}

.social-icons {
    display: flex;
    justify-content: center;
    gap: 15px;
    margin-top: 10px;
}

.social-icons a {
    color: #473017;
    font-size: 1.5em;
    text-decoration: none;
    transition: transform 0.3s ease;
}

.social-icons a:hover {
    color: #101010;
    transform: scale(1.5);
}

.bio {
    font-size: 13px;
    color: #555;
    margin-top: 10px;
    text-align: justify;
    text-indent: 10%;
    margin-top: 20px;
}
.divider-name{
  text-align: center;
  font-size: 25px;
  background: linear-gradient(
    to left,
    #c4a074 20%,
    #635d57 30%,
    #3d2205 70%,
    #674118 80%
);
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
  background-size: 500% auto;
  animation: textShine 5s ease-in-out infinite alternate;
  }
  @keyframes textShine {
  0% {
      background-position: 0% 50%;
  }
  100% {
      background-position: 100% 50%;
  }
}
/*Education*/
.timeline {
  display: flex;
  justify-content: center;
  align-items: center;
  min-height: 110vh;
  padding: 0 9%;
}

.timeline-col .title {
  position: relative;
  display: inline-block;
}

.timeline-col .timeline-box {
  position: relative;
  border-left: 2px solid #674118;
  margin-top: 30px;
}
.timeline-box .timeline-content {
  padding-left: 27px;
  position: relative;
}
.timeline-box .timeline-content::before{
  content: '';
  position: absolute;
  width: 15px;
  height: 15px;
  background-color: #674118;
  border-radius: 50%;
  top: 0;
  left: -9px;
}
.timeline-content .content {
  padding: 24px;
  border: 2px solid #473017;
  border-radius: 8px;
  margin-bottom: 32px;
  text-align: left; 
  margin-left: 2px;
}

.timeline-content .content .year {
  font-size: 14px;
  color: #000000;
}

.timeline-content .content .year i {
  margin-left: 0px;
}
.year i{
  margin-right: 6px;
  color: var(--hover-color);
}
.timeline-content .content h5 {
  font-size: 14px;
  margin: 8px 0; 
  font-size: 16px;
  color: var(--nav-color);
}

.timeline-content .content p {
  font-size: 12px;
  margin: 0; 
}

/*Tech Skill*/
.skills-container {
  width: 300px;
  margin-left: 50px;
  font-size: 20px;
  margin-top: -70px;
}
.skill {
  margin-bottom: 20px;
  margin-top: 20px;
}

.skill-name {
  display: flex;
  align-items: center;
  margin-bottom: 5px;
}

.skill-name i {
  margin-right: 10px;
  font-size: 25px;
}
.skill-name span {
  font-size: 16px;
}

.skill-percentage {
  font-size: 12px;
  color: rgb(7, 7, 7);
  font-weight: bold;
  margin-bottom: 5px;
  display: block; 
  text-align: right;
}

.skill-bar {
  position: relative;
  height: 10px;
  background-color: #aaaaaa;
  border-radius: 5px;
  overflow: hidden;
}

.skill-bar-fill {
  height: 100%;
  border-radius: 5px;
  width: var(--skill-level); 
}
.html{
  color: #e34c26;
}
.css{
  color: #264de4;
}
.js{
  color: #f0db4f;
}
.java{
  color: #f89820;
}
.skill-level-html{
  background-color: #e34c26;
}
.skill-level-css{
  background-color: #264de4;
}
.skill-level-js{
  background-color: #f0db4f;
}
.skill-level-java{
  background-color: #f89820;
}
/*Prof Skill*/
.progress-container {
  margin-top: 15rem;
}
.prog-container{
  display: grid;
  grid-template-columns: repeat(2, 160px);
  margin-inline: 35px;
  
}


.progress-item {
  text-align: center;
  margin-top: 20px;
}

.progress-circle {
  width: 100px;
  height: 100px;
  border-radius: 50%;
  position: relative;
  display: flex;
  justify-content: center;
  align-items: center;
  font-size: 18px;
  font-weight: bold;
  background: conic-gradient(#93622e calc(var(--progress-value) * 1%), #aaaaaa calc(var(--progress-value) * 1%));
  margin-left: 30px;
  color: var(--text-color);
  text-shadow: 2px 2px 8px #060505;
  box-shadow: 0 1px 6px #666;
}
.name-skill {
  margin-top: 10px;
  font-size: 16px;
}
/*Projects*/
.projects {
  margin-top: 40px;
  font-size: 20px;
  padding-top: 100px;
}
#project{
  position: relative;
  top: 100;
}
.project-cards {
  display: flex;
  flex-direction: column;
  justify-content: flex-start; 
  align-items: center; 
  gap: 50px; 
  padding-top: 50px; 
  height: auto; 
}
#proj-container{
  padding-top: 63px;
  padding-bottom: 30px;
}
.project-card {
  border: 0.5px solid #ddd; 
  border-radius: 10px;
  padding: 20px;
  text-align: center;
  width: 320px;
  transition: transform 0.3s ease, box-shadow 0.3s ease;
  display: flex;
  flex-direction: column;
  justify-content: flex-start; 
  margin-top: -20px; 
}

.project-card:hover {
  transform: translateY(-10px) scale(1.05);
  box-shadow: 0 8px 15px rgba(0, 0, 0, 0.2);
}

.project-card .proj-img1{
  width: 200px;
  height: auto;
  margin: 0 auto 15px; 
  display: block; 
}

.project-card h5 {
  font-size: 17px;
  color: #555;
  margin-bottom: 5px;
}

.project-card h3 {
  font-size: 18px;
  color: #674118;
  margin-bottom: 10px;
}

.project-card p {
  font-size: 13px;
  color: #000000;
  line-height: 1.4;
  text-align: justify;
  text-indent: 10%;
}
.proj-img{
  transform: scale(0.7);
}
/*COntact*/
.contact-container {
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  text-align: center;
  padding: 20px;
  border: 2px;
  border-radius: 8px;
  width: 370px;
  height: auto;
  margin: 0 auto;
  position: relative;
  margin-top: 30px;
}

.contact-header {
  margin-bottom: 20px;
}

.message-form label {
  display: block;
  margin-bottom: 5px;
  font-size: 0.9rem;
  text-align: left;
}

.message-form input,
.message-form textarea {
  width: 100%;
  padding: 10px;
  margin-bottom: 15px;
  border: 1px solid #674118;
  border-radius: 4px;
  background-color: #fff;
  color: #000;
}

.message-form input:focus,
.message-form textarea:focus {
  outline: none;
  border-color: #473017;
}

.send-btn {
  width: 100%;
  padding: 10px;
  border: none;
  border-radius: 4px;
  background-color: #674118;
  color: #fff;
  font-size: 1rem;
  cursor: pointer;
  transition: background-color 0.3s ease;
}

.send-btn:hover {
  background-color: #c4a074;
}

html {
  scroll-behavior: smooth;
}

/* General responsive adjustments */
@media screen and (max-width: 1200px) {
  .container {
    flex-direction: column; /* Stack elements vertically */
    margin-top: 120px;
    padding: 0 10px; /* Add padding for smaller screens */
  }
  .underline{
    content: '';
    background-color: #000;
    height: 2px;
  }
  .sidebar {
    display: none;
  }

  .main-content {
    margin-left: 0; /* Reset margin */
    flex: 1;
  }

  .cards {
    flex-wrap: wrap; /* Allow cards to wrap on smaller screens */
    gap: 10px;
  }

  .card {
    width: 100%; /* Full width for cards */
    max-width: 400px; /* Optional: limit max size */
    margin: auto;
  }
}

/* Tablet adjustments */
@media screen and (max-width: 768px) {
  .sidebar {
    position: fixed;
    font-size: 14px; /* Adjust font size */
    padding: 10px; /* Reduce padding */
  }

  .sidebar h3 {
    font-size: 20px;
  }

  .main-content h1 {
    font-size: 30px;
  }

  .skills-container {
    width: 80%;
    margin: 0 auto; /* Center on smaller screens */
    font-size: 18px;
  }

  .projects .project-card {
    width: 100%; /* Full width */
    max-width: 320px;
  }
}

/* Mobile adjustments */
@media screen and (max-width: 480px) {
  .container {
    padding: 0 5px; /* Reduce padding further */

  }

  .sidebar {
    font-size: 12px;
  }

  .sidebar a {
    font-size: 14px;
  }

  .main-content h1 {
    font-size: 24px;
  }

  .cards {
    gap: 10px;
  }

  .card {
    width: 100%;
  }

  .contact-container {
    width: 100%;
    padding: 10px;
  }

  .progress-circle {
    width: 80px;
    height: 80px;
    font-size: 14px;
  }
}


