/* -------Page Setup------- */
body {
  margin: 0;
  padding: 0;
  display: flex;
  justify-content: center;
  min-height: 100vh;
  align-items: center;
  background: #f4f4f4;
  font-family: "Roboto", sans-serif;
}

html{
    scroll-behavior: smooth;
}

.wrapper {
  width: 90%;
  background: #fff;
  padding: 10px;
  box-shadow: 0 0 10px rgba(0, 0, 0, 0.1);
}

.container {
  width: 90%;
  margin: 0 auto;
}

/* -------Memoji Picture------- */
.memoji{
  width: 450px;
  height: 450px;
  background-size: cover;
  background-image: url("pictures/hi.jpeg");
  align-items: center;
  justify-content: center;
  display: flex;
  margin: 0 auto;

}

/* -------Header Section------- */
nav {
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  padding: 15px 0;
  margin: 0px 0px -15px 0px
}

ul.header-list { 
    margin: 0px 30px 0px 0px; 
    padding: 0; 
    list-style: none; 
    display: flex;
    text-align: center;
    
  }
  li.header-list { 
    display: table-cell; 
    position: relative; 
    padding: 15px 0;
  }
  .header {
    color: #333;
    font-weight: 1000;
    font-family: "Roboto", sans-serif;
    text-decoration: none;
    letter-spacing: 0.05em;
    
    display: inline-block;
    padding: 15px 20px;
    position: relative;
  }
  .header:after {    
    background: none repeat scroll 0 0 transparent;
    bottom: 7px;
    content: "";
    display: block;
    height: 3px;
    left: 0;
    position: absolute;
    background: #333;
    transition: width 0.5s ease 0s, left 0.5s ease 0s;
    width: 0;
  }
  .header:hover:after { 
    width: 75%; 
    left: 12.5%;
  }
  @media screen and (max-height: 300px) {
      ul {
          margin-top: 40px;
      }
  }
  

/* -------Hamburger Menu------- */
.hamburger {
    display: none;
    cursor: pointer;
}

.bar {
    display: block;
    width: 25px;
    height: 3px;
    margin: 5px auto;
    background-color: #333;
    transition: all 0.3s ease-in-out;
}


/* -------Title Box------- */
.title, .project {
  width: 100%;
  border: 4px solid #000;
  border-radius: 20px;
  padding: 20px;
  margin: 36px 0;
}

.icon {
  width: 64px;
  height: 64px;
  margin: 10px;
}

.name-header {
  font-weight: bold;
  color: #333;
  font-size: 3em;
  font-family: "Roboto", sans-serif, monospace;
}

.title {
  display: flex;
  justify-content: space-between;
  margin: 0 auto;
  align-items: center;
  align-self: center;
  border: 4px solid #000;
  border-radius: 20px;
  width: 90%;
}

.icon {
  width: 64px;
  height: 64px;
}

.title-icons {
  color: white;
  display: flex;
  justify-content: space-between;
  align-items: center;
  width: 300px;
  margin-right: 30px;
}

.title-header > p {
  font-weight: bold;
  color: #333;
  font-weight: bold;
  font-size: 1.5em;
  font-family: "Roboto", sans-serif;
}

.typing-animation > h1{
    width: 12ch;
    border-right: 3px solid black;
    white-space: nowrap;
    font-family: "Roboto", sans-serif, monospace;
    overflow: hidden; 
    animation: typing 2s steps(22), blink 0.5s step-end infinite alternate;
  }
  
  @keyframes typing {
    from {
      width: 0
    }
  }
     
  @keyframes blink {
    50% {
      border-color: transparent
    }
  }
 


/* -------About Me Section------- */

#about{
    /*padding between memoji and about me section*/
    padding: 250px 0px 150px 0px;
    font-size: 18px;
    font-weight: bold;
    color: #333;
    font-family: "Roboto", sans-serif;
}

.row{
    display:flex;
    justify-content: space-between;
    flex-wrap: wrap;
}

.about-col-1{
    flex-basis: 35%;
}

