@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;
}

html{
    font-size: 62.5%;
}

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: rgba(0, 0, 0, 0.5); 
    display: flex;
    justify-content: space-between;
    align-items: center;
    z-index: 100;
    backdrop-filter: blur(50px);
    -webkit-backdrop-filter: blur(50px); 
}



.logo{
    font-size: 3rem;
    color: #add7fe;
    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,
nav a.active{
    color: #add7fe;
    border-bottom: 3px solid #add7fe;
}



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: #add7fe;
}

.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;
   
    border-radius: 50%;
    box-shadow: 0 0 25px solid #add7fe;
    cursor: pointer;
    transition: 0.2s linear;
    height: 500px;
    width: auto;
}

.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 #add7fe;
    font-size: 2rem;
    border-radius: 50%;
    margin: 3rem 1.5rem 3rem 0;
    transition: 0.3s ease;
    color: #add7fe;
}

.social-icons a:hover{
    color: black;
    transform: scale(1.3) translateY(-5px);
    background-color: #add7fe;
    box-shadow: 0  0 25px #add7fe;
}

.btn{
    display: inline-block;
    padding: 1rem 2.8rem;
    background-color: black;
    border-radius: 4rem;
    font-size: 1.6rem;
    color: #add7fe;
    letter-spacing: 0.3rem;
    font-weight: 600;
    border: 2px solid #add7fe;
    transition: 0.3s ease;
    cursor: pointer;
}

.btn:hover{
    transform: scale3d(1.03);
    background-color: #add7fe;
    color: black;
    box-shadow: 0 0 25px #add7fe;
}

.typing-text{
    font-size: 34px;
    font-weight: 600;
    min-width: 280px;
}

.typing-text span{
    position: relative;
}

.typing-text span::before{
    content: "STUDENT";
    color: #add7fe;
    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 #add7fe;
    }
}

@keyframes words{
    0%, 20%{
        content: "UNDERGRADUATE !";
    }
    21%, 40%{
        content: "DEVELOPER !";
    }
    41%, 60%{
        content: "WEB DESIGNER !";
    }
    61%, 80%{
        content: "GRAPHIC DESIGNER !";
    }
    81%, 100%{
        content: "GAMER !";
    }
}

@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;
    }
}

.skillheading{

    margin-top: 10%;
    text-align: center;
    font-size: xx-large;
}
hr{
    border: 1px solid #add7fe;
    margin-left: 45%;
    margin-right: 45%;
}
.hr1{
    margin-top: 0.4%;
    margin-left: 46%;
    margin-right: 46%;
}
.skillh3{
    margin-top: 5%;
    font-size: x-large;
    margin-left: 39%;
    color: #add7fe;
}
.skillpara{
    font-size: large;
    margin-left: 32%;
    margin-right: 30%;
    text-align: justify;
    margin-top: 4%;
    
    
}


.skillheading, .skillh3, .skillpara, hr, .hr1 {
    opacity: 0; 
    animation: slideInUp 1s ease-out forwards;
}


.skillheading {
    animation-delay: 0.2s;
}

hr, .hr1 {
    animation-delay: 0.4s;
}

.skillh3 {
    animation-delay: 0.6s;
}

.skillpara {
    animation-delay: 0.8s;
}
@keyframes fadeIn {
    from {
        opacity: 0;
    }
    to {
        opacity: 1;
    }
}


@keyframes popIn {
    0% {
        opacity: 0;
        transform: scale(0.8);
    }
    100% {
        opacity: 1;
        transform: scale(1);
    }
}


