@import url('https://fonts.googleapis.com/css2?family=Poppins:wght@100;200;300;400;500;600&display=swap');

*{
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    text-decoration: none;
    border: none;
    outline: none;
    font-family: 'Poppins', sans-serif;
    user-select: none;
}

html{
    font-size: 62.5%;
}

body{
    width: 100%;
    height: 100vh;
    overflow-x: hidden;
    background-color: black;
    color: white;
}

header{
    margin-top: 20px;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    padding: 1rem 9%;
    background-color: transparent;
    filter: drop-shadow(10px);
    display: flex;
    justify-content: space-between;
    align-items: center;
    z-index: 100;
}

.logo{
    font-size: 3rem;
    color: #b74b4b;
    font-weight: 800;
    cursor: pointer;
    transition: 0.5s ease;
}

.logo:hover{
    transform: scale(1.1);
}

nav a{
    font-size: 1.8rem;
    color: white;
    margin-left: 4rem;
    font-weight: 500;
    transition: 0.3s ease;
    border-bottom: 3px solid transparent;
}

nav a:hover{
    color: #b74b4b;
    border-bottom: 3px solid #b74b4b;
}

@media(max-width:995px){
    nav{
        position: absolute;
        display: none;
        top: 0;
        right: 0;
        width: 40%;
        border-left: 3px solid #b74b4b;
        border-bottom: 3px solid #b74b4b;
        border-bottom-left-radius: 2rem;
        padding: 1rem solid;
        background-color: #161616;
        border-top: 0.1rem solid rgba(0,0,0,0.1);
    }

    nav.active{
        display: block;
    }

    nav a{
        display: block;
        font-size: 2rem;
        margin: 3rem 0;
    }
    .skill-item img {
        width: 130px;
        height: 100px;
    }
    
    nav a:hover,
    nav a.active{
        padding: 1rem;
        border-radius: 0.5rem;
        border-bottom: 0.5rem solid #b74b4b;
    }

}

section{
    min-height: 100vh;
    padding: 5rem 9% 5rem;
}

.home{
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 8rem;
    background-color: black;
}

.home .home-content h1{
    font-size: 6rem;
    font-weight: 700;
    line-height: 1.3;
}

span{
    color: #b74b4b;
}

.home-content h3{
    font-size: 4rem;
    margin-bottom: 1rem;
    font-weight: 700;
}

.home-content p{
    font-size: 1.6rem;
}

.home-img{
    border-radius: 50%;
}

.home-img img{
    position: relative;
    width: 32vw;
    border-radius: 50%;
    box-shadow: 0 0 25px #b74b4b;
    cursor: pointer;
    transition: 0.2s linear;
}

.home-img img:hover{
    font-size: 1.8rem;
    font-weight: 500;
}

.home-img img:hover {
    transform: scale(1.1);
}

.social-icons a{
    display: inline-flex;
    justify-content: center;
    align-items: center;
    width: 4rem;
    height: 4rem;
    background-color: transparent;
    border: 0.2rem solid #b74b4b;
    font-size: 2rem;
    border-radius: 50%;
    margin: 3rem 1.5rem 3rem 0;
    transition: 0.3s ease;
    color: #b74b4b;
}

.social-icons a:hover{
    color: black;
    transform: scale(1.3) translateY(-5px);
    background-color: #b74b4b;
    box-shadow: 0  0 25px #b74b4b;
}

.btn{
    display: inline-block;
    padding: 1rem 2.8rem;
    background-color: black;
    border-radius: 4rem;
    font-size: 1.6rem;
    color: #b74b4b;
    letter-spacing: 0.3rem;
    font-weight: 600;
    border: 2px solid #b74b4b;
    transition: 0.3s ease;
    cursor: pointer;
}

.btn:hover{
    transform: scale3d(1.03);
    background-color: #b74b4b;
    color: black;
    box-shadow: 0 0 25px #b74b4b;
}

.typing-text{
    font-size: 24px;
    font-weight: 400;
    min-width: 280px;
}

