/* ==========================
   RESET
========================== */

*{
    margin:0;
    padding:0;
    box-sizing:border-box;
}

html{
    scroll-behavior:smooth;
}

body{
    font-family:'Poppins',sans-serif;
    color:#ffffff;

    background:linear-gradient(
        135deg,
        #0F0F0F,
        #1A082E,
        #3C096C,
        #7B2CBF
    );

    background-size:400% 400%;
    animation:gradientShift 18s ease infinite;

    overflow-x:hidden;
    position:relative;
}


/* ==========================
   OVERLAY
========================== */

.overlay{
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;

    display: none; /* hidden by default */

    justify-content: center;
    align-items: center;

    background: rgba(0,0,0,0.8);

    z-index: 9999;
}

.overlay.active{
    display: flex; /* show popup */
}

/* ==========================
   ANIMATION
========================== */

.cat-modal,
.detail-modal{
    transform:scale(.8);
    opacity:0;
    transition:.35s ease;
}

.overlay.active .cat-modal,
.overlay.active .detail-modal{
    transform:scale(1);
    opacity:1;
}

/* ==========================
   CAT POPUP
========================== */

.cat-modal{
    width:90%;
    max-width:900px;

    background:rgba(22,22,22,.95);

    border:1px solid rgba(255,255,255,.1);

    backdrop-filter:blur(15px);

    border-radius:25px;

    padding:35px;

    text-align:center;

    box-shadow:
    0 25px 70px rgba(0,0,0,.5);
}

.cat-modal h2{
    margin-bottom:30px;
}

/* ==========================
   CAT GRID
========================== */

.cat-grid{
    display:grid;
    grid-template-columns:
    repeat(auto-fit,minmax(200px,1fr));
    gap:25px;
}

.cat-card{
    background:
    rgba(255,255,255,.05);

    border:
    1px solid rgba(255,255,255,.08);

    border-radius:20px;

    overflow:hidden;

    cursor:pointer;

    transition:.35s ease;
}

.cat-card:hover{
    transform:translateY(-8px);
    box-shadow:
    0 15px 35px rgba(123,44,191,.4);

    border-color:#C77DFF;
}

.cat-card img{
    width:100%;
    height:220px;
    object-fit:cover;
}

.cat-card p{
    padding:15px;
    font-weight:600;
}

/* ==========================
   DETAIL POPUP
========================== */

.detail-overlay{
    z-index:10000;
}

.detail-modal{
    width:90%;
    max-width:500px;

    text-align:center;

    background:#181818;

    border-radius:25px;

    padding:30px;

    border:
    1px solid rgba(255,255,255,.1);

    box-shadow:
    0 25px 70px rgba(0,0,0,.6);
}

.detail-modal img{
    width:100%;
    max-height:350px;
    object-fit:cover;

    border-radius:20px;

    margin-bottom:20px;
}

.detail-modal h2{
    color:#C77DFF;
    margin-bottom:15px;
}

.detail-modal p{
    color:#ddd;
    line-height:1.8;
}

/* ==========================
   CLOSE BUTTON
========================== */

.close-btn{
    position:absolute;

    top:15px;
    right:20px;

    width:40px;
    height:40px;

    border:none;

    border-radius:50%;

    background:#7B2CBF;

    color:#fff;

    font-size:1.4rem;

    cursor:pointer;

    transition:.3s;
}

.close-btn:hover{
    transform:rotate(90deg);
    background:#C77DFF;
}

.cat-modal,
.detail-modal{
    position:relative;
}

/* ==========================
   MEOW IMAGE HOVER
========================== */

#openCats{
    cursor:pointer;
    transition:.4s;
}

#openCats:hover{
    transform:scale(1.03);
}

/* ==========================
   MOBILE
========================== */

@media(max-width:768px){

    .cat-modal{
        padding:25px;
    }

    .cat-grid{
        grid-template-columns:1fr;
    }

    .detail-modal{
        padding:20px;
    }

}

/* ==========================
   ANIMATED BACKGROUND
========================== */

@keyframes gradientShift{
    0%{
        background-position:0% 50%;
    }
    50%{
        background-position:100% 50%;
    }
    100%{
        background-position:0% 50%;
    }
}

.grid-bg{
    position:fixed;
    inset:0;

    background-image:
    linear-gradient(rgba(255,255,255,.03) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255,255,255,.03) 1px, transparent 1px);

    background-size:50px 50px;
    z-index:-3;
}

/* ==========================
   FLOATING PURPLE BLOBS
========================== */

.gradient-blob{
    position:fixed;
    border-radius:50%;
    filter:blur(130px);
    z-index:-2;
}

.blob-1{
    width:500px;
    height:500px;
    background:#7B2CBF;
    top:-150px;
    left:-120px;
    opacity:.40;

    animation:float1 12s ease-in-out infinite;
}

.blob-2{
    width:450px;
    height:450px;
    background:#C77DFF;
    right:-100px;
    top:35%;
    opacity:.25;

    animation:float2 15s ease-in-out infinite;
}

.blob-3{
    width:350px;
    height:350px;
    background:#3C096C;
    left:35%;
    bottom:-50px;
    opacity:.35;

    animation:float3 18s ease-in-out infinite;
}

@keyframes float1{
    50%{
        transform:translate(80px,80px);
    }
}

