*{
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    font-family: 'poppins';
    text-decoration: none;
    scroll-behavior: smooth;
    list-style: none;
}

header{
    position: fixed;
    top: 1rem;
    left: 50%;
    transform: translateX(-50%);
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 5rem;
    background-color: rgba(0, 0, 0, 0.8);
    backdrop-filter: blur(8px);
    color: white;
    padding: 0.5rem 1.5rem;
    border-radius: 3rem;
    z-index: 1000;
}
.logo{
    color: white;
    font-size: 1.3rem;
    font-weight: 600;
    text-wrap: nowrap;
    transition: 0.3 ease-in-out;
}
.logo:hover{
    transform: scale(1.1);
}
.nav-links{
    display: flex;
    gap: 2rem;
}
li a{
    position: relative;
    color: white;
    font-weight: 300;
}
li a::before{
    position: absolute;
    content: '';
    width: 0;
    left: 0;
    height: 5px;
    top: 25px;
    border-radius: 1rem;
    transition: 0.3s ease-in-out;
    background: linear-gradient(to right, rgb(65, 105, 225), rgb(255, 105, 180), rgb(255, 140, 0), rgb(255, 200, 124));
}
li a:hover::before{
    width: 100%;
}
.visit-btn{
    padding: 0.8rem 1.5rem;
    border-radius: 3rem;
    border: none;
    font-weight: 500;
    font-size: 1rem;
    color: white;
    cursor: pointer;
    text-wrap: nowrap;
    transition: 0.3s ease-in-out;
    background:linear-gradient(to right, rgb(65, 105, 225), rgb(255, 105, 180), rgb(255, 140, 0), rgb(255, 200, 124));
}
.visit-btn:hover{
    background: linear-gradient(to right, rgb(211, 211, 211), rgb(255, 105, 180), rgb(255, 165, 0));
    transform: scale(1.03);

}
#menu-icon{
    font-size: 2rem;
    display: none;
}
section{
    min-height: 100vh;
    padding: 8rem 12%;
    width: 100%;
    position: relative;
}
.about{
    display: flex;
    align-items: center;
    justify-content: center;
}
.about .about-container{
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 10rem;
}
.about img{
    width: 25vw;
    border-radius: 20%;
}
.info-box{
    display: flex;
    flex-direction: column;
    text-align: center;
    align-items: center;
    justify-content: center;
    gap: 1.6rem;
}
.info-box h3{
    font-size: 1.8rem;
    font-weight: 500;
    opacity: 0.8;
}
.info-box h1{
    font-size: 4rem;
    font-weight: 500;
}
.info-box span{
    background: linear-gradient(to right, rgb(65, 105, 225), rgb(255, 105, 180), rgb(255, 140, 0), rgb(255, 200, 124));
    background-clip: text;
    color: transparent;
    font-size: 2rem;
}
.box{
    width: 600px;           
    height: 170px;          
    background-color: #B2BEB5; 
    color: white;         
    border: 2px solid black;  
    border-radius: 3rem; 
    text-align: center;    
    display: flex; 
    justify-content: center;
    align-items: center;
}
.btn-group{
    display: flex;
    gap: 1rem;
}
.btn{
    border-radius: 3rem;
    padding: 0.5rem 1.8rem;
    border: 2px solid black;
    cursor: pointer;
    font-weight: 500;
    text-wrap: nowrap;
    transition: 0.2s ease-in-out;
}
.btn:hover{
    background-color: black;
    color:white
}
.section-title{
    text-align: center;
    font-size: 4rem;
    font-weight: 600;
    margin-bottom: 3rem;
}
.experience-info{
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 5rem;
}
.expereince img{
    width: 10vw;
    border-radius: 3rem;
}
.grid{
    display: grid;
    grid-template-columns: repeat(2,1fr);
    gap: 2rem;
}
.grid-card{
    border: 2px solid black;
    border-radius: 3rem;
    padding: 3rem;
    display: flex;
    flex-direction: column;
    align-items: baseline;
    justify-content: left;
    cursor: pointer;
    transition: 0.2s ease-in-out;
}
.grid-card:hover{
    transform: scale(1.02);
    background-color: black;
    color: white;
}
.grid-card i{
    font-size: 1.5rem;
    margin: 1rem;
}
.grid-card span{
    font-size: 1.5rem;
    font-weight: 500;
    background: linear-gradient(to right, rgb(65, 105, 225), rgb(255, 105, 180), rgb(255, 140, 0), rgb(255, 200, 124));
    background-clip: text;
    color: transparent;
}
::-webkit-scroller-tracker{
    background-color: rgb(219, 219, 219);
}
::-webkit-scroller-thumb{
    background: linear-gradient(to right, rgb(65, 105, 225), rgb(255, 105, 180), rgb(255, 140, 0), rgb(255, 200, 124));
}
.project-grid{
    display: flex;
    grid-template-columns: repeat(auto-fit,minmax(300px,1fr));
    gap: 2rem;
}
.project-card{
    padding:3rem 2rem;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    text-align: center;
    gap: 1.5rem;
    border: 2px solid black;
    border-radius: 3rem;
    cursor: pointer;
    transition: 0.3s ease-in-out;
}
.project-card:hover{
    background: black;
    color: white;
    transform: translateY(-10px)scale(1.02);
}
.project-card img{
    width: 10vw;
    border-radius: 1rem;
}
.project-card:hover .btn{
    border: 2px solid white;
    color: white;
}
.project-card:hover .btn:hover{
    border: 2px solid white;
    background-color: white;
    color: black;
}
.project-card h3{
    font-size: 2rem;
    font-weight: 500;
}
.socials{
    display: flex;
    justify-content: center;
    gap: 5rem;
}
.socials i{
    font-size: 2.5rem;
    cursor: pointer;
    transition: 0.2 ease-in-out;
    color: black;
}
.socials i:hover{
    transform: scale(1.1);
}


