header{
    position: sticky;
    top: -6px;
    left: 4px;
    width: 98%;
    z-index: 1000;
    background: rgba(56, 189, 248, 0.24);
    color: white;
    padding: 12px;
    text-align: end;
}

header nav a{
    color: white;
    text-align: center;
    padding-left: 10px;
}

body {
        margin: 0;
    padding-top: 0px;
    min-height: 100vh;
    font-family: Arial, sans-serif;
    color: #ffffff;
    overflow-x: hidden;
    background: linear-gradient(135deg, #020617, #111827 35%, #05165e 70%, #49199c);
    background-attachment: fixed;
    text-align: justify;
}

section{
    padding: 30px;
}

/*=====================================================
    INTRO LAYOUT
======================================================*/

.intro-layout {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 24px;
    grid-auto-flow: row;
    align-items: center;
}

#name,
#about {
    min-width: 0;
}

#about .card {
    background: rgba(255, 255, 255, 0.08);
    padding: 20px;
    border-radius: 24px;
    border: 1px solid rgba(255, 255, 255, 0.12);
    box-shadow: 0 14px 30px rgba(0, 0, 0, 0.25);
    transition: transform 0.25s ease, background 0.25s ease, box-shadow 0.25s ease;
    box-sizing: border-box;
}

#about .card:hover {
    transform: translateY(-6px);
    background: rgba(56, 189, 248, 0.16);
    box-shadow: 0 24px 45px rgba(56, 189, 248, 0.18);
}

#about .card p {
    margin: 0;
    color: #d1d5db;
    line-height: 1.6;
}

@media (max-width: 700px) {
    .intro-layout {
        grid-template-columns: 1fr;
    }

    #about .card {
        height: auto;
    }
}


.card{
    background: rgb(56, 189, 248, 0.24);
    padding: 10px;
    margin: 10px ;
    border-radius: 20px;
    box-shadow:0 2px 8px gray;
}

/*=====================================================
    video Pulse Animation for Playing Videos
======================================================*/

@keyframes videoPulse {
    0% {
        transform: scale(1);
        box-shadow: 0 0 0 rgba(56, 189, 248, 0);
    }
    50% {
        transform: scale(1.02);
        box-shadow: 0 0 20px rgba(56, 189, 248, 0.55);
    }
    100% {
        transform: scale(1);
        box-shadow: 0 0 0 rgba(56, 189, 248, 0);
    }
}

.card video.playing {
    animation: videoPulse 1.2s ease-in-out infinite;
    border: 2px solid rgba(56, 189, 248, 0.75);
}

/*=====================================================
    FAVORITE ANIME SECTION
======================================================*/

.favorite-anime {
    background: rgb(31 54 102 / 75%);
    padding: 25px;
}

.favorite-anime h3 {
    margin-bottom: 20px;
    font-size: 2rem;
    text-align:center;
    letter-spacing: 0.05em;
}

.anime-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
    gap: 18px;
}

.anime-card {
    background: rgba(255, 255, 255, 0.08);
    padding: 18px;
    border-radius: 24px;
    border: 1px solid rgba(255, 255, 255, 0.12);
    box-shadow: 0 14px 30px rgba(0, 0, 0, 0.25);
    transition: transform 0.25s ease, background 0.25s ease, box-shadow 0.25s ease;
}

.anime-card:hover {
    transform: translateY(-6px);
    background: rgba(56, 189, 248, 0.16);
    box-shadow: 0 24px 45px rgba(56, 189, 248, 0.18);
}

.anime-card img {
    width: 100%;
    height: 260px;
    object-fit: cover;
    border-radius: 18px;
    margin-bottom: 14px;
}

.anime-card h4 {
    margin: 0 0 10px;
    font-size: 1.2rem;
}

.anime-card p {
    margin: 0 0 12px;
    color: #e5e7eb;
    line-height: 1.5;
    text-align:justify;
}

.anime-card ul {
    margin: 0;
    padding-left: 18px;
    color: #d1d5db;
    line-height: 1.6;
}

.anime-card ul li {
    margin-bottom: 8px;
}

