*{
    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{
    font-size: 1.3rem;
    font-weight: 600;
    color: white;
    text-wrap: nowrap;
    transition: 0.3s 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(0, 157, 255), rgb(255, 0, 255));
}
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(0, 157, 255), rgb(255, 0, 255));
}
.visit-btn:hover{
    transform: scale(1.03);
    background: linear-gradient(to right, rgb(255, 0, 255), rgb(0, 157, 255));
}

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: 40vw;
    border-radius: 50%;
}

.info-box{
    display: flex;
    flex-direction: column;
    text-align: center;
    align-items: center;
    justify-content: center;
    gap: 1.5rem;
}

.info-box h3{
    font-size: 1.8rem;
    font-weight: 500;
    opacity: 0.8;
}

.info-box h1{
    font-size: 4rem;
    font-weight: 600;
}

.info-box span{
    background: linear-gradient(to right, rgb(0, 157, 255), rgb(255, 0, 255));
    background-clip: text;
    color: transparent;
    font-size: 2rem;
}
.btn-group{
    display: flex;
    gap: 1rem;
}
.btn{
    border-radius: 3rem;
    padding: 0.5rem 1.5rem;
    border:2px solid black;
    cursor: pointer;
    font-weight: 500;
    text-wrap: nowrap;
    transition: 0.3s ease-in-out;
}

.btn:hover{
    background: black;
    color: white;
}

.socials{
    display: flex;
    gap: 2rem;
}

.socials i{
    font-size: 1.5rem;
    cursor: pointer;
    transition: 0.3s ease-in-out;
}

.socials i:hover{
    transform: scale(1.2);
}

.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;
}

.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.3s ease-in-out;
}
.grid-card:hover{
    transform: scale(1.03);
    background: black;
    color: white;
}
.grid-card i{
    font-size: 1.5rem;
    margin-bottom: 1rem;
}
.grid-card span{
    font-size: 1.5rem;
    font-weight: 500;
    background: linear-gradient(to right, rgb(0, 157, 255), rgb(255, 0, 255));
    background-clip: text;
    color: transparent;
}

.experience img{
    width: 40vw;
    border-radius: 50%;
}
::-webkit-scrollbar{
    width: 20px;
}

::-webkit-scrollbar-track{
    background-color: rgb(219, 219, 219);
}

::-webkit-scrollbar-thumb{
    background: linear-gradient(to bottom, rgb(0, 157, 255), rgb(255, 0, 255));
}

.portfolio-grid{
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 2rem;
}
.portfolio-card{
    padding: 3rem 2rem;
    display: flex;
    flex-direction: column;
    align-items: center;
    border: 2px solid black;
    border-radius: 3rem;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: 0.3s ease-in-out;
    gap: 3rem 2rem;
}
.portfolio-card:hover{
    transform: translateY(-5px)scale(1.03);
    background: black;
    color: white;
}
.portfolio-card img{
    width: 50vw;
    border-radius: 1rem;
    object-fit: contain;
    display: block;
    width: 100%;
    padding: 1rem 1rem;
}
.portfolio-card:hover .btn{
    border: 2px solid white;
    color: white;
}
.portfolio-card:hover .btn:hover{
    border: 2px solid white;
    background-color: white;
    color: black;
}
.portfolio-card h3 {
  font-size: 2rem;
  font-weight: 500;
}

/* ----- Credentials section ----- */
.credentials {
  /*padding: 4rem 1.5rem 3rem;*/
  background: #f2f3f8;
}

.credentials .section-title {
  text-align: center;
  margin-bottom: 2.5rem;
  color: #1a1a2e;
}

.credentials .experience-info {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 2rem;
}

.credentials .grid-card {
  flex: 0 1 auto;
  padding: 1.5rem;          
  border: 2px solid #ccc;
  background: white;
  transition: 0.4s ease;
}

.credentials .grid-card:hover {
  transform: scale(1.02);
  background: #f0f0f0;
  color: inherit;           
}