.typing-text span{
    position: relative;
}

.typing-text span::before{
    content: " Developer";
    color: #b74b4b;
    animation: words 20s infinite;
}

.typing-text span::after{
    content: "";
    background-color: black;
    position: absolute;
    width: calc(100% + 8px);
    height: 100%;
    border-left: 3px solid black;
    right: -8;
    animation: cursor 0.6s infinite;
}

@keyframes cursor{
    to{
        border-left: 3px solid #b74b4b;
    }
}

@keyframes words{
    0%, 20%{
        content: "Student";
    }
    21%, 40%{
        content: "Front-end Developer";
    }
    41%, 60%{
        content: "Designer";
    }
    61%, 80%{
        content: "Developer";
    }
    81%, 100%{
        content: "Developer";
    }
}

@media (max-width: 1000px){
    .home{
        gap: 4rem;
    }
}

@media(max-width:995px){
    .home{
        flex-direction: column;
        margin: 5rem 4rem;
    }

    .home .home-content h3{
        font-size: 2.5rem;
    }

    .home-content h1{
        font-size: 5rem;
    }

    .home-img img{
        width: 70vw;
        margin-top: 4rem;
    }
    .home {
        flex-direction: column;
        text-align: center;
        gap: 4rem;
    }

    .home-content h1 {
        font-size: 4rem;
    }

    .home-content h3 {
        font-size: 2.5rem;
    }

    .home-img img {
        width: 70vw;
        margin-top: 4rem;
    }

    .social-icons a {
        margin: 1rem 1rem 1rem 0;
    }
    
}



body {
    font-family: Arial, sans-serif;
    background-color: black;
    color: #fff;
    margin: 0;
    padding: 0;
}

#services {
    text-align: center;
    padding: 50px 0;
    font-size: larger;
}

.service-container {
    display: flex;
    justify-content: center;
    gap: 20px;
    flex-wrap: wrap;
    margin: auto;
}

.service-card {
    background-color: #2344;
    border-radius: 10px;
    padding: 20px;
    width: 500px;
    height: 460px;
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.2);
}

.icon {
    font-size: 50px;
    margin-bottom: 30px;
    margin-top: 30px;
}

.service_h2 {
    margin: 10px 20px;
    color: #b74b4b;
    font-size: 25px;
}

ul {
    text-align: left;
    padding-left: 20px;
}

.btn1{
    display: inline-block;
    padding: 1rem 2.8rem;
    background-color: #b74b4b;
    border-radius: 4rem;
    font-size: 1.6rem;
    color: black;
    letter-spacing: 0.3rem;
    font-weight: 600;
    border: 2px solid #b74b4b;
    transition: 0.3s ease;
    cursor: pointer;
    margin-top: 50px;
}
.btn3{
    display: inline-block;
    padding: 1rem 2.8rem;
    background-color: #b74b4b;
    border-radius: 4rem;
    font-size: 1.6rem;
    color: black;
    letter-spacing: 0.3rem;
    font-weight: 600;
    border: 2px solid #b74b4b;
    transition: 0.3s ease;
    cursor: pointer;
    margin-top: 10px;
}
.btn3:hover{
    transform: scale3d(1.03);
    background-color: black;
    color: #b74b4b;
    box-shadow: 0 0 25px #b74b4b;
}
.btn1:hover{
    transform: scale3d(1.03);
    background-color: black;
    color: #b74b4b;
    box-shadow: 0 0 25px #b74b4b;
}

