* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    font-family: 'Poppins', sans-serif;
    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;
    width: max-content;
}

.logo {
    color: white;
    font-size: 1.3rem;
    font-weight: 600;
    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 {
    background: linear-gradient(to right, rgb(255,0,255), rgb(0,157,255));
    transform: scale(1.03);
}

#menu-icon {
    font-size: 2rem;
    display: none;
}

section {
    min-height: 100vh;
    padding: 8rem 10%;
    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: 5rem;
    width: 100%;
    max-width: 1200px;
}

.about img {
    width: 300px;
    max-width: 100%;
    border-radius: 50%;
    object-fit: cover;
}

.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;
    -webkit-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.2s ease-in-out;
}

.btn:hover {
    background-color: black;
    color: white;
}

.socials {
    display: flex;
    gap: 2rem;
}

.socials i {
    font-size: 2.5rem;
    cursor: pointer;
    transition: 0.2s ease-in-out;
}

.socials i:hover {
    transform: scale(1.1);
}

.section-title {
    text-align: center;
    font-size: 3.5rem;
    font-weight: 600;
    margin-bottom: 3rem;
}

.experience-info {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 4rem;
    max-width: 1200px;
    margin: 0 auto;
}

.experience img {
    width: 350px;
    max-width: 100%;
    border-radius: 3rem;
    object-fit: cover;
}

.grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 2rem;
}

.grid-card {
    border: 2px solid black;
    border-radius: 3rem;
    padding: 2.5rem;
    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-bottom: 1rem;
}

.grid-card span {
    font-size: 1.5rem;
    font-weight: 500;
    background: linear-gradient(to right, #009dff, #ff00ff);
    background-clip: text;
    -webkit-background-clip: text;
    color: transparent;
}

::-webkit-scrollbar {
    width: 12px;
}

::-webkit-scrollbar-track {
    background-color: rgb(219, 219, 219);
}

::-webkit-scrollbar-thumb {
    background: linear-gradient(to bottom, #009dff, #ff00ff);
}

.projects-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 2rem;
    max-width: 1200px;
    margin: 0 auto;
}

.project-card {
    padding: 2rem 1.5rem;
    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-color: black;
    color: white;
    transform: translateY(-10px) scale(1.02);
}

.project-card img {
    width: 100%;       
    max-width: 200px;  
    height: auto;      
    border-radius: 1rem;
    object-fit: cover;
}

.project-card:hover .btn {
    border: 2px solid white;
    color: white;
}

.project-card:hover .btn:hover {
    border: 2px solid white;
    background: white;
    color: black;
}

.project-card h3 {
    font-size: 2rem;
    font-weight: 500;
}

.input-box {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    text-align: center;
    gap: 2rem;
    margin-top: 2rem;
}

.input-box input {
    border-radius: 3rem;
    border: 2px solid black;
    padding: 1.5rem 4rem 1.5rem 5rem;
    font-size: 2rem;
    width: 100%;
    max-width: 600px;
}

.input-box input::placeholder {
    font-size: 2rem;
}

.input {
    position: relative;
    width: 100%;
    max-width: 600px;
}

.input i {
    position: absolute;
    font-size: 2.5rem;
    top: 50%;
    left: 25px;
    transform: translateY(-50%);
}

footer {
    height: 10rem;
    width: 100%;
    display: flex;
    flex-direction: column;
    gap: 1rem;
    align-items: center;
    justify-content: center;
    border-top: 1px solid rgba(0,0,0,0.1);
}

footer ul {
    display: flex;
    align-items: center;
    gap: 3rem;
}

footer ul li a {
    color: black;
    font-weight: 600;
}

.copyright {
    font-weight: 300;
    margin-top: 1rem;
}

/* =======================================
   RESPONSIVE / MEDIA QUERIES
   ======================================= */

@media (max-width: 1280px) {
    header {
        gap: 2rem;
    }
    .about .about-container {
        gap: 3rem;
    }
    .experience-info {
        flex-direction: column;
    }
}

@media (max-width: 992px) {
    .about .about-container {
        flex-direction: column;
        text-align: center;
    }
    .info-box h1 {
        font-size: 3rem;
    }
    .section-title {
        font-size: 2.8rem;
    }
}

@media (max-width: 768px) {
    header {
        justify-content: space-between;
        width: 85%;
        gap: 0;
        padding: 0.8rem 1.5rem;
    }
    header .logo {
        font-size: 1.1rem;
    }
    header .visit-btn {
        display: none;
    }
    #menu-icon {
        display: block;
        color: white;
        cursor: pointer;
    }
    .nav-links {
        display: none;
        position: absolute;
        top: 100%;
        left: 50%;
        transform: translateX(-50%);
        margin-top: 0.5rem;
        background: rgba(0, 0, 0, 0.95);
        border-radius: 1.5rem;
        width: 100%;
        flex-direction: column;
        padding: 1rem;
        gap: 0.5rem;
    }
    .nav-links li {
        text-align: center;
    }
    .nav-links.active {
        display: flex;
    }
    .grid {
        grid-template-columns: 1fr;
    }
    .experience-info img {
        width: 80%;
    }
    .input-box input {
        padding: 1rem 1.5rem 1rem 3.5rem;
        font-size: 1.3rem;
    }
    .input-box input::placeholder {
        font-size: 1.3rem;
    }
    .input i {
        font-size: 1.6rem;
        left: 15px;
    }
}

@media (max-width: 480px) {
    .info-box h1 {
        font-size: 2.2rem;
    }
    .info-box h3 {
        font-size: 1.3rem;
    }
    .info-box span {
        font-size: 1.5rem;
    }
    .btn-group {
        flex-direction: column;
        width: 100%;
    }
    .btn {
        text-align: center;
    }
    .section-title {
        font-size: 2.2rem;
    }
    footer ul {
        flex-direction: column;
        gap: 1rem;
    }
}