@keyframes float2{
    50%{
        transform:translate(-70px,50px);
    }
}

@keyframes float3{
    50%{
        transform:translate(50px,-70px);
    }
}

/* ==========================
   GLOBAL
========================== */

img{
    width:100%;
    display:block;
}

.container{
    width:90%;
    max-width:1200px;
    margin:auto;
}

section{
    position:relative;
    z-index:2;
}

/* ==========================
   GLASS HEADER
========================== */

.header{
    position:fixed;

    top:20px;
    left:50%;

    transform:translateX(-50%);

    width:90%;
    max-width:1200px;

    display:flex;
    justify-content:space-between;
    align-items:center;

    padding:18px 40px;

    background:rgba(255,255,255,.05);

    border:1px solid rgba(255,255,255,.10);

    backdrop-filter:blur(20px);
    -webkit-backdrop-filter:blur(20px);

    border-radius:20px;

    z-index:1000;
}

.logo a{
    text-decoration:none;
    font-size:1.8rem;
    font-weight:700;
    color:#fff;
}

.nav-links{
    list-style:none;
    display:flex;
    gap:30px;
}

.nav-links a{
    text-decoration:none;
    color:#fff;
    transition:.3s;
}

.nav-links a:hover{
    color:#C77DFF;

    text-shadow:
    0 0 10px rgba(199,125,255,.9),
    0 0 20px rgba(199,125,255,.6);
}

/* ==========================
   HERO
========================== */

.hero{
    min-height:100vh;

    padding:180px 20px 80px;

    display:flex;
    flex-direction:column;
    justify-content:center;
    align-items:center;
    text-align:center;
}

.hero h1{

    font-size:clamp(4rem,8vw,6rem);

    background:linear-gradient(
        90deg,
        #ffffff,
        #C77DFF,
        #7B2CBF
    );

    -webkit-background-clip:text;
    -webkit-text-fill-color:transparent;

    margin-bottom:20px;
}

.hero p{
    max-width:750px;
    font-size:1.2rem;
    color:#e2e8f0;
}

.btn{

    display:inline-block;

    margin-top:30px;

    padding:14px 35px;

    color:white;

    text-decoration:none;

    border-radius:999px;

    background:linear-gradient(
        135deg,
        #7B2CBF,
        #C77DFF
    );

    transition:.4s;
}

.btn:hover{

    transform:translateY(-4px);

    box-shadow:
    0 0 20px rgba(123,44,191,.6),
    0 0 40px rgba(123,44,191,.4);
}

.hero-image{
    max-width:1100px;
    margin-top:60px;
}

.hero-image img{
    border-radius:30px;
}

/* ==========================
   SECTIONS
========================== */

.interests,
.hobbies,
.contact{
    padding:120px 10%;
}

.interests h2,
.contact h2{
    text-align:center;
    font-size:3rem;
    margin-bottom:20px;
}

.intro{
    text-align:center;
    max-width:800px;
    margin:auto;
    color:#e2e8f0;
    margin-bottom:60px;
}

.grid{

    display:grid;

    grid-template-columns:
    repeat(auto-fit,minmax(280px,1fr));

    gap:30px;
}

/* ==========================
   GLASS CARDS
========================== */

.card{

    background:
    rgba(255,255,255,.05);

    border:
    1px solid rgba(255,255,255,.10);

    backdrop-filter:blur(20px);

    padding:30px;

    border-radius:24px;

    transition:.4s ease;
}

.card:hover{

    transform:translateY(-10px);

    border-color:#C77DFF;

    box-shadow:
    0 20px 40px rgba(123,44,191,.35);
}

.card h3{
    margin-bottom:10px;
}

/* ==========================
   HOBBIES
========================== */

.hobby-row{
    display:flex;
    align-items:center;
    gap:60px;
    margin-bottom:120px;
}

.reverse{
    flex-direction:row-reverse;
}

.hobby-text,
.hobby-image{
    flex:1;
}

.hobby-text h3{
    font-size:2.2rem;
    margin-bottom:20px;
}

.hobby-text p{
    color:#e2e8f0;
}

.hobby-image img{
    border-radius:24px;
}

/* ==========================
   CONTACT
========================== */

.contact{
    text-align:center;
}

.contact p{
    max-width:600px;
    margin:auto;
    color:#e2e8f0;
}

/* ==========================
   QUOTE
========================== */

.quote{

    text-align:center;

    padding:120px 20px;

    background:
    rgba(255,255,255,.04);

    backdrop-filter:blur(15px);
}

.quote h2{
    font-size:3rem;
}

.quote p{
    margin-top:20px;
}

.quote span{
    color:#C77DFF;
}

/* ==========================
   FOOTER
========================== */

.footer{

    text-align:center;

    padding:40px;

    border-top:
    1px solid rgba(255,255,255,.08);
}

/* ==========================
   MOBILE
========================== */

@media(max-width:768px){

    .header{
        flex-direction:column;
        gap:15px;
    }

    .nav-links{
        flex-wrap:wrap;
        justify-content:center;
        gap:15px;
    }

    .hero h1{
        font-size:3rem;
    }

    .hobby-row,
    .reverse{
        flex-direction:column;
    }

    .interests h2,
    .contact h2,
    .quote h2{
        font-size:2rem;
    }
}