.about-col-1 img{
    width: 100%;
    border-radius: 15px;
    border: 4px solid #000;

}

.about-col-2{
    flex-basis: 60%;
    margin-top: -35px;
}

.sub-title{

    font-size: 50px;
    font-weight:600;
    color: #333;
    font-family: "Roboto", sans-serif;
}

.tab-titles{
    display: flex;
    margin: 20px 0px -20px;
}

.tab-links{

    margin-right: 50px;
    font-size:18px;
    font-weight: 500;
    cursor: pointer;
    position: relative;
    font-family: "Roboto", sans-serif;

}

.tab-links::after{
    content: "";
    width: 0;
    height: 3px;
    background: #333;
    position: absolute;
    left: 0;
    bottom: -8px;
    transition: 0.5s;
}

.tab-links.active-link::after{
    width: 50%;
}

.tab-contents ul{
    padding: 0;
}


.tab-contents ul li{
    list-style: none;
    margin: 10px 0;
   
}

.tab-contents ul li span{
    color: #ff0051;
    font-size: 14px;
}

.tab-contents{
    display: none;
}

.tab-contents.active-tab{
    display: block;
}

/* Experience Section Styles */

#experience ul li {
  list-style: none;
 
  padding: 0;
}

#experience ul li:last-child {
  margin-bottom: 0;
}

#experience .experience-date {
  display: block;
  color: #ff0051;
  font-size: 14px;
}

#experience .experience-title {
  display: block;
  color: #333;
  margin-bottom: 5px;
}

#experience .experience-description {
  margin: 0;
  font-size: 13px;
  color: #555;
}



/* -------Projects Section------- */

#projects-section{
    position: relative;
    padding: 0px 0px 250px 0px;
}

.color-container{
    border-color: rgb(163,163,163);
    background: rgb(250,250,250);
}

.about-container {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  gap: 1rem;
}

.project-img {
  width: 90%;
  height: 90%;
  border-radius: 1rem;
}

.project-title{
    margin: 1rem;
    color: black;
}

.project-sub-title{
    font-size: 45px;
    font-weight:600;
    color: #333;
    font-family: "Roboto", sans-serif;
    text-align: center;
}

.project-btn{
    color: 333;
    border-color: 333;
}

.btn-container{
    display: flex;
    justify-content: center;
    gap: 1rem;
}
.btn{
    font-weight: 600;
    transition: all 300ms ease;
    padding: 1rem;
    width: 8rem;
    border-radius: 2rem;
}

.btn-color-1, .btn-color-2{
    border: #333 0.1rem solid;
}

.btn-color-1:hover, .btn-color-2:hover{
   cursor: pointer;
}

.btn-color-1, .btn-color-2:hover{
    background-color: rgb(53,53,53);
    color: white;
}

.btn-color-1:hover{
   background: rgb(0,0,0);
}

.btn-color-2{
    background: none;
}

.btn-color-2:hover{
    background: rgb(255,255,255) 0.1rem solid;
}

.btn-container {
    gap: 1rem;
}

.details-container {
  flex: 0 0 calc(33.333% - 1rem);
  margin-bottom: 1.5rem;
  padding: 1.5rem;
  background: white;
  border-radius: 2rem;
  border: 4px solid #333;
  text-align: center;
  box-sizing: border-box;
}

.experience-details-container{
    display: flex;
    justify-content: center;
    flex-direction: column;
}

.experience-sub-title{
    color: black;
    font-weight: 600;
    font-size: 1.75rem;
    margin-bottom: 2rem;
}

.experience-sub-title.project-title {
  font-size: 1.5rem;
  margin: 1rem 0;
}

.article-container{
    display: flex;
    text-align: initial;
    flex-wrap: wrap;
    flex-direction: row;
    gap: 2.5rem;
    justify-content: space-around;
}