.service-text{
    margin: 25px ;
    font-size: 4em;
}

  
/* start */
#about-me {
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 20px;
    min-height: 80vh; /* Ensure minimum height */
  }
  
  .container {
    display: flex;
    flex-wrap: wrap; /* Allow content to wrap for smaller screens */
    max-width: 83%;
    width: 100%;
    margin: 0 auto; /* Center the container */
  }
  
  .profile {
    flex: 1; /* Allow flexible width for each section */
    background-color: #555;
    background-image: url(Profile.jpg);
    background-size: cover;
    background-position: center;
    height: 700px; /* Default height for large screens */
  }
  
  .description {
    flex: 1;
    padding-left: 50px;
  }
  
  h2 {
    font-size: 3em;
    margin-bottom: 0.5em;
    color: #b74b4b;
  }
  
  p {
    line-height: 1.9em;
    color: #ddd;
  }
  
  .btn2 {
    display: inline-block;
    padding: 0.8em 1.5em;
    background-color: #e74c3c;
    color: white;
    text-decoration: none;
    border-radius: 0.3em;
    transition: background-color 0.3s;
  }
  
  .btn2:hover {
    background-color: #c0392b; /* Slightly darker red on hover */
  }
  
  .about-text-2 {
    font-size: 18px;
    text-align: justify;
  }
  
  .about-text-1 {
    font-size: 20px;
  }
  
  /* Responsive Adjustments */
  @media (max-width: 992px) {
    .container {
      flex-direction: column; /* Stack sections vertically on smaller screens */
    }
  
    .profile {
      height: 500px; /* Adjust profile image height */
    }
  
    .description {
      padding-left: 20px; /* Reduce padding for smaller screens */
      padding-right: 20px;
    }
  
    h2 {
      font-size: 2.5em;
    }
  
    p {
      font-size: 1em;
    }
  
    .btn2 {
      padding: 0.6em 1.2em;
    }
  }
  
  @media (max-width: 768px) {
    .profile {
      height: 0%; /* Adjust profile image height further for smaller screens */
    }
  
    h2 {
      font-size: 2em;
    }
  
    .description {
      padding-left: 15px;
      padding-right: 15px;
    }
  
    p {
      font-size: 0.95em;
    }
  
    .btn2 {
      font-size: 0.9em;
    }
  }
  
  @media (max-width: 576px) {
    .profile {
      height: 300px; /* Adjust profile image height for mobile screens */
    }
    h2 {
      font-size: 1.7em;
    }
  
    .description {
      padding-left: 10px;
      padding-right: 10px;
    }
  
    p {
      font-size: 16px;
      line-height: 1.6em;
    }

    .tex p {
       overflow: hidden;
    
    }
    .btn2 {
      font-size: 0.8em;
      padding: 0.5em 1em;
    }
  }
  
/* end */

#skills-section {
    text-align: center;
    justify-content: center;
    flex-wrap: wrap;
}

.tex h1 {
    font-size: 4em;
    margin-bottom: 0.5em;
}

.tex p {
    font-size: 16px;
    text-align: justify;

}

.skills-grid {
    padding-top: 6%;
    display: flex;
    width: 100%;
    height: 25%;
    gap: 1em;
    flex-wrap: wrap;
    margin: 0, auto;
    justify-content: center;
}

.skill-item {
    background-color: #2a2a2a;
    padding: 1em;
    border-radius: 0.5em;
    display: flex;
    justify-content: center;
    align-items: center;
    position: relative;
    text-align: center;
    width: 300px;
    padding-left: 20px;
    height: 300px;
}
@media (max-width:768) {
    .skill-item{
        height: 200px;
        width: 200px;
    }
}
@media (max-width:576px) {
    .skill-item{
        height: 150px;
        width: 150px;
    }
}

.skill-item img {
    width: 100px;
    height: 200px;
}

.highlighted {
    background-color: #00b4d8;
    border-radius: 0.5em;
}

.tooltip {
    visibility: hidden;
    background-color: #333;
    color: #fff;
    text-align: center;
    border-radius: 0.5em;
    padding: 0.5em;
    position: absolute;
    z-index: 1;
    bottom: 125%;
    left: 50%;
    margin-left: -50px;
    width: 100px;
}

