@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;
}
h1{margin-top: 20px;}
html{
    font-size: 62.5%;
    scroll-behavior: smooth;
}

body{
    width: 100%;
    height: 100vh;
    overflow-x: hidden;
    background-color: black;
    color: white;
}

header{
    
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    padding: 1rem 9%;
    background-color: #111111;
    filter: drop-shadow(10px);
    display: flex;
    justify-content: space-between;
    align-items: center;
    z-index: 100;
}


.logo{
    font-size: 3rem;
    color: #a69279;
    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: 6rem;
    font-weight: 500;
    transition: 0.3s ease;
    border-bottom: 3px solid transparent;
}


nav a.active {
    color: #a69279;
    border-bottom: 3px solid #a69279;
    transition: border-bottom 1s ease;
}

/* Hover styles for non-active links */
nav a:not(.active):hover {
    color: #a69279;
    border-bottom: 3px solid #a69279;
    transition: border-bottom 1s ease;
}
/* Hover Effect: underline appears on hover */
nav a:hover {
    color: #a69279;
    border-bottom: 3px solid #a69279;
    transition: border-bottom 1s ease;
}

/* When the active link is hovered, keep the underline */
nav a.active:hover {
    border-bottom: 3px solid #a69279;
}

/* Ensure the active link's border stays in place when hovered over */
nav a.active:hover {
    color: #a69279;
    border-bottom: 3px solid #a69279;
}

@media(max-width:995px){
    nav{
        position: absolute;
        display: none;
        top: 0;
        right: 0;
        width: 40%;
        border-left: 3px solid #a69279;
        border-bottom: 3px solid #a69279;
        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;
    }

    nav a:hover,
    nav a.active{
        padding: 1rem;
        border-radius: 0.5rem;
        border-bottom: 0.5rem solid #a69279;
    }
}

section{
    opacity: 0;
    min-height: 100vh;
    padding: 5rem 9% 5rem;
    transform: translateX(-100%); /* Start position (left) */
    transition: opacity 1s ease, transform 1s ease; /* Adjust duration as needed */
    
}

.animate-section{
    opacity: 1;
    transform: translateX(0);
}
section.animate-section {
    animation-fill-mode: forwards;
  }
section p{
    font-size: 1.6rem;
}
section h3{
    font-size: 4rem;
    margin-bottom: 1rem;
    font-weight: 700;
}

.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: #a69279;
}

.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 solid #a69279;
    cursor: pointer;
    transition: 0.2s linear;
}

.home-img img:hover{
    font-size: 1.8rem;
    font-weight: 500;
}

.social-icons a{
    display: inline-flex;
    justify-content: center;
    align-items: center;
    width: 4rem;
    height: 4rem;
    background-color: transparent;
    border: 0.2rem solid #a69279;
    font-size: 2rem;
    border-radius: 50%;
    margin: 3rem 1.5rem 3rem 0;
    transition: 0.3s ease;
    color: #a69279;
}

.social-icons a:hover{
    color: black;
    transform: scale(1.3) translateY(-5px);
    background-color: #a69279;
    box-shadow: 0  0 25px #a69279;
}

.btn{
    display: inline-block;
    padding: 1rem 2.8rem;
    background-color: black;
    border-radius: 4rem;
    font-size: 1.6rem;
    color: #a69279;
    letter-spacing: 0.3rem;
    font-weight: 600;
    border: 2px solid #a69279;
    transition: 0.3s ease;
    cursor: pointer;
}

.btn:hover{
    transform: scale3d(1.03);
    background-color: #a69279;
    color: black;
    box-shadow: 0 0 25px #a69279;
}

.typing-text{
    font-size: 34px;
    font-weight: 600;
    min-width: 280px;
}

.typing-text span{
    position: relative;
}

.typing-text span::before{
    content: "software Developer";
    color: #a69279;
    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 #a69279;
    }
}

@keyframes words{
    0%, 20%{
        content: "Android Developer";
    }
    21%, 40%{
        content: "Java Developer";
    }
    41%, 60%{
        content: "Software Engineer";
    }
    61%, 80%{
        content: "ASP.NET Developer";
    }
    81%, 100%{
        content: "Web Developer";
    }
}

@media (max-width: 1000px){
    .home{
        gap: 1rem;
    }
}