/* -------Technologies Section------- */
.technology-pictures {
    display: flex;
    flex-wrap: wrap;
    gap: 20px;
  }
  
  .tech-icon-container {
    position: relative;
    display: inline-block;
  }
  
  .tech-tooltip {
    visibility: hidden;
    width: 120px;
    background-color: #333;
    color: #fff;
    text-align: center;
    border-radius: 6px;
    padding: 5px 0;
    position: absolute;
    z-index: 1;
    bottom: 125%;
    left: 50%;
    margin-left: -60px;
    opacity: 0;
    transition: opacity 0.3s;
  }
  
  .tech-icon-container:hover .tech-tooltip {
    visibility: visible;
    opacity: 1;
  }
  
  .tech-tooltip::after {
    content: "";
    position: absolute;
    top: 100%;
    left: 50%;
    margin-left: -5px;
    border-width: 5px;
    border-style: solid;
    border-color: #333 transparent transparent transparent;
  }

/* -------Contact Section------- */

#contact{
    padding: 0px 0px 150px 0px;
}

.contact-text{
    font-size:18px;
    font-weight: 500;
    font-family: "Roboto", sans-serif;
}

.contact-left{
    flex-basis: 35%;
    margin-top: -25px;
}

.contact-left p{
    margin-top: 30px;
}

.contact-left p i{
    color: #333;
    margin-right: 15px;
    font-size: 25px;
}

.social-icons{
    margin-top: 30px;
}

.social-icons a{
    text-decoration: none ;
    font-size: 30px;
    margin-right: 15px;
    color: #333;
    display: inline-block;
    transition: transform 0.5s;
}

.social-icons a:hover{
    color: #000;
    transform: translateY(-5px);
}

.contact-right{
    flex-basis: 60%;
}

.btn_contact{
    display: block;
    margin: 50px auto;
    width: fit-content;
    border-radius: 6px;
    border: 3px solid #333;
    transition: all 300ms ease;
    padding: 14px 50px;
    text-decoration: none;
    color: black;
    font-family: "Roboto", sans-serif;
    font-weight: 500;

}

.btn_contact.btn2_contact{
    display: inline-block;
    background-color: white;
    
}

.btn_contact.btn_contact.btn2_contact:hover{

    background-color: #333;
    color: white;

}

.contact-right form{
    width: 100%;
}

form input, form textarea{
    width: 90%;
    border: 0;
    padding: 15px;
    margin: 15px 0;
    border: 3px solid black;
    font-size: 12px;
    border-radius: 6px;
}

form .btn2_contact{
    padding: 16px 40px;
    font-size: 12px;
    margin-top: 10px;
    cursor: pointer;
}

#msg{
    color: #00c52e;
    margin-top: -30px;
    display: none;

}


/* -------Footer Section------- */

.copyright{
    width: 100%;
    text-align: center;
    padding: 25px 0;
    background: black;
    font-weight: 300;
    margin-top: 20px;
}

.copyright_text{
    color: white;
    font-size: 18px;
    font-family: "Roboto", sans-serif;
}

/* -------Hamburger Menu------- */
.hamburger {
    display: none;
    cursor: pointer;
  }
  
  .bar {
    display: block;
    width: 25px;
    height: 3px;
    margin: 5px auto;
    -webkit-transition: all 0.3s ease-in-out;
    transition: all 0.3s ease-in-out;
    background-color: #333;
  }


/* --------- Media Queries --------- */

