/* 
==================================================
    Display Configuration
==================================================
*/

html, body {
    scroll-behavior: smooth;    /* Smooth scroll */
    scrollbar-width: none;      /* Remove scrollbar */
    margin: 0;                  /* Remove body margins */
}

/* Remove scrollbar for other browsers */
html::-webkit-scrollbar,
body::-webkit-scrollbar {
    display: none; 
}

/* Remove default spacing */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}
.hide {
    display: none !important;
}

/* Variable Declaration */
:root {
    /* Text Colors */
    --ink: #ffffff;
    --text-muted: #d5d5d5;
    --text-highlight: rgb(221, 0, 255);

    /* Gradients */
    --bright-gradient: linear-gradient(90deg,
        rgba(221, 0, 255, 1) 0%,
        rgba(255, 136, 0, 1) 100%);
    --paper-gradient: linear-gradient(
        var(--paper), 
        var(--paper)
        );

    /* Document Colors */
    --paper: #000000;
    --tinted: rgb(23, 23, 34);
    --gray: rgb(78, 78, 78);

    /* Page Separator */
    --line: #e3d9c9; 

    /* Other Settings */
    --radius: 2.5em;
    --radius-max: 9999px;

    /* Fonts */
    --sans-serif: "Outfit", "Inter", sans-serif;
    --body-text: "Inter", sans-serif;
    --serif: "STIX Two Text", 'Times New Roman', Times, serif;
}
/* For gradients: https://cssgradient.io/ */

/* 
==================================================
    Default Elements
==================================================
*/

body {
    font-family: var(--sans-serif);
    color: var(--ink);
    background-color: var(--paper);
    line-height: 1.6;
}

img {
    object-fit: cover;
}

h1, h2, h3 {
    font-family: var(--serif);
    
    line-height: 1;
    font-weight: normal;
}

h1 { 
    font-size: 3.5em; 
    letter-spacing: -0.05em;
}
h2 { 
    font-size: 2.5em; 
    letter-spacing: -0.03em;
}
h3 { 
    font-size: 1.5em; 
    letter-spacing: 0em;
}

p {
    font-family: 'Inter', sans-serif;
}

.section-header {
    margin-top: 10vh;
    font-family: 'Times New Roman', Times, serif;
    font-weight: normal;
    letter-spacing: -0.06em;
    font-size: clamp(1em, 20vw, 10em);
    overflow-wrap: anywhere;
}
.section-subheader {
    margin-top: 0.75rem;
    margin-bottom: 4vh;

    font-weight: normal;
    font-size: clamp(1em, 2vw, 1.5em);
    line-height: 1.5;

    color: var(--text-muted);
    overflow-wrap: anywhere;
}

hr {
    width:90vw;
    justify-self: center;
    border: solid;
    border-width: 0 0 0.1px 0;
    border-color: var(--line);
    margin: 25vh 0;
}

.container {
    width: 80vw;
    margin: 0 auto;
}

/* Hide scrollbar for Chrome, Safari and Opera */
.hide-scrollbar::-webkit-scrollbar {
  display: none;
}

/* Hide scrollbar for IE, Edge and Firefox */
.hide-scrollbar {
  -ms-overflow-style: none;  /* IE and Edge */
  scrollbar-width: none;  /* Firefox */
}

.button, .button-accent {
    display: inline-block;
    height: fit-content;
    padding: 0.65rem 1rem;
    margin: 0.8rem 0;

    border-radius: var(--radius-max);

    cursor: pointer;
    font: inherit;
    font-weight: 600;
    text-decoration: none;
    letter-spacing: 0.03em;

}

.button{
    border: none;
    background: var(--bright-gradient);
    box-shadow: inset 0 0 0 100vmax var(--ink);
    color: var(--paper);
    transition:
        box-shadow 0.3s ease,
        color 0.3s ease;
}

.button:hover {
    box-shadow: inset 0 0 0 100vmax transparent;
    color: var(--ink);
}

.button-accent {
    color: var(--ink);
    border: 1px solid transparent;
    /* Coloring */
    background:
        var(--paper-gradient) padding-box,
        var(--bright-gradient) border-box;
    overflow: hidden;
    /* Pop Out Animation */
    transition:
        transform 0.2s ease,
        box-shadow 0.2s ease; 
    /* Button flash fix */
    transform: translateZ(0);
    backface-visibility: hidden;
    will-change: transform;
}

