@import url('https://fonts.googleapis.com/css2?family=Space+Grotesk:wght@400;500;700&display=swap');

*{
    margin:0;
    padding:0;
    box-sizing:border-box;
}

html{
    scroll-behavior:smooth;
}

body{
    font-family:'Space Grotesk',sans-serif;
    background:#f7f6ff;
    color:#222;
    overflow-x:hidden;
}

/* ---------- Background Noise ---------- */

.noise{
    position:fixed;
    inset:0;
    pointer-events:none;
    opacity:.06;
    background-image:radial-gradient(#000 1px,transparent 1px);
    background-size:8px 8px;
}

/* ---------- Navbar ---------- */

nav{
    position:fixed;
    top:18px;
    left:50%;
    transform:translateX(-50%);
    width:min(1100px,92%);
    display:flex;
    justify-content:space-between;
    align-items:center;
    padding:16px 22px;
    background:rgba(255,255,255,.7);
    backdrop-filter:blur(18px);
    border-radius:999px;
    box-shadow:0 15px 40px rgba(0,0,0,.08);
    z-index:100;
}

.logo{
    font-weight:700;
}

.links{
    display:flex;
    gap:22px;
}

.links a{
    color:#555;
    text-decoration:none;
    transition:.3s;
}

.links a:hover{
    color:#7c3aed;
}

/* ---------- Hero ---------- */

.hero{
    min-height:100vh;
    display:flex;
    flex-direction:column;
    justify-content:center;
    align-items:center;
    text-align:center;
    padding:2rem;
    position:relative;
}

.blob{
    position:absolute;
    width:420px;
    height:420px;
    background:linear-gradient(135deg,#7c3aed,#60a5fa,#fb7185);
    border-radius:45% 55% 65% 35%;
    filter:blur(55px);
    opacity:.45;
    animation:blob 10s ease-in-out infinite;
    z-index:-1;
}

@keyframes blob{
    50%{
        transform:rotate(30deg) scale(1.15);
        border-radius:60% 40% 30% 70%;
    }
}

.tag{
    background:white;
    padding:8px 16px;
    border-radius:999px;
    box-shadow:0 8px 25px rgba(0,0,0,.08);
    margin-bottom:20px;
}

h1{
    font-size:clamp(3rem,8vw,6rem);
    max-width:900px;
}

#word{
    background:linear-gradient(90deg,#7c3aed,#ec4899,#3b82f6);
    -webkit-background-clip:text;
    -webkit-text-fill-color:transparent;
}

.sub{
    margin:20px 0 34px;
    color:#666;
    font-size:1.15rem;
}

.btn{
    background:#111827;
    color:white;
    padding:16px 28px;
    border-radius:999px;
    text-decoration:none;
    transition:.3s;
}

.btn:hover{
    transform:translateY(-4px);
}

/* ---------- Sections ---------- */

section{
    max-width:1100px;
    margin:auto;
    padding:100px 24px;
}

section h2{
    font-size:2.5rem;
    margin-bottom:40px;
}

/* ---------- About ---------- */

.about-container{
    display:flex;
    align-items:center;
    gap:70px;
    flex-wrap:wrap;
}

.about-image{
    flex:1;
    display:flex;
    justify-content:center;
}

.about-image img{
    width:320px;
    height:320px;
    object-fit:cover;
    border-radius:24px;
    box-shadow:0 20px 45px rgba(0,0,0,.12);
}

.about-content{
    flex:1.3;
}

.about-content h2{
    margin-bottom:20px;
}

.about-content p{
    font-size:1.08rem;
    color:#555;
    line-height:1.8;
    margin-bottom:18px;
}

/* ---------- Cards ---------- */

.cards{
    display:grid;
    grid-template-columns:repeat(auto-fit,minmax(300px,1fr));
    gap:28px;
}
.card{
    background:white;
    border-radius:22px;
    overflow:hidden;
    box-shadow:0 18px 40px rgba(0,0,0,.08);
    display:flex;
    flex-direction:column;

    text-decoration:none;
    color:inherit;

    transition:.35s ease;

    padding-bottom:20px;
}

.card:hover{
    transform:translateY(-8px);
    box-shadow:0 30px 60px rgba(0,0,0,.14);
}

.card-image{
    width:100%;
    aspect-ratio:16/10;
    object-fit:cover;
    display:block;
}

.card-content{
    padding:22px 24px 24px;
    display:flex;
    flex-direction:column;
    flex-grow:1;
}

.card h3{
    font-size:1.4rem;
    font-weight:700;
    margin:0 0 10px;
}

.card p{
    color:#666;
    line-height:1.7;
    margin:0;

}

.card::after{
    content:"View Project →";
    margin-top:auto;
    padding:0 24px 24px;
    color:#7c3aed;
    font-weight:600;
    opacity:0;
    transform:translateY(8px);
    transition:.3s;
}

.card:hover::after{
    opacity:1;
    transform:translateY(0);
}

/* ---------- Music Player ---------- */

.player{
    display:flex;
    align-items:center;
    gap:18px;
    background:white;
    padding:18px;
    border-radius:22px;
    box-shadow:0 15px 35px rgba(0,0,0,.08);
    width:min(520px,100%);
}

.cover{
    width:70px;
    height:70px;
    border-radius:18px;
    background:linear-gradient(135deg,#7c3aed,#60a5fa);
    animation:spin 8s linear infinite;
}

@keyframes spin{
    to{
        transform:rotate(360deg);
    }
}

/* ---------- Footer ---------- */

footer{
    text-align:center;
    padding:60px 20px;
    color:#666;
}

/* ---------- Responsive ---------- */

@media(max-width:900px){

    nav{
        width:95%;
    }

    .links{
        display:none;
    }

    .about-container{
        flex-direction:column;
        text-align:center;
    }

    .about-image img{
        width:260px;
        height:260px;
    }

    section{
        padding:80px 20px;
    }

    .cards{
        grid-template-columns:1fr;
    }

}
/* ---------- Contact ---------- */

#contact{
    text-align:center;
}

.contact-buttons{
    display:flex;
    justify-content:center;
    align-items:center;
    flex-wrap:wrap;
    gap:20px;
    margin-top:30px;
}

.contact-btn{
    display:inline-flex;
    align-items:center;
    justify-content:center;

    padding:14px 28px;

    background:#ffffff;
    color:#222;
    text-decoration:none;

    border-radius:999px;
    border:1px solid rgba(0,0,0,.08);

    box-shadow:0 12px 30px rgba(0,0,0,.08);

    font-weight:600;
    font-size:1rem;

    transition:
        transform .25s ease,
        box-shadow .25s ease,
        background .25s ease,
        color .25s ease;
}

.contact-btn:hover{
    transform:translateY(-4px);

    background:linear-gradient(135deg,#7c3aed,#3b82f6);
    color:white;

    box-shadow:0 18px 35px rgba(124,58,237,.3);
}