/*=====================================================
    HIGHLIGHT SECTION
======================================================*/

.highlight-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(270px, 1fr));
    gap: 18px;
    margin-bottom: 24px;
}

.highlight-card {
    background: rgba(255, 255, 255, 0.08);
    padding: 20px;
    border-radius: 24px;
    border: 1px solid rgba(255, 255, 255, 0.12);
    box-shadow: 0 14px 30px rgba(0, 0, 0, 0.25);
    transition: transform 0.25s ease, background 0.25s ease, box-shadow 0.25s ease;
}

.highlight-card:hover {
    transform: translateY(-6px);
    background: rgba(56, 189, 248, 0.16);
    box-shadow: 0 24px 45px rgba(56, 189, 248, 0.18);
}

.highlight-card h3 {
    margin: 0 0 14px;
    font-size: 1.4rem;
}

.highlight-card p {
    margin: 12px 0 0;
    color: #d1d5db;
    line-height: 1.6;
}

.highlight-card video,
.anime-card img,
.card video {
    width: 100%;
    height: auto;
    border-radius: 18px;
}
/*=====================================================
    BUTTONS
======================================================*/
button{
    background: #6c6eff;
    color: white;
    border: none;
    padding: 5px 10px;
    cursor: pointer;
    
    
}

button:hover{
    background-color:darkblue

}

.back-btn {
    background: #6c6eff;
    color: white;
    border: none;
    cursor: pointer;
    padding: 5px 10px ;
}

.back-btn:hover{
    background-color:darkblue

}

/*=====================================================
    BACKGROUND ANIMATION
======================================================*/

body:before {
    content: "";
    position: fixed;
    inset: -20px;
    z-index: -1;
    pointer-events: none;
    background:
        radial-gradient(circle at var(--mouse-x) var(--mouse-y), rgba(172, 176, 240, 0.432), transparent 28%),
        radial-gradient(circle at 20% 20%, rgba(185, 213, 245, 0.329), transparent 30%),
        radial-gradient(circle at 80% 20%, rgba(249, 115, 22, 0.20), transparent 28%),
        radial-gradient(circle at 80% 80%, rgba(216, 180, 254, 0.22), transparent 30%);
    animation: bgFloat 8s ease-in-out infinite alternate;
    transition: background 0.2s ease-out;
    
}



@keyframes bgFloat {
    from { transform: scale(1) translate(0, 0); }
    to { transform: scale(1.06) translate(-12px, 12px); }
}



footer{
    background: rgba(56, 189, 248, 0.24);
    color: white;
    text-align: center;
    padding: 20px;
}

.footer-buttons{
    display: inline-flex;
    gap: 10px;
    align-items: center;
}

.footer-buttons button{
    padding: 8px 14px;
    border-radius: 8px;
}

.dark{
    background: #000000;
    color: white;
}

.dark .card{
    background: #333;
    color:white;
}

.container{
    display: flex;
    gap: 20px;
    text-align: justify;
    align-items: center;
    flex-wrap: wrap;

}

.container img{
    width: 256px;
    height: 256px;
    object-fit: cover;
    border-radius: 50%;
    border: 3px solid rgba(255, 255, 255, 0.35);
    box-shadow: 0 0 18px rgba(56, 189, 248, 0.65), 0 0 35px rgba(168, 85, 247, 0.3);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.container img:hover {
    transform: scale(1.03);
    box-shadow: 0 0 22px rgba(56, 189, 248, 0.8), 0 0 45px rgba(168, 85, 247, 0.4);
}



/*==================================================
    BACK BUTTON
===================================================*/

#back-btn{
    background: transparent;
    color: white;
    border: 1px solid rgba(255,255,255,0.22);
}

#back-btn:hover{
    background: rgba(255,255,255,0.06);
}

#theme-btn{
    background:#6c6eff;
}



.card video {
    width: 500px;
    height: auto;
    border-radius: 10px;
}

.card img{
    width: 200px;
    height: auto;
    border-radius: 10px;
    
}

img .card{
    width: 200px;
    height: auto;
    border-radius: 10px;
}

