* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    font-family: 'Poppins', sans-serif;
    text-decoration: none;
    scroll-behavior: smooth;
}

/* ── Header ── */
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;
}
nav {
    display: contents;
}
.nav-link {
    display: flex;
    list-style: none;
    gap: 2rem;
    align-items: center;
}
.logo {
    font-size: 1.3rem;
    font-weight: 600;
    white-space: nowrap;
    transition: 0.3s ease-in-out;
    background: linear-gradient(to right, rgb(0,157,255), rgb(255,0,255));
    -webkit-background-clip: text;
    background-clip: text;
    color: transparent;
}
.logo:hover {
    transform: scale(1.1);
    filter: brightness(1.2);
}
li a {
    position: relative;
    color: white;
    font-weight: 300;
    transition: 0.3s ease-in-out;
}
li a::before {
    position: absolute;
    content: '';
    width: 0;
    left: 0;
    height: 3px;
    top: 26px;
    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,
li a.active::before {
    width: 100%;
}
li a.active {
    background: linear-gradient(to right, rgb(0,157,255), rgb(255,0,255));
    -webkit-background-clip: text;
    background-clip: text;
    color: transparent;
}
.visit-btn {
    padding: 0.8rem 1.5rem;
    border-radius: 3rem;
    border: none;
    font-weight: 500;
    font-size: 1rem;
    color: white;
    cursor: pointer;
    white-space: 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;
    cursor: pointer;
}

/* ── Scroll Animations ── */
[data-animate] {
    opacity: 0;
    transform: translateY(40px);
    transition: opacity 0.7s ease, transform 0.7s ease;
}
[data-animate].visible {
    opacity: 1;
    transform: translateY(0);
}

/* ── Sections ── */
section {
    min-height: 100vh;
    padding: 8rem 12%;
    width: 100%;
    position: relative;
}

/* ── About ── */
.about {
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: hidden;
}
.about::before,
.about::after {
    content: '';
    position: absolute;
    border-radius: 50%;
    pointer-events: none;
    animation: floatBlob 10s ease-in-out infinite;
}
.about::before {
    width: 500px;
    height: 500px;
    background: radial-gradient(circle, rgba(0,157,255,0.12) 0%, transparent 70%);
    top: -100px;
    right: -80px;
}
.about::after {
    width: 400px;
    height: 400px;
    background: radial-gradient(circle, rgba(255,0,255,0.12) 0%, transparent 70%);
    bottom: -80px;
    left: -60px;
    animation-delay: -5s;
    animation-direction: reverse;
}
@keyframes floatBlob {
    0%, 100% { transform: translateY(0) scale(1); }
    50% { transform: translateY(-30px) scale(1.08); }
}
.about .about-container {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 10rem;
}
.about img {
    width: 30vw;
    max-width: 350px;
    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;
    opacity: 0.8;
}
#typing-text {
    background: linear-gradient(to right, rgb(255,0,255), rgb(0,157,255));
    -webkit-background-clip: text;
    background-clip: text;
    color: transparent;
    font-size: 2rem;
    font-weight: 500;
}
.cursor {
    font-size: 2rem;
    font-weight: 300;
    color: rgb(0,157,255);
    animation: blink 0.8s step-end infinite;
}
@keyframes blink {
    0%, 100% { opacity: 1; }
    50% { opacity: 0; }
}
.btn-group {
    display: flex;
    gap: 1rem;
}
.btn {
    border-radius: 3rem;
    padding: 0.5rem 1.5rem;
    border: 2px solid black;
    cursor: pointer;
    font-weight: 500;
    white-space: nowrap;
    transition: 0.2s ease-in-out;
    color: black;
}
.btn:hover {
    background-color: black;
    color: white;
}
.socials {
    display: flex;
    gap: 2rem;
}
.socials a {
    color: black;
    transition: 0.2s ease-in-out;
}
.socials i {
    font-size: 2.5rem;
    cursor: pointer;
}
.socials a:hover {
    transform: scale(1.15);
    color: rgb(0,157,255);
}

/* ── Skills ── */
.skills {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
}
.skills-grid {
    display: flex;
    flex-wrap: wrap;
    gap: 1rem;
    justify-content: center;
    max-width: 900px;
}
.skill-tag {
    padding: 0.6rem 1.5rem;
    border: 2px solid black;
    border-radius: 3rem;
    font-weight: 500;
    font-size: 1rem;
    cursor: default;
    transition: 0.25s ease-in-out;
    display: flex;
    align-items: center;
    gap: 0.4rem;
}
.skill-tag:hover {
    background: linear-gradient(to right, rgb(0,157,255), rgb(255,0,255));
    color: white;
    border-color: transparent;
    transform: translateY(-4px);
}

/* ── Section Title ── */
.section-title {
    text-align: center;
    font-size: 4rem;
    font-weight: 600;
    margin-bottom: 3rem;
}
.subsection-title {
    font-size: 2rem;
    font-weight: 500;
    margin-bottom: 1.5rem;
    background: linear-gradient(to right, rgb(255,0,255), rgb(0,157,255));
    -webkit-background-clip: text;
    background-clip: text;
    color: transparent;
}
.projects .project-grid + .subsection-title {
    margin-top: 4rem;
}

/* ── Experience ── */
.experience-info {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 5rem;
}
.experience img {
    width: 24vw;
    max-width: 350px;
    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;
    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, rgb(255,0,255), rgb(0,157,255));
    -webkit-background-clip: text;
    background-clip: text;
    color: transparent;
}

