@font-face {
    font-family: "Blackground";
    src: url("../assets/fonts/Black-Ground.otf") format("opentype"),
         url("../assets/fonts/Black-Ground.ttf") format("truetype");
}

body {
    margin: 0;
    background: radial-gradient(circle at center, #3a0000 0%, #110000 100%);
    color: white;
    overflow-x: hidden;
    overflow-y: auto;
}
.contact_container p {
    font-family: Arial, Helvetica, sans-serif;
    font-size: 20px;
    letter-spacing: 2px;
}
header {
    height: 100vh;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    align-items: center;
    position: relative;
}
::-webkit-scrollbar {
    width: 5px;
}

::-webkit-scrollbar-track {
    background: rgba(0, 0, 0, 0.3);
}

::-webkit-scrollbar-thumb {
    background:#490000;
    border-radius: 10px;

 
    
}
* {
    scrollbar-width: thin;
    scrollbar-color: #490000 #790000;
}
nav {
    position: fixed;
    top: 0;

    width: 100%;
    display: flex;
    gap: 40px;
    backdrop-filter: blur(50px);
    left: 50%;
    transform: translateX(-50%);
    width: fit-content;
    margin-top: 20px;
    z-index: 1000;
    padding: 20px 40px;
    box-shadow: 0px 0px 30px rgba(0, 0, 0, 0.3);

    

    
    background:rgba(0, 0, 0, 0.368);
    border-radius: 20px;
    align-items: center;
}
nav a {
    text-decoration: none;
    color: white; 
    letter-spacing: 1px;
    transition: 0.2s;
}
nav a:hover {
    color: red;
    transform: scale(1.02);
}
.card {
    background: rgba(0, 0, 0, 0.4);
    display: flex;
    margin: auto;
    cursor: pointer;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    padding: 50px;
    border-radius: 20px;
    box-shadow: 0px 0px 30px rgba(0, 0, 0, 0.7);

}
.card img {
    width: 600px;   
    height: auto;
}

h2 {
    font-size: 3rem;
    font-family: "Blackground";
    letter-spacing: 5px;

}
.studio {
    display: flex;
    align-items: center;
    flex-direction: row;
    font-family: "Blackground";
    font-size: 30px;
    gap: 20px;
}

.studio img {
    width: 160px;
    height: auto;

}

.update_holder {
    position: absolute;
    display: flex;
    flex-direction: column;
    gap: 20px;
    align-items: center;
    top: 100px;
    left: 0;
    right: 0;
    bottom: 0;
    overflow-y: auto;
    
}


.update {
    max-width: 600px;
    width: 100%;
    padding: 20px;
    border-radius: 16px;

    background: rgba(255, 255, 255, 0.05);
    backdrop-filter: blur(10px);

    border: 1px solid rgba(255, 255, 255, 0.1);

    box-shadow: 0 10px 20px rgba(0, 0, 0, 0.5);

    transition: transform 0.5s ease, box-shadow 0.5s ease, filter 0.4s ease;
}
.update h2 {
    font-size: 30px;
}
.update p {
    font-family: Arial, Helvetica, sans-serif;
}

.fullscreen-img {
    position: fixed;
    bottom: 0;
    left: 50%;
    transform: translateX(-50%);

    height: 100vh;
    width: auto;

    z-index: -1;
    pointer-events: none;

    opacity: 0;
    filter: brightness(0.5) contrast(1.2);
    animation: creep 16s ease-in-out forwards;
}
@keyframes creep {
    0%   { opacity: 0; }
    30%  { opacity: 0; }

    60%  { opacity: 0.05; }
    80%  { opacity: 0.07; }
    100%  { opacity: 0.1; }

}
.update:hover {
    box-shadow: 0 10px 50px rgba(0, 0, 0, 0.3);
    transform: scale(1.03);
    filter: brightness(1.1);
}
.update_image {
    width: 100%;
    border-radius:10px;
    margin-top: 10px;
    
}
.update-header {
    display: flex;
    flex-direction: row;
    gap: 20px;
    align-items: center;
}
.update_pfp{
    width: 35px;
    height: auto;
    border-radius: 50%;
}
.update a {
    color: #fdd7d7;

}
.update-date {
    font-weight: bold;
    color: #ffffff72;
    font-size: 15px;

}
.update-user{
    display: flex;
    flex-direction: row;
    font-family: "BlackGround";
    letter-spacing: 2px;
    font-size: 20px;
    align-items: center;
    justify-content: center;
    gap: 20px;
    
}
.cast_container {
    flex: 1;

    min-height: 100vh;

    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;

    padding: clamp(20px, 3vw, 40px);
    padding-top: 100px;
}

.cast_content {
    display: grid;

    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    
    gap: clamp(15px, 2vw, 30px);

    width: 100%;
    max-width: 1100px;

    justify-items: center;
}

#panel-socials {
    display: flex;
    flex-direction: row;
    flex-wrap: wrap;
    justify-content: center;
    gap: 15px;
    margin-top: 15px;
    align-items: center;
}


#panel-name {
    text-align: center;
    word-break: break-word;
    overflow-wrap: anywhere;

    font-size: clamp(16px, 2.2vw, 40px);
    line-height: 1.2;
}
.discord-tag {
    background-color: #5765ec;
    padding-right: 10px;
    border-radius: 20px;
    
    display: flex;
    align-items: center;
    gap: 8px;

    white-space: nowrap;   
    flex-shrink: 0;       

}
.social-icon {
    width: 50px;
    height: 50px;
    transition: 0.2s;
    cursor: pointer;
}
#panel-socials img {
    width: 50px;
    height: 50px;
}
.social-icon:hover {
    transform: scale(1.2);
}