@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: 55vw;
        margin-top: 4rem;
    }
    .logo{
        margin-left:29rem;
    }
    .home-content{
        margin-bottom: 50px;
    }
    .social-icons{
        margin-left: 245px;
    }
    #hire{
        margin-left: 290px;
    }
    #xx{
    
        font-size: 40px;
       }
}
@media (max-width: 768px) {
    .home {
        flex-direction: column;
        margin: 3rem 2rem; /* Less margin for smaller screens */
    }

    .home .home-content h3 {
        font-size: 2rem; /* Smaller heading */
    }

    .home-content h1 {
        font-size: 3.5rem; /* Reduce the main heading */
    }

    .home-img img {
        width: 63vw; /* Adjust image size */
        margin-top: 2rem; /* Less margin on top */
    }
    .logo{
        margin-left:20rem;
    }
    .home-content{
        margin-bottom: 50px;
    }
    .social-icons{
        margin-left: 170px;
    }
    #hire{
        margin-left: 220px;
    }
    #xx{
    
        font-size: 40px;
       }
}

@media (max-width: 576px) {
    .home {
        margin: 2rem 1rem; /* Even smaller margin */
    }

    .home .home-content h3 {
        font-size: 1.8rem; /* Reduce heading further */
    }

    .home-content h1 {
        font-size: 3rem; /* Reduce main heading further */
    }

    .home-img img {
        width: 60vw; /* Scale down image */
        margin-top: 1.5rem;
    }
    .logo{
        margin-left:13rem;
    }
    .home-content{
        margin-bottom: 50px;
    }
    .social-icons{
        margin-left: 120px;
    }
    #hire{
        margin-left: 150px;
    }
    #xx{
    
        font-size: 40px;
       }
}
/* For very small tablets and large phones */
@media (max-width: 480px) {
    .home {
        margin: 1.5rem 0.5rem;
        padding: 0; /* Remove extra padding for more space */
    }

    .home .home-content h3 {
        font-size: 1.6rem; /* Smaller heading size */
    }

    .home-content h1 {
        font-size: 2.5rem; /* Reduce main heading further */
    }

    .home-img img {
        width: 60vw; /* Shrink image size */
        margin-top: 7rem;
    }
    .logo{
        margin-left:9rem;
    }
    .home-content{
        margin-bottom: 50px;
    }
    .social-icons{
        margin-left: 120px;
    }
    #hire{
        margin-left: 150px;
    }
    #xx{
    
        font-size: 40px;
       }
}

/* For very small screens, like typical smartphones (iPhone SE, etc.) */
@media (max-width: 375px) {
    .home {
        margin: 1rem 0.5rem;
    }

    .home .home-content h3 {
        font-size: 1.4rem; /* Smaller sub-heading */
    }

   #xx{
    
    font-size: 30px;
   }
  

    .home-img img {
        width: 50vw; /* Max width for small screens */
        margin-top: 9rem; /* Minimal margin */
    }
    .logo{
        margin-left:6.2rem;
    }
    .home-content{
        margin-bottom: 50px;
    }
    .social-icons{
        margin-left: 80px;
    }
    #hire{
        margin-left: 120px;
    }
}


@media(max-width:995px){
    #AboutMe{
        flex-direction: column;
        margin: 5rem 4rem;
    }

    #AboutMe h2{
        font-size: 2.5rem;
    }


}
#AboutMe{
    padding-top: 60px;
}
#Skills{
    padding-top: 60px;
   
}
#Skills p{
    font-size: 20px;
   
}
#Projects{
    padding-top: 60px;
}
#Projects p{
    font-size: 19px;
}
#Contact{
    padding-top: 60px;
}
#Contact p{
    text-align: center;
    font-size: 20px;
}