/* ── Projects ── */
.project-grid {
    display: grid;
    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-color: black;
    color: white;
    transform: translateY(-10px) scale(1.02);
}
.project-card img {
    width: 20vw;
    max-width: 250px;
    border-radius: 1rem;
}
.project-card:hover .btn {
    border-color: white;
    color: white;
}
.project-card:hover .btn:hover {
    background-color: white;
    color: black;
}
.project-card h3 {
    font-size: 2rem;
    font-weight: 500;
}

/* ── Contact Form ── */
.contact {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
}
.contact-form {
    display: flex;
    flex-direction: column;
    gap: 1.5rem;
    width: 100%;
    max-width: 600px;
}
.form-group {
    position: relative;
}
.form-group i {
    position: absolute;
    left: 1.2rem;
    top: 50%;
    transform: translateY(-50%);
    font-size: 1.1rem;
    color: #888;
    pointer-events: none;
}
.form-group--textarea i {
    top: 1.3rem;
    transform: none;
}
.form-group input,
.form-group textarea {
    width: 100%;
    border-radius: 1.5rem;
    border: 2px solid black;
    padding: 1rem 1.2rem 1rem 3rem;
    font-size: 1rem;
    font-family: 'Poppins', sans-serif;
    resize: none;
    outline: none;
    transition: border-color 0.2s ease;
}
.form-group input:focus,
.form-group textarea:focus {
    border-color: rgb(0,157,255);
}
.send-btn {
    align-self: center;
    display: flex;
    align-items: center;
    gap: 0.5rem;
}
.send-btn:disabled {
    opacity: 0.6;
    cursor: not-allowed;
    transform: none;
}

/* ── Scrollbar ── */
::-webkit-scrollbar { width: 8px; }
::-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));
    border-radius: 4px;
}

/* ── Footer ── */
footer {
    height: 10rem;
    width: 100%;
    display: flex;
    flex-direction: column;
    gap: 1rem;
    align-items: center;
    justify-content: center;
}
footer ul {
    display: flex;
    align-items: center;
    gap: 3rem;
    list-style: none;
}
footer ul li a {
    color: black;
    font-weight: 600;
    transition: 0.2s ease;
}
footer ul li a:hover {
    background: linear-gradient(to right, rgb(0,157,255), rgb(255,0,255));
    -webkit-background-clip: text;
    background-clip: text;
    color: transparent;
}
.copyright {
    font-weight: 300;
    opacity: 0.6;
}

/* ── 1280px ── */
@media (max-width: 1280px) {
    header { gap: 3rem; }
    .about .about-container { gap: 5rem; }
    .about img { width: 35vw; }
    .experience img { width: 30vw; }
    .info-box h1 { font-size: 3rem; }
    .experience-info { gap: 3rem; }
}

/* ── 1024px ── */
@media (max-width: 1024px) {
    header { gap: 2rem; }
    .visit-btn { display: none; }
    section { padding: 7rem 8%; }
    .about .about-container { flex-direction: column; gap: 3rem; }
    .about img { width: 50vw; max-width: 320px; }
    .info-box h1 { font-size: 2.5rem; }
    .info-box h3 { font-size: 1.4rem; }
    #typing-text { font-size: 1.6rem; }
    .cursor { font-size: 1.6rem; }
    .experience-info { flex-direction: column; gap: 3rem; }
    .experience img { width: 60vw; max-width: 400px; }
    .grid { grid-template-columns: repeat(2, 1fr); }
    .project-card img { width: 40vw; }
    .section-title { font-size: 3rem; }
}

/* ── 768px — Hamburger ── */
@media (max-width: 768px) {
    header {
        top: 0;
        left: 0;
        transform: none;
        width: 100%;
        border-radius: 0;
        justify-content: space-between;
        padding: 1rem 1.5rem;
        gap: 1rem;
    }
    .nav-link {
        display: none;
        flex-direction: column;
        position: absolute;
        top: 100%;
        left: 0;
        width: 100%;
        background-color: rgba(0,0,0,0.95);
        padding: 1.5rem 0;
        gap: 1.5rem;
        border-radius: 0 0 1.5rem 1.5rem;
    }
    .nav-link.open { display: flex; }
    #menu-icon { display: block; }
    .visit-btn { display: none; }
    section { padding: 6rem 5%; min-height: auto; }
    .about img { width: 65vw; max-width: 280px; }
    .info-box h1 { font-size: 2rem; }
    .info-box h3 { font-size: 1.2rem; }
    #typing-text { font-size: 1.4rem; }
    .cursor { font-size: 1.4rem; }
    .grid { grid-template-columns: 1fr; }
    .section-title { font-size: 2.5rem; }
    .project-card img { width: 60vw; }
    footer ul { gap: 1.5rem; flex-wrap: wrap; justify-content: center; }
}

/* ── 600px ── */
@media (max-width: 600px) {
    .about img { width: 75vw; }
    .info-box h1 { font-size: 1.6rem; }
    .info-box h3 { font-size: 1rem; }
    #typing-text { font-size: 1.2rem; }
    .cursor { font-size: 1.2rem; }
    .btn-group { flex-direction: column; align-items: center; }
    .section-title { font-size: 2rem; }
    .project-card img { width: 80vw; }
    .grid-card { padding: 2rem; }
    .contact-form { padding: 0 0.5rem; }
    footer ul { gap: 1rem; }
}