@keyframes slideInUp {
    from {
        opacity: 0;
        transform: translateY(20px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}


body {
    animation: fadeIn 1.2s ease-out forwards;
}

.skill-container {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    align-items: center;
    margin-top: 5%;
    font-size: x-large;
    color: #add7fe;
    opacity: 0;
    animation: popIn 1.5s ease forwards; 
    animation-delay: 0.5s; 
}

.skill-item {
    display: flex;
    flex-direction: column; 
    align-items: center;
    width: 20%;
    margin: 20px;
    opacity: 0;
    transform: translateY(20px); 
    animation: slideInUp 1s ease forwards;
    animation-delay: 2s; 

}
.skill-item:nth-child(1) { animation-delay: 1.2s; }
.skill-item:nth-child(2) { animation-delay: 1.4s; }
.skill-item:nth-child(3) { animation-delay: 1.6s; }
.skill-item:nth-child(4) { animation-delay: 1.8s; }
.skill-item:nth-child(5) { animation-delay: 2.0s; }

.percentage {
    font-size: xx-large;
    margin-top: 5px; 
    color: #add7fe;
}


@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(20px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}


.skill-item {
    opacity: 0;
    transform: translateY(20px); 
    animation: fadeInUp 3s ease forwards;
}


.skill-container {
    
    animation: fadeInUp 2s ease-in;
    animation-fill-mode: forwards;
}

footer {
    margin-top: 10%;
    background-color: rgb(18, 18, 18);
    padding: 40px 20px;
    color: white;
    font-family: "Montserrat";
}

.footer-content {
    max-width: 1200px;
    margin: 0 auto;
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 40px;
    padding: 20px 0;
}

.footer-logo-section {
    display: flex;
    flex-direction: column;
    align-items: flex-start;
}

.LogoFooter {
    width: 80px;
    height: auto;
    margin-bottom: 20px;
}

.copyright {
    color: #ffffff;
    font-size: 0.8em;
    display: flex;
    align-items: center;
    gap: 5px;
}

.copyright span {
    color: #add7fe;
    font-size: larger;
}

.footer-nav {
    display: flex;
    flex-direction: column;
    gap: 15px;
}

.footer-nav a {
    color: white;
    text-decoration: none;
    font-size:small ;
    font-weight: bold;
    transition: color 0.3s ease;

}

.footer-nav a:hover {
    color: #add7fe;
}

.footer-contact {
    display: flex;
    flex-direction: column;
    gap: 15px;
}

.contact-info {
    font-size: small;
    display: flex;
    align-items: center;
    gap: 10px;
}

.contact-info a {
    color: white;
    text-decoration: none;
    transition: color 0.3s ease;
}

.contact-info a:hover {
    color: #add7fe;
}

.footerline {
    border: none;
    height: 1px;
    background-color: #add7fe;
    margin-bottom: 40px;
}


@media screen and  (max-width: 768px) {

    

    .logo {
        font-size: 1.5rem;
    }
    header{
        margin: auto;
    }
   

   

    .nav-toggle {
        display: block;
        cursor: pointer;
        font-size: 2.5rem;
        color: #add7fe;
    }

    

    nav a {
        font-size: 1.2rem;
        margin: 1rem 0;
        text-align: left;
        padding: 5px;
    }
    .skillh3{
        margin-left: 28%
    }
    .skillpara{
        margin: 0;
        padding-left: 10%;
        padding-right: 10%;
    }
}

@media (max-width: 1024px) {
    .home {
        padding: 120px 3%;
    }

    .home-img img {
        width: 350px;
    }

    .indexh1 h1 {
        font-size: 2.5rem;
    }
}


@media (max-width: 768px) {
    header {
        padding: 1.2rem 4%;
    }

    nav a {
        margin-left: 1rem;
        font-size: 1rem;
    }

    .home {
        flex-direction: column-reverse;
        text-align: center;
        padding: 100px 3%;
    }

    .home-img img {
        width: 300px;
    }

    .home-content {
        display: flex;
        flex-direction: column;
        align-items: center;
    }

    .indexh1 h1 {
        font-size: 2.2rem;
    }

    .typing-text {
        font-size: 1.3rem;
    }
}


@media (max-width: 480px) {
    header {
       margin-top: 5%;
    }

    .logo {
        
        display: none;
    }

    nav {
        position: fixed;
        bottom: 0;
        left: 0;
        width: 100%;
        
        padding: 0.8rem;
        display: flex;
        justify-content: space-around;
        box-shadow: 0 -2px 10px rgba(0, 0, 0, 0.1);
    }

    nav a {
        
        font-size: 0.9rem;
        padding-inline: 2px;
    }

    .home {
        padding: 80px 3% 100px;
    }

    .home-img img {
        width: 250px;
    }

    .indexh1 h1 {
        font-size: 1.8rem;
    }

    .typing-text {
        font-size: 1.1rem;
    }

    .home-content p {
        font-size: 0.9rem;
    }

    .social-icons a {
        width: 35px;
        height: 35px;
        margin-right: 0.8rem;
    }

    .btn {
        padding: 0.7rem 1.2rem;
        font-size: 0.9rem;
    }

    .skillh3{
        margin-left: 0;
        text-align: center;
        margin-bottom: 5%;
    }

    #projects1{
        margin-left: 10%;
        font-size: 1.9rem;
    }
    #hr{
        margin-left: 44%;
        margin-right: 35%;
    }
    #hr1{
        margin-left: 46%;
        margin-right: 37%;
    }
    #btn{
        margin-left: 20%;
    }





}




@media screen and (max-width: 768px) {
   
    .footer-content {
        grid-template-columns: 1fr;
        gap: 30px;
        text-align: center;
    }

    .footer-logo-section {
        align-items: center;
    }

    .footer-nav {
        align-items: center;
    }

    .footer-contact {
        align-items: center;
    }

    .LogoFooter {
        width: 60px;
    }
}