#con{margin-left: 60px;}
/* Contact Section */
#contact {
    padding: 3rem 9%;
    background-color: #161616;
    color: white;
  }
  
  #contact h2 {
    font-size: 3rem;
    font-weight: 600;
    margin-bottom: 1rem;
    text-align: center;
  }
  
  #contact p {
    font-size: 1.6rem;
    margin-bottom: 2rem;
    text-align: center;
  }
  
  /* Form Styling */
  .contact-form {
    padding-top: 20px;
    display: flex;
    flex-direction: column;
    gap: 1.5rem;
    max-width: 600px;
    margin: 0 auto;
  }
  
  .form-group {
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
  }
  
  label {
    font-size: 1.4rem;
    font-weight: 500;
  }
  
  input, textarea {
    padding: 1rem;
    font-size: 1.6rem;
    border: 2px solid #a69279;
    border-radius: 0.5rem;
    background-color: #2c2c2c;
    color: white;
    outline: none;
    transition: border-color 0.3s ease;
  }
  
  input:focus, textarea:focus {
    border-color: #a69279;
  }
  
  textarea {
    resize: vertical;
    min-height: 150px;
  }
  
  #succ{
    justify-content: center;
    
  }
 .texted{
    padding-top: 200px;
    text-align: center;
 }
 #btnsucc{
    margin-top: 100px;
 }
 .projects-gallery {
    display: flex;
    margin-top: 20px;
    flex-wrap: wrap;
    gap: 20px;
    justify-content: center;
}

.project-card {
    width: 200px;
    height: 390px;
    border: 1px solid #ddd;
    border-radius: 8px;
    overflow: hidden;
    text-align: center;
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1);
}

.project-card img {
    width: 100%;
    height: 200px;
    object-fit:cover
}

.project-card h4 {
    margin: 10px 0;
}

.project-card text {
    padding: 0 15px;
    
}

.project-card a {
    display: block;
    margin: 15px 0;
    color: #a69279;
    text-decoration: none;
}

.project-card a:hover{
    font-size: medium;
    transition-duration: 130ms;
}

#desc{
    font-size: 12px;
}

/* Initial state for project cards */
.project-card {
    opacity: 0;
    transform: translateX(-100%);
    transition: opacity 1s ease, transform 1s ease;
}

/* Animated state for project cards */
.project-card.animate {
    opacity: 1;
    transform: translateX(0);
}
.project-card:hover {
    /* Glowing effect on hover */
    box-shadow: 0 0 15px rgba(122, 86, 72, 0.8), 0 0 25px rgba(225, 186, 161, 0.6);

    transform: scale(1.05); /* Optional: Adds a slight zoom effect */
}

.circle {
    height: 20px;
    width: 20px;
    border-radius: 24px;
    background-color: black;
    position: fixed; 
    top: 0;
    left: 0;
    pointer-events: none;
    z-index: 99999999; /* so that it stays on top of all other elements */
  }

  @import url('https://fonts.googleapis.com/css?family=Exo:400,700');






.circles{
    position: absolute;
    z-index: -1;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    overflow: hidden;
}

.circles li{
    position: absolute;
    display: block;
    list-style: none;
    width: 20px;
    height: 20px;
    background: rgba(255, 255, 255, 0.2);
    animation: animate 25s linear infinite;
    bottom: -150px;
    
}

.circles li:nth-child(1){
    left: 25%;
    width: 80px;
    height: 80px;
    animation-delay: 0s;
}


.circles li:nth-child(2){
    left: 10%;
    width: 20px;
    height: 20px;
    animation-delay: 2s;
    animation-duration: 12s;
}

.circles li:nth-child(3){
    left: 70%;
    width: 20px;
    height: 20px;
    animation-delay: 4s;
}

.circles li:nth-child(4){
    left: 40%;
    width: 60px;
    height: 60px;
    animation-delay: 0s;
    animation-duration: 18s;
}

.circles li:nth-child(5){
    left: 65%;
    width: 20px;
    height: 20px;
    animation-delay: 0s;
}

.circles li:nth-child(6){
    left: 75%;
    width: 110px;
    height: 110px;
    animation-delay: 3s;
}

.circles li:nth-child(7){
    left: 35%;
    width: 150px;
    height: 150px;
    animation-delay: 7s;
}

.circles li:nth-child(8){
    left: 50%;
    width: 25px;
    height: 25px;
    animation-delay: 15s;
    animation-duration: 45s;
}

.circles li:nth-child(9){
    left: 20%;
    width: 15px;
    height: 15px;
    animation-delay: 2s;
    animation-duration: 35s;
}

.circles li:nth-child(10){
    left: 85%;
    width: 150px;
    height: 150px;
    animation-delay: 0s;
    animation-duration: 11s;
}



@keyframes animate {

    0%{
        transform: translateY(0) rotate(0deg);
        opacity: 1;
        border-radius: 0;
    }

    100%{
        transform: translateY(-1000px) rotate(720deg);
        opacity: 0;
        border-radius: 50%;
    }

}