@keyframes ambientGlow {
    0% {
        background-position: 0% 50%;
    }
    100%{
        background-position: 100% 50%;
    }
} 
body{
    margin: 0;

    background: linear-gradient(
    135deg,
    #16000f,
    #2a0019,
    #3d0a2d,
    #2a0019,
    #16000f
    );
    background-size: 400% 400%;
    animation: ambientGlow 15s ease infinite;
    
    color: #f5f5f5;
    font-family: Georgia, 'Times New Roman', Times, serif;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;

    min-height: 100vh;

    }
    h1{
        font-size: 3rem;
        color: #b71c5a;
        margin-bottom: 10px;

    }
    p{
        font-size: 1.2rem;
        opacity: 0.8;
    }
    button {
        margin-top: 40px;
        padding: 15px 35px;

        background: transparent;
        border: 2px solid #b71c5a;
        color: #f5f5f5;
        font-size: 1rem;
        font-family: inherit;
        cursor: pointer;
        border-radius: 30px;
        transition: all 0.4s ease;
    }
    #landing{
        position: fixed;
        inset: 0;
        
        display: flex;
        flex-direction: column;
        justify-content: center;
        align-items: center;

        text-align: center;

        z-index: 10;

        transition: opacity 1s ease, transform 1s ease;
    }

    button:hover {
        background: #b71c5a;
        color: white;
        transform: scale(1.05);
        box-shadow: 0 0 25px rgba(183, 28, 90, 0.8)
    }
    .fade-out {
        opacity: 0;
        transform: scale(1.25);
        filter: blur(8px);
    }
    .portal-awaken{
        box-shadow: 0 0 45px rgba(183, 28, 90, 0.9);
    }
    .portal-active{
        animation-duration: 5s;
    }
   
    #sanctum.show-sanctum{
       display: flex;
       flex-direction: column;
       justify-content: center;
         align-items: center;
         min-height: 100vh;
         opacity: 1;
      pointer-events: auto;
    
    }
    #sanctum {
        min-height: 100vh;
        width: 100px;
        box-sizing: border-box;

        display: flex;
        flex-direction: column;
        justify-content: center;
        align-items: center;
        color: #f5f5f5;
        
        opacity: 0;
        transition: opacity 1.5s ease;
        pointer-events: none;

        width: 100%
    }

    #sanctum section {
    width: min(900px, 90%);
    margin: 60px auto;
    padding: 40px;
    text-align: center;
    border: 1px solid rgba(183, 28, 90, 0.35);
    box-sizing:border-box;
    }

    #sanctum h3{
        font-size: 2rem;
        color: #b71c5a;
        margin-bottom: 15px;
    }

    .collection-grid {
        width: min(1100px, 90%);
        margin: 50px auto 0;
        display: grid;
        grid-template-columns: repeat(3, 1fr);
        gap: 30px;
    }
    .collection-card {
        padding: 20px;
        border: 1px solid rgba(183, 28, 90, 0.35);
        border-radius: 18px;
        background: rgba(22, 0, 15, 0.45);
        text-align:center;
        transition: transform 0.4s ease, box-shadow 0.4s ease;
    }
    .collection-card:hover {
        transform: translateY(-8px);
        box-shadow: 0 0 30px rgba(183, 28, 90, 0.25);
    }
    .collection-image{
        height: 220px;
        display:flex;
        justify-content:center;
        align-items:center;
        margin-bottom: 20px;
        border-radius: 14px;
        background: rgba(61, 10, 45, 0.5);
        overflow: hidden;
    }
    .collection-image img{
        width: 100%;
        height: 100%;
        object-fit: contain;
        display: block;
    }
    .collection-image img{
        transition: transform 0.6s ease;
    }
    .collection-card:hover .collection-image img{
        transform: scale(1.06);
    }
    .collection-image span{
        font-size: 0.85rem;
        letter-spacing: 2px;
        text-transform: uppercase;
        opacity: 0.55;
    }
    .collection-image {
        position: relative;
    }
    .collection-image::before {
    content: "";
    position: absolute;
    inset: 20%;
    background: rgba(183, 28, 90, 0.18);
    filter: blur(35px);
    border-radius: 50%;
    opacity: 0.7;
    transition: opacity 0.5s ease, transform 0.5s ease;
}

.collection-card:hover .collection-image::before {
    opacity: 1;
    transform: scale(1.15);
}
    .collection-card h4{
        margin: 10px 0;
        font-size: 1.4rem;
        color: #f5f5f5;
    }
    .collection-card p { 
        font-size: 0.95rem;
        line-height: 1.6;
        opacity: 0.7;
    }
    .collection-card:nth-child(1) .collection-image {
        background: radial-gradient(
            circle at center,
            rgba(183, 28, 90, 0.35),
            rgba(61, 10, 45, 0.5) 70%
            );
    }
    .collection-card:nth-child(2) .collection-image {
    background: radial-gradient(
        circle at center,
        rgba(120, 90, 180, 0.35),
        rgba(61, 10, 45, 0.5) 70%
    );
}

.collection-card:nth-child(3) .collection-image {
    background: radial-gradient(
        circle at center,
        rgba(200, 90, 45, 0.35),
        rgba(61, 10, 45, 0.5) 70%
    );
}
.collection-card:nth-child(1):hover .collection-image {
    box-shadow: 0 0 25px rgba(183, 28, 90, 0.35);
}

.collection-card:nth-child(2):hover .collection-image {
    box-shadow: 0 0 25px rgba(120, 90, 180, 0.35);
}

.collection-card:nth-child(3):hover .collection-image {
    box-shadow: 0 0 25px rgba(200, 90, 45, 0.35);
}
.collection-image {
    border: 1px solid rgba(245, 245, 245, 0.12);
    box-shadow:
    inset 0 0 20px rgba(0, 0, 0, 0.35),
    0 0 12px rgba(183, 28, 90, 0.12);
    
}
.collection-image::after {
    content: "";
    position: absolute;
    top: 0;
    left:-100%;
    width: 50%;
    height: 100%;

    background: linear-gradient(
        90deg,
        transparent,
        rgba(255, 255, 255, 0.12),
        transparent
    );
    transform: skewX(-20deg);
    transition: left 0.8s ease;
}
.collection-card:hover .collection-image::after {
    left: 150%;
}
.collection-card h4,
.collection-card p {
    transition: transform 0.4s ease, opacity 0.4s ease;
}
.collection-card:hover h4 {
    transform: translateY(-3px);
    opacity: 0.9;
}
@media (max-width: 768px){
    .collection-grid {
        grid-template-columns: 1fr;
        width: 90%;
        gap: 25px;

    }
    #sanctum section {
        width: 90%;
        margin: 35px auto;
        padding: 25px;
    }
    h1 {
        font-size: 2.2rem;
    }
    p {
        font-size: 1rem;
    }
    #sanctum h3 {
        font-size: 1.6rem;
    }
    .collection-image {
        height: 280px;
    }
    button {
        padding: 16px 32px;
        font-size: 1rem;
        min-height: 48px;
    }
}