@media screen and (max-width: 480px) {

    footer {
        padding: 30px 15px;
    }

    .footer-content {
        gap: 25px;
    }

    .copyright {
        font-size: 0.7em;
    }

    .footer-nav a {
        font-size: 0.7em;
    }

    .contact-info {
        font-size: 0.7em;
    }

    .LogoFooter {
        width: 50px;
    }
}

.boxes {
    margin-left: 20%;
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 30px;
    margin-top: 20px;

}

.box {
    background-color: #000000;
    padding: 30px;
    border-radius: 10px;
    box-shadow: 0 6px 12px rgba(0, 0, 0, 0.2);
    transition: transform 1.5s;
    margin-left: 5%;
    margin-right: 45%;
}

.box:hover {
    transform: scale(1.05);
    background-color: #add7fe;
}
.box:hover .topic{
    color: #000000;
}

.topic {
    text-align: center;
    font-size: 1.75em;
    color: #add7fe;
    margin-bottom: 15px;
}

.description {
    text-align: center;
    font-size: 1.2em;
    color: #ffffff;
    line-height: 1.5;
}


.boxes > .box:nth-child(5) {
    grid-column: 1 / 3; 
    justify-self: center;
    margin-left: 30%;
    
}
.info-button{
    
    background-color: #add7fe;
    margin-left: 35%;
    margin-top: 10%;
    padding: 5px;
    border-radius: 15px;


}
.info-button:hover{

    background-color: #ffffff;
    
}
.info-button:hover a{
    color: #000000;
}
.info-button a{
    color: #000000;
}

@keyframes boxPopIn {
    0% {
        opacity: 0;
        transform: scale(0.8);
    }
    100% {
        opacity: 1;
        transform: scale(1);
    }
}

.box {
    opacity: 0;
    transform: scale(0.8); 
    animation: boxPopIn 1.5s ease forwards;
}


.boxes > .box:nth-child(1) { animation-delay: 1.2s; }
.boxes > .box:nth-child(2) { animation-delay: 1.4s; }
.boxes > .box:nth-child(3) { animation-delay: 1.6s; }
.boxes > .box:nth-child(4) { animation-delay: 1.8s; }
.boxes > .box:nth-child(5) { animation-delay: 2.0s; }


.box:hover {
    transform: scale(1.05);
    background-color: #add7fe;
}

.box:hover .topic {
    color: #000000;
}


.contact-section {
    text-align: center;
    max-width: 1000px; /* Increase max-width to provide more space for both sections */
    margin: auto;
    padding: 20px;
}

.contact-section h2 {
    margin-top: 10%;
    font-size: 2em;
    margin-bottom: 10px;
}

.email-button {
    margin: 10px 0 20px;
    padding: 10px 20px;
    background-color: #add7fe;
    border: none;
    border-radius: 5px;
    color: #000000;
    cursor: pointer;
    transition: transform 0.3s ease, background-color 0.3s ease;
}

.email-button:hover {
    transform: scale(1.05);
    background-color: #80c1ff;
}

.contact-container {
    display: flex;
    gap: 20px;
    flex-wrap: wrap; 
}

.profile-card {
    background-color: #2a2a2a;
    padding: 20px;
    border-radius: 8px;
    width: 100%; 
    max-width: 400px;
    text-align: left;
    flex: 1 1 300px; 
}

.profile-card .profile-picture {
    width: 100%;
    border-radius: 5px;
    margin-bottom: 15px;
}

.profile-card h3 {
    font-size: 2em;
    margin-bottom: 5px;
}

.profile-card p {
    margin: 5px 0;
    font-size: 1.5em;
    color: #b0b0b0;
}

.social-media {
    display: flex;
    gap: 5px;
    margin-top: 10px;
}

.social-icon {
    background-color: #333;
    padding: 8px;
    border-radius: 4px;
    color: white;
    text-decoration: none;
    font-size: 0.9em;
}

.contact-form {
    background-color: #2a2a2a;
    padding: 20px;
    border-radius: 8px;
    flex: 1 1 300px; 
    width: 100%; 
}

.contact-form label {
    display: block;
    font-size: 1.4em;
    color: #b0b0b0;
    margin-bottom: 5px;
}

.contact-form input,
.contact-form textarea {
    width: 100%; 
    padding: 10px;
    margin-bottom: 15px;
    background-color: #333;
    border: none;
    border-radius: 5px;
    color: #fff;
    font-size: 1.2rem;
}

.send-button {
    width: 100%;
    padding: 10px;
    background-color: #add7fe;
    border: none;
    border-radius: 5px;
    color: #000000;
    cursor: pointer;
    font-size: 0.9em;
    transition: transform 0.3s ease, background-color 0.3s ease;
}
.send-button:hover {
    transform: scale(1.05);
    background-color: #80c1ff;
}