.cast {
    display: flex;
    flex-direction: column;
    align-items: center;
    will-change: transform;
    
    justify-content: center;
    background: rgba(255, 255, 255, 0.05);
    backdrop-filter: blur(10px);

    border: 1px solid rgba(255, 255, 255, 0.1);

    box-shadow: 0 10px 20px rgba(0, 0, 0, 0.5);
    border-radius: 20px;
    width: 100%;
    max-width: 220px;
    
    aspect-ratio: 220 / 320;
    justify-content: space-between;
    padding: 20px;
    transition: 0.6s;
}
.main_layout {
    display: flex;
}



.profile_panel {
    position: sticky;
    top: 0;

    width: clamp(220px, 18vw, 300px);
    height: 100vh;

    padding: 40px 20px;

    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;

    background: rgba(255,255,255,0.05);
    backdrop-filter: blur(10px);

    border-left: 1px solid rgba(255,255,255,0.1);
}
.profile_panel img {
    width: 120px;
    height: 120px;
    border-radius: 50%;
    object-fit: cover;
}
.cast.selected {
    outline: 2px solid rgba(255,255,255,0.6);
    box-shadow: 0 0 25px rgba(255,255,255,0.3);
    transform: scale(1.05);
    z-index: 10;
}
.cast img {
    width: 200px;
    height: auto;
    object-fit: cover;
    border-radius: 50%;
}
.cast img[src=""] {
    display: none;
}
.cast h2 {
    text-align: center;
    letter-spacing: 1px;
    font-size: 25px;
    line-height: 1.2;

    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;

    overflow: hidden;
}

.cast p {
    font-size: 16px;
    opacity: 0.8;
    letter-spacing: 1px;
}

.cast:hover {
    
    transform: scale(1.02);
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.3);
}

.cast.selected:hover {
    outline: 2px solid rgba(255,255,255,0.6);
    box-shadow: 0 0 25px rgba(255,255,255,0.3);
    transform: scale(1.05);
    z-index: 10;
}

.contact_main {
    display: flex;
    justify-content: center;
    align-items: center;
    min-height: 100vh;
    padding-top: 70px;
    
}
.about_main {
    display: flex;
    justify-content: center;
    align-items: center;
    min-height: 100vh;
    padding-top: 70px;
    
}
.no-scroll {
    height: 100vh;
    overflow: hidden;
}
.contact_container {
    background: rgba(0, 0, 0, 0.4);
    display: flex;
    flex-direction: column;
    align-items: center;

    padding: 50px;
    border-radius: 20px;
    box-shadow: 0px 0px 30px rgba(0, 0, 0, 0.7);
}
.socials {
    display: flex;
    flex-wrap: wrap;
    gap: 20px;
    justify-content: center;
}

.socials a {
    display: flex;
    align-items: center;
    gap: 10px;

    padding: 15px 25px;
    border-radius: 20px;

    text-decoration: none;
    color: white;

    background: rgba(255,255,255,0.05);
    backdrop-filter: blur(10px);

    border: 1px solid rgba(255,255,255,0.1);

    transition: 0.2s;
}

.socials a:hover {
    transform: scale(1.05);
    box-shadow: 0 10px 30px rgba(0,0,0,0.3);
}

.socials span {
    font-size: 18px;
    letter-spacing: 1px;
}

@media (max-width: 768px) {

    body {
        margin: 0;
        background: radial-gradient(circle at center, #880101 0%, #4b0000 100%);
        color: white;
        overflow-x: hidden;
        overflow-y: auto;
    }
    nav {
        gap: 15px;
        padding: 10px 20px;
        font-size: 14px;
        margin-top: 10px;
    }

    nav a {
        font-size: 14px;
    }

    /* HEADER */
    header {
        height: auto;
        padding-top: 100px;
        padding-bottom: 40px;
    }

    /* UPDATE FEED */
    .update_holder {
        position: static;
        padding: 20px;
        overflow: visible;
    }

    .update {
        max-width: 100%;
        padding: 15px;
    }

    .update h2 {
        font-size: 22px;
    }

  
    .cast_content {
        display: grid;
        grid-template-columns: repeat(3, minmax(0, 1fr)) !important;
        gap: 12px;
        width: 100%;
    }

    .cast {
        max-width: 100%;
        width: 100%;
        aspect-ratio: 1 / 1.2; 
        padding: 10px;
        max-width: none !important;

    }
    .cast.selected {
        outline: 2px solid rgba(0, 0, 0, 0);
    }

    .cast img {
        width: 100% !important;
        max-width: 60px; 
    }

    .cast h2 {
        font-size: 16px;
    }

    .cast p {
        font-size: 12px;
    }

    /* PROFILE PANEL (popup on mobile) */
    .main_layout {
        display: block;
    }

    .profile_panel {
        display: none;
    }
    .profile_panel.active {
        opacity: 1;
        pointer-events: all;
        transform: translate(-50%, -50%) scale(1);
    }

    

    /* CONTACT / ABOUT */
    .contact_container,
    .card {
        padding: 25px;
        width: 90%;
    }



    .contact_container p {
        font-size: 16px;
    }

    /* SOCIAL BUTTONS */
    .socials a {
        padding: 10px 15px;
        font-size: 14px;
    }

    .social-icon {
        width: 40px;
        height: 40px;
    }

    /* FULLSCREEN BG IMAGE (less aggressive on mobile) */
    .fullscreen-img {
        height: auto;
        width: 120%;
        opacity: 0.05;
    }

    /* TEXT */
    h2 {
        font-size: 2rem;
        letter-spacing: 2px;
    }
}