.credentials .grid-card img {
  width: 100%;                
  max-width: 250px;           
  height: auto;               
  border-radius: 1.5rem;    
  display: block;
  margin: 0 auto;             
  object-fit: cover;          
}

/* ===== CONTACT FORM ===== */
.contact {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    min-height: 100vh;
}

.contact-form {
    width: 100%;
    max-width: 600px;
    display: flex;
    flex-direction: column;
    gap: 1.5rem;
    margin-top: 2rem;
}

.input-group {
    position: relative;
    width: 100%;
}

.input-group label {
    display: block;
    font-weight: 500;
    margin-bottom: 0.3rem;
    color: #333;
}

.input-group input,
.input-group textarea {
    width: 100%;
    padding: 1rem 1rem 1rem 3.5rem;
    border: 2px solid #ccc;
    border-radius: 3rem;
    font-size: 1.2rem;
    transition: border-color 0.3s;
    background: #fff;
}

.input-group textarea {
    border-radius: 1.5rem;
    resize: vertical;
    padding-left: 1.5rem;
}

.input-group input:focus,
.input-group textarea:focus {
    outline: none;
    border-color: rgb(0, 157, 255);
}

.input-group i {
    position: absolute;
    left: 1.2rem;
    top: 60%;
    transform: translateY(-50%);
    font-size: 18px;
    color: #888;
}

.submit-btn {
    padding: 1rem 2rem;
    background: linear-gradient(to right, rgb(0, 157, 255), rgb(255, 0, 255));
    color: white;
    border: none;
    border-radius: 3rem;
    font-size: 1.3rem;
    font-weight: 600;
    cursor: pointer;
    transition: 0.3s;
    align-self: center;
    width: fit-content;
}

.submit-btn:hover {
    transform: scale(1.05);
    background: linear-gradient(to right, rgb(255, 0, 255), rgb(0, 157, 255));
}

footer{
    bottom: 0;
    left: 0;
    height: 10rem;
    width: 100%;
    display: flex;
    flex-direction: column;
    gap: 1rem;
    align-items: center;
    justify-content: center;
}
footer ul{
    display: flex;
    gap: 3rem;
    align-items: center;
}
footer ul li a{
    font-weight: 600;
    color: black;
}
.copyright{
    font-size: 1.5rem;
    margin-top: 2rem;
}

/*===========================
RESPONSIVE
=============================*/

@media(max-width:1280px){
    header{
        padding: 1rem 2rem;
        gap: 2rem;
        width: fit-content;
    }

    .about .about-container{
        gap:3rem;
    }

    .experience-info{
        flex-direction: column;
    }

}

@media(max-width:768px){
    header{
        gap: 1rem;
        padding: 1rem 1rem;
        width: fit-content; 
    }

    header .logo{
        font-size: 1rem;
    }

    .about-container{
        flex-direction: column;
    }

    .grid{
        grid-template-columns: repeat(1, 1fr);
    }

    .experience-info img{
        width: 70vw;
    }

    .section-title {
        font-size: 3rem;
    }

}

@media(max-width:600px){
    header {
        padding: 0.8rem 1.5rem;
        gap: 1.5rem;
        width: 95%;
        justify-content: space-between;
    }

    header #menu-icon{
        display: block;
        font-size: 1.5rem;
    }

    .logo{
        font-size: 1.5rem;
    }

    .nav-links{
        position: absolute;
        top: 100%;
        margin-top: 1rem;
        width: 100%;
        padding: 1rem;
        color:white;
        display: flex;
        flex-direction: column;
        text-align: center;
        background: black;
        border-radius: 3rem;
        display: none;
    }

    .nav-links li{
        margin-top: 1.5rem;
        padding: 1rem;
    }

    .nav-links.active{
        display: block;
    }

    header{
        padding: 1rem 5rem;
        gap: 8rem;
    }

    header .logo{
        font-size: 1.5rem
    }

    .about-container img{
        width: 80vw;
    }

    footer ul{
        gap:1rem;
    }
}