@media only screen and (max-width: 768px) {
    .wrapper {
        padding: 0 15px;
        width: 100%;
        max-width: 100%;
        padding: 0;
        box-shadow: none;
    }

    /* Standardize header sizes */
    h1, .name-header, .sub-title, .project-sub-title {
        font-size: 24px;
        margin-bottom: 15px;
    }

    h2, .experience-sub-title, .project-title {
        font-size: 20px;
        margin-bottom: 12px;
    }

    h3 {
        font-size: 18px;
        margin-bottom: 10px;
    }

    body {
        background: #fff;
    }

    /* Adjust other text elements for consistency */
    p, .tab-links, .tab-contents ul li {
        font-size: 16px;
    }

    /* Ensure consistent spacing between sections */
    .title, .project, #about, #technologies, #projects-section, #contact {
    margin-bottom: 30px;
    }

    .container {
    width: 95%;
    padding: 0 10px;
    box-sizing: border-box;
    }

    .title {
    width: 100%;
    padding: 15px;
    box-sizing: border-box;
    margin-top: 15px;
    }

    .title-header {
        width: 100%;
    }
    

    .title-icons {
        width: 100%;
        justify-content: center;
        margin: 20px 0 0 0;
    }

    .icon {
        width: 48px;
        height: 48px;
        margin: 5px;
    }

    .name-header {
        font-size: 2em;
        word-break: break-word;
    }

    .memoji {
        width: 250px;
        height: 250px;
    }

    #about {
        padding: 100px 0px 50px 0px;
    }

    #projects-section{
        position: relative;
        padding: 0px 0px 100px 0px;
    }

    .about-col-1, .about-col-2 {
        flex-basis: 100%;
        padding: 10px;
        box-sizing: border-box;
    }

    .about-col-1 img {
        max-width: 100%;
        height: auto;
        display: block;
        margin: 0 auto;
    }
    
    .sub-title {
        font-size: 2em;
        text-align: center;
    }
    
    .tab-titles {
        flex-wrap: wrap;
    }

    .about-col-2 {
        margin-top: 30px;
    }

    .tab-links {
        margin-right: 15px;
        font-size: 16px;
    }
    
      .about-container {
        flex-direction: column;
    }
    
      .details-container {
        width: 100%;
        margin-bottom: 20px;
        box-sizing: border-box;
    }

    .project-img {
        width: 100%;
        height: auto;
    }

    .btn {
    margin-bottom: 10px;
    }

    .contact-left, .contact-right {
    flex-basis: 100%;
    }

    form input, form textarea {
    width: 100%;
    box-sizing: border-box;
    }
    
    .hamburger {
    display: block;
    margin-right: 15px;
    padding: 5px;
    }

    .hamburger.active .bar:nth-child(2) {
    opacity: 0;
    }

    .hamburger.active .bar:nth-child(1) {
    transform: translateY(8px) rotate(45deg);
    }

    .hamburger.active .bar:nth-child(3) {
    transform: translateY(-8px) rotate(-45deg);
    }

    ul.header-list {
        position: fixed;
        left: -100%;
        top: 65px;
        gap: 0;
        flex-direction: column;
        background-color: #fff;
        width: 100%;
        text-align: center;
        transition: 0.3s;
        box-shadow: 0 10px 27px rgba(0, 0, 0, 0.05);
    }
  
    ul.header-list.active {
        left: 0;
    }
  
    .header-list li {
        margin: 16px 0;
    }

    .row {
      flex-direction: column;
  }

  .title-header p {
    display: flex;
    flex-direction: column;
    align-items: left;
  }

  .title-header .title-word {
    display: block;
    margin-bottom: 5px;  /* Adds space between words */
  }

  .title-header .separator {
    display: none;
  }
 
  .tech-tooltip {
    visibility: visible;
    opacity: 1;
    position: static;
    display: block;
    margin: 5px 0 0 0;
    width: auto;
  }

  .tech-tooltip::after {
    display: none;
  }
}

@media only screen and (max-width: 480px) {
    .container {
        width: 100%;
        padding: 0 10px;
      }
    
      .name-header {
        font-size: 1.5em;
      }
    
      .title-header > p {
        font-size: 1em;
      }
    
      .icon {
        width: 40px;
        height: 40px;
      }
    
      .sub-title {
        font-size: 1.5em;
      }
    
      .tab-links {
        margin-right: 10px;
        font-size: 14px;
      }
    
      .btn {
        padding: 0.6rem;
        width: 6rem;
        font-size: 0.8rem;
      }
    
      .btn_contact {
        padding: 10px 20px;
        font-size: 0.8rem;
      }
    
      .memoji {
        width: 200px;
        height: 200px;
      }
}