.skill-item:hover .tooltip {
    visibility: visible;
}
#project{
   text-align: center;
}
.project-text p{
    font-size: 4em;
}
.project-container{
    width: 100%;
    /* background-color: #00b4d8; */
    height: 620px;
    display: flex;
    justify-content: center;
    flex-wrap: wrap;
}
.project-container a {
    text-decoration: none;
}
.project{
    height: 300px;
    width: 300px;
    margin-left: 20px;
    margin-top: 20px;
    background-color: #2a2a2a;
    border-radius: 8px;
    text-align: center;
    display: flex;
    flex-direction: column;
    text-decoration: none;
    justify-content: center;
    color: #b74b4b;
}
.project:hover{
    transform: scale(1.1);
}
.project p{
    font-size: 24px;
    margin-top: 20px;
}
@media (max-width:1142px) {
    .project-container{
        height: 930px;
    }
}
@media (max-width:776px) {
    .project-container{
        height: 1860px;
    }
}    

/* start */

#contact-section {
    padding: 50px 20px;
}

.contact-main {
    display: flex;
    align-items: flex-start;
    justify-content: center;
    gap:250px;
}

#contact-section h2 {
    font-size: 4rem;
    color: white;
    margin-bottom: 20px;
    text-align: center;
}

#contact-section .p {
    color: white;
    text-align: center;
    font-size: 20px;
    margin-bottom: 30px;
}

.contact-form {
    width: 100%;
    max-width: 600px;
    padding: 20px;
    border-radius: 8px;
    
}

.contact-form label {
    display: block;
    margin-bottom: 8px;
    color: #b74b4b;
    font-weight: bold;
}

.contact-form input,
.contact-form textarea {
    width: 100%;
    padding: 10px;
    margin-bottom: 15px;
    border: 1px solid #444;
    border-radius: 4px;
    background: #333;
    color: #fff;
}

.contact-form input:focus,
.contact-form textarea:focus {
    border-color: #c0392b;
    outline: none;
}

.contact-info {
    max-width: 400px;
    margin-top: 20px;
}

.info {
    display: flex;
    align-items: center;
    margin-bottom: 15px;
}

.icon1 {
    font-size: 20px;
    background-color: #e74c3c;
    color: black;
    height: 50px;
    width: 50px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-right: 15px;
}

.info1 {
    font-size: 14px;
}
@media (max-width: 1300px) {
    #contact-section h2 {
        font-size: 3rem;
    }

    .contact-main {
        flex-direction: column;
        align-items: center;
        gap: 30px;
    }

    .contact-info {
        max-width: 90%;
        margin-bottom: 20px;
    }

    .contact-form {
        width: 100%;
    }
}
@media (max-width: 768px) {
    #contact-section h2 {
        font-size: 3rem;
    }

    .contact-main {
        flex-direction: column;
        align-items: center;
        gap: 30px;
    }

    .contact-info {
        max-width: 90%;
        margin-bottom: 20px;
    }

    .contact-form {
        width: 100%;
    }
}
/* end */

footer{
    height: 300px;
    background-color: #161616;
    display: flex;
    align-items: center;
}
.foterleft{
    height: 100%;
    width: 40%;
    margin-left: 10%;

}
.foterleft h2{
    margin-top: 40px;
    margin-left: 20px;
}
.iconf{
    display: flex;
    justify-content: center;
    line-height: 50px;
    height: 150px;
    width: 220px;
}
.link{
    height: 50px;
    width: 50px;
    border-radius: 50%;
    display: flex;
    justify-content: center;
    line-height: 50px;
    margin: 10px;
    font-size: 24px;
    color: white;
}
.foterright{
    height: px;
    margin-top: 30px;
    width: 40%;
    margin-left: 15%;
}
.page{
    height: 40px;
    width: 30%;
    margin: 10px;
}
.foterleft a{
    text-decoration: none;
    color: white;
}
.foterleft a:hover{
    color: #c0392b;
}
.foterright a{
    text-decoration: none;
    font-size:  20px;
    color: white;
}
.foterright a:hover{
    color: #e74c3c;
}
.copy{
    float: left;
    margin-left: 20px;
}
.copy p{
    font-size: 16px;
}