@media screen and (max-width: 768px) {
    header {
        position: fixed;
        top: 0;
        left: 0;
        right: 0;
        transform: none;
        padding: 1rem;
    }
    /* General Styles for About Section */
.about {
    display: flex;
    align-items: center;
    justify-content: center;
    flex-direction: row; /* Default for larger screens */
    gap: 10rem;
    text-align: center;
}

.about .about-container {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 10rem;
}

.about img {
    width: 25vw; /* Default width for larger screens */
    border-radius: 20%;
}

/* Mobile View - Adjustments for smaller screens */
@media screen and (max-width: 768px) {
    /* Make the about section more compact for mobile */
    .box {
        width: 80%; /* Make the box take up more width on smaller screens */
        height: auto; /* Allow the height to adjust automatically */
        padding: 1rem; /* Add padding inside the box */
        font-size: 1rem; /* Reduce font size for mobile */
    }

    .box .btn {
        padding: 0.5rem 1rem; /* Adjust button size inside the box */
    }
    .about {
        flex-direction: column; /* Stack content vertically on mobile */
        gap: 2rem; /* Reduce space between image and text */
        padding: 2rem 0; /* Add padding for better spacing */
    }

    .about .about-container {
        flex-direction: column; /* Stack content vertically */
        gap: 2rem; /* Reduce space between the elements */
    }

    .about img {
        width: 60vw; /* Increase image size to fill more space on mobile */
        max-width: 80%; /* Ensure the image doesn't stretch too large */
        border-radius: 15%; /* Slightly smaller border-radius for better fit */
    }

    .info-box {
        gap: 1rem; /* Reduce gap in the info-box for better fit on mobile */
    }

    .info-box h1 {
        font-size: 2.5rem; /* Smaller font size for h1 */
    }

    .info-box h3 {
        font-size: 1.5rem; /* Smaller font size for h3 */
    }

    .info-box span {
        font-size: 1.5rem; /* Smaller font size for span */
    }
}
.nav-links {
        display: none; /* Hide navigation links */
    }

    #menu-icon {
        display: block;
    }

    .experience-info {
        display: flex;
        flex-direction: column; /* Stack items vertically */
        justify-content: center;
        align-items: center;
        gap: 2rem;
        min-height: auto;
        text-align: center;
    }

    .experience-info img {
        width: 50vw; /* Make images bigger for mobile */
        border-radius: 3rem;
    }

    .section-title {
        font-size: 2rem; /* Smaller font size for section title */
        margin-bottom: 2rem;
    }

    .grid {
        display: grid;
        grid-template-columns: 1fr; /* Stack the grid items vertically */
        gap: 2rem;
    }

    .grid-card {
        padding: 2rem; /* Reduce padding for mobile */
        text-align: center;
    }

    .project-grid {
        display: flex;
        flex-direction: column; /* Stack project items vertically */
    }

    .project-card {
        padding: 2rem; /* Adjust padding for mobile */
    }

    .socials {
        gap: 2rem; /* Reduce gap between social icons */
    }
}