.button-accent::before {
    content: "";
    position: absolute;
    inset: 0;

    background: var(--bright-gradient);

    opacity: 0;
    transition: opacity 0.35s ease;

    z-index: -1;
}

/* Pop out on hover */
.button-accent:hover {
    transform: translateY(-3px) scale(1.04);
    box-shadow: 0 12px 25px rgba(221, 0, 255, 0.3);
}

.button-accent:hover::before {
    opacity: 1;
}

.button-accent:active {
    transform: translateY(1px) scale(0.97);
    box-shadow: 0 3px 8px rgba(221, 0, 255, 0.25);
}

/* 
==================================================
    NAVBAR HEADER
==================================================
*/

/* Line Break */
.site-header { 
    border-bottom: 1px solid var(--line);
}

.site-header .container {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 1.25rem 1.5rem;
}

.site-header nav {
    display: flex;
    gap: 2rem;
}

.site-header nav a {
    color: var(--ink);
    text-decoration: none;
    font-size: 0.95rem;

    background-image: var(--bright-gradient);
    background-clip: text;
    -webkit-background-clip: text;

    transition: color 0.3s ease;
}

.site-header nav a:hover {
    color: transparent;
}

.nav-user{
    color: var(--ink);
    text-decoration: underline;
    text-underline-offset: 0.3em;
    font-size: 0.95rem;

    background-image: var(--bright-gradient);
    background-clip: text;
    -webkit-background-clip: text;
    color: transparent;
}

@media (max-width: 900px) {
    .site-header .container {
        flex-direction: column;
        align-items: stretch;
        gap: 1rem;

        width: 100%;
        box-sizing: border-box;
    }

    .brand {
        align-self: flex-start;
    }

    .site-header nav {
        width: 100%;
        display: grid;

        grid-template-columns: repeat(3, 1fr);
        gap: 0.75rem 1rem;
    }

    .site-header nav a {
        text-align: center;
        white-space: nowrap;
    }
}

@media (max-width: 600px) {
    .brand p {
        display: none;
    }

    .site-header nav {
        grid-template-columns: repeat(2, 1fr);
    }
}


/* 
==================================================
    Brand Logo & Text
==================================================
*/

.logo {
    width: 3vh;
    height: 3vh;
    background: linear-gradient(60deg, #dd00ff, #ff8800);
    clip-path: url(#logo-shape);
}
.brand {
    display: flex;
    text-decoration: none;
    font-family: "Outfit", "Inter", sans-serif;
    font-weight: bolder;
    letter-spacing: 0.2em;

}
.brand p {
    padding-left: 2vh;
    font-size: 1rem;
    color: var(--ink);
}

.brand img {
    width: 3vh;
    height: 3vh;
}

/* 
==================================================
    FOOTER
==================================================
*/

.site-footer {
    padding: 1.5rem;
    color: var(--text-muted);
    font-size: 0.85rem;
    border-top: 1px solid var(--line);
}


/* 
==================================================
    TOAST
==================================================
*/
.toast-component {
    position: fixed;
    inset: auto 2rem 2rem auto;
    margin: 0;
    padding: 1rem 1.5rem;
    border-radius: var(--radius);
    box-shadow: 0 10px 25px rgba(28, 25, 23, 0.15);
    display: none;
    align-items: center;
    gap: 1rem;
    transition: all 0.3s ease;
    background-color: var(--paper);
    border: 1px solid var(--line);
    color: inherit;
}

.toast-component:popover-open {
    display: flex;
}

.toast-hidden {
    opacity: 0;
    transform: translateY(150%);
    pointer-events: none;
}

.toast-show {
    opacity: 1;
    transform: translateY(0);
}

.toast-title {
    font-size: 1rem;
    font-weight: 700;
    margin-bottom: 0.15rem;
    font-family: var(--sans-serif);
}

.toast-message {
    font-size: 0.85rem;
    color: var(--text-muted);
}

/* Modifikasi border kiri berdasarkan tipe notifikasi */
.toast-success { border: 1px solid #22c55e; }
.toast-error { border: 1px solid #b42318; }
.toast-normal { border: 1px solid var(--accent); }
